]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
Various updates
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_char swig_types[0]
2467 #define SWIGTYPE_p_double swig_types[1]
2468 #define SWIGTYPE_p_form_ops_t swig_types[2]
2469 #define SWIGTYPE_p_int swig_types[3]
2470 #define SWIGTYPE_p_unsigned_char swig_types[4]
2471 #define SWIGTYPE_p_unsigned_int swig_types[5]
2472 #define SWIGTYPE_p_unsigned_long swig_types[6]
2473 #define SWIGTYPE_p_wxANIHandler swig_types[7]
2474 #define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
2475 #define SWIGTYPE_p_wxActivateEvent swig_types[9]
2476 #define SWIGTYPE_p_wxBMPHandler swig_types[10]
2477 #define SWIGTYPE_p_wxBitmap swig_types[11]
2478 #define SWIGTYPE_p_wxBoxSizer swig_types[12]
2479 #define SWIGTYPE_p_wxBrush swig_types[13]
2480 #define SWIGTYPE_p_wxBrushList swig_types[14]
2481 #define SWIGTYPE_p_wxBufferedDC swig_types[15]
2482 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[16]
2483 #define SWIGTYPE_p_wxCURHandler swig_types[17]
2484 #define SWIGTYPE_p_wxChildFocusEvent swig_types[18]
2485 #define SWIGTYPE_p_wxClientDC swig_types[19]
2486 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[20]
2487 #define SWIGTYPE_p_wxCloseEvent swig_types[21]
2488 #define SWIGTYPE_p_wxColour swig_types[22]
2489 #define SWIGTYPE_p_wxColourDatabase swig_types[23]
2490 #define SWIGTYPE_p_wxCommandEvent swig_types[24]
2491 #define SWIGTYPE_p_wxContextMenuEvent swig_types[25]
2492 #define SWIGTYPE_p_wxControl swig_types[26]
2493 #define SWIGTYPE_p_wxControlWithItems swig_types[27]
2494 #define SWIGTYPE_p_wxCursor swig_types[28]
2495 #define SWIGTYPE_p_wxDC swig_types[29]
2496 #define SWIGTYPE_p_wxDash swig_types[30]
2497 #define SWIGTYPE_p_wxDateEvent swig_types[31]
2498 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[32]
2499 #define SWIGTYPE_p_wxDropFilesEvent swig_types[33]
2500 #define SWIGTYPE_p_wxDuplexMode swig_types[34]
2501 #define SWIGTYPE_p_wxEffects swig_types[35]
2502 #define SWIGTYPE_p_wxEncodingConverter swig_types[36]
2503 #define SWIGTYPE_p_wxEraseEvent swig_types[37]
2504 #define SWIGTYPE_p_wxEvent swig_types[38]
2505 #define SWIGTYPE_p_wxEvtHandler swig_types[39]
2506 #define SWIGTYPE_p_wxFSFile swig_types[40]
2507 #define SWIGTYPE_p_wxFileSystem swig_types[41]
2508 #define SWIGTYPE_p_wxFlexGridSizer swig_types[42]
2509 #define SWIGTYPE_p_wxFocusEvent swig_types[43]
2510 #define SWIGTYPE_p_wxFont swig_types[44]
2511 #define SWIGTYPE_p_wxFontList swig_types[45]
2512 #define SWIGTYPE_p_wxFontMapper swig_types[46]
2513 #define SWIGTYPE_p_wxGBSizerItem swig_types[47]
2514 #define SWIGTYPE_p_wxGDIObjListBase swig_types[48]
2515 #define SWIGTYPE_p_wxGDIObject swig_types[49]
2516 #define SWIGTYPE_p_wxGIFHandler swig_types[50]
2517 #define SWIGTYPE_p_wxGridBagSizer swig_types[51]
2518 #define SWIGTYPE_p_wxGridSizer swig_types[52]
2519 #define SWIGTYPE_p_wxICOHandler swig_types[53]
2520 #define SWIGTYPE_p_wxIcon swig_types[54]
2521 #define SWIGTYPE_p_wxIconBundle swig_types[55]
2522 #define SWIGTYPE_p_wxIconLocation swig_types[56]
2523 #define SWIGTYPE_p_wxIconizeEvent swig_types[57]
2524 #define SWIGTYPE_p_wxIdleEvent swig_types[58]
2525 #define SWIGTYPE_p_wxImage swig_types[59]
2526 #define SWIGTYPE_p_wxImageHandler swig_types[60]
2527 #define SWIGTYPE_p_wxImageList swig_types[61]
2528 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[62]
2529 #define SWIGTYPE_p_wxInitDialogEvent swig_types[63]
2530 #define SWIGTYPE_p_wxJPEGHandler swig_types[64]
2531 #define SWIGTYPE_p_wxKeyEvent swig_types[65]
2532 #define SWIGTYPE_p_wxLanguageInfo swig_types[66]
2533 #define SWIGTYPE_p_wxLayoutConstraints swig_types[67]
2534 #define SWIGTYPE_p_wxLocale swig_types[68]
2535 #define SWIGTYPE_p_wxMask swig_types[69]
2536 #define SWIGTYPE_p_wxMaximizeEvent swig_types[70]
2537 #define SWIGTYPE_p_wxMemoryDC swig_types[71]
2538 #define SWIGTYPE_p_wxMenu swig_types[72]
2539 #define SWIGTYPE_p_wxMenuBar swig_types[73]
2540 #define SWIGTYPE_p_wxMenuEvent swig_types[74]
2541 #define SWIGTYPE_p_wxMenuItem swig_types[75]
2542 #define SWIGTYPE_p_wxMetaFile swig_types[76]
2543 #define SWIGTYPE_p_wxMetaFileDC swig_types[77]
2544 #define SWIGTYPE_p_wxMirrorDC swig_types[78]
2545 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[79]
2546 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[80]
2547 #define SWIGTYPE_p_wxMouseEvent swig_types[81]
2548 #define SWIGTYPE_p_wxMoveEvent swig_types[82]
2549 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[83]
2550 #define SWIGTYPE_p_wxNativeFontInfo swig_types[84]
2551 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[85]
2552 #define SWIGTYPE_p_wxNcPaintEvent swig_types[86]
2553 #define SWIGTYPE_p_wxNotifyEvent swig_types[87]
2554 #define SWIGTYPE_p_wxObject swig_types[88]
2555 #define SWIGTYPE_p_wxPCXHandler swig_types[89]
2556 #define SWIGTYPE_p_wxPNGHandler swig_types[90]
2557 #define SWIGTYPE_p_wxPNMHandler swig_types[91]
2558 #define SWIGTYPE_p_wxPaintDC swig_types[92]
2559 #define SWIGTYPE_p_wxPaintEvent swig_types[93]
2560 #define SWIGTYPE_p_wxPalette swig_types[94]
2561 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[95]
2562 #define SWIGTYPE_p_wxPaperSize swig_types[96]
2563 #define SWIGTYPE_p_wxPen swig_types[97]
2564 #define SWIGTYPE_p_wxPenList swig_types[98]
2565 #define SWIGTYPE_p_wxPoint swig_types[99]
2566 #define SWIGTYPE_p_wxPostScriptDC swig_types[100]
2567 #define SWIGTYPE_p_wxPrintData swig_types[101]
2568 #define SWIGTYPE_p_wxPrinterDC swig_types[102]
2569 #define SWIGTYPE_p_wxPseudoDC swig_types[103]
2570 #define SWIGTYPE_p_wxPyApp swig_types[104]
2571 #define SWIGTYPE_p_wxPyCommandEvent swig_types[105]
2572 #define SWIGTYPE_p_wxPyEvent swig_types[106]
2573 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[107]
2574 #define SWIGTYPE_p_wxPyImageHandler swig_types[108]
2575 #define SWIGTYPE_p_wxPySizer swig_types[109]
2576 #define SWIGTYPE_p_wxPyValidator swig_types[110]
2577 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[111]
2578 #define SWIGTYPE_p_wxRect swig_types[112]
2579 #define SWIGTYPE_p_wxRegion swig_types[113]
2580 #define SWIGTYPE_p_wxRegionIterator swig_types[114]
2581 #define SWIGTYPE_p_wxRendererNative swig_types[115]
2582 #define SWIGTYPE_p_wxRendererVersion swig_types[116]
2583 #define SWIGTYPE_p_wxScreenDC swig_types[117]
2584 #define SWIGTYPE_p_wxScrollEvent swig_types[118]
2585 #define SWIGTYPE_p_wxScrollWinEvent swig_types[119]
2586 #define SWIGTYPE_p_wxSetCursorEvent swig_types[120]
2587 #define SWIGTYPE_p_wxShowEvent swig_types[121]
2588 #define SWIGTYPE_p_wxSize swig_types[122]
2589 #define SWIGTYPE_p_wxSizeEvent swig_types[123]
2590 #define SWIGTYPE_p_wxSizer swig_types[124]
2591 #define SWIGTYPE_p_wxSizerItem swig_types[125]
2592 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[126]
2593 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[127]
2594 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[128]
2595 #define SWIGTYPE_p_wxStockGDI swig_types[129]
2596 #define SWIGTYPE_p_wxString swig_types[130]
2597 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[131]
2598 #define SWIGTYPE_p_wxTIFFHandler swig_types[132]
2599 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[133]
2600 #define SWIGTYPE_p_wxValidator swig_types[134]
2601 #define SWIGTYPE_p_wxWindow swig_types[135]
2602 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[136]
2603 #define SWIGTYPE_p_wxWindowDC swig_types[137]
2604 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[138]
2605 #define SWIGTYPE_p_wxXPMHandler swig_types[139]
2606 static swig_type_info *swig_types[141];
2607 static swig_module_info swig_module = {swig_types, 140, 0, 0, 0, 0};
2608 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2609 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2610
2611 /* -------- TYPES TABLE (END) -------- */
2612
2613 #if (PY_VERSION_HEX <= 0x02000000)
2614 # if !defined(SWIG_PYTHON_CLASSIC)
2615 # error "This python version requires to use swig with the '-classic' option"
2616 # endif
2617 #endif
2618 #if (PY_VERSION_HEX <= 0x02020000)
2619 # error "This python version requires to use swig with the '-nomodern' option"
2620 #endif
2621 #if (PY_VERSION_HEX <= 0x02020000)
2622 # error "This python version requires to use swig with the '-nomodernargs' option"
2623 #endif
2624 #ifndef METH_O
2625 # error "This python version requires to use swig with the '-nofastunpack' option"
2626 #endif
2627
2628 /*-----------------------------------------------
2629 @(target):= _gdi_.so
2630 ------------------------------------------------*/
2631 #define SWIG_init init_gdi_
2632
2633 #define SWIG_name "_gdi_"
2634
2635 #define SWIGVERSION 0x010329
2636
2637
2638 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2639 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2640
2641
2642 #include <stdexcept>
2643
2644
2645 namespace swig {
2646 class PyObject_ptr {
2647 protected:
2648 PyObject *_obj;
2649
2650 public:
2651 PyObject_ptr() :_obj(0)
2652 {
2653 }
2654
2655 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2656 {
2657 Py_XINCREF(_obj);
2658 }
2659
2660 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2661 {
2662 if (initial_ref) Py_XINCREF(_obj);
2663 }
2664
2665 PyObject_ptr & operator=(const PyObject_ptr& item)
2666 {
2667 Py_XINCREF(item._obj);
2668 Py_XDECREF(_obj);
2669 _obj = item._obj;
2670 return *this;
2671 }
2672
2673 ~PyObject_ptr()
2674 {
2675 Py_XDECREF(_obj);
2676 }
2677
2678 operator PyObject *() const
2679 {
2680 return _obj;
2681 }
2682
2683 PyObject *operator->() const
2684 {
2685 return _obj;
2686 }
2687 };
2688 }
2689
2690
2691 namespace swig {
2692 struct PyObject_var : PyObject_ptr {
2693 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2694
2695 PyObject_var & operator = (PyObject* obj)
2696 {
2697 Py_XDECREF(_obj);
2698 _obj = obj;
2699 return *this;
2700 }
2701 };
2702 }
2703
2704
2705 #include "wx/wxPython/wxPython.h"
2706 #include "wx/wxPython/pyclasses.h"
2707
2708
2709 static const wxString wxPyEmptyString(wxEmptyString);
2710
2711 #define SWIG_From_long PyInt_FromLong
2712
2713
2714 SWIGINTERNINLINE PyObject *
2715 SWIG_From_int (int value)
2716 {
2717 return SWIG_From_long (value);
2718 }
2719
2720
2721 #include <limits.h>
2722 #ifndef LLONG_MIN
2723 # define LLONG_MIN LONG_LONG_MIN
2724 #endif
2725 #ifndef LLONG_MAX
2726 # define LLONG_MAX LONG_LONG_MAX
2727 #endif
2728 #ifndef ULLONG_MAX
2729 # define ULLONG_MAX ULONG_LONG_MAX
2730 #endif
2731
2732
2733 SWIGINTERN int
2734 SWIG_AsVal_long (PyObject* obj, long* val)
2735 {
2736 if (PyNumber_Check(obj)) {
2737 if (val) *val = PyInt_AsLong(obj);
2738 return SWIG_OK;
2739 }
2740 return SWIG_TypeError;
2741 }
2742
2743
2744 SWIGINTERN int
2745 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2746 {
2747 long v = 0;
2748 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2749 return SWIG_TypeError;
2750 }
2751 else if (val)
2752 *val = (unsigned long)v;
2753 return SWIG_OK;
2754 }
2755
2756
2757 SWIGINTERN int
2758 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2759 {
2760 unsigned long v;
2761 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2762 if (SWIG_IsOK(res)) {
2763 if ((v > UCHAR_MAX)) {
2764 return SWIG_OverflowError;
2765 } else {
2766 if (val) *val = static_cast< unsigned char >(v);
2767 }
2768 }
2769 return res;
2770 }
2771
2772
2773 SWIGINTERNINLINE PyObject*
2774 SWIG_From_unsigned_SS_long (unsigned long value)
2775 {
2776 return (value > LONG_MAX) ?
2777 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2778 }
2779
2780
2781 SWIGINTERNINLINE PyObject *
2782 SWIG_From_unsigned_SS_char (unsigned char value)
2783 {
2784 return SWIG_From_unsigned_SS_long (value);
2785 }
2786
2787 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2788 wxColour temp, *obj = &temp;
2789 if ( other == Py_None ) return false;
2790 if ( ! wxColour_helper(other, &obj) ) {
2791 PyErr_Clear();
2792 return false;
2793 }
2794 return self->operator==(*obj);
2795 }
2796 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2797 wxColour temp, *obj = &temp;
2798 if ( other == Py_None ) return true;
2799 if ( ! wxColour_helper(other, &obj)) {
2800 PyErr_Clear();
2801 return true;
2802 }
2803 return self->operator!=(*obj);
2804 }
2805 SWIGINTERN PyObject *wxColour_Get(wxColour *self){
2806 PyObject* rv = PyTuple_New(3);
2807 int red = -1;
2808 int green = -1;
2809 int blue = -1;
2810 if (self->Ok()) {
2811 red = self->Red();
2812 green = self->Green();
2813 blue = self->Blue();
2814 }
2815 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2816 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2817 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2818 return rv;
2819 }
2820 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2821 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2822 }
2823
2824 SWIGINTERN int
2825 SWIG_AsVal_int (PyObject * obj, int *val)
2826 {
2827 long v;
2828 int res = SWIG_AsVal_long (obj, &v);
2829 if (SWIG_IsOK(res)) {
2830 if ((v < INT_MIN || v > INT_MAX)) {
2831 return SWIG_OverflowError;
2832 } else {
2833 if (val) *val = static_cast< int >(v);
2834 }
2835 }
2836 return res;
2837 }
2838
2839 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2840 wxDash* dashes;
2841 int count = self->GetDashes(&dashes);
2842 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2843 PyObject* retval = PyList_New(0);
2844 for (int x=0; x<count; x++) {
2845 PyObject* pyint = PyInt_FromLong(dashes[x]);
2846 PyList_Append(retval, pyint);
2847 Py_DECREF(pyint);
2848 }
2849 wxPyEndBlockThreads(blocked);
2850 return retval;
2851 }
2852 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2853 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2854 int size = PyList_Size(pyDashes);
2855 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2856
2857 // black magic warning! The array of wxDashes needs to exist as
2858 // long as the pen does because wxPen does not copy the array. So
2859 // stick a copy in a Python string object and attach it to _self,
2860 // and then call SetDashes with a pointer to that array. Then
2861 // when the Python pen object is destroyed the array will be
2862 // cleaned up too.
2863 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2864 PyObject_SetAttrString(_self, "_dashes", strDashes);
2865
2866 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2867 delete [] dashes;
2868 Py_DECREF(strDashes);
2869 wxPyEndBlockThreads(blocked);
2870 }
2871 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2872 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2873
2874 #include <wx/image.h>
2875
2876 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2877 char** cArray = NULL;
2878 int count;
2879
2880 if (!PyList_Check(listOfStrings)) {
2881 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2882 return NULL;
2883 }
2884 count = PyList_Size(listOfStrings);
2885 cArray = new char*[count];
2886
2887 for(int x=0; x<count; x++) {
2888 // TODO: Need some validation and error checking here
2889 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2890 }
2891 return cArray;
2892 }
2893
2894
2895 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2896 char** cArray = NULL;
2897 wxBitmap* bmp;
2898
2899 cArray = ConvertListOfStrings(listOfStrings);
2900 if (! cArray)
2901 return NULL;
2902 bmp = new wxBitmap(cArray);
2903 delete [] cArray;
2904 return bmp;
2905 }
2906 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2907 char* buf;
2908 Py_ssize_t length;
2909 PyString_AsStringAndSize(bits, &buf, &length);
2910 return new wxBitmap(buf, width, height, depth);
2911 }
2912 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2913 wxSize size(self->GetWidth(), self->GetHeight());
2914 return size;
2915 }
2916 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2917 wxMask *mask = new wxMask(*self, colour);
2918 self->SetMask(mask);
2919 }
2920 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2921 self->SetWidth(size.x);
2922 self->SetHeight(size.y);
2923 }
2924 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2925 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2926 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
2927 if ( !colour.Ok() )
2928 return new wxMask(bitmap, *wxBLACK);
2929 else
2930 return new wxMask(bitmap, colour);
2931 }
2932
2933 #include <wx/iconbndl.h>
2934
2935 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
2936 wxIcon* icon = new wxIcon();
2937 icon->CopyFromBitmap(bmp);
2938 return icon;
2939 }
2940 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
2941 char** cArray = NULL;
2942 wxIcon* icon;
2943
2944 cArray = ConvertListOfStrings(listOfStrings);
2945 if (! cArray)
2946 return NULL;
2947 icon = new wxIcon(cArray);
2948 delete [] cArray;
2949 return icon;
2950 }
2951 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2952
2953
2954
2955 return new wxIconLocation(*filename);
2956
2957 }
2958 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2959
2960
2961
2962 // do nothing
2963
2964 }
2965 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
2966
2967
2968
2969 return -1;
2970
2971 }
2972 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2973 #ifdef __WXGTK__
2974 wxImage img(cursorName, type);
2975 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2976 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2977 return new wxCursor(img);
2978 #else
2979 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
2980 #endif
2981 }
2982
2983
2984 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
2985 (*self) ++;
2986 }
2987 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
2988 return self->operator bool();
2989 }
2990
2991 #include <wx/fontutil.h>
2992 #include <wx/fontmap.h>
2993 #include <wx/fontenum.h>
2994
2995
2996 SWIGINTERN int
2997 SWIG_AsVal_bool (PyObject *obj, bool *val)
2998 {
2999 if (obj == Py_True) {
3000 if (val) *val = true;
3001 return SWIG_OK;
3002 } else if (obj == Py_False) {
3003 if (val) *val = false;
3004 return SWIG_OK;
3005 } else {
3006 long v = 0;
3007 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
3008 if (SWIG_IsOK(res) && val) *val = v ? true : false;
3009 return res;
3010 }
3011 }
3012
3013 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3014 return self->ToString();
3015 }
3016
3017 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3018 static wxNativeEncodingInfo info;
3019 if ( wxGetNativeFontEncoding(encoding, &info) )
3020 return &info;
3021 else
3022 return NULL;
3023 }
3024
3025
3026 SWIGINTERNINLINE PyObject *
3027 SWIG_From_size_t (size_t value)
3028 {
3029 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3030 }
3031
3032
3033 SWIGINTERNINLINE int
3034 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3035 {
3036 unsigned long v;
3037 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3038 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3039 return res;
3040 }
3041
3042 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3043 wxFontEncoding alt_enc;
3044 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3045 return PyInt_FromLong(alt_enc);
3046 else {
3047 Py_INCREF(Py_None);
3048 return Py_None;
3049 }
3050 }
3051 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3052 wxNativeFontInfo nfi;
3053 nfi.FromString(info);
3054 return new wxFont(nfi);
3055 }
3056 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3057 return wxFont::New(pointSize, family, flags, face, encoding);
3058 }
3059 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3060 return wxFontBase::New(pixelSize, family,
3061 style, weight, underlined,
3062 face, encoding);
3063 }
3064 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3065 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3066 }
3067 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3068 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3069
3070 class wxPyFontEnumerator : public wxFontEnumerator {
3071 public:
3072 wxPyFontEnumerator() {}
3073 ~wxPyFontEnumerator() {}
3074
3075 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3076 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3077
3078 PYPRIVATE;
3079 };
3080
3081 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3082 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3083
3084
3085 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3086 PyObject* ret;
3087 wxArrayString arr = wxFontEnumerator::GetEncodings();
3088 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3089 ret = wxArrayString2PyList_helper(arr);
3090 wxPyEndBlockThreads(blocked);
3091 return ret;
3092 }
3093 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3094 PyObject* ret;
3095 wxArrayString arr = wxFontEnumerator::GetFacenames();
3096 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3097 ret = wxArrayString2PyList_helper(arr);
3098 wxPyEndBlockThreads(blocked);
3099 return ret;
3100 }
3101
3102 #include <locale.h>
3103
3104 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3105 wxLocale* loc;
3106 if (language == -1)
3107 loc = new wxLocale();
3108 else
3109 loc = new wxLocale(language, flags);
3110 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3111 // for the floating point conversions and such to work right.
3112 #if PY_VERSION_HEX < 0x02040000
3113 setlocale(LC_NUMERIC, "C");
3114 #endif
3115 return loc;
3116 }
3117 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3118 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3119 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3120 // for the floating point conversions and such to work right.
3121 #if PY_VERSION_HEX < 0x02040000
3122 setlocale(LC_NUMERIC, "C");
3123 #endif
3124 return rc;
3125 }
3126 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3127 bool rc = self->Init(language, flags);
3128 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3129 // for the floating point conversions and such to work right.
3130 #if PY_VERSION_HEX < 0x02040000
3131 setlocale(LC_NUMERIC, "C");
3132 #endif
3133 return rc;
3134 }
3135
3136 #include "wx/wxPython/pydrawxxx.h"
3137
3138 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3139 wxColour col;
3140 self->GetPixel(x, y, &col);
3141 return col;
3142 }
3143 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3144 wxColour col;
3145 self->GetPixel(pt, &col);
3146 return col;
3147 }
3148
3149 SWIGINTERN int
3150 SWIG_AsVal_double (PyObject *obj, double* val)
3151 {
3152 if (PyNumber_Check(obj)) {
3153 if (val) *val = PyFloat_AsDouble(obj);
3154 return SWIG_OK;
3155 }
3156 return SWIG_TypeError;
3157 }
3158
3159 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3160 wxRect rv;
3161 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3162 return rv;
3163 }
3164 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3165 wxRect rect;
3166 self->GetClippingBox(rect);
3167 return rect;
3168 }
3169 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3170 wxArrayInt widths;
3171 self->GetPartialTextExtents(text, widths);
3172 return widths;
3173 }
3174
3175 #define SWIG_From_double PyFloat_FromDouble
3176
3177 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3178 self->SetLogicalOrigin(point.x, point.y);
3179 }
3180 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3181 self->SetDeviceOrigin(point.x, point.y);
3182 }
3183 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3184 self->CalcBoundingBox(point.x, point.y);
3185 }
3186 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3187 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3188 }
3189 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3190 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3191 }
3192 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3193 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3194 }
3195 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3196 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3197 }
3198 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3199 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3200 }
3201 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3202 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3203 }
3204
3205 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3206 *x1 = dc->MinX();
3207 *y1 = dc->MinY();
3208 *x2 = dc->MaxX();
3209 *y2 = dc->MaxY();
3210 }
3211
3212
3213 #include <wx/dcbuffer.h>
3214
3215
3216 #include <wx/dcps.h>
3217
3218
3219 class wxMetaFile : public wxObject {
3220 public:
3221 wxMetaFile(const wxString&)
3222 { wxPyRaiseNotImplemented(); }
3223 };
3224
3225 class wxMetaFileDC : public wxClientDC {
3226 public:
3227 wxMetaFileDC(const wxString&, int, int, const wxString&)
3228 { wxPyRaiseNotImplemented(); }
3229 };
3230
3231
3232
3233 class wxPrinterDC : public wxClientDC {
3234 public:
3235 wxPrinterDC(const wxPrintData&)
3236 { wxPyRaiseNotImplemented(); }
3237
3238 };
3239
3240
3241
3242 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3243 self->AddColour(name, wxColour(red, green, blue));
3244 }
3245
3246 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3247 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3248 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3249 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3250
3251
3252 #include <wx/effects.h>
3253
3254
3255 #include "wx/renderer.h"
3256
3257
3258 SWIGINTERNINLINE PyObject*
3259 SWIG_From_bool (bool value)
3260 {
3261 return PyBool_FromLong(value ? 1 : 0);
3262 }
3263
3264
3265 #include "wx/wxPython/pseudodc.h"
3266
3267 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3268 wxRect rect;
3269 self->GetIdBounds(id, rect);
3270 return rect;
3271 }
3272 #ifdef __cplusplus
3273 extern "C" {
3274 #endif
3275 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3276 PyObject *resultobj = 0;
3277 wxGDIObject *result = 0 ;
3278
3279 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3280 {
3281 if (!wxPyCheckForApp()) SWIG_fail;
3282 PyThreadState* __tstate = wxPyBeginAllowThreads();
3283 result = (wxGDIObject *)new wxGDIObject();
3284 wxPyEndAllowThreads(__tstate);
3285 if (PyErr_Occurred()) SWIG_fail;
3286 }
3287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3288 return resultobj;
3289 fail:
3290 return NULL;
3291 }
3292
3293
3294 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3295 PyObject *resultobj = 0;
3296 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3297 void *argp1 = 0 ;
3298 int res1 = 0 ;
3299 PyObject *swig_obj[1] ;
3300
3301 if (!args) SWIG_fail;
3302 swig_obj[0] = args;
3303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3304 if (!SWIG_IsOK(res1)) {
3305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3306 }
3307 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3308 {
3309 PyThreadState* __tstate = wxPyBeginAllowThreads();
3310 delete arg1;
3311
3312 wxPyEndAllowThreads(__tstate);
3313 if (PyErr_Occurred()) SWIG_fail;
3314 }
3315 resultobj = SWIG_Py_Void();
3316 return resultobj;
3317 fail:
3318 return NULL;
3319 }
3320
3321
3322 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3323 PyObject *resultobj = 0;
3324 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3325 bool result;
3326 void *argp1 = 0 ;
3327 int res1 = 0 ;
3328 PyObject *swig_obj[1] ;
3329
3330 if (!args) SWIG_fail;
3331 swig_obj[0] = args;
3332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3333 if (!SWIG_IsOK(res1)) {
3334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3335 }
3336 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3337 {
3338 PyThreadState* __tstate = wxPyBeginAllowThreads();
3339 result = (bool)(arg1)->IsNull();
3340 wxPyEndAllowThreads(__tstate);
3341 if (PyErr_Occurred()) SWIG_fail;
3342 }
3343 {
3344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3345 }
3346 return resultobj;
3347 fail:
3348 return NULL;
3349 }
3350
3351
3352 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3353 PyObject *obj;
3354 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3355 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3356 return SWIG_Py_Void();
3357 }
3358
3359 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3360 return SWIG_Python_InitShadowInstance(args);
3361 }
3362
3363 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3364 PyObject *resultobj = 0;
3365 byte arg1 = (byte) 0 ;
3366 byte arg2 = (byte) 0 ;
3367 byte arg3 = (byte) 0 ;
3368 wxColour *result = 0 ;
3369 unsigned char val1 ;
3370 int ecode1 = 0 ;
3371 unsigned char val2 ;
3372 int ecode2 = 0 ;
3373 unsigned char val3 ;
3374 int ecode3 = 0 ;
3375 PyObject * obj0 = 0 ;
3376 PyObject * obj1 = 0 ;
3377 PyObject * obj2 = 0 ;
3378 char * kwnames[] = {
3379 (char *) "red",(char *) "green",(char *) "blue", NULL
3380 };
3381
3382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3383 if (obj0) {
3384 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3385 if (!SWIG_IsOK(ecode1)) {
3386 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3387 }
3388 arg1 = static_cast< byte >(val1);
3389 }
3390 if (obj1) {
3391 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3392 if (!SWIG_IsOK(ecode2)) {
3393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3394 }
3395 arg2 = static_cast< byte >(val2);
3396 }
3397 if (obj2) {
3398 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3399 if (!SWIG_IsOK(ecode3)) {
3400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3401 }
3402 arg3 = static_cast< byte >(val3);
3403 }
3404 {
3405 PyThreadState* __tstate = wxPyBeginAllowThreads();
3406 result = (wxColour *)new wxColour(arg1,arg2,arg3);
3407 wxPyEndAllowThreads(__tstate);
3408 if (PyErr_Occurred()) SWIG_fail;
3409 }
3410 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3411 return resultobj;
3412 fail:
3413 return NULL;
3414 }
3415
3416
3417 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3418 PyObject *resultobj = 0;
3419 wxString *arg1 = 0 ;
3420 wxColour *result = 0 ;
3421 bool temp1 = false ;
3422 PyObject * obj0 = 0 ;
3423 char * kwnames[] = {
3424 (char *) "colorName", NULL
3425 };
3426
3427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3428 {
3429 arg1 = wxString_in_helper(obj0);
3430 if (arg1 == NULL) SWIG_fail;
3431 temp1 = true;
3432 }
3433 {
3434 if (!wxPyCheckForApp()) SWIG_fail;
3435 PyThreadState* __tstate = wxPyBeginAllowThreads();
3436 result = (wxColour *)new wxColour((wxString const &)*arg1);
3437 wxPyEndAllowThreads(__tstate);
3438 if (PyErr_Occurred()) SWIG_fail;
3439 }
3440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3441 {
3442 if (temp1)
3443 delete arg1;
3444 }
3445 return resultobj;
3446 fail:
3447 {
3448 if (temp1)
3449 delete arg1;
3450 }
3451 return NULL;
3452 }
3453
3454
3455 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3456 PyObject *resultobj = 0;
3457 unsigned long arg1 ;
3458 wxColour *result = 0 ;
3459 unsigned long val1 ;
3460 int ecode1 = 0 ;
3461 PyObject * obj0 = 0 ;
3462 char * kwnames[] = {
3463 (char *) "colRGB", NULL
3464 };
3465
3466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3467 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3468 if (!SWIG_IsOK(ecode1)) {
3469 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3470 }
3471 arg1 = static_cast< unsigned long >(val1);
3472 {
3473 PyThreadState* __tstate = wxPyBeginAllowThreads();
3474 result = (wxColour *)new wxColour(arg1);
3475 wxPyEndAllowThreads(__tstate);
3476 if (PyErr_Occurred()) SWIG_fail;
3477 }
3478 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3479 return resultobj;
3480 fail:
3481 return NULL;
3482 }
3483
3484
3485 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3486 PyObject *resultobj = 0;
3487 wxColour *arg1 = (wxColour *) 0 ;
3488 void *argp1 = 0 ;
3489 int res1 = 0 ;
3490 PyObject *swig_obj[1] ;
3491
3492 if (!args) SWIG_fail;
3493 swig_obj[0] = args;
3494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3495 if (!SWIG_IsOK(res1)) {
3496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3497 }
3498 arg1 = reinterpret_cast< wxColour * >(argp1);
3499 {
3500 PyThreadState* __tstate = wxPyBeginAllowThreads();
3501 delete arg1;
3502
3503 wxPyEndAllowThreads(__tstate);
3504 if (PyErr_Occurred()) SWIG_fail;
3505 }
3506 resultobj = SWIG_Py_Void();
3507 return resultobj;
3508 fail:
3509 return NULL;
3510 }
3511
3512
3513 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3514 PyObject *resultobj = 0;
3515 wxColour *arg1 = (wxColour *) 0 ;
3516 byte result;
3517 void *argp1 = 0 ;
3518 int res1 = 0 ;
3519 PyObject *swig_obj[1] ;
3520
3521 if (!args) SWIG_fail;
3522 swig_obj[0] = args;
3523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3524 if (!SWIG_IsOK(res1)) {
3525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3526 }
3527 arg1 = reinterpret_cast< wxColour * >(argp1);
3528 {
3529 PyThreadState* __tstate = wxPyBeginAllowThreads();
3530 result = (byte)(arg1)->Red();
3531 wxPyEndAllowThreads(__tstate);
3532 if (PyErr_Occurred()) SWIG_fail;
3533 }
3534 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3535 return resultobj;
3536 fail:
3537 return NULL;
3538 }
3539
3540
3541 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3542 PyObject *resultobj = 0;
3543 wxColour *arg1 = (wxColour *) 0 ;
3544 byte result;
3545 void *argp1 = 0 ;
3546 int res1 = 0 ;
3547 PyObject *swig_obj[1] ;
3548
3549 if (!args) SWIG_fail;
3550 swig_obj[0] = args;
3551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3552 if (!SWIG_IsOK(res1)) {
3553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3554 }
3555 arg1 = reinterpret_cast< wxColour * >(argp1);
3556 {
3557 PyThreadState* __tstate = wxPyBeginAllowThreads();
3558 result = (byte)(arg1)->Green();
3559 wxPyEndAllowThreads(__tstate);
3560 if (PyErr_Occurred()) SWIG_fail;
3561 }
3562 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3563 return resultobj;
3564 fail:
3565 return NULL;
3566 }
3567
3568
3569 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3570 PyObject *resultobj = 0;
3571 wxColour *arg1 = (wxColour *) 0 ;
3572 byte result;
3573 void *argp1 = 0 ;
3574 int res1 = 0 ;
3575 PyObject *swig_obj[1] ;
3576
3577 if (!args) SWIG_fail;
3578 swig_obj[0] = args;
3579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3580 if (!SWIG_IsOK(res1)) {
3581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3582 }
3583 arg1 = reinterpret_cast< wxColour * >(argp1);
3584 {
3585 PyThreadState* __tstate = wxPyBeginAllowThreads();
3586 result = (byte)(arg1)->Blue();
3587 wxPyEndAllowThreads(__tstate);
3588 if (PyErr_Occurred()) SWIG_fail;
3589 }
3590 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3591 return resultobj;
3592 fail:
3593 return NULL;
3594 }
3595
3596
3597 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3598 PyObject *resultobj = 0;
3599 wxColour *arg1 = (wxColour *) 0 ;
3600 bool result;
3601 void *argp1 = 0 ;
3602 int res1 = 0 ;
3603 PyObject *swig_obj[1] ;
3604
3605 if (!args) SWIG_fail;
3606 swig_obj[0] = args;
3607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3608 if (!SWIG_IsOK(res1)) {
3609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3610 }
3611 arg1 = reinterpret_cast< wxColour * >(argp1);
3612 {
3613 PyThreadState* __tstate = wxPyBeginAllowThreads();
3614 result = (bool)(arg1)->Ok();
3615 wxPyEndAllowThreads(__tstate);
3616 if (PyErr_Occurred()) SWIG_fail;
3617 }
3618 {
3619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3620 }
3621 return resultobj;
3622 fail:
3623 return NULL;
3624 }
3625
3626
3627 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3628 PyObject *resultobj = 0;
3629 wxColour *arg1 = (wxColour *) 0 ;
3630 byte arg2 ;
3631 byte arg3 ;
3632 byte arg4 ;
3633 void *argp1 = 0 ;
3634 int res1 = 0 ;
3635 unsigned char val2 ;
3636 int ecode2 = 0 ;
3637 unsigned char val3 ;
3638 int ecode3 = 0 ;
3639 unsigned char val4 ;
3640 int ecode4 = 0 ;
3641 PyObject * obj0 = 0 ;
3642 PyObject * obj1 = 0 ;
3643 PyObject * obj2 = 0 ;
3644 PyObject * obj3 = 0 ;
3645 char * kwnames[] = {
3646 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3647 };
3648
3649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3651 if (!SWIG_IsOK(res1)) {
3652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3653 }
3654 arg1 = reinterpret_cast< wxColour * >(argp1);
3655 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3656 if (!SWIG_IsOK(ecode2)) {
3657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3658 }
3659 arg2 = static_cast< byte >(val2);
3660 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3661 if (!SWIG_IsOK(ecode3)) {
3662 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3663 }
3664 arg3 = static_cast< byte >(val3);
3665 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3666 if (!SWIG_IsOK(ecode4)) {
3667 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3668 }
3669 arg4 = static_cast< byte >(val4);
3670 {
3671 PyThreadState* __tstate = wxPyBeginAllowThreads();
3672 (arg1)->Set(arg2,arg3,arg4);
3673 wxPyEndAllowThreads(__tstate);
3674 if (PyErr_Occurred()) SWIG_fail;
3675 }
3676 resultobj = SWIG_Py_Void();
3677 return resultobj;
3678 fail:
3679 return NULL;
3680 }
3681
3682
3683 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3684 PyObject *resultobj = 0;
3685 wxColour *arg1 = (wxColour *) 0 ;
3686 unsigned long arg2 ;
3687 void *argp1 = 0 ;
3688 int res1 = 0 ;
3689 unsigned long val2 ;
3690 int ecode2 = 0 ;
3691 PyObject * obj0 = 0 ;
3692 PyObject * obj1 = 0 ;
3693 char * kwnames[] = {
3694 (char *) "self",(char *) "colRGB", NULL
3695 };
3696
3697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
3698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3699 if (!SWIG_IsOK(res1)) {
3700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3701 }
3702 arg1 = reinterpret_cast< wxColour * >(argp1);
3703 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
3704 if (!SWIG_IsOK(ecode2)) {
3705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3706 }
3707 arg2 = static_cast< unsigned long >(val2);
3708 {
3709 PyThreadState* __tstate = wxPyBeginAllowThreads();
3710 (arg1)->Set(arg2);
3711 wxPyEndAllowThreads(__tstate);
3712 if (PyErr_Occurred()) SWIG_fail;
3713 }
3714 resultobj = SWIG_Py_Void();
3715 return resultobj;
3716 fail:
3717 return NULL;
3718 }
3719
3720
3721 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3722 PyObject *resultobj = 0;
3723 wxColour *arg1 = (wxColour *) 0 ;
3724 wxString *arg2 = 0 ;
3725 void *argp1 = 0 ;
3726 int res1 = 0 ;
3727 bool temp2 = false ;
3728 PyObject * obj0 = 0 ;
3729 PyObject * obj1 = 0 ;
3730 char * kwnames[] = {
3731 (char *) "self",(char *) "colourName", NULL
3732 };
3733
3734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
3735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3736 if (!SWIG_IsOK(res1)) {
3737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3738 }
3739 arg1 = reinterpret_cast< wxColour * >(argp1);
3740 {
3741 arg2 = wxString_in_helper(obj1);
3742 if (arg2 == NULL) SWIG_fail;
3743 temp2 = true;
3744 }
3745 {
3746 PyThreadState* __tstate = wxPyBeginAllowThreads();
3747 (arg1)->InitFromName((wxString const &)*arg2);
3748 wxPyEndAllowThreads(__tstate);
3749 if (PyErr_Occurred()) SWIG_fail;
3750 }
3751 resultobj = SWIG_Py_Void();
3752 {
3753 if (temp2)
3754 delete arg2;
3755 }
3756 return resultobj;
3757 fail:
3758 {
3759 if (temp2)
3760 delete arg2;
3761 }
3762 return NULL;
3763 }
3764
3765
3766 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3767 PyObject *resultobj = 0;
3768 wxColour *arg1 = (wxColour *) 0 ;
3769 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
3770 wxString result;
3771 void *argp1 = 0 ;
3772 int res1 = 0 ;
3773 long val2 ;
3774 int ecode2 = 0 ;
3775 PyObject * obj0 = 0 ;
3776 PyObject * obj1 = 0 ;
3777 char * kwnames[] = {
3778 (char *) "self",(char *) "flags", NULL
3779 };
3780
3781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
3782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3783 if (!SWIG_IsOK(res1)) {
3784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
3785 }
3786 arg1 = reinterpret_cast< wxColour * >(argp1);
3787 if (obj1) {
3788 ecode2 = SWIG_AsVal_long(obj1, &val2);
3789 if (!SWIG_IsOK(ecode2)) {
3790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
3791 }
3792 arg2 = static_cast< long >(val2);
3793 }
3794 {
3795 PyThreadState* __tstate = wxPyBeginAllowThreads();
3796 result = ((wxColour const *)arg1)->GetAsString(arg2);
3797 wxPyEndAllowThreads(__tstate);
3798 if (PyErr_Occurred()) SWIG_fail;
3799 }
3800 {
3801 #if wxUSE_UNICODE
3802 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3803 #else
3804 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3805 #endif
3806 }
3807 return resultobj;
3808 fail:
3809 return NULL;
3810 }
3811
3812
3813 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3814 PyObject *resultobj = 0;
3815 wxColour *arg1 = (wxColour *) 0 ;
3816 long 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_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3826 }
3827 arg1 = reinterpret_cast< wxColour * >(argp1);
3828 {
3829 PyThreadState* __tstate = wxPyBeginAllowThreads();
3830 result = (long)((wxColour const *)arg1)->GetPixel();
3831 wxPyEndAllowThreads(__tstate);
3832 if (PyErr_Occurred()) SWIG_fail;
3833 }
3834 resultobj = SWIG_From_long(static_cast< long >(result));
3835 return resultobj;
3836 fail:
3837 return NULL;
3838 }
3839
3840
3841 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3842 PyObject *resultobj = 0;
3843 wxColour *arg1 = (wxColour *) 0 ;
3844 PyObject *arg2 = (PyObject *) 0 ;
3845 bool result;
3846 void *argp1 = 0 ;
3847 int res1 = 0 ;
3848 PyObject * obj0 = 0 ;
3849 PyObject * obj1 = 0 ;
3850 char * kwnames[] = {
3851 (char *) "self",(char *) "other", NULL
3852 };
3853
3854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3856 if (!SWIG_IsOK(res1)) {
3857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
3858 }
3859 arg1 = reinterpret_cast< wxColour * >(argp1);
3860 arg2 = obj1;
3861 {
3862 result = (bool)wxColour___eq__(arg1,arg2);
3863 if (PyErr_Occurred()) SWIG_fail;
3864 }
3865 {
3866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3867 }
3868 return resultobj;
3869 fail:
3870 return NULL;
3871 }
3872
3873
3874 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3875 PyObject *resultobj = 0;
3876 wxColour *arg1 = (wxColour *) 0 ;
3877 PyObject *arg2 = (PyObject *) 0 ;
3878 bool result;
3879 void *argp1 = 0 ;
3880 int res1 = 0 ;
3881 PyObject * obj0 = 0 ;
3882 PyObject * obj1 = 0 ;
3883 char * kwnames[] = {
3884 (char *) "self",(char *) "other", NULL
3885 };
3886
3887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
3888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3889 if (!SWIG_IsOK(res1)) {
3890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
3891 }
3892 arg1 = reinterpret_cast< wxColour * >(argp1);
3893 arg2 = obj1;
3894 {
3895 result = (bool)wxColour___ne__(arg1,arg2);
3896 if (PyErr_Occurred()) SWIG_fail;
3897 }
3898 {
3899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3900 }
3901 return resultobj;
3902 fail:
3903 return NULL;
3904 }
3905
3906
3907 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3908 PyObject *resultobj = 0;
3909 wxColour *arg1 = (wxColour *) 0 ;
3910 PyObject *result = 0 ;
3911 void *argp1 = 0 ;
3912 int res1 = 0 ;
3913 PyObject *swig_obj[1] ;
3914
3915 if (!args) SWIG_fail;
3916 swig_obj[0] = args;
3917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3918 if (!SWIG_IsOK(res1)) {
3919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
3920 }
3921 arg1 = reinterpret_cast< wxColour * >(argp1);
3922 {
3923 PyThreadState* __tstate = wxPyBeginAllowThreads();
3924 result = (PyObject *)wxColour_Get(arg1);
3925 wxPyEndAllowThreads(__tstate);
3926 if (PyErr_Occurred()) SWIG_fail;
3927 }
3928 resultobj = result;
3929 return resultobj;
3930 fail:
3931 return NULL;
3932 }
3933
3934
3935 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3936 PyObject *resultobj = 0;
3937 wxColour *arg1 = (wxColour *) 0 ;
3938 unsigned long result;
3939 void *argp1 = 0 ;
3940 int res1 = 0 ;
3941 PyObject *swig_obj[1] ;
3942
3943 if (!args) SWIG_fail;
3944 swig_obj[0] = args;
3945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3946 if (!SWIG_IsOK(res1)) {
3947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3948 }
3949 arg1 = reinterpret_cast< wxColour * >(argp1);
3950 {
3951 PyThreadState* __tstate = wxPyBeginAllowThreads();
3952 result = (unsigned long)wxColour_GetRGB(arg1);
3953 wxPyEndAllowThreads(__tstate);
3954 if (PyErr_Occurred()) SWIG_fail;
3955 }
3956 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
3957 return resultobj;
3958 fail:
3959 return NULL;
3960 }
3961
3962
3963 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3964 PyObject *obj;
3965 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3966 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
3967 return SWIG_Py_Void();
3968 }
3969
3970 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3971 return SWIG_Python_InitShadowInstance(args);
3972 }
3973
3974 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3975 PyObject *resultobj = 0;
3976 int arg1 ;
3977 unsigned char *arg2 = (unsigned char *) 0 ;
3978 unsigned char *arg3 = (unsigned char *) 0 ;
3979 unsigned char *arg4 = (unsigned char *) 0 ;
3980 wxPalette *result = 0 ;
3981 int val1 ;
3982 int ecode1 = 0 ;
3983 void *argp2 = 0 ;
3984 int res2 = 0 ;
3985 void *argp3 = 0 ;
3986 int res3 = 0 ;
3987 void *argp4 = 0 ;
3988 int res4 = 0 ;
3989 PyObject * obj0 = 0 ;
3990 PyObject * obj1 = 0 ;
3991 PyObject * obj2 = 0 ;
3992 PyObject * obj3 = 0 ;
3993 char * kwnames[] = {
3994 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3995 };
3996
3997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3998 ecode1 = SWIG_AsVal_int(obj0, &val1);
3999 if (!SWIG_IsOK(ecode1)) {
4000 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4001 }
4002 arg1 = static_cast< int >(val1);
4003 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4004 if (!SWIG_IsOK(res2)) {
4005 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4006 }
4007 arg2 = reinterpret_cast< unsigned char * >(argp2);
4008 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4009 if (!SWIG_IsOK(res3)) {
4010 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4011 }
4012 arg3 = reinterpret_cast< unsigned char * >(argp3);
4013 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4014 if (!SWIG_IsOK(res4)) {
4015 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4016 }
4017 arg4 = reinterpret_cast< unsigned char * >(argp4);
4018 {
4019 if (!wxPyCheckForApp()) SWIG_fail;
4020 PyThreadState* __tstate = wxPyBeginAllowThreads();
4021 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4022 wxPyEndAllowThreads(__tstate);
4023 if (PyErr_Occurred()) SWIG_fail;
4024 }
4025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4026 return resultobj;
4027 fail:
4028 return NULL;
4029 }
4030
4031
4032 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4033 PyObject *resultobj = 0;
4034 wxPalette *arg1 = (wxPalette *) 0 ;
4035 void *argp1 = 0 ;
4036 int res1 = 0 ;
4037 PyObject *swig_obj[1] ;
4038
4039 if (!args) SWIG_fail;
4040 swig_obj[0] = args;
4041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4042 if (!SWIG_IsOK(res1)) {
4043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4044 }
4045 arg1 = reinterpret_cast< wxPalette * >(argp1);
4046 {
4047 PyThreadState* __tstate = wxPyBeginAllowThreads();
4048 delete arg1;
4049
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_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4061 PyObject *resultobj = 0;
4062 wxPalette *arg1 = (wxPalette *) 0 ;
4063 byte arg2 ;
4064 byte arg3 ;
4065 byte arg4 ;
4066 int result;
4067 void *argp1 = 0 ;
4068 int res1 = 0 ;
4069 unsigned char val2 ;
4070 int ecode2 = 0 ;
4071 unsigned char val3 ;
4072 int ecode3 = 0 ;
4073 unsigned char val4 ;
4074 int ecode4 = 0 ;
4075 PyObject * obj0 = 0 ;
4076 PyObject * obj1 = 0 ;
4077 PyObject * obj2 = 0 ;
4078 PyObject * obj3 = 0 ;
4079 char * kwnames[] = {
4080 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4081 };
4082
4083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4085 if (!SWIG_IsOK(res1)) {
4086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4087 }
4088 arg1 = reinterpret_cast< wxPalette * >(argp1);
4089 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4090 if (!SWIG_IsOK(ecode2)) {
4091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4092 }
4093 arg2 = static_cast< byte >(val2);
4094 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4095 if (!SWIG_IsOK(ecode3)) {
4096 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4097 }
4098 arg3 = static_cast< byte >(val3);
4099 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4100 if (!SWIG_IsOK(ecode4)) {
4101 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4102 }
4103 arg4 = static_cast< byte >(val4);
4104 {
4105 PyThreadState* __tstate = wxPyBeginAllowThreads();
4106 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4107 wxPyEndAllowThreads(__tstate);
4108 if (PyErr_Occurred()) SWIG_fail;
4109 }
4110 resultobj = SWIG_From_int(static_cast< int >(result));
4111 return resultobj;
4112 fail:
4113 return NULL;
4114 }
4115
4116
4117 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4118 PyObject *resultobj = 0;
4119 wxPalette *arg1 = (wxPalette *) 0 ;
4120 int arg2 ;
4121 byte *arg3 = (byte *) 0 ;
4122 byte *arg4 = (byte *) 0 ;
4123 byte *arg5 = (byte *) 0 ;
4124 bool result;
4125 void *argp1 = 0 ;
4126 int res1 = 0 ;
4127 int val2 ;
4128 int ecode2 = 0 ;
4129 byte temp3 ;
4130 int res3 = SWIG_TMPOBJ ;
4131 byte temp4 ;
4132 int res4 = SWIG_TMPOBJ ;
4133 byte temp5 ;
4134 int res5 = SWIG_TMPOBJ ;
4135 PyObject * obj0 = 0 ;
4136 PyObject * obj1 = 0 ;
4137 char * kwnames[] = {
4138 (char *) "self",(char *) "pixel", NULL
4139 };
4140
4141 arg3 = &temp3;
4142 arg4 = &temp4;
4143 arg5 = &temp5;
4144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4146 if (!SWIG_IsOK(res1)) {
4147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4148 }
4149 arg1 = reinterpret_cast< wxPalette * >(argp1);
4150 ecode2 = SWIG_AsVal_int(obj1, &val2);
4151 if (!SWIG_IsOK(ecode2)) {
4152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4153 }
4154 arg2 = static_cast< int >(val2);
4155 {
4156 PyThreadState* __tstate = wxPyBeginAllowThreads();
4157 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4158 wxPyEndAllowThreads(__tstate);
4159 if (PyErr_Occurred()) SWIG_fail;
4160 }
4161 {
4162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4163 }
4164 if (SWIG_IsTmpObj(res3)) {
4165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4166 } else {
4167 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4169 }
4170 if (SWIG_IsTmpObj(res4)) {
4171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4172 } else {
4173 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4174 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4175 }
4176 if (SWIG_IsTmpObj(res5)) {
4177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4178 } else {
4179 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4181 }
4182 return resultobj;
4183 fail:
4184 return NULL;
4185 }
4186
4187
4188 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4189 PyObject *resultobj = 0;
4190 wxPalette *arg1 = (wxPalette *) 0 ;
4191 int result;
4192 void *argp1 = 0 ;
4193 int res1 = 0 ;
4194 PyObject *swig_obj[1] ;
4195
4196 if (!args) SWIG_fail;
4197 swig_obj[0] = args;
4198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4199 if (!SWIG_IsOK(res1)) {
4200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4201 }
4202 arg1 = reinterpret_cast< wxPalette * >(argp1);
4203 {
4204 PyThreadState* __tstate = wxPyBeginAllowThreads();
4205 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4206 wxPyEndAllowThreads(__tstate);
4207 if (PyErr_Occurred()) SWIG_fail;
4208 }
4209 resultobj = SWIG_From_int(static_cast< int >(result));
4210 return resultobj;
4211 fail:
4212 return NULL;
4213 }
4214
4215
4216 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4217 PyObject *resultobj = 0;
4218 wxPalette *arg1 = (wxPalette *) 0 ;
4219 bool result;
4220 void *argp1 = 0 ;
4221 int res1 = 0 ;
4222 PyObject *swig_obj[1] ;
4223
4224 if (!args) SWIG_fail;
4225 swig_obj[0] = args;
4226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4227 if (!SWIG_IsOK(res1)) {
4228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4229 }
4230 arg1 = reinterpret_cast< wxPalette * >(argp1);
4231 {
4232 PyThreadState* __tstate = wxPyBeginAllowThreads();
4233 result = (bool)(arg1)->Ok();
4234 wxPyEndAllowThreads(__tstate);
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 *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4247 PyObject *obj;
4248 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4249 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4250 return SWIG_Py_Void();
4251 }
4252
4253 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4254 return SWIG_Python_InitShadowInstance(args);
4255 }
4256
4257 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4258 PyObject *resultobj = 0;
4259 wxColour *arg1 = 0 ;
4260 int arg2 = (int) 1 ;
4261 int arg3 = (int) wxSOLID ;
4262 wxPen *result = 0 ;
4263 wxColour temp1 ;
4264 int val2 ;
4265 int ecode2 = 0 ;
4266 int val3 ;
4267 int ecode3 = 0 ;
4268 PyObject * obj0 = 0 ;
4269 PyObject * obj1 = 0 ;
4270 PyObject * obj2 = 0 ;
4271 char * kwnames[] = {
4272 (char *) "colour",(char *) "width",(char *) "style", NULL
4273 };
4274
4275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4276 {
4277 arg1 = &temp1;
4278 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4279 }
4280 if (obj1) {
4281 ecode2 = SWIG_AsVal_int(obj1, &val2);
4282 if (!SWIG_IsOK(ecode2)) {
4283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4284 }
4285 arg2 = static_cast< int >(val2);
4286 }
4287 if (obj2) {
4288 ecode3 = SWIG_AsVal_int(obj2, &val3);
4289 if (!SWIG_IsOK(ecode3)) {
4290 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4291 }
4292 arg3 = static_cast< int >(val3);
4293 }
4294 {
4295 if (!wxPyCheckForApp()) SWIG_fail;
4296 PyThreadState* __tstate = wxPyBeginAllowThreads();
4297 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4298 wxPyEndAllowThreads(__tstate);
4299 if (PyErr_Occurred()) SWIG_fail;
4300 }
4301 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4302 return resultobj;
4303 fail:
4304 return NULL;
4305 }
4306
4307
4308 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4309 PyObject *resultobj = 0;
4310 wxPen *arg1 = (wxPen *) 0 ;
4311 void *argp1 = 0 ;
4312 int res1 = 0 ;
4313 PyObject *swig_obj[1] ;
4314
4315 if (!args) SWIG_fail;
4316 swig_obj[0] = args;
4317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4318 if (!SWIG_IsOK(res1)) {
4319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4320 }
4321 arg1 = reinterpret_cast< wxPen * >(argp1);
4322 {
4323 PyThreadState* __tstate = wxPyBeginAllowThreads();
4324 delete arg1;
4325
4326 wxPyEndAllowThreads(__tstate);
4327 if (PyErr_Occurred()) SWIG_fail;
4328 }
4329 resultobj = SWIG_Py_Void();
4330 return resultobj;
4331 fail:
4332 return NULL;
4333 }
4334
4335
4336 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4337 PyObject *resultobj = 0;
4338 wxPen *arg1 = (wxPen *) 0 ;
4339 int result;
4340 void *argp1 = 0 ;
4341 int res1 = 0 ;
4342 PyObject *swig_obj[1] ;
4343
4344 if (!args) SWIG_fail;
4345 swig_obj[0] = args;
4346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4347 if (!SWIG_IsOK(res1)) {
4348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4349 }
4350 arg1 = reinterpret_cast< wxPen * >(argp1);
4351 {
4352 PyThreadState* __tstate = wxPyBeginAllowThreads();
4353 result = (int)(arg1)->GetCap();
4354 wxPyEndAllowThreads(__tstate);
4355 if (PyErr_Occurred()) SWIG_fail;
4356 }
4357 resultobj = SWIG_From_int(static_cast< int >(result));
4358 return resultobj;
4359 fail:
4360 return NULL;
4361 }
4362
4363
4364 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4365 PyObject *resultobj = 0;
4366 wxPen *arg1 = (wxPen *) 0 ;
4367 wxColour result;
4368 void *argp1 = 0 ;
4369 int res1 = 0 ;
4370 PyObject *swig_obj[1] ;
4371
4372 if (!args) SWIG_fail;
4373 swig_obj[0] = args;
4374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4375 if (!SWIG_IsOK(res1)) {
4376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4377 }
4378 arg1 = reinterpret_cast< wxPen * >(argp1);
4379 {
4380 PyThreadState* __tstate = wxPyBeginAllowThreads();
4381 result = (arg1)->GetColour();
4382 wxPyEndAllowThreads(__tstate);
4383 if (PyErr_Occurred()) SWIG_fail;
4384 }
4385 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4386 return resultobj;
4387 fail:
4388 return NULL;
4389 }
4390
4391
4392 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4393 PyObject *resultobj = 0;
4394 wxPen *arg1 = (wxPen *) 0 ;
4395 int result;
4396 void *argp1 = 0 ;
4397 int res1 = 0 ;
4398 PyObject *swig_obj[1] ;
4399
4400 if (!args) SWIG_fail;
4401 swig_obj[0] = args;
4402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4403 if (!SWIG_IsOK(res1)) {
4404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4405 }
4406 arg1 = reinterpret_cast< wxPen * >(argp1);
4407 {
4408 PyThreadState* __tstate = wxPyBeginAllowThreads();
4409 result = (int)(arg1)->GetJoin();
4410 wxPyEndAllowThreads(__tstate);
4411 if (PyErr_Occurred()) SWIG_fail;
4412 }
4413 resultobj = SWIG_From_int(static_cast< int >(result));
4414 return resultobj;
4415 fail:
4416 return NULL;
4417 }
4418
4419
4420 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4421 PyObject *resultobj = 0;
4422 wxPen *arg1 = (wxPen *) 0 ;
4423 int result;
4424 void *argp1 = 0 ;
4425 int res1 = 0 ;
4426 PyObject *swig_obj[1] ;
4427
4428 if (!args) SWIG_fail;
4429 swig_obj[0] = args;
4430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4431 if (!SWIG_IsOK(res1)) {
4432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4433 }
4434 arg1 = reinterpret_cast< wxPen * >(argp1);
4435 {
4436 PyThreadState* __tstate = wxPyBeginAllowThreads();
4437 result = (int)(arg1)->GetStyle();
4438 wxPyEndAllowThreads(__tstate);
4439 if (PyErr_Occurred()) SWIG_fail;
4440 }
4441 resultobj = SWIG_From_int(static_cast< int >(result));
4442 return resultobj;
4443 fail:
4444 return NULL;
4445 }
4446
4447
4448 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4449 PyObject *resultobj = 0;
4450 wxPen *arg1 = (wxPen *) 0 ;
4451 int result;
4452 void *argp1 = 0 ;
4453 int res1 = 0 ;
4454 PyObject *swig_obj[1] ;
4455
4456 if (!args) SWIG_fail;
4457 swig_obj[0] = args;
4458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4459 if (!SWIG_IsOK(res1)) {
4460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4461 }
4462 arg1 = reinterpret_cast< wxPen * >(argp1);
4463 {
4464 PyThreadState* __tstate = wxPyBeginAllowThreads();
4465 result = (int)(arg1)->GetWidth();
4466 wxPyEndAllowThreads(__tstate);
4467 if (PyErr_Occurred()) SWIG_fail;
4468 }
4469 resultobj = SWIG_From_int(static_cast< int >(result));
4470 return resultobj;
4471 fail:
4472 return NULL;
4473 }
4474
4475
4476 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4477 PyObject *resultobj = 0;
4478 wxPen *arg1 = (wxPen *) 0 ;
4479 bool result;
4480 void *argp1 = 0 ;
4481 int res1 = 0 ;
4482 PyObject *swig_obj[1] ;
4483
4484 if (!args) SWIG_fail;
4485 swig_obj[0] = args;
4486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4487 if (!SWIG_IsOK(res1)) {
4488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4489 }
4490 arg1 = reinterpret_cast< wxPen * >(argp1);
4491 {
4492 PyThreadState* __tstate = wxPyBeginAllowThreads();
4493 result = (bool)(arg1)->Ok();
4494 wxPyEndAllowThreads(__tstate);
4495 if (PyErr_Occurred()) SWIG_fail;
4496 }
4497 {
4498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4499 }
4500 return resultobj;
4501 fail:
4502 return NULL;
4503 }
4504
4505
4506 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4507 PyObject *resultobj = 0;
4508 wxPen *arg1 = (wxPen *) 0 ;
4509 int arg2 ;
4510 void *argp1 = 0 ;
4511 int res1 = 0 ;
4512 int val2 ;
4513 int ecode2 = 0 ;
4514 PyObject * obj0 = 0 ;
4515 PyObject * obj1 = 0 ;
4516 char * kwnames[] = {
4517 (char *) "self",(char *) "cap_style", NULL
4518 };
4519
4520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4522 if (!SWIG_IsOK(res1)) {
4523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4524 }
4525 arg1 = reinterpret_cast< wxPen * >(argp1);
4526 ecode2 = SWIG_AsVal_int(obj1, &val2);
4527 if (!SWIG_IsOK(ecode2)) {
4528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4529 }
4530 arg2 = static_cast< int >(val2);
4531 {
4532 PyThreadState* __tstate = wxPyBeginAllowThreads();
4533 (arg1)->SetCap(arg2);
4534 wxPyEndAllowThreads(__tstate);
4535 if (PyErr_Occurred()) SWIG_fail;
4536 }
4537 resultobj = SWIG_Py_Void();
4538 return resultobj;
4539 fail:
4540 return NULL;
4541 }
4542
4543
4544 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4545 PyObject *resultobj = 0;
4546 wxPen *arg1 = (wxPen *) 0 ;
4547 wxColour *arg2 = 0 ;
4548 void *argp1 = 0 ;
4549 int res1 = 0 ;
4550 wxColour temp2 ;
4551 PyObject * obj0 = 0 ;
4552 PyObject * obj1 = 0 ;
4553 char * kwnames[] = {
4554 (char *) "self",(char *) "colour", NULL
4555 };
4556
4557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4559 if (!SWIG_IsOK(res1)) {
4560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4561 }
4562 arg1 = reinterpret_cast< wxPen * >(argp1);
4563 {
4564 arg2 = &temp2;
4565 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4566 }
4567 {
4568 PyThreadState* __tstate = wxPyBeginAllowThreads();
4569 (arg1)->SetColour(*arg2);
4570 wxPyEndAllowThreads(__tstate);
4571 if (PyErr_Occurred()) SWIG_fail;
4572 }
4573 resultobj = SWIG_Py_Void();
4574 return resultobj;
4575 fail:
4576 return NULL;
4577 }
4578
4579
4580 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4581 PyObject *resultobj = 0;
4582 wxPen *arg1 = (wxPen *) 0 ;
4583 int arg2 ;
4584 void *argp1 = 0 ;
4585 int res1 = 0 ;
4586 int val2 ;
4587 int ecode2 = 0 ;
4588 PyObject * obj0 = 0 ;
4589 PyObject * obj1 = 0 ;
4590 char * kwnames[] = {
4591 (char *) "self",(char *) "join_style", NULL
4592 };
4593
4594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4596 if (!SWIG_IsOK(res1)) {
4597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4598 }
4599 arg1 = reinterpret_cast< wxPen * >(argp1);
4600 ecode2 = SWIG_AsVal_int(obj1, &val2);
4601 if (!SWIG_IsOK(ecode2)) {
4602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4603 }
4604 arg2 = static_cast< int >(val2);
4605 {
4606 PyThreadState* __tstate = wxPyBeginAllowThreads();
4607 (arg1)->SetJoin(arg2);
4608 wxPyEndAllowThreads(__tstate);
4609 if (PyErr_Occurred()) SWIG_fail;
4610 }
4611 resultobj = SWIG_Py_Void();
4612 return resultobj;
4613 fail:
4614 return NULL;
4615 }
4616
4617
4618 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4619 PyObject *resultobj = 0;
4620 wxPen *arg1 = (wxPen *) 0 ;
4621 int arg2 ;
4622 void *argp1 = 0 ;
4623 int res1 = 0 ;
4624 int val2 ;
4625 int ecode2 = 0 ;
4626 PyObject * obj0 = 0 ;
4627 PyObject * obj1 = 0 ;
4628 char * kwnames[] = {
4629 (char *) "self",(char *) "style", NULL
4630 };
4631
4632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4634 if (!SWIG_IsOK(res1)) {
4635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4636 }
4637 arg1 = reinterpret_cast< wxPen * >(argp1);
4638 ecode2 = SWIG_AsVal_int(obj1, &val2);
4639 if (!SWIG_IsOK(ecode2)) {
4640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4641 }
4642 arg2 = static_cast< int >(val2);
4643 {
4644 PyThreadState* __tstate = wxPyBeginAllowThreads();
4645 (arg1)->SetStyle(arg2);
4646 wxPyEndAllowThreads(__tstate);
4647 if (PyErr_Occurred()) SWIG_fail;
4648 }
4649 resultobj = SWIG_Py_Void();
4650 return resultobj;
4651 fail:
4652 return NULL;
4653 }
4654
4655
4656 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4657 PyObject *resultobj = 0;
4658 wxPen *arg1 = (wxPen *) 0 ;
4659 int arg2 ;
4660 void *argp1 = 0 ;
4661 int res1 = 0 ;
4662 int val2 ;
4663 int ecode2 = 0 ;
4664 PyObject * obj0 = 0 ;
4665 PyObject * obj1 = 0 ;
4666 char * kwnames[] = {
4667 (char *) "self",(char *) "width", NULL
4668 };
4669
4670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
4671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4672 if (!SWIG_IsOK(res1)) {
4673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4674 }
4675 arg1 = reinterpret_cast< wxPen * >(argp1);
4676 ecode2 = SWIG_AsVal_int(obj1, &val2);
4677 if (!SWIG_IsOK(ecode2)) {
4678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
4679 }
4680 arg2 = static_cast< int >(val2);
4681 {
4682 PyThreadState* __tstate = wxPyBeginAllowThreads();
4683 (arg1)->SetWidth(arg2);
4684 wxPyEndAllowThreads(__tstate);
4685 if (PyErr_Occurred()) SWIG_fail;
4686 }
4687 resultobj = SWIG_Py_Void();
4688 return resultobj;
4689 fail:
4690 return NULL;
4691 }
4692
4693
4694 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4695 PyObject *resultobj = 0;
4696 wxPen *arg1 = (wxPen *) 0 ;
4697 int arg2 ;
4698 wxDash *arg3 = (wxDash *) 0 ;
4699 void *argp1 = 0 ;
4700 int res1 = 0 ;
4701 PyObject * obj0 = 0 ;
4702 PyObject * obj1 = 0 ;
4703 char * kwnames[] = {
4704 (char *) "self",(char *) "dashes", NULL
4705 };
4706
4707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
4708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4709 if (!SWIG_IsOK(res1)) {
4710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4711 }
4712 arg1 = reinterpret_cast< wxPen * >(argp1);
4713 {
4714 arg2 = PyList_Size(obj1);
4715 arg3 = (wxDash*)byte_LIST_helper(obj1);
4716 if (arg3 == NULL) SWIG_fail;
4717 }
4718 {
4719 PyThreadState* __tstate = wxPyBeginAllowThreads();
4720 (arg1)->SetDashes(arg2,arg3);
4721 wxPyEndAllowThreads(__tstate);
4722 if (PyErr_Occurred()) SWIG_fail;
4723 }
4724 resultobj = SWIG_Py_Void();
4725 {
4726 if (arg3) delete [] arg3;
4727 }
4728 return resultobj;
4729 fail:
4730 {
4731 if (arg3) delete [] arg3;
4732 }
4733 return NULL;
4734 }
4735
4736
4737 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4738 PyObject *resultobj = 0;
4739 wxPen *arg1 = (wxPen *) 0 ;
4740 PyObject *result = 0 ;
4741 void *argp1 = 0 ;
4742 int res1 = 0 ;
4743 PyObject *swig_obj[1] ;
4744
4745 if (!args) SWIG_fail;
4746 swig_obj[0] = args;
4747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4748 if (!SWIG_IsOK(res1)) {
4749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4750 }
4751 arg1 = reinterpret_cast< wxPen * >(argp1);
4752 {
4753 PyThreadState* __tstate = wxPyBeginAllowThreads();
4754 result = (PyObject *)wxPen_GetDashes(arg1);
4755 wxPyEndAllowThreads(__tstate);
4756 if (PyErr_Occurred()) SWIG_fail;
4757 }
4758 resultobj = result;
4759 return resultobj;
4760 fail:
4761 return NULL;
4762 }
4763
4764
4765 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4766 PyObject *resultobj = 0;
4767 wxPen *arg1 = (wxPen *) 0 ;
4768 PyObject *arg2 = (PyObject *) 0 ;
4769 PyObject *arg3 = (PyObject *) 0 ;
4770 void *argp1 = 0 ;
4771 int res1 = 0 ;
4772 PyObject * obj0 = 0 ;
4773 PyObject * obj1 = 0 ;
4774 PyObject * obj2 = 0 ;
4775 char * kwnames[] = {
4776 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
4777 };
4778
4779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4781 if (!SWIG_IsOK(res1)) {
4782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4783 }
4784 arg1 = reinterpret_cast< wxPen * >(argp1);
4785 arg2 = obj1;
4786 arg3 = obj2;
4787 {
4788 PyThreadState* __tstate = wxPyBeginAllowThreads();
4789 wxPen__SetDashes(arg1,arg2,arg3);
4790 wxPyEndAllowThreads(__tstate);
4791 if (PyErr_Occurred()) SWIG_fail;
4792 }
4793 resultobj = SWIG_Py_Void();
4794 return resultobj;
4795 fail:
4796 return NULL;
4797 }
4798
4799
4800 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4801 PyObject *resultobj = 0;
4802 wxPen *arg1 = (wxPen *) 0 ;
4803 int result;
4804 void *argp1 = 0 ;
4805 int res1 = 0 ;
4806 PyObject *swig_obj[1] ;
4807
4808 if (!args) SWIG_fail;
4809 swig_obj[0] = args;
4810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4811 if (!SWIG_IsOK(res1)) {
4812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
4813 }
4814 arg1 = reinterpret_cast< wxPen * >(argp1);
4815 {
4816 PyThreadState* __tstate = wxPyBeginAllowThreads();
4817 result = (int)((wxPen const *)arg1)->GetDashCount();
4818 wxPyEndAllowThreads(__tstate);
4819 if (PyErr_Occurred()) SWIG_fail;
4820 }
4821 resultobj = SWIG_From_int(static_cast< int >(result));
4822 return resultobj;
4823 fail:
4824 return NULL;
4825 }
4826
4827
4828 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4829 PyObject *resultobj = 0;
4830 wxPen *arg1 = (wxPen *) 0 ;
4831 wxPen *arg2 = (wxPen *) 0 ;
4832 bool result;
4833 void *argp1 = 0 ;
4834 int res1 = 0 ;
4835 void *argp2 = 0 ;
4836 int res2 = 0 ;
4837 PyObject * obj0 = 0 ;
4838 PyObject * obj1 = 0 ;
4839 char * kwnames[] = {
4840 (char *) "self",(char *) "other", NULL
4841 };
4842
4843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4845 if (!SWIG_IsOK(res1)) {
4846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
4847 }
4848 arg1 = reinterpret_cast< wxPen * >(argp1);
4849 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4850 if (!SWIG_IsOK(res2)) {
4851 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
4852 }
4853 arg2 = reinterpret_cast< wxPen * >(argp2);
4854 {
4855 PyThreadState* __tstate = wxPyBeginAllowThreads();
4856 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
4857 wxPyEndAllowThreads(__tstate);
4858 if (PyErr_Occurred()) SWIG_fail;
4859 }
4860 {
4861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4862 }
4863 return resultobj;
4864 fail:
4865 return NULL;
4866 }
4867
4868
4869 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4870 PyObject *resultobj = 0;
4871 wxPen *arg1 = (wxPen *) 0 ;
4872 wxPen *arg2 = (wxPen *) 0 ;
4873 bool result;
4874 void *argp1 = 0 ;
4875 int res1 = 0 ;
4876 void *argp2 = 0 ;
4877 int res2 = 0 ;
4878 PyObject * obj0 = 0 ;
4879 PyObject * obj1 = 0 ;
4880 char * kwnames[] = {
4881 (char *) "self",(char *) "other", NULL
4882 };
4883
4884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4886 if (!SWIG_IsOK(res1)) {
4887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
4888 }
4889 arg1 = reinterpret_cast< wxPen * >(argp1);
4890 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4891 if (!SWIG_IsOK(res2)) {
4892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
4893 }
4894 arg2 = reinterpret_cast< wxPen * >(argp2);
4895 {
4896 PyThreadState* __tstate = wxPyBeginAllowThreads();
4897 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
4898 wxPyEndAllowThreads(__tstate);
4899 if (PyErr_Occurred()) SWIG_fail;
4900 }
4901 {
4902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4903 }
4904 return resultobj;
4905 fail:
4906 return NULL;
4907 }
4908
4909
4910 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4911 PyObject *obj;
4912 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4913 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
4914 return SWIG_Py_Void();
4915 }
4916
4917 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4918 return SWIG_Python_InitShadowInstance(args);
4919 }
4920
4921 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4922 PyObject *resultobj = 0;
4923 wxColour *arg1 = 0 ;
4924 int arg2 = (int) wxSOLID ;
4925 wxBrush *result = 0 ;
4926 wxColour temp1 ;
4927 int val2 ;
4928 int ecode2 = 0 ;
4929 PyObject * obj0 = 0 ;
4930 PyObject * obj1 = 0 ;
4931 char * kwnames[] = {
4932 (char *) "colour",(char *) "style", NULL
4933 };
4934
4935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
4936 {
4937 arg1 = &temp1;
4938 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4939 }
4940 if (obj1) {
4941 ecode2 = SWIG_AsVal_int(obj1, &val2);
4942 if (!SWIG_IsOK(ecode2)) {
4943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
4944 }
4945 arg2 = static_cast< int >(val2);
4946 }
4947 {
4948 if (!wxPyCheckForApp()) SWIG_fail;
4949 PyThreadState* __tstate = wxPyBeginAllowThreads();
4950 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
4951 wxPyEndAllowThreads(__tstate);
4952 if (PyErr_Occurred()) SWIG_fail;
4953 }
4954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
4955 return resultobj;
4956 fail:
4957 return NULL;
4958 }
4959
4960
4961 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4962 PyObject *resultobj = 0;
4963 wxBitmap *arg1 = 0 ;
4964 wxBrush *result = 0 ;
4965 void *argp1 = 0 ;
4966 int res1 = 0 ;
4967 PyObject * obj0 = 0 ;
4968 char * kwnames[] = {
4969 (char *) "stippleBitmap", NULL
4970 };
4971
4972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
4973 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
4974 if (!SWIG_IsOK(res1)) {
4975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4976 }
4977 if (!argp1) {
4978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4979 }
4980 arg1 = reinterpret_cast< wxBitmap * >(argp1);
4981 {
4982 if (!wxPyCheckForApp()) SWIG_fail;
4983 PyThreadState* __tstate = wxPyBeginAllowThreads();
4984 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
4985 wxPyEndAllowThreads(__tstate);
4986 if (PyErr_Occurred()) SWIG_fail;
4987 }
4988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
4989 return resultobj;
4990 fail:
4991 return NULL;
4992 }
4993
4994
4995 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4996 PyObject *resultobj = 0;
4997 wxBrush *arg1 = (wxBrush *) 0 ;
4998 void *argp1 = 0 ;
4999 int res1 = 0 ;
5000 PyObject *swig_obj[1] ;
5001
5002 if (!args) SWIG_fail;
5003 swig_obj[0] = args;
5004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5005 if (!SWIG_IsOK(res1)) {
5006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5007 }
5008 arg1 = reinterpret_cast< wxBrush * >(argp1);
5009 {
5010 PyThreadState* __tstate = wxPyBeginAllowThreads();
5011 delete arg1;
5012
5013 wxPyEndAllowThreads(__tstate);
5014 if (PyErr_Occurred()) SWIG_fail;
5015 }
5016 resultobj = SWIG_Py_Void();
5017 return resultobj;
5018 fail:
5019 return NULL;
5020 }
5021
5022
5023 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5024 PyObject *resultobj = 0;
5025 wxBrush *arg1 = (wxBrush *) 0 ;
5026 wxColour *arg2 = 0 ;
5027 void *argp1 = 0 ;
5028 int res1 = 0 ;
5029 wxColour temp2 ;
5030 PyObject * obj0 = 0 ;
5031 PyObject * obj1 = 0 ;
5032 char * kwnames[] = {
5033 (char *) "self",(char *) "col", NULL
5034 };
5035
5036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5038 if (!SWIG_IsOK(res1)) {
5039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5040 }
5041 arg1 = reinterpret_cast< wxBrush * >(argp1);
5042 {
5043 arg2 = &temp2;
5044 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5045 }
5046 {
5047 PyThreadState* __tstate = wxPyBeginAllowThreads();
5048 (arg1)->SetColour((wxColour const &)*arg2);
5049 wxPyEndAllowThreads(__tstate);
5050 if (PyErr_Occurred()) SWIG_fail;
5051 }
5052 resultobj = SWIG_Py_Void();
5053 return resultobj;
5054 fail:
5055 return NULL;
5056 }
5057
5058
5059 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5060 PyObject *resultobj = 0;
5061 wxBrush *arg1 = (wxBrush *) 0 ;
5062 int arg2 ;
5063 void *argp1 = 0 ;
5064 int res1 = 0 ;
5065 int val2 ;
5066 int ecode2 = 0 ;
5067 PyObject * obj0 = 0 ;
5068 PyObject * obj1 = 0 ;
5069 char * kwnames[] = {
5070 (char *) "self",(char *) "style", NULL
5071 };
5072
5073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5075 if (!SWIG_IsOK(res1)) {
5076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5077 }
5078 arg1 = reinterpret_cast< wxBrush * >(argp1);
5079 ecode2 = SWIG_AsVal_int(obj1, &val2);
5080 if (!SWIG_IsOK(ecode2)) {
5081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5082 }
5083 arg2 = static_cast< int >(val2);
5084 {
5085 PyThreadState* __tstate = wxPyBeginAllowThreads();
5086 (arg1)->SetStyle(arg2);
5087 wxPyEndAllowThreads(__tstate);
5088 if (PyErr_Occurred()) SWIG_fail;
5089 }
5090 resultobj = SWIG_Py_Void();
5091 return resultobj;
5092 fail:
5093 return NULL;
5094 }
5095
5096
5097 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5098 PyObject *resultobj = 0;
5099 wxBrush *arg1 = (wxBrush *) 0 ;
5100 wxBitmap *arg2 = 0 ;
5101 void *argp1 = 0 ;
5102 int res1 = 0 ;
5103 void *argp2 = 0 ;
5104 int res2 = 0 ;
5105 PyObject * obj0 = 0 ;
5106 PyObject * obj1 = 0 ;
5107 char * kwnames[] = {
5108 (char *) "self",(char *) "stipple", NULL
5109 };
5110
5111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5113 if (!SWIG_IsOK(res1)) {
5114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5115 }
5116 arg1 = reinterpret_cast< wxBrush * >(argp1);
5117 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5118 if (!SWIG_IsOK(res2)) {
5119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5120 }
5121 if (!argp2) {
5122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5123 }
5124 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5125 {
5126 PyThreadState* __tstate = wxPyBeginAllowThreads();
5127 (arg1)->SetStipple((wxBitmap const &)*arg2);
5128 wxPyEndAllowThreads(__tstate);
5129 if (PyErr_Occurred()) SWIG_fail;
5130 }
5131 resultobj = SWIG_Py_Void();
5132 return resultobj;
5133 fail:
5134 return NULL;
5135 }
5136
5137
5138 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5139 PyObject *resultobj = 0;
5140 wxBrush *arg1 = (wxBrush *) 0 ;
5141 wxColour result;
5142 void *argp1 = 0 ;
5143 int res1 = 0 ;
5144 PyObject *swig_obj[1] ;
5145
5146 if (!args) SWIG_fail;
5147 swig_obj[0] = args;
5148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5149 if (!SWIG_IsOK(res1)) {
5150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5151 }
5152 arg1 = reinterpret_cast< wxBrush * >(argp1);
5153 {
5154 PyThreadState* __tstate = wxPyBeginAllowThreads();
5155 result = ((wxBrush const *)arg1)->GetColour();
5156 wxPyEndAllowThreads(__tstate);
5157 if (PyErr_Occurred()) SWIG_fail;
5158 }
5159 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5160 return resultobj;
5161 fail:
5162 return NULL;
5163 }
5164
5165
5166 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5167 PyObject *resultobj = 0;
5168 wxBrush *arg1 = (wxBrush *) 0 ;
5169 int result;
5170 void *argp1 = 0 ;
5171 int res1 = 0 ;
5172 PyObject *swig_obj[1] ;
5173
5174 if (!args) SWIG_fail;
5175 swig_obj[0] = args;
5176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5177 if (!SWIG_IsOK(res1)) {
5178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5179 }
5180 arg1 = reinterpret_cast< wxBrush * >(argp1);
5181 {
5182 PyThreadState* __tstate = wxPyBeginAllowThreads();
5183 result = (int)((wxBrush const *)arg1)->GetStyle();
5184 wxPyEndAllowThreads(__tstate);
5185 if (PyErr_Occurred()) SWIG_fail;
5186 }
5187 resultobj = SWIG_From_int(static_cast< int >(result));
5188 return resultobj;
5189 fail:
5190 return NULL;
5191 }
5192
5193
5194 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5195 PyObject *resultobj = 0;
5196 wxBrush *arg1 = (wxBrush *) 0 ;
5197 wxBitmap *result = 0 ;
5198 void *argp1 = 0 ;
5199 int res1 = 0 ;
5200 PyObject *swig_obj[1] ;
5201
5202 if (!args) SWIG_fail;
5203 swig_obj[0] = args;
5204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5205 if (!SWIG_IsOK(res1)) {
5206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5207 }
5208 arg1 = reinterpret_cast< wxBrush * >(argp1);
5209 {
5210 PyThreadState* __tstate = wxPyBeginAllowThreads();
5211 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5212 wxPyEndAllowThreads(__tstate);
5213 if (PyErr_Occurred()) SWIG_fail;
5214 }
5215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5216 return resultobj;
5217 fail:
5218 return NULL;
5219 }
5220
5221
5222 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5223 PyObject *resultobj = 0;
5224 wxBrush *arg1 = (wxBrush *) 0 ;
5225 bool result;
5226 void *argp1 = 0 ;
5227 int res1 = 0 ;
5228 PyObject *swig_obj[1] ;
5229
5230 if (!args) SWIG_fail;
5231 swig_obj[0] = args;
5232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5233 if (!SWIG_IsOK(res1)) {
5234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5235 }
5236 arg1 = reinterpret_cast< wxBrush * >(argp1);
5237 {
5238 PyThreadState* __tstate = wxPyBeginAllowThreads();
5239 result = (bool)((wxBrush const *)arg1)->IsHatch();
5240 wxPyEndAllowThreads(__tstate);
5241 if (PyErr_Occurred()) SWIG_fail;
5242 }
5243 {
5244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5245 }
5246 return resultobj;
5247 fail:
5248 return NULL;
5249 }
5250
5251
5252 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5253 PyObject *resultobj = 0;
5254 wxBrush *arg1 = (wxBrush *) 0 ;
5255 bool result;
5256 void *argp1 = 0 ;
5257 int res1 = 0 ;
5258 PyObject *swig_obj[1] ;
5259
5260 if (!args) SWIG_fail;
5261 swig_obj[0] = args;
5262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5263 if (!SWIG_IsOK(res1)) {
5264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5265 }
5266 arg1 = reinterpret_cast< wxBrush * >(argp1);
5267 {
5268 PyThreadState* __tstate = wxPyBeginAllowThreads();
5269 result = (bool)(arg1)->Ok();
5270 wxPyEndAllowThreads(__tstate);
5271 if (PyErr_Occurred()) SWIG_fail;
5272 }
5273 {
5274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5275 }
5276 return resultobj;
5277 fail:
5278 return NULL;
5279 }
5280
5281
5282 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5283 PyObject *obj;
5284 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5285 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5286 return SWIG_Py_Void();
5287 }
5288
5289 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5290 return SWIG_Python_InitShadowInstance(args);
5291 }
5292
5293 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5294 PyObject *resultobj = 0;
5295 wxString *arg1 = 0 ;
5296 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5297 wxBitmap *result = 0 ;
5298 bool temp1 = false ;
5299 int val2 ;
5300 int ecode2 = 0 ;
5301 PyObject * obj0 = 0 ;
5302 PyObject * obj1 = 0 ;
5303 char * kwnames[] = {
5304 (char *) "name",(char *) "type", NULL
5305 };
5306
5307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5308 {
5309 arg1 = wxString_in_helper(obj0);
5310 if (arg1 == NULL) SWIG_fail;
5311 temp1 = true;
5312 }
5313 if (obj1) {
5314 ecode2 = SWIG_AsVal_int(obj1, &val2);
5315 if (!SWIG_IsOK(ecode2)) {
5316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5317 }
5318 arg2 = static_cast< wxBitmapType >(val2);
5319 }
5320 {
5321 if (!wxPyCheckForApp()) SWIG_fail;
5322 PyThreadState* __tstate = wxPyBeginAllowThreads();
5323 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5324 wxPyEndAllowThreads(__tstate);
5325 if (PyErr_Occurred()) SWIG_fail;
5326 }
5327 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5328 {
5329 if (temp1)
5330 delete arg1;
5331 }
5332 return resultobj;
5333 fail:
5334 {
5335 if (temp1)
5336 delete arg1;
5337 }
5338 return NULL;
5339 }
5340
5341
5342 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5343 PyObject *resultobj = 0;
5344 wxBitmap *arg1 = (wxBitmap *) 0 ;
5345 void *argp1 = 0 ;
5346 int res1 = 0 ;
5347 PyObject *swig_obj[1] ;
5348
5349 if (!args) SWIG_fail;
5350 swig_obj[0] = args;
5351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5352 if (!SWIG_IsOK(res1)) {
5353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5354 }
5355 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5356 {
5357 PyThreadState* __tstate = wxPyBeginAllowThreads();
5358 delete arg1;
5359
5360 wxPyEndAllowThreads(__tstate);
5361 if (PyErr_Occurred()) SWIG_fail;
5362 }
5363 resultobj = SWIG_Py_Void();
5364 return resultobj;
5365 fail:
5366 return NULL;
5367 }
5368
5369
5370 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5371 PyObject *resultobj = 0;
5372 int arg1 ;
5373 int arg2 ;
5374 int arg3 = (int) -1 ;
5375 wxBitmap *result = 0 ;
5376 int val1 ;
5377 int ecode1 = 0 ;
5378 int val2 ;
5379 int ecode2 = 0 ;
5380 int val3 ;
5381 int ecode3 = 0 ;
5382 PyObject * obj0 = 0 ;
5383 PyObject * obj1 = 0 ;
5384 PyObject * obj2 = 0 ;
5385 char * kwnames[] = {
5386 (char *) "width",(char *) "height",(char *) "depth", NULL
5387 };
5388
5389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5390 ecode1 = SWIG_AsVal_int(obj0, &val1);
5391 if (!SWIG_IsOK(ecode1)) {
5392 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5393 }
5394 arg1 = static_cast< int >(val1);
5395 ecode2 = SWIG_AsVal_int(obj1, &val2);
5396 if (!SWIG_IsOK(ecode2)) {
5397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5398 }
5399 arg2 = static_cast< int >(val2);
5400 if (obj2) {
5401 ecode3 = SWIG_AsVal_int(obj2, &val3);
5402 if (!SWIG_IsOK(ecode3)) {
5403 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5404 }
5405 arg3 = static_cast< int >(val3);
5406 }
5407 {
5408 if (!wxPyCheckForApp()) SWIG_fail;
5409 PyThreadState* __tstate = wxPyBeginAllowThreads();
5410 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5411 wxPyEndAllowThreads(__tstate);
5412 if (PyErr_Occurred()) SWIG_fail;
5413 }
5414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5415 return resultobj;
5416 fail:
5417 return NULL;
5418 }
5419
5420
5421 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5422 PyObject *resultobj = 0;
5423 wxIcon *arg1 = 0 ;
5424 wxBitmap *result = 0 ;
5425 void *argp1 = 0 ;
5426 int res1 = 0 ;
5427 PyObject * obj0 = 0 ;
5428 char * kwnames[] = {
5429 (char *) "icon", NULL
5430 };
5431
5432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5433 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5434 if (!SWIG_IsOK(res1)) {
5435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5436 }
5437 if (!argp1) {
5438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5439 }
5440 arg1 = reinterpret_cast< wxIcon * >(argp1);
5441 {
5442 if (!wxPyCheckForApp()) SWIG_fail;
5443 PyThreadState* __tstate = wxPyBeginAllowThreads();
5444 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5445 wxPyEndAllowThreads(__tstate);
5446 if (PyErr_Occurred()) SWIG_fail;
5447 }
5448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5449 return resultobj;
5450 fail:
5451 return NULL;
5452 }
5453
5454
5455 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5456 PyObject *resultobj = 0;
5457 wxImage *arg1 = 0 ;
5458 int arg2 = (int) -1 ;
5459 wxBitmap *result = 0 ;
5460 void *argp1 = 0 ;
5461 int res1 = 0 ;
5462 int val2 ;
5463 int ecode2 = 0 ;
5464 PyObject * obj0 = 0 ;
5465 PyObject * obj1 = 0 ;
5466 char * kwnames[] = {
5467 (char *) "image",(char *) "depth", NULL
5468 };
5469
5470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5471 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5472 if (!SWIG_IsOK(res1)) {
5473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5474 }
5475 if (!argp1) {
5476 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5477 }
5478 arg1 = reinterpret_cast< wxImage * >(argp1);
5479 if (obj1) {
5480 ecode2 = SWIG_AsVal_int(obj1, &val2);
5481 if (!SWIG_IsOK(ecode2)) {
5482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5483 }
5484 arg2 = static_cast< int >(val2);
5485 }
5486 {
5487 if (!wxPyCheckForApp()) SWIG_fail;
5488 PyThreadState* __tstate = wxPyBeginAllowThreads();
5489 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5490 wxPyEndAllowThreads(__tstate);
5491 if (PyErr_Occurred()) SWIG_fail;
5492 }
5493 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5494 return resultobj;
5495 fail:
5496 return NULL;
5497 }
5498
5499
5500 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5501 PyObject *resultobj = 0;
5502 PyObject *arg1 = (PyObject *) 0 ;
5503 wxBitmap *result = 0 ;
5504 PyObject * obj0 = 0 ;
5505 char * kwnames[] = {
5506 (char *) "listOfStrings", NULL
5507 };
5508
5509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5510 arg1 = obj0;
5511 {
5512 if (!wxPyCheckForApp()) SWIG_fail;
5513 PyThreadState* __tstate = wxPyBeginAllowThreads();
5514 result = (wxBitmap *)new_wxBitmap(arg1);
5515 wxPyEndAllowThreads(__tstate);
5516 if (PyErr_Occurred()) SWIG_fail;
5517 }
5518 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5519 return resultobj;
5520 fail:
5521 return NULL;
5522 }
5523
5524
5525 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5526 PyObject *resultobj = 0;
5527 PyObject *arg1 = (PyObject *) 0 ;
5528 int arg2 ;
5529 int arg3 ;
5530 int arg4 = (int) 1 ;
5531 wxBitmap *result = 0 ;
5532 int val2 ;
5533 int ecode2 = 0 ;
5534 int val3 ;
5535 int ecode3 = 0 ;
5536 int val4 ;
5537 int ecode4 = 0 ;
5538 PyObject * obj0 = 0 ;
5539 PyObject * obj1 = 0 ;
5540 PyObject * obj2 = 0 ;
5541 PyObject * obj3 = 0 ;
5542 char * kwnames[] = {
5543 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5544 };
5545
5546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5547 arg1 = obj0;
5548 ecode2 = SWIG_AsVal_int(obj1, &val2);
5549 if (!SWIG_IsOK(ecode2)) {
5550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5551 }
5552 arg2 = static_cast< int >(val2);
5553 ecode3 = SWIG_AsVal_int(obj2, &val3);
5554 if (!SWIG_IsOK(ecode3)) {
5555 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5556 }
5557 arg3 = static_cast< int >(val3);
5558 if (obj3) {
5559 ecode4 = SWIG_AsVal_int(obj3, &val4);
5560 if (!SWIG_IsOK(ecode4)) {
5561 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5562 }
5563 arg4 = static_cast< int >(val4);
5564 }
5565 {
5566 if (!wxPyCheckForApp()) SWIG_fail;
5567 PyThreadState* __tstate = wxPyBeginAllowThreads();
5568 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5569 wxPyEndAllowThreads(__tstate);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 }
5572 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5573 return resultobj;
5574 fail:
5575 return NULL;
5576 }
5577
5578
5579 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5580 PyObject *resultobj = 0;
5581 wxBitmap *arg1 = (wxBitmap *) 0 ;
5582 bool result;
5583 void *argp1 = 0 ;
5584 int res1 = 0 ;
5585 PyObject *swig_obj[1] ;
5586
5587 if (!args) SWIG_fail;
5588 swig_obj[0] = args;
5589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5590 if (!SWIG_IsOK(res1)) {
5591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5592 }
5593 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5594 {
5595 PyThreadState* __tstate = wxPyBeginAllowThreads();
5596 result = (bool)(arg1)->Ok();
5597 wxPyEndAllowThreads(__tstate);
5598 if (PyErr_Occurred()) SWIG_fail;
5599 }
5600 {
5601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5602 }
5603 return resultobj;
5604 fail:
5605 return NULL;
5606 }
5607
5608
5609 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5610 PyObject *resultobj = 0;
5611 wxBitmap *arg1 = (wxBitmap *) 0 ;
5612 int result;
5613 void *argp1 = 0 ;
5614 int res1 = 0 ;
5615 PyObject *swig_obj[1] ;
5616
5617 if (!args) SWIG_fail;
5618 swig_obj[0] = args;
5619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5620 if (!SWIG_IsOK(res1)) {
5621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5622 }
5623 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5624 {
5625 PyThreadState* __tstate = wxPyBeginAllowThreads();
5626 result = (int)(arg1)->GetWidth();
5627 wxPyEndAllowThreads(__tstate);
5628 if (PyErr_Occurred()) SWIG_fail;
5629 }
5630 resultobj = SWIG_From_int(static_cast< int >(result));
5631 return resultobj;
5632 fail:
5633 return NULL;
5634 }
5635
5636
5637 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5638 PyObject *resultobj = 0;
5639 wxBitmap *arg1 = (wxBitmap *) 0 ;
5640 int result;
5641 void *argp1 = 0 ;
5642 int res1 = 0 ;
5643 PyObject *swig_obj[1] ;
5644
5645 if (!args) SWIG_fail;
5646 swig_obj[0] = args;
5647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5648 if (!SWIG_IsOK(res1)) {
5649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
5650 }
5651 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5652 {
5653 PyThreadState* __tstate = wxPyBeginAllowThreads();
5654 result = (int)(arg1)->GetHeight();
5655 wxPyEndAllowThreads(__tstate);
5656 if (PyErr_Occurred()) SWIG_fail;
5657 }
5658 resultobj = SWIG_From_int(static_cast< int >(result));
5659 return resultobj;
5660 fail:
5661 return NULL;
5662 }
5663
5664
5665 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5666 PyObject *resultobj = 0;
5667 wxBitmap *arg1 = (wxBitmap *) 0 ;
5668 int result;
5669 void *argp1 = 0 ;
5670 int res1 = 0 ;
5671 PyObject *swig_obj[1] ;
5672
5673 if (!args) SWIG_fail;
5674 swig_obj[0] = args;
5675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5676 if (!SWIG_IsOK(res1)) {
5677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5678 }
5679 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5680 {
5681 PyThreadState* __tstate = wxPyBeginAllowThreads();
5682 result = (int)(arg1)->GetDepth();
5683 wxPyEndAllowThreads(__tstate);
5684 if (PyErr_Occurred()) SWIG_fail;
5685 }
5686 resultobj = SWIG_From_int(static_cast< int >(result));
5687 return resultobj;
5688 fail:
5689 return NULL;
5690 }
5691
5692
5693 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5694 PyObject *resultobj = 0;
5695 wxBitmap *arg1 = (wxBitmap *) 0 ;
5696 wxSize result;
5697 void *argp1 = 0 ;
5698 int res1 = 0 ;
5699 PyObject *swig_obj[1] ;
5700
5701 if (!args) SWIG_fail;
5702 swig_obj[0] = args;
5703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5704 if (!SWIG_IsOK(res1)) {
5705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
5706 }
5707 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5708 {
5709 PyThreadState* __tstate = wxPyBeginAllowThreads();
5710 result = wxBitmap_GetSize(arg1);
5711 wxPyEndAllowThreads(__tstate);
5712 if (PyErr_Occurred()) SWIG_fail;
5713 }
5714 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
5715 return resultobj;
5716 fail:
5717 return NULL;
5718 }
5719
5720
5721 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5722 PyObject *resultobj = 0;
5723 wxBitmap *arg1 = (wxBitmap *) 0 ;
5724 SwigValueWrapper<wxImage > result;
5725 void *argp1 = 0 ;
5726 int res1 = 0 ;
5727 PyObject *swig_obj[1] ;
5728
5729 if (!args) SWIG_fail;
5730 swig_obj[0] = args;
5731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5732 if (!SWIG_IsOK(res1)) {
5733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5734 }
5735 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5736 {
5737 PyThreadState* __tstate = wxPyBeginAllowThreads();
5738 result = ((wxBitmap const *)arg1)->ConvertToImage();
5739 wxPyEndAllowThreads(__tstate);
5740 if (PyErr_Occurred()) SWIG_fail;
5741 }
5742 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
5743 return resultobj;
5744 fail:
5745 return NULL;
5746 }
5747
5748
5749 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5750 PyObject *resultobj = 0;
5751 wxBitmap *arg1 = (wxBitmap *) 0 ;
5752 wxMask *result = 0 ;
5753 void *argp1 = 0 ;
5754 int res1 = 0 ;
5755 PyObject *swig_obj[1] ;
5756
5757 if (!args) SWIG_fail;
5758 swig_obj[0] = args;
5759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5760 if (!SWIG_IsOK(res1)) {
5761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5762 }
5763 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5764 {
5765 PyThreadState* __tstate = wxPyBeginAllowThreads();
5766 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
5767 wxPyEndAllowThreads(__tstate);
5768 if (PyErr_Occurred()) SWIG_fail;
5769 }
5770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
5771 return resultobj;
5772 fail:
5773 return NULL;
5774 }
5775
5776
5777 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5778 PyObject *resultobj = 0;
5779 wxBitmap *arg1 = (wxBitmap *) 0 ;
5780 wxMask *arg2 = (wxMask *) 0 ;
5781 void *argp1 = 0 ;
5782 int res1 = 0 ;
5783 int res2 = 0 ;
5784 PyObject * obj0 = 0 ;
5785 PyObject * obj1 = 0 ;
5786 char * kwnames[] = {
5787 (char *) "self",(char *) "mask", NULL
5788 };
5789
5790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
5791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5792 if (!SWIG_IsOK(res1)) {
5793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
5794 }
5795 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5796 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
5797 if (!SWIG_IsOK(res2)) {
5798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
5799 }
5800 {
5801 PyThreadState* __tstate = wxPyBeginAllowThreads();
5802 (arg1)->SetMask(arg2);
5803 wxPyEndAllowThreads(__tstate);
5804 if (PyErr_Occurred()) SWIG_fail;
5805 }
5806 resultobj = SWIG_Py_Void();
5807 return resultobj;
5808 fail:
5809 return NULL;
5810 }
5811
5812
5813 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5814 PyObject *resultobj = 0;
5815 wxBitmap *arg1 = (wxBitmap *) 0 ;
5816 wxColour *arg2 = 0 ;
5817 void *argp1 = 0 ;
5818 int res1 = 0 ;
5819 wxColour temp2 ;
5820 PyObject * obj0 = 0 ;
5821 PyObject * obj1 = 0 ;
5822 char * kwnames[] = {
5823 (char *) "self",(char *) "colour", NULL
5824 };
5825
5826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
5827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5828 if (!SWIG_IsOK(res1)) {
5829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
5830 }
5831 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5832 {
5833 arg2 = &temp2;
5834 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5835 }
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) SWIG_fail;
5841 }
5842 resultobj = SWIG_Py_Void();
5843 return resultobj;
5844 fail:
5845 return NULL;
5846 }
5847
5848
5849 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5850 PyObject *resultobj = 0;
5851 wxBitmap *arg1 = (wxBitmap *) 0 ;
5852 wxRect *arg2 = 0 ;
5853 SwigValueWrapper<wxBitmap > result;
5854 void *argp1 = 0 ;
5855 int res1 = 0 ;
5856 wxRect temp2 ;
5857 PyObject * obj0 = 0 ;
5858 PyObject * obj1 = 0 ;
5859 char * kwnames[] = {
5860 (char *) "self",(char *) "rect", NULL
5861 };
5862
5863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5865 if (!SWIG_IsOK(res1)) {
5866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5867 }
5868 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5869 {
5870 arg2 = &temp2;
5871 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5872 }
5873 {
5874 PyThreadState* __tstate = wxPyBeginAllowThreads();
5875 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
5876 wxPyEndAllowThreads(__tstate);
5877 if (PyErr_Occurred()) SWIG_fail;
5878 }
5879 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5880 return resultobj;
5881 fail:
5882 return NULL;
5883 }
5884
5885
5886 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5887 PyObject *resultobj = 0;
5888 wxBitmap *arg1 = (wxBitmap *) 0 ;
5889 wxString *arg2 = 0 ;
5890 wxBitmapType arg3 ;
5891 wxPalette *arg4 = (wxPalette *) NULL ;
5892 bool result;
5893 void *argp1 = 0 ;
5894 int res1 = 0 ;
5895 bool temp2 = false ;
5896 int val3 ;
5897 int ecode3 = 0 ;
5898 void *argp4 = 0 ;
5899 int res4 = 0 ;
5900 PyObject * obj0 = 0 ;
5901 PyObject * obj1 = 0 ;
5902 PyObject * obj2 = 0 ;
5903 PyObject * obj3 = 0 ;
5904 char * kwnames[] = {
5905 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
5906 };
5907
5908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5910 if (!SWIG_IsOK(res1)) {
5911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5912 }
5913 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5914 {
5915 arg2 = wxString_in_helper(obj1);
5916 if (arg2 == NULL) SWIG_fail;
5917 temp2 = true;
5918 }
5919 ecode3 = SWIG_AsVal_int(obj2, &val3);
5920 if (!SWIG_IsOK(ecode3)) {
5921 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5922 }
5923 arg3 = static_cast< wxBitmapType >(val3);
5924 if (obj3) {
5925 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
5926 if (!SWIG_IsOK(res4)) {
5927 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
5928 }
5929 arg4 = reinterpret_cast< wxPalette * >(argp4);
5930 }
5931 {
5932 PyThreadState* __tstate = wxPyBeginAllowThreads();
5933 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
5934 wxPyEndAllowThreads(__tstate);
5935 if (PyErr_Occurred()) SWIG_fail;
5936 }
5937 {
5938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5939 }
5940 {
5941 if (temp2)
5942 delete arg2;
5943 }
5944 return resultobj;
5945 fail:
5946 {
5947 if (temp2)
5948 delete arg2;
5949 }
5950 return NULL;
5951 }
5952
5953
5954 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5955 PyObject *resultobj = 0;
5956 wxBitmap *arg1 = (wxBitmap *) 0 ;
5957 wxString *arg2 = 0 ;
5958 wxBitmapType arg3 ;
5959 bool result;
5960 void *argp1 = 0 ;
5961 int res1 = 0 ;
5962 bool temp2 = false ;
5963 int val3 ;
5964 int ecode3 = 0 ;
5965 PyObject * obj0 = 0 ;
5966 PyObject * obj1 = 0 ;
5967 PyObject * obj2 = 0 ;
5968 char * kwnames[] = {
5969 (char *) "self",(char *) "name",(char *) "type", NULL
5970 };
5971
5972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5974 if (!SWIG_IsOK(res1)) {
5975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5976 }
5977 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5978 {
5979 arg2 = wxString_in_helper(obj1);
5980 if (arg2 == NULL) SWIG_fail;
5981 temp2 = true;
5982 }
5983 ecode3 = SWIG_AsVal_int(obj2, &val3);
5984 if (!SWIG_IsOK(ecode3)) {
5985 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5986 }
5987 arg3 = static_cast< wxBitmapType >(val3);
5988 {
5989 PyThreadState* __tstate = wxPyBeginAllowThreads();
5990 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
5991 wxPyEndAllowThreads(__tstate);
5992 if (PyErr_Occurred()) SWIG_fail;
5993 }
5994 {
5995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5996 }
5997 {
5998 if (temp2)
5999 delete arg2;
6000 }
6001 return resultobj;
6002 fail:
6003 {
6004 if (temp2)
6005 delete arg2;
6006 }
6007 return NULL;
6008 }
6009
6010
6011 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6012 PyObject *resultobj = 0;
6013 wxBitmap *arg1 = (wxBitmap *) 0 ;
6014 wxPalette *result = 0 ;
6015 void *argp1 = 0 ;
6016 int res1 = 0 ;
6017 PyObject *swig_obj[1] ;
6018
6019 if (!args) SWIG_fail;
6020 swig_obj[0] = args;
6021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6022 if (!SWIG_IsOK(res1)) {
6023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6024 }
6025 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6026 {
6027 PyThreadState* __tstate = wxPyBeginAllowThreads();
6028 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6029 wxPyEndAllowThreads(__tstate);
6030 if (PyErr_Occurred()) SWIG_fail;
6031 }
6032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6033 return resultobj;
6034 fail:
6035 return NULL;
6036 }
6037
6038
6039 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6040 PyObject *resultobj = 0;
6041 wxBitmap *arg1 = (wxBitmap *) 0 ;
6042 wxIcon *arg2 = 0 ;
6043 bool result;
6044 void *argp1 = 0 ;
6045 int res1 = 0 ;
6046 void *argp2 = 0 ;
6047 int res2 = 0 ;
6048 PyObject * obj0 = 0 ;
6049 PyObject * obj1 = 0 ;
6050 char * kwnames[] = {
6051 (char *) "self",(char *) "icon", NULL
6052 };
6053
6054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6056 if (!SWIG_IsOK(res1)) {
6057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6058 }
6059 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6060 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6061 if (!SWIG_IsOK(res2)) {
6062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6063 }
6064 if (!argp2) {
6065 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6066 }
6067 arg2 = reinterpret_cast< wxIcon * >(argp2);
6068 {
6069 PyThreadState* __tstate = wxPyBeginAllowThreads();
6070 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6071 wxPyEndAllowThreads(__tstate);
6072 if (PyErr_Occurred()) SWIG_fail;
6073 }
6074 {
6075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6076 }
6077 return resultobj;
6078 fail:
6079 return NULL;
6080 }
6081
6082
6083 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6084 PyObject *resultobj = 0;
6085 wxBitmap *arg1 = (wxBitmap *) 0 ;
6086 int arg2 ;
6087 void *argp1 = 0 ;
6088 int res1 = 0 ;
6089 int val2 ;
6090 int ecode2 = 0 ;
6091 PyObject * obj0 = 0 ;
6092 PyObject * obj1 = 0 ;
6093 char * kwnames[] = {
6094 (char *) "self",(char *) "height", NULL
6095 };
6096
6097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6099 if (!SWIG_IsOK(res1)) {
6100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6101 }
6102 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6103 ecode2 = SWIG_AsVal_int(obj1, &val2);
6104 if (!SWIG_IsOK(ecode2)) {
6105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6106 }
6107 arg2 = static_cast< int >(val2);
6108 {
6109 PyThreadState* __tstate = wxPyBeginAllowThreads();
6110 (arg1)->SetHeight(arg2);
6111 wxPyEndAllowThreads(__tstate);
6112 if (PyErr_Occurred()) SWIG_fail;
6113 }
6114 resultobj = SWIG_Py_Void();
6115 return resultobj;
6116 fail:
6117 return NULL;
6118 }
6119
6120
6121 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6122 PyObject *resultobj = 0;
6123 wxBitmap *arg1 = (wxBitmap *) 0 ;
6124 int arg2 ;
6125 void *argp1 = 0 ;
6126 int res1 = 0 ;
6127 int val2 ;
6128 int ecode2 = 0 ;
6129 PyObject * obj0 = 0 ;
6130 PyObject * obj1 = 0 ;
6131 char * kwnames[] = {
6132 (char *) "self",(char *) "width", NULL
6133 };
6134
6135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6137 if (!SWIG_IsOK(res1)) {
6138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6139 }
6140 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6141 ecode2 = SWIG_AsVal_int(obj1, &val2);
6142 if (!SWIG_IsOK(ecode2)) {
6143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6144 }
6145 arg2 = static_cast< int >(val2);
6146 {
6147 PyThreadState* __tstate = wxPyBeginAllowThreads();
6148 (arg1)->SetWidth(arg2);
6149 wxPyEndAllowThreads(__tstate);
6150 if (PyErr_Occurred()) SWIG_fail;
6151 }
6152 resultobj = SWIG_Py_Void();
6153 return resultobj;
6154 fail:
6155 return NULL;
6156 }
6157
6158
6159 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6160 PyObject *resultobj = 0;
6161 wxBitmap *arg1 = (wxBitmap *) 0 ;
6162 int arg2 ;
6163 void *argp1 = 0 ;
6164 int res1 = 0 ;
6165 int val2 ;
6166 int ecode2 = 0 ;
6167 PyObject * obj0 = 0 ;
6168 PyObject * obj1 = 0 ;
6169 char * kwnames[] = {
6170 (char *) "self",(char *) "depth", NULL
6171 };
6172
6173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6175 if (!SWIG_IsOK(res1)) {
6176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6177 }
6178 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6179 ecode2 = SWIG_AsVal_int(obj1, &val2);
6180 if (!SWIG_IsOK(ecode2)) {
6181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6182 }
6183 arg2 = static_cast< int >(val2);
6184 {
6185 PyThreadState* __tstate = wxPyBeginAllowThreads();
6186 (arg1)->SetDepth(arg2);
6187 wxPyEndAllowThreads(__tstate);
6188 if (PyErr_Occurred()) SWIG_fail;
6189 }
6190 resultobj = SWIG_Py_Void();
6191 return resultobj;
6192 fail:
6193 return NULL;
6194 }
6195
6196
6197 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6198 PyObject *resultobj = 0;
6199 wxBitmap *arg1 = (wxBitmap *) 0 ;
6200 wxSize *arg2 = 0 ;
6201 void *argp1 = 0 ;
6202 int res1 = 0 ;
6203 wxSize temp2 ;
6204 PyObject * obj0 = 0 ;
6205 PyObject * obj1 = 0 ;
6206 char * kwnames[] = {
6207 (char *) "self",(char *) "size", NULL
6208 };
6209
6210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6212 if (!SWIG_IsOK(res1)) {
6213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6214 }
6215 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6216 {
6217 arg2 = &temp2;
6218 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6219 }
6220 {
6221 PyThreadState* __tstate = wxPyBeginAllowThreads();
6222 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6223 wxPyEndAllowThreads(__tstate);
6224 if (PyErr_Occurred()) SWIG_fail;
6225 }
6226 resultobj = SWIG_Py_Void();
6227 return resultobj;
6228 fail:
6229 return NULL;
6230 }
6231
6232
6233 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6234 PyObject *resultobj = 0;
6235 wxBitmap *arg1 = (wxBitmap *) 0 ;
6236 wxBitmap *arg2 = (wxBitmap *) 0 ;
6237 bool result;
6238 void *argp1 = 0 ;
6239 int res1 = 0 ;
6240 void *argp2 = 0 ;
6241 int res2 = 0 ;
6242 PyObject * obj0 = 0 ;
6243 PyObject * obj1 = 0 ;
6244 char * kwnames[] = {
6245 (char *) "self",(char *) "other", NULL
6246 };
6247
6248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6250 if (!SWIG_IsOK(res1)) {
6251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6252 }
6253 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6254 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6255 if (!SWIG_IsOK(res2)) {
6256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6257 }
6258 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6259 {
6260 PyThreadState* __tstate = wxPyBeginAllowThreads();
6261 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6262 wxPyEndAllowThreads(__tstate);
6263 if (PyErr_Occurred()) SWIG_fail;
6264 }
6265 {
6266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6267 }
6268 return resultobj;
6269 fail:
6270 return NULL;
6271 }
6272
6273
6274 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6275 PyObject *resultobj = 0;
6276 wxBitmap *arg1 = (wxBitmap *) 0 ;
6277 wxBitmap *arg2 = (wxBitmap *) 0 ;
6278 bool result;
6279 void *argp1 = 0 ;
6280 int res1 = 0 ;
6281 void *argp2 = 0 ;
6282 int res2 = 0 ;
6283 PyObject * obj0 = 0 ;
6284 PyObject * obj1 = 0 ;
6285 char * kwnames[] = {
6286 (char *) "self",(char *) "other", NULL
6287 };
6288
6289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6291 if (!SWIG_IsOK(res1)) {
6292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6293 }
6294 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6295 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6296 if (!SWIG_IsOK(res2)) {
6297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6298 }
6299 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6300 {
6301 PyThreadState* __tstate = wxPyBeginAllowThreads();
6302 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6303 wxPyEndAllowThreads(__tstate);
6304 if (PyErr_Occurred()) SWIG_fail;
6305 }
6306 {
6307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6308 }
6309 return resultobj;
6310 fail:
6311 return NULL;
6312 }
6313
6314
6315 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6316 PyObject *obj;
6317 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6318 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6319 return SWIG_Py_Void();
6320 }
6321
6322 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6323 return SWIG_Python_InitShadowInstance(args);
6324 }
6325
6326 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6327 PyObject *resultobj = 0;
6328 wxBitmap *arg1 = 0 ;
6329 wxColour const &arg2_defvalue = wxNullColour ;
6330 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6331 wxMask *result = 0 ;
6332 void *argp1 = 0 ;
6333 int res1 = 0 ;
6334 wxColour temp2 ;
6335 PyObject * obj0 = 0 ;
6336 PyObject * obj1 = 0 ;
6337 char * kwnames[] = {
6338 (char *) "bitmap",(char *) "colour", NULL
6339 };
6340
6341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
6342 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6343 if (!SWIG_IsOK(res1)) {
6344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6345 }
6346 if (!argp1) {
6347 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6348 }
6349 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6350 if (obj1) {
6351 {
6352 arg2 = &temp2;
6353 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6354 }
6355 }
6356 {
6357 if (!wxPyCheckForApp()) SWIG_fail;
6358 PyThreadState* __tstate = wxPyBeginAllowThreads();
6359 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
6360 wxPyEndAllowThreads(__tstate);
6361 if (PyErr_Occurred()) SWIG_fail;
6362 }
6363 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
6364 return resultobj;
6365 fail:
6366 return NULL;
6367 }
6368
6369
6370 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6371 PyObject *resultobj = 0;
6372 wxMask *arg1 = (wxMask *) 0 ;
6373 void *argp1 = 0 ;
6374 int res1 = 0 ;
6375 PyObject *swig_obj[1] ;
6376
6377 if (!args) SWIG_fail;
6378 swig_obj[0] = args;
6379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6380 if (!SWIG_IsOK(res1)) {
6381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
6382 }
6383 arg1 = reinterpret_cast< wxMask * >(argp1);
6384 {
6385 PyThreadState* __tstate = wxPyBeginAllowThreads();
6386 delete arg1;
6387
6388 wxPyEndAllowThreads(__tstate);
6389 if (PyErr_Occurred()) SWIG_fail;
6390 }
6391 resultobj = SWIG_Py_Void();
6392 return resultobj;
6393 fail:
6394 return NULL;
6395 }
6396
6397
6398 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6399 PyObject *obj;
6400 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6401 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
6402 return SWIG_Py_Void();
6403 }
6404
6405 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6406 return SWIG_Python_InitShadowInstance(args);
6407 }
6408
6409 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6410 PyObject *resultobj = 0;
6411 wxString *arg1 = 0 ;
6412 wxBitmapType arg2 ;
6413 int arg3 = (int) -1 ;
6414 int arg4 = (int) -1 ;
6415 wxIcon *result = 0 ;
6416 bool temp1 = false ;
6417 int val2 ;
6418 int ecode2 = 0 ;
6419 int val3 ;
6420 int ecode3 = 0 ;
6421 int val4 ;
6422 int ecode4 = 0 ;
6423 PyObject * obj0 = 0 ;
6424 PyObject * obj1 = 0 ;
6425 PyObject * obj2 = 0 ;
6426 PyObject * obj3 = 0 ;
6427 char * kwnames[] = {
6428 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
6429 };
6430
6431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6432 {
6433 arg1 = wxString_in_helper(obj0);
6434 if (arg1 == NULL) SWIG_fail;
6435 temp1 = true;
6436 }
6437 ecode2 = SWIG_AsVal_int(obj1, &val2);
6438 if (!SWIG_IsOK(ecode2)) {
6439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
6440 }
6441 arg2 = static_cast< wxBitmapType >(val2);
6442 if (obj2) {
6443 ecode3 = SWIG_AsVal_int(obj2, &val3);
6444 if (!SWIG_IsOK(ecode3)) {
6445 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
6446 }
6447 arg3 = static_cast< int >(val3);
6448 }
6449 if (obj3) {
6450 ecode4 = SWIG_AsVal_int(obj3, &val4);
6451 if (!SWIG_IsOK(ecode4)) {
6452 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
6453 }
6454 arg4 = static_cast< int >(val4);
6455 }
6456 {
6457 if (!wxPyCheckForApp()) SWIG_fail;
6458 PyThreadState* __tstate = wxPyBeginAllowThreads();
6459 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
6460 wxPyEndAllowThreads(__tstate);
6461 if (PyErr_Occurred()) SWIG_fail;
6462 }
6463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
6464 {
6465 if (temp1)
6466 delete arg1;
6467 }
6468 return resultobj;
6469 fail:
6470 {
6471 if (temp1)
6472 delete arg1;
6473 }
6474 return NULL;
6475 }
6476
6477
6478 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6479 PyObject *resultobj = 0;
6480 wxIcon *arg1 = (wxIcon *) 0 ;
6481 void *argp1 = 0 ;
6482 int res1 = 0 ;
6483 PyObject *swig_obj[1] ;
6484
6485 if (!args) SWIG_fail;
6486 swig_obj[0] = args;
6487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
6488 if (!SWIG_IsOK(res1)) {
6489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
6490 }
6491 arg1 = reinterpret_cast< wxIcon * >(argp1);
6492 {
6493 PyThreadState* __tstate = wxPyBeginAllowThreads();
6494 delete arg1;
6495
6496 wxPyEndAllowThreads(__tstate);
6497 if (PyErr_Occurred()) SWIG_fail;
6498 }
6499 resultobj = SWIG_Py_Void();
6500 return resultobj;
6501 fail:
6502 return NULL;
6503 }
6504
6505
6506 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6507 PyObject *resultobj = 0;
6508 wxIcon *result = 0 ;
6509
6510 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
6511 {
6512 if (!wxPyCheckForApp()) SWIG_fail;
6513 PyThreadState* __tstate = wxPyBeginAllowThreads();
6514 result = (wxIcon *)new wxIcon();
6515 wxPyEndAllowThreads(__tstate);
6516 if (PyErr_Occurred()) SWIG_fail;
6517 }
6518 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6519 return resultobj;
6520 fail:
6521 return NULL;
6522 }
6523
6524
6525 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6526 PyObject *resultobj = 0;
6527 wxIconLocation *arg1 = 0 ;
6528 wxIcon *result = 0 ;
6529 void *argp1 = 0 ;
6530 int res1 = 0 ;
6531 PyObject * obj0 = 0 ;
6532 char * kwnames[] = {
6533 (char *) "loc", NULL
6534 };
6535
6536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
6537 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
6538 if (!SWIG_IsOK(res1)) {
6539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6540 }
6541 if (!argp1) {
6542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6543 }
6544 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6545 {
6546 if (!wxPyCheckForApp()) SWIG_fail;
6547 PyThreadState* __tstate = wxPyBeginAllowThreads();
6548 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
6549 wxPyEndAllowThreads(__tstate);
6550 if (PyErr_Occurred()) SWIG_fail;
6551 }
6552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6553 return resultobj;
6554 fail:
6555 return NULL;
6556 }
6557
6558
6559 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6560 PyObject *resultobj = 0;
6561 wxBitmap *arg1 = 0 ;
6562 wxIcon *result = 0 ;
6563 void *argp1 = 0 ;
6564 int res1 = 0 ;
6565 PyObject * obj0 = 0 ;
6566 char * kwnames[] = {
6567 (char *) "bmp", NULL
6568 };
6569
6570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
6571 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6572 if (!SWIG_IsOK(res1)) {
6573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6574 }
6575 if (!argp1) {
6576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6577 }
6578 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6579 {
6580 if (!wxPyCheckForApp()) SWIG_fail;
6581 PyThreadState* __tstate = wxPyBeginAllowThreads();
6582 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
6583 wxPyEndAllowThreads(__tstate);
6584 if (PyErr_Occurred()) SWIG_fail;
6585 }
6586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6587 return resultobj;
6588 fail:
6589 return NULL;
6590 }
6591
6592
6593 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6594 PyObject *resultobj = 0;
6595 PyObject *arg1 = (PyObject *) 0 ;
6596 wxIcon *result = 0 ;
6597 PyObject * obj0 = 0 ;
6598 char * kwnames[] = {
6599 (char *) "listOfStrings", NULL
6600 };
6601
6602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
6603 arg1 = obj0;
6604 {
6605 if (!wxPyCheckForApp()) SWIG_fail;
6606 PyThreadState* __tstate = wxPyBeginAllowThreads();
6607 result = (wxIcon *)new_wxIcon(arg1);
6608 wxPyEndAllowThreads(__tstate);
6609 if (PyErr_Occurred()) SWIG_fail;
6610 }
6611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6612 return resultobj;
6613 fail:
6614 return NULL;
6615 }
6616
6617
6618 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6619 PyObject *resultobj = 0;
6620 wxIcon *arg1 = (wxIcon *) 0 ;
6621 wxString *arg2 = 0 ;
6622 wxBitmapType arg3 ;
6623 bool result;
6624 void *argp1 = 0 ;
6625 int res1 = 0 ;
6626 bool temp2 = false ;
6627 int val3 ;
6628 int ecode3 = 0 ;
6629 PyObject * obj0 = 0 ;
6630 PyObject * obj1 = 0 ;
6631 PyObject * obj2 = 0 ;
6632 char * kwnames[] = {
6633 (char *) "self",(char *) "name",(char *) "type", NULL
6634 };
6635
6636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6638 if (!SWIG_IsOK(res1)) {
6639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
6640 }
6641 arg1 = reinterpret_cast< wxIcon * >(argp1);
6642 {
6643 arg2 = wxString_in_helper(obj1);
6644 if (arg2 == NULL) SWIG_fail;
6645 temp2 = true;
6646 }
6647 ecode3 = SWIG_AsVal_int(obj2, &val3);
6648 if (!SWIG_IsOK(ecode3)) {
6649 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6650 }
6651 arg3 = static_cast< wxBitmapType >(val3);
6652 {
6653 PyThreadState* __tstate = wxPyBeginAllowThreads();
6654 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6655 wxPyEndAllowThreads(__tstate);
6656 if (PyErr_Occurred()) SWIG_fail;
6657 }
6658 {
6659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6660 }
6661 {
6662 if (temp2)
6663 delete arg2;
6664 }
6665 return resultobj;
6666 fail:
6667 {
6668 if (temp2)
6669 delete arg2;
6670 }
6671 return NULL;
6672 }
6673
6674
6675 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6676 PyObject *resultobj = 0;
6677 wxIcon *arg1 = (wxIcon *) 0 ;
6678 bool result;
6679 void *argp1 = 0 ;
6680 int res1 = 0 ;
6681 PyObject *swig_obj[1] ;
6682
6683 if (!args) SWIG_fail;
6684 swig_obj[0] = args;
6685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6686 if (!SWIG_IsOK(res1)) {
6687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
6688 }
6689 arg1 = reinterpret_cast< wxIcon * >(argp1);
6690 {
6691 PyThreadState* __tstate = wxPyBeginAllowThreads();
6692 result = (bool)(arg1)->Ok();
6693 wxPyEndAllowThreads(__tstate);
6694 if (PyErr_Occurred()) SWIG_fail;
6695 }
6696 {
6697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6698 }
6699 return resultobj;
6700 fail:
6701 return NULL;
6702 }
6703
6704
6705 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6706 PyObject *resultobj = 0;
6707 wxIcon *arg1 = (wxIcon *) 0 ;
6708 int result;
6709 void *argp1 = 0 ;
6710 int res1 = 0 ;
6711 PyObject *swig_obj[1] ;
6712
6713 if (!args) SWIG_fail;
6714 swig_obj[0] = args;
6715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6716 if (!SWIG_IsOK(res1)) {
6717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6718 }
6719 arg1 = reinterpret_cast< wxIcon * >(argp1);
6720 {
6721 PyThreadState* __tstate = wxPyBeginAllowThreads();
6722 result = (int)(arg1)->GetWidth();
6723 wxPyEndAllowThreads(__tstate);
6724 if (PyErr_Occurred()) SWIG_fail;
6725 }
6726 resultobj = SWIG_From_int(static_cast< int >(result));
6727 return resultobj;
6728 fail:
6729 return NULL;
6730 }
6731
6732
6733 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6734 PyObject *resultobj = 0;
6735 wxIcon *arg1 = (wxIcon *) 0 ;
6736 int result;
6737 void *argp1 = 0 ;
6738 int res1 = 0 ;
6739 PyObject *swig_obj[1] ;
6740
6741 if (!args) SWIG_fail;
6742 swig_obj[0] = args;
6743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6744 if (!SWIG_IsOK(res1)) {
6745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6746 }
6747 arg1 = reinterpret_cast< wxIcon * >(argp1);
6748 {
6749 PyThreadState* __tstate = wxPyBeginAllowThreads();
6750 result = (int)(arg1)->GetHeight();
6751 wxPyEndAllowThreads(__tstate);
6752 if (PyErr_Occurred()) SWIG_fail;
6753 }
6754 resultobj = SWIG_From_int(static_cast< int >(result));
6755 return resultobj;
6756 fail:
6757 return NULL;
6758 }
6759
6760
6761 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6762 PyObject *resultobj = 0;
6763 wxIcon *arg1 = (wxIcon *) 0 ;
6764 int result;
6765 void *argp1 = 0 ;
6766 int res1 = 0 ;
6767 PyObject *swig_obj[1] ;
6768
6769 if (!args) SWIG_fail;
6770 swig_obj[0] = args;
6771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6772 if (!SWIG_IsOK(res1)) {
6773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6774 }
6775 arg1 = reinterpret_cast< wxIcon * >(argp1);
6776 {
6777 PyThreadState* __tstate = wxPyBeginAllowThreads();
6778 result = (int)(arg1)->GetDepth();
6779 wxPyEndAllowThreads(__tstate);
6780 if (PyErr_Occurred()) SWIG_fail;
6781 }
6782 resultobj = SWIG_From_int(static_cast< int >(result));
6783 return resultobj;
6784 fail:
6785 return NULL;
6786 }
6787
6788
6789 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6790 PyObject *resultobj = 0;
6791 wxIcon *arg1 = (wxIcon *) 0 ;
6792 int arg2 ;
6793 void *argp1 = 0 ;
6794 int res1 = 0 ;
6795 int val2 ;
6796 int ecode2 = 0 ;
6797 PyObject * obj0 = 0 ;
6798 PyObject * obj1 = 0 ;
6799 char * kwnames[] = {
6800 (char *) "self",(char *) "w", NULL
6801 };
6802
6803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6805 if (!SWIG_IsOK(res1)) {
6806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6807 }
6808 arg1 = reinterpret_cast< wxIcon * >(argp1);
6809 ecode2 = SWIG_AsVal_int(obj1, &val2);
6810 if (!SWIG_IsOK(ecode2)) {
6811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
6812 }
6813 arg2 = static_cast< int >(val2);
6814 {
6815 PyThreadState* __tstate = wxPyBeginAllowThreads();
6816 (arg1)->SetWidth(arg2);
6817 wxPyEndAllowThreads(__tstate);
6818 if (PyErr_Occurred()) SWIG_fail;
6819 }
6820 resultobj = SWIG_Py_Void();
6821 return resultobj;
6822 fail:
6823 return NULL;
6824 }
6825
6826
6827 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6828 PyObject *resultobj = 0;
6829 wxIcon *arg1 = (wxIcon *) 0 ;
6830 int arg2 ;
6831 void *argp1 = 0 ;
6832 int res1 = 0 ;
6833 int val2 ;
6834 int ecode2 = 0 ;
6835 PyObject * obj0 = 0 ;
6836 PyObject * obj1 = 0 ;
6837 char * kwnames[] = {
6838 (char *) "self",(char *) "h", NULL
6839 };
6840
6841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6843 if (!SWIG_IsOK(res1)) {
6844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6845 }
6846 arg1 = reinterpret_cast< wxIcon * >(argp1);
6847 ecode2 = SWIG_AsVal_int(obj1, &val2);
6848 if (!SWIG_IsOK(ecode2)) {
6849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
6850 }
6851 arg2 = static_cast< int >(val2);
6852 {
6853 PyThreadState* __tstate = wxPyBeginAllowThreads();
6854 (arg1)->SetHeight(arg2);
6855 wxPyEndAllowThreads(__tstate);
6856 if (PyErr_Occurred()) SWIG_fail;
6857 }
6858 resultobj = SWIG_Py_Void();
6859 return resultobj;
6860 fail:
6861 return NULL;
6862 }
6863
6864
6865 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6866 PyObject *resultobj = 0;
6867 wxIcon *arg1 = (wxIcon *) 0 ;
6868 int arg2 ;
6869 void *argp1 = 0 ;
6870 int res1 = 0 ;
6871 int val2 ;
6872 int ecode2 = 0 ;
6873 PyObject * obj0 = 0 ;
6874 PyObject * obj1 = 0 ;
6875 char * kwnames[] = {
6876 (char *) "self",(char *) "d", NULL
6877 };
6878
6879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6881 if (!SWIG_IsOK(res1)) {
6882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6883 }
6884 arg1 = reinterpret_cast< wxIcon * >(argp1);
6885 ecode2 = SWIG_AsVal_int(obj1, &val2);
6886 if (!SWIG_IsOK(ecode2)) {
6887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
6888 }
6889 arg2 = static_cast< int >(val2);
6890 {
6891 PyThreadState* __tstate = wxPyBeginAllowThreads();
6892 (arg1)->SetDepth(arg2);
6893 wxPyEndAllowThreads(__tstate);
6894 if (PyErr_Occurred()) SWIG_fail;
6895 }
6896 resultobj = SWIG_Py_Void();
6897 return resultobj;
6898 fail:
6899 return NULL;
6900 }
6901
6902
6903 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6904 PyObject *resultobj = 0;
6905 wxIcon *arg1 = (wxIcon *) 0 ;
6906 wxBitmap *arg2 = 0 ;
6907 void *argp1 = 0 ;
6908 int res1 = 0 ;
6909 void *argp2 = 0 ;
6910 int res2 = 0 ;
6911 PyObject * obj0 = 0 ;
6912 PyObject * obj1 = 0 ;
6913 char * kwnames[] = {
6914 (char *) "self",(char *) "bmp", NULL
6915 };
6916
6917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6919 if (!SWIG_IsOK(res1)) {
6920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
6921 }
6922 arg1 = reinterpret_cast< wxIcon * >(argp1);
6923 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
6924 if (!SWIG_IsOK(res2)) {
6925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6926 }
6927 if (!argp2) {
6928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6929 }
6930 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6931 {
6932 PyThreadState* __tstate = wxPyBeginAllowThreads();
6933 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
6934 wxPyEndAllowThreads(__tstate);
6935 if (PyErr_Occurred()) SWIG_fail;
6936 }
6937 resultobj = SWIG_Py_Void();
6938 return resultobj;
6939 fail:
6940 return NULL;
6941 }
6942
6943
6944 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6945 PyObject *obj;
6946 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6947 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
6948 return SWIG_Py_Void();
6949 }
6950
6951 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6952 return SWIG_Python_InitShadowInstance(args);
6953 }
6954
6955 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6956 PyObject *resultobj = 0;
6957 wxString *arg1 = (wxString *) &wxPyEmptyString ;
6958 int arg2 = (int) 0 ;
6959 wxIconLocation *result = 0 ;
6960 bool temp1 = false ;
6961 int val2 ;
6962 int ecode2 = 0 ;
6963 PyObject * obj0 = 0 ;
6964 PyObject * obj1 = 0 ;
6965 char * kwnames[] = {
6966 (char *) "filename",(char *) "num", NULL
6967 };
6968
6969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
6970 if (obj0) {
6971 {
6972 arg1 = wxString_in_helper(obj0);
6973 if (arg1 == NULL) SWIG_fail;
6974 temp1 = true;
6975 }
6976 }
6977 if (obj1) {
6978 ecode2 = SWIG_AsVal_int(obj1, &val2);
6979 if (!SWIG_IsOK(ecode2)) {
6980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
6981 }
6982 arg2 = static_cast< int >(val2);
6983 }
6984 {
6985 PyThreadState* __tstate = wxPyBeginAllowThreads();
6986 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
6987 wxPyEndAllowThreads(__tstate);
6988 if (PyErr_Occurred()) SWIG_fail;
6989 }
6990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
6991 {
6992 if (temp1)
6993 delete arg1;
6994 }
6995 return resultobj;
6996 fail:
6997 {
6998 if (temp1)
6999 delete arg1;
7000 }
7001 return NULL;
7002 }
7003
7004
7005 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7006 PyObject *resultobj = 0;
7007 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7008 void *argp1 = 0 ;
7009 int res1 = 0 ;
7010 PyObject *swig_obj[1] ;
7011
7012 if (!args) SWIG_fail;
7013 swig_obj[0] = args;
7014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
7015 if (!SWIG_IsOK(res1)) {
7016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7017 }
7018 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7019 {
7020 PyThreadState* __tstate = wxPyBeginAllowThreads();
7021 delete arg1;
7022
7023 wxPyEndAllowThreads(__tstate);
7024 if (PyErr_Occurred()) SWIG_fail;
7025 }
7026 resultobj = SWIG_Py_Void();
7027 return resultobj;
7028 fail:
7029 return NULL;
7030 }
7031
7032
7033 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7034 PyObject *resultobj = 0;
7035 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7036 bool 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_wxIconLocation, 0 | 0 );
7044 if (!SWIG_IsOK(res1)) {
7045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7046 }
7047 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7048 {
7049 PyThreadState* __tstate = wxPyBeginAllowThreads();
7050 result = (bool)((wxIconLocation const *)arg1)->IsOk();
7051 wxPyEndAllowThreads(__tstate);
7052 if (PyErr_Occurred()) SWIG_fail;
7053 }
7054 {
7055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7056 }
7057 return resultobj;
7058 fail:
7059 return NULL;
7060 }
7061
7062
7063 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7064 PyObject *resultobj = 0;
7065 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7066 wxString *arg2 = 0 ;
7067 void *argp1 = 0 ;
7068 int res1 = 0 ;
7069 bool temp2 = false ;
7070 PyObject * obj0 = 0 ;
7071 PyObject * obj1 = 0 ;
7072 char * kwnames[] = {
7073 (char *) "self",(char *) "filename", NULL
7074 };
7075
7076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
7077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7078 if (!SWIG_IsOK(res1)) {
7079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7080 }
7081 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7082 {
7083 arg2 = wxString_in_helper(obj1);
7084 if (arg2 == NULL) SWIG_fail;
7085 temp2 = true;
7086 }
7087 {
7088 PyThreadState* __tstate = wxPyBeginAllowThreads();
7089 (arg1)->SetFileName((wxString const &)*arg2);
7090 wxPyEndAllowThreads(__tstate);
7091 if (PyErr_Occurred()) SWIG_fail;
7092 }
7093 resultobj = SWIG_Py_Void();
7094 {
7095 if (temp2)
7096 delete arg2;
7097 }
7098 return resultobj;
7099 fail:
7100 {
7101 if (temp2)
7102 delete arg2;
7103 }
7104 return NULL;
7105 }
7106
7107
7108 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7109 PyObject *resultobj = 0;
7110 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7111 wxString *result = 0 ;
7112 void *argp1 = 0 ;
7113 int res1 = 0 ;
7114 PyObject *swig_obj[1] ;
7115
7116 if (!args) SWIG_fail;
7117 swig_obj[0] = args;
7118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7119 if (!SWIG_IsOK(res1)) {
7120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7121 }
7122 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7123 {
7124 PyThreadState* __tstate = wxPyBeginAllowThreads();
7125 {
7126 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
7127 result = (wxString *) &_result_ref;
7128 }
7129 wxPyEndAllowThreads(__tstate);
7130 if (PyErr_Occurred()) SWIG_fail;
7131 }
7132 {
7133 #if wxUSE_UNICODE
7134 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7135 #else
7136 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7137 #endif
7138 }
7139 return resultobj;
7140 fail:
7141 return NULL;
7142 }
7143
7144
7145 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7146 PyObject *resultobj = 0;
7147 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7148 int arg2 ;
7149 void *argp1 = 0 ;
7150 int res1 = 0 ;
7151 int val2 ;
7152 int ecode2 = 0 ;
7153 PyObject * obj0 = 0 ;
7154 PyObject * obj1 = 0 ;
7155 char * kwnames[] = {
7156 (char *) "self",(char *) "num", NULL
7157 };
7158
7159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
7160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7161 if (!SWIG_IsOK(res1)) {
7162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7163 }
7164 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7165 ecode2 = SWIG_AsVal_int(obj1, &val2);
7166 if (!SWIG_IsOK(ecode2)) {
7167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
7168 }
7169 arg2 = static_cast< int >(val2);
7170 {
7171 PyThreadState* __tstate = wxPyBeginAllowThreads();
7172 wxIconLocation_SetIndex(arg1,arg2);
7173 wxPyEndAllowThreads(__tstate);
7174 if (PyErr_Occurred()) SWIG_fail;
7175 }
7176 resultobj = SWIG_Py_Void();
7177 return resultobj;
7178 fail:
7179 return NULL;
7180 }
7181
7182
7183 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7184 PyObject *resultobj = 0;
7185 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7186 int result;
7187 void *argp1 = 0 ;
7188 int res1 = 0 ;
7189 PyObject *swig_obj[1] ;
7190
7191 if (!args) SWIG_fail;
7192 swig_obj[0] = args;
7193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7194 if (!SWIG_IsOK(res1)) {
7195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7196 }
7197 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7198 {
7199 PyThreadState* __tstate = wxPyBeginAllowThreads();
7200 result = (int)wxIconLocation_GetIndex(arg1);
7201 wxPyEndAllowThreads(__tstate);
7202 if (PyErr_Occurred()) SWIG_fail;
7203 }
7204 resultobj = SWIG_From_int(static_cast< int >(result));
7205 return resultobj;
7206 fail:
7207 return NULL;
7208 }
7209
7210
7211 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7212 PyObject *obj;
7213 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7214 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
7215 return SWIG_Py_Void();
7216 }
7217
7218 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7219 return SWIG_Python_InitShadowInstance(args);
7220 }
7221
7222 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7223 PyObject *resultobj = 0;
7224 wxIconBundle *result = 0 ;
7225
7226 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
7227 {
7228 PyThreadState* __tstate = wxPyBeginAllowThreads();
7229 result = (wxIconBundle *)new wxIconBundle();
7230 wxPyEndAllowThreads(__tstate);
7231 if (PyErr_Occurred()) SWIG_fail;
7232 }
7233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
7234 return resultobj;
7235 fail:
7236 return NULL;
7237 }
7238
7239
7240 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7241 PyObject *resultobj = 0;
7242 wxString *arg1 = 0 ;
7243 long arg2 ;
7244 wxIconBundle *result = 0 ;
7245 bool temp1 = false ;
7246 long val2 ;
7247 int ecode2 = 0 ;
7248 PyObject * obj0 = 0 ;
7249 PyObject * obj1 = 0 ;
7250 char * kwnames[] = {
7251 (char *) "file",(char *) "type", NULL
7252 };
7253
7254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
7255 {
7256 arg1 = wxString_in_helper(obj0);
7257 if (arg1 == NULL) SWIG_fail;
7258 temp1 = true;
7259 }
7260 ecode2 = SWIG_AsVal_long(obj1, &val2);
7261 if (!SWIG_IsOK(ecode2)) {
7262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
7263 }
7264 arg2 = static_cast< long >(val2);
7265 {
7266 PyThreadState* __tstate = wxPyBeginAllowThreads();
7267 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
7268 wxPyEndAllowThreads(__tstate);
7269 if (PyErr_Occurred()) SWIG_fail;
7270 }
7271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7272 {
7273 if (temp1)
7274 delete arg1;
7275 }
7276 return resultobj;
7277 fail:
7278 {
7279 if (temp1)
7280 delete arg1;
7281 }
7282 return NULL;
7283 }
7284
7285
7286 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7287 PyObject *resultobj = 0;
7288 wxIcon *arg1 = 0 ;
7289 wxIconBundle *result = 0 ;
7290 void *argp1 = 0 ;
7291 int res1 = 0 ;
7292 PyObject * obj0 = 0 ;
7293 char * kwnames[] = {
7294 (char *) "icon", NULL
7295 };
7296
7297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
7298 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
7299 if (!SWIG_IsOK(res1)) {
7300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7301 }
7302 if (!argp1) {
7303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7304 }
7305 arg1 = reinterpret_cast< wxIcon * >(argp1);
7306 {
7307 PyThreadState* __tstate = wxPyBeginAllowThreads();
7308 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
7309 wxPyEndAllowThreads(__tstate);
7310 if (PyErr_Occurred()) SWIG_fail;
7311 }
7312 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7313 return resultobj;
7314 fail:
7315 return NULL;
7316 }
7317
7318
7319 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7320 PyObject *resultobj = 0;
7321 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7322 void *argp1 = 0 ;
7323 int res1 = 0 ;
7324 PyObject *swig_obj[1] ;
7325
7326 if (!args) SWIG_fail;
7327 swig_obj[0] = args;
7328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
7329 if (!SWIG_IsOK(res1)) {
7330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7331 }
7332 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7333 {
7334 PyThreadState* __tstate = wxPyBeginAllowThreads();
7335 delete arg1;
7336
7337 wxPyEndAllowThreads(__tstate);
7338 if (PyErr_Occurred()) SWIG_fail;
7339 }
7340 resultobj = SWIG_Py_Void();
7341 return resultobj;
7342 fail:
7343 return NULL;
7344 }
7345
7346
7347 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7348 PyObject *resultobj = 0;
7349 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7350 wxIcon *arg2 = 0 ;
7351 void *argp1 = 0 ;
7352 int res1 = 0 ;
7353 void *argp2 = 0 ;
7354 int res2 = 0 ;
7355 PyObject * obj0 = 0 ;
7356 PyObject * obj1 = 0 ;
7357 char * kwnames[] = {
7358 (char *) "self",(char *) "icon", NULL
7359 };
7360
7361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7363 if (!SWIG_IsOK(res1)) {
7364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7365 }
7366 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7367 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
7368 if (!SWIG_IsOK(res2)) {
7369 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7370 }
7371 if (!argp2) {
7372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7373 }
7374 arg2 = reinterpret_cast< wxIcon * >(argp2);
7375 {
7376 PyThreadState* __tstate = wxPyBeginAllowThreads();
7377 (arg1)->AddIcon((wxIcon const &)*arg2);
7378 wxPyEndAllowThreads(__tstate);
7379 if (PyErr_Occurred()) SWIG_fail;
7380 }
7381 resultobj = SWIG_Py_Void();
7382 return resultobj;
7383 fail:
7384 return NULL;
7385 }
7386
7387
7388 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7389 PyObject *resultobj = 0;
7390 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7391 wxString *arg2 = 0 ;
7392 long arg3 ;
7393 void *argp1 = 0 ;
7394 int res1 = 0 ;
7395 bool temp2 = false ;
7396 long val3 ;
7397 int ecode3 = 0 ;
7398 PyObject * obj0 = 0 ;
7399 PyObject * obj1 = 0 ;
7400 PyObject * obj2 = 0 ;
7401 char * kwnames[] = {
7402 (char *) "self",(char *) "file",(char *) "type", NULL
7403 };
7404
7405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7407 if (!SWIG_IsOK(res1)) {
7408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7409 }
7410 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7411 {
7412 arg2 = wxString_in_helper(obj1);
7413 if (arg2 == NULL) SWIG_fail;
7414 temp2 = true;
7415 }
7416 ecode3 = SWIG_AsVal_long(obj2, &val3);
7417 if (!SWIG_IsOK(ecode3)) {
7418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
7419 }
7420 arg3 = static_cast< long >(val3);
7421 {
7422 PyThreadState* __tstate = wxPyBeginAllowThreads();
7423 (arg1)->AddIcon((wxString const &)*arg2,arg3);
7424 wxPyEndAllowThreads(__tstate);
7425 if (PyErr_Occurred()) SWIG_fail;
7426 }
7427 resultobj = SWIG_Py_Void();
7428 {
7429 if (temp2)
7430 delete arg2;
7431 }
7432 return resultobj;
7433 fail:
7434 {
7435 if (temp2)
7436 delete arg2;
7437 }
7438 return NULL;
7439 }
7440
7441
7442 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7443 PyObject *resultobj = 0;
7444 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7445 wxSize *arg2 = 0 ;
7446 wxIcon *result = 0 ;
7447 void *argp1 = 0 ;
7448 int res1 = 0 ;
7449 wxSize temp2 ;
7450 PyObject * obj0 = 0 ;
7451 PyObject * obj1 = 0 ;
7452 char * kwnames[] = {
7453 (char *) "self",(char *) "size", NULL
7454 };
7455
7456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7458 if (!SWIG_IsOK(res1)) {
7459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
7460 }
7461 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7462 {
7463 arg2 = &temp2;
7464 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7465 }
7466 {
7467 PyThreadState* __tstate = wxPyBeginAllowThreads();
7468 {
7469 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
7470 result = (wxIcon *) &_result_ref;
7471 }
7472 wxPyEndAllowThreads(__tstate);
7473 if (PyErr_Occurred()) SWIG_fail;
7474 }
7475 {
7476 wxIcon* resultptr = new wxIcon(*result);
7477 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
7478 }
7479 return resultobj;
7480 fail:
7481 return NULL;
7482 }
7483
7484
7485 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7486 PyObject *obj;
7487 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7488 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
7489 return SWIG_Py_Void();
7490 }
7491
7492 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7493 return SWIG_Python_InitShadowInstance(args);
7494 }
7495
7496 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7497 PyObject *resultobj = 0;
7498 wxString *arg1 = 0 ;
7499 long arg2 ;
7500 int arg3 = (int) 0 ;
7501 int arg4 = (int) 0 ;
7502 wxCursor *result = 0 ;
7503 bool temp1 = false ;
7504 long val2 ;
7505 int ecode2 = 0 ;
7506 int val3 ;
7507 int ecode3 = 0 ;
7508 int val4 ;
7509 int ecode4 = 0 ;
7510 PyObject * obj0 = 0 ;
7511 PyObject * obj1 = 0 ;
7512 PyObject * obj2 = 0 ;
7513 PyObject * obj3 = 0 ;
7514 char * kwnames[] = {
7515 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
7516 };
7517
7518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7519 {
7520 arg1 = wxString_in_helper(obj0);
7521 if (arg1 == NULL) SWIG_fail;
7522 temp1 = true;
7523 }
7524 ecode2 = SWIG_AsVal_long(obj1, &val2);
7525 if (!SWIG_IsOK(ecode2)) {
7526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
7527 }
7528 arg2 = static_cast< long >(val2);
7529 if (obj2) {
7530 ecode3 = SWIG_AsVal_int(obj2, &val3);
7531 if (!SWIG_IsOK(ecode3)) {
7532 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
7533 }
7534 arg3 = static_cast< int >(val3);
7535 }
7536 if (obj3) {
7537 ecode4 = SWIG_AsVal_int(obj3, &val4);
7538 if (!SWIG_IsOK(ecode4)) {
7539 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
7540 }
7541 arg4 = static_cast< int >(val4);
7542 }
7543 {
7544 if (!wxPyCheckForApp()) SWIG_fail;
7545 PyThreadState* __tstate = wxPyBeginAllowThreads();
7546 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
7547 wxPyEndAllowThreads(__tstate);
7548 if (PyErr_Occurred()) SWIG_fail;
7549 }
7550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
7551 {
7552 if (temp1)
7553 delete arg1;
7554 }
7555 return resultobj;
7556 fail:
7557 {
7558 if (temp1)
7559 delete arg1;
7560 }
7561 return NULL;
7562 }
7563
7564
7565 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7566 PyObject *resultobj = 0;
7567 wxCursor *arg1 = (wxCursor *) 0 ;
7568 void *argp1 = 0 ;
7569 int res1 = 0 ;
7570 PyObject *swig_obj[1] ;
7571
7572 if (!args) SWIG_fail;
7573 swig_obj[0] = args;
7574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
7575 if (!SWIG_IsOK(res1)) {
7576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
7577 }
7578 arg1 = reinterpret_cast< wxCursor * >(argp1);
7579 {
7580 PyThreadState* __tstate = wxPyBeginAllowThreads();
7581 delete arg1;
7582
7583 wxPyEndAllowThreads(__tstate);
7584 if (PyErr_Occurred()) SWIG_fail;
7585 }
7586 resultobj = SWIG_Py_Void();
7587 return resultobj;
7588 fail:
7589 return NULL;
7590 }
7591
7592
7593 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7594 PyObject *resultobj = 0;
7595 int arg1 ;
7596 wxCursor *result = 0 ;
7597 int val1 ;
7598 int ecode1 = 0 ;
7599 PyObject * obj0 = 0 ;
7600 char * kwnames[] = {
7601 (char *) "id", NULL
7602 };
7603
7604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
7605 ecode1 = SWIG_AsVal_int(obj0, &val1);
7606 if (!SWIG_IsOK(ecode1)) {
7607 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
7608 }
7609 arg1 = static_cast< int >(val1);
7610 {
7611 if (!wxPyCheckForApp()) SWIG_fail;
7612 PyThreadState* __tstate = wxPyBeginAllowThreads();
7613 result = (wxCursor *)new wxCursor(arg1);
7614 wxPyEndAllowThreads(__tstate);
7615 if (PyErr_Occurred()) SWIG_fail;
7616 }
7617 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7618 return resultobj;
7619 fail:
7620 return NULL;
7621 }
7622
7623
7624 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7625 PyObject *resultobj = 0;
7626 wxImage *arg1 = 0 ;
7627 wxCursor *result = 0 ;
7628 void *argp1 = 0 ;
7629 int res1 = 0 ;
7630 PyObject * obj0 = 0 ;
7631 char * kwnames[] = {
7632 (char *) "image", NULL
7633 };
7634
7635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
7636 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
7637 if (!SWIG_IsOK(res1)) {
7638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7639 }
7640 if (!argp1) {
7641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7642 }
7643 arg1 = reinterpret_cast< wxImage * >(argp1);
7644 {
7645 if (!wxPyCheckForApp()) SWIG_fail;
7646 PyThreadState* __tstate = wxPyBeginAllowThreads();
7647 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
7648 wxPyEndAllowThreads(__tstate);
7649 if (PyErr_Occurred()) SWIG_fail;
7650 }
7651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7652 return resultobj;
7653 fail:
7654 return NULL;
7655 }
7656
7657
7658 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7659 PyObject *resultobj = 0;
7660 wxCursor *arg1 = (wxCursor *) 0 ;
7661 bool result;
7662 void *argp1 = 0 ;
7663 int res1 = 0 ;
7664 PyObject *swig_obj[1] ;
7665
7666 if (!args) SWIG_fail;
7667 swig_obj[0] = args;
7668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7669 if (!SWIG_IsOK(res1)) {
7670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
7671 }
7672 arg1 = reinterpret_cast< wxCursor * >(argp1);
7673 {
7674 PyThreadState* __tstate = wxPyBeginAllowThreads();
7675 result = (bool)(arg1)->Ok();
7676 wxPyEndAllowThreads(__tstate);
7677 if (PyErr_Occurred()) SWIG_fail;
7678 }
7679 {
7680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7681 }
7682 return resultobj;
7683 fail:
7684 return NULL;
7685 }
7686
7687
7688 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7689 PyObject *obj;
7690 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7691 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
7692 return SWIG_Py_Void();
7693 }
7694
7695 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7696 return SWIG_Python_InitShadowInstance(args);
7697 }
7698
7699 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7700 PyObject *resultobj = 0;
7701 int arg1 = (int) 0 ;
7702 int arg2 = (int) 0 ;
7703 int arg3 = (int) 0 ;
7704 int arg4 = (int) 0 ;
7705 wxRegion *result = 0 ;
7706 int val1 ;
7707 int ecode1 = 0 ;
7708 int val2 ;
7709 int ecode2 = 0 ;
7710 int val3 ;
7711 int ecode3 = 0 ;
7712 int val4 ;
7713 int ecode4 = 0 ;
7714 PyObject * obj0 = 0 ;
7715 PyObject * obj1 = 0 ;
7716 PyObject * obj2 = 0 ;
7717 PyObject * obj3 = 0 ;
7718 char * kwnames[] = {
7719 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7720 };
7721
7722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7723 if (obj0) {
7724 ecode1 = SWIG_AsVal_int(obj0, &val1);
7725 if (!SWIG_IsOK(ecode1)) {
7726 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
7727 }
7728 arg1 = static_cast< int >(val1);
7729 }
7730 if (obj1) {
7731 ecode2 = SWIG_AsVal_int(obj1, &val2);
7732 if (!SWIG_IsOK(ecode2)) {
7733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
7734 }
7735 arg2 = static_cast< int >(val2);
7736 }
7737 if (obj2) {
7738 ecode3 = SWIG_AsVal_int(obj2, &val3);
7739 if (!SWIG_IsOK(ecode3)) {
7740 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
7741 }
7742 arg3 = static_cast< int >(val3);
7743 }
7744 if (obj3) {
7745 ecode4 = SWIG_AsVal_int(obj3, &val4);
7746 if (!SWIG_IsOK(ecode4)) {
7747 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
7748 }
7749 arg4 = static_cast< int >(val4);
7750 }
7751 {
7752 if (!wxPyCheckForApp()) SWIG_fail;
7753 PyThreadState* __tstate = wxPyBeginAllowThreads();
7754 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
7755 wxPyEndAllowThreads(__tstate);
7756 if (PyErr_Occurred()) SWIG_fail;
7757 }
7758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
7759 return resultobj;
7760 fail:
7761 return NULL;
7762 }
7763
7764
7765 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7766 PyObject *resultobj = 0;
7767 wxBitmap *arg1 = 0 ;
7768 wxRegion *result = 0 ;
7769 void *argp1 = 0 ;
7770 int res1 = 0 ;
7771 PyObject * obj0 = 0 ;
7772 char * kwnames[] = {
7773 (char *) "bmp", NULL
7774 };
7775
7776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
7777 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7778 if (!SWIG_IsOK(res1)) {
7779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7780 }
7781 if (!argp1) {
7782 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7783 }
7784 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7785 {
7786 if (!wxPyCheckForApp()) SWIG_fail;
7787 PyThreadState* __tstate = wxPyBeginAllowThreads();
7788 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
7789 wxPyEndAllowThreads(__tstate);
7790 if (PyErr_Occurred()) SWIG_fail;
7791 }
7792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7793 return resultobj;
7794 fail:
7795 return NULL;
7796 }
7797
7798
7799 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7800 PyObject *resultobj = 0;
7801 wxBitmap *arg1 = 0 ;
7802 wxColour *arg2 = 0 ;
7803 int arg3 = (int) 0 ;
7804 wxRegion *result = 0 ;
7805 void *argp1 = 0 ;
7806 int res1 = 0 ;
7807 wxColour temp2 ;
7808 int val3 ;
7809 int ecode3 = 0 ;
7810 PyObject * obj0 = 0 ;
7811 PyObject * obj1 = 0 ;
7812 PyObject * obj2 = 0 ;
7813 char * kwnames[] = {
7814 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
7815 };
7816
7817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7818 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7819 if (!SWIG_IsOK(res1)) {
7820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7821 }
7822 if (!argp1) {
7823 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7824 }
7825 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7826 {
7827 arg2 = &temp2;
7828 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7829 }
7830 if (obj2) {
7831 ecode3 = SWIG_AsVal_int(obj2, &val3);
7832 if (!SWIG_IsOK(ecode3)) {
7833 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
7834 }
7835 arg3 = static_cast< int >(val3);
7836 }
7837 {
7838 if (!wxPyCheckForApp()) SWIG_fail;
7839 PyThreadState* __tstate = wxPyBeginAllowThreads();
7840 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
7841 wxPyEndAllowThreads(__tstate);
7842 if (PyErr_Occurred()) SWIG_fail;
7843 }
7844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7845 return resultobj;
7846 fail:
7847 return NULL;
7848 }
7849
7850
7851 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7852 PyObject *resultobj = 0;
7853 int arg1 ;
7854 wxPoint *arg2 = (wxPoint *) 0 ;
7855 int arg3 = (int) wxWINDING_RULE ;
7856 wxRegion *result = 0 ;
7857 int val3 ;
7858 int ecode3 = 0 ;
7859 PyObject * obj0 = 0 ;
7860 PyObject * obj1 = 0 ;
7861 char * kwnames[] = {
7862 (char *) "points",(char *) "fillStyle", NULL
7863 };
7864
7865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
7866 {
7867 arg2 = wxPoint_LIST_helper(obj0, &arg1);
7868 if (arg2 == NULL) SWIG_fail;
7869 }
7870 if (obj1) {
7871 ecode3 = SWIG_AsVal_int(obj1, &val3);
7872 if (!SWIG_IsOK(ecode3)) {
7873 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
7874 }
7875 arg3 = static_cast< int >(val3);
7876 }
7877 {
7878 if (!wxPyCheckForApp()) SWIG_fail;
7879 PyThreadState* __tstate = wxPyBeginAllowThreads();
7880 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
7881 wxPyEndAllowThreads(__tstate);
7882 if (PyErr_Occurred()) SWIG_fail;
7883 }
7884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7885 {
7886 if (arg2) delete [] arg2;
7887 }
7888 return resultobj;
7889 fail:
7890 {
7891 if (arg2) delete [] arg2;
7892 }
7893 return NULL;
7894 }
7895
7896
7897 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7898 PyObject *resultobj = 0;
7899 wxRegion *arg1 = (wxRegion *) 0 ;
7900 void *argp1 = 0 ;
7901 int res1 = 0 ;
7902 PyObject *swig_obj[1] ;
7903
7904 if (!args) SWIG_fail;
7905 swig_obj[0] = args;
7906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
7907 if (!SWIG_IsOK(res1)) {
7908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
7909 }
7910 arg1 = reinterpret_cast< wxRegion * >(argp1);
7911 {
7912 PyThreadState* __tstate = wxPyBeginAllowThreads();
7913 delete arg1;
7914
7915 wxPyEndAllowThreads(__tstate);
7916 if (PyErr_Occurred()) SWIG_fail;
7917 }
7918 resultobj = SWIG_Py_Void();
7919 return resultobj;
7920 fail:
7921 return NULL;
7922 }
7923
7924
7925 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7926 PyObject *resultobj = 0;
7927 wxRegion *arg1 = (wxRegion *) 0 ;
7928 void *argp1 = 0 ;
7929 int res1 = 0 ;
7930 PyObject *swig_obj[1] ;
7931
7932 if (!args) SWIG_fail;
7933 swig_obj[0] = args;
7934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7935 if (!SWIG_IsOK(res1)) {
7936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
7937 }
7938 arg1 = reinterpret_cast< wxRegion * >(argp1);
7939 {
7940 PyThreadState* __tstate = wxPyBeginAllowThreads();
7941 (arg1)->Clear();
7942 wxPyEndAllowThreads(__tstate);
7943 if (PyErr_Occurred()) SWIG_fail;
7944 }
7945 resultobj = SWIG_Py_Void();
7946 return resultobj;
7947 fail:
7948 return NULL;
7949 }
7950
7951
7952 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7953 PyObject *resultobj = 0;
7954 wxRegion *arg1 = (wxRegion *) 0 ;
7955 int arg2 ;
7956 int arg3 ;
7957 bool result;
7958 void *argp1 = 0 ;
7959 int res1 = 0 ;
7960 int val2 ;
7961 int ecode2 = 0 ;
7962 int val3 ;
7963 int ecode3 = 0 ;
7964 PyObject * obj0 = 0 ;
7965 PyObject * obj1 = 0 ;
7966 PyObject * obj2 = 0 ;
7967 char * kwnames[] = {
7968 (char *) "self",(char *) "x",(char *) "y", NULL
7969 };
7970
7971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7973 if (!SWIG_IsOK(res1)) {
7974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
7975 }
7976 arg1 = reinterpret_cast< wxRegion * >(argp1);
7977 ecode2 = SWIG_AsVal_int(obj1, &val2);
7978 if (!SWIG_IsOK(ecode2)) {
7979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
7980 }
7981 arg2 = static_cast< int >(val2);
7982 ecode3 = SWIG_AsVal_int(obj2, &val3);
7983 if (!SWIG_IsOK(ecode3)) {
7984 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
7985 }
7986 arg3 = static_cast< int >(val3);
7987 {
7988 PyThreadState* __tstate = wxPyBeginAllowThreads();
7989 result = (bool)(arg1)->Offset(arg2,arg3);
7990 wxPyEndAllowThreads(__tstate);
7991 if (PyErr_Occurred()) SWIG_fail;
7992 }
7993 {
7994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7995 }
7996 return resultobj;
7997 fail:
7998 return NULL;
7999 }
8000
8001
8002 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8003 PyObject *resultobj = 0;
8004 wxRegion *arg1 = (wxRegion *) 0 ;
8005 int arg2 ;
8006 int arg3 ;
8007 wxRegionContain result;
8008 void *argp1 = 0 ;
8009 int res1 = 0 ;
8010 int val2 ;
8011 int ecode2 = 0 ;
8012 int val3 ;
8013 int ecode3 = 0 ;
8014 PyObject * obj0 = 0 ;
8015 PyObject * obj1 = 0 ;
8016 PyObject * obj2 = 0 ;
8017 char * kwnames[] = {
8018 (char *) "self",(char *) "x",(char *) "y", NULL
8019 };
8020
8021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8023 if (!SWIG_IsOK(res1)) {
8024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
8025 }
8026 arg1 = reinterpret_cast< wxRegion * >(argp1);
8027 ecode2 = SWIG_AsVal_int(obj1, &val2);
8028 if (!SWIG_IsOK(ecode2)) {
8029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
8030 }
8031 arg2 = static_cast< int >(val2);
8032 ecode3 = SWIG_AsVal_int(obj2, &val3);
8033 if (!SWIG_IsOK(ecode3)) {
8034 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
8035 }
8036 arg3 = static_cast< int >(val3);
8037 {
8038 PyThreadState* __tstate = wxPyBeginAllowThreads();
8039 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
8040 wxPyEndAllowThreads(__tstate);
8041 if (PyErr_Occurred()) SWIG_fail;
8042 }
8043 resultobj = SWIG_From_int(static_cast< int >(result));
8044 return resultobj;
8045 fail:
8046 return NULL;
8047 }
8048
8049
8050 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8051 PyObject *resultobj = 0;
8052 wxRegion *arg1 = (wxRegion *) 0 ;
8053 wxPoint *arg2 = 0 ;
8054 wxRegionContain result;
8055 void *argp1 = 0 ;
8056 int res1 = 0 ;
8057 wxPoint temp2 ;
8058 PyObject * obj0 = 0 ;
8059 PyObject * obj1 = 0 ;
8060 char * kwnames[] = {
8061 (char *) "self",(char *) "pt", NULL
8062 };
8063
8064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
8065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8066 if (!SWIG_IsOK(res1)) {
8067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
8068 }
8069 arg1 = reinterpret_cast< wxRegion * >(argp1);
8070 {
8071 arg2 = &temp2;
8072 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8073 }
8074 {
8075 PyThreadState* __tstate = wxPyBeginAllowThreads();
8076 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
8077 wxPyEndAllowThreads(__tstate);
8078 if (PyErr_Occurred()) SWIG_fail;
8079 }
8080 resultobj = SWIG_From_int(static_cast< int >(result));
8081 return resultobj;
8082 fail:
8083 return NULL;
8084 }
8085
8086
8087 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8088 PyObject *resultobj = 0;
8089 wxRegion *arg1 = (wxRegion *) 0 ;
8090 wxRect *arg2 = 0 ;
8091 wxRegionContain result;
8092 void *argp1 = 0 ;
8093 int res1 = 0 ;
8094 wxRect temp2 ;
8095 PyObject * obj0 = 0 ;
8096 PyObject * obj1 = 0 ;
8097 char * kwnames[] = {
8098 (char *) "self",(char *) "rect", NULL
8099 };
8100
8101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
8102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8103 if (!SWIG_IsOK(res1)) {
8104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8105 }
8106 arg1 = reinterpret_cast< wxRegion * >(argp1);
8107 {
8108 arg2 = &temp2;
8109 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8110 }
8111 {
8112 PyThreadState* __tstate = wxPyBeginAllowThreads();
8113 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
8114 wxPyEndAllowThreads(__tstate);
8115 if (PyErr_Occurred()) SWIG_fail;
8116 }
8117 resultobj = SWIG_From_int(static_cast< int >(result));
8118 return resultobj;
8119 fail:
8120 return NULL;
8121 }
8122
8123
8124 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8125 PyObject *resultobj = 0;
8126 wxRegion *arg1 = (wxRegion *) 0 ;
8127 int arg2 ;
8128 int arg3 ;
8129 int arg4 ;
8130 int arg5 ;
8131 wxRegionContain result;
8132 void *argp1 = 0 ;
8133 int res1 = 0 ;
8134 int val2 ;
8135 int ecode2 = 0 ;
8136 int val3 ;
8137 int ecode3 = 0 ;
8138 int val4 ;
8139 int ecode4 = 0 ;
8140 int val5 ;
8141 int ecode5 = 0 ;
8142 PyObject * obj0 = 0 ;
8143 PyObject * obj1 = 0 ;
8144 PyObject * obj2 = 0 ;
8145 PyObject * obj3 = 0 ;
8146 PyObject * obj4 = 0 ;
8147 char * kwnames[] = {
8148 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
8149 };
8150
8151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8153 if (!SWIG_IsOK(res1)) {
8154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
8155 }
8156 arg1 = reinterpret_cast< wxRegion * >(argp1);
8157 ecode2 = SWIG_AsVal_int(obj1, &val2);
8158 if (!SWIG_IsOK(ecode2)) {
8159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
8160 }
8161 arg2 = static_cast< int >(val2);
8162 ecode3 = SWIG_AsVal_int(obj2, &val3);
8163 if (!SWIG_IsOK(ecode3)) {
8164 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
8165 }
8166 arg3 = static_cast< int >(val3);
8167 ecode4 = SWIG_AsVal_int(obj3, &val4);
8168 if (!SWIG_IsOK(ecode4)) {
8169 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
8170 }
8171 arg4 = static_cast< int >(val4);
8172 ecode5 = SWIG_AsVal_int(obj4, &val5);
8173 if (!SWIG_IsOK(ecode5)) {
8174 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
8175 }
8176 arg5 = static_cast< int >(val5);
8177 {
8178 PyThreadState* __tstate = wxPyBeginAllowThreads();
8179 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
8180 wxPyEndAllowThreads(__tstate);
8181 if (PyErr_Occurred()) SWIG_fail;
8182 }
8183 resultobj = SWIG_From_int(static_cast< int >(result));
8184 return resultobj;
8185 fail:
8186 return NULL;
8187 }
8188
8189
8190 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8191 PyObject *resultobj = 0;
8192 wxRegion *arg1 = (wxRegion *) 0 ;
8193 wxRect result;
8194 void *argp1 = 0 ;
8195 int res1 = 0 ;
8196 PyObject *swig_obj[1] ;
8197
8198 if (!args) SWIG_fail;
8199 swig_obj[0] = args;
8200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8201 if (!SWIG_IsOK(res1)) {
8202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
8203 }
8204 arg1 = reinterpret_cast< wxRegion * >(argp1);
8205 {
8206 PyThreadState* __tstate = wxPyBeginAllowThreads();
8207 result = (arg1)->GetBox();
8208 wxPyEndAllowThreads(__tstate);
8209 if (PyErr_Occurred()) SWIG_fail;
8210 }
8211 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
8212 return resultobj;
8213 fail:
8214 return NULL;
8215 }
8216
8217
8218 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8219 PyObject *resultobj = 0;
8220 wxRegion *arg1 = (wxRegion *) 0 ;
8221 int arg2 ;
8222 int arg3 ;
8223 int arg4 ;
8224 int arg5 ;
8225 bool result;
8226 void *argp1 = 0 ;
8227 int res1 = 0 ;
8228 int val2 ;
8229 int ecode2 = 0 ;
8230 int val3 ;
8231 int ecode3 = 0 ;
8232 int val4 ;
8233 int ecode4 = 0 ;
8234 int val5 ;
8235 int ecode5 = 0 ;
8236 PyObject * obj0 = 0 ;
8237 PyObject * obj1 = 0 ;
8238 PyObject * obj2 = 0 ;
8239 PyObject * obj3 = 0 ;
8240 PyObject * obj4 = 0 ;
8241 char * kwnames[] = {
8242 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8243 };
8244
8245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8247 if (!SWIG_IsOK(res1)) {
8248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
8249 }
8250 arg1 = reinterpret_cast< wxRegion * >(argp1);
8251 ecode2 = SWIG_AsVal_int(obj1, &val2);
8252 if (!SWIG_IsOK(ecode2)) {
8253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
8254 }
8255 arg2 = static_cast< int >(val2);
8256 ecode3 = SWIG_AsVal_int(obj2, &val3);
8257 if (!SWIG_IsOK(ecode3)) {
8258 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
8259 }
8260 arg3 = static_cast< int >(val3);
8261 ecode4 = SWIG_AsVal_int(obj3, &val4);
8262 if (!SWIG_IsOK(ecode4)) {
8263 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
8264 }
8265 arg4 = static_cast< int >(val4);
8266 ecode5 = SWIG_AsVal_int(obj4, &val5);
8267 if (!SWIG_IsOK(ecode5)) {
8268 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
8269 }
8270 arg5 = static_cast< int >(val5);
8271 {
8272 PyThreadState* __tstate = wxPyBeginAllowThreads();
8273 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
8274 wxPyEndAllowThreads(__tstate);
8275 if (PyErr_Occurred()) SWIG_fail;
8276 }
8277 {
8278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8279 }
8280 return resultobj;
8281 fail:
8282 return NULL;
8283 }
8284
8285
8286 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8287 PyObject *resultobj = 0;
8288 wxRegion *arg1 = (wxRegion *) 0 ;
8289 wxRect *arg2 = 0 ;
8290 bool result;
8291 void *argp1 = 0 ;
8292 int res1 = 0 ;
8293 wxRect temp2 ;
8294 PyObject * obj0 = 0 ;
8295 PyObject * obj1 = 0 ;
8296 char * kwnames[] = {
8297 (char *) "self",(char *) "rect", NULL
8298 };
8299
8300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8302 if (!SWIG_IsOK(res1)) {
8303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8304 }
8305 arg1 = reinterpret_cast< wxRegion * >(argp1);
8306 {
8307 arg2 = &temp2;
8308 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8309 }
8310 {
8311 PyThreadState* __tstate = wxPyBeginAllowThreads();
8312 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
8313 wxPyEndAllowThreads(__tstate);
8314 if (PyErr_Occurred()) SWIG_fail;
8315 }
8316 {
8317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8318 }
8319 return resultobj;
8320 fail:
8321 return NULL;
8322 }
8323
8324
8325 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8326 PyObject *resultobj = 0;
8327 wxRegion *arg1 = (wxRegion *) 0 ;
8328 wxRegion *arg2 = 0 ;
8329 bool result;
8330 void *argp1 = 0 ;
8331 int res1 = 0 ;
8332 void *argp2 = 0 ;
8333 int res2 = 0 ;
8334 PyObject * obj0 = 0 ;
8335 PyObject * obj1 = 0 ;
8336 char * kwnames[] = {
8337 (char *) "self",(char *) "region", NULL
8338 };
8339
8340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8342 if (!SWIG_IsOK(res1)) {
8343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8344 }
8345 arg1 = reinterpret_cast< wxRegion * >(argp1);
8346 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8347 if (!SWIG_IsOK(res2)) {
8348 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8349 }
8350 if (!argp2) {
8351 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8352 }
8353 arg2 = reinterpret_cast< wxRegion * >(argp2);
8354 {
8355 PyThreadState* __tstate = wxPyBeginAllowThreads();
8356 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
8357 wxPyEndAllowThreads(__tstate);
8358 if (PyErr_Occurred()) SWIG_fail;
8359 }
8360 {
8361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8362 }
8363 return resultobj;
8364 fail:
8365 return NULL;
8366 }
8367
8368
8369 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8370 PyObject *resultobj = 0;
8371 wxRegion *arg1 = (wxRegion *) 0 ;
8372 bool result;
8373 void *argp1 = 0 ;
8374 int res1 = 0 ;
8375 PyObject *swig_obj[1] ;
8376
8377 if (!args) SWIG_fail;
8378 swig_obj[0] = args;
8379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8380 if (!SWIG_IsOK(res1)) {
8381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
8382 }
8383 arg1 = reinterpret_cast< wxRegion * >(argp1);
8384 {
8385 PyThreadState* __tstate = wxPyBeginAllowThreads();
8386 result = (bool)(arg1)->IsEmpty();
8387 wxPyEndAllowThreads(__tstate);
8388 if (PyErr_Occurred()) SWIG_fail;
8389 }
8390 {
8391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8392 }
8393 return resultobj;
8394 fail:
8395 return NULL;
8396 }
8397
8398
8399 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8400 PyObject *resultobj = 0;
8401 wxRegion *arg1 = (wxRegion *) 0 ;
8402 int arg2 ;
8403 int arg3 ;
8404 int arg4 ;
8405 int arg5 ;
8406 bool result;
8407 void *argp1 = 0 ;
8408 int res1 = 0 ;
8409 int val2 ;
8410 int ecode2 = 0 ;
8411 int val3 ;
8412 int ecode3 = 0 ;
8413 int val4 ;
8414 int ecode4 = 0 ;
8415 int val5 ;
8416 int ecode5 = 0 ;
8417 PyObject * obj0 = 0 ;
8418 PyObject * obj1 = 0 ;
8419 PyObject * obj2 = 0 ;
8420 PyObject * obj3 = 0 ;
8421 PyObject * obj4 = 0 ;
8422 char * kwnames[] = {
8423 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8424 };
8425
8426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8428 if (!SWIG_IsOK(res1)) {
8429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
8430 }
8431 arg1 = reinterpret_cast< wxRegion * >(argp1);
8432 ecode2 = SWIG_AsVal_int(obj1, &val2);
8433 if (!SWIG_IsOK(ecode2)) {
8434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
8435 }
8436 arg2 = static_cast< int >(val2);
8437 ecode3 = SWIG_AsVal_int(obj2, &val3);
8438 if (!SWIG_IsOK(ecode3)) {
8439 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
8440 }
8441 arg3 = static_cast< int >(val3);
8442 ecode4 = SWIG_AsVal_int(obj3, &val4);
8443 if (!SWIG_IsOK(ecode4)) {
8444 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
8445 }
8446 arg4 = static_cast< int >(val4);
8447 ecode5 = SWIG_AsVal_int(obj4, &val5);
8448 if (!SWIG_IsOK(ecode5)) {
8449 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
8450 }
8451 arg5 = static_cast< int >(val5);
8452 {
8453 PyThreadState* __tstate = wxPyBeginAllowThreads();
8454 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
8455 wxPyEndAllowThreads(__tstate);
8456 if (PyErr_Occurred()) SWIG_fail;
8457 }
8458 {
8459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8460 }
8461 return resultobj;
8462 fail:
8463 return NULL;
8464 }
8465
8466
8467 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8468 PyObject *resultobj = 0;
8469 wxRegion *arg1 = (wxRegion *) 0 ;
8470 wxRect *arg2 = 0 ;
8471 bool result;
8472 void *argp1 = 0 ;
8473 int res1 = 0 ;
8474 wxRect temp2 ;
8475 PyObject * obj0 = 0 ;
8476 PyObject * obj1 = 0 ;
8477 char * kwnames[] = {
8478 (char *) "self",(char *) "rect", NULL
8479 };
8480
8481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
8482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8483 if (!SWIG_IsOK(res1)) {
8484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8485 }
8486 arg1 = reinterpret_cast< wxRegion * >(argp1);
8487 {
8488 arg2 = &temp2;
8489 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8490 }
8491 {
8492 PyThreadState* __tstate = wxPyBeginAllowThreads();
8493 result = (bool)(arg1)->Union((wxRect const &)*arg2);
8494 wxPyEndAllowThreads(__tstate);
8495 if (PyErr_Occurred()) SWIG_fail;
8496 }
8497 {
8498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8499 }
8500 return resultobj;
8501 fail:
8502 return NULL;
8503 }
8504
8505
8506 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8507 PyObject *resultobj = 0;
8508 wxRegion *arg1 = (wxRegion *) 0 ;
8509 wxRegion *arg2 = 0 ;
8510 bool result;
8511 void *argp1 = 0 ;
8512 int res1 = 0 ;
8513 void *argp2 = 0 ;
8514 int res2 = 0 ;
8515 PyObject * obj0 = 0 ;
8516 PyObject * obj1 = 0 ;
8517 char * kwnames[] = {
8518 (char *) "self",(char *) "region", NULL
8519 };
8520
8521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8523 if (!SWIG_IsOK(res1)) {
8524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8525 }
8526 arg1 = reinterpret_cast< wxRegion * >(argp1);
8527 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8528 if (!SWIG_IsOK(res2)) {
8529 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8530 }
8531 if (!argp2) {
8532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8533 }
8534 arg2 = reinterpret_cast< wxRegion * >(argp2);
8535 {
8536 PyThreadState* __tstate = wxPyBeginAllowThreads();
8537 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
8538 wxPyEndAllowThreads(__tstate);
8539 if (PyErr_Occurred()) SWIG_fail;
8540 }
8541 {
8542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8543 }
8544 return resultobj;
8545 fail:
8546 return NULL;
8547 }
8548
8549
8550 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8551 PyObject *resultobj = 0;
8552 wxRegion *arg1 = (wxRegion *) 0 ;
8553 int arg2 ;
8554 int arg3 ;
8555 int arg4 ;
8556 int arg5 ;
8557 bool result;
8558 void *argp1 = 0 ;
8559 int res1 = 0 ;
8560 int val2 ;
8561 int ecode2 = 0 ;
8562 int val3 ;
8563 int ecode3 = 0 ;
8564 int val4 ;
8565 int ecode4 = 0 ;
8566 int val5 ;
8567 int ecode5 = 0 ;
8568 PyObject * obj0 = 0 ;
8569 PyObject * obj1 = 0 ;
8570 PyObject * obj2 = 0 ;
8571 PyObject * obj3 = 0 ;
8572 PyObject * obj4 = 0 ;
8573 char * kwnames[] = {
8574 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8575 };
8576
8577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8579 if (!SWIG_IsOK(res1)) {
8580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
8581 }
8582 arg1 = reinterpret_cast< wxRegion * >(argp1);
8583 ecode2 = SWIG_AsVal_int(obj1, &val2);
8584 if (!SWIG_IsOK(ecode2)) {
8585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
8586 }
8587 arg2 = static_cast< int >(val2);
8588 ecode3 = SWIG_AsVal_int(obj2, &val3);
8589 if (!SWIG_IsOK(ecode3)) {
8590 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
8591 }
8592 arg3 = static_cast< int >(val3);
8593 ecode4 = SWIG_AsVal_int(obj3, &val4);
8594 if (!SWIG_IsOK(ecode4)) {
8595 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
8596 }
8597 arg4 = static_cast< int >(val4);
8598 ecode5 = SWIG_AsVal_int(obj4, &val5);
8599 if (!SWIG_IsOK(ecode5)) {
8600 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
8601 }
8602 arg5 = static_cast< int >(val5);
8603 {
8604 PyThreadState* __tstate = wxPyBeginAllowThreads();
8605 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
8606 wxPyEndAllowThreads(__tstate);
8607 if (PyErr_Occurred()) SWIG_fail;
8608 }
8609 {
8610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8611 }
8612 return resultobj;
8613 fail:
8614 return NULL;
8615 }
8616
8617
8618 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8619 PyObject *resultobj = 0;
8620 wxRegion *arg1 = (wxRegion *) 0 ;
8621 wxRect *arg2 = 0 ;
8622 bool result;
8623 void *argp1 = 0 ;
8624 int res1 = 0 ;
8625 wxRect temp2 ;
8626 PyObject * obj0 = 0 ;
8627 PyObject * obj1 = 0 ;
8628 char * kwnames[] = {
8629 (char *) "self",(char *) "rect", NULL
8630 };
8631
8632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
8633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8634 if (!SWIG_IsOK(res1)) {
8635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8636 }
8637 arg1 = reinterpret_cast< wxRegion * >(argp1);
8638 {
8639 arg2 = &temp2;
8640 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8641 }
8642 {
8643 PyThreadState* __tstate = wxPyBeginAllowThreads();
8644 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
8645 wxPyEndAllowThreads(__tstate);
8646 if (PyErr_Occurred()) SWIG_fail;
8647 }
8648 {
8649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8650 }
8651 return resultobj;
8652 fail:
8653 return NULL;
8654 }
8655
8656
8657 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8658 PyObject *resultobj = 0;
8659 wxRegion *arg1 = (wxRegion *) 0 ;
8660 wxRegion *arg2 = 0 ;
8661 bool result;
8662 void *argp1 = 0 ;
8663 int res1 = 0 ;
8664 void *argp2 = 0 ;
8665 int res2 = 0 ;
8666 PyObject * obj0 = 0 ;
8667 PyObject * obj1 = 0 ;
8668 char * kwnames[] = {
8669 (char *) "self",(char *) "region", NULL
8670 };
8671
8672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8674 if (!SWIG_IsOK(res1)) {
8675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8676 }
8677 arg1 = reinterpret_cast< wxRegion * >(argp1);
8678 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8679 if (!SWIG_IsOK(res2)) {
8680 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8681 }
8682 if (!argp2) {
8683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8684 }
8685 arg2 = reinterpret_cast< wxRegion * >(argp2);
8686 {
8687 PyThreadState* __tstate = wxPyBeginAllowThreads();
8688 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
8689 wxPyEndAllowThreads(__tstate);
8690 if (PyErr_Occurred()) SWIG_fail;
8691 }
8692 {
8693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8694 }
8695 return resultobj;
8696 fail:
8697 return NULL;
8698 }
8699
8700
8701 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8702 PyObject *resultobj = 0;
8703 wxRegion *arg1 = (wxRegion *) 0 ;
8704 int arg2 ;
8705 int arg3 ;
8706 int arg4 ;
8707 int arg5 ;
8708 bool result;
8709 void *argp1 = 0 ;
8710 int res1 = 0 ;
8711 int val2 ;
8712 int ecode2 = 0 ;
8713 int val3 ;
8714 int ecode3 = 0 ;
8715 int val4 ;
8716 int ecode4 = 0 ;
8717 int val5 ;
8718 int ecode5 = 0 ;
8719 PyObject * obj0 = 0 ;
8720 PyObject * obj1 = 0 ;
8721 PyObject * obj2 = 0 ;
8722 PyObject * obj3 = 0 ;
8723 PyObject * obj4 = 0 ;
8724 char * kwnames[] = {
8725 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8726 };
8727
8728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8730 if (!SWIG_IsOK(res1)) {
8731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
8732 }
8733 arg1 = reinterpret_cast< wxRegion * >(argp1);
8734 ecode2 = SWIG_AsVal_int(obj1, &val2);
8735 if (!SWIG_IsOK(ecode2)) {
8736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
8737 }
8738 arg2 = static_cast< int >(val2);
8739 ecode3 = SWIG_AsVal_int(obj2, &val3);
8740 if (!SWIG_IsOK(ecode3)) {
8741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
8742 }
8743 arg3 = static_cast< int >(val3);
8744 ecode4 = SWIG_AsVal_int(obj3, &val4);
8745 if (!SWIG_IsOK(ecode4)) {
8746 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
8747 }
8748 arg4 = static_cast< int >(val4);
8749 ecode5 = SWIG_AsVal_int(obj4, &val5);
8750 if (!SWIG_IsOK(ecode5)) {
8751 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
8752 }
8753 arg5 = static_cast< int >(val5);
8754 {
8755 PyThreadState* __tstate = wxPyBeginAllowThreads();
8756 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
8757 wxPyEndAllowThreads(__tstate);
8758 if (PyErr_Occurred()) SWIG_fail;
8759 }
8760 {
8761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8762 }
8763 return resultobj;
8764 fail:
8765 return NULL;
8766 }
8767
8768
8769 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8770 PyObject *resultobj = 0;
8771 wxRegion *arg1 = (wxRegion *) 0 ;
8772 wxRect *arg2 = 0 ;
8773 bool result;
8774 void *argp1 = 0 ;
8775 int res1 = 0 ;
8776 wxRect temp2 ;
8777 PyObject * obj0 = 0 ;
8778 PyObject * obj1 = 0 ;
8779 char * kwnames[] = {
8780 (char *) "self",(char *) "rect", NULL
8781 };
8782
8783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
8784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8785 if (!SWIG_IsOK(res1)) {
8786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8787 }
8788 arg1 = reinterpret_cast< wxRegion * >(argp1);
8789 {
8790 arg2 = &temp2;
8791 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8792 }
8793 {
8794 PyThreadState* __tstate = wxPyBeginAllowThreads();
8795 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
8796 wxPyEndAllowThreads(__tstate);
8797 if (PyErr_Occurred()) SWIG_fail;
8798 }
8799 {
8800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8801 }
8802 return resultobj;
8803 fail:
8804 return NULL;
8805 }
8806
8807
8808 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8809 PyObject *resultobj = 0;
8810 wxRegion *arg1 = (wxRegion *) 0 ;
8811 wxRegion *arg2 = 0 ;
8812 bool result;
8813 void *argp1 = 0 ;
8814 int res1 = 0 ;
8815 void *argp2 = 0 ;
8816 int res2 = 0 ;
8817 PyObject * obj0 = 0 ;
8818 PyObject * obj1 = 0 ;
8819 char * kwnames[] = {
8820 (char *) "self",(char *) "region", NULL
8821 };
8822
8823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8825 if (!SWIG_IsOK(res1)) {
8826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8827 }
8828 arg1 = reinterpret_cast< wxRegion * >(argp1);
8829 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8830 if (!SWIG_IsOK(res2)) {
8831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8832 }
8833 if (!argp2) {
8834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8835 }
8836 arg2 = reinterpret_cast< wxRegion * >(argp2);
8837 {
8838 PyThreadState* __tstate = wxPyBeginAllowThreads();
8839 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
8840 wxPyEndAllowThreads(__tstate);
8841 if (PyErr_Occurred()) SWIG_fail;
8842 }
8843 {
8844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8845 }
8846 return resultobj;
8847 fail:
8848 return NULL;
8849 }
8850
8851
8852 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8853 PyObject *resultobj = 0;
8854 wxRegion *arg1 = (wxRegion *) 0 ;
8855 SwigValueWrapper<wxBitmap > result;
8856 void *argp1 = 0 ;
8857 int res1 = 0 ;
8858 PyObject *swig_obj[1] ;
8859
8860 if (!args) SWIG_fail;
8861 swig_obj[0] = args;
8862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8863 if (!SWIG_IsOK(res1)) {
8864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8865 }
8866 arg1 = reinterpret_cast< wxRegion * >(argp1);
8867 {
8868 PyThreadState* __tstate = wxPyBeginAllowThreads();
8869 result = (arg1)->ConvertToBitmap();
8870 wxPyEndAllowThreads(__tstate);
8871 if (PyErr_Occurred()) SWIG_fail;
8872 }
8873 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8874 return resultobj;
8875 fail:
8876 return NULL;
8877 }
8878
8879
8880 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8881 PyObject *resultobj = 0;
8882 wxRegion *arg1 = (wxRegion *) 0 ;
8883 wxBitmap *arg2 = 0 ;
8884 bool result;
8885 void *argp1 = 0 ;
8886 int res1 = 0 ;
8887 void *argp2 = 0 ;
8888 int res2 = 0 ;
8889 PyObject * obj0 = 0 ;
8890 PyObject * obj1 = 0 ;
8891 char * kwnames[] = {
8892 (char *) "self",(char *) "bmp", NULL
8893 };
8894
8895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8897 if (!SWIG_IsOK(res1)) {
8898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8899 }
8900 arg1 = reinterpret_cast< wxRegion * >(argp1);
8901 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8902 if (!SWIG_IsOK(res2)) {
8903 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8904 }
8905 if (!argp2) {
8906 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8907 }
8908 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8909 {
8910 PyThreadState* __tstate = wxPyBeginAllowThreads();
8911 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
8912 wxPyEndAllowThreads(__tstate);
8913 if (PyErr_Occurred()) SWIG_fail;
8914 }
8915 {
8916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8917 }
8918 return resultobj;
8919 fail:
8920 return NULL;
8921 }
8922
8923
8924 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8925 PyObject *resultobj = 0;
8926 wxRegion *arg1 = (wxRegion *) 0 ;
8927 wxBitmap *arg2 = 0 ;
8928 wxColour *arg3 = 0 ;
8929 int arg4 = (int) 0 ;
8930 bool result;
8931 void *argp1 = 0 ;
8932 int res1 = 0 ;
8933 void *argp2 = 0 ;
8934 int res2 = 0 ;
8935 wxColour temp3 ;
8936 int val4 ;
8937 int ecode4 = 0 ;
8938 PyObject * obj0 = 0 ;
8939 PyObject * obj1 = 0 ;
8940 PyObject * obj2 = 0 ;
8941 PyObject * obj3 = 0 ;
8942 char * kwnames[] = {
8943 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
8944 };
8945
8946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8948 if (!SWIG_IsOK(res1)) {
8949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
8950 }
8951 arg1 = reinterpret_cast< wxRegion * >(argp1);
8952 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8953 if (!SWIG_IsOK(res2)) {
8954 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8955 }
8956 if (!argp2) {
8957 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8958 }
8959 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8960 {
8961 arg3 = &temp3;
8962 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
8963 }
8964 if (obj3) {
8965 ecode4 = SWIG_AsVal_int(obj3, &val4);
8966 if (!SWIG_IsOK(ecode4)) {
8967 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
8968 }
8969 arg4 = static_cast< int >(val4);
8970 }
8971 {
8972 PyThreadState* __tstate = wxPyBeginAllowThreads();
8973 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
8974 wxPyEndAllowThreads(__tstate);
8975 if (PyErr_Occurred()) SWIG_fail;
8976 }
8977 {
8978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8979 }
8980 return resultobj;
8981 fail:
8982 return NULL;
8983 }
8984
8985
8986 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8987 PyObject *obj;
8988 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8989 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
8990 return SWIG_Py_Void();
8991 }
8992
8993 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8994 return SWIG_Python_InitShadowInstance(args);
8995 }
8996
8997 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8998 PyObject *resultobj = 0;
8999 wxRegion *arg1 = 0 ;
9000 wxRegionIterator *result = 0 ;
9001 void *argp1 = 0 ;
9002 int res1 = 0 ;
9003 PyObject * obj0 = 0 ;
9004 char * kwnames[] = {
9005 (char *) "region", NULL
9006 };
9007
9008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
9009 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
9010 if (!SWIG_IsOK(res1)) {
9011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9012 }
9013 if (!argp1) {
9014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9015 }
9016 arg1 = reinterpret_cast< wxRegion * >(argp1);
9017 {
9018 if (!wxPyCheckForApp()) SWIG_fail;
9019 PyThreadState* __tstate = wxPyBeginAllowThreads();
9020 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
9021 wxPyEndAllowThreads(__tstate);
9022 if (PyErr_Occurred()) SWIG_fail;
9023 }
9024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
9025 return resultobj;
9026 fail:
9027 return NULL;
9028 }
9029
9030
9031 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9032 PyObject *resultobj = 0;
9033 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9034 void *argp1 = 0 ;
9035 int res1 = 0 ;
9036 PyObject *swig_obj[1] ;
9037
9038 if (!args) SWIG_fail;
9039 swig_obj[0] = args;
9040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
9041 if (!SWIG_IsOK(res1)) {
9042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9043 }
9044 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9045 {
9046 PyThreadState* __tstate = wxPyBeginAllowThreads();
9047 delete arg1;
9048
9049 wxPyEndAllowThreads(__tstate);
9050 if (PyErr_Occurred()) SWIG_fail;
9051 }
9052 resultobj = SWIG_Py_Void();
9053 return resultobj;
9054 fail:
9055 return NULL;
9056 }
9057
9058
9059 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9060 PyObject *resultobj = 0;
9061 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9062 int result;
9063 void *argp1 = 0 ;
9064 int res1 = 0 ;
9065 PyObject *swig_obj[1] ;
9066
9067 if (!args) SWIG_fail;
9068 swig_obj[0] = args;
9069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9070 if (!SWIG_IsOK(res1)) {
9071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9072 }
9073 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9074 {
9075 PyThreadState* __tstate = wxPyBeginAllowThreads();
9076 result = (int)(arg1)->GetX();
9077 wxPyEndAllowThreads(__tstate);
9078 if (PyErr_Occurred()) SWIG_fail;
9079 }
9080 resultobj = SWIG_From_int(static_cast< int >(result));
9081 return resultobj;
9082 fail:
9083 return NULL;
9084 }
9085
9086
9087 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9088 PyObject *resultobj = 0;
9089 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9090 int result;
9091 void *argp1 = 0 ;
9092 int res1 = 0 ;
9093 PyObject *swig_obj[1] ;
9094
9095 if (!args) SWIG_fail;
9096 swig_obj[0] = args;
9097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9098 if (!SWIG_IsOK(res1)) {
9099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9100 }
9101 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9102 {
9103 PyThreadState* __tstate = wxPyBeginAllowThreads();
9104 result = (int)(arg1)->GetY();
9105 wxPyEndAllowThreads(__tstate);
9106 if (PyErr_Occurred()) SWIG_fail;
9107 }
9108 resultobj = SWIG_From_int(static_cast< int >(result));
9109 return resultobj;
9110 fail:
9111 return NULL;
9112 }
9113
9114
9115 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9116 PyObject *resultobj = 0;
9117 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9118 int result;
9119 void *argp1 = 0 ;
9120 int res1 = 0 ;
9121 PyObject *swig_obj[1] ;
9122
9123 if (!args) SWIG_fail;
9124 swig_obj[0] = args;
9125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9126 if (!SWIG_IsOK(res1)) {
9127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9128 }
9129 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9130 {
9131 PyThreadState* __tstate = wxPyBeginAllowThreads();
9132 result = (int)(arg1)->GetW();
9133 wxPyEndAllowThreads(__tstate);
9134 if (PyErr_Occurred()) SWIG_fail;
9135 }
9136 resultobj = SWIG_From_int(static_cast< int >(result));
9137 return resultobj;
9138 fail:
9139 return NULL;
9140 }
9141
9142
9143 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9144 PyObject *resultobj = 0;
9145 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9146 int result;
9147 void *argp1 = 0 ;
9148 int res1 = 0 ;
9149 PyObject *swig_obj[1] ;
9150
9151 if (!args) SWIG_fail;
9152 swig_obj[0] = args;
9153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9154 if (!SWIG_IsOK(res1)) {
9155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9156 }
9157 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9158 {
9159 PyThreadState* __tstate = wxPyBeginAllowThreads();
9160 result = (int)(arg1)->GetWidth();
9161 wxPyEndAllowThreads(__tstate);
9162 if (PyErr_Occurred()) SWIG_fail;
9163 }
9164 resultobj = SWIG_From_int(static_cast< int >(result));
9165 return resultobj;
9166 fail:
9167 return NULL;
9168 }
9169
9170
9171 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9172 PyObject *resultobj = 0;
9173 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9174 int result;
9175 void *argp1 = 0 ;
9176 int res1 = 0 ;
9177 PyObject *swig_obj[1] ;
9178
9179 if (!args) SWIG_fail;
9180 swig_obj[0] = args;
9181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9182 if (!SWIG_IsOK(res1)) {
9183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9184 }
9185 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9186 {
9187 PyThreadState* __tstate = wxPyBeginAllowThreads();
9188 result = (int)(arg1)->GetH();
9189 wxPyEndAllowThreads(__tstate);
9190 if (PyErr_Occurred()) SWIG_fail;
9191 }
9192 resultobj = SWIG_From_int(static_cast< int >(result));
9193 return resultobj;
9194 fail:
9195 return NULL;
9196 }
9197
9198
9199 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9200 PyObject *resultobj = 0;
9201 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9202 int result;
9203 void *argp1 = 0 ;
9204 int res1 = 0 ;
9205 PyObject *swig_obj[1] ;
9206
9207 if (!args) SWIG_fail;
9208 swig_obj[0] = args;
9209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9210 if (!SWIG_IsOK(res1)) {
9211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9212 }
9213 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9214 {
9215 PyThreadState* __tstate = wxPyBeginAllowThreads();
9216 result = (int)(arg1)->GetHeight();
9217 wxPyEndAllowThreads(__tstate);
9218 if (PyErr_Occurred()) SWIG_fail;
9219 }
9220 resultobj = SWIG_From_int(static_cast< int >(result));
9221 return resultobj;
9222 fail:
9223 return NULL;
9224 }
9225
9226
9227 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9228 PyObject *resultobj = 0;
9229 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9230 wxRect result;
9231 void *argp1 = 0 ;
9232 int res1 = 0 ;
9233 PyObject *swig_obj[1] ;
9234
9235 if (!args) SWIG_fail;
9236 swig_obj[0] = args;
9237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9238 if (!SWIG_IsOK(res1)) {
9239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9240 }
9241 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9242 {
9243 PyThreadState* __tstate = wxPyBeginAllowThreads();
9244 result = (arg1)->GetRect();
9245 wxPyEndAllowThreads(__tstate);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 }
9248 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
9249 return resultobj;
9250 fail:
9251 return NULL;
9252 }
9253
9254
9255 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9256 PyObject *resultobj = 0;
9257 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9258 bool result;
9259 void *argp1 = 0 ;
9260 int res1 = 0 ;
9261 PyObject *swig_obj[1] ;
9262
9263 if (!args) SWIG_fail;
9264 swig_obj[0] = args;
9265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9266 if (!SWIG_IsOK(res1)) {
9267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9268 }
9269 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9270 {
9271 PyThreadState* __tstate = wxPyBeginAllowThreads();
9272 result = (bool)(arg1)->HaveRects();
9273 wxPyEndAllowThreads(__tstate);
9274 if (PyErr_Occurred()) SWIG_fail;
9275 }
9276 {
9277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9278 }
9279 return resultobj;
9280 fail:
9281 return NULL;
9282 }
9283
9284
9285 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9286 PyObject *resultobj = 0;
9287 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9288 void *argp1 = 0 ;
9289 int res1 = 0 ;
9290 PyObject *swig_obj[1] ;
9291
9292 if (!args) SWIG_fail;
9293 swig_obj[0] = args;
9294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9295 if (!SWIG_IsOK(res1)) {
9296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9297 }
9298 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9299 {
9300 PyThreadState* __tstate = wxPyBeginAllowThreads();
9301 (arg1)->Reset();
9302 wxPyEndAllowThreads(__tstate);
9303 if (PyErr_Occurred()) SWIG_fail;
9304 }
9305 resultobj = SWIG_Py_Void();
9306 return resultobj;
9307 fail:
9308 return NULL;
9309 }
9310
9311
9312 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9313 PyObject *resultobj = 0;
9314 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9315 void *argp1 = 0 ;
9316 int res1 = 0 ;
9317 PyObject *swig_obj[1] ;
9318
9319 if (!args) SWIG_fail;
9320 swig_obj[0] = args;
9321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9322 if (!SWIG_IsOK(res1)) {
9323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9324 }
9325 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9326 {
9327 PyThreadState* __tstate = wxPyBeginAllowThreads();
9328 wxRegionIterator_Next(arg1);
9329 wxPyEndAllowThreads(__tstate);
9330 if (PyErr_Occurred()) SWIG_fail;
9331 }
9332 resultobj = SWIG_Py_Void();
9333 return resultobj;
9334 fail:
9335 return NULL;
9336 }
9337
9338
9339 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9340 PyObject *resultobj = 0;
9341 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9342 bool result;
9343 void *argp1 = 0 ;
9344 int res1 = 0 ;
9345 PyObject *swig_obj[1] ;
9346
9347 if (!args) SWIG_fail;
9348 swig_obj[0] = args;
9349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9350 if (!SWIG_IsOK(res1)) {
9351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9352 }
9353 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9354 {
9355 PyThreadState* __tstate = wxPyBeginAllowThreads();
9356 result = (bool)wxRegionIterator___nonzero__(arg1);
9357 wxPyEndAllowThreads(__tstate);
9358 if (PyErr_Occurred()) SWIG_fail;
9359 }
9360 {
9361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9362 }
9363 return resultobj;
9364 fail:
9365 return NULL;
9366 }
9367
9368
9369 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9370 PyObject *obj;
9371 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9372 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
9373 return SWIG_Py_Void();
9374 }
9375
9376 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9377 return SWIG_Python_InitShadowInstance(args);
9378 }
9379
9380 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9381 PyObject *resultobj = 0;
9382 wxNativeFontInfo *result = 0 ;
9383
9384 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
9385 {
9386 PyThreadState* __tstate = wxPyBeginAllowThreads();
9387 result = (wxNativeFontInfo *)new wxNativeFontInfo();
9388 wxPyEndAllowThreads(__tstate);
9389 if (PyErr_Occurred()) SWIG_fail;
9390 }
9391 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
9392 return resultobj;
9393 fail:
9394 return NULL;
9395 }
9396
9397
9398 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9399 PyObject *resultobj = 0;
9400 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9401 void *argp1 = 0 ;
9402 int res1 = 0 ;
9403 PyObject *swig_obj[1] ;
9404
9405 if (!args) SWIG_fail;
9406 swig_obj[0] = args;
9407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
9408 if (!SWIG_IsOK(res1)) {
9409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9410 }
9411 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9412 {
9413 PyThreadState* __tstate = wxPyBeginAllowThreads();
9414 delete arg1;
9415
9416 wxPyEndAllowThreads(__tstate);
9417 if (PyErr_Occurred()) SWIG_fail;
9418 }
9419 resultobj = SWIG_Py_Void();
9420 return resultobj;
9421 fail:
9422 return NULL;
9423 }
9424
9425
9426 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9427 PyObject *resultobj = 0;
9428 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9429 void *argp1 = 0 ;
9430 int res1 = 0 ;
9431 PyObject *swig_obj[1] ;
9432
9433 if (!args) SWIG_fail;
9434 swig_obj[0] = args;
9435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9436 if (!SWIG_IsOK(res1)) {
9437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9438 }
9439 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9440 {
9441 PyThreadState* __tstate = wxPyBeginAllowThreads();
9442 (arg1)->Init();
9443 wxPyEndAllowThreads(__tstate);
9444 if (PyErr_Occurred()) SWIG_fail;
9445 }
9446 resultobj = SWIG_Py_Void();
9447 return resultobj;
9448 fail:
9449 return NULL;
9450 }
9451
9452
9453 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9454 PyObject *resultobj = 0;
9455 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9456 wxFont *arg2 = 0 ;
9457 void *argp1 = 0 ;
9458 int res1 = 0 ;
9459 void *argp2 = 0 ;
9460 int res2 = 0 ;
9461 PyObject * obj0 = 0 ;
9462 PyObject * obj1 = 0 ;
9463 char * kwnames[] = {
9464 (char *) "self",(char *) "font", NULL
9465 };
9466
9467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
9468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9469 if (!SWIG_IsOK(res1)) {
9470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9471 }
9472 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9473 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
9474 if (!SWIG_IsOK(res2)) {
9475 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9476 }
9477 if (!argp2) {
9478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9479 }
9480 arg2 = reinterpret_cast< wxFont * >(argp2);
9481 {
9482 PyThreadState* __tstate = wxPyBeginAllowThreads();
9483 (arg1)->InitFromFont((wxFont const &)*arg2);
9484 wxPyEndAllowThreads(__tstate);
9485 if (PyErr_Occurred()) SWIG_fail;
9486 }
9487 resultobj = SWIG_Py_Void();
9488 return resultobj;
9489 fail:
9490 return NULL;
9491 }
9492
9493
9494 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9495 PyObject *resultobj = 0;
9496 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9497 int result;
9498 void *argp1 = 0 ;
9499 int res1 = 0 ;
9500 PyObject *swig_obj[1] ;
9501
9502 if (!args) SWIG_fail;
9503 swig_obj[0] = args;
9504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9505 if (!SWIG_IsOK(res1)) {
9506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9507 }
9508 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9509 {
9510 PyThreadState* __tstate = wxPyBeginAllowThreads();
9511 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
9512 wxPyEndAllowThreads(__tstate);
9513 if (PyErr_Occurred()) SWIG_fail;
9514 }
9515 resultobj = SWIG_From_int(static_cast< int >(result));
9516 return resultobj;
9517 fail:
9518 return NULL;
9519 }
9520
9521
9522 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9523 PyObject *resultobj = 0;
9524 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9525 wxFontStyle result;
9526 void *argp1 = 0 ;
9527 int res1 = 0 ;
9528 PyObject *swig_obj[1] ;
9529
9530 if (!args) SWIG_fail;
9531 swig_obj[0] = args;
9532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9533 if (!SWIG_IsOK(res1)) {
9534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9535 }
9536 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9537 {
9538 PyThreadState* __tstate = wxPyBeginAllowThreads();
9539 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
9540 wxPyEndAllowThreads(__tstate);
9541 if (PyErr_Occurred()) SWIG_fail;
9542 }
9543 resultobj = SWIG_From_int(static_cast< int >(result));
9544 return resultobj;
9545 fail:
9546 return NULL;
9547 }
9548
9549
9550 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9551 PyObject *resultobj = 0;
9552 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9553 wxFontWeight result;
9554 void *argp1 = 0 ;
9555 int res1 = 0 ;
9556 PyObject *swig_obj[1] ;
9557
9558 if (!args) SWIG_fail;
9559 swig_obj[0] = args;
9560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9561 if (!SWIG_IsOK(res1)) {
9562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9563 }
9564 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9565 {
9566 PyThreadState* __tstate = wxPyBeginAllowThreads();
9567 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
9568 wxPyEndAllowThreads(__tstate);
9569 if (PyErr_Occurred()) SWIG_fail;
9570 }
9571 resultobj = SWIG_From_int(static_cast< int >(result));
9572 return resultobj;
9573 fail:
9574 return NULL;
9575 }
9576
9577
9578 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9579 PyObject *resultobj = 0;
9580 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9581 bool result;
9582 void *argp1 = 0 ;
9583 int res1 = 0 ;
9584 PyObject *swig_obj[1] ;
9585
9586 if (!args) SWIG_fail;
9587 swig_obj[0] = args;
9588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9589 if (!SWIG_IsOK(res1)) {
9590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9591 }
9592 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9593 {
9594 PyThreadState* __tstate = wxPyBeginAllowThreads();
9595 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
9596 wxPyEndAllowThreads(__tstate);
9597 if (PyErr_Occurred()) SWIG_fail;
9598 }
9599 {
9600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9601 }
9602 return resultobj;
9603 fail:
9604 return NULL;
9605 }
9606
9607
9608 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9609 PyObject *resultobj = 0;
9610 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9611 wxString result;
9612 void *argp1 = 0 ;
9613 int res1 = 0 ;
9614 PyObject *swig_obj[1] ;
9615
9616 if (!args) SWIG_fail;
9617 swig_obj[0] = args;
9618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9619 if (!SWIG_IsOK(res1)) {
9620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9621 }
9622 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9623 {
9624 PyThreadState* __tstate = wxPyBeginAllowThreads();
9625 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
9626 wxPyEndAllowThreads(__tstate);
9627 if (PyErr_Occurred()) SWIG_fail;
9628 }
9629 {
9630 #if wxUSE_UNICODE
9631 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9632 #else
9633 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9634 #endif
9635 }
9636 return resultobj;
9637 fail:
9638 return NULL;
9639 }
9640
9641
9642 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9643 PyObject *resultobj = 0;
9644 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9645 wxFontFamily result;
9646 void *argp1 = 0 ;
9647 int res1 = 0 ;
9648 PyObject *swig_obj[1] ;
9649
9650 if (!args) SWIG_fail;
9651 swig_obj[0] = args;
9652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9653 if (!SWIG_IsOK(res1)) {
9654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9655 }
9656 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9657 {
9658 PyThreadState* __tstate = wxPyBeginAllowThreads();
9659 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
9660 wxPyEndAllowThreads(__tstate);
9661 if (PyErr_Occurred()) SWIG_fail;
9662 }
9663 resultobj = SWIG_From_int(static_cast< int >(result));
9664 return resultobj;
9665 fail:
9666 return NULL;
9667 }
9668
9669
9670 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9671 PyObject *resultobj = 0;
9672 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9673 wxFontEncoding result;
9674 void *argp1 = 0 ;
9675 int res1 = 0 ;
9676 PyObject *swig_obj[1] ;
9677
9678 if (!args) SWIG_fail;
9679 swig_obj[0] = args;
9680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9681 if (!SWIG_IsOK(res1)) {
9682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9683 }
9684 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9685 {
9686 PyThreadState* __tstate = wxPyBeginAllowThreads();
9687 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
9688 wxPyEndAllowThreads(__tstate);
9689 if (PyErr_Occurred()) SWIG_fail;
9690 }
9691 resultobj = SWIG_From_int(static_cast< int >(result));
9692 return resultobj;
9693 fail:
9694 return NULL;
9695 }
9696
9697
9698 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9699 PyObject *resultobj = 0;
9700 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9701 int arg2 ;
9702 void *argp1 = 0 ;
9703 int res1 = 0 ;
9704 int val2 ;
9705 int ecode2 = 0 ;
9706 PyObject * obj0 = 0 ;
9707 PyObject * obj1 = 0 ;
9708 char * kwnames[] = {
9709 (char *) "self",(char *) "pointsize", NULL
9710 };
9711
9712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
9713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9714 if (!SWIG_IsOK(res1)) {
9715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9716 }
9717 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9718 ecode2 = SWIG_AsVal_int(obj1, &val2);
9719 if (!SWIG_IsOK(ecode2)) {
9720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
9721 }
9722 arg2 = static_cast< int >(val2);
9723 {
9724 PyThreadState* __tstate = wxPyBeginAllowThreads();
9725 (arg1)->SetPointSize(arg2);
9726 wxPyEndAllowThreads(__tstate);
9727 if (PyErr_Occurred()) SWIG_fail;
9728 }
9729 resultobj = SWIG_Py_Void();
9730 return resultobj;
9731 fail:
9732 return NULL;
9733 }
9734
9735
9736 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9737 PyObject *resultobj = 0;
9738 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9739 wxFontStyle arg2 ;
9740 void *argp1 = 0 ;
9741 int res1 = 0 ;
9742 int val2 ;
9743 int ecode2 = 0 ;
9744 PyObject * obj0 = 0 ;
9745 PyObject * obj1 = 0 ;
9746 char * kwnames[] = {
9747 (char *) "self",(char *) "style", NULL
9748 };
9749
9750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9752 if (!SWIG_IsOK(res1)) {
9753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9754 }
9755 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9756 ecode2 = SWIG_AsVal_int(obj1, &val2);
9757 if (!SWIG_IsOK(ecode2)) {
9758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
9759 }
9760 arg2 = static_cast< wxFontStyle >(val2);
9761 {
9762 PyThreadState* __tstate = wxPyBeginAllowThreads();
9763 (arg1)->SetStyle(arg2);
9764 wxPyEndAllowThreads(__tstate);
9765 if (PyErr_Occurred()) SWIG_fail;
9766 }
9767 resultobj = SWIG_Py_Void();
9768 return resultobj;
9769 fail:
9770 return NULL;
9771 }
9772
9773
9774 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9775 PyObject *resultobj = 0;
9776 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9777 wxFontWeight arg2 ;
9778 void *argp1 = 0 ;
9779 int res1 = 0 ;
9780 int val2 ;
9781 int ecode2 = 0 ;
9782 PyObject * obj0 = 0 ;
9783 PyObject * obj1 = 0 ;
9784 char * kwnames[] = {
9785 (char *) "self",(char *) "weight", NULL
9786 };
9787
9788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
9789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9790 if (!SWIG_IsOK(res1)) {
9791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9792 }
9793 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9794 ecode2 = SWIG_AsVal_int(obj1, &val2);
9795 if (!SWIG_IsOK(ecode2)) {
9796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
9797 }
9798 arg2 = static_cast< wxFontWeight >(val2);
9799 {
9800 PyThreadState* __tstate = wxPyBeginAllowThreads();
9801 (arg1)->SetWeight(arg2);
9802 wxPyEndAllowThreads(__tstate);
9803 if (PyErr_Occurred()) SWIG_fail;
9804 }
9805 resultobj = SWIG_Py_Void();
9806 return resultobj;
9807 fail:
9808 return NULL;
9809 }
9810
9811
9812 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9813 PyObject *resultobj = 0;
9814 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9815 bool arg2 ;
9816 void *argp1 = 0 ;
9817 int res1 = 0 ;
9818 bool val2 ;
9819 int ecode2 = 0 ;
9820 PyObject * obj0 = 0 ;
9821 PyObject * obj1 = 0 ;
9822 char * kwnames[] = {
9823 (char *) "self",(char *) "underlined", NULL
9824 };
9825
9826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
9827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9828 if (!SWIG_IsOK(res1)) {
9829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9830 }
9831 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9832 ecode2 = SWIG_AsVal_bool(obj1, &val2);
9833 if (!SWIG_IsOK(ecode2)) {
9834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
9835 }
9836 arg2 = static_cast< bool >(val2);
9837 {
9838 PyThreadState* __tstate = wxPyBeginAllowThreads();
9839 (arg1)->SetUnderlined(arg2);
9840 wxPyEndAllowThreads(__tstate);
9841 if (PyErr_Occurred()) SWIG_fail;
9842 }
9843 resultobj = SWIG_Py_Void();
9844 return resultobj;
9845 fail:
9846 return NULL;
9847 }
9848
9849
9850 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9851 PyObject *resultobj = 0;
9852 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9853 wxString arg2 ;
9854 bool result;
9855 void *argp1 = 0 ;
9856 int res1 = 0 ;
9857 PyObject * obj0 = 0 ;
9858 PyObject * obj1 = 0 ;
9859 char * kwnames[] = {
9860 (char *) "self",(char *) "facename", NULL
9861 };
9862
9863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
9864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9865 if (!SWIG_IsOK(res1)) {
9866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9867 }
9868 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9869 {
9870 wxString* sptr = wxString_in_helper(obj1);
9871 if (sptr == NULL) SWIG_fail;
9872 arg2 = *sptr;
9873 delete sptr;
9874 }
9875 {
9876 PyThreadState* __tstate = wxPyBeginAllowThreads();
9877 result = (bool)(arg1)->SetFaceName(arg2);
9878 wxPyEndAllowThreads(__tstate);
9879 if (PyErr_Occurred()) SWIG_fail;
9880 }
9881 {
9882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9883 }
9884 return resultobj;
9885 fail:
9886 return NULL;
9887 }
9888
9889
9890 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9891 PyObject *resultobj = 0;
9892 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9893 wxFontFamily arg2 ;
9894 void *argp1 = 0 ;
9895 int res1 = 0 ;
9896 int val2 ;
9897 int ecode2 = 0 ;
9898 PyObject * obj0 = 0 ;
9899 PyObject * obj1 = 0 ;
9900 char * kwnames[] = {
9901 (char *) "self",(char *) "family", NULL
9902 };
9903
9904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
9905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9906 if (!SWIG_IsOK(res1)) {
9907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9908 }
9909 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9910 ecode2 = SWIG_AsVal_int(obj1, &val2);
9911 if (!SWIG_IsOK(ecode2)) {
9912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
9913 }
9914 arg2 = static_cast< wxFontFamily >(val2);
9915 {
9916 PyThreadState* __tstate = wxPyBeginAllowThreads();
9917 (arg1)->SetFamily(arg2);
9918 wxPyEndAllowThreads(__tstate);
9919 if (PyErr_Occurred()) SWIG_fail;
9920 }
9921 resultobj = SWIG_Py_Void();
9922 return resultobj;
9923 fail:
9924 return NULL;
9925 }
9926
9927
9928 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9929 PyObject *resultobj = 0;
9930 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9931 wxFontEncoding arg2 ;
9932 void *argp1 = 0 ;
9933 int res1 = 0 ;
9934 int val2 ;
9935 int ecode2 = 0 ;
9936 PyObject * obj0 = 0 ;
9937 PyObject * obj1 = 0 ;
9938 char * kwnames[] = {
9939 (char *) "self",(char *) "encoding", NULL
9940 };
9941
9942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
9943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9944 if (!SWIG_IsOK(res1)) {
9945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9946 }
9947 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9948 ecode2 = SWIG_AsVal_int(obj1, &val2);
9949 if (!SWIG_IsOK(ecode2)) {
9950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
9951 }
9952 arg2 = static_cast< wxFontEncoding >(val2);
9953 {
9954 PyThreadState* __tstate = wxPyBeginAllowThreads();
9955 (arg1)->SetEncoding(arg2);
9956 wxPyEndAllowThreads(__tstate);
9957 if (PyErr_Occurred()) SWIG_fail;
9958 }
9959 resultobj = SWIG_Py_Void();
9960 return resultobj;
9961 fail:
9962 return NULL;
9963 }
9964
9965
9966 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9967 PyObject *resultobj = 0;
9968 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9969 wxString *arg2 = 0 ;
9970 bool result;
9971 void *argp1 = 0 ;
9972 int res1 = 0 ;
9973 bool temp2 = false ;
9974 PyObject * obj0 = 0 ;
9975 PyObject * obj1 = 0 ;
9976 char * kwnames[] = {
9977 (char *) "self",(char *) "s", NULL
9978 };
9979
9980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
9981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9982 if (!SWIG_IsOK(res1)) {
9983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9984 }
9985 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9986 {
9987 arg2 = wxString_in_helper(obj1);
9988 if (arg2 == NULL) SWIG_fail;
9989 temp2 = true;
9990 }
9991 {
9992 PyThreadState* __tstate = wxPyBeginAllowThreads();
9993 result = (bool)(arg1)->FromString((wxString const &)*arg2);
9994 wxPyEndAllowThreads(__tstate);
9995 if (PyErr_Occurred()) SWIG_fail;
9996 }
9997 {
9998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9999 }
10000 {
10001 if (temp2)
10002 delete arg2;
10003 }
10004 return resultobj;
10005 fail:
10006 {
10007 if (temp2)
10008 delete arg2;
10009 }
10010 return NULL;
10011 }
10012
10013
10014 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10015 PyObject *resultobj = 0;
10016 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10017 wxString result;
10018 void *argp1 = 0 ;
10019 int res1 = 0 ;
10020 PyObject *swig_obj[1] ;
10021
10022 if (!args) SWIG_fail;
10023 swig_obj[0] = args;
10024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10025 if (!SWIG_IsOK(res1)) {
10026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10027 }
10028 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10029 {
10030 PyThreadState* __tstate = wxPyBeginAllowThreads();
10031 result = ((wxNativeFontInfo const *)arg1)->ToString();
10032 wxPyEndAllowThreads(__tstate);
10033 if (PyErr_Occurred()) SWIG_fail;
10034 }
10035 {
10036 #if wxUSE_UNICODE
10037 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10038 #else
10039 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10040 #endif
10041 }
10042 return resultobj;
10043 fail:
10044 return NULL;
10045 }
10046
10047
10048 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10049 PyObject *resultobj = 0;
10050 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10051 wxString result;
10052 void *argp1 = 0 ;
10053 int res1 = 0 ;
10054 PyObject *swig_obj[1] ;
10055
10056 if (!args) SWIG_fail;
10057 swig_obj[0] = args;
10058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10059 if (!SWIG_IsOK(res1)) {
10060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10061 }
10062 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10063 {
10064 PyThreadState* __tstate = wxPyBeginAllowThreads();
10065 result = wxNativeFontInfo___str__(arg1);
10066 wxPyEndAllowThreads(__tstate);
10067 if (PyErr_Occurred()) SWIG_fail;
10068 }
10069 {
10070 #if wxUSE_UNICODE
10071 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10072 #else
10073 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10074 #endif
10075 }
10076 return resultobj;
10077 fail:
10078 return NULL;
10079 }
10080
10081
10082 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10083 PyObject *resultobj = 0;
10084 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10085 wxString *arg2 = 0 ;
10086 bool result;
10087 void *argp1 = 0 ;
10088 int res1 = 0 ;
10089 bool temp2 = false ;
10090 PyObject * obj0 = 0 ;
10091 PyObject * obj1 = 0 ;
10092 char * kwnames[] = {
10093 (char *) "self",(char *) "s", NULL
10094 };
10095
10096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
10097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10098 if (!SWIG_IsOK(res1)) {
10099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10100 }
10101 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10102 {
10103 arg2 = wxString_in_helper(obj1);
10104 if (arg2 == NULL) SWIG_fail;
10105 temp2 = true;
10106 }
10107 {
10108 PyThreadState* __tstate = wxPyBeginAllowThreads();
10109 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
10110 wxPyEndAllowThreads(__tstate);
10111 if (PyErr_Occurred()) SWIG_fail;
10112 }
10113 {
10114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10115 }
10116 {
10117 if (temp2)
10118 delete arg2;
10119 }
10120 return resultobj;
10121 fail:
10122 {
10123 if (temp2)
10124 delete arg2;
10125 }
10126 return NULL;
10127 }
10128
10129
10130 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10131 PyObject *resultobj = 0;
10132 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10133 wxString result;
10134 void *argp1 = 0 ;
10135 int res1 = 0 ;
10136 PyObject *swig_obj[1] ;
10137
10138 if (!args) SWIG_fail;
10139 swig_obj[0] = args;
10140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10141 if (!SWIG_IsOK(res1)) {
10142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10143 }
10144 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10145 {
10146 PyThreadState* __tstate = wxPyBeginAllowThreads();
10147 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
10148 wxPyEndAllowThreads(__tstate);
10149 if (PyErr_Occurred()) SWIG_fail;
10150 }
10151 {
10152 #if wxUSE_UNICODE
10153 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10154 #else
10155 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10156 #endif
10157 }
10158 return resultobj;
10159 fail:
10160 return NULL;
10161 }
10162
10163
10164 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10165 PyObject *obj;
10166 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10167 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
10168 return SWIG_Py_Void();
10169 }
10170
10171 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10172 return SWIG_Python_InitShadowInstance(args);
10173 }
10174
10175 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10176 PyObject *resultobj = 0;
10177 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10178 wxString *arg2 = (wxString *) 0 ;
10179 void *argp1 = 0 ;
10180 int res1 = 0 ;
10181 bool temp2 = false ;
10182 PyObject *swig_obj[2] ;
10183
10184 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
10185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10186 if (!SWIG_IsOK(res1)) {
10187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10188 }
10189 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10190 {
10191 arg2 = wxString_in_helper(swig_obj[1]);
10192 if (arg2 == NULL) SWIG_fail;
10193 temp2 = true;
10194 }
10195 if (arg1) (arg1)->facename = *arg2;
10196
10197 resultobj = SWIG_Py_Void();
10198 {
10199 if (temp2)
10200 delete arg2;
10201 }
10202 return resultobj;
10203 fail:
10204 {
10205 if (temp2)
10206 delete arg2;
10207 }
10208 return NULL;
10209 }
10210
10211
10212 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10213 PyObject *resultobj = 0;
10214 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10215 wxString *result = 0 ;
10216 void *argp1 = 0 ;
10217 int res1 = 0 ;
10218 PyObject *swig_obj[1] ;
10219
10220 if (!args) SWIG_fail;
10221 swig_obj[0] = args;
10222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10223 if (!SWIG_IsOK(res1)) {
10224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10225 }
10226 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10227 result = (wxString *)& ((arg1)->facename);
10228 {
10229 #if wxUSE_UNICODE
10230 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10231 #else
10232 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10233 #endif
10234 }
10235 return resultobj;
10236 fail:
10237 return NULL;
10238 }
10239
10240
10241 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10242 PyObject *resultobj = 0;
10243 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10244 wxFontEncoding arg2 ;
10245 void *argp1 = 0 ;
10246 int res1 = 0 ;
10247 int val2 ;
10248 int ecode2 = 0 ;
10249 PyObject *swig_obj[2] ;
10250
10251 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
10252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10253 if (!SWIG_IsOK(res1)) {
10254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10255 }
10256 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10257 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10258 if (!SWIG_IsOK(ecode2)) {
10259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10260 }
10261 arg2 = static_cast< wxFontEncoding >(val2);
10262 if (arg1) (arg1)->encoding = arg2;
10263
10264 resultobj = SWIG_Py_Void();
10265 return resultobj;
10266 fail:
10267 return NULL;
10268 }
10269
10270
10271 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10272 PyObject *resultobj = 0;
10273 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10274 wxFontEncoding result;
10275 void *argp1 = 0 ;
10276 int res1 = 0 ;
10277 PyObject *swig_obj[1] ;
10278
10279 if (!args) SWIG_fail;
10280 swig_obj[0] = args;
10281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10282 if (!SWIG_IsOK(res1)) {
10283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10284 }
10285 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10286 result = (wxFontEncoding) ((arg1)->encoding);
10287 resultobj = SWIG_From_int(static_cast< int >(result));
10288 return resultobj;
10289 fail:
10290 return NULL;
10291 }
10292
10293
10294 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10295 PyObject *resultobj = 0;
10296 wxNativeEncodingInfo *result = 0 ;
10297
10298 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
10299 {
10300 PyThreadState* __tstate = wxPyBeginAllowThreads();
10301 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
10302 wxPyEndAllowThreads(__tstate);
10303 if (PyErr_Occurred()) SWIG_fail;
10304 }
10305 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
10306 return resultobj;
10307 fail:
10308 return NULL;
10309 }
10310
10311
10312 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10313 PyObject *resultobj = 0;
10314 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10315 void *argp1 = 0 ;
10316 int res1 = 0 ;
10317 PyObject *swig_obj[1] ;
10318
10319 if (!args) SWIG_fail;
10320 swig_obj[0] = args;
10321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
10322 if (!SWIG_IsOK(res1)) {
10323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10324 }
10325 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10326 {
10327 PyThreadState* __tstate = wxPyBeginAllowThreads();
10328 delete arg1;
10329
10330 wxPyEndAllowThreads(__tstate);
10331 if (PyErr_Occurred()) SWIG_fail;
10332 }
10333 resultobj = SWIG_Py_Void();
10334 return resultobj;
10335 fail:
10336 return NULL;
10337 }
10338
10339
10340 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10341 PyObject *resultobj = 0;
10342 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10343 wxString *arg2 = 0 ;
10344 bool result;
10345 void *argp1 = 0 ;
10346 int res1 = 0 ;
10347 bool temp2 = false ;
10348 PyObject * obj0 = 0 ;
10349 PyObject * obj1 = 0 ;
10350 char * kwnames[] = {
10351 (char *) "self",(char *) "s", NULL
10352 };
10353
10354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10356 if (!SWIG_IsOK(res1)) {
10357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10358 }
10359 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10360 {
10361 arg2 = wxString_in_helper(obj1);
10362 if (arg2 == NULL) SWIG_fail;
10363 temp2 = true;
10364 }
10365 {
10366 PyThreadState* __tstate = wxPyBeginAllowThreads();
10367 result = (bool)(arg1)->FromString((wxString const &)*arg2);
10368 wxPyEndAllowThreads(__tstate);
10369 if (PyErr_Occurred()) SWIG_fail;
10370 }
10371 {
10372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10373 }
10374 {
10375 if (temp2)
10376 delete arg2;
10377 }
10378 return resultobj;
10379 fail:
10380 {
10381 if (temp2)
10382 delete arg2;
10383 }
10384 return NULL;
10385 }
10386
10387
10388 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10389 PyObject *resultobj = 0;
10390 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10391 wxString result;
10392 void *argp1 = 0 ;
10393 int res1 = 0 ;
10394 PyObject *swig_obj[1] ;
10395
10396 if (!args) SWIG_fail;
10397 swig_obj[0] = args;
10398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10399 if (!SWIG_IsOK(res1)) {
10400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
10401 }
10402 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10403 {
10404 PyThreadState* __tstate = wxPyBeginAllowThreads();
10405 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
10406 wxPyEndAllowThreads(__tstate);
10407 if (PyErr_Occurred()) SWIG_fail;
10408 }
10409 {
10410 #if wxUSE_UNICODE
10411 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10412 #else
10413 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10414 #endif
10415 }
10416 return resultobj;
10417 fail:
10418 return NULL;
10419 }
10420
10421
10422 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10423 PyObject *obj;
10424 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10425 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
10426 return SWIG_Py_Void();
10427 }
10428
10429 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10430 return SWIG_Python_InitShadowInstance(args);
10431 }
10432
10433 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10434 PyObject *resultobj = 0;
10435 wxFontEncoding arg1 ;
10436 wxNativeEncodingInfo *result = 0 ;
10437 int val1 ;
10438 int ecode1 = 0 ;
10439 PyObject * obj0 = 0 ;
10440 char * kwnames[] = {
10441 (char *) "encoding", NULL
10442 };
10443
10444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
10445 ecode1 = SWIG_AsVal_int(obj0, &val1);
10446 if (!SWIG_IsOK(ecode1)) {
10447 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10448 }
10449 arg1 = static_cast< wxFontEncoding >(val1);
10450 {
10451 PyThreadState* __tstate = wxPyBeginAllowThreads();
10452 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
10453 wxPyEndAllowThreads(__tstate);
10454 if (PyErr_Occurred()) SWIG_fail;
10455 }
10456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10457 return resultobj;
10458 fail:
10459 return NULL;
10460 }
10461
10462
10463 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10464 PyObject *resultobj = 0;
10465 wxNativeEncodingInfo *arg1 = 0 ;
10466 bool result;
10467 void *argp1 = 0 ;
10468 int res1 = 0 ;
10469 PyObject * obj0 = 0 ;
10470 char * kwnames[] = {
10471 (char *) "info", NULL
10472 };
10473
10474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
10475 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
10476 if (!SWIG_IsOK(res1)) {
10477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10478 }
10479 if (!argp1) {
10480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10481 }
10482 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10483 {
10484 PyThreadState* __tstate = wxPyBeginAllowThreads();
10485 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
10486 wxPyEndAllowThreads(__tstate);
10487 if (PyErr_Occurred()) SWIG_fail;
10488 }
10489 {
10490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10491 }
10492 return resultobj;
10493 fail:
10494 return NULL;
10495 }
10496
10497
10498 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10499 PyObject *resultobj = 0;
10500 wxFontMapper *result = 0 ;
10501
10502 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
10503 {
10504 PyThreadState* __tstate = wxPyBeginAllowThreads();
10505 result = (wxFontMapper *)new wxFontMapper();
10506 wxPyEndAllowThreads(__tstate);
10507 if (PyErr_Occurred()) SWIG_fail;
10508 }
10509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
10510 return resultobj;
10511 fail:
10512 return NULL;
10513 }
10514
10515
10516 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10517 PyObject *resultobj = 0;
10518 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10519 void *argp1 = 0 ;
10520 int res1 = 0 ;
10521 PyObject *swig_obj[1] ;
10522
10523 if (!args) SWIG_fail;
10524 swig_obj[0] = args;
10525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
10526 if (!SWIG_IsOK(res1)) {
10527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10528 }
10529 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10530 {
10531 PyThreadState* __tstate = wxPyBeginAllowThreads();
10532 delete arg1;
10533
10534 wxPyEndAllowThreads(__tstate);
10535 if (PyErr_Occurred()) SWIG_fail;
10536 }
10537 resultobj = SWIG_Py_Void();
10538 return resultobj;
10539 fail:
10540 return NULL;
10541 }
10542
10543
10544 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10545 PyObject *resultobj = 0;
10546 wxFontMapper *result = 0 ;
10547
10548 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
10549 {
10550 PyThreadState* __tstate = wxPyBeginAllowThreads();
10551 result = (wxFontMapper *)wxFontMapper::Get();
10552 wxPyEndAllowThreads(__tstate);
10553 if (PyErr_Occurred()) SWIG_fail;
10554 }
10555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10556 return resultobj;
10557 fail:
10558 return NULL;
10559 }
10560
10561
10562 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10563 PyObject *resultobj = 0;
10564 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10565 wxFontMapper *result = 0 ;
10566 void *argp1 = 0 ;
10567 int res1 = 0 ;
10568 PyObject * obj0 = 0 ;
10569 char * kwnames[] = {
10570 (char *) "mapper", NULL
10571 };
10572
10573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
10574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10575 if (!SWIG_IsOK(res1)) {
10576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10577 }
10578 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10579 {
10580 PyThreadState* __tstate = wxPyBeginAllowThreads();
10581 result = (wxFontMapper *)wxFontMapper::Set(arg1);
10582 wxPyEndAllowThreads(__tstate);
10583 if (PyErr_Occurred()) SWIG_fail;
10584 }
10585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10586 return resultobj;
10587 fail:
10588 return NULL;
10589 }
10590
10591
10592 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10593 PyObject *resultobj = 0;
10594 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10595 wxString *arg2 = 0 ;
10596 bool arg3 = (bool) true ;
10597 wxFontEncoding result;
10598 void *argp1 = 0 ;
10599 int res1 = 0 ;
10600 bool temp2 = false ;
10601 bool val3 ;
10602 int ecode3 = 0 ;
10603 PyObject * obj0 = 0 ;
10604 PyObject * obj1 = 0 ;
10605 PyObject * obj2 = 0 ;
10606 char * kwnames[] = {
10607 (char *) "self",(char *) "charset",(char *) "interactive", NULL
10608 };
10609
10610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10612 if (!SWIG_IsOK(res1)) {
10613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10614 }
10615 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10616 {
10617 arg2 = wxString_in_helper(obj1);
10618 if (arg2 == NULL) SWIG_fail;
10619 temp2 = true;
10620 }
10621 if (obj2) {
10622 ecode3 = SWIG_AsVal_bool(obj2, &val3);
10623 if (!SWIG_IsOK(ecode3)) {
10624 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
10625 }
10626 arg3 = static_cast< bool >(val3);
10627 }
10628 {
10629 PyThreadState* __tstate = wxPyBeginAllowThreads();
10630 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
10631 wxPyEndAllowThreads(__tstate);
10632 if (PyErr_Occurred()) SWIG_fail;
10633 }
10634 resultobj = SWIG_From_int(static_cast< int >(result));
10635 {
10636 if (temp2)
10637 delete arg2;
10638 }
10639 return resultobj;
10640 fail:
10641 {
10642 if (temp2)
10643 delete arg2;
10644 }
10645 return NULL;
10646 }
10647
10648
10649 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10650 PyObject *resultobj = 0;
10651 size_t result;
10652
10653 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
10654 {
10655 PyThreadState* __tstate = wxPyBeginAllowThreads();
10656 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
10657 wxPyEndAllowThreads(__tstate);
10658 if (PyErr_Occurred()) SWIG_fail;
10659 }
10660 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
10661 return resultobj;
10662 fail:
10663 return NULL;
10664 }
10665
10666
10667 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10668 PyObject *resultobj = 0;
10669 size_t arg1 ;
10670 wxFontEncoding result;
10671 size_t val1 ;
10672 int ecode1 = 0 ;
10673 PyObject * obj0 = 0 ;
10674 char * kwnames[] = {
10675 (char *) "n", NULL
10676 };
10677
10678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
10679 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
10680 if (!SWIG_IsOK(ecode1)) {
10681 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
10682 }
10683 arg1 = static_cast< size_t >(val1);
10684 {
10685 PyThreadState* __tstate = wxPyBeginAllowThreads();
10686 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
10687 wxPyEndAllowThreads(__tstate);
10688 if (PyErr_Occurred()) SWIG_fail;
10689 }
10690 resultobj = SWIG_From_int(static_cast< int >(result));
10691 return resultobj;
10692 fail:
10693 return NULL;
10694 }
10695
10696
10697 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10698 PyObject *resultobj = 0;
10699 wxFontEncoding arg1 ;
10700 wxString result;
10701 int val1 ;
10702 int ecode1 = 0 ;
10703 PyObject * obj0 = 0 ;
10704 char * kwnames[] = {
10705 (char *) "encoding", NULL
10706 };
10707
10708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
10709 ecode1 = SWIG_AsVal_int(obj0, &val1);
10710 if (!SWIG_IsOK(ecode1)) {
10711 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10712 }
10713 arg1 = static_cast< wxFontEncoding >(val1);
10714 {
10715 PyThreadState* __tstate = wxPyBeginAllowThreads();
10716 result = wxFontMapper::GetEncodingName(arg1);
10717 wxPyEndAllowThreads(__tstate);
10718 if (PyErr_Occurred()) SWIG_fail;
10719 }
10720 {
10721 #if wxUSE_UNICODE
10722 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10723 #else
10724 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10725 #endif
10726 }
10727 return resultobj;
10728 fail:
10729 return NULL;
10730 }
10731
10732
10733 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10734 PyObject *resultobj = 0;
10735 wxFontEncoding arg1 ;
10736 wxString result;
10737 int val1 ;
10738 int ecode1 = 0 ;
10739 PyObject * obj0 = 0 ;
10740 char * kwnames[] = {
10741 (char *) "encoding", NULL
10742 };
10743
10744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
10745 ecode1 = SWIG_AsVal_int(obj0, &val1);
10746 if (!SWIG_IsOK(ecode1)) {
10747 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10748 }
10749 arg1 = static_cast< wxFontEncoding >(val1);
10750 {
10751 PyThreadState* __tstate = wxPyBeginAllowThreads();
10752 result = wxFontMapper::GetEncodingDescription(arg1);
10753 wxPyEndAllowThreads(__tstate);
10754 if (PyErr_Occurred()) SWIG_fail;
10755 }
10756 {
10757 #if wxUSE_UNICODE
10758 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10759 #else
10760 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10761 #endif
10762 }
10763 return resultobj;
10764 fail:
10765 return NULL;
10766 }
10767
10768
10769 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10770 PyObject *resultobj = 0;
10771 wxString *arg1 = 0 ;
10772 wxFontEncoding result;
10773 bool temp1 = false ;
10774 PyObject * obj0 = 0 ;
10775 char * kwnames[] = {
10776 (char *) "name", NULL
10777 };
10778
10779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
10780 {
10781 arg1 = wxString_in_helper(obj0);
10782 if (arg1 == NULL) SWIG_fail;
10783 temp1 = true;
10784 }
10785 {
10786 PyThreadState* __tstate = wxPyBeginAllowThreads();
10787 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
10788 wxPyEndAllowThreads(__tstate);
10789 if (PyErr_Occurred()) SWIG_fail;
10790 }
10791 resultobj = SWIG_From_int(static_cast< int >(result));
10792 {
10793 if (temp1)
10794 delete arg1;
10795 }
10796 return resultobj;
10797 fail:
10798 {
10799 if (temp1)
10800 delete arg1;
10801 }
10802 return NULL;
10803 }
10804
10805
10806 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10807 PyObject *resultobj = 0;
10808 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10809 wxString *arg2 = 0 ;
10810 void *argp1 = 0 ;
10811 int res1 = 0 ;
10812 bool temp2 = false ;
10813 PyObject * obj0 = 0 ;
10814 PyObject * obj1 = 0 ;
10815 char * kwnames[] = {
10816 (char *) "self",(char *) "prefix", NULL
10817 };
10818
10819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
10820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10821 if (!SWIG_IsOK(res1)) {
10822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10823 }
10824 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10825 {
10826 arg2 = wxString_in_helper(obj1);
10827 if (arg2 == NULL) SWIG_fail;
10828 temp2 = true;
10829 }
10830 {
10831 PyThreadState* __tstate = wxPyBeginAllowThreads();
10832 (arg1)->SetConfigPath((wxString const &)*arg2);
10833 wxPyEndAllowThreads(__tstate);
10834 if (PyErr_Occurred()) SWIG_fail;
10835 }
10836 resultobj = SWIG_Py_Void();
10837 {
10838 if (temp2)
10839 delete arg2;
10840 }
10841 return resultobj;
10842 fail:
10843 {
10844 if (temp2)
10845 delete arg2;
10846 }
10847 return NULL;
10848 }
10849
10850
10851 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10852 PyObject *resultobj = 0;
10853 wxString result;
10854
10855 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
10856 {
10857 PyThreadState* __tstate = wxPyBeginAllowThreads();
10858 result = wxFontMapper::GetDefaultConfigPath();
10859 wxPyEndAllowThreads(__tstate);
10860 if (PyErr_Occurred()) SWIG_fail;
10861 }
10862 {
10863 #if wxUSE_UNICODE
10864 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10865 #else
10866 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10867 #endif
10868 }
10869 return resultobj;
10870 fail:
10871 return NULL;
10872 }
10873
10874
10875 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10876 PyObject *resultobj = 0;
10877 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10878 wxFontEncoding arg2 ;
10879 wxString const &arg3_defvalue = wxPyEmptyString ;
10880 wxString *arg3 = (wxString *) &arg3_defvalue ;
10881 bool arg4 = (bool) true ;
10882 PyObject *result = 0 ;
10883 void *argp1 = 0 ;
10884 int res1 = 0 ;
10885 int val2 ;
10886 int ecode2 = 0 ;
10887 bool temp3 = false ;
10888 bool val4 ;
10889 int ecode4 = 0 ;
10890 PyObject * obj0 = 0 ;
10891 PyObject * obj1 = 0 ;
10892 PyObject * obj2 = 0 ;
10893 PyObject * obj3 = 0 ;
10894 char * kwnames[] = {
10895 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
10896 };
10897
10898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10900 if (!SWIG_IsOK(res1)) {
10901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10902 }
10903 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10904 ecode2 = SWIG_AsVal_int(obj1, &val2);
10905 if (!SWIG_IsOK(ecode2)) {
10906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10907 }
10908 arg2 = static_cast< wxFontEncoding >(val2);
10909 if (obj2) {
10910 {
10911 arg3 = wxString_in_helper(obj2);
10912 if (arg3 == NULL) SWIG_fail;
10913 temp3 = true;
10914 }
10915 }
10916 if (obj3) {
10917 ecode4 = SWIG_AsVal_bool(obj3, &val4);
10918 if (!SWIG_IsOK(ecode4)) {
10919 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
10920 }
10921 arg4 = static_cast< bool >(val4);
10922 }
10923 {
10924 PyThreadState* __tstate = wxPyBeginAllowThreads();
10925 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
10926 wxPyEndAllowThreads(__tstate);
10927 if (PyErr_Occurred()) SWIG_fail;
10928 }
10929 resultobj = result;
10930 {
10931 if (temp3)
10932 delete arg3;
10933 }
10934 return resultobj;
10935 fail:
10936 {
10937 if (temp3)
10938 delete arg3;
10939 }
10940 return NULL;
10941 }
10942
10943
10944 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10945 PyObject *resultobj = 0;
10946 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10947 wxFontEncoding arg2 ;
10948 wxString const &arg3_defvalue = wxPyEmptyString ;
10949 wxString *arg3 = (wxString *) &arg3_defvalue ;
10950 bool result;
10951 void *argp1 = 0 ;
10952 int res1 = 0 ;
10953 int val2 ;
10954 int ecode2 = 0 ;
10955 bool temp3 = false ;
10956 PyObject * obj0 = 0 ;
10957 PyObject * obj1 = 0 ;
10958 PyObject * obj2 = 0 ;
10959 char * kwnames[] = {
10960 (char *) "self",(char *) "encoding",(char *) "facename", NULL
10961 };
10962
10963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10965 if (!SWIG_IsOK(res1)) {
10966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10967 }
10968 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10969 ecode2 = SWIG_AsVal_int(obj1, &val2);
10970 if (!SWIG_IsOK(ecode2)) {
10971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10972 }
10973 arg2 = static_cast< wxFontEncoding >(val2);
10974 if (obj2) {
10975 {
10976 arg3 = wxString_in_helper(obj2);
10977 if (arg3 == NULL) SWIG_fail;
10978 temp3 = true;
10979 }
10980 }
10981 {
10982 PyThreadState* __tstate = wxPyBeginAllowThreads();
10983 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
10984 wxPyEndAllowThreads(__tstate);
10985 if (PyErr_Occurred()) SWIG_fail;
10986 }
10987 {
10988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10989 }
10990 {
10991 if (temp3)
10992 delete arg3;
10993 }
10994 return resultobj;
10995 fail:
10996 {
10997 if (temp3)
10998 delete arg3;
10999 }
11000 return NULL;
11001 }
11002
11003
11004 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11005 PyObject *resultobj = 0;
11006 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11007 wxWindow *arg2 = (wxWindow *) 0 ;
11008 void *argp1 = 0 ;
11009 int res1 = 0 ;
11010 void *argp2 = 0 ;
11011 int res2 = 0 ;
11012 PyObject * obj0 = 0 ;
11013 PyObject * obj1 = 0 ;
11014 char * kwnames[] = {
11015 (char *) "self",(char *) "parent", NULL
11016 };
11017
11018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
11019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11020 if (!SWIG_IsOK(res1)) {
11021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11022 }
11023 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11024 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11025 if (!SWIG_IsOK(res2)) {
11026 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
11027 }
11028 arg2 = reinterpret_cast< wxWindow * >(argp2);
11029 {
11030 PyThreadState* __tstate = wxPyBeginAllowThreads();
11031 (arg1)->SetDialogParent(arg2);
11032 wxPyEndAllowThreads(__tstate);
11033 if (PyErr_Occurred()) SWIG_fail;
11034 }
11035 resultobj = SWIG_Py_Void();
11036 return resultobj;
11037 fail:
11038 return NULL;
11039 }
11040
11041
11042 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11043 PyObject *resultobj = 0;
11044 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11045 wxString *arg2 = 0 ;
11046 void *argp1 = 0 ;
11047 int res1 = 0 ;
11048 bool temp2 = false ;
11049 PyObject * obj0 = 0 ;
11050 PyObject * obj1 = 0 ;
11051 char * kwnames[] = {
11052 (char *) "self",(char *) "title", NULL
11053 };
11054
11055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
11056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11057 if (!SWIG_IsOK(res1)) {
11058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11059 }
11060 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11061 {
11062 arg2 = wxString_in_helper(obj1);
11063 if (arg2 == NULL) SWIG_fail;
11064 temp2 = true;
11065 }
11066 {
11067 PyThreadState* __tstate = wxPyBeginAllowThreads();
11068 (arg1)->SetDialogTitle((wxString const &)*arg2);
11069 wxPyEndAllowThreads(__tstate);
11070 if (PyErr_Occurred()) SWIG_fail;
11071 }
11072 resultobj = SWIG_Py_Void();
11073 {
11074 if (temp2)
11075 delete arg2;
11076 }
11077 return resultobj;
11078 fail:
11079 {
11080 if (temp2)
11081 delete arg2;
11082 }
11083 return NULL;
11084 }
11085
11086
11087 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11088 PyObject *obj;
11089 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11090 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
11091 return SWIG_Py_Void();
11092 }
11093
11094 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11095 return SWIG_Python_InitShadowInstance(args);
11096 }
11097
11098 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11099 PyObject *resultobj = 0;
11100 int arg1 ;
11101 int arg2 ;
11102 int arg3 ;
11103 int arg4 ;
11104 bool arg5 = (bool) false ;
11105 wxString const &arg6_defvalue = wxPyEmptyString ;
11106 wxString *arg6 = (wxString *) &arg6_defvalue ;
11107 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11108 wxFont *result = 0 ;
11109 int val1 ;
11110 int ecode1 = 0 ;
11111 int val2 ;
11112 int ecode2 = 0 ;
11113 int val3 ;
11114 int ecode3 = 0 ;
11115 int val4 ;
11116 int ecode4 = 0 ;
11117 bool val5 ;
11118 int ecode5 = 0 ;
11119 bool temp6 = false ;
11120 int val7 ;
11121 int ecode7 = 0 ;
11122 PyObject * obj0 = 0 ;
11123 PyObject * obj1 = 0 ;
11124 PyObject * obj2 = 0 ;
11125 PyObject * obj3 = 0 ;
11126 PyObject * obj4 = 0 ;
11127 PyObject * obj5 = 0 ;
11128 PyObject * obj6 = 0 ;
11129 char * kwnames[] = {
11130 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11131 };
11132
11133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11134 ecode1 = SWIG_AsVal_int(obj0, &val1);
11135 if (!SWIG_IsOK(ecode1)) {
11136 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11137 }
11138 arg1 = static_cast< int >(val1);
11139 ecode2 = SWIG_AsVal_int(obj1, &val2);
11140 if (!SWIG_IsOK(ecode2)) {
11141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11142 }
11143 arg2 = static_cast< int >(val2);
11144 ecode3 = SWIG_AsVal_int(obj2, &val3);
11145 if (!SWIG_IsOK(ecode3)) {
11146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11147 }
11148 arg3 = static_cast< int >(val3);
11149 ecode4 = SWIG_AsVal_int(obj3, &val4);
11150 if (!SWIG_IsOK(ecode4)) {
11151 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11152 }
11153 arg4 = static_cast< int >(val4);
11154 if (obj4) {
11155 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11156 if (!SWIG_IsOK(ecode5)) {
11157 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11158 }
11159 arg5 = static_cast< bool >(val5);
11160 }
11161 if (obj5) {
11162 {
11163 arg6 = wxString_in_helper(obj5);
11164 if (arg6 == NULL) SWIG_fail;
11165 temp6 = true;
11166 }
11167 }
11168 if (obj6) {
11169 ecode7 = SWIG_AsVal_int(obj6, &val7);
11170 if (!SWIG_IsOK(ecode7)) {
11171 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11172 }
11173 arg7 = static_cast< wxFontEncoding >(val7);
11174 }
11175 {
11176 if (!wxPyCheckForApp()) SWIG_fail;
11177 PyThreadState* __tstate = wxPyBeginAllowThreads();
11178 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11179 wxPyEndAllowThreads(__tstate);
11180 if (PyErr_Occurred()) SWIG_fail;
11181 }
11182 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
11183 {
11184 if (temp6)
11185 delete arg6;
11186 }
11187 return resultobj;
11188 fail:
11189 {
11190 if (temp6)
11191 delete arg6;
11192 }
11193 return NULL;
11194 }
11195
11196
11197 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11198 PyObject *resultobj = 0;
11199 wxFont *arg1 = (wxFont *) 0 ;
11200 void *argp1 = 0 ;
11201 int res1 = 0 ;
11202 PyObject *swig_obj[1] ;
11203
11204 if (!args) SWIG_fail;
11205 swig_obj[0] = args;
11206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
11207 if (!SWIG_IsOK(res1)) {
11208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11209 }
11210 arg1 = reinterpret_cast< wxFont * >(argp1);
11211 {
11212 PyThreadState* __tstate = wxPyBeginAllowThreads();
11213 delete arg1;
11214
11215 wxPyEndAllowThreads(__tstate);
11216 if (PyErr_Occurred()) SWIG_fail;
11217 }
11218 resultobj = SWIG_Py_Void();
11219 return resultobj;
11220 fail:
11221 return NULL;
11222 }
11223
11224
11225 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11226 PyObject *resultobj = 0;
11227 wxNativeFontInfo *arg1 = 0 ;
11228 wxFont *result = 0 ;
11229 void *argp1 = 0 ;
11230 int res1 = 0 ;
11231 PyObject * obj0 = 0 ;
11232 char * kwnames[] = {
11233 (char *) "info", NULL
11234 };
11235
11236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
11237 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
11238 if (!SWIG_IsOK(res1)) {
11239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11240 }
11241 if (!argp1) {
11242 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11243 }
11244 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11245 {
11246 if (!wxPyCheckForApp()) SWIG_fail;
11247 PyThreadState* __tstate = wxPyBeginAllowThreads();
11248 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
11249 wxPyEndAllowThreads(__tstate);
11250 if (PyErr_Occurred()) SWIG_fail;
11251 }
11252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11253 return resultobj;
11254 fail:
11255 return NULL;
11256 }
11257
11258
11259 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11260 PyObject *resultobj = 0;
11261 wxString *arg1 = 0 ;
11262 wxFont *result = 0 ;
11263 bool temp1 = false ;
11264 PyObject * obj0 = 0 ;
11265 char * kwnames[] = {
11266 (char *) "info", NULL
11267 };
11268
11269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
11270 {
11271 arg1 = wxString_in_helper(obj0);
11272 if (arg1 == NULL) SWIG_fail;
11273 temp1 = true;
11274 }
11275 {
11276 if (!wxPyCheckForApp()) SWIG_fail;
11277 PyThreadState* __tstate = wxPyBeginAllowThreads();
11278 result = (wxFont *)new_wxFont((wxString const &)*arg1);
11279 wxPyEndAllowThreads(__tstate);
11280 if (PyErr_Occurred()) SWIG_fail;
11281 }
11282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11283 {
11284 if (temp1)
11285 delete arg1;
11286 }
11287 return resultobj;
11288 fail:
11289 {
11290 if (temp1)
11291 delete arg1;
11292 }
11293 return NULL;
11294 }
11295
11296
11297 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11298 PyObject *resultobj = 0;
11299 int arg1 ;
11300 wxFontFamily arg2 ;
11301 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11302 wxString const &arg4_defvalue = wxPyEmptyString ;
11303 wxString *arg4 = (wxString *) &arg4_defvalue ;
11304 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11305 wxFont *result = 0 ;
11306 int val1 ;
11307 int ecode1 = 0 ;
11308 int val2 ;
11309 int ecode2 = 0 ;
11310 int val3 ;
11311 int ecode3 = 0 ;
11312 bool temp4 = false ;
11313 int val5 ;
11314 int ecode5 = 0 ;
11315 PyObject * obj0 = 0 ;
11316 PyObject * obj1 = 0 ;
11317 PyObject * obj2 = 0 ;
11318 PyObject * obj3 = 0 ;
11319 PyObject * obj4 = 0 ;
11320 char * kwnames[] = {
11321 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11322 };
11323
11324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11325 ecode1 = SWIG_AsVal_int(obj0, &val1);
11326 if (!SWIG_IsOK(ecode1)) {
11327 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11328 }
11329 arg1 = static_cast< int >(val1);
11330 ecode2 = SWIG_AsVal_int(obj1, &val2);
11331 if (!SWIG_IsOK(ecode2)) {
11332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
11333 }
11334 arg2 = static_cast< wxFontFamily >(val2);
11335 if (obj2) {
11336 ecode3 = SWIG_AsVal_int(obj2, &val3);
11337 if (!SWIG_IsOK(ecode3)) {
11338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
11339 }
11340 arg3 = static_cast< int >(val3);
11341 }
11342 if (obj3) {
11343 {
11344 arg4 = wxString_in_helper(obj3);
11345 if (arg4 == NULL) SWIG_fail;
11346 temp4 = true;
11347 }
11348 }
11349 if (obj4) {
11350 ecode5 = SWIG_AsVal_int(obj4, &val5);
11351 if (!SWIG_IsOK(ecode5)) {
11352 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11353 }
11354 arg5 = static_cast< wxFontEncoding >(val5);
11355 }
11356 {
11357 if (!wxPyCheckForApp()) SWIG_fail;
11358 PyThreadState* __tstate = wxPyBeginAllowThreads();
11359 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11360 wxPyEndAllowThreads(__tstate);
11361 if (PyErr_Occurred()) SWIG_fail;
11362 }
11363 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11364 {
11365 if (temp4)
11366 delete arg4;
11367 }
11368 return resultobj;
11369 fail:
11370 {
11371 if (temp4)
11372 delete arg4;
11373 }
11374 return NULL;
11375 }
11376
11377
11378 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11379 PyObject *resultobj = 0;
11380 wxSize *arg1 = 0 ;
11381 int arg2 ;
11382 int arg3 ;
11383 int arg4 ;
11384 bool arg5 = (bool) false ;
11385 wxString const &arg6_defvalue = wxEmptyString ;
11386 wxString *arg6 = (wxString *) &arg6_defvalue ;
11387 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11388 wxFont *result = 0 ;
11389 wxSize temp1 ;
11390 int val2 ;
11391 int ecode2 = 0 ;
11392 int val3 ;
11393 int ecode3 = 0 ;
11394 int val4 ;
11395 int ecode4 = 0 ;
11396 bool val5 ;
11397 int ecode5 = 0 ;
11398 bool temp6 = false ;
11399 int val7 ;
11400 int ecode7 = 0 ;
11401 PyObject * obj0 = 0 ;
11402 PyObject * obj1 = 0 ;
11403 PyObject * obj2 = 0 ;
11404 PyObject * obj3 = 0 ;
11405 PyObject * obj4 = 0 ;
11406 PyObject * obj5 = 0 ;
11407 PyObject * obj6 = 0 ;
11408 char * kwnames[] = {
11409 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
11410 };
11411
11412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11413 {
11414 arg1 = &temp1;
11415 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11416 }
11417 ecode2 = SWIG_AsVal_int(obj1, &val2);
11418 if (!SWIG_IsOK(ecode2)) {
11419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
11420 }
11421 arg2 = static_cast< int >(val2);
11422 ecode3 = SWIG_AsVal_int(obj2, &val3);
11423 if (!SWIG_IsOK(ecode3)) {
11424 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11425 }
11426 arg3 = static_cast< int >(val3);
11427 ecode4 = SWIG_AsVal_int(obj3, &val4);
11428 if (!SWIG_IsOK(ecode4)) {
11429 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
11430 }
11431 arg4 = static_cast< int >(val4);
11432 if (obj4) {
11433 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11434 if (!SWIG_IsOK(ecode5)) {
11435 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
11436 }
11437 arg5 = static_cast< bool >(val5);
11438 }
11439 if (obj5) {
11440 {
11441 arg6 = wxString_in_helper(obj5);
11442 if (arg6 == NULL) SWIG_fail;
11443 temp6 = true;
11444 }
11445 }
11446 if (obj6) {
11447 ecode7 = SWIG_AsVal_int(obj6, &val7);
11448 if (!SWIG_IsOK(ecode7)) {
11449 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11450 }
11451 arg7 = static_cast< wxFontEncoding >(val7);
11452 }
11453 {
11454 if (!wxPyCheckForApp()) SWIG_fail;
11455 PyThreadState* __tstate = wxPyBeginAllowThreads();
11456 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11457 wxPyEndAllowThreads(__tstate);
11458 if (PyErr_Occurred()) SWIG_fail;
11459 }
11460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11461 {
11462 if (temp6)
11463 delete arg6;
11464 }
11465 return resultobj;
11466 fail:
11467 {
11468 if (temp6)
11469 delete arg6;
11470 }
11471 return NULL;
11472 }
11473
11474
11475 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11476 PyObject *resultobj = 0;
11477 wxSize *arg1 = 0 ;
11478 wxFontFamily arg2 ;
11479 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11480 wxString const &arg4_defvalue = wxEmptyString ;
11481 wxString *arg4 = (wxString *) &arg4_defvalue ;
11482 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11483 wxFont *result = 0 ;
11484 wxSize temp1 ;
11485 int val2 ;
11486 int ecode2 = 0 ;
11487 int val3 ;
11488 int ecode3 = 0 ;
11489 bool temp4 = false ;
11490 int val5 ;
11491 int ecode5 = 0 ;
11492 PyObject * obj0 = 0 ;
11493 PyObject * obj1 = 0 ;
11494 PyObject * obj2 = 0 ;
11495 PyObject * obj3 = 0 ;
11496 PyObject * obj4 = 0 ;
11497 char * kwnames[] = {
11498 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11499 };
11500
11501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11502 {
11503 arg1 = &temp1;
11504 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11505 }
11506 ecode2 = SWIG_AsVal_int(obj1, &val2);
11507 if (!SWIG_IsOK(ecode2)) {
11508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
11509 }
11510 arg2 = static_cast< wxFontFamily >(val2);
11511 if (obj2) {
11512 ecode3 = SWIG_AsVal_int(obj2, &val3);
11513 if (!SWIG_IsOK(ecode3)) {
11514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11515 }
11516 arg3 = static_cast< int >(val3);
11517 }
11518 if (obj3) {
11519 {
11520 arg4 = wxString_in_helper(obj3);
11521 if (arg4 == NULL) SWIG_fail;
11522 temp4 = true;
11523 }
11524 }
11525 if (obj4) {
11526 ecode5 = SWIG_AsVal_int(obj4, &val5);
11527 if (!SWIG_IsOK(ecode5)) {
11528 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11529 }
11530 arg5 = static_cast< wxFontEncoding >(val5);
11531 }
11532 {
11533 if (!wxPyCheckForApp()) SWIG_fail;
11534 PyThreadState* __tstate = wxPyBeginAllowThreads();
11535 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11536 wxPyEndAllowThreads(__tstate);
11537 if (PyErr_Occurred()) SWIG_fail;
11538 }
11539 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11540 {
11541 if (temp4)
11542 delete arg4;
11543 }
11544 return resultobj;
11545 fail:
11546 {
11547 if (temp4)
11548 delete arg4;
11549 }
11550 return NULL;
11551 }
11552
11553
11554 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11555 PyObject *resultobj = 0;
11556 wxFont *arg1 = (wxFont *) 0 ;
11557 bool result;
11558 void *argp1 = 0 ;
11559 int res1 = 0 ;
11560 PyObject *swig_obj[1] ;
11561
11562 if (!args) SWIG_fail;
11563 swig_obj[0] = args;
11564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11565 if (!SWIG_IsOK(res1)) {
11566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
11567 }
11568 arg1 = reinterpret_cast< wxFont * >(argp1);
11569 {
11570 PyThreadState* __tstate = wxPyBeginAllowThreads();
11571 result = (bool)((wxFont const *)arg1)->Ok();
11572 wxPyEndAllowThreads(__tstate);
11573 if (PyErr_Occurred()) SWIG_fail;
11574 }
11575 {
11576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11577 }
11578 return resultobj;
11579 fail:
11580 return NULL;
11581 }
11582
11583
11584 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11585 PyObject *resultobj = 0;
11586 wxFont *arg1 = (wxFont *) 0 ;
11587 wxFont *arg2 = (wxFont *) 0 ;
11588 bool result;
11589 void *argp1 = 0 ;
11590 int res1 = 0 ;
11591 void *argp2 = 0 ;
11592 int res2 = 0 ;
11593 PyObject * obj0 = 0 ;
11594 PyObject * obj1 = 0 ;
11595 char * kwnames[] = {
11596 (char *) "self",(char *) "other", NULL
11597 };
11598
11599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
11600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11601 if (!SWIG_IsOK(res1)) {
11602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
11603 }
11604 arg1 = reinterpret_cast< wxFont * >(argp1);
11605 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11606 if (!SWIG_IsOK(res2)) {
11607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
11608 }
11609 arg2 = reinterpret_cast< wxFont * >(argp2);
11610 {
11611 PyThreadState* __tstate = wxPyBeginAllowThreads();
11612 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
11613 wxPyEndAllowThreads(__tstate);
11614 if (PyErr_Occurred()) SWIG_fail;
11615 }
11616 {
11617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11618 }
11619 return resultobj;
11620 fail:
11621 return NULL;
11622 }
11623
11624
11625 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11626 PyObject *resultobj = 0;
11627 wxFont *arg1 = (wxFont *) 0 ;
11628 wxFont *arg2 = (wxFont *) 0 ;
11629 bool result;
11630 void *argp1 = 0 ;
11631 int res1 = 0 ;
11632 void *argp2 = 0 ;
11633 int res2 = 0 ;
11634 PyObject * obj0 = 0 ;
11635 PyObject * obj1 = 0 ;
11636 char * kwnames[] = {
11637 (char *) "self",(char *) "other", NULL
11638 };
11639
11640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
11641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11642 if (!SWIG_IsOK(res1)) {
11643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
11644 }
11645 arg1 = reinterpret_cast< wxFont * >(argp1);
11646 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11647 if (!SWIG_IsOK(res2)) {
11648 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
11649 }
11650 arg2 = reinterpret_cast< wxFont * >(argp2);
11651 {
11652 PyThreadState* __tstate = wxPyBeginAllowThreads();
11653 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
11654 wxPyEndAllowThreads(__tstate);
11655 if (PyErr_Occurred()) SWIG_fail;
11656 }
11657 {
11658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11659 }
11660 return resultobj;
11661 fail:
11662 return NULL;
11663 }
11664
11665
11666 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11667 PyObject *resultobj = 0;
11668 wxFont *arg1 = (wxFont *) 0 ;
11669 int result;
11670 void *argp1 = 0 ;
11671 int res1 = 0 ;
11672 PyObject *swig_obj[1] ;
11673
11674 if (!args) SWIG_fail;
11675 swig_obj[0] = args;
11676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11677 if (!SWIG_IsOK(res1)) {
11678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11679 }
11680 arg1 = reinterpret_cast< wxFont * >(argp1);
11681 {
11682 PyThreadState* __tstate = wxPyBeginAllowThreads();
11683 result = (int)((wxFont const *)arg1)->GetPointSize();
11684 wxPyEndAllowThreads(__tstate);
11685 if (PyErr_Occurred()) SWIG_fail;
11686 }
11687 resultobj = SWIG_From_int(static_cast< int >(result));
11688 return resultobj;
11689 fail:
11690 return NULL;
11691 }
11692
11693
11694 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11695 PyObject *resultobj = 0;
11696 wxFont *arg1 = (wxFont *) 0 ;
11697 wxSize result;
11698 void *argp1 = 0 ;
11699 int res1 = 0 ;
11700 PyObject *swig_obj[1] ;
11701
11702 if (!args) SWIG_fail;
11703 swig_obj[0] = args;
11704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11705 if (!SWIG_IsOK(res1)) {
11706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11707 }
11708 arg1 = reinterpret_cast< wxFont * >(argp1);
11709 {
11710 PyThreadState* __tstate = wxPyBeginAllowThreads();
11711 result = ((wxFont const *)arg1)->GetPixelSize();
11712 wxPyEndAllowThreads(__tstate);
11713 if (PyErr_Occurred()) SWIG_fail;
11714 }
11715 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
11716 return resultobj;
11717 fail:
11718 return NULL;
11719 }
11720
11721
11722 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11723 PyObject *resultobj = 0;
11724 wxFont *arg1 = (wxFont *) 0 ;
11725 bool result;
11726 void *argp1 = 0 ;
11727 int res1 = 0 ;
11728 PyObject *swig_obj[1] ;
11729
11730 if (!args) SWIG_fail;
11731 swig_obj[0] = args;
11732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11733 if (!SWIG_IsOK(res1)) {
11734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
11735 }
11736 arg1 = reinterpret_cast< wxFont * >(argp1);
11737 {
11738 PyThreadState* __tstate = wxPyBeginAllowThreads();
11739 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
11740 wxPyEndAllowThreads(__tstate);
11741 if (PyErr_Occurred()) SWIG_fail;
11742 }
11743 {
11744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11745 }
11746 return resultobj;
11747 fail:
11748 return NULL;
11749 }
11750
11751
11752 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11753 PyObject *resultobj = 0;
11754 wxFont *arg1 = (wxFont *) 0 ;
11755 int result;
11756 void *argp1 = 0 ;
11757 int res1 = 0 ;
11758 PyObject *swig_obj[1] ;
11759
11760 if (!args) SWIG_fail;
11761 swig_obj[0] = args;
11762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11763 if (!SWIG_IsOK(res1)) {
11764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
11765 }
11766 arg1 = reinterpret_cast< wxFont * >(argp1);
11767 {
11768 PyThreadState* __tstate = wxPyBeginAllowThreads();
11769 result = (int)((wxFont const *)arg1)->GetFamily();
11770 wxPyEndAllowThreads(__tstate);
11771 if (PyErr_Occurred()) SWIG_fail;
11772 }
11773 resultobj = SWIG_From_int(static_cast< int >(result));
11774 return resultobj;
11775 fail:
11776 return NULL;
11777 }
11778
11779
11780 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11781 PyObject *resultobj = 0;
11782 wxFont *arg1 = (wxFont *) 0 ;
11783 int result;
11784 void *argp1 = 0 ;
11785 int res1 = 0 ;
11786 PyObject *swig_obj[1] ;
11787
11788 if (!args) SWIG_fail;
11789 swig_obj[0] = args;
11790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11791 if (!SWIG_IsOK(res1)) {
11792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
11793 }
11794 arg1 = reinterpret_cast< wxFont * >(argp1);
11795 {
11796 PyThreadState* __tstate = wxPyBeginAllowThreads();
11797 result = (int)((wxFont const *)arg1)->GetStyle();
11798 wxPyEndAllowThreads(__tstate);
11799 if (PyErr_Occurred()) SWIG_fail;
11800 }
11801 resultobj = SWIG_From_int(static_cast< int >(result));
11802 return resultobj;
11803 fail:
11804 return NULL;
11805 }
11806
11807
11808 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11809 PyObject *resultobj = 0;
11810 wxFont *arg1 = (wxFont *) 0 ;
11811 int result;
11812 void *argp1 = 0 ;
11813 int res1 = 0 ;
11814 PyObject *swig_obj[1] ;
11815
11816 if (!args) SWIG_fail;
11817 swig_obj[0] = args;
11818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11819 if (!SWIG_IsOK(res1)) {
11820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
11821 }
11822 arg1 = reinterpret_cast< wxFont * >(argp1);
11823 {
11824 PyThreadState* __tstate = wxPyBeginAllowThreads();
11825 result = (int)((wxFont const *)arg1)->GetWeight();
11826 wxPyEndAllowThreads(__tstate);
11827 if (PyErr_Occurred()) SWIG_fail;
11828 }
11829 resultobj = SWIG_From_int(static_cast< int >(result));
11830 return resultobj;
11831 fail:
11832 return NULL;
11833 }
11834
11835
11836 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11837 PyObject *resultobj = 0;
11838 wxFont *arg1 = (wxFont *) 0 ;
11839 bool result;
11840 void *argp1 = 0 ;
11841 int res1 = 0 ;
11842 PyObject *swig_obj[1] ;
11843
11844 if (!args) SWIG_fail;
11845 swig_obj[0] = args;
11846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11847 if (!SWIG_IsOK(res1)) {
11848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
11849 }
11850 arg1 = reinterpret_cast< wxFont * >(argp1);
11851 {
11852 PyThreadState* __tstate = wxPyBeginAllowThreads();
11853 result = (bool)((wxFont const *)arg1)->GetUnderlined();
11854 wxPyEndAllowThreads(__tstate);
11855 if (PyErr_Occurred()) SWIG_fail;
11856 }
11857 {
11858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11859 }
11860 return resultobj;
11861 fail:
11862 return NULL;
11863 }
11864
11865
11866 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11867 PyObject *resultobj = 0;
11868 wxFont *arg1 = (wxFont *) 0 ;
11869 wxString result;
11870 void *argp1 = 0 ;
11871 int res1 = 0 ;
11872 PyObject *swig_obj[1] ;
11873
11874 if (!args) SWIG_fail;
11875 swig_obj[0] = args;
11876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11877 if (!SWIG_IsOK(res1)) {
11878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
11879 }
11880 arg1 = reinterpret_cast< wxFont * >(argp1);
11881 {
11882 PyThreadState* __tstate = wxPyBeginAllowThreads();
11883 result = ((wxFont const *)arg1)->GetFaceName();
11884 wxPyEndAllowThreads(__tstate);
11885 if (PyErr_Occurred()) SWIG_fail;
11886 }
11887 {
11888 #if wxUSE_UNICODE
11889 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11890 #else
11891 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11892 #endif
11893 }
11894 return resultobj;
11895 fail:
11896 return NULL;
11897 }
11898
11899
11900 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11901 PyObject *resultobj = 0;
11902 wxFont *arg1 = (wxFont *) 0 ;
11903 wxFontEncoding result;
11904 void *argp1 = 0 ;
11905 int res1 = 0 ;
11906 PyObject *swig_obj[1] ;
11907
11908 if (!args) SWIG_fail;
11909 swig_obj[0] = args;
11910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11911 if (!SWIG_IsOK(res1)) {
11912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
11913 }
11914 arg1 = reinterpret_cast< wxFont * >(argp1);
11915 {
11916 PyThreadState* __tstate = wxPyBeginAllowThreads();
11917 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
11918 wxPyEndAllowThreads(__tstate);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 }
11921 resultobj = SWIG_From_int(static_cast< int >(result));
11922 return resultobj;
11923 fail:
11924 return NULL;
11925 }
11926
11927
11928 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11929 PyObject *resultobj = 0;
11930 wxFont *arg1 = (wxFont *) 0 ;
11931 wxNativeFontInfo *result = 0 ;
11932 void *argp1 = 0 ;
11933 int res1 = 0 ;
11934 PyObject *swig_obj[1] ;
11935
11936 if (!args) SWIG_fail;
11937 swig_obj[0] = args;
11938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11939 if (!SWIG_IsOK(res1)) {
11940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
11941 }
11942 arg1 = reinterpret_cast< wxFont * >(argp1);
11943 {
11944 PyThreadState* __tstate = wxPyBeginAllowThreads();
11945 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
11946 wxPyEndAllowThreads(__tstate);
11947 if (PyErr_Occurred()) SWIG_fail;
11948 }
11949 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11950 return resultobj;
11951 fail:
11952 return NULL;
11953 }
11954
11955
11956 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11957 PyObject *resultobj = 0;
11958 wxFont *arg1 = (wxFont *) 0 ;
11959 bool result;
11960 void *argp1 = 0 ;
11961 int res1 = 0 ;
11962 PyObject *swig_obj[1] ;
11963
11964 if (!args) SWIG_fail;
11965 swig_obj[0] = args;
11966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11967 if (!SWIG_IsOK(res1)) {
11968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
11969 }
11970 arg1 = reinterpret_cast< wxFont * >(argp1);
11971 {
11972 PyThreadState* __tstate = wxPyBeginAllowThreads();
11973 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
11974 wxPyEndAllowThreads(__tstate);
11975 if (PyErr_Occurred()) SWIG_fail;
11976 }
11977 {
11978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11979 }
11980 return resultobj;
11981 fail:
11982 return NULL;
11983 }
11984
11985
11986 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11987 PyObject *resultobj = 0;
11988 wxFont *arg1 = (wxFont *) 0 ;
11989 wxString result;
11990 void *argp1 = 0 ;
11991 int res1 = 0 ;
11992 PyObject *swig_obj[1] ;
11993
11994 if (!args) SWIG_fail;
11995 swig_obj[0] = args;
11996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11997 if (!SWIG_IsOK(res1)) {
11998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
11999 }
12000 arg1 = reinterpret_cast< wxFont * >(argp1);
12001 {
12002 PyThreadState* __tstate = wxPyBeginAllowThreads();
12003 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
12004 wxPyEndAllowThreads(__tstate);
12005 if (PyErr_Occurred()) SWIG_fail;
12006 }
12007 {
12008 #if wxUSE_UNICODE
12009 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12010 #else
12011 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12012 #endif
12013 }
12014 return resultobj;
12015 fail:
12016 return NULL;
12017 }
12018
12019
12020 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12021 PyObject *resultobj = 0;
12022 wxFont *arg1 = (wxFont *) 0 ;
12023 wxString result;
12024 void *argp1 = 0 ;
12025 int res1 = 0 ;
12026 PyObject *swig_obj[1] ;
12027
12028 if (!args) SWIG_fail;
12029 swig_obj[0] = args;
12030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12031 if (!SWIG_IsOK(res1)) {
12032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12033 }
12034 arg1 = reinterpret_cast< wxFont * >(argp1);
12035 {
12036 PyThreadState* __tstate = wxPyBeginAllowThreads();
12037 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
12038 wxPyEndAllowThreads(__tstate);
12039 if (PyErr_Occurred()) SWIG_fail;
12040 }
12041 {
12042 #if wxUSE_UNICODE
12043 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12044 #else
12045 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12046 #endif
12047 }
12048 return resultobj;
12049 fail:
12050 return NULL;
12051 }
12052
12053
12054 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12055 PyObject *resultobj = 0;
12056 wxFont *arg1 = (wxFont *) 0 ;
12057 int arg2 ;
12058 void *argp1 = 0 ;
12059 int res1 = 0 ;
12060 int val2 ;
12061 int ecode2 = 0 ;
12062 PyObject * obj0 = 0 ;
12063 PyObject * obj1 = 0 ;
12064 char * kwnames[] = {
12065 (char *) "self",(char *) "pointSize", NULL
12066 };
12067
12068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12070 if (!SWIG_IsOK(res1)) {
12071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
12072 }
12073 arg1 = reinterpret_cast< wxFont * >(argp1);
12074 ecode2 = SWIG_AsVal_int(obj1, &val2);
12075 if (!SWIG_IsOK(ecode2)) {
12076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12077 }
12078 arg2 = static_cast< int >(val2);
12079 {
12080 PyThreadState* __tstate = wxPyBeginAllowThreads();
12081 (arg1)->SetPointSize(arg2);
12082 wxPyEndAllowThreads(__tstate);
12083 if (PyErr_Occurred()) SWIG_fail;
12084 }
12085 resultobj = SWIG_Py_Void();
12086 return resultobj;
12087 fail:
12088 return NULL;
12089 }
12090
12091
12092 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12093 PyObject *resultobj = 0;
12094 wxFont *arg1 = (wxFont *) 0 ;
12095 wxSize *arg2 = 0 ;
12096 void *argp1 = 0 ;
12097 int res1 = 0 ;
12098 wxSize temp2 ;
12099 PyObject * obj0 = 0 ;
12100 PyObject * obj1 = 0 ;
12101 char * kwnames[] = {
12102 (char *) "self",(char *) "pixelSize", NULL
12103 };
12104
12105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12107 if (!SWIG_IsOK(res1)) {
12108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12109 }
12110 arg1 = reinterpret_cast< wxFont * >(argp1);
12111 {
12112 arg2 = &temp2;
12113 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12114 }
12115 {
12116 PyThreadState* __tstate = wxPyBeginAllowThreads();
12117 (arg1)->SetPixelSize((wxSize const &)*arg2);
12118 wxPyEndAllowThreads(__tstate);
12119 if (PyErr_Occurred()) SWIG_fail;
12120 }
12121 resultobj = SWIG_Py_Void();
12122 return resultobj;
12123 fail:
12124 return NULL;
12125 }
12126
12127
12128 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12129 PyObject *resultobj = 0;
12130 wxFont *arg1 = (wxFont *) 0 ;
12131 int arg2 ;
12132 void *argp1 = 0 ;
12133 int res1 = 0 ;
12134 int val2 ;
12135 int ecode2 = 0 ;
12136 PyObject * obj0 = 0 ;
12137 PyObject * obj1 = 0 ;
12138 char * kwnames[] = {
12139 (char *) "self",(char *) "family", NULL
12140 };
12141
12142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12144 if (!SWIG_IsOK(res1)) {
12145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12146 }
12147 arg1 = reinterpret_cast< wxFont * >(argp1);
12148 ecode2 = SWIG_AsVal_int(obj1, &val2);
12149 if (!SWIG_IsOK(ecode2)) {
12150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12151 }
12152 arg2 = static_cast< int >(val2);
12153 {
12154 PyThreadState* __tstate = wxPyBeginAllowThreads();
12155 (arg1)->SetFamily(arg2);
12156 wxPyEndAllowThreads(__tstate);
12157 if (PyErr_Occurred()) SWIG_fail;
12158 }
12159 resultobj = SWIG_Py_Void();
12160 return resultobj;
12161 fail:
12162 return NULL;
12163 }
12164
12165
12166 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12167 PyObject *resultobj = 0;
12168 wxFont *arg1 = (wxFont *) 0 ;
12169 int arg2 ;
12170 void *argp1 = 0 ;
12171 int res1 = 0 ;
12172 int val2 ;
12173 int ecode2 = 0 ;
12174 PyObject * obj0 = 0 ;
12175 PyObject * obj1 = 0 ;
12176 char * kwnames[] = {
12177 (char *) "self",(char *) "style", NULL
12178 };
12179
12180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12182 if (!SWIG_IsOK(res1)) {
12183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12184 }
12185 arg1 = reinterpret_cast< wxFont * >(argp1);
12186 ecode2 = SWIG_AsVal_int(obj1, &val2);
12187 if (!SWIG_IsOK(ecode2)) {
12188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12189 }
12190 arg2 = static_cast< int >(val2);
12191 {
12192 PyThreadState* __tstate = wxPyBeginAllowThreads();
12193 (arg1)->SetStyle(arg2);
12194 wxPyEndAllowThreads(__tstate);
12195 if (PyErr_Occurred()) SWIG_fail;
12196 }
12197 resultobj = SWIG_Py_Void();
12198 return resultobj;
12199 fail:
12200 return NULL;
12201 }
12202
12203
12204 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12205 PyObject *resultobj = 0;
12206 wxFont *arg1 = (wxFont *) 0 ;
12207 int arg2 ;
12208 void *argp1 = 0 ;
12209 int res1 = 0 ;
12210 int val2 ;
12211 int ecode2 = 0 ;
12212 PyObject * obj0 = 0 ;
12213 PyObject * obj1 = 0 ;
12214 char * kwnames[] = {
12215 (char *) "self",(char *) "weight", NULL
12216 };
12217
12218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12220 if (!SWIG_IsOK(res1)) {
12221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12222 }
12223 arg1 = reinterpret_cast< wxFont * >(argp1);
12224 ecode2 = SWIG_AsVal_int(obj1, &val2);
12225 if (!SWIG_IsOK(ecode2)) {
12226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12227 }
12228 arg2 = static_cast< int >(val2);
12229 {
12230 PyThreadState* __tstate = wxPyBeginAllowThreads();
12231 (arg1)->SetWeight(arg2);
12232 wxPyEndAllowThreads(__tstate);
12233 if (PyErr_Occurred()) SWIG_fail;
12234 }
12235 resultobj = SWIG_Py_Void();
12236 return resultobj;
12237 fail:
12238 return NULL;
12239 }
12240
12241
12242 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12243 PyObject *resultobj = 0;
12244 wxFont *arg1 = (wxFont *) 0 ;
12245 wxString *arg2 = 0 ;
12246 bool result;
12247 void *argp1 = 0 ;
12248 int res1 = 0 ;
12249 bool temp2 = false ;
12250 PyObject * obj0 = 0 ;
12251 PyObject * obj1 = 0 ;
12252 char * kwnames[] = {
12253 (char *) "self",(char *) "faceName", NULL
12254 };
12255
12256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12258 if (!SWIG_IsOK(res1)) {
12259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
12260 }
12261 arg1 = reinterpret_cast< wxFont * >(argp1);
12262 {
12263 arg2 = wxString_in_helper(obj1);
12264 if (arg2 == NULL) SWIG_fail;
12265 temp2 = true;
12266 }
12267 {
12268 PyThreadState* __tstate = wxPyBeginAllowThreads();
12269 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
12270 wxPyEndAllowThreads(__tstate);
12271 if (PyErr_Occurred()) SWIG_fail;
12272 }
12273 {
12274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12275 }
12276 {
12277 if (temp2)
12278 delete arg2;
12279 }
12280 return resultobj;
12281 fail:
12282 {
12283 if (temp2)
12284 delete arg2;
12285 }
12286 return NULL;
12287 }
12288
12289
12290 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12291 PyObject *resultobj = 0;
12292 wxFont *arg1 = (wxFont *) 0 ;
12293 bool arg2 ;
12294 void *argp1 = 0 ;
12295 int res1 = 0 ;
12296 bool val2 ;
12297 int ecode2 = 0 ;
12298 PyObject * obj0 = 0 ;
12299 PyObject * obj1 = 0 ;
12300 char * kwnames[] = {
12301 (char *) "self",(char *) "underlined", NULL
12302 };
12303
12304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12306 if (!SWIG_IsOK(res1)) {
12307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12308 }
12309 arg1 = reinterpret_cast< wxFont * >(argp1);
12310 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12311 if (!SWIG_IsOK(ecode2)) {
12312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12313 }
12314 arg2 = static_cast< bool >(val2);
12315 {
12316 PyThreadState* __tstate = wxPyBeginAllowThreads();
12317 (arg1)->SetUnderlined(arg2);
12318 wxPyEndAllowThreads(__tstate);
12319 if (PyErr_Occurred()) SWIG_fail;
12320 }
12321 resultobj = SWIG_Py_Void();
12322 return resultobj;
12323 fail:
12324 return NULL;
12325 }
12326
12327
12328 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12329 PyObject *resultobj = 0;
12330 wxFont *arg1 = (wxFont *) 0 ;
12331 wxFontEncoding arg2 ;
12332 void *argp1 = 0 ;
12333 int res1 = 0 ;
12334 int val2 ;
12335 int ecode2 = 0 ;
12336 PyObject * obj0 = 0 ;
12337 PyObject * obj1 = 0 ;
12338 char * kwnames[] = {
12339 (char *) "self",(char *) "encoding", NULL
12340 };
12341
12342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12344 if (!SWIG_IsOK(res1)) {
12345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
12346 }
12347 arg1 = reinterpret_cast< wxFont * >(argp1);
12348 ecode2 = SWIG_AsVal_int(obj1, &val2);
12349 if (!SWIG_IsOK(ecode2)) {
12350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12351 }
12352 arg2 = static_cast< wxFontEncoding >(val2);
12353 {
12354 PyThreadState* __tstate = wxPyBeginAllowThreads();
12355 (arg1)->SetEncoding(arg2);
12356 wxPyEndAllowThreads(__tstate);
12357 if (PyErr_Occurred()) SWIG_fail;
12358 }
12359 resultobj = SWIG_Py_Void();
12360 return resultobj;
12361 fail:
12362 return NULL;
12363 }
12364
12365
12366 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12367 PyObject *resultobj = 0;
12368 wxFont *arg1 = (wxFont *) 0 ;
12369 wxNativeFontInfo *arg2 = 0 ;
12370 void *argp1 = 0 ;
12371 int res1 = 0 ;
12372 void *argp2 = 0 ;
12373 int res2 = 0 ;
12374 PyObject * obj0 = 0 ;
12375 PyObject * obj1 = 0 ;
12376 char * kwnames[] = {
12377 (char *) "self",(char *) "info", NULL
12378 };
12379
12380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
12381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12382 if (!SWIG_IsOK(res1)) {
12383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
12384 }
12385 arg1 = reinterpret_cast< wxFont * >(argp1);
12386 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
12387 if (!SWIG_IsOK(res2)) {
12388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12389 }
12390 if (!argp2) {
12391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12392 }
12393 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
12394 {
12395 PyThreadState* __tstate = wxPyBeginAllowThreads();
12396 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
12397 wxPyEndAllowThreads(__tstate);
12398 if (PyErr_Occurred()) SWIG_fail;
12399 }
12400 resultobj = SWIG_Py_Void();
12401 return resultobj;
12402 fail:
12403 return NULL;
12404 }
12405
12406
12407 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12408 PyObject *resultobj = 0;
12409 wxFont *arg1 = (wxFont *) 0 ;
12410 wxString *arg2 = 0 ;
12411 bool result;
12412 void *argp1 = 0 ;
12413 int res1 = 0 ;
12414 bool temp2 = false ;
12415 PyObject * obj0 = 0 ;
12416 PyObject * obj1 = 0 ;
12417 char * kwnames[] = {
12418 (char *) "self",(char *) "info", NULL
12419 };
12420
12421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
12422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12423 if (!SWIG_IsOK(res1)) {
12424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
12425 }
12426 arg1 = reinterpret_cast< wxFont * >(argp1);
12427 {
12428 arg2 = wxString_in_helper(obj1);
12429 if (arg2 == NULL) SWIG_fail;
12430 temp2 = true;
12431 }
12432 {
12433 PyThreadState* __tstate = wxPyBeginAllowThreads();
12434 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
12435 wxPyEndAllowThreads(__tstate);
12436 if (PyErr_Occurred()) SWIG_fail;
12437 }
12438 {
12439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12440 }
12441 {
12442 if (temp2)
12443 delete arg2;
12444 }
12445 return resultobj;
12446 fail:
12447 {
12448 if (temp2)
12449 delete arg2;
12450 }
12451 return NULL;
12452 }
12453
12454
12455 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12456 PyObject *resultobj = 0;
12457 wxFont *arg1 = (wxFont *) 0 ;
12458 wxString *arg2 = 0 ;
12459 bool result;
12460 void *argp1 = 0 ;
12461 int res1 = 0 ;
12462 bool temp2 = false ;
12463 PyObject * obj0 = 0 ;
12464 PyObject * obj1 = 0 ;
12465 char * kwnames[] = {
12466 (char *) "self",(char *) "info", NULL
12467 };
12468
12469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
12470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12471 if (!SWIG_IsOK(res1)) {
12472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
12473 }
12474 arg1 = reinterpret_cast< wxFont * >(argp1);
12475 {
12476 arg2 = wxString_in_helper(obj1);
12477 if (arg2 == NULL) SWIG_fail;
12478 temp2 = true;
12479 }
12480 {
12481 PyThreadState* __tstate = wxPyBeginAllowThreads();
12482 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
12483 wxPyEndAllowThreads(__tstate);
12484 if (PyErr_Occurred()) SWIG_fail;
12485 }
12486 {
12487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12488 }
12489 {
12490 if (temp2)
12491 delete arg2;
12492 }
12493 return resultobj;
12494 fail:
12495 {
12496 if (temp2)
12497 delete arg2;
12498 }
12499 return NULL;
12500 }
12501
12502
12503 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12504 PyObject *resultobj = 0;
12505 wxFont *arg1 = (wxFont *) 0 ;
12506 wxString result;
12507 void *argp1 = 0 ;
12508 int res1 = 0 ;
12509 PyObject *swig_obj[1] ;
12510
12511 if (!args) SWIG_fail;
12512 swig_obj[0] = args;
12513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12514 if (!SWIG_IsOK(res1)) {
12515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
12516 }
12517 arg1 = reinterpret_cast< wxFont * >(argp1);
12518 {
12519 PyThreadState* __tstate = wxPyBeginAllowThreads();
12520 result = ((wxFont const *)arg1)->GetFamilyString();
12521 wxPyEndAllowThreads(__tstate);
12522 if (PyErr_Occurred()) SWIG_fail;
12523 }
12524 {
12525 #if wxUSE_UNICODE
12526 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12527 #else
12528 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12529 #endif
12530 }
12531 return resultobj;
12532 fail:
12533 return NULL;
12534 }
12535
12536
12537 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12538 PyObject *resultobj = 0;
12539 wxFont *arg1 = (wxFont *) 0 ;
12540 wxString result;
12541 void *argp1 = 0 ;
12542 int res1 = 0 ;
12543 PyObject *swig_obj[1] ;
12544
12545 if (!args) SWIG_fail;
12546 swig_obj[0] = args;
12547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12548 if (!SWIG_IsOK(res1)) {
12549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
12550 }
12551 arg1 = reinterpret_cast< wxFont * >(argp1);
12552 {
12553 PyThreadState* __tstate = wxPyBeginAllowThreads();
12554 result = ((wxFont const *)arg1)->GetStyleString();
12555 wxPyEndAllowThreads(__tstate);
12556 if (PyErr_Occurred()) SWIG_fail;
12557 }
12558 {
12559 #if wxUSE_UNICODE
12560 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12561 #else
12562 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12563 #endif
12564 }
12565 return resultobj;
12566 fail:
12567 return NULL;
12568 }
12569
12570
12571 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12572 PyObject *resultobj = 0;
12573 wxFont *arg1 = (wxFont *) 0 ;
12574 wxString result;
12575 void *argp1 = 0 ;
12576 int res1 = 0 ;
12577 PyObject *swig_obj[1] ;
12578
12579 if (!args) SWIG_fail;
12580 swig_obj[0] = args;
12581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12582 if (!SWIG_IsOK(res1)) {
12583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
12584 }
12585 arg1 = reinterpret_cast< wxFont * >(argp1);
12586 {
12587 PyThreadState* __tstate = wxPyBeginAllowThreads();
12588 result = ((wxFont const *)arg1)->GetWeightString();
12589 wxPyEndAllowThreads(__tstate);
12590 if (PyErr_Occurred()) SWIG_fail;
12591 }
12592 {
12593 #if wxUSE_UNICODE
12594 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12595 #else
12596 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12597 #endif
12598 }
12599 return resultobj;
12600 fail:
12601 return NULL;
12602 }
12603
12604
12605 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12606 PyObject *resultobj = 0;
12607 wxFont *arg1 = (wxFont *) 0 ;
12608 bool arg2 = (bool) true ;
12609 void *argp1 = 0 ;
12610 int res1 = 0 ;
12611 bool val2 ;
12612 int ecode2 = 0 ;
12613 PyObject * obj0 = 0 ;
12614 PyObject * obj1 = 0 ;
12615 char * kwnames[] = {
12616 (char *) "self",(char *) "no", NULL
12617 };
12618
12619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
12620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12621 if (!SWIG_IsOK(res1)) {
12622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
12623 }
12624 arg1 = reinterpret_cast< wxFont * >(argp1);
12625 if (obj1) {
12626 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12627 if (!SWIG_IsOK(ecode2)) {
12628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
12629 }
12630 arg2 = static_cast< bool >(val2);
12631 }
12632 {
12633 PyThreadState* __tstate = wxPyBeginAllowThreads();
12634 (arg1)->SetNoAntiAliasing(arg2);
12635 wxPyEndAllowThreads(__tstate);
12636 if (PyErr_Occurred()) SWIG_fail;
12637 }
12638 resultobj = SWIG_Py_Void();
12639 return resultobj;
12640 fail:
12641 return NULL;
12642 }
12643
12644
12645 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12646 PyObject *resultobj = 0;
12647 wxFont *arg1 = (wxFont *) 0 ;
12648 bool result;
12649 void *argp1 = 0 ;
12650 int res1 = 0 ;
12651 PyObject *swig_obj[1] ;
12652
12653 if (!args) SWIG_fail;
12654 swig_obj[0] = args;
12655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12656 if (!SWIG_IsOK(res1)) {
12657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
12658 }
12659 arg1 = reinterpret_cast< wxFont * >(argp1);
12660 {
12661 PyThreadState* __tstate = wxPyBeginAllowThreads();
12662 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
12663 wxPyEndAllowThreads(__tstate);
12664 if (PyErr_Occurred()) SWIG_fail;
12665 }
12666 {
12667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12668 }
12669 return resultobj;
12670 fail:
12671 return NULL;
12672 }
12673
12674
12675 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12676 PyObject *resultobj = 0;
12677 wxFontEncoding result;
12678
12679 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
12680 {
12681 if (!wxPyCheckForApp()) SWIG_fail;
12682 PyThreadState* __tstate = wxPyBeginAllowThreads();
12683 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
12684 wxPyEndAllowThreads(__tstate);
12685 if (PyErr_Occurred()) SWIG_fail;
12686 }
12687 resultobj = SWIG_From_int(static_cast< int >(result));
12688 return resultobj;
12689 fail:
12690 return NULL;
12691 }
12692
12693
12694 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12695 PyObject *resultobj = 0;
12696 wxFontEncoding arg1 ;
12697 int val1 ;
12698 int ecode1 = 0 ;
12699 PyObject * obj0 = 0 ;
12700 char * kwnames[] = {
12701 (char *) "encoding", NULL
12702 };
12703
12704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
12705 ecode1 = SWIG_AsVal_int(obj0, &val1);
12706 if (!SWIG_IsOK(ecode1)) {
12707 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12708 }
12709 arg1 = static_cast< wxFontEncoding >(val1);
12710 {
12711 if (!wxPyCheckForApp()) SWIG_fail;
12712 PyThreadState* __tstate = wxPyBeginAllowThreads();
12713 wxFont::SetDefaultEncoding(arg1);
12714 wxPyEndAllowThreads(__tstate);
12715 if (PyErr_Occurred()) SWIG_fail;
12716 }
12717 resultobj = SWIG_Py_Void();
12718 return resultobj;
12719 fail:
12720 return NULL;
12721 }
12722
12723
12724 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12725 PyObject *obj;
12726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12727 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
12728 return SWIG_Py_Void();
12729 }
12730
12731 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12732 return SWIG_Python_InitShadowInstance(args);
12733 }
12734
12735 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12736 PyObject *resultobj = 0;
12737 wxPyFontEnumerator *result = 0 ;
12738
12739 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
12740 {
12741 if (!wxPyCheckForApp()) SWIG_fail;
12742 PyThreadState* __tstate = wxPyBeginAllowThreads();
12743 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
12744 wxPyEndAllowThreads(__tstate);
12745 if (PyErr_Occurred()) SWIG_fail;
12746 }
12747 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
12748 return resultobj;
12749 fail:
12750 return NULL;
12751 }
12752
12753
12754 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12755 PyObject *resultobj = 0;
12756 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12757 void *argp1 = 0 ;
12758 int res1 = 0 ;
12759 PyObject *swig_obj[1] ;
12760
12761 if (!args) SWIG_fail;
12762 swig_obj[0] = args;
12763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
12764 if (!SWIG_IsOK(res1)) {
12765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12766 }
12767 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12768 {
12769 PyThreadState* __tstate = wxPyBeginAllowThreads();
12770 delete arg1;
12771
12772 wxPyEndAllowThreads(__tstate);
12773 if (PyErr_Occurred()) SWIG_fail;
12774 }
12775 resultobj = SWIG_Py_Void();
12776 return resultobj;
12777 fail:
12778 return NULL;
12779 }
12780
12781
12782 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12783 PyObject *resultobj = 0;
12784 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12785 PyObject *arg2 = (PyObject *) 0 ;
12786 PyObject *arg3 = (PyObject *) 0 ;
12787 bool arg4 ;
12788 void *argp1 = 0 ;
12789 int res1 = 0 ;
12790 bool val4 ;
12791 int ecode4 = 0 ;
12792 PyObject * obj0 = 0 ;
12793 PyObject * obj1 = 0 ;
12794 PyObject * obj2 = 0 ;
12795 PyObject * obj3 = 0 ;
12796 char * kwnames[] = {
12797 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
12798 };
12799
12800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12802 if (!SWIG_IsOK(res1)) {
12803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12804 }
12805 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12806 arg2 = obj1;
12807 arg3 = obj2;
12808 ecode4 = SWIG_AsVal_bool(obj3, &val4);
12809 if (!SWIG_IsOK(ecode4)) {
12810 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
12811 }
12812 arg4 = static_cast< bool >(val4);
12813 {
12814 PyThreadState* __tstate = wxPyBeginAllowThreads();
12815 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
12816 wxPyEndAllowThreads(__tstate);
12817 if (PyErr_Occurred()) SWIG_fail;
12818 }
12819 resultobj = SWIG_Py_Void();
12820 return resultobj;
12821 fail:
12822 return NULL;
12823 }
12824
12825
12826 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12827 PyObject *resultobj = 0;
12828 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12829 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
12830 bool arg3 = (bool) false ;
12831 bool result;
12832 void *argp1 = 0 ;
12833 int res1 = 0 ;
12834 int val2 ;
12835 int ecode2 = 0 ;
12836 bool val3 ;
12837 int ecode3 = 0 ;
12838 PyObject * obj0 = 0 ;
12839 PyObject * obj1 = 0 ;
12840 PyObject * obj2 = 0 ;
12841 char * kwnames[] = {
12842 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
12843 };
12844
12845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12847 if (!SWIG_IsOK(res1)) {
12848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12849 }
12850 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12851 if (obj1) {
12852 ecode2 = SWIG_AsVal_int(obj1, &val2);
12853 if (!SWIG_IsOK(ecode2)) {
12854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12855 }
12856 arg2 = static_cast< wxFontEncoding >(val2);
12857 }
12858 if (obj2) {
12859 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12860 if (!SWIG_IsOK(ecode3)) {
12861 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
12862 }
12863 arg3 = static_cast< bool >(val3);
12864 }
12865 {
12866 PyThreadState* __tstate = wxPyBeginAllowThreads();
12867 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
12868 wxPyEndAllowThreads(__tstate);
12869 if (PyErr_Occurred()) SWIG_fail;
12870 }
12871 {
12872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12873 }
12874 return resultobj;
12875 fail:
12876 return NULL;
12877 }
12878
12879
12880 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12881 PyObject *resultobj = 0;
12882 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12883 wxString const &arg2_defvalue = wxPyEmptyString ;
12884 wxString *arg2 = (wxString *) &arg2_defvalue ;
12885 bool result;
12886 void *argp1 = 0 ;
12887 int res1 = 0 ;
12888 bool temp2 = false ;
12889 PyObject * obj0 = 0 ;
12890 PyObject * obj1 = 0 ;
12891 char * kwnames[] = {
12892 (char *) "self",(char *) "facename", NULL
12893 };
12894
12895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
12896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12897 if (!SWIG_IsOK(res1)) {
12898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12899 }
12900 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12901 if (obj1) {
12902 {
12903 arg2 = wxString_in_helper(obj1);
12904 if (arg2 == NULL) SWIG_fail;
12905 temp2 = true;
12906 }
12907 }
12908 {
12909 PyThreadState* __tstate = wxPyBeginAllowThreads();
12910 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
12911 wxPyEndAllowThreads(__tstate);
12912 if (PyErr_Occurred()) SWIG_fail;
12913 }
12914 {
12915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12916 }
12917 {
12918 if (temp2)
12919 delete arg2;
12920 }
12921 return resultobj;
12922 fail:
12923 {
12924 if (temp2)
12925 delete arg2;
12926 }
12927 return NULL;
12928 }
12929
12930
12931 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12932 PyObject *resultobj = 0;
12933 PyObject *result = 0 ;
12934
12935 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
12936 {
12937 PyThreadState* __tstate = wxPyBeginAllowThreads();
12938 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
12939 wxPyEndAllowThreads(__tstate);
12940 if (PyErr_Occurred()) SWIG_fail;
12941 }
12942 resultobj = result;
12943 return resultobj;
12944 fail:
12945 return NULL;
12946 }
12947
12948
12949 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12950 PyObject *resultobj = 0;
12951 PyObject *result = 0 ;
12952
12953 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
12954 {
12955 PyThreadState* __tstate = wxPyBeginAllowThreads();
12956 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
12957 wxPyEndAllowThreads(__tstate);
12958 if (PyErr_Occurred()) SWIG_fail;
12959 }
12960 resultobj = result;
12961 return resultobj;
12962 fail:
12963 return NULL;
12964 }
12965
12966
12967 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12968 PyObject *resultobj = 0;
12969 wxString *arg1 = 0 ;
12970 bool result;
12971 bool temp1 = false ;
12972 PyObject * obj0 = 0 ;
12973 char * kwnames[] = {
12974 (char *) "str", NULL
12975 };
12976
12977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
12978 {
12979 arg1 = wxString_in_helper(obj0);
12980 if (arg1 == NULL) SWIG_fail;
12981 temp1 = true;
12982 }
12983 {
12984 PyThreadState* __tstate = wxPyBeginAllowThreads();
12985 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
12986 wxPyEndAllowThreads(__tstate);
12987 if (PyErr_Occurred()) SWIG_fail;
12988 }
12989 {
12990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12991 }
12992 {
12993 if (temp1)
12994 delete arg1;
12995 }
12996 return resultobj;
12997 fail:
12998 {
12999 if (temp1)
13000 delete arg1;
13001 }
13002 return NULL;
13003 }
13004
13005
13006 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13007 PyObject *obj;
13008 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13009 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
13010 return SWIG_Py_Void();
13011 }
13012
13013 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13014 return SWIG_Python_InitShadowInstance(args);
13015 }
13016
13017 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13018 PyObject *resultobj = 0;
13019 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13020 int arg2 ;
13021 void *argp1 = 0 ;
13022 int res1 = 0 ;
13023 int val2 ;
13024 int ecode2 = 0 ;
13025 PyObject *swig_obj[2] ;
13026
13027 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
13028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13029 if (!SWIG_IsOK(res1)) {
13030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13031 }
13032 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13033 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13034 if (!SWIG_IsOK(ecode2)) {
13035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
13036 }
13037 arg2 = static_cast< int >(val2);
13038 if (arg1) (arg1)->Language = arg2;
13039
13040 resultobj = SWIG_Py_Void();
13041 return resultobj;
13042 fail:
13043 return NULL;
13044 }
13045
13046
13047 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13048 PyObject *resultobj = 0;
13049 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13050 int result;
13051 void *argp1 = 0 ;
13052 int res1 = 0 ;
13053 PyObject *swig_obj[1] ;
13054
13055 if (!args) SWIG_fail;
13056 swig_obj[0] = args;
13057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13058 if (!SWIG_IsOK(res1)) {
13059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13060 }
13061 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13062 result = (int) ((arg1)->Language);
13063 resultobj = SWIG_From_int(static_cast< int >(result));
13064 return resultobj;
13065 fail:
13066 return NULL;
13067 }
13068
13069
13070 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13071 PyObject *resultobj = 0;
13072 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13073 wxString *arg2 = (wxString *) 0 ;
13074 void *argp1 = 0 ;
13075 int res1 = 0 ;
13076 bool temp2 = false ;
13077 PyObject *swig_obj[2] ;
13078
13079 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
13080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13081 if (!SWIG_IsOK(res1)) {
13082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13083 }
13084 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13085 {
13086 arg2 = wxString_in_helper(swig_obj[1]);
13087 if (arg2 == NULL) SWIG_fail;
13088 temp2 = true;
13089 }
13090 if (arg1) (arg1)->CanonicalName = *arg2;
13091
13092 resultobj = SWIG_Py_Void();
13093 {
13094 if (temp2)
13095 delete arg2;
13096 }
13097 return resultobj;
13098 fail:
13099 {
13100 if (temp2)
13101 delete arg2;
13102 }
13103 return NULL;
13104 }
13105
13106
13107 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13108 PyObject *resultobj = 0;
13109 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13110 wxString *result = 0 ;
13111 void *argp1 = 0 ;
13112 int res1 = 0 ;
13113 PyObject *swig_obj[1] ;
13114
13115 if (!args) SWIG_fail;
13116 swig_obj[0] = args;
13117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13118 if (!SWIG_IsOK(res1)) {
13119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13120 }
13121 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13122 result = (wxString *)& ((arg1)->CanonicalName);
13123 {
13124 #if wxUSE_UNICODE
13125 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13126 #else
13127 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13128 #endif
13129 }
13130 return resultobj;
13131 fail:
13132 return NULL;
13133 }
13134
13135
13136 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13137 PyObject *resultobj = 0;
13138 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13139 wxString *arg2 = (wxString *) 0 ;
13140 void *argp1 = 0 ;
13141 int res1 = 0 ;
13142 bool temp2 = false ;
13143 PyObject *swig_obj[2] ;
13144
13145 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
13146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13147 if (!SWIG_IsOK(res1)) {
13148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13149 }
13150 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13151 {
13152 arg2 = wxString_in_helper(swig_obj[1]);
13153 if (arg2 == NULL) SWIG_fail;
13154 temp2 = true;
13155 }
13156 if (arg1) (arg1)->Description = *arg2;
13157
13158 resultobj = SWIG_Py_Void();
13159 {
13160 if (temp2)
13161 delete arg2;
13162 }
13163 return resultobj;
13164 fail:
13165 {
13166 if (temp2)
13167 delete arg2;
13168 }
13169 return NULL;
13170 }
13171
13172
13173 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13174 PyObject *resultobj = 0;
13175 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13176 wxString *result = 0 ;
13177 void *argp1 = 0 ;
13178 int res1 = 0 ;
13179 PyObject *swig_obj[1] ;
13180
13181 if (!args) SWIG_fail;
13182 swig_obj[0] = args;
13183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13184 if (!SWIG_IsOK(res1)) {
13185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13186 }
13187 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13188 result = (wxString *)& ((arg1)->Description);
13189 {
13190 #if wxUSE_UNICODE
13191 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13192 #else
13193 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13194 #endif
13195 }
13196 return resultobj;
13197 fail:
13198 return NULL;
13199 }
13200
13201
13202 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13203 PyObject *obj;
13204 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13205 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
13206 return SWIG_Py_Void();
13207 }
13208
13209 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13210 PyObject *resultobj = 0;
13211 int arg1 = (int) -1 ;
13212 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13213 wxLocale *result = 0 ;
13214 int val1 ;
13215 int ecode1 = 0 ;
13216 int val2 ;
13217 int ecode2 = 0 ;
13218 PyObject * obj0 = 0 ;
13219 PyObject * obj1 = 0 ;
13220 char * kwnames[] = {
13221 (char *) "language",(char *) "flags", NULL
13222 };
13223
13224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
13225 if (obj0) {
13226 ecode1 = SWIG_AsVal_int(obj0, &val1);
13227 if (!SWIG_IsOK(ecode1)) {
13228 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13229 }
13230 arg1 = static_cast< int >(val1);
13231 }
13232 if (obj1) {
13233 ecode2 = SWIG_AsVal_int(obj1, &val2);
13234 if (!SWIG_IsOK(ecode2)) {
13235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13236 }
13237 arg2 = static_cast< int >(val2);
13238 }
13239 {
13240 PyThreadState* __tstate = wxPyBeginAllowThreads();
13241 result = (wxLocale *)new_wxLocale(arg1,arg2);
13242 wxPyEndAllowThreads(__tstate);
13243 if (PyErr_Occurred()) SWIG_fail;
13244 }
13245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
13246 return resultobj;
13247 fail:
13248 return NULL;
13249 }
13250
13251
13252 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13253 PyObject *resultobj = 0;
13254 wxLocale *arg1 = (wxLocale *) 0 ;
13255 void *argp1 = 0 ;
13256 int res1 = 0 ;
13257 PyObject *swig_obj[1] ;
13258
13259 if (!args) SWIG_fail;
13260 swig_obj[0] = args;
13261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
13262 if (!SWIG_IsOK(res1)) {
13263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13264 }
13265 arg1 = reinterpret_cast< wxLocale * >(argp1);
13266 {
13267 PyThreadState* __tstate = wxPyBeginAllowThreads();
13268 delete arg1;
13269
13270 wxPyEndAllowThreads(__tstate);
13271 if (PyErr_Occurred()) SWIG_fail;
13272 }
13273 resultobj = SWIG_Py_Void();
13274 return resultobj;
13275 fail:
13276 return NULL;
13277 }
13278
13279
13280 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13281 PyObject *resultobj = 0;
13282 wxLocale *arg1 = (wxLocale *) 0 ;
13283 wxString *arg2 = 0 ;
13284 wxString const &arg3_defvalue = wxPyEmptyString ;
13285 wxString *arg3 = (wxString *) &arg3_defvalue ;
13286 wxString const &arg4_defvalue = wxPyEmptyString ;
13287 wxString *arg4 = (wxString *) &arg4_defvalue ;
13288 bool arg5 = (bool) true ;
13289 bool arg6 = (bool) false ;
13290 bool result;
13291 void *argp1 = 0 ;
13292 int res1 = 0 ;
13293 bool temp2 = false ;
13294 bool temp3 = false ;
13295 bool temp4 = false ;
13296 bool val5 ;
13297 int ecode5 = 0 ;
13298 bool val6 ;
13299 int ecode6 = 0 ;
13300 PyObject * obj0 = 0 ;
13301 PyObject * obj1 = 0 ;
13302 PyObject * obj2 = 0 ;
13303 PyObject * obj3 = 0 ;
13304 PyObject * obj4 = 0 ;
13305 PyObject * obj5 = 0 ;
13306 char * kwnames[] = {
13307 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13308 };
13309
13310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13312 if (!SWIG_IsOK(res1)) {
13313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13314 }
13315 arg1 = reinterpret_cast< wxLocale * >(argp1);
13316 {
13317 arg2 = wxString_in_helper(obj1);
13318 if (arg2 == NULL) SWIG_fail;
13319 temp2 = true;
13320 }
13321 if (obj2) {
13322 {
13323 arg3 = wxString_in_helper(obj2);
13324 if (arg3 == NULL) SWIG_fail;
13325 temp3 = true;
13326 }
13327 }
13328 if (obj3) {
13329 {
13330 arg4 = wxString_in_helper(obj3);
13331 if (arg4 == NULL) SWIG_fail;
13332 temp4 = true;
13333 }
13334 }
13335 if (obj4) {
13336 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13337 if (!SWIG_IsOK(ecode5)) {
13338 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
13339 }
13340 arg5 = static_cast< bool >(val5);
13341 }
13342 if (obj5) {
13343 ecode6 = SWIG_AsVal_bool(obj5, &val6);
13344 if (!SWIG_IsOK(ecode6)) {
13345 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
13346 }
13347 arg6 = static_cast< bool >(val6);
13348 }
13349 {
13350 PyThreadState* __tstate = wxPyBeginAllowThreads();
13351 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
13352 wxPyEndAllowThreads(__tstate);
13353 if (PyErr_Occurred()) SWIG_fail;
13354 }
13355 {
13356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13357 }
13358 {
13359 if (temp2)
13360 delete arg2;
13361 }
13362 {
13363 if (temp3)
13364 delete arg3;
13365 }
13366 {
13367 if (temp4)
13368 delete arg4;
13369 }
13370 return resultobj;
13371 fail:
13372 {
13373 if (temp2)
13374 delete arg2;
13375 }
13376 {
13377 if (temp3)
13378 delete arg3;
13379 }
13380 {
13381 if (temp4)
13382 delete arg4;
13383 }
13384 return NULL;
13385 }
13386
13387
13388 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13389 PyObject *resultobj = 0;
13390 wxLocale *arg1 = (wxLocale *) 0 ;
13391 int arg2 = (int) wxLANGUAGE_DEFAULT ;
13392 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13393 bool result;
13394 void *argp1 = 0 ;
13395 int res1 = 0 ;
13396 int val2 ;
13397 int ecode2 = 0 ;
13398 int val3 ;
13399 int ecode3 = 0 ;
13400 PyObject * obj0 = 0 ;
13401 PyObject * obj1 = 0 ;
13402 PyObject * obj2 = 0 ;
13403 char * kwnames[] = {
13404 (char *) "self",(char *) "language",(char *) "flags", NULL
13405 };
13406
13407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13409 if (!SWIG_IsOK(res1)) {
13410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
13411 }
13412 arg1 = reinterpret_cast< wxLocale * >(argp1);
13413 if (obj1) {
13414 ecode2 = SWIG_AsVal_int(obj1, &val2);
13415 if (!SWIG_IsOK(ecode2)) {
13416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
13417 }
13418 arg2 = static_cast< int >(val2);
13419 }
13420 if (obj2) {
13421 ecode3 = SWIG_AsVal_int(obj2, &val3);
13422 if (!SWIG_IsOK(ecode3)) {
13423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
13424 }
13425 arg3 = static_cast< int >(val3);
13426 }
13427 {
13428 PyThreadState* __tstate = wxPyBeginAllowThreads();
13429 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
13430 wxPyEndAllowThreads(__tstate);
13431 if (PyErr_Occurred()) SWIG_fail;
13432 }
13433 {
13434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13435 }
13436 return resultobj;
13437 fail:
13438 return NULL;
13439 }
13440
13441
13442 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13443 PyObject *resultobj = 0;
13444 int result;
13445
13446 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
13447 {
13448 PyThreadState* __tstate = wxPyBeginAllowThreads();
13449 result = (int)wxLocale::GetSystemLanguage();
13450 wxPyEndAllowThreads(__tstate);
13451 if (PyErr_Occurred()) SWIG_fail;
13452 }
13453 resultobj = SWIG_From_int(static_cast< int >(result));
13454 return resultobj;
13455 fail:
13456 return NULL;
13457 }
13458
13459
13460 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13461 PyObject *resultobj = 0;
13462 wxFontEncoding result;
13463
13464 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
13465 {
13466 PyThreadState* __tstate = wxPyBeginAllowThreads();
13467 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
13468 wxPyEndAllowThreads(__tstate);
13469 if (PyErr_Occurred()) SWIG_fail;
13470 }
13471 resultobj = SWIG_From_int(static_cast< int >(result));
13472 return resultobj;
13473 fail:
13474 return NULL;
13475 }
13476
13477
13478 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13479 PyObject *resultobj = 0;
13480 wxString result;
13481
13482 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
13483 {
13484 PyThreadState* __tstate = wxPyBeginAllowThreads();
13485 result = wxLocale::GetSystemEncodingName();
13486 wxPyEndAllowThreads(__tstate);
13487 if (PyErr_Occurred()) SWIG_fail;
13488 }
13489 {
13490 #if wxUSE_UNICODE
13491 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13492 #else
13493 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13494 #endif
13495 }
13496 return resultobj;
13497 fail:
13498 return NULL;
13499 }
13500
13501
13502 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13503 PyObject *resultobj = 0;
13504 wxLocale *arg1 = (wxLocale *) 0 ;
13505 bool result;
13506 void *argp1 = 0 ;
13507 int res1 = 0 ;
13508 PyObject *swig_obj[1] ;
13509
13510 if (!args) SWIG_fail;
13511 swig_obj[0] = args;
13512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13513 if (!SWIG_IsOK(res1)) {
13514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
13515 }
13516 arg1 = reinterpret_cast< wxLocale * >(argp1);
13517 {
13518 PyThreadState* __tstate = wxPyBeginAllowThreads();
13519 result = (bool)((wxLocale const *)arg1)->IsOk();
13520 wxPyEndAllowThreads(__tstate);
13521 if (PyErr_Occurred()) SWIG_fail;
13522 }
13523 {
13524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13525 }
13526 return resultobj;
13527 fail:
13528 return NULL;
13529 }
13530
13531
13532 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13533 PyObject *resultobj = 0;
13534 wxLocale *arg1 = (wxLocale *) 0 ;
13535 wxString result;
13536 void *argp1 = 0 ;
13537 int res1 = 0 ;
13538 PyObject *swig_obj[1] ;
13539
13540 if (!args) SWIG_fail;
13541 swig_obj[0] = args;
13542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13543 if (!SWIG_IsOK(res1)) {
13544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
13545 }
13546 arg1 = reinterpret_cast< wxLocale * >(argp1);
13547 {
13548 PyThreadState* __tstate = wxPyBeginAllowThreads();
13549 result = ((wxLocale const *)arg1)->GetLocale();
13550 wxPyEndAllowThreads(__tstate);
13551 if (PyErr_Occurred()) SWIG_fail;
13552 }
13553 {
13554 #if wxUSE_UNICODE
13555 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13556 #else
13557 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13558 #endif
13559 }
13560 return resultobj;
13561 fail:
13562 return NULL;
13563 }
13564
13565
13566 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13567 PyObject *resultobj = 0;
13568 wxLocale *arg1 = (wxLocale *) 0 ;
13569 int result;
13570 void *argp1 = 0 ;
13571 int res1 = 0 ;
13572 PyObject *swig_obj[1] ;
13573
13574 if (!args) SWIG_fail;
13575 swig_obj[0] = args;
13576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13577 if (!SWIG_IsOK(res1)) {
13578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
13579 }
13580 arg1 = reinterpret_cast< wxLocale * >(argp1);
13581 {
13582 PyThreadState* __tstate = wxPyBeginAllowThreads();
13583 result = (int)((wxLocale const *)arg1)->GetLanguage();
13584 wxPyEndAllowThreads(__tstate);
13585 if (PyErr_Occurred()) SWIG_fail;
13586 }
13587 resultobj = SWIG_From_int(static_cast< int >(result));
13588 return resultobj;
13589 fail:
13590 return NULL;
13591 }
13592
13593
13594 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13595 PyObject *resultobj = 0;
13596 wxLocale *arg1 = (wxLocale *) 0 ;
13597 wxString result;
13598 void *argp1 = 0 ;
13599 int res1 = 0 ;
13600 PyObject *swig_obj[1] ;
13601
13602 if (!args) SWIG_fail;
13603 swig_obj[0] = args;
13604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13605 if (!SWIG_IsOK(res1)) {
13606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13607 }
13608 arg1 = reinterpret_cast< wxLocale * >(argp1);
13609 {
13610 PyThreadState* __tstate = wxPyBeginAllowThreads();
13611 result = ((wxLocale const *)arg1)->GetSysName();
13612 wxPyEndAllowThreads(__tstate);
13613 if (PyErr_Occurred()) SWIG_fail;
13614 }
13615 {
13616 #if wxUSE_UNICODE
13617 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13618 #else
13619 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13620 #endif
13621 }
13622 return resultobj;
13623 fail:
13624 return NULL;
13625 }
13626
13627
13628 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13629 PyObject *resultobj = 0;
13630 wxLocale *arg1 = (wxLocale *) 0 ;
13631 wxString result;
13632 void *argp1 = 0 ;
13633 int res1 = 0 ;
13634 PyObject *swig_obj[1] ;
13635
13636 if (!args) SWIG_fail;
13637 swig_obj[0] = args;
13638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13639 if (!SWIG_IsOK(res1)) {
13640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13641 }
13642 arg1 = reinterpret_cast< wxLocale * >(argp1);
13643 {
13644 PyThreadState* __tstate = wxPyBeginAllowThreads();
13645 result = ((wxLocale const *)arg1)->GetCanonicalName();
13646 wxPyEndAllowThreads(__tstate);
13647 if (PyErr_Occurred()) SWIG_fail;
13648 }
13649 {
13650 #if wxUSE_UNICODE
13651 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13652 #else
13653 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13654 #endif
13655 }
13656 return resultobj;
13657 fail:
13658 return NULL;
13659 }
13660
13661
13662 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13663 PyObject *resultobj = 0;
13664 wxString *arg1 = 0 ;
13665 bool temp1 = false ;
13666 PyObject * obj0 = 0 ;
13667 char * kwnames[] = {
13668 (char *) "prefix", NULL
13669 };
13670
13671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
13672 {
13673 arg1 = wxString_in_helper(obj0);
13674 if (arg1 == NULL) SWIG_fail;
13675 temp1 = true;
13676 }
13677 {
13678 PyThreadState* __tstate = wxPyBeginAllowThreads();
13679 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
13680 wxPyEndAllowThreads(__tstate);
13681 if (PyErr_Occurred()) SWIG_fail;
13682 }
13683 resultobj = SWIG_Py_Void();
13684 {
13685 if (temp1)
13686 delete arg1;
13687 }
13688 return resultobj;
13689 fail:
13690 {
13691 if (temp1)
13692 delete arg1;
13693 }
13694 return NULL;
13695 }
13696
13697
13698 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13699 PyObject *resultobj = 0;
13700 wxLocale *arg1 = (wxLocale *) 0 ;
13701 wxString *arg2 = 0 ;
13702 bool result;
13703 void *argp1 = 0 ;
13704 int res1 = 0 ;
13705 bool temp2 = false ;
13706 PyObject * obj0 = 0 ;
13707 PyObject * obj1 = 0 ;
13708 char * kwnames[] = {
13709 (char *) "self",(char *) "szDomain", NULL
13710 };
13711
13712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
13713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13714 if (!SWIG_IsOK(res1)) {
13715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
13716 }
13717 arg1 = reinterpret_cast< wxLocale * >(argp1);
13718 {
13719 arg2 = wxString_in_helper(obj1);
13720 if (arg2 == NULL) SWIG_fail;
13721 temp2 = true;
13722 }
13723 {
13724 PyThreadState* __tstate = wxPyBeginAllowThreads();
13725 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
13726 wxPyEndAllowThreads(__tstate);
13727 if (PyErr_Occurred()) SWIG_fail;
13728 }
13729 {
13730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13731 }
13732 {
13733 if (temp2)
13734 delete arg2;
13735 }
13736 return resultobj;
13737 fail:
13738 {
13739 if (temp2)
13740 delete arg2;
13741 }
13742 return NULL;
13743 }
13744
13745
13746 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13747 PyObject *resultobj = 0;
13748 wxLocale *arg1 = (wxLocale *) 0 ;
13749 wxString *arg2 = 0 ;
13750 bool result;
13751 void *argp1 = 0 ;
13752 int res1 = 0 ;
13753 bool temp2 = false ;
13754 PyObject * obj0 = 0 ;
13755 PyObject * obj1 = 0 ;
13756 char * kwnames[] = {
13757 (char *) "self",(char *) "szDomain", NULL
13758 };
13759
13760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
13761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13762 if (!SWIG_IsOK(res1)) {
13763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
13764 }
13765 arg1 = reinterpret_cast< wxLocale * >(argp1);
13766 {
13767 arg2 = wxString_in_helper(obj1);
13768 if (arg2 == NULL) SWIG_fail;
13769 temp2 = true;
13770 }
13771 {
13772 PyThreadState* __tstate = wxPyBeginAllowThreads();
13773 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
13774 wxPyEndAllowThreads(__tstate);
13775 if (PyErr_Occurred()) SWIG_fail;
13776 }
13777 {
13778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13779 }
13780 {
13781 if (temp2)
13782 delete arg2;
13783 }
13784 return resultobj;
13785 fail:
13786 {
13787 if (temp2)
13788 delete arg2;
13789 }
13790 return NULL;
13791 }
13792
13793
13794 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13795 PyObject *resultobj = 0;
13796 int arg1 ;
13797 wxLanguageInfo *result = 0 ;
13798 int val1 ;
13799 int ecode1 = 0 ;
13800 PyObject * obj0 = 0 ;
13801 char * kwnames[] = {
13802 (char *) "lang", NULL
13803 };
13804
13805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
13806 ecode1 = SWIG_AsVal_int(obj0, &val1);
13807 if (!SWIG_IsOK(ecode1)) {
13808 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
13809 }
13810 arg1 = static_cast< int >(val1);
13811 {
13812 PyThreadState* __tstate = wxPyBeginAllowThreads();
13813 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
13814 wxPyEndAllowThreads(__tstate);
13815 if (PyErr_Occurred()) SWIG_fail;
13816 }
13817 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13818 return resultobj;
13819 fail:
13820 return NULL;
13821 }
13822
13823
13824 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13825 PyObject *resultobj = 0;
13826 int arg1 ;
13827 wxString result;
13828 int val1 ;
13829 int ecode1 = 0 ;
13830 PyObject * obj0 = 0 ;
13831 char * kwnames[] = {
13832 (char *) "lang", NULL
13833 };
13834
13835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
13836 ecode1 = SWIG_AsVal_int(obj0, &val1);
13837 if (!SWIG_IsOK(ecode1)) {
13838 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
13839 }
13840 arg1 = static_cast< int >(val1);
13841 {
13842 PyThreadState* __tstate = wxPyBeginAllowThreads();
13843 result = wxLocale::GetLanguageName(arg1);
13844 wxPyEndAllowThreads(__tstate);
13845 if (PyErr_Occurred()) SWIG_fail;
13846 }
13847 {
13848 #if wxUSE_UNICODE
13849 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13850 #else
13851 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13852 #endif
13853 }
13854 return resultobj;
13855 fail:
13856 return NULL;
13857 }
13858
13859
13860 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13861 PyObject *resultobj = 0;
13862 wxString *arg1 = 0 ;
13863 wxLanguageInfo *result = 0 ;
13864 bool temp1 = false ;
13865 PyObject * obj0 = 0 ;
13866 char * kwnames[] = {
13867 (char *) "locale", NULL
13868 };
13869
13870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
13871 {
13872 arg1 = wxString_in_helper(obj0);
13873 if (arg1 == NULL) SWIG_fail;
13874 temp1 = true;
13875 }
13876 {
13877 PyThreadState* __tstate = wxPyBeginAllowThreads();
13878 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
13879 wxPyEndAllowThreads(__tstate);
13880 if (PyErr_Occurred()) SWIG_fail;
13881 }
13882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13883 {
13884 if (temp1)
13885 delete arg1;
13886 }
13887 return resultobj;
13888 fail:
13889 {
13890 if (temp1)
13891 delete arg1;
13892 }
13893 return NULL;
13894 }
13895
13896
13897 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13898 PyObject *resultobj = 0;
13899 wxLanguageInfo *arg1 = 0 ;
13900 void *argp1 = 0 ;
13901 int res1 = 0 ;
13902 PyObject * obj0 = 0 ;
13903 char * kwnames[] = {
13904 (char *) "info", NULL
13905 };
13906
13907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
13908 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
13909 if (!SWIG_IsOK(res1)) {
13910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13911 }
13912 if (!argp1) {
13913 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13914 }
13915 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13916 {
13917 PyThreadState* __tstate = wxPyBeginAllowThreads();
13918 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
13919 wxPyEndAllowThreads(__tstate);
13920 if (PyErr_Occurred()) SWIG_fail;
13921 }
13922 resultobj = SWIG_Py_Void();
13923 return resultobj;
13924 fail:
13925 return NULL;
13926 }
13927
13928
13929 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13930 PyObject *resultobj = 0;
13931 wxLocale *arg1 = (wxLocale *) 0 ;
13932 wxString *arg2 = 0 ;
13933 wxString const &arg3_defvalue = wxPyEmptyString ;
13934 wxString *arg3 = (wxString *) &arg3_defvalue ;
13935 wxString result;
13936 void *argp1 = 0 ;
13937 int res1 = 0 ;
13938 bool temp2 = false ;
13939 bool temp3 = false ;
13940 PyObject * obj0 = 0 ;
13941 PyObject * obj1 = 0 ;
13942 PyObject * obj2 = 0 ;
13943 char * kwnames[] = {
13944 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
13945 };
13946
13947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13949 if (!SWIG_IsOK(res1)) {
13950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
13951 }
13952 arg1 = reinterpret_cast< wxLocale * >(argp1);
13953 {
13954 arg2 = wxString_in_helper(obj1);
13955 if (arg2 == NULL) SWIG_fail;
13956 temp2 = true;
13957 }
13958 if (obj2) {
13959 {
13960 arg3 = wxString_in_helper(obj2);
13961 if (arg3 == NULL) SWIG_fail;
13962 temp3 = true;
13963 }
13964 }
13965 {
13966 PyThreadState* __tstate = wxPyBeginAllowThreads();
13967 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
13968 wxPyEndAllowThreads(__tstate);
13969 if (PyErr_Occurred()) SWIG_fail;
13970 }
13971 {
13972 #if wxUSE_UNICODE
13973 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13974 #else
13975 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13976 #endif
13977 }
13978 {
13979 if (temp2)
13980 delete arg2;
13981 }
13982 {
13983 if (temp3)
13984 delete arg3;
13985 }
13986 return resultobj;
13987 fail:
13988 {
13989 if (temp2)
13990 delete arg2;
13991 }
13992 {
13993 if (temp3)
13994 delete arg3;
13995 }
13996 return NULL;
13997 }
13998
13999
14000 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14001 PyObject *resultobj = 0;
14002 wxLocale *arg1 = (wxLocale *) 0 ;
14003 wxString *result = 0 ;
14004 void *argp1 = 0 ;
14005 int res1 = 0 ;
14006 PyObject *swig_obj[1] ;
14007
14008 if (!args) SWIG_fail;
14009 swig_obj[0] = args;
14010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14011 if (!SWIG_IsOK(res1)) {
14012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14013 }
14014 arg1 = reinterpret_cast< wxLocale * >(argp1);
14015 {
14016 PyThreadState* __tstate = wxPyBeginAllowThreads();
14017 {
14018 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
14019 result = (wxString *) &_result_ref;
14020 }
14021 wxPyEndAllowThreads(__tstate);
14022 if (PyErr_Occurred()) SWIG_fail;
14023 }
14024 {
14025 #if wxUSE_UNICODE
14026 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14027 #else
14028 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14029 #endif
14030 }
14031 return resultobj;
14032 fail:
14033 return NULL;
14034 }
14035
14036
14037 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14038 PyObject *obj;
14039 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14040 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
14041 return SWIG_Py_Void();
14042 }
14043
14044 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14045 return SWIG_Python_InitShadowInstance(args);
14046 }
14047
14048 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14049 PyObject *resultobj = 0;
14050 wxLocale *result = 0 ;
14051
14052 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
14053 {
14054 PyThreadState* __tstate = wxPyBeginAllowThreads();
14055 result = (wxLocale *)wxGetLocale();
14056 wxPyEndAllowThreads(__tstate);
14057 if (PyErr_Occurred()) SWIG_fail;
14058 }
14059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
14060 return resultobj;
14061 fail:
14062 return NULL;
14063 }
14064
14065
14066 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14067 PyObject *resultobj = 0;
14068 wxString *arg1 = 0 ;
14069 wxString result;
14070 bool temp1 = false ;
14071
14072 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14073 {
14074 arg1 = wxString_in_helper(swig_obj[0]);
14075 if (arg1 == NULL) SWIG_fail;
14076 temp1 = true;
14077 }
14078 {
14079 PyThreadState* __tstate = wxPyBeginAllowThreads();
14080 result = wxGetTranslation((wxString const &)*arg1);
14081 wxPyEndAllowThreads(__tstate);
14082 if (PyErr_Occurred()) SWIG_fail;
14083 }
14084 {
14085 #if wxUSE_UNICODE
14086 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14087 #else
14088 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14089 #endif
14090 }
14091 {
14092 if (temp1)
14093 delete arg1;
14094 }
14095 return resultobj;
14096 fail:
14097 {
14098 if (temp1)
14099 delete arg1;
14100 }
14101 return NULL;
14102 }
14103
14104
14105 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14106 PyObject *resultobj = 0;
14107 wxString *arg1 = 0 ;
14108 wxString *arg2 = 0 ;
14109 size_t arg3 ;
14110 wxString result;
14111 bool temp1 = false ;
14112 bool temp2 = false ;
14113 size_t val3 ;
14114 int ecode3 = 0 ;
14115
14116 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14117 {
14118 arg1 = wxString_in_helper(swig_obj[0]);
14119 if (arg1 == NULL) SWIG_fail;
14120 temp1 = true;
14121 }
14122 {
14123 arg2 = wxString_in_helper(swig_obj[1]);
14124 if (arg2 == NULL) SWIG_fail;
14125 temp2 = true;
14126 }
14127 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
14128 if (!SWIG_IsOK(ecode3)) {
14129 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14130 }
14131 arg3 = static_cast< size_t >(val3);
14132 {
14133 PyThreadState* __tstate = wxPyBeginAllowThreads();
14134 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
14135 wxPyEndAllowThreads(__tstate);
14136 if (PyErr_Occurred()) SWIG_fail;
14137 }
14138 {
14139 #if wxUSE_UNICODE
14140 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14141 #else
14142 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14143 #endif
14144 }
14145 {
14146 if (temp1)
14147 delete arg1;
14148 }
14149 {
14150 if (temp2)
14151 delete arg2;
14152 }
14153 return resultobj;
14154 fail:
14155 {
14156 if (temp1)
14157 delete arg1;
14158 }
14159 {
14160 if (temp2)
14161 delete arg2;
14162 }
14163 return NULL;
14164 }
14165
14166
14167 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
14168 int argc;
14169 PyObject *argv[4];
14170
14171 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail;
14172 --argc;
14173 if (argc == 1) {
14174 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
14175 }
14176 if (argc == 3) {
14177 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
14178 }
14179
14180 fail:
14181 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
14182 return NULL;
14183 }
14184
14185
14186 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14187 PyObject *resultobj = 0;
14188 wxEncodingConverter *result = 0 ;
14189
14190 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
14191 {
14192 PyThreadState* __tstate = wxPyBeginAllowThreads();
14193 result = (wxEncodingConverter *)new wxEncodingConverter();
14194 wxPyEndAllowThreads(__tstate);
14195 if (PyErr_Occurred()) SWIG_fail;
14196 }
14197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
14198 return resultobj;
14199 fail:
14200 return NULL;
14201 }
14202
14203
14204 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14205 PyObject *resultobj = 0;
14206 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14207 void *argp1 = 0 ;
14208 int res1 = 0 ;
14209 PyObject *swig_obj[1] ;
14210
14211 if (!args) SWIG_fail;
14212 swig_obj[0] = args;
14213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
14214 if (!SWIG_IsOK(res1)) {
14215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14216 }
14217 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14218 {
14219 PyThreadState* __tstate = wxPyBeginAllowThreads();
14220 delete arg1;
14221
14222 wxPyEndAllowThreads(__tstate);
14223 if (PyErr_Occurred()) SWIG_fail;
14224 }
14225 resultobj = SWIG_Py_Void();
14226 return resultobj;
14227 fail:
14228 return NULL;
14229 }
14230
14231
14232 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14233 PyObject *resultobj = 0;
14234 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14235 wxFontEncoding arg2 ;
14236 wxFontEncoding arg3 ;
14237 int arg4 = (int) wxCONVERT_STRICT ;
14238 bool result;
14239 void *argp1 = 0 ;
14240 int res1 = 0 ;
14241 int val2 ;
14242 int ecode2 = 0 ;
14243 int val3 ;
14244 int ecode3 = 0 ;
14245 int val4 ;
14246 int ecode4 = 0 ;
14247 PyObject * obj0 = 0 ;
14248 PyObject * obj1 = 0 ;
14249 PyObject * obj2 = 0 ;
14250 PyObject * obj3 = 0 ;
14251 char * kwnames[] = {
14252 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14253 };
14254
14255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14257 if (!SWIG_IsOK(res1)) {
14258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14259 }
14260 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14261 ecode2 = SWIG_AsVal_int(obj1, &val2);
14262 if (!SWIG_IsOK(ecode2)) {
14263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14264 }
14265 arg2 = static_cast< wxFontEncoding >(val2);
14266 ecode3 = SWIG_AsVal_int(obj2, &val3);
14267 if (!SWIG_IsOK(ecode3)) {
14268 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14269 }
14270 arg3 = static_cast< wxFontEncoding >(val3);
14271 if (obj3) {
14272 ecode4 = SWIG_AsVal_int(obj3, &val4);
14273 if (!SWIG_IsOK(ecode4)) {
14274 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14275 }
14276 arg4 = static_cast< int >(val4);
14277 }
14278 {
14279 PyThreadState* __tstate = wxPyBeginAllowThreads();
14280 result = (bool)(arg1)->Init(arg2,arg3,arg4);
14281 wxPyEndAllowThreads(__tstate);
14282 if (PyErr_Occurred()) SWIG_fail;
14283 }
14284 {
14285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14286 }
14287 return resultobj;
14288 fail:
14289 return NULL;
14290 }
14291
14292
14293 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14294 PyObject *resultobj = 0;
14295 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14296 wxString *arg2 = 0 ;
14297 wxString result;
14298 void *argp1 = 0 ;
14299 int res1 = 0 ;
14300 bool temp2 = false ;
14301 PyObject * obj0 = 0 ;
14302 PyObject * obj1 = 0 ;
14303 char * kwnames[] = {
14304 (char *) "self",(char *) "input", NULL
14305 };
14306
14307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
14308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14309 if (!SWIG_IsOK(res1)) {
14310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14311 }
14312 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14313 {
14314 arg2 = wxString_in_helper(obj1);
14315 if (arg2 == NULL) SWIG_fail;
14316 temp2 = true;
14317 }
14318 {
14319 PyThreadState* __tstate = wxPyBeginAllowThreads();
14320 result = (arg1)->Convert((wxString const &)*arg2);
14321 wxPyEndAllowThreads(__tstate);
14322 if (PyErr_Occurred()) SWIG_fail;
14323 }
14324 {
14325 #if wxUSE_UNICODE
14326 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14327 #else
14328 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14329 #endif
14330 }
14331 {
14332 if (temp2)
14333 delete arg2;
14334 }
14335 return resultobj;
14336 fail:
14337 {
14338 if (temp2)
14339 delete arg2;
14340 }
14341 return NULL;
14342 }
14343
14344
14345 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14346 PyObject *resultobj = 0;
14347 wxFontEncoding arg1 ;
14348 int arg2 = (int) wxPLATFORM_CURRENT ;
14349 wxFontEncodingArray result;
14350 int val1 ;
14351 int ecode1 = 0 ;
14352 int val2 ;
14353 int ecode2 = 0 ;
14354 PyObject * obj0 = 0 ;
14355 PyObject * obj1 = 0 ;
14356 char * kwnames[] = {
14357 (char *) "enc",(char *) "platform", NULL
14358 };
14359
14360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
14361 ecode1 = SWIG_AsVal_int(obj0, &val1);
14362 if (!SWIG_IsOK(ecode1)) {
14363 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14364 }
14365 arg1 = static_cast< wxFontEncoding >(val1);
14366 if (obj1) {
14367 ecode2 = SWIG_AsVal_int(obj1, &val2);
14368 if (!SWIG_IsOK(ecode2)) {
14369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
14370 }
14371 arg2 = static_cast< int >(val2);
14372 }
14373 {
14374 PyThreadState* __tstate = wxPyBeginAllowThreads();
14375 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
14376 wxPyEndAllowThreads(__tstate);
14377 if (PyErr_Occurred()) SWIG_fail;
14378 }
14379 {
14380 resultobj = PyList_New(0);
14381 for (size_t i=0; i < (&result)->GetCount(); i++) {
14382 PyObject* number = PyInt_FromLong((&result)->Item(i));
14383 PyList_Append(resultobj, number);
14384 Py_DECREF(number);
14385 }
14386 }
14387 return resultobj;
14388 fail:
14389 return NULL;
14390 }
14391
14392
14393 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14394 PyObject *resultobj = 0;
14395 wxFontEncoding arg1 ;
14396 wxFontEncodingArray result;
14397 int val1 ;
14398 int ecode1 = 0 ;
14399 PyObject * obj0 = 0 ;
14400 char * kwnames[] = {
14401 (char *) "enc", NULL
14402 };
14403
14404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
14405 ecode1 = SWIG_AsVal_int(obj0, &val1);
14406 if (!SWIG_IsOK(ecode1)) {
14407 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14408 }
14409 arg1 = static_cast< wxFontEncoding >(val1);
14410 {
14411 PyThreadState* __tstate = wxPyBeginAllowThreads();
14412 result = wxEncodingConverter::GetAllEquivalents(arg1);
14413 wxPyEndAllowThreads(__tstate);
14414 if (PyErr_Occurred()) SWIG_fail;
14415 }
14416 {
14417 resultobj = PyList_New(0);
14418 for (size_t i=0; i < (&result)->GetCount(); i++) {
14419 PyObject* number = PyInt_FromLong((&result)->Item(i));
14420 PyList_Append(resultobj, number);
14421 Py_DECREF(number);
14422 }
14423 }
14424 return resultobj;
14425 fail:
14426 return NULL;
14427 }
14428
14429
14430 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14431 PyObject *resultobj = 0;
14432 wxFontEncoding arg1 ;
14433 wxFontEncoding arg2 ;
14434 bool result;
14435 int val1 ;
14436 int ecode1 = 0 ;
14437 int val2 ;
14438 int ecode2 = 0 ;
14439 PyObject * obj0 = 0 ;
14440 PyObject * obj1 = 0 ;
14441 char * kwnames[] = {
14442 (char *) "encIn",(char *) "encOut", NULL
14443 };
14444
14445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
14446 ecode1 = SWIG_AsVal_int(obj0, &val1);
14447 if (!SWIG_IsOK(ecode1)) {
14448 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14449 }
14450 arg1 = static_cast< wxFontEncoding >(val1);
14451 ecode2 = SWIG_AsVal_int(obj1, &val2);
14452 if (!SWIG_IsOK(ecode2)) {
14453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14454 }
14455 arg2 = static_cast< wxFontEncoding >(val2);
14456 {
14457 PyThreadState* __tstate = wxPyBeginAllowThreads();
14458 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
14459 wxPyEndAllowThreads(__tstate);
14460 if (PyErr_Occurred()) SWIG_fail;
14461 }
14462 {
14463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14464 }
14465 return resultobj;
14466 fail:
14467 return NULL;
14468 }
14469
14470
14471 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14472 PyObject *obj;
14473 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14474 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
14475 return SWIG_Py_Void();
14476 }
14477
14478 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14479 return SWIG_Python_InitShadowInstance(args);
14480 }
14481
14482 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14483 PyObject *resultobj = 0;
14484 wxDC *arg1 = (wxDC *) 0 ;
14485 void *argp1 = 0 ;
14486 int res1 = 0 ;
14487 PyObject *swig_obj[1] ;
14488
14489 if (!args) SWIG_fail;
14490 swig_obj[0] = args;
14491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
14492 if (!SWIG_IsOK(res1)) {
14493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
14494 }
14495 arg1 = reinterpret_cast< wxDC * >(argp1);
14496 {
14497 PyThreadState* __tstate = wxPyBeginAllowThreads();
14498 delete arg1;
14499
14500 wxPyEndAllowThreads(__tstate);
14501 if (PyErr_Occurred()) SWIG_fail;
14502 }
14503 resultobj = SWIG_Py_Void();
14504 return resultobj;
14505 fail:
14506 return NULL;
14507 }
14508
14509
14510 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14511 PyObject *resultobj = 0;
14512 wxDC *arg1 = (wxDC *) 0 ;
14513 int arg2 ;
14514 int arg3 ;
14515 wxColour *arg4 = 0 ;
14516 int arg5 = (int) wxFLOOD_SURFACE ;
14517 bool result;
14518 void *argp1 = 0 ;
14519 int res1 = 0 ;
14520 int val2 ;
14521 int ecode2 = 0 ;
14522 int val3 ;
14523 int ecode3 = 0 ;
14524 wxColour temp4 ;
14525 int val5 ;
14526 int ecode5 = 0 ;
14527 PyObject * obj0 = 0 ;
14528 PyObject * obj1 = 0 ;
14529 PyObject * obj2 = 0 ;
14530 PyObject * obj3 = 0 ;
14531 PyObject * obj4 = 0 ;
14532 char * kwnames[] = {
14533 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
14534 };
14535
14536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14538 if (!SWIG_IsOK(res1)) {
14539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
14540 }
14541 arg1 = reinterpret_cast< wxDC * >(argp1);
14542 ecode2 = SWIG_AsVal_int(obj1, &val2);
14543 if (!SWIG_IsOK(ecode2)) {
14544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
14545 }
14546 arg2 = static_cast< int >(val2);
14547 ecode3 = SWIG_AsVal_int(obj2, &val3);
14548 if (!SWIG_IsOK(ecode3)) {
14549 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
14550 }
14551 arg3 = static_cast< int >(val3);
14552 {
14553 arg4 = &temp4;
14554 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14555 }
14556 if (obj4) {
14557 ecode5 = SWIG_AsVal_int(obj4, &val5);
14558 if (!SWIG_IsOK(ecode5)) {
14559 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
14560 }
14561 arg5 = static_cast< int >(val5);
14562 }
14563 {
14564 PyThreadState* __tstate = wxPyBeginAllowThreads();
14565 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
14566 wxPyEndAllowThreads(__tstate);
14567 if (PyErr_Occurred()) SWIG_fail;
14568 }
14569 {
14570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14571 }
14572 return resultobj;
14573 fail:
14574 return NULL;
14575 }
14576
14577
14578 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14579 PyObject *resultobj = 0;
14580 wxDC *arg1 = (wxDC *) 0 ;
14581 wxPoint *arg2 = 0 ;
14582 wxColour *arg3 = 0 ;
14583 int arg4 = (int) wxFLOOD_SURFACE ;
14584 bool result;
14585 void *argp1 = 0 ;
14586 int res1 = 0 ;
14587 wxPoint temp2 ;
14588 wxColour temp3 ;
14589 int val4 ;
14590 int ecode4 = 0 ;
14591 PyObject * obj0 = 0 ;
14592 PyObject * obj1 = 0 ;
14593 PyObject * obj2 = 0 ;
14594 PyObject * obj3 = 0 ;
14595 char * kwnames[] = {
14596 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
14597 };
14598
14599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14601 if (!SWIG_IsOK(res1)) {
14602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14603 }
14604 arg1 = reinterpret_cast< wxDC * >(argp1);
14605 {
14606 arg2 = &temp2;
14607 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14608 }
14609 {
14610 arg3 = &temp3;
14611 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14612 }
14613 if (obj3) {
14614 ecode4 = SWIG_AsVal_int(obj3, &val4);
14615 if (!SWIG_IsOK(ecode4)) {
14616 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
14617 }
14618 arg4 = static_cast< int >(val4);
14619 }
14620 {
14621 PyThreadState* __tstate = wxPyBeginAllowThreads();
14622 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
14623 wxPyEndAllowThreads(__tstate);
14624 if (PyErr_Occurred()) SWIG_fail;
14625 }
14626 {
14627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14628 }
14629 return resultobj;
14630 fail:
14631 return NULL;
14632 }
14633
14634
14635 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14636 PyObject *resultobj = 0;
14637 wxDC *arg1 = (wxDC *) 0 ;
14638 wxRect *arg2 = 0 ;
14639 wxColour *arg3 = 0 ;
14640 wxColour *arg4 = 0 ;
14641 wxPoint *arg5 = 0 ;
14642 void *argp1 = 0 ;
14643 int res1 = 0 ;
14644 wxRect temp2 ;
14645 wxColour temp3 ;
14646 wxColour temp4 ;
14647 wxPoint temp5 ;
14648 PyObject * obj0 = 0 ;
14649 PyObject * obj1 = 0 ;
14650 PyObject * obj2 = 0 ;
14651 PyObject * obj3 = 0 ;
14652 PyObject * obj4 = 0 ;
14653 char * kwnames[] = {
14654 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
14655 };
14656
14657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14659 if (!SWIG_IsOK(res1)) {
14660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
14661 }
14662 arg1 = reinterpret_cast< wxDC * >(argp1);
14663 {
14664 arg2 = &temp2;
14665 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14666 }
14667 {
14668 arg3 = &temp3;
14669 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14670 }
14671 {
14672 arg4 = &temp4;
14673 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14674 }
14675 {
14676 arg5 = &temp5;
14677 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14678 }
14679 {
14680 PyThreadState* __tstate = wxPyBeginAllowThreads();
14681 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
14682 wxPyEndAllowThreads(__tstate);
14683 if (PyErr_Occurred()) SWIG_fail;
14684 }
14685 resultobj = SWIG_Py_Void();
14686 return resultobj;
14687 fail:
14688 return NULL;
14689 }
14690
14691
14692 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14693 PyObject *resultobj = 0;
14694 wxDC *arg1 = (wxDC *) 0 ;
14695 wxRect *arg2 = 0 ;
14696 wxColour *arg3 = 0 ;
14697 wxColour *arg4 = 0 ;
14698 wxDirection arg5 = (wxDirection) wxEAST ;
14699 void *argp1 = 0 ;
14700 int res1 = 0 ;
14701 wxRect temp2 ;
14702 wxColour temp3 ;
14703 wxColour temp4 ;
14704 int val5 ;
14705 int ecode5 = 0 ;
14706 PyObject * obj0 = 0 ;
14707 PyObject * obj1 = 0 ;
14708 PyObject * obj2 = 0 ;
14709 PyObject * obj3 = 0 ;
14710 PyObject * obj4 = 0 ;
14711 char * kwnames[] = {
14712 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
14713 };
14714
14715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14717 if (!SWIG_IsOK(res1)) {
14718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
14719 }
14720 arg1 = reinterpret_cast< wxDC * >(argp1);
14721 {
14722 arg2 = &temp2;
14723 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14724 }
14725 {
14726 arg3 = &temp3;
14727 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14728 }
14729 {
14730 arg4 = &temp4;
14731 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14732 }
14733 if (obj4) {
14734 ecode5 = SWIG_AsVal_int(obj4, &val5);
14735 if (!SWIG_IsOK(ecode5)) {
14736 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
14737 }
14738 arg5 = static_cast< wxDirection >(val5);
14739 }
14740 {
14741 PyThreadState* __tstate = wxPyBeginAllowThreads();
14742 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
14743 wxPyEndAllowThreads(__tstate);
14744 if (PyErr_Occurred()) SWIG_fail;
14745 }
14746 resultobj = SWIG_Py_Void();
14747 return resultobj;
14748 fail:
14749 return NULL;
14750 }
14751
14752
14753 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14754 PyObject *resultobj = 0;
14755 wxDC *arg1 = (wxDC *) 0 ;
14756 int arg2 ;
14757 int arg3 ;
14758 wxColour result;
14759 void *argp1 = 0 ;
14760 int res1 = 0 ;
14761 int val2 ;
14762 int ecode2 = 0 ;
14763 int val3 ;
14764 int ecode3 = 0 ;
14765 PyObject * obj0 = 0 ;
14766 PyObject * obj1 = 0 ;
14767 PyObject * obj2 = 0 ;
14768 char * kwnames[] = {
14769 (char *) "self",(char *) "x",(char *) "y", NULL
14770 };
14771
14772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14774 if (!SWIG_IsOK(res1)) {
14775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
14776 }
14777 arg1 = reinterpret_cast< wxDC * >(argp1);
14778 ecode2 = SWIG_AsVal_int(obj1, &val2);
14779 if (!SWIG_IsOK(ecode2)) {
14780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
14781 }
14782 arg2 = static_cast< int >(val2);
14783 ecode3 = SWIG_AsVal_int(obj2, &val3);
14784 if (!SWIG_IsOK(ecode3)) {
14785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
14786 }
14787 arg3 = static_cast< int >(val3);
14788 {
14789 PyThreadState* __tstate = wxPyBeginAllowThreads();
14790 result = wxDC_GetPixel(arg1,arg2,arg3);
14791 wxPyEndAllowThreads(__tstate);
14792 if (PyErr_Occurred()) SWIG_fail;
14793 }
14794 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14795 return resultobj;
14796 fail:
14797 return NULL;
14798 }
14799
14800
14801 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14802 PyObject *resultobj = 0;
14803 wxDC *arg1 = (wxDC *) 0 ;
14804 wxPoint *arg2 = 0 ;
14805 wxColour result;
14806 void *argp1 = 0 ;
14807 int res1 = 0 ;
14808 wxPoint temp2 ;
14809 PyObject * obj0 = 0 ;
14810 PyObject * obj1 = 0 ;
14811 char * kwnames[] = {
14812 (char *) "self",(char *) "pt", NULL
14813 };
14814
14815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14817 if (!SWIG_IsOK(res1)) {
14818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14819 }
14820 arg1 = reinterpret_cast< wxDC * >(argp1);
14821 {
14822 arg2 = &temp2;
14823 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14824 }
14825 {
14826 PyThreadState* __tstate = wxPyBeginAllowThreads();
14827 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
14828 wxPyEndAllowThreads(__tstate);
14829 if (PyErr_Occurred()) SWIG_fail;
14830 }
14831 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14832 return resultobj;
14833 fail:
14834 return NULL;
14835 }
14836
14837
14838 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14839 PyObject *resultobj = 0;
14840 wxDC *arg1 = (wxDC *) 0 ;
14841 int arg2 ;
14842 int arg3 ;
14843 int arg4 ;
14844 int arg5 ;
14845 void *argp1 = 0 ;
14846 int res1 = 0 ;
14847 int val2 ;
14848 int ecode2 = 0 ;
14849 int val3 ;
14850 int ecode3 = 0 ;
14851 int val4 ;
14852 int ecode4 = 0 ;
14853 int val5 ;
14854 int ecode5 = 0 ;
14855 PyObject * obj0 = 0 ;
14856 PyObject * obj1 = 0 ;
14857 PyObject * obj2 = 0 ;
14858 PyObject * obj3 = 0 ;
14859 PyObject * obj4 = 0 ;
14860 char * kwnames[] = {
14861 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
14862 };
14863
14864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14866 if (!SWIG_IsOK(res1)) {
14867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
14868 }
14869 arg1 = reinterpret_cast< wxDC * >(argp1);
14870 ecode2 = SWIG_AsVal_int(obj1, &val2);
14871 if (!SWIG_IsOK(ecode2)) {
14872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
14873 }
14874 arg2 = static_cast< int >(val2);
14875 ecode3 = SWIG_AsVal_int(obj2, &val3);
14876 if (!SWIG_IsOK(ecode3)) {
14877 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
14878 }
14879 arg3 = static_cast< int >(val3);
14880 ecode4 = SWIG_AsVal_int(obj3, &val4);
14881 if (!SWIG_IsOK(ecode4)) {
14882 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
14883 }
14884 arg4 = static_cast< int >(val4);
14885 ecode5 = SWIG_AsVal_int(obj4, &val5);
14886 if (!SWIG_IsOK(ecode5)) {
14887 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
14888 }
14889 arg5 = static_cast< int >(val5);
14890 {
14891 PyThreadState* __tstate = wxPyBeginAllowThreads();
14892 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
14893 wxPyEndAllowThreads(__tstate);
14894 if (PyErr_Occurred()) SWIG_fail;
14895 }
14896 resultobj = SWIG_Py_Void();
14897 return resultobj;
14898 fail:
14899 return NULL;
14900 }
14901
14902
14903 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14904 PyObject *resultobj = 0;
14905 wxDC *arg1 = (wxDC *) 0 ;
14906 wxPoint *arg2 = 0 ;
14907 wxPoint *arg3 = 0 ;
14908 void *argp1 = 0 ;
14909 int res1 = 0 ;
14910 wxPoint temp2 ;
14911 wxPoint temp3 ;
14912 PyObject * obj0 = 0 ;
14913 PyObject * obj1 = 0 ;
14914 PyObject * obj2 = 0 ;
14915 char * kwnames[] = {
14916 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
14917 };
14918
14919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14921 if (!SWIG_IsOK(res1)) {
14922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
14923 }
14924 arg1 = reinterpret_cast< wxDC * >(argp1);
14925 {
14926 arg2 = &temp2;
14927 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14928 }
14929 {
14930 arg3 = &temp3;
14931 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14932 }
14933 {
14934 PyThreadState* __tstate = wxPyBeginAllowThreads();
14935 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
14936 wxPyEndAllowThreads(__tstate);
14937 if (PyErr_Occurred()) SWIG_fail;
14938 }
14939 resultobj = SWIG_Py_Void();
14940 return resultobj;
14941 fail:
14942 return NULL;
14943 }
14944
14945
14946 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14947 PyObject *resultobj = 0;
14948 wxDC *arg1 = (wxDC *) 0 ;
14949 int arg2 ;
14950 int arg3 ;
14951 void *argp1 = 0 ;
14952 int res1 = 0 ;
14953 int val2 ;
14954 int ecode2 = 0 ;
14955 int val3 ;
14956 int ecode3 = 0 ;
14957 PyObject * obj0 = 0 ;
14958 PyObject * obj1 = 0 ;
14959 PyObject * obj2 = 0 ;
14960 char * kwnames[] = {
14961 (char *) "self",(char *) "x",(char *) "y", NULL
14962 };
14963
14964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14966 if (!SWIG_IsOK(res1)) {
14967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
14968 }
14969 arg1 = reinterpret_cast< wxDC * >(argp1);
14970 ecode2 = SWIG_AsVal_int(obj1, &val2);
14971 if (!SWIG_IsOK(ecode2)) {
14972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
14973 }
14974 arg2 = static_cast< int >(val2);
14975 ecode3 = SWIG_AsVal_int(obj2, &val3);
14976 if (!SWIG_IsOK(ecode3)) {
14977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
14978 }
14979 arg3 = static_cast< int >(val3);
14980 {
14981 PyThreadState* __tstate = wxPyBeginAllowThreads();
14982 (arg1)->CrossHair(arg2,arg3);
14983 wxPyEndAllowThreads(__tstate);
14984 if (PyErr_Occurred()) SWIG_fail;
14985 }
14986 resultobj = SWIG_Py_Void();
14987 return resultobj;
14988 fail:
14989 return NULL;
14990 }
14991
14992
14993 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14994 PyObject *resultobj = 0;
14995 wxDC *arg1 = (wxDC *) 0 ;
14996 wxPoint *arg2 = 0 ;
14997 void *argp1 = 0 ;
14998 int res1 = 0 ;
14999 wxPoint temp2 ;
15000 PyObject * obj0 = 0 ;
15001 PyObject * obj1 = 0 ;
15002 char * kwnames[] = {
15003 (char *) "self",(char *) "pt", NULL
15004 };
15005
15006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15008 if (!SWIG_IsOK(res1)) {
15009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15010 }
15011 arg1 = reinterpret_cast< wxDC * >(argp1);
15012 {
15013 arg2 = &temp2;
15014 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15015 }
15016 {
15017 PyThreadState* __tstate = wxPyBeginAllowThreads();
15018 (arg1)->CrossHair((wxPoint const &)*arg2);
15019 wxPyEndAllowThreads(__tstate);
15020 if (PyErr_Occurred()) SWIG_fail;
15021 }
15022 resultobj = SWIG_Py_Void();
15023 return resultobj;
15024 fail:
15025 return NULL;
15026 }
15027
15028
15029 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15030 PyObject *resultobj = 0;
15031 wxDC *arg1 = (wxDC *) 0 ;
15032 int arg2 ;
15033 int arg3 ;
15034 int arg4 ;
15035 int arg5 ;
15036 int arg6 ;
15037 int arg7 ;
15038 void *argp1 = 0 ;
15039 int res1 = 0 ;
15040 int val2 ;
15041 int ecode2 = 0 ;
15042 int val3 ;
15043 int ecode3 = 0 ;
15044 int val4 ;
15045 int ecode4 = 0 ;
15046 int val5 ;
15047 int ecode5 = 0 ;
15048 int val6 ;
15049 int ecode6 = 0 ;
15050 int val7 ;
15051 int ecode7 = 0 ;
15052 PyObject * obj0 = 0 ;
15053 PyObject * obj1 = 0 ;
15054 PyObject * obj2 = 0 ;
15055 PyObject * obj3 = 0 ;
15056 PyObject * obj4 = 0 ;
15057 PyObject * obj5 = 0 ;
15058 PyObject * obj6 = 0 ;
15059 char * kwnames[] = {
15060 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
15061 };
15062
15063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15065 if (!SWIG_IsOK(res1)) {
15066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
15067 }
15068 arg1 = reinterpret_cast< wxDC * >(argp1);
15069 ecode2 = SWIG_AsVal_int(obj1, &val2);
15070 if (!SWIG_IsOK(ecode2)) {
15071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
15072 }
15073 arg2 = static_cast< int >(val2);
15074 ecode3 = SWIG_AsVal_int(obj2, &val3);
15075 if (!SWIG_IsOK(ecode3)) {
15076 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
15077 }
15078 arg3 = static_cast< int >(val3);
15079 ecode4 = SWIG_AsVal_int(obj3, &val4);
15080 if (!SWIG_IsOK(ecode4)) {
15081 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
15082 }
15083 arg4 = static_cast< int >(val4);
15084 ecode5 = SWIG_AsVal_int(obj4, &val5);
15085 if (!SWIG_IsOK(ecode5)) {
15086 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
15087 }
15088 arg5 = static_cast< int >(val5);
15089 ecode6 = SWIG_AsVal_int(obj5, &val6);
15090 if (!SWIG_IsOK(ecode6)) {
15091 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
15092 }
15093 arg6 = static_cast< int >(val6);
15094 ecode7 = SWIG_AsVal_int(obj6, &val7);
15095 if (!SWIG_IsOK(ecode7)) {
15096 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
15097 }
15098 arg7 = static_cast< int >(val7);
15099 {
15100 PyThreadState* __tstate = wxPyBeginAllowThreads();
15101 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
15102 wxPyEndAllowThreads(__tstate);
15103 if (PyErr_Occurred()) SWIG_fail;
15104 }
15105 resultobj = SWIG_Py_Void();
15106 return resultobj;
15107 fail:
15108 return NULL;
15109 }
15110
15111
15112 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15113 PyObject *resultobj = 0;
15114 wxDC *arg1 = (wxDC *) 0 ;
15115 wxPoint *arg2 = 0 ;
15116 wxPoint *arg3 = 0 ;
15117 wxPoint *arg4 = 0 ;
15118 void *argp1 = 0 ;
15119 int res1 = 0 ;
15120 wxPoint temp2 ;
15121 wxPoint temp3 ;
15122 wxPoint temp4 ;
15123 PyObject * obj0 = 0 ;
15124 PyObject * obj1 = 0 ;
15125 PyObject * obj2 = 0 ;
15126 PyObject * obj3 = 0 ;
15127 char * kwnames[] = {
15128 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15129 };
15130
15131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15133 if (!SWIG_IsOK(res1)) {
15134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15135 }
15136 arg1 = reinterpret_cast< wxDC * >(argp1);
15137 {
15138 arg2 = &temp2;
15139 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15140 }
15141 {
15142 arg3 = &temp3;
15143 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15144 }
15145 {
15146 arg4 = &temp4;
15147 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15148 }
15149 {
15150 PyThreadState* __tstate = wxPyBeginAllowThreads();
15151 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
15152 wxPyEndAllowThreads(__tstate);
15153 if (PyErr_Occurred()) SWIG_fail;
15154 }
15155 resultobj = SWIG_Py_Void();
15156 return resultobj;
15157 fail:
15158 return NULL;
15159 }
15160
15161
15162 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15163 PyObject *resultobj = 0;
15164 wxDC *arg1 = (wxDC *) 0 ;
15165 int arg2 ;
15166 int arg3 ;
15167 int arg4 ;
15168 int arg5 ;
15169 void *argp1 = 0 ;
15170 int res1 = 0 ;
15171 int val2 ;
15172 int ecode2 = 0 ;
15173 int val3 ;
15174 int ecode3 = 0 ;
15175 int val4 ;
15176 int ecode4 = 0 ;
15177 int val5 ;
15178 int ecode5 = 0 ;
15179 PyObject * obj0 = 0 ;
15180 PyObject * obj1 = 0 ;
15181 PyObject * obj2 = 0 ;
15182 PyObject * obj3 = 0 ;
15183 PyObject * obj4 = 0 ;
15184 char * kwnames[] = {
15185 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15186 };
15187
15188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15190 if (!SWIG_IsOK(res1)) {
15191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15192 }
15193 arg1 = reinterpret_cast< wxDC * >(argp1);
15194 ecode2 = SWIG_AsVal_int(obj1, &val2);
15195 if (!SWIG_IsOK(ecode2)) {
15196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15197 }
15198 arg2 = static_cast< int >(val2);
15199 ecode3 = SWIG_AsVal_int(obj2, &val3);
15200 if (!SWIG_IsOK(ecode3)) {
15201 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15202 }
15203 arg3 = static_cast< int >(val3);
15204 ecode4 = SWIG_AsVal_int(obj3, &val4);
15205 if (!SWIG_IsOK(ecode4)) {
15206 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15207 }
15208 arg4 = static_cast< int >(val4);
15209 ecode5 = SWIG_AsVal_int(obj4, &val5);
15210 if (!SWIG_IsOK(ecode5)) {
15211 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15212 }
15213 arg5 = static_cast< int >(val5);
15214 {
15215 PyThreadState* __tstate = wxPyBeginAllowThreads();
15216 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
15217 wxPyEndAllowThreads(__tstate);
15218 if (PyErr_Occurred()) SWIG_fail;
15219 }
15220 resultobj = SWIG_Py_Void();
15221 return resultobj;
15222 fail:
15223 return NULL;
15224 }
15225
15226
15227 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15228 PyObject *resultobj = 0;
15229 wxDC *arg1 = (wxDC *) 0 ;
15230 wxRect *arg2 = 0 ;
15231 void *argp1 = 0 ;
15232 int res1 = 0 ;
15233 wxRect temp2 ;
15234 PyObject * obj0 = 0 ;
15235 PyObject * obj1 = 0 ;
15236 char * kwnames[] = {
15237 (char *) "self",(char *) "rect", NULL
15238 };
15239
15240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
15241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15242 if (!SWIG_IsOK(res1)) {
15243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15244 }
15245 arg1 = reinterpret_cast< wxDC * >(argp1);
15246 {
15247 arg2 = &temp2;
15248 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15249 }
15250 {
15251 PyThreadState* __tstate = wxPyBeginAllowThreads();
15252 (arg1)->DrawCheckMark((wxRect const &)*arg2);
15253 wxPyEndAllowThreads(__tstate);
15254 if (PyErr_Occurred()) SWIG_fail;
15255 }
15256 resultobj = SWIG_Py_Void();
15257 return resultobj;
15258 fail:
15259 return NULL;
15260 }
15261
15262
15263 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15264 PyObject *resultobj = 0;
15265 wxDC *arg1 = (wxDC *) 0 ;
15266 int arg2 ;
15267 int arg3 ;
15268 int arg4 ;
15269 int arg5 ;
15270 double arg6 ;
15271 double arg7 ;
15272 void *argp1 = 0 ;
15273 int res1 = 0 ;
15274 int val2 ;
15275 int ecode2 = 0 ;
15276 int val3 ;
15277 int ecode3 = 0 ;
15278 int val4 ;
15279 int ecode4 = 0 ;
15280 int val5 ;
15281 int ecode5 = 0 ;
15282 double val6 ;
15283 int ecode6 = 0 ;
15284 double val7 ;
15285 int ecode7 = 0 ;
15286 PyObject * obj0 = 0 ;
15287 PyObject * obj1 = 0 ;
15288 PyObject * obj2 = 0 ;
15289 PyObject * obj3 = 0 ;
15290 PyObject * obj4 = 0 ;
15291 PyObject * obj5 = 0 ;
15292 PyObject * obj6 = 0 ;
15293 char * kwnames[] = {
15294 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15295 };
15296
15297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15299 if (!SWIG_IsOK(res1)) {
15300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15301 }
15302 arg1 = reinterpret_cast< wxDC * >(argp1);
15303 ecode2 = SWIG_AsVal_int(obj1, &val2);
15304 if (!SWIG_IsOK(ecode2)) {
15305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15306 }
15307 arg2 = static_cast< int >(val2);
15308 ecode3 = SWIG_AsVal_int(obj2, &val3);
15309 if (!SWIG_IsOK(ecode3)) {
15310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15311 }
15312 arg3 = static_cast< int >(val3);
15313 ecode4 = SWIG_AsVal_int(obj3, &val4);
15314 if (!SWIG_IsOK(ecode4)) {
15315 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15316 }
15317 arg4 = static_cast< int >(val4);
15318 ecode5 = SWIG_AsVal_int(obj4, &val5);
15319 if (!SWIG_IsOK(ecode5)) {
15320 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15321 }
15322 arg5 = static_cast< int >(val5);
15323 ecode6 = SWIG_AsVal_double(obj5, &val6);
15324 if (!SWIG_IsOK(ecode6)) {
15325 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15326 }
15327 arg6 = static_cast< double >(val6);
15328 ecode7 = SWIG_AsVal_double(obj6, &val7);
15329 if (!SWIG_IsOK(ecode7)) {
15330 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15331 }
15332 arg7 = static_cast< double >(val7);
15333 {
15334 PyThreadState* __tstate = wxPyBeginAllowThreads();
15335 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
15336 wxPyEndAllowThreads(__tstate);
15337 if (PyErr_Occurred()) SWIG_fail;
15338 }
15339 resultobj = SWIG_Py_Void();
15340 return resultobj;
15341 fail:
15342 return NULL;
15343 }
15344
15345
15346 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15347 PyObject *resultobj = 0;
15348 wxDC *arg1 = (wxDC *) 0 ;
15349 wxPoint *arg2 = 0 ;
15350 wxSize *arg3 = 0 ;
15351 double arg4 ;
15352 double arg5 ;
15353 void *argp1 = 0 ;
15354 int res1 = 0 ;
15355 wxPoint temp2 ;
15356 wxSize temp3 ;
15357 double val4 ;
15358 int ecode4 = 0 ;
15359 double val5 ;
15360 int ecode5 = 0 ;
15361 PyObject * obj0 = 0 ;
15362 PyObject * obj1 = 0 ;
15363 PyObject * obj2 = 0 ;
15364 PyObject * obj3 = 0 ;
15365 PyObject * obj4 = 0 ;
15366 char * kwnames[] = {
15367 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
15368 };
15369
15370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15372 if (!SWIG_IsOK(res1)) {
15373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15374 }
15375 arg1 = reinterpret_cast< wxDC * >(argp1);
15376 {
15377 arg2 = &temp2;
15378 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15379 }
15380 {
15381 arg3 = &temp3;
15382 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15383 }
15384 ecode4 = SWIG_AsVal_double(obj3, &val4);
15385 if (!SWIG_IsOK(ecode4)) {
15386 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
15387 }
15388 arg4 = static_cast< double >(val4);
15389 ecode5 = SWIG_AsVal_double(obj4, &val5);
15390 if (!SWIG_IsOK(ecode5)) {
15391 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
15392 }
15393 arg5 = static_cast< double >(val5);
15394 {
15395 PyThreadState* __tstate = wxPyBeginAllowThreads();
15396 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
15397 wxPyEndAllowThreads(__tstate);
15398 if (PyErr_Occurred()) SWIG_fail;
15399 }
15400 resultobj = SWIG_Py_Void();
15401 return resultobj;
15402 fail:
15403 return NULL;
15404 }
15405
15406
15407 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15408 PyObject *resultobj = 0;
15409 wxDC *arg1 = (wxDC *) 0 ;
15410 int arg2 ;
15411 int arg3 ;
15412 void *argp1 = 0 ;
15413 int res1 = 0 ;
15414 int val2 ;
15415 int ecode2 = 0 ;
15416 int val3 ;
15417 int ecode3 = 0 ;
15418 PyObject * obj0 = 0 ;
15419 PyObject * obj1 = 0 ;
15420 PyObject * obj2 = 0 ;
15421 char * kwnames[] = {
15422 (char *) "self",(char *) "x",(char *) "y", NULL
15423 };
15424
15425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15427 if (!SWIG_IsOK(res1)) {
15428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15429 }
15430 arg1 = reinterpret_cast< wxDC * >(argp1);
15431 ecode2 = SWIG_AsVal_int(obj1, &val2);
15432 if (!SWIG_IsOK(ecode2)) {
15433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
15434 }
15435 arg2 = static_cast< int >(val2);
15436 ecode3 = SWIG_AsVal_int(obj2, &val3);
15437 if (!SWIG_IsOK(ecode3)) {
15438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
15439 }
15440 arg3 = static_cast< int >(val3);
15441 {
15442 PyThreadState* __tstate = wxPyBeginAllowThreads();
15443 (arg1)->DrawPoint(arg2,arg3);
15444 wxPyEndAllowThreads(__tstate);
15445 if (PyErr_Occurred()) SWIG_fail;
15446 }
15447 resultobj = SWIG_Py_Void();
15448 return resultobj;
15449 fail:
15450 return NULL;
15451 }
15452
15453
15454 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15455 PyObject *resultobj = 0;
15456 wxDC *arg1 = (wxDC *) 0 ;
15457 wxPoint *arg2 = 0 ;
15458 void *argp1 = 0 ;
15459 int res1 = 0 ;
15460 wxPoint temp2 ;
15461 PyObject * obj0 = 0 ;
15462 PyObject * obj1 = 0 ;
15463 char * kwnames[] = {
15464 (char *) "self",(char *) "pt", NULL
15465 };
15466
15467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15469 if (!SWIG_IsOK(res1)) {
15470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15471 }
15472 arg1 = reinterpret_cast< wxDC * >(argp1);
15473 {
15474 arg2 = &temp2;
15475 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15476 }
15477 {
15478 PyThreadState* __tstate = wxPyBeginAllowThreads();
15479 (arg1)->DrawPoint((wxPoint const &)*arg2);
15480 wxPyEndAllowThreads(__tstate);
15481 if (PyErr_Occurred()) SWIG_fail;
15482 }
15483 resultobj = SWIG_Py_Void();
15484 return resultobj;
15485 fail:
15486 return NULL;
15487 }
15488
15489
15490 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15491 PyObject *resultobj = 0;
15492 wxDC *arg1 = (wxDC *) 0 ;
15493 int arg2 ;
15494 int arg3 ;
15495 int arg4 ;
15496 int arg5 ;
15497 void *argp1 = 0 ;
15498 int res1 = 0 ;
15499 int val2 ;
15500 int ecode2 = 0 ;
15501 int val3 ;
15502 int ecode3 = 0 ;
15503 int val4 ;
15504 int ecode4 = 0 ;
15505 int val5 ;
15506 int ecode5 = 0 ;
15507 PyObject * obj0 = 0 ;
15508 PyObject * obj1 = 0 ;
15509 PyObject * obj2 = 0 ;
15510 PyObject * obj3 = 0 ;
15511 PyObject * obj4 = 0 ;
15512 char * kwnames[] = {
15513 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15514 };
15515
15516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15518 if (!SWIG_IsOK(res1)) {
15519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15520 }
15521 arg1 = reinterpret_cast< wxDC * >(argp1);
15522 ecode2 = SWIG_AsVal_int(obj1, &val2);
15523 if (!SWIG_IsOK(ecode2)) {
15524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
15525 }
15526 arg2 = static_cast< int >(val2);
15527 ecode3 = SWIG_AsVal_int(obj2, &val3);
15528 if (!SWIG_IsOK(ecode3)) {
15529 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
15530 }
15531 arg3 = static_cast< int >(val3);
15532 ecode4 = SWIG_AsVal_int(obj3, &val4);
15533 if (!SWIG_IsOK(ecode4)) {
15534 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
15535 }
15536 arg4 = static_cast< int >(val4);
15537 ecode5 = SWIG_AsVal_int(obj4, &val5);
15538 if (!SWIG_IsOK(ecode5)) {
15539 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
15540 }
15541 arg5 = static_cast< int >(val5);
15542 {
15543 PyThreadState* __tstate = wxPyBeginAllowThreads();
15544 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
15545 wxPyEndAllowThreads(__tstate);
15546 if (PyErr_Occurred()) SWIG_fail;
15547 }
15548 resultobj = SWIG_Py_Void();
15549 return resultobj;
15550 fail:
15551 return NULL;
15552 }
15553
15554
15555 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15556 PyObject *resultobj = 0;
15557 wxDC *arg1 = (wxDC *) 0 ;
15558 wxRect *arg2 = 0 ;
15559 void *argp1 = 0 ;
15560 int res1 = 0 ;
15561 wxRect temp2 ;
15562 PyObject * obj0 = 0 ;
15563 PyObject * obj1 = 0 ;
15564 char * kwnames[] = {
15565 (char *) "self",(char *) "rect", NULL
15566 };
15567
15568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
15569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15570 if (!SWIG_IsOK(res1)) {
15571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15572 }
15573 arg1 = reinterpret_cast< wxDC * >(argp1);
15574 {
15575 arg2 = &temp2;
15576 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15577 }
15578 {
15579 PyThreadState* __tstate = wxPyBeginAllowThreads();
15580 (arg1)->DrawRectangle((wxRect const &)*arg2);
15581 wxPyEndAllowThreads(__tstate);
15582 if (PyErr_Occurred()) SWIG_fail;
15583 }
15584 resultobj = SWIG_Py_Void();
15585 return resultobj;
15586 fail:
15587 return NULL;
15588 }
15589
15590
15591 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15592 PyObject *resultobj = 0;
15593 wxDC *arg1 = (wxDC *) 0 ;
15594 wxPoint *arg2 = 0 ;
15595 wxSize *arg3 = 0 ;
15596 void *argp1 = 0 ;
15597 int res1 = 0 ;
15598 wxPoint temp2 ;
15599 wxSize temp3 ;
15600 PyObject * obj0 = 0 ;
15601 PyObject * obj1 = 0 ;
15602 PyObject * obj2 = 0 ;
15603 char * kwnames[] = {
15604 (char *) "self",(char *) "pt",(char *) "sz", NULL
15605 };
15606
15607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15609 if (!SWIG_IsOK(res1)) {
15610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15611 }
15612 arg1 = reinterpret_cast< wxDC * >(argp1);
15613 {
15614 arg2 = &temp2;
15615 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15616 }
15617 {
15618 arg3 = &temp3;
15619 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15620 }
15621 {
15622 PyThreadState* __tstate = wxPyBeginAllowThreads();
15623 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
15624 wxPyEndAllowThreads(__tstate);
15625 if (PyErr_Occurred()) SWIG_fail;
15626 }
15627 resultobj = SWIG_Py_Void();
15628 return resultobj;
15629 fail:
15630 return NULL;
15631 }
15632
15633
15634 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15635 PyObject *resultobj = 0;
15636 wxDC *arg1 = (wxDC *) 0 ;
15637 int arg2 ;
15638 int arg3 ;
15639 int arg4 ;
15640 int arg5 ;
15641 double arg6 ;
15642 void *argp1 = 0 ;
15643 int res1 = 0 ;
15644 int val2 ;
15645 int ecode2 = 0 ;
15646 int val3 ;
15647 int ecode3 = 0 ;
15648 int val4 ;
15649 int ecode4 = 0 ;
15650 int val5 ;
15651 int ecode5 = 0 ;
15652 double val6 ;
15653 int ecode6 = 0 ;
15654 PyObject * obj0 = 0 ;
15655 PyObject * obj1 = 0 ;
15656 PyObject * obj2 = 0 ;
15657 PyObject * obj3 = 0 ;
15658 PyObject * obj4 = 0 ;
15659 PyObject * obj5 = 0 ;
15660 char * kwnames[] = {
15661 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
15662 };
15663
15664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15666 if (!SWIG_IsOK(res1)) {
15667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15668 }
15669 arg1 = reinterpret_cast< wxDC * >(argp1);
15670 ecode2 = SWIG_AsVal_int(obj1, &val2);
15671 if (!SWIG_IsOK(ecode2)) {
15672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
15673 }
15674 arg2 = static_cast< int >(val2);
15675 ecode3 = SWIG_AsVal_int(obj2, &val3);
15676 if (!SWIG_IsOK(ecode3)) {
15677 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
15678 }
15679 arg3 = static_cast< int >(val3);
15680 ecode4 = SWIG_AsVal_int(obj3, &val4);
15681 if (!SWIG_IsOK(ecode4)) {
15682 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
15683 }
15684 arg4 = static_cast< int >(val4);
15685 ecode5 = SWIG_AsVal_int(obj4, &val5);
15686 if (!SWIG_IsOK(ecode5)) {
15687 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
15688 }
15689 arg5 = static_cast< int >(val5);
15690 ecode6 = SWIG_AsVal_double(obj5, &val6);
15691 if (!SWIG_IsOK(ecode6)) {
15692 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
15693 }
15694 arg6 = static_cast< double >(val6);
15695 {
15696 PyThreadState* __tstate = wxPyBeginAllowThreads();
15697 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
15698 wxPyEndAllowThreads(__tstate);
15699 if (PyErr_Occurred()) SWIG_fail;
15700 }
15701 resultobj = SWIG_Py_Void();
15702 return resultobj;
15703 fail:
15704 return NULL;
15705 }
15706
15707
15708 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15709 PyObject *resultobj = 0;
15710 wxDC *arg1 = (wxDC *) 0 ;
15711 wxRect *arg2 = 0 ;
15712 double arg3 ;
15713 void *argp1 = 0 ;
15714 int res1 = 0 ;
15715 wxRect temp2 ;
15716 double val3 ;
15717 int ecode3 = 0 ;
15718 PyObject * obj0 = 0 ;
15719 PyObject * obj1 = 0 ;
15720 PyObject * obj2 = 0 ;
15721 char * kwnames[] = {
15722 (char *) "self",(char *) "r",(char *) "radius", NULL
15723 };
15724
15725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15727 if (!SWIG_IsOK(res1)) {
15728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15729 }
15730 arg1 = reinterpret_cast< wxDC * >(argp1);
15731 {
15732 arg2 = &temp2;
15733 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15734 }
15735 ecode3 = SWIG_AsVal_double(obj2, &val3);
15736 if (!SWIG_IsOK(ecode3)) {
15737 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
15738 }
15739 arg3 = static_cast< double >(val3);
15740 {
15741 PyThreadState* __tstate = wxPyBeginAllowThreads();
15742 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
15743 wxPyEndAllowThreads(__tstate);
15744 if (PyErr_Occurred()) SWIG_fail;
15745 }
15746 resultobj = SWIG_Py_Void();
15747 return resultobj;
15748 fail:
15749 return NULL;
15750 }
15751
15752
15753 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15754 PyObject *resultobj = 0;
15755 wxDC *arg1 = (wxDC *) 0 ;
15756 wxPoint *arg2 = 0 ;
15757 wxSize *arg3 = 0 ;
15758 double arg4 ;
15759 void *argp1 = 0 ;
15760 int res1 = 0 ;
15761 wxPoint temp2 ;
15762 wxSize temp3 ;
15763 double val4 ;
15764 int ecode4 = 0 ;
15765 PyObject * obj0 = 0 ;
15766 PyObject * obj1 = 0 ;
15767 PyObject * obj2 = 0 ;
15768 PyObject * obj3 = 0 ;
15769 char * kwnames[] = {
15770 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
15771 };
15772
15773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15775 if (!SWIG_IsOK(res1)) {
15776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15777 }
15778 arg1 = reinterpret_cast< wxDC * >(argp1);
15779 {
15780 arg2 = &temp2;
15781 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15782 }
15783 {
15784 arg3 = &temp3;
15785 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15786 }
15787 ecode4 = SWIG_AsVal_double(obj3, &val4);
15788 if (!SWIG_IsOK(ecode4)) {
15789 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
15790 }
15791 arg4 = static_cast< double >(val4);
15792 {
15793 PyThreadState* __tstate = wxPyBeginAllowThreads();
15794 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
15795 wxPyEndAllowThreads(__tstate);
15796 if (PyErr_Occurred()) SWIG_fail;
15797 }
15798 resultobj = SWIG_Py_Void();
15799 return resultobj;
15800 fail:
15801 return NULL;
15802 }
15803
15804
15805 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15806 PyObject *resultobj = 0;
15807 wxDC *arg1 = (wxDC *) 0 ;
15808 int arg2 ;
15809 int arg3 ;
15810 int arg4 ;
15811 void *argp1 = 0 ;
15812 int res1 = 0 ;
15813 int val2 ;
15814 int ecode2 = 0 ;
15815 int val3 ;
15816 int ecode3 = 0 ;
15817 int val4 ;
15818 int ecode4 = 0 ;
15819 PyObject * obj0 = 0 ;
15820 PyObject * obj1 = 0 ;
15821 PyObject * obj2 = 0 ;
15822 PyObject * obj3 = 0 ;
15823 char * kwnames[] = {
15824 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
15825 };
15826
15827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15829 if (!SWIG_IsOK(res1)) {
15830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
15831 }
15832 arg1 = reinterpret_cast< wxDC * >(argp1);
15833 ecode2 = SWIG_AsVal_int(obj1, &val2);
15834 if (!SWIG_IsOK(ecode2)) {
15835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
15836 }
15837 arg2 = static_cast< int >(val2);
15838 ecode3 = SWIG_AsVal_int(obj2, &val3);
15839 if (!SWIG_IsOK(ecode3)) {
15840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
15841 }
15842 arg3 = static_cast< int >(val3);
15843 ecode4 = SWIG_AsVal_int(obj3, &val4);
15844 if (!SWIG_IsOK(ecode4)) {
15845 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
15846 }
15847 arg4 = static_cast< int >(val4);
15848 {
15849 PyThreadState* __tstate = wxPyBeginAllowThreads();
15850 (arg1)->DrawCircle(arg2,arg3,arg4);
15851 wxPyEndAllowThreads(__tstate);
15852 if (PyErr_Occurred()) SWIG_fail;
15853 }
15854 resultobj = SWIG_Py_Void();
15855 return resultobj;
15856 fail:
15857 return NULL;
15858 }
15859
15860
15861 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15862 PyObject *resultobj = 0;
15863 wxDC *arg1 = (wxDC *) 0 ;
15864 wxPoint *arg2 = 0 ;
15865 int arg3 ;
15866 void *argp1 = 0 ;
15867 int res1 = 0 ;
15868 wxPoint temp2 ;
15869 int val3 ;
15870 int ecode3 = 0 ;
15871 PyObject * obj0 = 0 ;
15872 PyObject * obj1 = 0 ;
15873 PyObject * obj2 = 0 ;
15874 char * kwnames[] = {
15875 (char *) "self",(char *) "pt",(char *) "radius", NULL
15876 };
15877
15878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15880 if (!SWIG_IsOK(res1)) {
15881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15882 }
15883 arg1 = reinterpret_cast< wxDC * >(argp1);
15884 {
15885 arg2 = &temp2;
15886 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15887 }
15888 ecode3 = SWIG_AsVal_int(obj2, &val3);
15889 if (!SWIG_IsOK(ecode3)) {
15890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
15891 }
15892 arg3 = static_cast< int >(val3);
15893 {
15894 PyThreadState* __tstate = wxPyBeginAllowThreads();
15895 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
15896 wxPyEndAllowThreads(__tstate);
15897 if (PyErr_Occurred()) SWIG_fail;
15898 }
15899 resultobj = SWIG_Py_Void();
15900 return resultobj;
15901 fail:
15902 return NULL;
15903 }
15904
15905
15906 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15907 PyObject *resultobj = 0;
15908 wxDC *arg1 = (wxDC *) 0 ;
15909 int arg2 ;
15910 int arg3 ;
15911 int arg4 ;
15912 int arg5 ;
15913 void *argp1 = 0 ;
15914 int res1 = 0 ;
15915 int val2 ;
15916 int ecode2 = 0 ;
15917 int val3 ;
15918 int ecode3 = 0 ;
15919 int val4 ;
15920 int ecode4 = 0 ;
15921 int val5 ;
15922 int ecode5 = 0 ;
15923 PyObject * obj0 = 0 ;
15924 PyObject * obj1 = 0 ;
15925 PyObject * obj2 = 0 ;
15926 PyObject * obj3 = 0 ;
15927 PyObject * obj4 = 0 ;
15928 char * kwnames[] = {
15929 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15930 };
15931
15932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15934 if (!SWIG_IsOK(res1)) {
15935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
15936 }
15937 arg1 = reinterpret_cast< wxDC * >(argp1);
15938 ecode2 = SWIG_AsVal_int(obj1, &val2);
15939 if (!SWIG_IsOK(ecode2)) {
15940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
15941 }
15942 arg2 = static_cast< int >(val2);
15943 ecode3 = SWIG_AsVal_int(obj2, &val3);
15944 if (!SWIG_IsOK(ecode3)) {
15945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
15946 }
15947 arg3 = static_cast< int >(val3);
15948 ecode4 = SWIG_AsVal_int(obj3, &val4);
15949 if (!SWIG_IsOK(ecode4)) {
15950 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
15951 }
15952 arg4 = static_cast< int >(val4);
15953 ecode5 = SWIG_AsVal_int(obj4, &val5);
15954 if (!SWIG_IsOK(ecode5)) {
15955 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
15956 }
15957 arg5 = static_cast< int >(val5);
15958 {
15959 PyThreadState* __tstate = wxPyBeginAllowThreads();
15960 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
15961 wxPyEndAllowThreads(__tstate);
15962 if (PyErr_Occurred()) SWIG_fail;
15963 }
15964 resultobj = SWIG_Py_Void();
15965 return resultobj;
15966 fail:
15967 return NULL;
15968 }
15969
15970
15971 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15972 PyObject *resultobj = 0;
15973 wxDC *arg1 = (wxDC *) 0 ;
15974 wxRect *arg2 = 0 ;
15975 void *argp1 = 0 ;
15976 int res1 = 0 ;
15977 wxRect temp2 ;
15978 PyObject * obj0 = 0 ;
15979 PyObject * obj1 = 0 ;
15980 char * kwnames[] = {
15981 (char *) "self",(char *) "rect", NULL
15982 };
15983
15984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
15985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15986 if (!SWIG_IsOK(res1)) {
15987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
15988 }
15989 arg1 = reinterpret_cast< wxDC * >(argp1);
15990 {
15991 arg2 = &temp2;
15992 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15993 }
15994 {
15995 PyThreadState* __tstate = wxPyBeginAllowThreads();
15996 (arg1)->DrawEllipse((wxRect const &)*arg2);
15997 wxPyEndAllowThreads(__tstate);
15998 if (PyErr_Occurred()) SWIG_fail;
15999 }
16000 resultobj = SWIG_Py_Void();
16001 return resultobj;
16002 fail:
16003 return NULL;
16004 }
16005
16006
16007 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16008 PyObject *resultobj = 0;
16009 wxDC *arg1 = (wxDC *) 0 ;
16010 wxPoint *arg2 = 0 ;
16011 wxSize *arg3 = 0 ;
16012 void *argp1 = 0 ;
16013 int res1 = 0 ;
16014 wxPoint temp2 ;
16015 wxSize temp3 ;
16016 PyObject * obj0 = 0 ;
16017 PyObject * obj1 = 0 ;
16018 PyObject * obj2 = 0 ;
16019 char * kwnames[] = {
16020 (char *) "self",(char *) "pt",(char *) "sz", NULL
16021 };
16022
16023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16025 if (!SWIG_IsOK(res1)) {
16026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16027 }
16028 arg1 = reinterpret_cast< wxDC * >(argp1);
16029 {
16030 arg2 = &temp2;
16031 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16032 }
16033 {
16034 arg3 = &temp3;
16035 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16036 }
16037 {
16038 PyThreadState* __tstate = wxPyBeginAllowThreads();
16039 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
16040 wxPyEndAllowThreads(__tstate);
16041 if (PyErr_Occurred()) SWIG_fail;
16042 }
16043 resultobj = SWIG_Py_Void();
16044 return resultobj;
16045 fail:
16046 return NULL;
16047 }
16048
16049
16050 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16051 PyObject *resultobj = 0;
16052 wxDC *arg1 = (wxDC *) 0 ;
16053 wxIcon *arg2 = 0 ;
16054 int arg3 ;
16055 int arg4 ;
16056 void *argp1 = 0 ;
16057 int res1 = 0 ;
16058 void *argp2 = 0 ;
16059 int res2 = 0 ;
16060 int val3 ;
16061 int ecode3 = 0 ;
16062 int val4 ;
16063 int ecode4 = 0 ;
16064 PyObject * obj0 = 0 ;
16065 PyObject * obj1 = 0 ;
16066 PyObject * obj2 = 0 ;
16067 PyObject * obj3 = 0 ;
16068 char * kwnames[] = {
16069 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
16070 };
16071
16072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16074 if (!SWIG_IsOK(res1)) {
16075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
16076 }
16077 arg1 = reinterpret_cast< wxDC * >(argp1);
16078 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16079 if (!SWIG_IsOK(res2)) {
16080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16081 }
16082 if (!argp2) {
16083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16084 }
16085 arg2 = reinterpret_cast< wxIcon * >(argp2);
16086 ecode3 = SWIG_AsVal_int(obj2, &val3);
16087 if (!SWIG_IsOK(ecode3)) {
16088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
16089 }
16090 arg3 = static_cast< int >(val3);
16091 ecode4 = SWIG_AsVal_int(obj3, &val4);
16092 if (!SWIG_IsOK(ecode4)) {
16093 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
16094 }
16095 arg4 = static_cast< int >(val4);
16096 {
16097 PyThreadState* __tstate = wxPyBeginAllowThreads();
16098 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
16099 wxPyEndAllowThreads(__tstate);
16100 if (PyErr_Occurred()) SWIG_fail;
16101 }
16102 resultobj = SWIG_Py_Void();
16103 return resultobj;
16104 fail:
16105 return NULL;
16106 }
16107
16108
16109 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16110 PyObject *resultobj = 0;
16111 wxDC *arg1 = (wxDC *) 0 ;
16112 wxIcon *arg2 = 0 ;
16113 wxPoint *arg3 = 0 ;
16114 void *argp1 = 0 ;
16115 int res1 = 0 ;
16116 void *argp2 = 0 ;
16117 int res2 = 0 ;
16118 wxPoint temp3 ;
16119 PyObject * obj0 = 0 ;
16120 PyObject * obj1 = 0 ;
16121 PyObject * obj2 = 0 ;
16122 char * kwnames[] = {
16123 (char *) "self",(char *) "icon",(char *) "pt", NULL
16124 };
16125
16126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16128 if (!SWIG_IsOK(res1)) {
16129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16130 }
16131 arg1 = reinterpret_cast< wxDC * >(argp1);
16132 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16133 if (!SWIG_IsOK(res2)) {
16134 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16135 }
16136 if (!argp2) {
16137 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16138 }
16139 arg2 = reinterpret_cast< wxIcon * >(argp2);
16140 {
16141 arg3 = &temp3;
16142 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16143 }
16144 {
16145 PyThreadState* __tstate = wxPyBeginAllowThreads();
16146 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
16147 wxPyEndAllowThreads(__tstate);
16148 if (PyErr_Occurred()) SWIG_fail;
16149 }
16150 resultobj = SWIG_Py_Void();
16151 return resultobj;
16152 fail:
16153 return NULL;
16154 }
16155
16156
16157 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16158 PyObject *resultobj = 0;
16159 wxDC *arg1 = (wxDC *) 0 ;
16160 wxBitmap *arg2 = 0 ;
16161 int arg3 ;
16162 int arg4 ;
16163 bool arg5 = (bool) false ;
16164 void *argp1 = 0 ;
16165 int res1 = 0 ;
16166 void *argp2 = 0 ;
16167 int res2 = 0 ;
16168 int val3 ;
16169 int ecode3 = 0 ;
16170 int val4 ;
16171 int ecode4 = 0 ;
16172 bool val5 ;
16173 int ecode5 = 0 ;
16174 PyObject * obj0 = 0 ;
16175 PyObject * obj1 = 0 ;
16176 PyObject * obj2 = 0 ;
16177 PyObject * obj3 = 0 ;
16178 PyObject * obj4 = 0 ;
16179 char * kwnames[] = {
16180 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16181 };
16182
16183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16185 if (!SWIG_IsOK(res1)) {
16186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16187 }
16188 arg1 = reinterpret_cast< wxDC * >(argp1);
16189 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16190 if (!SWIG_IsOK(res2)) {
16191 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16192 }
16193 if (!argp2) {
16194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16195 }
16196 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16197 ecode3 = SWIG_AsVal_int(obj2, &val3);
16198 if (!SWIG_IsOK(ecode3)) {
16199 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16200 }
16201 arg3 = static_cast< int >(val3);
16202 ecode4 = SWIG_AsVal_int(obj3, &val4);
16203 if (!SWIG_IsOK(ecode4)) {
16204 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16205 }
16206 arg4 = static_cast< int >(val4);
16207 if (obj4) {
16208 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16209 if (!SWIG_IsOK(ecode5)) {
16210 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16211 }
16212 arg5 = static_cast< bool >(val5);
16213 }
16214 {
16215 PyThreadState* __tstate = wxPyBeginAllowThreads();
16216 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
16217 wxPyEndAllowThreads(__tstate);
16218 if (PyErr_Occurred()) SWIG_fail;
16219 }
16220 resultobj = SWIG_Py_Void();
16221 return resultobj;
16222 fail:
16223 return NULL;
16224 }
16225
16226
16227 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16228 PyObject *resultobj = 0;
16229 wxDC *arg1 = (wxDC *) 0 ;
16230 wxBitmap *arg2 = 0 ;
16231 wxPoint *arg3 = 0 ;
16232 bool arg4 = (bool) false ;
16233 void *argp1 = 0 ;
16234 int res1 = 0 ;
16235 void *argp2 = 0 ;
16236 int res2 = 0 ;
16237 wxPoint temp3 ;
16238 bool val4 ;
16239 int ecode4 = 0 ;
16240 PyObject * obj0 = 0 ;
16241 PyObject * obj1 = 0 ;
16242 PyObject * obj2 = 0 ;
16243 PyObject * obj3 = 0 ;
16244 char * kwnames[] = {
16245 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16246 };
16247
16248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16250 if (!SWIG_IsOK(res1)) {
16251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16252 }
16253 arg1 = reinterpret_cast< wxDC * >(argp1);
16254 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16255 if (!SWIG_IsOK(res2)) {
16256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16257 }
16258 if (!argp2) {
16259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16260 }
16261 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16262 {
16263 arg3 = &temp3;
16264 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16265 }
16266 if (obj3) {
16267 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16268 if (!SWIG_IsOK(ecode4)) {
16269 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16270 }
16271 arg4 = static_cast< bool >(val4);
16272 }
16273 {
16274 PyThreadState* __tstate = wxPyBeginAllowThreads();
16275 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
16276 wxPyEndAllowThreads(__tstate);
16277 if (PyErr_Occurred()) SWIG_fail;
16278 }
16279 resultobj = SWIG_Py_Void();
16280 return resultobj;
16281 fail:
16282 return NULL;
16283 }
16284
16285
16286 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16287 PyObject *resultobj = 0;
16288 wxDC *arg1 = (wxDC *) 0 ;
16289 wxString *arg2 = 0 ;
16290 int arg3 ;
16291 int arg4 ;
16292 void *argp1 = 0 ;
16293 int res1 = 0 ;
16294 bool temp2 = false ;
16295 int val3 ;
16296 int ecode3 = 0 ;
16297 int val4 ;
16298 int ecode4 = 0 ;
16299 PyObject * obj0 = 0 ;
16300 PyObject * obj1 = 0 ;
16301 PyObject * obj2 = 0 ;
16302 PyObject * obj3 = 0 ;
16303 char * kwnames[] = {
16304 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16305 };
16306
16307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16309 if (!SWIG_IsOK(res1)) {
16310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16311 }
16312 arg1 = reinterpret_cast< wxDC * >(argp1);
16313 {
16314 arg2 = wxString_in_helper(obj1);
16315 if (arg2 == NULL) SWIG_fail;
16316 temp2 = true;
16317 }
16318 ecode3 = SWIG_AsVal_int(obj2, &val3);
16319 if (!SWIG_IsOK(ecode3)) {
16320 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16321 }
16322 arg3 = static_cast< int >(val3);
16323 ecode4 = SWIG_AsVal_int(obj3, &val4);
16324 if (!SWIG_IsOK(ecode4)) {
16325 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16326 }
16327 arg4 = static_cast< int >(val4);
16328 {
16329 PyThreadState* __tstate = wxPyBeginAllowThreads();
16330 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
16331 wxPyEndAllowThreads(__tstate);
16332 if (PyErr_Occurred()) SWIG_fail;
16333 }
16334 resultobj = SWIG_Py_Void();
16335 {
16336 if (temp2)
16337 delete arg2;
16338 }
16339 return resultobj;
16340 fail:
16341 {
16342 if (temp2)
16343 delete arg2;
16344 }
16345 return NULL;
16346 }
16347
16348
16349 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16350 PyObject *resultobj = 0;
16351 wxDC *arg1 = (wxDC *) 0 ;
16352 wxString *arg2 = 0 ;
16353 wxPoint *arg3 = 0 ;
16354 void *argp1 = 0 ;
16355 int res1 = 0 ;
16356 bool temp2 = false ;
16357 wxPoint temp3 ;
16358 PyObject * obj0 = 0 ;
16359 PyObject * obj1 = 0 ;
16360 PyObject * obj2 = 0 ;
16361 char * kwnames[] = {
16362 (char *) "self",(char *) "text",(char *) "pt", NULL
16363 };
16364
16365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16367 if (!SWIG_IsOK(res1)) {
16368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16369 }
16370 arg1 = reinterpret_cast< wxDC * >(argp1);
16371 {
16372 arg2 = wxString_in_helper(obj1);
16373 if (arg2 == NULL) SWIG_fail;
16374 temp2 = true;
16375 }
16376 {
16377 arg3 = &temp3;
16378 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16379 }
16380 {
16381 PyThreadState* __tstate = wxPyBeginAllowThreads();
16382 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
16383 wxPyEndAllowThreads(__tstate);
16384 if (PyErr_Occurred()) SWIG_fail;
16385 }
16386 resultobj = SWIG_Py_Void();
16387 {
16388 if (temp2)
16389 delete arg2;
16390 }
16391 return resultobj;
16392 fail:
16393 {
16394 if (temp2)
16395 delete arg2;
16396 }
16397 return NULL;
16398 }
16399
16400
16401 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16402 PyObject *resultobj = 0;
16403 wxDC *arg1 = (wxDC *) 0 ;
16404 wxString *arg2 = 0 ;
16405 int arg3 ;
16406 int arg4 ;
16407 double arg5 ;
16408 void *argp1 = 0 ;
16409 int res1 = 0 ;
16410 bool temp2 = false ;
16411 int val3 ;
16412 int ecode3 = 0 ;
16413 int val4 ;
16414 int ecode4 = 0 ;
16415 double val5 ;
16416 int ecode5 = 0 ;
16417 PyObject * obj0 = 0 ;
16418 PyObject * obj1 = 0 ;
16419 PyObject * obj2 = 0 ;
16420 PyObject * obj3 = 0 ;
16421 PyObject * obj4 = 0 ;
16422 char * kwnames[] = {
16423 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
16424 };
16425
16426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16428 if (!SWIG_IsOK(res1)) {
16429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
16430 }
16431 arg1 = reinterpret_cast< wxDC * >(argp1);
16432 {
16433 arg2 = wxString_in_helper(obj1);
16434 if (arg2 == NULL) SWIG_fail;
16435 temp2 = true;
16436 }
16437 ecode3 = SWIG_AsVal_int(obj2, &val3);
16438 if (!SWIG_IsOK(ecode3)) {
16439 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
16440 }
16441 arg3 = static_cast< int >(val3);
16442 ecode4 = SWIG_AsVal_int(obj3, &val4);
16443 if (!SWIG_IsOK(ecode4)) {
16444 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
16445 }
16446 arg4 = static_cast< int >(val4);
16447 ecode5 = SWIG_AsVal_double(obj4, &val5);
16448 if (!SWIG_IsOK(ecode5)) {
16449 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
16450 }
16451 arg5 = static_cast< double >(val5);
16452 {
16453 PyThreadState* __tstate = wxPyBeginAllowThreads();
16454 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
16455 wxPyEndAllowThreads(__tstate);
16456 if (PyErr_Occurred()) SWIG_fail;
16457 }
16458 resultobj = SWIG_Py_Void();
16459 {
16460 if (temp2)
16461 delete arg2;
16462 }
16463 return resultobj;
16464 fail:
16465 {
16466 if (temp2)
16467 delete arg2;
16468 }
16469 return NULL;
16470 }
16471
16472
16473 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16474 PyObject *resultobj = 0;
16475 wxDC *arg1 = (wxDC *) 0 ;
16476 wxString *arg2 = 0 ;
16477 wxPoint *arg3 = 0 ;
16478 double arg4 ;
16479 void *argp1 = 0 ;
16480 int res1 = 0 ;
16481 bool temp2 = false ;
16482 wxPoint temp3 ;
16483 double val4 ;
16484 int ecode4 = 0 ;
16485 PyObject * obj0 = 0 ;
16486 PyObject * obj1 = 0 ;
16487 PyObject * obj2 = 0 ;
16488 PyObject * obj3 = 0 ;
16489 char * kwnames[] = {
16490 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
16491 };
16492
16493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16495 if (!SWIG_IsOK(res1)) {
16496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16497 }
16498 arg1 = reinterpret_cast< wxDC * >(argp1);
16499 {
16500 arg2 = wxString_in_helper(obj1);
16501 if (arg2 == NULL) SWIG_fail;
16502 temp2 = true;
16503 }
16504 {
16505 arg3 = &temp3;
16506 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16507 }
16508 ecode4 = SWIG_AsVal_double(obj3, &val4);
16509 if (!SWIG_IsOK(ecode4)) {
16510 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
16511 }
16512 arg4 = static_cast< double >(val4);
16513 {
16514 PyThreadState* __tstate = wxPyBeginAllowThreads();
16515 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
16516 wxPyEndAllowThreads(__tstate);
16517 if (PyErr_Occurred()) SWIG_fail;
16518 }
16519 resultobj = SWIG_Py_Void();
16520 {
16521 if (temp2)
16522 delete arg2;
16523 }
16524 return resultobj;
16525 fail:
16526 {
16527 if (temp2)
16528 delete arg2;
16529 }
16530 return NULL;
16531 }
16532
16533
16534 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16535 PyObject *resultobj = 0;
16536 wxDC *arg1 = (wxDC *) 0 ;
16537 int arg2 ;
16538 int arg3 ;
16539 int arg4 ;
16540 int arg5 ;
16541 wxDC *arg6 = (wxDC *) 0 ;
16542 int arg7 ;
16543 int arg8 ;
16544 int arg9 = (int) wxCOPY ;
16545 bool arg10 = (bool) false ;
16546 int arg11 = (int) -1 ;
16547 int arg12 = (int) -1 ;
16548 bool result;
16549 void *argp1 = 0 ;
16550 int res1 = 0 ;
16551 int val2 ;
16552 int ecode2 = 0 ;
16553 int val3 ;
16554 int ecode3 = 0 ;
16555 int val4 ;
16556 int ecode4 = 0 ;
16557 int val5 ;
16558 int ecode5 = 0 ;
16559 void *argp6 = 0 ;
16560 int res6 = 0 ;
16561 int val7 ;
16562 int ecode7 = 0 ;
16563 int val8 ;
16564 int ecode8 = 0 ;
16565 int val9 ;
16566 int ecode9 = 0 ;
16567 bool val10 ;
16568 int ecode10 = 0 ;
16569 int val11 ;
16570 int ecode11 = 0 ;
16571 int val12 ;
16572 int ecode12 = 0 ;
16573 PyObject * obj0 = 0 ;
16574 PyObject * obj1 = 0 ;
16575 PyObject * obj2 = 0 ;
16576 PyObject * obj3 = 0 ;
16577 PyObject * obj4 = 0 ;
16578 PyObject * obj5 = 0 ;
16579 PyObject * obj6 = 0 ;
16580 PyObject * obj7 = 0 ;
16581 PyObject * obj8 = 0 ;
16582 PyObject * obj9 = 0 ;
16583 PyObject * obj10 = 0 ;
16584 PyObject * obj11 = 0 ;
16585 char * kwnames[] = {
16586 (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
16587 };
16588
16589 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;
16590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16591 if (!SWIG_IsOK(res1)) {
16592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
16593 }
16594 arg1 = reinterpret_cast< wxDC * >(argp1);
16595 ecode2 = SWIG_AsVal_int(obj1, &val2);
16596 if (!SWIG_IsOK(ecode2)) {
16597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
16598 }
16599 arg2 = static_cast< int >(val2);
16600 ecode3 = SWIG_AsVal_int(obj2, &val3);
16601 if (!SWIG_IsOK(ecode3)) {
16602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
16603 }
16604 arg3 = static_cast< int >(val3);
16605 ecode4 = SWIG_AsVal_int(obj3, &val4);
16606 if (!SWIG_IsOK(ecode4)) {
16607 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
16608 }
16609 arg4 = static_cast< int >(val4);
16610 ecode5 = SWIG_AsVal_int(obj4, &val5);
16611 if (!SWIG_IsOK(ecode5)) {
16612 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
16613 }
16614 arg5 = static_cast< int >(val5);
16615 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
16616 if (!SWIG_IsOK(res6)) {
16617 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
16618 }
16619 arg6 = reinterpret_cast< wxDC * >(argp6);
16620 ecode7 = SWIG_AsVal_int(obj6, &val7);
16621 if (!SWIG_IsOK(ecode7)) {
16622 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
16623 }
16624 arg7 = static_cast< int >(val7);
16625 ecode8 = SWIG_AsVal_int(obj7, &val8);
16626 if (!SWIG_IsOK(ecode8)) {
16627 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
16628 }
16629 arg8 = static_cast< int >(val8);
16630 if (obj8) {
16631 ecode9 = SWIG_AsVal_int(obj8, &val9);
16632 if (!SWIG_IsOK(ecode9)) {
16633 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
16634 }
16635 arg9 = static_cast< int >(val9);
16636 }
16637 if (obj9) {
16638 ecode10 = SWIG_AsVal_bool(obj9, &val10);
16639 if (!SWIG_IsOK(ecode10)) {
16640 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
16641 }
16642 arg10 = static_cast< bool >(val10);
16643 }
16644 if (obj10) {
16645 ecode11 = SWIG_AsVal_int(obj10, &val11);
16646 if (!SWIG_IsOK(ecode11)) {
16647 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
16648 }
16649 arg11 = static_cast< int >(val11);
16650 }
16651 if (obj11) {
16652 ecode12 = SWIG_AsVal_int(obj11, &val12);
16653 if (!SWIG_IsOK(ecode12)) {
16654 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
16655 }
16656 arg12 = static_cast< int >(val12);
16657 }
16658 {
16659 PyThreadState* __tstate = wxPyBeginAllowThreads();
16660 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
16661 wxPyEndAllowThreads(__tstate);
16662 if (PyErr_Occurred()) SWIG_fail;
16663 }
16664 {
16665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16666 }
16667 return resultobj;
16668 fail:
16669 return NULL;
16670 }
16671
16672
16673 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16674 PyObject *resultobj = 0;
16675 wxDC *arg1 = (wxDC *) 0 ;
16676 wxPoint *arg2 = 0 ;
16677 wxSize *arg3 = 0 ;
16678 wxDC *arg4 = (wxDC *) 0 ;
16679 wxPoint *arg5 = 0 ;
16680 int arg6 = (int) wxCOPY ;
16681 bool arg7 = (bool) false ;
16682 wxPoint const &arg8_defvalue = wxDefaultPosition ;
16683 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
16684 bool result;
16685 void *argp1 = 0 ;
16686 int res1 = 0 ;
16687 wxPoint temp2 ;
16688 wxSize temp3 ;
16689 void *argp4 = 0 ;
16690 int res4 = 0 ;
16691 wxPoint temp5 ;
16692 int val6 ;
16693 int ecode6 = 0 ;
16694 bool val7 ;
16695 int ecode7 = 0 ;
16696 wxPoint temp8 ;
16697 PyObject * obj0 = 0 ;
16698 PyObject * obj1 = 0 ;
16699 PyObject * obj2 = 0 ;
16700 PyObject * obj3 = 0 ;
16701 PyObject * obj4 = 0 ;
16702 PyObject * obj5 = 0 ;
16703 PyObject * obj6 = 0 ;
16704 PyObject * obj7 = 0 ;
16705 char * kwnames[] = {
16706 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
16707 };
16708
16709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16711 if (!SWIG_IsOK(res1)) {
16712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16713 }
16714 arg1 = reinterpret_cast< wxDC * >(argp1);
16715 {
16716 arg2 = &temp2;
16717 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16718 }
16719 {
16720 arg3 = &temp3;
16721 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16722 }
16723 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
16724 if (!SWIG_IsOK(res4)) {
16725 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
16726 }
16727 arg4 = reinterpret_cast< wxDC * >(argp4);
16728 {
16729 arg5 = &temp5;
16730 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16731 }
16732 if (obj5) {
16733 ecode6 = SWIG_AsVal_int(obj5, &val6);
16734 if (!SWIG_IsOK(ecode6)) {
16735 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
16736 }
16737 arg6 = static_cast< int >(val6);
16738 }
16739 if (obj6) {
16740 ecode7 = SWIG_AsVal_bool(obj6, &val7);
16741 if (!SWIG_IsOK(ecode7)) {
16742 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
16743 }
16744 arg7 = static_cast< bool >(val7);
16745 }
16746 if (obj7) {
16747 {
16748 arg8 = &temp8;
16749 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
16750 }
16751 }
16752 {
16753 PyThreadState* __tstate = wxPyBeginAllowThreads();
16754 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
16755 wxPyEndAllowThreads(__tstate);
16756 if (PyErr_Occurred()) SWIG_fail;
16757 }
16758 {
16759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16760 }
16761 return resultobj;
16762 fail:
16763 return NULL;
16764 }
16765
16766
16767 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16768 PyObject *resultobj = 0;
16769 wxDC *arg1 = (wxDC *) 0 ;
16770 int arg2 ;
16771 int arg3 ;
16772 int arg4 ;
16773 int arg5 ;
16774 void *argp1 = 0 ;
16775 int res1 = 0 ;
16776 int val2 ;
16777 int ecode2 = 0 ;
16778 int val3 ;
16779 int ecode3 = 0 ;
16780 int val4 ;
16781 int ecode4 = 0 ;
16782 int val5 ;
16783 int ecode5 = 0 ;
16784 PyObject * obj0 = 0 ;
16785 PyObject * obj1 = 0 ;
16786 PyObject * obj2 = 0 ;
16787 PyObject * obj3 = 0 ;
16788 PyObject * obj4 = 0 ;
16789 char * kwnames[] = {
16790 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16791 };
16792
16793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16795 if (!SWIG_IsOK(res1)) {
16796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16797 }
16798 arg1 = reinterpret_cast< wxDC * >(argp1);
16799 ecode2 = SWIG_AsVal_int(obj1, &val2);
16800 if (!SWIG_IsOK(ecode2)) {
16801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
16802 }
16803 arg2 = static_cast< int >(val2);
16804 ecode3 = SWIG_AsVal_int(obj2, &val3);
16805 if (!SWIG_IsOK(ecode3)) {
16806 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
16807 }
16808 arg3 = static_cast< int >(val3);
16809 ecode4 = SWIG_AsVal_int(obj3, &val4);
16810 if (!SWIG_IsOK(ecode4)) {
16811 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
16812 }
16813 arg4 = static_cast< int >(val4);
16814 ecode5 = SWIG_AsVal_int(obj4, &val5);
16815 if (!SWIG_IsOK(ecode5)) {
16816 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
16817 }
16818 arg5 = static_cast< int >(val5);
16819 {
16820 PyThreadState* __tstate = wxPyBeginAllowThreads();
16821 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
16822 wxPyEndAllowThreads(__tstate);
16823 if (PyErr_Occurred()) SWIG_fail;
16824 }
16825 resultobj = SWIG_Py_Void();
16826 return resultobj;
16827 fail:
16828 return NULL;
16829 }
16830
16831
16832 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16833 PyObject *resultobj = 0;
16834 wxDC *arg1 = (wxDC *) 0 ;
16835 wxPoint *arg2 = 0 ;
16836 wxSize *arg3 = 0 ;
16837 void *argp1 = 0 ;
16838 int res1 = 0 ;
16839 wxPoint temp2 ;
16840 wxSize temp3 ;
16841 PyObject * obj0 = 0 ;
16842 PyObject * obj1 = 0 ;
16843 PyObject * obj2 = 0 ;
16844 char * kwnames[] = {
16845 (char *) "self",(char *) "pt",(char *) "sz", NULL
16846 };
16847
16848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16850 if (!SWIG_IsOK(res1)) {
16851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16852 }
16853 arg1 = reinterpret_cast< wxDC * >(argp1);
16854 {
16855 arg2 = &temp2;
16856 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16857 }
16858 {
16859 arg3 = &temp3;
16860 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16861 }
16862 {
16863 PyThreadState* __tstate = wxPyBeginAllowThreads();
16864 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
16865 wxPyEndAllowThreads(__tstate);
16866 if (PyErr_Occurred()) SWIG_fail;
16867 }
16868 resultobj = SWIG_Py_Void();
16869 return resultobj;
16870 fail:
16871 return NULL;
16872 }
16873
16874
16875 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16876 PyObject *resultobj = 0;
16877 wxDC *arg1 = (wxDC *) 0 ;
16878 wxRegion *arg2 = 0 ;
16879 void *argp1 = 0 ;
16880 int res1 = 0 ;
16881 void *argp2 = 0 ;
16882 int res2 = 0 ;
16883 PyObject * obj0 = 0 ;
16884 PyObject * obj1 = 0 ;
16885 char * kwnames[] = {
16886 (char *) "self",(char *) "region", NULL
16887 };
16888
16889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
16890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16891 if (!SWIG_IsOK(res1)) {
16892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16893 }
16894 arg1 = reinterpret_cast< wxDC * >(argp1);
16895 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
16896 if (!SWIG_IsOK(res2)) {
16897 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16898 }
16899 if (!argp2) {
16900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16901 }
16902 arg2 = reinterpret_cast< wxRegion * >(argp2);
16903 {
16904 PyThreadState* __tstate = wxPyBeginAllowThreads();
16905 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
16906 wxPyEndAllowThreads(__tstate);
16907 if (PyErr_Occurred()) SWIG_fail;
16908 }
16909 resultobj = SWIG_Py_Void();
16910 return resultobj;
16911 fail:
16912 return NULL;
16913 }
16914
16915
16916 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16917 PyObject *resultobj = 0;
16918 wxDC *arg1 = (wxDC *) 0 ;
16919 wxRect *arg2 = 0 ;
16920 void *argp1 = 0 ;
16921 int res1 = 0 ;
16922 wxRect temp2 ;
16923 PyObject * obj0 = 0 ;
16924 PyObject * obj1 = 0 ;
16925 char * kwnames[] = {
16926 (char *) "self",(char *) "rect", NULL
16927 };
16928
16929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
16930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16931 if (!SWIG_IsOK(res1)) {
16932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
16933 }
16934 arg1 = reinterpret_cast< wxDC * >(argp1);
16935 {
16936 arg2 = &temp2;
16937 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16938 }
16939 {
16940 PyThreadState* __tstate = wxPyBeginAllowThreads();
16941 (arg1)->SetClippingRegion((wxRect const &)*arg2);
16942 wxPyEndAllowThreads(__tstate);
16943 if (PyErr_Occurred()) SWIG_fail;
16944 }
16945 resultobj = SWIG_Py_Void();
16946 return resultobj;
16947 fail:
16948 return NULL;
16949 }
16950
16951
16952 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16953 PyObject *resultobj = 0;
16954 wxDC *arg1 = (wxDC *) 0 ;
16955 int arg2 ;
16956 wxPoint *arg3 = (wxPoint *) 0 ;
16957 int arg4 = (int) 0 ;
16958 int arg5 = (int) 0 ;
16959 void *argp1 = 0 ;
16960 int res1 = 0 ;
16961 int val4 ;
16962 int ecode4 = 0 ;
16963 int val5 ;
16964 int ecode5 = 0 ;
16965 PyObject * obj0 = 0 ;
16966 PyObject * obj1 = 0 ;
16967 PyObject * obj2 = 0 ;
16968 PyObject * obj3 = 0 ;
16969 char * kwnames[] = {
16970 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
16971 };
16972
16973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16975 if (!SWIG_IsOK(res1)) {
16976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
16977 }
16978 arg1 = reinterpret_cast< wxDC * >(argp1);
16979 {
16980 arg3 = wxPoint_LIST_helper(obj1, &arg2);
16981 if (arg3 == NULL) SWIG_fail;
16982 }
16983 if (obj2) {
16984 ecode4 = SWIG_AsVal_int(obj2, &val4);
16985 if (!SWIG_IsOK(ecode4)) {
16986 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
16987 }
16988 arg4 = static_cast< int >(val4);
16989 }
16990 if (obj3) {
16991 ecode5 = SWIG_AsVal_int(obj3, &val5);
16992 if (!SWIG_IsOK(ecode5)) {
16993 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
16994 }
16995 arg5 = static_cast< int >(val5);
16996 }
16997 {
16998 PyThreadState* __tstate = wxPyBeginAllowThreads();
16999 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
17000 wxPyEndAllowThreads(__tstate);
17001 if (PyErr_Occurred()) SWIG_fail;
17002 }
17003 resultobj = SWIG_Py_Void();
17004 {
17005 if (arg3) delete [] arg3;
17006 }
17007 return resultobj;
17008 fail:
17009 {
17010 if (arg3) delete [] arg3;
17011 }
17012 return NULL;
17013 }
17014
17015
17016 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17017 PyObject *resultobj = 0;
17018 wxDC *arg1 = (wxDC *) 0 ;
17019 int arg2 ;
17020 wxPoint *arg3 = (wxPoint *) 0 ;
17021 int arg4 = (int) 0 ;
17022 int arg5 = (int) 0 ;
17023 int arg6 = (int) wxODDEVEN_RULE ;
17024 void *argp1 = 0 ;
17025 int res1 = 0 ;
17026 int val4 ;
17027 int ecode4 = 0 ;
17028 int val5 ;
17029 int ecode5 = 0 ;
17030 int val6 ;
17031 int ecode6 = 0 ;
17032 PyObject * obj0 = 0 ;
17033 PyObject * obj1 = 0 ;
17034 PyObject * obj2 = 0 ;
17035 PyObject * obj3 = 0 ;
17036 PyObject * obj4 = 0 ;
17037 char * kwnames[] = {
17038 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
17039 };
17040
17041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17043 if (!SWIG_IsOK(res1)) {
17044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
17045 }
17046 arg1 = reinterpret_cast< wxDC * >(argp1);
17047 {
17048 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17049 if (arg3 == NULL) SWIG_fail;
17050 }
17051 if (obj2) {
17052 ecode4 = SWIG_AsVal_int(obj2, &val4);
17053 if (!SWIG_IsOK(ecode4)) {
17054 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
17055 }
17056 arg4 = static_cast< int >(val4);
17057 }
17058 if (obj3) {
17059 ecode5 = SWIG_AsVal_int(obj3, &val5);
17060 if (!SWIG_IsOK(ecode5)) {
17061 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
17062 }
17063 arg5 = static_cast< int >(val5);
17064 }
17065 if (obj4) {
17066 ecode6 = SWIG_AsVal_int(obj4, &val6);
17067 if (!SWIG_IsOK(ecode6)) {
17068 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
17069 }
17070 arg6 = static_cast< int >(val6);
17071 }
17072 {
17073 PyThreadState* __tstate = wxPyBeginAllowThreads();
17074 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
17075 wxPyEndAllowThreads(__tstate);
17076 if (PyErr_Occurred()) SWIG_fail;
17077 }
17078 resultobj = SWIG_Py_Void();
17079 {
17080 if (arg3) delete [] arg3;
17081 }
17082 return resultobj;
17083 fail:
17084 {
17085 if (arg3) delete [] arg3;
17086 }
17087 return NULL;
17088 }
17089
17090
17091 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17092 PyObject *resultobj = 0;
17093 wxDC *arg1 = (wxDC *) 0 ;
17094 wxString *arg2 = 0 ;
17095 wxRect *arg3 = 0 ;
17096 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17097 int arg5 = (int) -1 ;
17098 void *argp1 = 0 ;
17099 int res1 = 0 ;
17100 bool temp2 = false ;
17101 wxRect temp3 ;
17102 int val4 ;
17103 int ecode4 = 0 ;
17104 int val5 ;
17105 int ecode5 = 0 ;
17106 PyObject * obj0 = 0 ;
17107 PyObject * obj1 = 0 ;
17108 PyObject * obj2 = 0 ;
17109 PyObject * obj3 = 0 ;
17110 PyObject * obj4 = 0 ;
17111 char * kwnames[] = {
17112 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17113 };
17114
17115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17117 if (!SWIG_IsOK(res1)) {
17118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17119 }
17120 arg1 = reinterpret_cast< wxDC * >(argp1);
17121 {
17122 arg2 = wxString_in_helper(obj1);
17123 if (arg2 == NULL) SWIG_fail;
17124 temp2 = true;
17125 }
17126 {
17127 arg3 = &temp3;
17128 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17129 }
17130 if (obj3) {
17131 ecode4 = SWIG_AsVal_int(obj3, &val4);
17132 if (!SWIG_IsOK(ecode4)) {
17133 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17134 }
17135 arg4 = static_cast< int >(val4);
17136 }
17137 if (obj4) {
17138 ecode5 = SWIG_AsVal_int(obj4, &val5);
17139 if (!SWIG_IsOK(ecode5)) {
17140 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17141 }
17142 arg5 = static_cast< int >(val5);
17143 }
17144 {
17145 PyThreadState* __tstate = wxPyBeginAllowThreads();
17146 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
17147 wxPyEndAllowThreads(__tstate);
17148 if (PyErr_Occurred()) SWIG_fail;
17149 }
17150 resultobj = SWIG_Py_Void();
17151 {
17152 if (temp2)
17153 delete arg2;
17154 }
17155 return resultobj;
17156 fail:
17157 {
17158 if (temp2)
17159 delete arg2;
17160 }
17161 return NULL;
17162 }
17163
17164
17165 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17166 PyObject *resultobj = 0;
17167 wxDC *arg1 = (wxDC *) 0 ;
17168 wxString *arg2 = 0 ;
17169 wxBitmap *arg3 = 0 ;
17170 wxRect *arg4 = 0 ;
17171 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17172 int arg6 = (int) -1 ;
17173 wxRect result;
17174 void *argp1 = 0 ;
17175 int res1 = 0 ;
17176 bool temp2 = false ;
17177 void *argp3 = 0 ;
17178 int res3 = 0 ;
17179 wxRect temp4 ;
17180 int val5 ;
17181 int ecode5 = 0 ;
17182 int val6 ;
17183 int ecode6 = 0 ;
17184 PyObject * obj0 = 0 ;
17185 PyObject * obj1 = 0 ;
17186 PyObject * obj2 = 0 ;
17187 PyObject * obj3 = 0 ;
17188 PyObject * obj4 = 0 ;
17189 PyObject * obj5 = 0 ;
17190 char * kwnames[] = {
17191 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17192 };
17193
17194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17196 if (!SWIG_IsOK(res1)) {
17197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17198 }
17199 arg1 = reinterpret_cast< wxDC * >(argp1);
17200 {
17201 arg2 = wxString_in_helper(obj1);
17202 if (arg2 == NULL) SWIG_fail;
17203 temp2 = true;
17204 }
17205 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
17206 if (!SWIG_IsOK(res3)) {
17207 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17208 }
17209 if (!argp3) {
17210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17211 }
17212 arg3 = reinterpret_cast< wxBitmap * >(argp3);
17213 {
17214 arg4 = &temp4;
17215 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
17216 }
17217 if (obj4) {
17218 ecode5 = SWIG_AsVal_int(obj4, &val5);
17219 if (!SWIG_IsOK(ecode5)) {
17220 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17221 }
17222 arg5 = static_cast< int >(val5);
17223 }
17224 if (obj5) {
17225 ecode6 = SWIG_AsVal_int(obj5, &val6);
17226 if (!SWIG_IsOK(ecode6)) {
17227 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17228 }
17229 arg6 = static_cast< int >(val6);
17230 }
17231 {
17232 PyThreadState* __tstate = wxPyBeginAllowThreads();
17233 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
17234 wxPyEndAllowThreads(__tstate);
17235 if (PyErr_Occurred()) SWIG_fail;
17236 }
17237 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17238 {
17239 if (temp2)
17240 delete arg2;
17241 }
17242 return resultobj;
17243 fail:
17244 {
17245 if (temp2)
17246 delete arg2;
17247 }
17248 return NULL;
17249 }
17250
17251
17252 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17253 PyObject *resultobj = 0;
17254 wxDC *arg1 = (wxDC *) 0 ;
17255 int arg2 ;
17256 wxPoint *arg3 = (wxPoint *) 0 ;
17257 void *argp1 = 0 ;
17258 int res1 = 0 ;
17259 PyObject * obj0 = 0 ;
17260 PyObject * obj1 = 0 ;
17261 char * kwnames[] = {
17262 (char *) "self",(char *) "points", NULL
17263 };
17264
17265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
17266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17267 if (!SWIG_IsOK(res1)) {
17268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17269 }
17270 arg1 = reinterpret_cast< wxDC * >(argp1);
17271 {
17272 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17273 if (arg3 == NULL) SWIG_fail;
17274 }
17275 {
17276 PyThreadState* __tstate = wxPyBeginAllowThreads();
17277 (arg1)->DrawSpline(arg2,arg3);
17278 wxPyEndAllowThreads(__tstate);
17279 if (PyErr_Occurred()) SWIG_fail;
17280 }
17281 resultobj = SWIG_Py_Void();
17282 {
17283 if (arg3) delete [] arg3;
17284 }
17285 return resultobj;
17286 fail:
17287 {
17288 if (arg3) delete [] arg3;
17289 }
17290 return NULL;
17291 }
17292
17293
17294 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17295 PyObject *resultobj = 0;
17296 wxDC *arg1 = (wxDC *) 0 ;
17297 void *argp1 = 0 ;
17298 int res1 = 0 ;
17299 PyObject *swig_obj[1] ;
17300
17301 if (!args) SWIG_fail;
17302 swig_obj[0] = args;
17303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17304 if (!SWIG_IsOK(res1)) {
17305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17306 }
17307 arg1 = reinterpret_cast< wxDC * >(argp1);
17308 {
17309 PyThreadState* __tstate = wxPyBeginAllowThreads();
17310 (arg1)->Clear();
17311 wxPyEndAllowThreads(__tstate);
17312 if (PyErr_Occurred()) SWIG_fail;
17313 }
17314 resultobj = SWIG_Py_Void();
17315 return resultobj;
17316 fail:
17317 return NULL;
17318 }
17319
17320
17321 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17322 PyObject *resultobj = 0;
17323 wxDC *arg1 = (wxDC *) 0 ;
17324 wxString *arg2 = 0 ;
17325 bool result;
17326 void *argp1 = 0 ;
17327 int res1 = 0 ;
17328 bool temp2 = false ;
17329 PyObject * obj0 = 0 ;
17330 PyObject * obj1 = 0 ;
17331 char * kwnames[] = {
17332 (char *) "self",(char *) "message", NULL
17333 };
17334
17335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
17336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17337 if (!SWIG_IsOK(res1)) {
17338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17339 }
17340 arg1 = reinterpret_cast< wxDC * >(argp1);
17341 {
17342 arg2 = wxString_in_helper(obj1);
17343 if (arg2 == NULL) SWIG_fail;
17344 temp2 = true;
17345 }
17346 {
17347 PyThreadState* __tstate = wxPyBeginAllowThreads();
17348 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
17349 wxPyEndAllowThreads(__tstate);
17350 if (PyErr_Occurred()) SWIG_fail;
17351 }
17352 {
17353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17354 }
17355 {
17356 if (temp2)
17357 delete arg2;
17358 }
17359 return resultobj;
17360 fail:
17361 {
17362 if (temp2)
17363 delete arg2;
17364 }
17365 return NULL;
17366 }
17367
17368
17369 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17370 PyObject *resultobj = 0;
17371 wxDC *arg1 = (wxDC *) 0 ;
17372 void *argp1 = 0 ;
17373 int res1 = 0 ;
17374 PyObject *swig_obj[1] ;
17375
17376 if (!args) SWIG_fail;
17377 swig_obj[0] = args;
17378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17379 if (!SWIG_IsOK(res1)) {
17380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17381 }
17382 arg1 = reinterpret_cast< wxDC * >(argp1);
17383 {
17384 PyThreadState* __tstate = wxPyBeginAllowThreads();
17385 (arg1)->EndDoc();
17386 wxPyEndAllowThreads(__tstate);
17387 if (PyErr_Occurred()) SWIG_fail;
17388 }
17389 resultobj = SWIG_Py_Void();
17390 return resultobj;
17391 fail:
17392 return NULL;
17393 }
17394
17395
17396 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17397 PyObject *resultobj = 0;
17398 wxDC *arg1 = (wxDC *) 0 ;
17399 void *argp1 = 0 ;
17400 int res1 = 0 ;
17401 PyObject *swig_obj[1] ;
17402
17403 if (!args) SWIG_fail;
17404 swig_obj[0] = args;
17405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17406 if (!SWIG_IsOK(res1)) {
17407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
17408 }
17409 arg1 = reinterpret_cast< wxDC * >(argp1);
17410 {
17411 PyThreadState* __tstate = wxPyBeginAllowThreads();
17412 (arg1)->StartPage();
17413 wxPyEndAllowThreads(__tstate);
17414 if (PyErr_Occurred()) SWIG_fail;
17415 }
17416 resultobj = SWIG_Py_Void();
17417 return resultobj;
17418 fail:
17419 return NULL;
17420 }
17421
17422
17423 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17424 PyObject *resultobj = 0;
17425 wxDC *arg1 = (wxDC *) 0 ;
17426 void *argp1 = 0 ;
17427 int res1 = 0 ;
17428 PyObject *swig_obj[1] ;
17429
17430 if (!args) SWIG_fail;
17431 swig_obj[0] = args;
17432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17433 if (!SWIG_IsOK(res1)) {
17434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
17435 }
17436 arg1 = reinterpret_cast< wxDC * >(argp1);
17437 {
17438 PyThreadState* __tstate = wxPyBeginAllowThreads();
17439 (arg1)->EndPage();
17440 wxPyEndAllowThreads(__tstate);
17441 if (PyErr_Occurred()) SWIG_fail;
17442 }
17443 resultobj = SWIG_Py_Void();
17444 return resultobj;
17445 fail:
17446 return NULL;
17447 }
17448
17449
17450 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17451 PyObject *resultobj = 0;
17452 wxDC *arg1 = (wxDC *) 0 ;
17453 wxFont *arg2 = 0 ;
17454 void *argp1 = 0 ;
17455 int res1 = 0 ;
17456 void *argp2 = 0 ;
17457 int res2 = 0 ;
17458 PyObject * obj0 = 0 ;
17459 PyObject * obj1 = 0 ;
17460 char * kwnames[] = {
17461 (char *) "self",(char *) "font", NULL
17462 };
17463
17464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
17465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17466 if (!SWIG_IsOK(res1)) {
17467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
17468 }
17469 arg1 = reinterpret_cast< wxDC * >(argp1);
17470 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
17471 if (!SWIG_IsOK(res2)) {
17472 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17473 }
17474 if (!argp2) {
17475 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17476 }
17477 arg2 = reinterpret_cast< wxFont * >(argp2);
17478 {
17479 PyThreadState* __tstate = wxPyBeginAllowThreads();
17480 (arg1)->SetFont((wxFont const &)*arg2);
17481 wxPyEndAllowThreads(__tstate);
17482 if (PyErr_Occurred()) SWIG_fail;
17483 }
17484 resultobj = SWIG_Py_Void();
17485 return resultobj;
17486 fail:
17487 return NULL;
17488 }
17489
17490
17491 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17492 PyObject *resultobj = 0;
17493 wxDC *arg1 = (wxDC *) 0 ;
17494 wxPen *arg2 = 0 ;
17495 void *argp1 = 0 ;
17496 int res1 = 0 ;
17497 void *argp2 = 0 ;
17498 int res2 = 0 ;
17499 PyObject * obj0 = 0 ;
17500 PyObject * obj1 = 0 ;
17501 char * kwnames[] = {
17502 (char *) "self",(char *) "pen", NULL
17503 };
17504
17505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
17506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17507 if (!SWIG_IsOK(res1)) {
17508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
17509 }
17510 arg1 = reinterpret_cast< wxDC * >(argp1);
17511 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
17512 if (!SWIG_IsOK(res2)) {
17513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17514 }
17515 if (!argp2) {
17516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17517 }
17518 arg2 = reinterpret_cast< wxPen * >(argp2);
17519 {
17520 PyThreadState* __tstate = wxPyBeginAllowThreads();
17521 (arg1)->SetPen((wxPen const &)*arg2);
17522 wxPyEndAllowThreads(__tstate);
17523 if (PyErr_Occurred()) SWIG_fail;
17524 }
17525 resultobj = SWIG_Py_Void();
17526 return resultobj;
17527 fail:
17528 return NULL;
17529 }
17530
17531
17532 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17533 PyObject *resultobj = 0;
17534 wxDC *arg1 = (wxDC *) 0 ;
17535 wxBrush *arg2 = 0 ;
17536 void *argp1 = 0 ;
17537 int res1 = 0 ;
17538 void *argp2 = 0 ;
17539 int res2 = 0 ;
17540 PyObject * obj0 = 0 ;
17541 PyObject * obj1 = 0 ;
17542 char * kwnames[] = {
17543 (char *) "self",(char *) "brush", NULL
17544 };
17545
17546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
17547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17548 if (!SWIG_IsOK(res1)) {
17549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
17550 }
17551 arg1 = reinterpret_cast< wxDC * >(argp1);
17552 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17553 if (!SWIG_IsOK(res2)) {
17554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17555 }
17556 if (!argp2) {
17557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17558 }
17559 arg2 = reinterpret_cast< wxBrush * >(argp2);
17560 {
17561 PyThreadState* __tstate = wxPyBeginAllowThreads();
17562 (arg1)->SetBrush((wxBrush const &)*arg2);
17563 wxPyEndAllowThreads(__tstate);
17564 if (PyErr_Occurred()) SWIG_fail;
17565 }
17566 resultobj = SWIG_Py_Void();
17567 return resultobj;
17568 fail:
17569 return NULL;
17570 }
17571
17572
17573 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17574 PyObject *resultobj = 0;
17575 wxDC *arg1 = (wxDC *) 0 ;
17576 wxBrush *arg2 = 0 ;
17577 void *argp1 = 0 ;
17578 int res1 = 0 ;
17579 void *argp2 = 0 ;
17580 int res2 = 0 ;
17581 PyObject * obj0 = 0 ;
17582 PyObject * obj1 = 0 ;
17583 char * kwnames[] = {
17584 (char *) "self",(char *) "brush", NULL
17585 };
17586
17587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
17588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17589 if (!SWIG_IsOK(res1)) {
17590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
17591 }
17592 arg1 = reinterpret_cast< wxDC * >(argp1);
17593 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17594 if (!SWIG_IsOK(res2)) {
17595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17596 }
17597 if (!argp2) {
17598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17599 }
17600 arg2 = reinterpret_cast< wxBrush * >(argp2);
17601 {
17602 PyThreadState* __tstate = wxPyBeginAllowThreads();
17603 (arg1)->SetBackground((wxBrush const &)*arg2);
17604 wxPyEndAllowThreads(__tstate);
17605 if (PyErr_Occurred()) SWIG_fail;
17606 }
17607 resultobj = SWIG_Py_Void();
17608 return resultobj;
17609 fail:
17610 return NULL;
17611 }
17612
17613
17614 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17615 PyObject *resultobj = 0;
17616 wxDC *arg1 = (wxDC *) 0 ;
17617 int arg2 ;
17618 void *argp1 = 0 ;
17619 int res1 = 0 ;
17620 int val2 ;
17621 int ecode2 = 0 ;
17622 PyObject * obj0 = 0 ;
17623 PyObject * obj1 = 0 ;
17624 char * kwnames[] = {
17625 (char *) "self",(char *) "mode", NULL
17626 };
17627
17628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
17629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17630 if (!SWIG_IsOK(res1)) {
17631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
17632 }
17633 arg1 = reinterpret_cast< wxDC * >(argp1);
17634 ecode2 = SWIG_AsVal_int(obj1, &val2);
17635 if (!SWIG_IsOK(ecode2)) {
17636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
17637 }
17638 arg2 = static_cast< int >(val2);
17639 {
17640 PyThreadState* __tstate = wxPyBeginAllowThreads();
17641 (arg1)->SetBackgroundMode(arg2);
17642 wxPyEndAllowThreads(__tstate);
17643 if (PyErr_Occurred()) SWIG_fail;
17644 }
17645 resultobj = SWIG_Py_Void();
17646 return resultobj;
17647 fail:
17648 return NULL;
17649 }
17650
17651
17652 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17653 PyObject *resultobj = 0;
17654 wxDC *arg1 = (wxDC *) 0 ;
17655 wxPalette *arg2 = 0 ;
17656 void *argp1 = 0 ;
17657 int res1 = 0 ;
17658 void *argp2 = 0 ;
17659 int res2 = 0 ;
17660 PyObject * obj0 = 0 ;
17661 PyObject * obj1 = 0 ;
17662 char * kwnames[] = {
17663 (char *) "self",(char *) "palette", NULL
17664 };
17665
17666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
17667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17668 if (!SWIG_IsOK(res1)) {
17669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
17670 }
17671 arg1 = reinterpret_cast< wxDC * >(argp1);
17672 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
17673 if (!SWIG_IsOK(res2)) {
17674 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17675 }
17676 if (!argp2) {
17677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17678 }
17679 arg2 = reinterpret_cast< wxPalette * >(argp2);
17680 {
17681 PyThreadState* __tstate = wxPyBeginAllowThreads();
17682 (arg1)->SetPalette((wxPalette const &)*arg2);
17683 wxPyEndAllowThreads(__tstate);
17684 if (PyErr_Occurred()) SWIG_fail;
17685 }
17686 resultobj = SWIG_Py_Void();
17687 return resultobj;
17688 fail:
17689 return NULL;
17690 }
17691
17692
17693 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17694 PyObject *resultobj = 0;
17695 wxDC *arg1 = (wxDC *) 0 ;
17696 void *argp1 = 0 ;
17697 int res1 = 0 ;
17698 PyObject *swig_obj[1] ;
17699
17700 if (!args) SWIG_fail;
17701 swig_obj[0] = args;
17702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17703 if (!SWIG_IsOK(res1)) {
17704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17705 }
17706 arg1 = reinterpret_cast< wxDC * >(argp1);
17707 {
17708 PyThreadState* __tstate = wxPyBeginAllowThreads();
17709 (arg1)->DestroyClippingRegion();
17710 wxPyEndAllowThreads(__tstate);
17711 if (PyErr_Occurred()) SWIG_fail;
17712 }
17713 resultobj = SWIG_Py_Void();
17714 return resultobj;
17715 fail:
17716 return NULL;
17717 }
17718
17719
17720 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17721 PyObject *resultobj = 0;
17722 wxDC *arg1 = (wxDC *) 0 ;
17723 int *arg2 = (int *) 0 ;
17724 int *arg3 = (int *) 0 ;
17725 int *arg4 = (int *) 0 ;
17726 int *arg5 = (int *) 0 ;
17727 void *argp1 = 0 ;
17728 int res1 = 0 ;
17729 int temp2 ;
17730 int res2 = SWIG_TMPOBJ ;
17731 int temp3 ;
17732 int res3 = SWIG_TMPOBJ ;
17733 int temp4 ;
17734 int res4 = SWIG_TMPOBJ ;
17735 int temp5 ;
17736 int res5 = SWIG_TMPOBJ ;
17737 PyObject *swig_obj[1] ;
17738
17739 arg2 = &temp2;
17740 arg3 = &temp3;
17741 arg4 = &temp4;
17742 arg5 = &temp5;
17743 if (!args) SWIG_fail;
17744 swig_obj[0] = args;
17745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17746 if (!SWIG_IsOK(res1)) {
17747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
17748 }
17749 arg1 = reinterpret_cast< wxDC * >(argp1);
17750 {
17751 PyThreadState* __tstate = wxPyBeginAllowThreads();
17752 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
17753 wxPyEndAllowThreads(__tstate);
17754 if (PyErr_Occurred()) SWIG_fail;
17755 }
17756 resultobj = SWIG_Py_Void();
17757 if (SWIG_IsTmpObj(res2)) {
17758 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
17759 } else {
17760 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17761 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
17762 }
17763 if (SWIG_IsTmpObj(res3)) {
17764 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17765 } else {
17766 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17767 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17768 }
17769 if (SWIG_IsTmpObj(res4)) {
17770 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17771 } else {
17772 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17773 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17774 }
17775 if (SWIG_IsTmpObj(res5)) {
17776 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17777 } else {
17778 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17779 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17780 }
17781 return resultobj;
17782 fail:
17783 return NULL;
17784 }
17785
17786
17787 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17788 PyObject *resultobj = 0;
17789 wxDC *arg1 = (wxDC *) 0 ;
17790 wxRect result;
17791 void *argp1 = 0 ;
17792 int res1 = 0 ;
17793 PyObject *swig_obj[1] ;
17794
17795 if (!args) SWIG_fail;
17796 swig_obj[0] = args;
17797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17798 if (!SWIG_IsOK(res1)) {
17799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17800 }
17801 arg1 = reinterpret_cast< wxDC * >(argp1);
17802 {
17803 PyThreadState* __tstate = wxPyBeginAllowThreads();
17804 result = wxDC_GetClippingRect(arg1);
17805 wxPyEndAllowThreads(__tstate);
17806 if (PyErr_Occurred()) SWIG_fail;
17807 }
17808 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17809 return resultobj;
17810 fail:
17811 return NULL;
17812 }
17813
17814
17815 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17816 PyObject *resultobj = 0;
17817 wxDC *arg1 = (wxDC *) 0 ;
17818 int result;
17819 void *argp1 = 0 ;
17820 int res1 = 0 ;
17821 PyObject *swig_obj[1] ;
17822
17823 if (!args) SWIG_fail;
17824 swig_obj[0] = args;
17825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17826 if (!SWIG_IsOK(res1)) {
17827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
17828 }
17829 arg1 = reinterpret_cast< wxDC * >(argp1);
17830 {
17831 PyThreadState* __tstate = wxPyBeginAllowThreads();
17832 result = (int)((wxDC const *)arg1)->GetCharHeight();
17833 wxPyEndAllowThreads(__tstate);
17834 if (PyErr_Occurred()) SWIG_fail;
17835 }
17836 resultobj = SWIG_From_int(static_cast< int >(result));
17837 return resultobj;
17838 fail:
17839 return NULL;
17840 }
17841
17842
17843 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17844 PyObject *resultobj = 0;
17845 wxDC *arg1 = (wxDC *) 0 ;
17846 int result;
17847 void *argp1 = 0 ;
17848 int res1 = 0 ;
17849 PyObject *swig_obj[1] ;
17850
17851 if (!args) SWIG_fail;
17852 swig_obj[0] = args;
17853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17854 if (!SWIG_IsOK(res1)) {
17855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
17856 }
17857 arg1 = reinterpret_cast< wxDC * >(argp1);
17858 {
17859 PyThreadState* __tstate = wxPyBeginAllowThreads();
17860 result = (int)((wxDC const *)arg1)->GetCharWidth();
17861 wxPyEndAllowThreads(__tstate);
17862 if (PyErr_Occurred()) SWIG_fail;
17863 }
17864 resultobj = SWIG_From_int(static_cast< int >(result));
17865 return resultobj;
17866 fail:
17867 return NULL;
17868 }
17869
17870
17871 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17872 PyObject *resultobj = 0;
17873 wxDC *arg1 = (wxDC *) 0 ;
17874 wxString *arg2 = 0 ;
17875 int *arg3 = (int *) 0 ;
17876 int *arg4 = (int *) 0 ;
17877 void *argp1 = 0 ;
17878 int res1 = 0 ;
17879 bool temp2 = false ;
17880 int temp3 ;
17881 int res3 = SWIG_TMPOBJ ;
17882 int temp4 ;
17883 int res4 = SWIG_TMPOBJ ;
17884 PyObject * obj0 = 0 ;
17885 PyObject * obj1 = 0 ;
17886 char * kwnames[] = {
17887 (char *) "self",(char *) "string", NULL
17888 };
17889
17890 arg3 = &temp3;
17891 arg4 = &temp4;
17892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
17893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17894 if (!SWIG_IsOK(res1)) {
17895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17896 }
17897 arg1 = reinterpret_cast< wxDC * >(argp1);
17898 {
17899 arg2 = wxString_in_helper(obj1);
17900 if (arg2 == NULL) SWIG_fail;
17901 temp2 = true;
17902 }
17903 {
17904 PyThreadState* __tstate = wxPyBeginAllowThreads();
17905 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
17906 wxPyEndAllowThreads(__tstate);
17907 if (PyErr_Occurred()) SWIG_fail;
17908 }
17909 resultobj = SWIG_Py_Void();
17910 if (SWIG_IsTmpObj(res3)) {
17911 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17912 } else {
17913 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17914 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17915 }
17916 if (SWIG_IsTmpObj(res4)) {
17917 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17918 } else {
17919 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17920 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17921 }
17922 {
17923 if (temp2)
17924 delete arg2;
17925 }
17926 return resultobj;
17927 fail:
17928 {
17929 if (temp2)
17930 delete arg2;
17931 }
17932 return NULL;
17933 }
17934
17935
17936 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17937 PyObject *resultobj = 0;
17938 wxDC *arg1 = (wxDC *) 0 ;
17939 wxString *arg2 = 0 ;
17940 int *arg3 = (int *) 0 ;
17941 int *arg4 = (int *) 0 ;
17942 int *arg5 = (int *) 0 ;
17943 int *arg6 = (int *) 0 ;
17944 wxFont *arg7 = (wxFont *) NULL ;
17945 void *argp1 = 0 ;
17946 int res1 = 0 ;
17947 bool temp2 = false ;
17948 int temp3 ;
17949 int res3 = SWIG_TMPOBJ ;
17950 int temp4 ;
17951 int res4 = SWIG_TMPOBJ ;
17952 int temp5 ;
17953 int res5 = SWIG_TMPOBJ ;
17954 int temp6 ;
17955 int res6 = SWIG_TMPOBJ ;
17956 void *argp7 = 0 ;
17957 int res7 = 0 ;
17958 PyObject * obj0 = 0 ;
17959 PyObject * obj1 = 0 ;
17960 PyObject * obj2 = 0 ;
17961 char * kwnames[] = {
17962 (char *) "self",(char *) "string",(char *) "font", NULL
17963 };
17964
17965 arg3 = &temp3;
17966 arg4 = &temp4;
17967 arg5 = &temp5;
17968 arg6 = &temp6;
17969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17971 if (!SWIG_IsOK(res1)) {
17972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17973 }
17974 arg1 = reinterpret_cast< wxDC * >(argp1);
17975 {
17976 arg2 = wxString_in_helper(obj1);
17977 if (arg2 == NULL) SWIG_fail;
17978 temp2 = true;
17979 }
17980 if (obj2) {
17981 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
17982 if (!SWIG_IsOK(res7)) {
17983 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
17984 }
17985 arg7 = reinterpret_cast< wxFont * >(argp7);
17986 }
17987 {
17988 PyThreadState* __tstate = wxPyBeginAllowThreads();
17989 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
17990 wxPyEndAllowThreads(__tstate);
17991 if (PyErr_Occurred()) SWIG_fail;
17992 }
17993 resultobj = SWIG_Py_Void();
17994 if (SWIG_IsTmpObj(res3)) {
17995 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17996 } else {
17997 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17998 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17999 }
18000 if (SWIG_IsTmpObj(res4)) {
18001 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18002 } else {
18003 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18004 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18005 }
18006 if (SWIG_IsTmpObj(res5)) {
18007 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18008 } else {
18009 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18010 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18011 }
18012 if (SWIG_IsTmpObj(res6)) {
18013 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
18014 } else {
18015 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18016 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
18017 }
18018 {
18019 if (temp2)
18020 delete arg2;
18021 }
18022 return resultobj;
18023 fail:
18024 {
18025 if (temp2)
18026 delete arg2;
18027 }
18028 return NULL;
18029 }
18030
18031
18032 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18033 PyObject *resultobj = 0;
18034 wxDC *arg1 = (wxDC *) 0 ;
18035 wxString *arg2 = 0 ;
18036 int *arg3 = (int *) 0 ;
18037 int *arg4 = (int *) 0 ;
18038 int *arg5 = (int *) 0 ;
18039 wxFont *arg6 = (wxFont *) NULL ;
18040 void *argp1 = 0 ;
18041 int res1 = 0 ;
18042 bool temp2 = false ;
18043 int temp3 ;
18044 int res3 = SWIG_TMPOBJ ;
18045 int temp4 ;
18046 int res4 = SWIG_TMPOBJ ;
18047 int temp5 ;
18048 int res5 = SWIG_TMPOBJ ;
18049 void *argp6 = 0 ;
18050 int res6 = 0 ;
18051 PyObject * obj0 = 0 ;
18052 PyObject * obj1 = 0 ;
18053 PyObject * obj2 = 0 ;
18054 char * kwnames[] = {
18055 (char *) "self",(char *) "text",(char *) "font", NULL
18056 };
18057
18058 arg3 = &temp3;
18059 arg4 = &temp4;
18060 arg5 = &temp5;
18061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18063 if (!SWIG_IsOK(res1)) {
18064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18065 }
18066 arg1 = reinterpret_cast< wxDC * >(argp1);
18067 {
18068 arg2 = wxString_in_helper(obj1);
18069 if (arg2 == NULL) SWIG_fail;
18070 temp2 = true;
18071 }
18072 if (obj2) {
18073 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
18074 if (!SWIG_IsOK(res6)) {
18075 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
18076 }
18077 arg6 = reinterpret_cast< wxFont * >(argp6);
18078 }
18079 {
18080 PyThreadState* __tstate = wxPyBeginAllowThreads();
18081 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
18082 wxPyEndAllowThreads(__tstate);
18083 if (PyErr_Occurred()) SWIG_fail;
18084 }
18085 resultobj = SWIG_Py_Void();
18086 if (SWIG_IsTmpObj(res3)) {
18087 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18088 } else {
18089 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18090 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18091 }
18092 if (SWIG_IsTmpObj(res4)) {
18093 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18094 } else {
18095 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18096 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18097 }
18098 if (SWIG_IsTmpObj(res5)) {
18099 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18100 } else {
18101 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18102 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18103 }
18104 {
18105 if (temp2)
18106 delete arg2;
18107 }
18108 return resultobj;
18109 fail:
18110 {
18111 if (temp2)
18112 delete arg2;
18113 }
18114 return NULL;
18115 }
18116
18117
18118 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18119 PyObject *resultobj = 0;
18120 wxDC *arg1 = (wxDC *) 0 ;
18121 wxString *arg2 = 0 ;
18122 wxArrayInt result;
18123 void *argp1 = 0 ;
18124 int res1 = 0 ;
18125 bool temp2 = false ;
18126 PyObject * obj0 = 0 ;
18127 PyObject * obj1 = 0 ;
18128 char * kwnames[] = {
18129 (char *) "self",(char *) "text", NULL
18130 };
18131
18132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
18133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18134 if (!SWIG_IsOK(res1)) {
18135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18136 }
18137 arg1 = reinterpret_cast< wxDC * >(argp1);
18138 {
18139 arg2 = wxString_in_helper(obj1);
18140 if (arg2 == NULL) SWIG_fail;
18141 temp2 = true;
18142 }
18143 {
18144 PyThreadState* __tstate = wxPyBeginAllowThreads();
18145 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
18146 wxPyEndAllowThreads(__tstate);
18147 if (PyErr_Occurred()) SWIG_fail;
18148 }
18149 {
18150 resultobj = PyList_New(0);
18151 size_t idx;
18152 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
18153 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
18154 PyList_Append(resultobj, val);
18155 Py_DECREF(val);
18156 }
18157 }
18158 {
18159 if (temp2)
18160 delete arg2;
18161 }
18162 return resultobj;
18163 fail:
18164 {
18165 if (temp2)
18166 delete arg2;
18167 }
18168 return NULL;
18169 }
18170
18171
18172 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18173 PyObject *resultobj = 0;
18174 wxDC *arg1 = (wxDC *) 0 ;
18175 wxSize result;
18176 void *argp1 = 0 ;
18177 int res1 = 0 ;
18178 PyObject *swig_obj[1] ;
18179
18180 if (!args) SWIG_fail;
18181 swig_obj[0] = args;
18182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18183 if (!SWIG_IsOK(res1)) {
18184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18185 }
18186 arg1 = reinterpret_cast< wxDC * >(argp1);
18187 {
18188 PyThreadState* __tstate = wxPyBeginAllowThreads();
18189 result = (arg1)->GetSize();
18190 wxPyEndAllowThreads(__tstate);
18191 if (PyErr_Occurred()) SWIG_fail;
18192 }
18193 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18194 return resultobj;
18195 fail:
18196 return NULL;
18197 }
18198
18199
18200 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18201 PyObject *resultobj = 0;
18202 wxDC *arg1 = (wxDC *) 0 ;
18203 int *arg2 = (int *) 0 ;
18204 int *arg3 = (int *) 0 ;
18205 void *argp1 = 0 ;
18206 int res1 = 0 ;
18207 int temp2 ;
18208 int res2 = SWIG_TMPOBJ ;
18209 int temp3 ;
18210 int res3 = SWIG_TMPOBJ ;
18211 PyObject *swig_obj[1] ;
18212
18213 arg2 = &temp2;
18214 arg3 = &temp3;
18215 if (!args) SWIG_fail;
18216 swig_obj[0] = args;
18217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18218 if (!SWIG_IsOK(res1)) {
18219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18220 }
18221 arg1 = reinterpret_cast< wxDC * >(argp1);
18222 {
18223 PyThreadState* __tstate = wxPyBeginAllowThreads();
18224 (arg1)->GetSize(arg2,arg3);
18225 wxPyEndAllowThreads(__tstate);
18226 if (PyErr_Occurred()) SWIG_fail;
18227 }
18228 resultobj = SWIG_Py_Void();
18229 if (SWIG_IsTmpObj(res2)) {
18230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18231 } else {
18232 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18234 }
18235 if (SWIG_IsTmpObj(res3)) {
18236 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18237 } else {
18238 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18239 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18240 }
18241 return resultobj;
18242 fail:
18243 return NULL;
18244 }
18245
18246
18247 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18248 PyObject *resultobj = 0;
18249 wxDC *arg1 = (wxDC *) 0 ;
18250 wxSize result;
18251 void *argp1 = 0 ;
18252 int res1 = 0 ;
18253 PyObject *swig_obj[1] ;
18254
18255 if (!args) SWIG_fail;
18256 swig_obj[0] = args;
18257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18258 if (!SWIG_IsOK(res1)) {
18259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18260 }
18261 arg1 = reinterpret_cast< wxDC * >(argp1);
18262 {
18263 PyThreadState* __tstate = wxPyBeginAllowThreads();
18264 result = ((wxDC const *)arg1)->GetSizeMM();
18265 wxPyEndAllowThreads(__tstate);
18266 if (PyErr_Occurred()) SWIG_fail;
18267 }
18268 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18269 return resultobj;
18270 fail:
18271 return NULL;
18272 }
18273
18274
18275 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18276 PyObject *resultobj = 0;
18277 wxDC *arg1 = (wxDC *) 0 ;
18278 int *arg2 = (int *) 0 ;
18279 int *arg3 = (int *) 0 ;
18280 void *argp1 = 0 ;
18281 int res1 = 0 ;
18282 int temp2 ;
18283 int res2 = SWIG_TMPOBJ ;
18284 int temp3 ;
18285 int res3 = SWIG_TMPOBJ ;
18286 PyObject *swig_obj[1] ;
18287
18288 arg2 = &temp2;
18289 arg3 = &temp3;
18290 if (!args) SWIG_fail;
18291 swig_obj[0] = args;
18292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18293 if (!SWIG_IsOK(res1)) {
18294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18295 }
18296 arg1 = reinterpret_cast< wxDC * >(argp1);
18297 {
18298 PyThreadState* __tstate = wxPyBeginAllowThreads();
18299 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
18300 wxPyEndAllowThreads(__tstate);
18301 if (PyErr_Occurred()) SWIG_fail;
18302 }
18303 resultobj = SWIG_Py_Void();
18304 if (SWIG_IsTmpObj(res2)) {
18305 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18306 } else {
18307 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18308 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18309 }
18310 if (SWIG_IsTmpObj(res3)) {
18311 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18312 } else {
18313 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18314 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18315 }
18316 return resultobj;
18317 fail:
18318 return NULL;
18319 }
18320
18321
18322 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18323 PyObject *resultobj = 0;
18324 wxDC *arg1 = (wxDC *) 0 ;
18325 int arg2 ;
18326 int result;
18327 void *argp1 = 0 ;
18328 int res1 = 0 ;
18329 int val2 ;
18330 int ecode2 = 0 ;
18331 PyObject * obj0 = 0 ;
18332 PyObject * obj1 = 0 ;
18333 char * kwnames[] = {
18334 (char *) "self",(char *) "x", NULL
18335 };
18336
18337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
18338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18339 if (!SWIG_IsOK(res1)) {
18340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
18341 }
18342 arg1 = reinterpret_cast< wxDC * >(argp1);
18343 ecode2 = SWIG_AsVal_int(obj1, &val2);
18344 if (!SWIG_IsOK(ecode2)) {
18345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
18346 }
18347 arg2 = static_cast< int >(val2);
18348 {
18349 PyThreadState* __tstate = wxPyBeginAllowThreads();
18350 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
18351 wxPyEndAllowThreads(__tstate);
18352 if (PyErr_Occurred()) SWIG_fail;
18353 }
18354 resultobj = SWIG_From_int(static_cast< int >(result));
18355 return resultobj;
18356 fail:
18357 return NULL;
18358 }
18359
18360
18361 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18362 PyObject *resultobj = 0;
18363 wxDC *arg1 = (wxDC *) 0 ;
18364 int arg2 ;
18365 int result;
18366 void *argp1 = 0 ;
18367 int res1 = 0 ;
18368 int val2 ;
18369 int ecode2 = 0 ;
18370 PyObject * obj0 = 0 ;
18371 PyObject * obj1 = 0 ;
18372 char * kwnames[] = {
18373 (char *) "self",(char *) "y", NULL
18374 };
18375
18376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
18377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18378 if (!SWIG_IsOK(res1)) {
18379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
18380 }
18381 arg1 = reinterpret_cast< wxDC * >(argp1);
18382 ecode2 = SWIG_AsVal_int(obj1, &val2);
18383 if (!SWIG_IsOK(ecode2)) {
18384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
18385 }
18386 arg2 = static_cast< int >(val2);
18387 {
18388 PyThreadState* __tstate = wxPyBeginAllowThreads();
18389 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
18390 wxPyEndAllowThreads(__tstate);
18391 if (PyErr_Occurred()) SWIG_fail;
18392 }
18393 resultobj = SWIG_From_int(static_cast< int >(result));
18394 return resultobj;
18395 fail:
18396 return NULL;
18397 }
18398
18399
18400 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18401 PyObject *resultobj = 0;
18402 wxDC *arg1 = (wxDC *) 0 ;
18403 int arg2 ;
18404 int result;
18405 void *argp1 = 0 ;
18406 int res1 = 0 ;
18407 int val2 ;
18408 int ecode2 = 0 ;
18409 PyObject * obj0 = 0 ;
18410 PyObject * obj1 = 0 ;
18411 char * kwnames[] = {
18412 (char *) "self",(char *) "x", NULL
18413 };
18414
18415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18417 if (!SWIG_IsOK(res1)) {
18418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18419 }
18420 arg1 = reinterpret_cast< wxDC * >(argp1);
18421 ecode2 = SWIG_AsVal_int(obj1, &val2);
18422 if (!SWIG_IsOK(ecode2)) {
18423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
18424 }
18425 arg2 = static_cast< int >(val2);
18426 {
18427 PyThreadState* __tstate = wxPyBeginAllowThreads();
18428 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
18429 wxPyEndAllowThreads(__tstate);
18430 if (PyErr_Occurred()) SWIG_fail;
18431 }
18432 resultobj = SWIG_From_int(static_cast< int >(result));
18433 return resultobj;
18434 fail:
18435 return NULL;
18436 }
18437
18438
18439 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18440 PyObject *resultobj = 0;
18441 wxDC *arg1 = (wxDC *) 0 ;
18442 int arg2 ;
18443 int result;
18444 void *argp1 = 0 ;
18445 int res1 = 0 ;
18446 int val2 ;
18447 int ecode2 = 0 ;
18448 PyObject * obj0 = 0 ;
18449 PyObject * obj1 = 0 ;
18450 char * kwnames[] = {
18451 (char *) "self",(char *) "y", NULL
18452 };
18453
18454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18456 if (!SWIG_IsOK(res1)) {
18457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18458 }
18459 arg1 = reinterpret_cast< wxDC * >(argp1);
18460 ecode2 = SWIG_AsVal_int(obj1, &val2);
18461 if (!SWIG_IsOK(ecode2)) {
18462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
18463 }
18464 arg2 = static_cast< int >(val2);
18465 {
18466 PyThreadState* __tstate = wxPyBeginAllowThreads();
18467 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
18468 wxPyEndAllowThreads(__tstate);
18469 if (PyErr_Occurred()) SWIG_fail;
18470 }
18471 resultobj = SWIG_From_int(static_cast< int >(result));
18472 return resultobj;
18473 fail:
18474 return NULL;
18475 }
18476
18477
18478 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18479 PyObject *resultobj = 0;
18480 wxDC *arg1 = (wxDC *) 0 ;
18481 int arg2 ;
18482 int result;
18483 void *argp1 = 0 ;
18484 int res1 = 0 ;
18485 int val2 ;
18486 int ecode2 = 0 ;
18487 PyObject * obj0 = 0 ;
18488 PyObject * obj1 = 0 ;
18489 char * kwnames[] = {
18490 (char *) "self",(char *) "x", NULL
18491 };
18492
18493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
18494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18495 if (!SWIG_IsOK(res1)) {
18496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
18497 }
18498 arg1 = reinterpret_cast< wxDC * >(argp1);
18499 ecode2 = SWIG_AsVal_int(obj1, &val2);
18500 if (!SWIG_IsOK(ecode2)) {
18501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
18502 }
18503 arg2 = static_cast< int >(val2);
18504 {
18505 PyThreadState* __tstate = wxPyBeginAllowThreads();
18506 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
18507 wxPyEndAllowThreads(__tstate);
18508 if (PyErr_Occurred()) SWIG_fail;
18509 }
18510 resultobj = SWIG_From_int(static_cast< int >(result));
18511 return resultobj;
18512 fail:
18513 return NULL;
18514 }
18515
18516
18517 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18518 PyObject *resultobj = 0;
18519 wxDC *arg1 = (wxDC *) 0 ;
18520 int arg2 ;
18521 int result;
18522 void *argp1 = 0 ;
18523 int res1 = 0 ;
18524 int val2 ;
18525 int ecode2 = 0 ;
18526 PyObject * obj0 = 0 ;
18527 PyObject * obj1 = 0 ;
18528 char * kwnames[] = {
18529 (char *) "self",(char *) "y", NULL
18530 };
18531
18532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
18533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18534 if (!SWIG_IsOK(res1)) {
18535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
18536 }
18537 arg1 = reinterpret_cast< wxDC * >(argp1);
18538 ecode2 = SWIG_AsVal_int(obj1, &val2);
18539 if (!SWIG_IsOK(ecode2)) {
18540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
18541 }
18542 arg2 = static_cast< int >(val2);
18543 {
18544 PyThreadState* __tstate = wxPyBeginAllowThreads();
18545 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
18546 wxPyEndAllowThreads(__tstate);
18547 if (PyErr_Occurred()) SWIG_fail;
18548 }
18549 resultobj = SWIG_From_int(static_cast< int >(result));
18550 return resultobj;
18551 fail:
18552 return NULL;
18553 }
18554
18555
18556 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18557 PyObject *resultobj = 0;
18558 wxDC *arg1 = (wxDC *) 0 ;
18559 int arg2 ;
18560 int result;
18561 void *argp1 = 0 ;
18562 int res1 = 0 ;
18563 int val2 ;
18564 int ecode2 = 0 ;
18565 PyObject * obj0 = 0 ;
18566 PyObject * obj1 = 0 ;
18567 char * kwnames[] = {
18568 (char *) "self",(char *) "x", NULL
18569 };
18570
18571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18573 if (!SWIG_IsOK(res1)) {
18574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18575 }
18576 arg1 = reinterpret_cast< wxDC * >(argp1);
18577 ecode2 = SWIG_AsVal_int(obj1, &val2);
18578 if (!SWIG_IsOK(ecode2)) {
18579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
18580 }
18581 arg2 = static_cast< int >(val2);
18582 {
18583 PyThreadState* __tstate = wxPyBeginAllowThreads();
18584 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
18585 wxPyEndAllowThreads(__tstate);
18586 if (PyErr_Occurred()) SWIG_fail;
18587 }
18588 resultobj = SWIG_From_int(static_cast< int >(result));
18589 return resultobj;
18590 fail:
18591 return NULL;
18592 }
18593
18594
18595 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18596 PyObject *resultobj = 0;
18597 wxDC *arg1 = (wxDC *) 0 ;
18598 int arg2 ;
18599 int result;
18600 void *argp1 = 0 ;
18601 int res1 = 0 ;
18602 int val2 ;
18603 int ecode2 = 0 ;
18604 PyObject * obj0 = 0 ;
18605 PyObject * obj1 = 0 ;
18606 char * kwnames[] = {
18607 (char *) "self",(char *) "y", NULL
18608 };
18609
18610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18612 if (!SWIG_IsOK(res1)) {
18613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18614 }
18615 arg1 = reinterpret_cast< wxDC * >(argp1);
18616 ecode2 = SWIG_AsVal_int(obj1, &val2);
18617 if (!SWIG_IsOK(ecode2)) {
18618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
18619 }
18620 arg2 = static_cast< int >(val2);
18621 {
18622 PyThreadState* __tstate = wxPyBeginAllowThreads();
18623 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
18624 wxPyEndAllowThreads(__tstate);
18625 if (PyErr_Occurred()) SWIG_fail;
18626 }
18627 resultobj = SWIG_From_int(static_cast< int >(result));
18628 return resultobj;
18629 fail:
18630 return NULL;
18631 }
18632
18633
18634 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18635 PyObject *resultobj = 0;
18636 wxDC *arg1 = (wxDC *) 0 ;
18637 bool result;
18638 void *argp1 = 0 ;
18639 int res1 = 0 ;
18640 PyObject *swig_obj[1] ;
18641
18642 if (!args) SWIG_fail;
18643 swig_obj[0] = args;
18644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18645 if (!SWIG_IsOK(res1)) {
18646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
18647 }
18648 arg1 = reinterpret_cast< wxDC * >(argp1);
18649 {
18650 PyThreadState* __tstate = wxPyBeginAllowThreads();
18651 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
18652 wxPyEndAllowThreads(__tstate);
18653 if (PyErr_Occurred()) SWIG_fail;
18654 }
18655 {
18656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18657 }
18658 return resultobj;
18659 fail:
18660 return NULL;
18661 }
18662
18663
18664 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18665 PyObject *resultobj = 0;
18666 wxDC *arg1 = (wxDC *) 0 ;
18667 bool result;
18668 void *argp1 = 0 ;
18669 int res1 = 0 ;
18670 PyObject *swig_obj[1] ;
18671
18672 if (!args) SWIG_fail;
18673 swig_obj[0] = args;
18674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18675 if (!SWIG_IsOK(res1)) {
18676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
18677 }
18678 arg1 = reinterpret_cast< wxDC * >(argp1);
18679 {
18680 PyThreadState* __tstate = wxPyBeginAllowThreads();
18681 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
18682 wxPyEndAllowThreads(__tstate);
18683 if (PyErr_Occurred()) SWIG_fail;
18684 }
18685 {
18686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18687 }
18688 return resultobj;
18689 fail:
18690 return NULL;
18691 }
18692
18693
18694 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18695 PyObject *resultobj = 0;
18696 wxDC *arg1 = (wxDC *) 0 ;
18697 int result;
18698 void *argp1 = 0 ;
18699 int res1 = 0 ;
18700 PyObject *swig_obj[1] ;
18701
18702 if (!args) SWIG_fail;
18703 swig_obj[0] = args;
18704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18705 if (!SWIG_IsOK(res1)) {
18706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
18707 }
18708 arg1 = reinterpret_cast< wxDC * >(argp1);
18709 {
18710 PyThreadState* __tstate = wxPyBeginAllowThreads();
18711 result = (int)((wxDC const *)arg1)->GetDepth();
18712 wxPyEndAllowThreads(__tstate);
18713 if (PyErr_Occurred()) SWIG_fail;
18714 }
18715 resultobj = SWIG_From_int(static_cast< int >(result));
18716 return resultobj;
18717 fail:
18718 return NULL;
18719 }
18720
18721
18722 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18723 PyObject *resultobj = 0;
18724 wxDC *arg1 = (wxDC *) 0 ;
18725 wxSize result;
18726 void *argp1 = 0 ;
18727 int res1 = 0 ;
18728 PyObject *swig_obj[1] ;
18729
18730 if (!args) SWIG_fail;
18731 swig_obj[0] = args;
18732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18733 if (!SWIG_IsOK(res1)) {
18734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
18735 }
18736 arg1 = reinterpret_cast< wxDC * >(argp1);
18737 {
18738 PyThreadState* __tstate = wxPyBeginAllowThreads();
18739 result = ((wxDC const *)arg1)->GetPPI();
18740 wxPyEndAllowThreads(__tstate);
18741 if (PyErr_Occurred()) SWIG_fail;
18742 }
18743 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18744 return resultobj;
18745 fail:
18746 return NULL;
18747 }
18748
18749
18750 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18751 PyObject *resultobj = 0;
18752 wxDC *arg1 = (wxDC *) 0 ;
18753 bool result;
18754 void *argp1 = 0 ;
18755 int res1 = 0 ;
18756 PyObject *swig_obj[1] ;
18757
18758 if (!args) SWIG_fail;
18759 swig_obj[0] = args;
18760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18761 if (!SWIG_IsOK(res1)) {
18762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
18763 }
18764 arg1 = reinterpret_cast< wxDC * >(argp1);
18765 {
18766 PyThreadState* __tstate = wxPyBeginAllowThreads();
18767 result = (bool)((wxDC const *)arg1)->Ok();
18768 wxPyEndAllowThreads(__tstate);
18769 if (PyErr_Occurred()) SWIG_fail;
18770 }
18771 {
18772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18773 }
18774 return resultobj;
18775 fail:
18776 return NULL;
18777 }
18778
18779
18780 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18781 PyObject *resultobj = 0;
18782 wxDC *arg1 = (wxDC *) 0 ;
18783 int result;
18784 void *argp1 = 0 ;
18785 int res1 = 0 ;
18786 PyObject *swig_obj[1] ;
18787
18788 if (!args) SWIG_fail;
18789 swig_obj[0] = args;
18790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18791 if (!SWIG_IsOK(res1)) {
18792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
18793 }
18794 arg1 = reinterpret_cast< wxDC * >(argp1);
18795 {
18796 PyThreadState* __tstate = wxPyBeginAllowThreads();
18797 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
18798 wxPyEndAllowThreads(__tstate);
18799 if (PyErr_Occurred()) SWIG_fail;
18800 }
18801 resultobj = SWIG_From_int(static_cast< int >(result));
18802 return resultobj;
18803 fail:
18804 return NULL;
18805 }
18806
18807
18808 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18809 PyObject *resultobj = 0;
18810 wxDC *arg1 = (wxDC *) 0 ;
18811 wxBrush *result = 0 ;
18812 void *argp1 = 0 ;
18813 int res1 = 0 ;
18814 PyObject *swig_obj[1] ;
18815
18816 if (!args) SWIG_fail;
18817 swig_obj[0] = args;
18818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18819 if (!SWIG_IsOK(res1)) {
18820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18821 }
18822 arg1 = reinterpret_cast< wxDC * >(argp1);
18823 {
18824 PyThreadState* __tstate = wxPyBeginAllowThreads();
18825 {
18826 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
18827 result = (wxBrush *) &_result_ref;
18828 }
18829 wxPyEndAllowThreads(__tstate);
18830 if (PyErr_Occurred()) SWIG_fail;
18831 }
18832 {
18833 wxBrush* resultptr = new wxBrush(*result);
18834 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18835 }
18836 return resultobj;
18837 fail:
18838 return NULL;
18839 }
18840
18841
18842 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18843 PyObject *resultobj = 0;
18844 wxDC *arg1 = (wxDC *) 0 ;
18845 wxBrush *result = 0 ;
18846 void *argp1 = 0 ;
18847 int res1 = 0 ;
18848 PyObject *swig_obj[1] ;
18849
18850 if (!args) SWIG_fail;
18851 swig_obj[0] = args;
18852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18853 if (!SWIG_IsOK(res1)) {
18854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
18855 }
18856 arg1 = reinterpret_cast< wxDC * >(argp1);
18857 {
18858 PyThreadState* __tstate = wxPyBeginAllowThreads();
18859 {
18860 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
18861 result = (wxBrush *) &_result_ref;
18862 }
18863 wxPyEndAllowThreads(__tstate);
18864 if (PyErr_Occurred()) SWIG_fail;
18865 }
18866 {
18867 wxBrush* resultptr = new wxBrush(*result);
18868 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18869 }
18870 return resultobj;
18871 fail:
18872 return NULL;
18873 }
18874
18875
18876 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18877 PyObject *resultobj = 0;
18878 wxDC *arg1 = (wxDC *) 0 ;
18879 wxFont *result = 0 ;
18880 void *argp1 = 0 ;
18881 int res1 = 0 ;
18882 PyObject *swig_obj[1] ;
18883
18884 if (!args) SWIG_fail;
18885 swig_obj[0] = args;
18886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18887 if (!SWIG_IsOK(res1)) {
18888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
18889 }
18890 arg1 = reinterpret_cast< wxDC * >(argp1);
18891 {
18892 PyThreadState* __tstate = wxPyBeginAllowThreads();
18893 {
18894 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
18895 result = (wxFont *) &_result_ref;
18896 }
18897 wxPyEndAllowThreads(__tstate);
18898 if (PyErr_Occurred()) SWIG_fail;
18899 }
18900 {
18901 wxFont* resultptr = new wxFont(*result);
18902 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
18903 }
18904 return resultobj;
18905 fail:
18906 return NULL;
18907 }
18908
18909
18910 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18911 PyObject *resultobj = 0;
18912 wxDC *arg1 = (wxDC *) 0 ;
18913 wxPen *result = 0 ;
18914 void *argp1 = 0 ;
18915 int res1 = 0 ;
18916 PyObject *swig_obj[1] ;
18917
18918 if (!args) SWIG_fail;
18919 swig_obj[0] = args;
18920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18921 if (!SWIG_IsOK(res1)) {
18922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
18923 }
18924 arg1 = reinterpret_cast< wxDC * >(argp1);
18925 {
18926 PyThreadState* __tstate = wxPyBeginAllowThreads();
18927 {
18928 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
18929 result = (wxPen *) &_result_ref;
18930 }
18931 wxPyEndAllowThreads(__tstate);
18932 if (PyErr_Occurred()) SWIG_fail;
18933 }
18934 {
18935 wxPen* resultptr = new wxPen(*result);
18936 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
18937 }
18938 return resultobj;
18939 fail:
18940 return NULL;
18941 }
18942
18943
18944 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18945 PyObject *resultobj = 0;
18946 wxDC *arg1 = (wxDC *) 0 ;
18947 wxColour *result = 0 ;
18948 void *argp1 = 0 ;
18949 int res1 = 0 ;
18950 PyObject *swig_obj[1] ;
18951
18952 if (!args) SWIG_fail;
18953 swig_obj[0] = args;
18954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18955 if (!SWIG_IsOK(res1)) {
18956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18957 }
18958 arg1 = reinterpret_cast< wxDC * >(argp1);
18959 {
18960 PyThreadState* __tstate = wxPyBeginAllowThreads();
18961 {
18962 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
18963 result = (wxColour *) &_result_ref;
18964 }
18965 wxPyEndAllowThreads(__tstate);
18966 if (PyErr_Occurred()) SWIG_fail;
18967 }
18968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18969 return resultobj;
18970 fail:
18971 return NULL;
18972 }
18973
18974
18975 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18976 PyObject *resultobj = 0;
18977 wxDC *arg1 = (wxDC *) 0 ;
18978 wxColour *result = 0 ;
18979 void *argp1 = 0 ;
18980 int res1 = 0 ;
18981 PyObject *swig_obj[1] ;
18982
18983 if (!args) SWIG_fail;
18984 swig_obj[0] = args;
18985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18986 if (!SWIG_IsOK(res1)) {
18987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
18988 }
18989 arg1 = reinterpret_cast< wxDC * >(argp1);
18990 {
18991 PyThreadState* __tstate = wxPyBeginAllowThreads();
18992 {
18993 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
18994 result = (wxColour *) &_result_ref;
18995 }
18996 wxPyEndAllowThreads(__tstate);
18997 if (PyErr_Occurred()) SWIG_fail;
18998 }
18999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
19000 return resultobj;
19001 fail:
19002 return NULL;
19003 }
19004
19005
19006 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19007 PyObject *resultobj = 0;
19008 wxDC *arg1 = (wxDC *) 0 ;
19009 wxColour *arg2 = 0 ;
19010 void *argp1 = 0 ;
19011 int res1 = 0 ;
19012 wxColour temp2 ;
19013 PyObject * obj0 = 0 ;
19014 PyObject * obj1 = 0 ;
19015 char * kwnames[] = {
19016 (char *) "self",(char *) "colour", NULL
19017 };
19018
19019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
19020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19021 if (!SWIG_IsOK(res1)) {
19022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
19023 }
19024 arg1 = reinterpret_cast< wxDC * >(argp1);
19025 {
19026 arg2 = &temp2;
19027 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19028 }
19029 {
19030 PyThreadState* __tstate = wxPyBeginAllowThreads();
19031 (arg1)->SetTextForeground((wxColour const &)*arg2);
19032 wxPyEndAllowThreads(__tstate);
19033 if (PyErr_Occurred()) SWIG_fail;
19034 }
19035 resultobj = SWIG_Py_Void();
19036 return resultobj;
19037 fail:
19038 return NULL;
19039 }
19040
19041
19042 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19043 PyObject *resultobj = 0;
19044 wxDC *arg1 = (wxDC *) 0 ;
19045 wxColour *arg2 = 0 ;
19046 void *argp1 = 0 ;
19047 int res1 = 0 ;
19048 wxColour temp2 ;
19049 PyObject * obj0 = 0 ;
19050 PyObject * obj1 = 0 ;
19051 char * kwnames[] = {
19052 (char *) "self",(char *) "colour", NULL
19053 };
19054
19055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
19056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19057 if (!SWIG_IsOK(res1)) {
19058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
19059 }
19060 arg1 = reinterpret_cast< wxDC * >(argp1);
19061 {
19062 arg2 = &temp2;
19063 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19064 }
19065 {
19066 PyThreadState* __tstate = wxPyBeginAllowThreads();
19067 (arg1)->SetTextBackground((wxColour const &)*arg2);
19068 wxPyEndAllowThreads(__tstate);
19069 if (PyErr_Occurred()) SWIG_fail;
19070 }
19071 resultobj = SWIG_Py_Void();
19072 return resultobj;
19073 fail:
19074 return NULL;
19075 }
19076
19077
19078 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19079 PyObject *resultobj = 0;
19080 wxDC *arg1 = (wxDC *) 0 ;
19081 int result;
19082 void *argp1 = 0 ;
19083 int res1 = 0 ;
19084 PyObject *swig_obj[1] ;
19085
19086 if (!args) SWIG_fail;
19087 swig_obj[0] = args;
19088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19089 if (!SWIG_IsOK(res1)) {
19090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19091 }
19092 arg1 = reinterpret_cast< wxDC * >(argp1);
19093 {
19094 PyThreadState* __tstate = wxPyBeginAllowThreads();
19095 result = (int)((wxDC const *)arg1)->GetMapMode();
19096 wxPyEndAllowThreads(__tstate);
19097 if (PyErr_Occurred()) SWIG_fail;
19098 }
19099 resultobj = SWIG_From_int(static_cast< int >(result));
19100 return resultobj;
19101 fail:
19102 return NULL;
19103 }
19104
19105
19106 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19107 PyObject *resultobj = 0;
19108 wxDC *arg1 = (wxDC *) 0 ;
19109 int arg2 ;
19110 void *argp1 = 0 ;
19111 int res1 = 0 ;
19112 int val2 ;
19113 int ecode2 = 0 ;
19114 PyObject * obj0 = 0 ;
19115 PyObject * obj1 = 0 ;
19116 char * kwnames[] = {
19117 (char *) "self",(char *) "mode", NULL
19118 };
19119
19120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
19121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19122 if (!SWIG_IsOK(res1)) {
19123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19124 }
19125 arg1 = reinterpret_cast< wxDC * >(argp1);
19126 ecode2 = SWIG_AsVal_int(obj1, &val2);
19127 if (!SWIG_IsOK(ecode2)) {
19128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19129 }
19130 arg2 = static_cast< int >(val2);
19131 {
19132 PyThreadState* __tstate = wxPyBeginAllowThreads();
19133 (arg1)->SetMapMode(arg2);
19134 wxPyEndAllowThreads(__tstate);
19135 if (PyErr_Occurred()) SWIG_fail;
19136 }
19137 resultobj = SWIG_Py_Void();
19138 return resultobj;
19139 fail:
19140 return NULL;
19141 }
19142
19143
19144 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19145 PyObject *resultobj = 0;
19146 wxDC *arg1 = (wxDC *) 0 ;
19147 double *arg2 = (double *) 0 ;
19148 double *arg3 = (double *) 0 ;
19149 void *argp1 = 0 ;
19150 int res1 = 0 ;
19151 double temp2 ;
19152 int res2 = SWIG_TMPOBJ ;
19153 double temp3 ;
19154 int res3 = SWIG_TMPOBJ ;
19155 PyObject *swig_obj[1] ;
19156
19157 arg2 = &temp2;
19158 arg3 = &temp3;
19159 if (!args) SWIG_fail;
19160 swig_obj[0] = args;
19161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19162 if (!SWIG_IsOK(res1)) {
19163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19164 }
19165 arg1 = reinterpret_cast< wxDC * >(argp1);
19166 {
19167 PyThreadState* __tstate = wxPyBeginAllowThreads();
19168 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
19169 wxPyEndAllowThreads(__tstate);
19170 if (PyErr_Occurred()) SWIG_fail;
19171 }
19172 resultobj = SWIG_Py_Void();
19173 if (SWIG_IsTmpObj(res2)) {
19174 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19175 } else {
19176 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19178 }
19179 if (SWIG_IsTmpObj(res3)) {
19180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19181 } else {
19182 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19184 }
19185 return resultobj;
19186 fail:
19187 return NULL;
19188 }
19189
19190
19191 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19192 PyObject *resultobj = 0;
19193 wxDC *arg1 = (wxDC *) 0 ;
19194 double arg2 ;
19195 double arg3 ;
19196 void *argp1 = 0 ;
19197 int res1 = 0 ;
19198 double val2 ;
19199 int ecode2 = 0 ;
19200 double val3 ;
19201 int ecode3 = 0 ;
19202 PyObject * obj0 = 0 ;
19203 PyObject * obj1 = 0 ;
19204 PyObject * obj2 = 0 ;
19205 char * kwnames[] = {
19206 (char *) "self",(char *) "x",(char *) "y", NULL
19207 };
19208
19209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19211 if (!SWIG_IsOK(res1)) {
19212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19213 }
19214 arg1 = reinterpret_cast< wxDC * >(argp1);
19215 ecode2 = SWIG_AsVal_double(obj1, &val2);
19216 if (!SWIG_IsOK(ecode2)) {
19217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19218 }
19219 arg2 = static_cast< double >(val2);
19220 ecode3 = SWIG_AsVal_double(obj2, &val3);
19221 if (!SWIG_IsOK(ecode3)) {
19222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19223 }
19224 arg3 = static_cast< double >(val3);
19225 {
19226 PyThreadState* __tstate = wxPyBeginAllowThreads();
19227 (arg1)->SetUserScale(arg2,arg3);
19228 wxPyEndAllowThreads(__tstate);
19229 if (PyErr_Occurred()) SWIG_fail;
19230 }
19231 resultobj = SWIG_Py_Void();
19232 return resultobj;
19233 fail:
19234 return NULL;
19235 }
19236
19237
19238 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19239 PyObject *resultobj = 0;
19240 wxDC *arg1 = (wxDC *) 0 ;
19241 double *arg2 = (double *) 0 ;
19242 double *arg3 = (double *) 0 ;
19243 void *argp1 = 0 ;
19244 int res1 = 0 ;
19245 double temp2 ;
19246 int res2 = SWIG_TMPOBJ ;
19247 double temp3 ;
19248 int res3 = SWIG_TMPOBJ ;
19249 PyObject *swig_obj[1] ;
19250
19251 arg2 = &temp2;
19252 arg3 = &temp3;
19253 if (!args) SWIG_fail;
19254 swig_obj[0] = args;
19255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19256 if (!SWIG_IsOK(res1)) {
19257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19258 }
19259 arg1 = reinterpret_cast< wxDC * >(argp1);
19260 {
19261 PyThreadState* __tstate = wxPyBeginAllowThreads();
19262 (arg1)->GetLogicalScale(arg2,arg3);
19263 wxPyEndAllowThreads(__tstate);
19264 if (PyErr_Occurred()) SWIG_fail;
19265 }
19266 resultobj = SWIG_Py_Void();
19267 if (SWIG_IsTmpObj(res2)) {
19268 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19269 } else {
19270 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19271 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19272 }
19273 if (SWIG_IsTmpObj(res3)) {
19274 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19275 } else {
19276 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19277 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19278 }
19279 return resultobj;
19280 fail:
19281 return NULL;
19282 }
19283
19284
19285 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19286 PyObject *resultobj = 0;
19287 wxDC *arg1 = (wxDC *) 0 ;
19288 double arg2 ;
19289 double arg3 ;
19290 void *argp1 = 0 ;
19291 int res1 = 0 ;
19292 double val2 ;
19293 int ecode2 = 0 ;
19294 double val3 ;
19295 int ecode3 = 0 ;
19296 PyObject * obj0 = 0 ;
19297 PyObject * obj1 = 0 ;
19298 PyObject * obj2 = 0 ;
19299 char * kwnames[] = {
19300 (char *) "self",(char *) "x",(char *) "y", NULL
19301 };
19302
19303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19305 if (!SWIG_IsOK(res1)) {
19306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19307 }
19308 arg1 = reinterpret_cast< wxDC * >(argp1);
19309 ecode2 = SWIG_AsVal_double(obj1, &val2);
19310 if (!SWIG_IsOK(ecode2)) {
19311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19312 }
19313 arg2 = static_cast< double >(val2);
19314 ecode3 = SWIG_AsVal_double(obj2, &val3);
19315 if (!SWIG_IsOK(ecode3)) {
19316 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19317 }
19318 arg3 = static_cast< double >(val3);
19319 {
19320 PyThreadState* __tstate = wxPyBeginAllowThreads();
19321 (arg1)->SetLogicalScale(arg2,arg3);
19322 wxPyEndAllowThreads(__tstate);
19323 if (PyErr_Occurred()) SWIG_fail;
19324 }
19325 resultobj = SWIG_Py_Void();
19326 return resultobj;
19327 fail:
19328 return NULL;
19329 }
19330
19331
19332 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19333 PyObject *resultobj = 0;
19334 wxDC *arg1 = (wxDC *) 0 ;
19335 wxPoint result;
19336 void *argp1 = 0 ;
19337 int res1 = 0 ;
19338 PyObject *swig_obj[1] ;
19339
19340 if (!args) SWIG_fail;
19341 swig_obj[0] = args;
19342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19343 if (!SWIG_IsOK(res1)) {
19344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19345 }
19346 arg1 = reinterpret_cast< wxDC * >(argp1);
19347 {
19348 PyThreadState* __tstate = wxPyBeginAllowThreads();
19349 result = ((wxDC const *)arg1)->GetLogicalOrigin();
19350 wxPyEndAllowThreads(__tstate);
19351 if (PyErr_Occurred()) SWIG_fail;
19352 }
19353 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19354 return resultobj;
19355 fail:
19356 return NULL;
19357 }
19358
19359
19360 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19361 PyObject *resultobj = 0;
19362 wxDC *arg1 = (wxDC *) 0 ;
19363 int *arg2 = (int *) 0 ;
19364 int *arg3 = (int *) 0 ;
19365 void *argp1 = 0 ;
19366 int res1 = 0 ;
19367 int temp2 ;
19368 int res2 = SWIG_TMPOBJ ;
19369 int temp3 ;
19370 int res3 = SWIG_TMPOBJ ;
19371 PyObject *swig_obj[1] ;
19372
19373 arg2 = &temp2;
19374 arg3 = &temp3;
19375 if (!args) SWIG_fail;
19376 swig_obj[0] = args;
19377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19378 if (!SWIG_IsOK(res1)) {
19379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19380 }
19381 arg1 = reinterpret_cast< wxDC * >(argp1);
19382 {
19383 PyThreadState* __tstate = wxPyBeginAllowThreads();
19384 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
19385 wxPyEndAllowThreads(__tstate);
19386 if (PyErr_Occurred()) SWIG_fail;
19387 }
19388 resultobj = SWIG_Py_Void();
19389 if (SWIG_IsTmpObj(res2)) {
19390 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19391 } else {
19392 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19393 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19394 }
19395 if (SWIG_IsTmpObj(res3)) {
19396 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19397 } else {
19398 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19399 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19400 }
19401 return resultobj;
19402 fail:
19403 return NULL;
19404 }
19405
19406
19407 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19408 PyObject *resultobj = 0;
19409 wxDC *arg1 = (wxDC *) 0 ;
19410 int arg2 ;
19411 int arg3 ;
19412 void *argp1 = 0 ;
19413 int res1 = 0 ;
19414 int val2 ;
19415 int ecode2 = 0 ;
19416 int val3 ;
19417 int ecode3 = 0 ;
19418 PyObject * obj0 = 0 ;
19419 PyObject * obj1 = 0 ;
19420 PyObject * obj2 = 0 ;
19421 char * kwnames[] = {
19422 (char *) "self",(char *) "x",(char *) "y", NULL
19423 };
19424
19425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19427 if (!SWIG_IsOK(res1)) {
19428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19429 }
19430 arg1 = reinterpret_cast< wxDC * >(argp1);
19431 ecode2 = SWIG_AsVal_int(obj1, &val2);
19432 if (!SWIG_IsOK(ecode2)) {
19433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
19434 }
19435 arg2 = static_cast< int >(val2);
19436 ecode3 = SWIG_AsVal_int(obj2, &val3);
19437 if (!SWIG_IsOK(ecode3)) {
19438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
19439 }
19440 arg3 = static_cast< int >(val3);
19441 {
19442 PyThreadState* __tstate = wxPyBeginAllowThreads();
19443 (arg1)->SetLogicalOrigin(arg2,arg3);
19444 wxPyEndAllowThreads(__tstate);
19445 if (PyErr_Occurred()) SWIG_fail;
19446 }
19447 resultobj = SWIG_Py_Void();
19448 return resultobj;
19449 fail:
19450 return NULL;
19451 }
19452
19453
19454 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19455 PyObject *resultobj = 0;
19456 wxDC *arg1 = (wxDC *) 0 ;
19457 wxPoint *arg2 = 0 ;
19458 void *argp1 = 0 ;
19459 int res1 = 0 ;
19460 wxPoint temp2 ;
19461 PyObject * obj0 = 0 ;
19462 PyObject * obj1 = 0 ;
19463 char * kwnames[] = {
19464 (char *) "self",(char *) "point", NULL
19465 };
19466
19467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19469 if (!SWIG_IsOK(res1)) {
19470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19471 }
19472 arg1 = reinterpret_cast< wxDC * >(argp1);
19473 {
19474 arg2 = &temp2;
19475 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19476 }
19477 {
19478 PyThreadState* __tstate = wxPyBeginAllowThreads();
19479 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
19480 wxPyEndAllowThreads(__tstate);
19481 if (PyErr_Occurred()) SWIG_fail;
19482 }
19483 resultobj = SWIG_Py_Void();
19484 return resultobj;
19485 fail:
19486 return NULL;
19487 }
19488
19489
19490 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19491 PyObject *resultobj = 0;
19492 wxDC *arg1 = (wxDC *) 0 ;
19493 wxPoint result;
19494 void *argp1 = 0 ;
19495 int res1 = 0 ;
19496 PyObject *swig_obj[1] ;
19497
19498 if (!args) SWIG_fail;
19499 swig_obj[0] = args;
19500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19501 if (!SWIG_IsOK(res1)) {
19502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19503 }
19504 arg1 = reinterpret_cast< wxDC * >(argp1);
19505 {
19506 PyThreadState* __tstate = wxPyBeginAllowThreads();
19507 result = ((wxDC const *)arg1)->GetDeviceOrigin();
19508 wxPyEndAllowThreads(__tstate);
19509 if (PyErr_Occurred()) SWIG_fail;
19510 }
19511 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19512 return resultobj;
19513 fail:
19514 return NULL;
19515 }
19516
19517
19518 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19519 PyObject *resultobj = 0;
19520 wxDC *arg1 = (wxDC *) 0 ;
19521 int *arg2 = (int *) 0 ;
19522 int *arg3 = (int *) 0 ;
19523 void *argp1 = 0 ;
19524 int res1 = 0 ;
19525 int temp2 ;
19526 int res2 = SWIG_TMPOBJ ;
19527 int temp3 ;
19528 int res3 = SWIG_TMPOBJ ;
19529 PyObject *swig_obj[1] ;
19530
19531 arg2 = &temp2;
19532 arg3 = &temp3;
19533 if (!args) SWIG_fail;
19534 swig_obj[0] = args;
19535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19536 if (!SWIG_IsOK(res1)) {
19537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19538 }
19539 arg1 = reinterpret_cast< wxDC * >(argp1);
19540 {
19541 PyThreadState* __tstate = wxPyBeginAllowThreads();
19542 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
19543 wxPyEndAllowThreads(__tstate);
19544 if (PyErr_Occurred()) SWIG_fail;
19545 }
19546 resultobj = SWIG_Py_Void();
19547 if (SWIG_IsTmpObj(res2)) {
19548 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19549 } else {
19550 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19551 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19552 }
19553 if (SWIG_IsTmpObj(res3)) {
19554 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19555 } else {
19556 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19557 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19558 }
19559 return resultobj;
19560 fail:
19561 return NULL;
19562 }
19563
19564
19565 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19566 PyObject *resultobj = 0;
19567 wxDC *arg1 = (wxDC *) 0 ;
19568 int arg2 ;
19569 int arg3 ;
19570 void *argp1 = 0 ;
19571 int res1 = 0 ;
19572 int val2 ;
19573 int ecode2 = 0 ;
19574 int val3 ;
19575 int ecode3 = 0 ;
19576 PyObject * obj0 = 0 ;
19577 PyObject * obj1 = 0 ;
19578 PyObject * obj2 = 0 ;
19579 char * kwnames[] = {
19580 (char *) "self",(char *) "x",(char *) "y", NULL
19581 };
19582
19583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19585 if (!SWIG_IsOK(res1)) {
19586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19587 }
19588 arg1 = reinterpret_cast< wxDC * >(argp1);
19589 ecode2 = SWIG_AsVal_int(obj1, &val2);
19590 if (!SWIG_IsOK(ecode2)) {
19591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
19592 }
19593 arg2 = static_cast< int >(val2);
19594 ecode3 = SWIG_AsVal_int(obj2, &val3);
19595 if (!SWIG_IsOK(ecode3)) {
19596 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
19597 }
19598 arg3 = static_cast< int >(val3);
19599 {
19600 PyThreadState* __tstate = wxPyBeginAllowThreads();
19601 (arg1)->SetDeviceOrigin(arg2,arg3);
19602 wxPyEndAllowThreads(__tstate);
19603 if (PyErr_Occurred()) SWIG_fail;
19604 }
19605 resultobj = SWIG_Py_Void();
19606 return resultobj;
19607 fail:
19608 return NULL;
19609 }
19610
19611
19612 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19613 PyObject *resultobj = 0;
19614 wxDC *arg1 = (wxDC *) 0 ;
19615 wxPoint *arg2 = 0 ;
19616 void *argp1 = 0 ;
19617 int res1 = 0 ;
19618 wxPoint temp2 ;
19619 PyObject * obj0 = 0 ;
19620 PyObject * obj1 = 0 ;
19621 char * kwnames[] = {
19622 (char *) "self",(char *) "point", NULL
19623 };
19624
19625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19627 if (!SWIG_IsOK(res1)) {
19628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19629 }
19630 arg1 = reinterpret_cast< wxDC * >(argp1);
19631 {
19632 arg2 = &temp2;
19633 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19634 }
19635 {
19636 PyThreadState* __tstate = wxPyBeginAllowThreads();
19637 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
19638 wxPyEndAllowThreads(__tstate);
19639 if (PyErr_Occurred()) SWIG_fail;
19640 }
19641 resultobj = SWIG_Py_Void();
19642 return resultobj;
19643 fail:
19644 return NULL;
19645 }
19646
19647
19648 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19649 PyObject *resultobj = 0;
19650 wxDC *arg1 = (wxDC *) 0 ;
19651 bool arg2 ;
19652 bool arg3 ;
19653 void *argp1 = 0 ;
19654 int res1 = 0 ;
19655 bool val2 ;
19656 int ecode2 = 0 ;
19657 bool val3 ;
19658 int ecode3 = 0 ;
19659 PyObject * obj0 = 0 ;
19660 PyObject * obj1 = 0 ;
19661 PyObject * obj2 = 0 ;
19662 char * kwnames[] = {
19663 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
19664 };
19665
19666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19668 if (!SWIG_IsOK(res1)) {
19669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
19670 }
19671 arg1 = reinterpret_cast< wxDC * >(argp1);
19672 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19673 if (!SWIG_IsOK(ecode2)) {
19674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
19675 }
19676 arg2 = static_cast< bool >(val2);
19677 ecode3 = SWIG_AsVal_bool(obj2, &val3);
19678 if (!SWIG_IsOK(ecode3)) {
19679 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
19680 }
19681 arg3 = static_cast< bool >(val3);
19682 {
19683 PyThreadState* __tstate = wxPyBeginAllowThreads();
19684 (arg1)->SetAxisOrientation(arg2,arg3);
19685 wxPyEndAllowThreads(__tstate);
19686 if (PyErr_Occurred()) SWIG_fail;
19687 }
19688 resultobj = SWIG_Py_Void();
19689 return resultobj;
19690 fail:
19691 return NULL;
19692 }
19693
19694
19695 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19696 PyObject *resultobj = 0;
19697 wxDC *arg1 = (wxDC *) 0 ;
19698 int result;
19699 void *argp1 = 0 ;
19700 int res1 = 0 ;
19701 PyObject *swig_obj[1] ;
19702
19703 if (!args) SWIG_fail;
19704 swig_obj[0] = args;
19705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19706 if (!SWIG_IsOK(res1)) {
19707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
19708 }
19709 arg1 = reinterpret_cast< wxDC * >(argp1);
19710 {
19711 PyThreadState* __tstate = wxPyBeginAllowThreads();
19712 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
19713 wxPyEndAllowThreads(__tstate);
19714 if (PyErr_Occurred()) SWIG_fail;
19715 }
19716 resultobj = SWIG_From_int(static_cast< int >(result));
19717 return resultobj;
19718 fail:
19719 return NULL;
19720 }
19721
19722
19723 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19724 PyObject *resultobj = 0;
19725 wxDC *arg1 = (wxDC *) 0 ;
19726 int arg2 ;
19727 void *argp1 = 0 ;
19728 int res1 = 0 ;
19729 int val2 ;
19730 int ecode2 = 0 ;
19731 PyObject * obj0 = 0 ;
19732 PyObject * obj1 = 0 ;
19733 char * kwnames[] = {
19734 (char *) "self",(char *) "function", NULL
19735 };
19736
19737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
19738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19739 if (!SWIG_IsOK(res1)) {
19740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
19741 }
19742 arg1 = reinterpret_cast< wxDC * >(argp1);
19743 ecode2 = SWIG_AsVal_int(obj1, &val2);
19744 if (!SWIG_IsOK(ecode2)) {
19745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
19746 }
19747 arg2 = static_cast< int >(val2);
19748 {
19749 PyThreadState* __tstate = wxPyBeginAllowThreads();
19750 (arg1)->SetLogicalFunction(arg2);
19751 wxPyEndAllowThreads(__tstate);
19752 if (PyErr_Occurred()) SWIG_fail;
19753 }
19754 resultobj = SWIG_Py_Void();
19755 return resultobj;
19756 fail:
19757 return NULL;
19758 }
19759
19760
19761 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19762 PyObject *resultobj = 0;
19763 wxDC *arg1 = (wxDC *) 0 ;
19764 void *argp1 = 0 ;
19765 int res1 = 0 ;
19766 PyObject *swig_obj[1] ;
19767
19768 if (!args) SWIG_fail;
19769 swig_obj[0] = args;
19770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19771 if (!SWIG_IsOK(res1)) {
19772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19773 }
19774 arg1 = reinterpret_cast< wxDC * >(argp1);
19775 {
19776 PyThreadState* __tstate = wxPyBeginAllowThreads();
19777 (arg1)->ComputeScaleAndOrigin();
19778 wxPyEndAllowThreads(__tstate);
19779 if (PyErr_Occurred()) SWIG_fail;
19780 }
19781 resultobj = SWIG_Py_Void();
19782 return resultobj;
19783 fail:
19784 return NULL;
19785 }
19786
19787
19788 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19789 PyObject *resultobj = 0;
19790 wxDC *arg1 = (wxDC *) 0 ;
19791 int arg2 ;
19792 int arg3 ;
19793 void *argp1 = 0 ;
19794 int res1 = 0 ;
19795 int val2 ;
19796 int ecode2 = 0 ;
19797 int val3 ;
19798 int ecode3 = 0 ;
19799 PyObject * obj0 = 0 ;
19800 PyObject * obj1 = 0 ;
19801 PyObject * obj2 = 0 ;
19802 char * kwnames[] = {
19803 (char *) "self",(char *) "x",(char *) "y", NULL
19804 };
19805
19806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19808 if (!SWIG_IsOK(res1)) {
19809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19810 }
19811 arg1 = reinterpret_cast< wxDC * >(argp1);
19812 ecode2 = SWIG_AsVal_int(obj1, &val2);
19813 if (!SWIG_IsOK(ecode2)) {
19814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
19815 }
19816 arg2 = static_cast< int >(val2);
19817 ecode3 = SWIG_AsVal_int(obj2, &val3);
19818 if (!SWIG_IsOK(ecode3)) {
19819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
19820 }
19821 arg3 = static_cast< int >(val3);
19822 {
19823 PyThreadState* __tstate = wxPyBeginAllowThreads();
19824 (arg1)->CalcBoundingBox(arg2,arg3);
19825 wxPyEndAllowThreads(__tstate);
19826 if (PyErr_Occurred()) SWIG_fail;
19827 }
19828 resultobj = SWIG_Py_Void();
19829 return resultobj;
19830 fail:
19831 return NULL;
19832 }
19833
19834
19835 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19836 PyObject *resultobj = 0;
19837 wxDC *arg1 = (wxDC *) 0 ;
19838 wxPoint *arg2 = 0 ;
19839 void *argp1 = 0 ;
19840 int res1 = 0 ;
19841 wxPoint temp2 ;
19842 PyObject * obj0 = 0 ;
19843 PyObject * obj1 = 0 ;
19844 char * kwnames[] = {
19845 (char *) "self",(char *) "point", NULL
19846 };
19847
19848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19850 if (!SWIG_IsOK(res1)) {
19851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19852 }
19853 arg1 = reinterpret_cast< wxDC * >(argp1);
19854 {
19855 arg2 = &temp2;
19856 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19857 }
19858 {
19859 PyThreadState* __tstate = wxPyBeginAllowThreads();
19860 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
19861 wxPyEndAllowThreads(__tstate);
19862 if (PyErr_Occurred()) SWIG_fail;
19863 }
19864 resultobj = SWIG_Py_Void();
19865 return resultobj;
19866 fail:
19867 return NULL;
19868 }
19869
19870
19871 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19872 PyObject *resultobj = 0;
19873 wxDC *arg1 = (wxDC *) 0 ;
19874 void *argp1 = 0 ;
19875 int res1 = 0 ;
19876 PyObject *swig_obj[1] ;
19877
19878 if (!args) SWIG_fail;
19879 swig_obj[0] = args;
19880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19881 if (!SWIG_IsOK(res1)) {
19882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19883 }
19884 arg1 = reinterpret_cast< wxDC * >(argp1);
19885 {
19886 PyThreadState* __tstate = wxPyBeginAllowThreads();
19887 (arg1)->ResetBoundingBox();
19888 wxPyEndAllowThreads(__tstate);
19889 if (PyErr_Occurred()) SWIG_fail;
19890 }
19891 resultobj = SWIG_Py_Void();
19892 return resultobj;
19893 fail:
19894 return NULL;
19895 }
19896
19897
19898 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19899 PyObject *resultobj = 0;
19900 wxDC *arg1 = (wxDC *) 0 ;
19901 int result;
19902 void *argp1 = 0 ;
19903 int res1 = 0 ;
19904 PyObject *swig_obj[1] ;
19905
19906 if (!args) SWIG_fail;
19907 swig_obj[0] = args;
19908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19909 if (!SWIG_IsOK(res1)) {
19910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
19911 }
19912 arg1 = reinterpret_cast< wxDC * >(argp1);
19913 {
19914 PyThreadState* __tstate = wxPyBeginAllowThreads();
19915 result = (int)((wxDC const *)arg1)->MinX();
19916 wxPyEndAllowThreads(__tstate);
19917 if (PyErr_Occurred()) SWIG_fail;
19918 }
19919 resultobj = SWIG_From_int(static_cast< int >(result));
19920 return resultobj;
19921 fail:
19922 return NULL;
19923 }
19924
19925
19926 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19927 PyObject *resultobj = 0;
19928 wxDC *arg1 = (wxDC *) 0 ;
19929 int result;
19930 void *argp1 = 0 ;
19931 int res1 = 0 ;
19932 PyObject *swig_obj[1] ;
19933
19934 if (!args) SWIG_fail;
19935 swig_obj[0] = args;
19936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19937 if (!SWIG_IsOK(res1)) {
19938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
19939 }
19940 arg1 = reinterpret_cast< wxDC * >(argp1);
19941 {
19942 PyThreadState* __tstate = wxPyBeginAllowThreads();
19943 result = (int)((wxDC const *)arg1)->MaxX();
19944 wxPyEndAllowThreads(__tstate);
19945 if (PyErr_Occurred()) SWIG_fail;
19946 }
19947 resultobj = SWIG_From_int(static_cast< int >(result));
19948 return resultobj;
19949 fail:
19950 return NULL;
19951 }
19952
19953
19954 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19955 PyObject *resultobj = 0;
19956 wxDC *arg1 = (wxDC *) 0 ;
19957 int result;
19958 void *argp1 = 0 ;
19959 int res1 = 0 ;
19960 PyObject *swig_obj[1] ;
19961
19962 if (!args) SWIG_fail;
19963 swig_obj[0] = args;
19964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19965 if (!SWIG_IsOK(res1)) {
19966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
19967 }
19968 arg1 = reinterpret_cast< wxDC * >(argp1);
19969 {
19970 PyThreadState* __tstate = wxPyBeginAllowThreads();
19971 result = (int)((wxDC const *)arg1)->MinY();
19972 wxPyEndAllowThreads(__tstate);
19973 if (PyErr_Occurred()) SWIG_fail;
19974 }
19975 resultobj = SWIG_From_int(static_cast< int >(result));
19976 return resultobj;
19977 fail:
19978 return NULL;
19979 }
19980
19981
19982 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19983 PyObject *resultobj = 0;
19984 wxDC *arg1 = (wxDC *) 0 ;
19985 int result;
19986 void *argp1 = 0 ;
19987 int res1 = 0 ;
19988 PyObject *swig_obj[1] ;
19989
19990 if (!args) SWIG_fail;
19991 swig_obj[0] = args;
19992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19993 if (!SWIG_IsOK(res1)) {
19994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
19995 }
19996 arg1 = reinterpret_cast< wxDC * >(argp1);
19997 {
19998 PyThreadState* __tstate = wxPyBeginAllowThreads();
19999 result = (int)((wxDC const *)arg1)->MaxY();
20000 wxPyEndAllowThreads(__tstate);
20001 if (PyErr_Occurred()) SWIG_fail;
20002 }
20003 resultobj = SWIG_From_int(static_cast< int >(result));
20004 return resultobj;
20005 fail:
20006 return NULL;
20007 }
20008
20009
20010 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20011 PyObject *resultobj = 0;
20012 wxDC *arg1 = (wxDC *) 0 ;
20013 int *arg2 = (int *) 0 ;
20014 int *arg3 = (int *) 0 ;
20015 int *arg4 = (int *) 0 ;
20016 int *arg5 = (int *) 0 ;
20017 void *argp1 = 0 ;
20018 int res1 = 0 ;
20019 int temp2 ;
20020 int res2 = SWIG_TMPOBJ ;
20021 int temp3 ;
20022 int res3 = SWIG_TMPOBJ ;
20023 int temp4 ;
20024 int res4 = SWIG_TMPOBJ ;
20025 int temp5 ;
20026 int res5 = SWIG_TMPOBJ ;
20027 PyObject *swig_obj[1] ;
20028
20029 arg2 = &temp2;
20030 arg3 = &temp3;
20031 arg4 = &temp4;
20032 arg5 = &temp5;
20033 if (!args) SWIG_fail;
20034 swig_obj[0] = args;
20035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20036 if (!SWIG_IsOK(res1)) {
20037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20038 }
20039 arg1 = reinterpret_cast< wxDC * >(argp1);
20040 {
20041 PyThreadState* __tstate = wxPyBeginAllowThreads();
20042 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
20043 wxPyEndAllowThreads(__tstate);
20044 if (PyErr_Occurred()) SWIG_fail;
20045 }
20046 resultobj = SWIG_Py_Void();
20047 if (SWIG_IsTmpObj(res2)) {
20048 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20049 } else {
20050 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20051 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20052 }
20053 if (SWIG_IsTmpObj(res3)) {
20054 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20055 } else {
20056 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20057 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20058 }
20059 if (SWIG_IsTmpObj(res4)) {
20060 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20061 } else {
20062 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20063 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20064 }
20065 if (SWIG_IsTmpObj(res5)) {
20066 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20067 } else {
20068 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20069 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20070 }
20071 return resultobj;
20072 fail:
20073 return NULL;
20074 }
20075
20076
20077 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20078 PyObject *resultobj = 0;
20079 wxDC *arg1 = (wxDC *) 0 ;
20080 PyObject *arg2 = (PyObject *) 0 ;
20081 PyObject *arg3 = (PyObject *) 0 ;
20082 PyObject *arg4 = (PyObject *) 0 ;
20083 PyObject *result = 0 ;
20084 void *argp1 = 0 ;
20085 int res1 = 0 ;
20086 PyObject * obj0 = 0 ;
20087 PyObject * obj1 = 0 ;
20088 PyObject * obj2 = 0 ;
20089 PyObject * obj3 = 0 ;
20090 char * kwnames[] = {
20091 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20092 };
20093
20094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20096 if (!SWIG_IsOK(res1)) {
20097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
20098 }
20099 arg1 = reinterpret_cast< wxDC * >(argp1);
20100 arg2 = obj1;
20101 arg3 = obj2;
20102 arg4 = obj3;
20103 {
20104 PyThreadState* __tstate = wxPyBeginAllowThreads();
20105 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
20106 wxPyEndAllowThreads(__tstate);
20107 if (PyErr_Occurred()) SWIG_fail;
20108 }
20109 resultobj = result;
20110 return resultobj;
20111 fail:
20112 return NULL;
20113 }
20114
20115
20116 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20117 PyObject *resultobj = 0;
20118 wxDC *arg1 = (wxDC *) 0 ;
20119 PyObject *arg2 = (PyObject *) 0 ;
20120 PyObject *arg3 = (PyObject *) 0 ;
20121 PyObject *arg4 = (PyObject *) 0 ;
20122 PyObject *result = 0 ;
20123 void *argp1 = 0 ;
20124 int res1 = 0 ;
20125 PyObject * obj0 = 0 ;
20126 PyObject * obj1 = 0 ;
20127 PyObject * obj2 = 0 ;
20128 PyObject * obj3 = 0 ;
20129 char * kwnames[] = {
20130 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20131 };
20132
20133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20135 if (!SWIG_IsOK(res1)) {
20136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20137 }
20138 arg1 = reinterpret_cast< wxDC * >(argp1);
20139 arg2 = obj1;
20140 arg3 = obj2;
20141 arg4 = obj3;
20142 {
20143 PyThreadState* __tstate = wxPyBeginAllowThreads();
20144 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
20145 wxPyEndAllowThreads(__tstate);
20146 if (PyErr_Occurred()) SWIG_fail;
20147 }
20148 resultobj = result;
20149 return resultobj;
20150 fail:
20151 return NULL;
20152 }
20153
20154
20155 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20156 PyObject *resultobj = 0;
20157 wxDC *arg1 = (wxDC *) 0 ;
20158 PyObject *arg2 = (PyObject *) 0 ;
20159 PyObject *arg3 = (PyObject *) 0 ;
20160 PyObject *arg4 = (PyObject *) 0 ;
20161 PyObject *result = 0 ;
20162 void *argp1 = 0 ;
20163 int res1 = 0 ;
20164 PyObject * obj0 = 0 ;
20165 PyObject * obj1 = 0 ;
20166 PyObject * obj2 = 0 ;
20167 PyObject * obj3 = 0 ;
20168 char * kwnames[] = {
20169 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20170 };
20171
20172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20174 if (!SWIG_IsOK(res1)) {
20175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20176 }
20177 arg1 = reinterpret_cast< wxDC * >(argp1);
20178 arg2 = obj1;
20179 arg3 = obj2;
20180 arg4 = obj3;
20181 {
20182 PyThreadState* __tstate = wxPyBeginAllowThreads();
20183 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
20184 wxPyEndAllowThreads(__tstate);
20185 if (PyErr_Occurred()) SWIG_fail;
20186 }
20187 resultobj = result;
20188 return resultobj;
20189 fail:
20190 return NULL;
20191 }
20192
20193
20194 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20195 PyObject *resultobj = 0;
20196 wxDC *arg1 = (wxDC *) 0 ;
20197 PyObject *arg2 = (PyObject *) 0 ;
20198 PyObject *arg3 = (PyObject *) 0 ;
20199 PyObject *arg4 = (PyObject *) 0 ;
20200 PyObject *result = 0 ;
20201 void *argp1 = 0 ;
20202 int res1 = 0 ;
20203 PyObject * obj0 = 0 ;
20204 PyObject * obj1 = 0 ;
20205 PyObject * obj2 = 0 ;
20206 PyObject * obj3 = 0 ;
20207 char * kwnames[] = {
20208 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20209 };
20210
20211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20213 if (!SWIG_IsOK(res1)) {
20214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20215 }
20216 arg1 = reinterpret_cast< wxDC * >(argp1);
20217 arg2 = obj1;
20218 arg3 = obj2;
20219 arg4 = obj3;
20220 {
20221 PyThreadState* __tstate = wxPyBeginAllowThreads();
20222 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
20223 wxPyEndAllowThreads(__tstate);
20224 if (PyErr_Occurred()) SWIG_fail;
20225 }
20226 resultobj = result;
20227 return resultobj;
20228 fail:
20229 return NULL;
20230 }
20231
20232
20233 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20234 PyObject *resultobj = 0;
20235 wxDC *arg1 = (wxDC *) 0 ;
20236 PyObject *arg2 = (PyObject *) 0 ;
20237 PyObject *arg3 = (PyObject *) 0 ;
20238 PyObject *arg4 = (PyObject *) 0 ;
20239 PyObject *result = 0 ;
20240 void *argp1 = 0 ;
20241 int res1 = 0 ;
20242 PyObject * obj0 = 0 ;
20243 PyObject * obj1 = 0 ;
20244 PyObject * obj2 = 0 ;
20245 PyObject * obj3 = 0 ;
20246 char * kwnames[] = {
20247 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20248 };
20249
20250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20252 if (!SWIG_IsOK(res1)) {
20253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20254 }
20255 arg1 = reinterpret_cast< wxDC * >(argp1);
20256 arg2 = obj1;
20257 arg3 = obj2;
20258 arg4 = obj3;
20259 {
20260 PyThreadState* __tstate = wxPyBeginAllowThreads();
20261 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
20262 wxPyEndAllowThreads(__tstate);
20263 if (PyErr_Occurred()) SWIG_fail;
20264 }
20265 resultobj = result;
20266 return resultobj;
20267 fail:
20268 return NULL;
20269 }
20270
20271
20272 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20273 PyObject *resultobj = 0;
20274 wxDC *arg1 = (wxDC *) 0 ;
20275 PyObject *arg2 = (PyObject *) 0 ;
20276 PyObject *arg3 = (PyObject *) 0 ;
20277 PyObject *arg4 = (PyObject *) 0 ;
20278 PyObject *arg5 = (PyObject *) 0 ;
20279 PyObject *result = 0 ;
20280 void *argp1 = 0 ;
20281 int res1 = 0 ;
20282 PyObject * obj0 = 0 ;
20283 PyObject * obj1 = 0 ;
20284 PyObject * obj2 = 0 ;
20285 PyObject * obj3 = 0 ;
20286 PyObject * obj4 = 0 ;
20287 char * kwnames[] = {
20288 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20289 };
20290
20291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20293 if (!SWIG_IsOK(res1)) {
20294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20295 }
20296 arg1 = reinterpret_cast< wxDC * >(argp1);
20297 arg2 = obj1;
20298 arg3 = obj2;
20299 arg4 = obj3;
20300 arg5 = obj4;
20301 {
20302 PyThreadState* __tstate = wxPyBeginAllowThreads();
20303 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
20304 wxPyEndAllowThreads(__tstate);
20305 if (PyErr_Occurred()) SWIG_fail;
20306 }
20307 resultobj = result;
20308 return resultobj;
20309 fail:
20310 return NULL;
20311 }
20312
20313
20314 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20315 PyObject *obj;
20316 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20317 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
20318 return SWIG_Py_Void();
20319 }
20320
20321 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20322 PyObject *resultobj = 0;
20323 wxMemoryDC *result = 0 ;
20324
20325 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
20326 {
20327 if (!wxPyCheckForApp()) SWIG_fail;
20328 PyThreadState* __tstate = wxPyBeginAllowThreads();
20329 result = (wxMemoryDC *)new wxMemoryDC();
20330 wxPyEndAllowThreads(__tstate);
20331 if (PyErr_Occurred()) SWIG_fail;
20332 }
20333 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
20334 return resultobj;
20335 fail:
20336 return NULL;
20337 }
20338
20339
20340 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20341 PyObject *resultobj = 0;
20342 wxDC *arg1 = (wxDC *) 0 ;
20343 wxMemoryDC *result = 0 ;
20344 void *argp1 = 0 ;
20345 int res1 = 0 ;
20346 PyObject * obj0 = 0 ;
20347 char * kwnames[] = {
20348 (char *) "oldDC", NULL
20349 };
20350
20351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
20352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20353 if (!SWIG_IsOK(res1)) {
20354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
20355 }
20356 arg1 = reinterpret_cast< wxDC * >(argp1);
20357 {
20358 if (!wxPyCheckForApp()) SWIG_fail;
20359 PyThreadState* __tstate = wxPyBeginAllowThreads();
20360 result = (wxMemoryDC *)new wxMemoryDC(arg1);
20361 wxPyEndAllowThreads(__tstate);
20362 if (PyErr_Occurred()) SWIG_fail;
20363 }
20364 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
20365 return resultobj;
20366 fail:
20367 return NULL;
20368 }
20369
20370
20371 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20372 PyObject *resultobj = 0;
20373 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
20374 wxBitmap *arg2 = 0 ;
20375 void *argp1 = 0 ;
20376 int res1 = 0 ;
20377 void *argp2 = 0 ;
20378 int res2 = 0 ;
20379 PyObject * obj0 = 0 ;
20380 PyObject * obj1 = 0 ;
20381 char * kwnames[] = {
20382 (char *) "self",(char *) "bitmap", NULL
20383 };
20384
20385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
20386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
20387 if (!SWIG_IsOK(res1)) {
20388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
20389 }
20390 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
20391 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20392 if (!SWIG_IsOK(res2)) {
20393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20394 }
20395 if (!argp2) {
20396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20397 }
20398 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20399 {
20400 PyThreadState* __tstate = wxPyBeginAllowThreads();
20401 (arg1)->SelectObject((wxBitmap const &)*arg2);
20402 wxPyEndAllowThreads(__tstate);
20403 if (PyErr_Occurred()) SWIG_fail;
20404 }
20405 resultobj = SWIG_Py_Void();
20406 return resultobj;
20407 fail:
20408 return NULL;
20409 }
20410
20411
20412 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20413 PyObject *obj;
20414 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20415 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
20416 return SWIG_Py_Void();
20417 }
20418
20419 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20420 return SWIG_Python_InitShadowInstance(args);
20421 }
20422
20423 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20424 PyObject *resultobj = 0;
20425 wxDC *arg1 = (wxDC *) 0 ;
20426 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20427 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20428 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20429 wxBufferedDC *result = 0 ;
20430 void *argp1 = 0 ;
20431 int res1 = 0 ;
20432 void *argp2 = 0 ;
20433 int res2 = 0 ;
20434 int val3 ;
20435 int ecode3 = 0 ;
20436
20437 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
20438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20439 if (!SWIG_IsOK(res1)) {
20440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20441 }
20442 arg1 = reinterpret_cast< wxDC * >(argp1);
20443 if (swig_obj[1]) {
20444 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20445 if (!SWIG_IsOK(res2)) {
20446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20447 }
20448 if (!argp2) {
20449 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20450 }
20451 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20452 }
20453 if (swig_obj[2]) {
20454 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20455 if (!SWIG_IsOK(ecode3)) {
20456 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20457 }
20458 arg3 = static_cast< int >(val3);
20459 }
20460 {
20461 if (!wxPyCheckForApp()) SWIG_fail;
20462 PyThreadState* __tstate = wxPyBeginAllowThreads();
20463 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
20464 wxPyEndAllowThreads(__tstate);
20465 if (PyErr_Occurred()) SWIG_fail;
20466 }
20467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20468 return resultobj;
20469 fail:
20470 return NULL;
20471 }
20472
20473
20474 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20475 PyObject *resultobj = 0;
20476 wxDC *arg1 = (wxDC *) 0 ;
20477 wxSize *arg2 = 0 ;
20478 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20479 wxBufferedDC *result = 0 ;
20480 void *argp1 = 0 ;
20481 int res1 = 0 ;
20482 wxSize temp2 ;
20483 int val3 ;
20484 int ecode3 = 0 ;
20485
20486 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
20487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20488 if (!SWIG_IsOK(res1)) {
20489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20490 }
20491 arg1 = reinterpret_cast< wxDC * >(argp1);
20492 {
20493 arg2 = &temp2;
20494 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
20495 }
20496 if (swig_obj[2]) {
20497 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20498 if (!SWIG_IsOK(ecode3)) {
20499 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20500 }
20501 arg3 = static_cast< int >(val3);
20502 }
20503 {
20504 if (!wxPyCheckForApp()) SWIG_fail;
20505 PyThreadState* __tstate = wxPyBeginAllowThreads();
20506 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
20507 wxPyEndAllowThreads(__tstate);
20508 if (PyErr_Occurred()) SWIG_fail;
20509 }
20510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20511 return resultobj;
20512 fail:
20513 return NULL;
20514 }
20515
20516
20517 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
20518 int argc;
20519 PyObject *argv[4];
20520
20521 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
20522 --argc;
20523 if ((argc >= 1) && (argc <= 3)) {
20524 int _v = 0;
20525 if (argc > 1) {
20526 {
20527 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
20528 _v = SWIG_CheckState(res);
20529 }
20530 if (!_v) goto check_1;
20531 }
20532 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
20533 }
20534 check_1:
20535
20536 if ((argc >= 2) && (argc <= 3)) {
20537 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
20538 }
20539
20540 fail:
20541 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
20542 return NULL;
20543 }
20544
20545
20546 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20547 PyObject *resultobj = 0;
20548 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20549 void *argp1 = 0 ;
20550 int res1 = 0 ;
20551 PyObject *swig_obj[1] ;
20552
20553 if (!args) SWIG_fail;
20554 swig_obj[0] = args;
20555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
20556 if (!SWIG_IsOK(res1)) {
20557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20558 }
20559 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20560 {
20561 PyThreadState* __tstate = wxPyBeginAllowThreads();
20562 delete arg1;
20563
20564 wxPyEndAllowThreads(__tstate);
20565 if (PyErr_Occurred()) SWIG_fail;
20566 }
20567 resultobj = SWIG_Py_Void();
20568 return resultobj;
20569 fail:
20570 return NULL;
20571 }
20572
20573
20574 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20575 PyObject *resultobj = 0;
20576 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20577 void *argp1 = 0 ;
20578 int res1 = 0 ;
20579 PyObject *swig_obj[1] ;
20580
20581 if (!args) SWIG_fail;
20582 swig_obj[0] = args;
20583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
20584 if (!SWIG_IsOK(res1)) {
20585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20586 }
20587 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20588 {
20589 PyThreadState* __tstate = wxPyBeginAllowThreads();
20590 (arg1)->UnMask();
20591 wxPyEndAllowThreads(__tstate);
20592 if (PyErr_Occurred()) SWIG_fail;
20593 }
20594 resultobj = SWIG_Py_Void();
20595 return resultobj;
20596 fail:
20597 return NULL;
20598 }
20599
20600
20601 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20602 PyObject *obj;
20603 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20604 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
20605 return SWIG_Py_Void();
20606 }
20607
20608 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20609 return SWIG_Python_InitShadowInstance(args);
20610 }
20611
20612 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20613 PyObject *resultobj = 0;
20614 wxWindow *arg1 = (wxWindow *) 0 ;
20615 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20616 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20617 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20618 wxBufferedPaintDC *result = 0 ;
20619 void *argp1 = 0 ;
20620 int res1 = 0 ;
20621 void *argp2 = 0 ;
20622 int res2 = 0 ;
20623 int val3 ;
20624 int ecode3 = 0 ;
20625 PyObject * obj0 = 0 ;
20626 PyObject * obj1 = 0 ;
20627 PyObject * obj2 = 0 ;
20628 char * kwnames[] = {
20629 (char *) "window",(char *) "buffer",(char *) "style", NULL
20630 };
20631
20632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20634 if (!SWIG_IsOK(res1)) {
20635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20636 }
20637 arg1 = reinterpret_cast< wxWindow * >(argp1);
20638 if (obj1) {
20639 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20640 if (!SWIG_IsOK(res2)) {
20641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20642 }
20643 if (!argp2) {
20644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20645 }
20646 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20647 }
20648 if (obj2) {
20649 ecode3 = SWIG_AsVal_int(obj2, &val3);
20650 if (!SWIG_IsOK(ecode3)) {
20651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
20652 }
20653 arg3 = static_cast< int >(val3);
20654 }
20655 {
20656 if (!wxPyCheckForApp()) SWIG_fail;
20657 PyThreadState* __tstate = wxPyBeginAllowThreads();
20658 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
20659 wxPyEndAllowThreads(__tstate);
20660 if (PyErr_Occurred()) SWIG_fail;
20661 }
20662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
20663 return resultobj;
20664 fail:
20665 return NULL;
20666 }
20667
20668
20669 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20670 PyObject *obj;
20671 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20672 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
20673 return SWIG_Py_Void();
20674 }
20675
20676 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20677 return SWIG_Python_InitShadowInstance(args);
20678 }
20679
20680 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20681 PyObject *resultobj = 0;
20682 wxScreenDC *result = 0 ;
20683
20684 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
20685 {
20686 if (!wxPyCheckForApp()) SWIG_fail;
20687 PyThreadState* __tstate = wxPyBeginAllowThreads();
20688 result = (wxScreenDC *)new wxScreenDC();
20689 wxPyEndAllowThreads(__tstate);
20690 if (PyErr_Occurred()) SWIG_fail;
20691 }
20692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
20693 return resultobj;
20694 fail:
20695 return NULL;
20696 }
20697
20698
20699 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20700 PyObject *resultobj = 0;
20701 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20702 wxWindow *arg2 = (wxWindow *) 0 ;
20703 bool result;
20704 void *argp1 = 0 ;
20705 int res1 = 0 ;
20706 void *argp2 = 0 ;
20707 int res2 = 0 ;
20708 PyObject * obj0 = 0 ;
20709 PyObject * obj1 = 0 ;
20710 char * kwnames[] = {
20711 (char *) "self",(char *) "window", NULL
20712 };
20713
20714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
20715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20716 if (!SWIG_IsOK(res1)) {
20717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20718 }
20719 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20720 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20721 if (!SWIG_IsOK(res2)) {
20722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
20723 }
20724 arg2 = reinterpret_cast< wxWindow * >(argp2);
20725 {
20726 PyThreadState* __tstate = wxPyBeginAllowThreads();
20727 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20728 wxPyEndAllowThreads(__tstate);
20729 if (PyErr_Occurred()) SWIG_fail;
20730 }
20731 {
20732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20733 }
20734 return resultobj;
20735 fail:
20736 return NULL;
20737 }
20738
20739
20740 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20741 PyObject *resultobj = 0;
20742 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20743 wxRect *arg2 = (wxRect *) NULL ;
20744 bool result;
20745 void *argp1 = 0 ;
20746 int res1 = 0 ;
20747 void *argp2 = 0 ;
20748 int res2 = 0 ;
20749 PyObject * obj0 = 0 ;
20750 PyObject * obj1 = 0 ;
20751 char * kwnames[] = {
20752 (char *) "self",(char *) "rect", NULL
20753 };
20754
20755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
20756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20757 if (!SWIG_IsOK(res1)) {
20758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20759 }
20760 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20761 if (obj1) {
20762 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20763 if (!SWIG_IsOK(res2)) {
20764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
20765 }
20766 arg2 = reinterpret_cast< wxRect * >(argp2);
20767 }
20768 {
20769 PyThreadState* __tstate = wxPyBeginAllowThreads();
20770 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20771 wxPyEndAllowThreads(__tstate);
20772 if (PyErr_Occurred()) SWIG_fail;
20773 }
20774 {
20775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20776 }
20777 return resultobj;
20778 fail:
20779 return NULL;
20780 }
20781
20782
20783 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20784 PyObject *resultobj = 0;
20785 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20786 bool result;
20787 void *argp1 = 0 ;
20788 int res1 = 0 ;
20789 PyObject *swig_obj[1] ;
20790
20791 if (!args) SWIG_fail;
20792 swig_obj[0] = args;
20793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20794 if (!SWIG_IsOK(res1)) {
20795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20796 }
20797 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20798 {
20799 PyThreadState* __tstate = wxPyBeginAllowThreads();
20800 result = (bool)(arg1)->EndDrawingOnTop();
20801 wxPyEndAllowThreads(__tstate);
20802 if (PyErr_Occurred()) SWIG_fail;
20803 }
20804 {
20805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20806 }
20807 return resultobj;
20808 fail:
20809 return NULL;
20810 }
20811
20812
20813 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20814 PyObject *obj;
20815 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20816 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
20817 return SWIG_Py_Void();
20818 }
20819
20820 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20821 return SWIG_Python_InitShadowInstance(args);
20822 }
20823
20824 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20825 PyObject *resultobj = 0;
20826 wxWindow *arg1 = (wxWindow *) 0 ;
20827 wxClientDC *result = 0 ;
20828 void *argp1 = 0 ;
20829 int res1 = 0 ;
20830 PyObject * obj0 = 0 ;
20831 char * kwnames[] = {
20832 (char *) "win", NULL
20833 };
20834
20835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
20836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20837 if (!SWIG_IsOK(res1)) {
20838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20839 }
20840 arg1 = reinterpret_cast< wxWindow * >(argp1);
20841 {
20842 if (!wxPyCheckForApp()) SWIG_fail;
20843 PyThreadState* __tstate = wxPyBeginAllowThreads();
20844 result = (wxClientDC *)new wxClientDC(arg1);
20845 wxPyEndAllowThreads(__tstate);
20846 if (PyErr_Occurred()) SWIG_fail;
20847 }
20848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
20849 return resultobj;
20850 fail:
20851 return NULL;
20852 }
20853
20854
20855 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20856 PyObject *obj;
20857 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20858 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
20859 return SWIG_Py_Void();
20860 }
20861
20862 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20863 return SWIG_Python_InitShadowInstance(args);
20864 }
20865
20866 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20867 PyObject *resultobj = 0;
20868 wxWindow *arg1 = (wxWindow *) 0 ;
20869 wxPaintDC *result = 0 ;
20870 void *argp1 = 0 ;
20871 int res1 = 0 ;
20872 PyObject * obj0 = 0 ;
20873 char * kwnames[] = {
20874 (char *) "win", NULL
20875 };
20876
20877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
20878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20879 if (!SWIG_IsOK(res1)) {
20880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20881 }
20882 arg1 = reinterpret_cast< wxWindow * >(argp1);
20883 {
20884 if (!wxPyCheckForApp()) SWIG_fail;
20885 PyThreadState* __tstate = wxPyBeginAllowThreads();
20886 result = (wxPaintDC *)new wxPaintDC(arg1);
20887 wxPyEndAllowThreads(__tstate);
20888 if (PyErr_Occurred()) SWIG_fail;
20889 }
20890 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
20891 return resultobj;
20892 fail:
20893 return NULL;
20894 }
20895
20896
20897 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20898 PyObject *obj;
20899 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20900 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
20901 return SWIG_Py_Void();
20902 }
20903
20904 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20905 return SWIG_Python_InitShadowInstance(args);
20906 }
20907
20908 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20909 PyObject *resultobj = 0;
20910 wxWindow *arg1 = (wxWindow *) 0 ;
20911 wxWindowDC *result = 0 ;
20912 void *argp1 = 0 ;
20913 int res1 = 0 ;
20914 PyObject * obj0 = 0 ;
20915 char * kwnames[] = {
20916 (char *) "win", NULL
20917 };
20918
20919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
20920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20921 if (!SWIG_IsOK(res1)) {
20922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20923 }
20924 arg1 = reinterpret_cast< wxWindow * >(argp1);
20925 {
20926 if (!wxPyCheckForApp()) SWIG_fail;
20927 PyThreadState* __tstate = wxPyBeginAllowThreads();
20928 result = (wxWindowDC *)new wxWindowDC(arg1);
20929 wxPyEndAllowThreads(__tstate);
20930 if (PyErr_Occurred()) SWIG_fail;
20931 }
20932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
20933 return resultobj;
20934 fail:
20935 return NULL;
20936 }
20937
20938
20939 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20940 PyObject *obj;
20941 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20942 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
20943 return SWIG_Py_Void();
20944 }
20945
20946 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20947 return SWIG_Python_InitShadowInstance(args);
20948 }
20949
20950 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20951 PyObject *resultobj = 0;
20952 wxDC *arg1 = 0 ;
20953 bool arg2 ;
20954 wxMirrorDC *result = 0 ;
20955 void *argp1 = 0 ;
20956 int res1 = 0 ;
20957 bool val2 ;
20958 int ecode2 = 0 ;
20959 PyObject * obj0 = 0 ;
20960 PyObject * obj1 = 0 ;
20961 char * kwnames[] = {
20962 (char *) "dc",(char *) "mirror", NULL
20963 };
20964
20965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
20966 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
20967 if (!SWIG_IsOK(res1)) {
20968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20969 }
20970 if (!argp1) {
20971 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20972 }
20973 arg1 = reinterpret_cast< wxDC * >(argp1);
20974 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20975 if (!SWIG_IsOK(ecode2)) {
20976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
20977 }
20978 arg2 = static_cast< bool >(val2);
20979 {
20980 if (!wxPyCheckForApp()) SWIG_fail;
20981 PyThreadState* __tstate = wxPyBeginAllowThreads();
20982 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
20983 wxPyEndAllowThreads(__tstate);
20984 if (PyErr_Occurred()) SWIG_fail;
20985 }
20986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
20987 return resultobj;
20988 fail:
20989 return NULL;
20990 }
20991
20992
20993 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20994 PyObject *obj;
20995 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20996 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
20997 return SWIG_Py_Void();
20998 }
20999
21000 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21001 return SWIG_Python_InitShadowInstance(args);
21002 }
21003
21004 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21005 PyObject *resultobj = 0;
21006 wxPrintData *arg1 = 0 ;
21007 wxPostScriptDC *result = 0 ;
21008 void *argp1 = 0 ;
21009 int res1 = 0 ;
21010 PyObject * obj0 = 0 ;
21011 char * kwnames[] = {
21012 (char *) "printData", NULL
21013 };
21014
21015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
21016 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21017 if (!SWIG_IsOK(res1)) {
21018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21019 }
21020 if (!argp1) {
21021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21022 }
21023 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21024 {
21025 if (!wxPyCheckForApp()) SWIG_fail;
21026 PyThreadState* __tstate = wxPyBeginAllowThreads();
21027 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
21028 wxPyEndAllowThreads(__tstate);
21029 if (PyErr_Occurred()) SWIG_fail;
21030 }
21031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
21032 return resultobj;
21033 fail:
21034 return NULL;
21035 }
21036
21037
21038 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21039 PyObject *resultobj = 0;
21040 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21041 wxPrintData *result = 0 ;
21042 void *argp1 = 0 ;
21043 int res1 = 0 ;
21044 PyObject *swig_obj[1] ;
21045
21046 if (!args) SWIG_fail;
21047 swig_obj[0] = args;
21048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21049 if (!SWIG_IsOK(res1)) {
21050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21051 }
21052 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21053 {
21054 PyThreadState* __tstate = wxPyBeginAllowThreads();
21055 {
21056 wxPrintData &_result_ref = (arg1)->GetPrintData();
21057 result = (wxPrintData *) &_result_ref;
21058 }
21059 wxPyEndAllowThreads(__tstate);
21060 if (PyErr_Occurred()) SWIG_fail;
21061 }
21062 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
21063 return resultobj;
21064 fail:
21065 return NULL;
21066 }
21067
21068
21069 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21070 PyObject *resultobj = 0;
21071 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21072 wxPrintData *arg2 = 0 ;
21073 void *argp1 = 0 ;
21074 int res1 = 0 ;
21075 void *argp2 = 0 ;
21076 int res2 = 0 ;
21077 PyObject * obj0 = 0 ;
21078 PyObject * obj1 = 0 ;
21079 char * kwnames[] = {
21080 (char *) "self",(char *) "data", NULL
21081 };
21082
21083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
21084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21085 if (!SWIG_IsOK(res1)) {
21086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21087 }
21088 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21089 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
21090 if (!SWIG_IsOK(res2)) {
21091 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21092 }
21093 if (!argp2) {
21094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21095 }
21096 arg2 = reinterpret_cast< wxPrintData * >(argp2);
21097 {
21098 PyThreadState* __tstate = wxPyBeginAllowThreads();
21099 (arg1)->SetPrintData((wxPrintData const &)*arg2);
21100 wxPyEndAllowThreads(__tstate);
21101 if (PyErr_Occurred()) SWIG_fail;
21102 }
21103 resultobj = SWIG_Py_Void();
21104 return resultobj;
21105 fail:
21106 return NULL;
21107 }
21108
21109
21110 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21111 PyObject *resultobj = 0;
21112 int arg1 ;
21113 int val1 ;
21114 int ecode1 = 0 ;
21115 PyObject * obj0 = 0 ;
21116 char * kwnames[] = {
21117 (char *) "ppi", NULL
21118 };
21119
21120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
21121 ecode1 = SWIG_AsVal_int(obj0, &val1);
21122 if (!SWIG_IsOK(ecode1)) {
21123 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21124 }
21125 arg1 = static_cast< int >(val1);
21126 {
21127 PyThreadState* __tstate = wxPyBeginAllowThreads();
21128 wxPostScriptDC::SetResolution(arg1);
21129 wxPyEndAllowThreads(__tstate);
21130 if (PyErr_Occurred()) SWIG_fail;
21131 }
21132 resultobj = SWIG_Py_Void();
21133 return resultobj;
21134 fail:
21135 return NULL;
21136 }
21137
21138
21139 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21140 PyObject *resultobj = 0;
21141 int result;
21142
21143 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
21144 {
21145 PyThreadState* __tstate = wxPyBeginAllowThreads();
21146 result = (int)wxPostScriptDC::GetResolution();
21147 wxPyEndAllowThreads(__tstate);
21148 if (PyErr_Occurred()) SWIG_fail;
21149 }
21150 resultobj = SWIG_From_int(static_cast< int >(result));
21151 return resultobj;
21152 fail:
21153 return NULL;
21154 }
21155
21156
21157 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21158 PyObject *obj;
21159 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21160 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
21161 return SWIG_Py_Void();
21162 }
21163
21164 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21165 return SWIG_Python_InitShadowInstance(args);
21166 }
21167
21168 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21169 PyObject *resultobj = 0;
21170 wxString const &arg1_defvalue = wxPyEmptyString ;
21171 wxString *arg1 = (wxString *) &arg1_defvalue ;
21172 wxMetaFile *result = 0 ;
21173 bool temp1 = false ;
21174 PyObject * obj0 = 0 ;
21175 char * kwnames[] = {
21176 (char *) "filename", NULL
21177 };
21178
21179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
21180 if (obj0) {
21181 {
21182 arg1 = wxString_in_helper(obj0);
21183 if (arg1 == NULL) SWIG_fail;
21184 temp1 = true;
21185 }
21186 }
21187 {
21188 if (!wxPyCheckForApp()) SWIG_fail;
21189 PyThreadState* __tstate = wxPyBeginAllowThreads();
21190 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
21191 wxPyEndAllowThreads(__tstate);
21192 if (PyErr_Occurred()) SWIG_fail;
21193 }
21194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
21195 {
21196 if (temp1)
21197 delete arg1;
21198 }
21199 return resultobj;
21200 fail:
21201 {
21202 if (temp1)
21203 delete arg1;
21204 }
21205 return NULL;
21206 }
21207
21208
21209 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21210 PyObject *obj;
21211 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21212 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
21213 return SWIG_Py_Void();
21214 }
21215
21216 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21217 return SWIG_Python_InitShadowInstance(args);
21218 }
21219
21220 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21221 PyObject *resultobj = 0;
21222 wxString const &arg1_defvalue = wxPyEmptyString ;
21223 wxString *arg1 = (wxString *) &arg1_defvalue ;
21224 int arg2 = (int) 0 ;
21225 int arg3 = (int) 0 ;
21226 wxString const &arg4_defvalue = wxPyEmptyString ;
21227 wxString *arg4 = (wxString *) &arg4_defvalue ;
21228 wxMetaFileDC *result = 0 ;
21229 bool temp1 = false ;
21230 int val2 ;
21231 int ecode2 = 0 ;
21232 int val3 ;
21233 int ecode3 = 0 ;
21234 bool temp4 = false ;
21235 PyObject * obj0 = 0 ;
21236 PyObject * obj1 = 0 ;
21237 PyObject * obj2 = 0 ;
21238 PyObject * obj3 = 0 ;
21239 char * kwnames[] = {
21240 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
21241 };
21242
21243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21244 if (obj0) {
21245 {
21246 arg1 = wxString_in_helper(obj0);
21247 if (arg1 == NULL) SWIG_fail;
21248 temp1 = true;
21249 }
21250 }
21251 if (obj1) {
21252 ecode2 = SWIG_AsVal_int(obj1, &val2);
21253 if (!SWIG_IsOK(ecode2)) {
21254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
21255 }
21256 arg2 = static_cast< int >(val2);
21257 }
21258 if (obj2) {
21259 ecode3 = SWIG_AsVal_int(obj2, &val3);
21260 if (!SWIG_IsOK(ecode3)) {
21261 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
21262 }
21263 arg3 = static_cast< int >(val3);
21264 }
21265 if (obj3) {
21266 {
21267 arg4 = wxString_in_helper(obj3);
21268 if (arg4 == NULL) SWIG_fail;
21269 temp4 = true;
21270 }
21271 }
21272 {
21273 if (!wxPyCheckForApp()) SWIG_fail;
21274 PyThreadState* __tstate = wxPyBeginAllowThreads();
21275 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
21276 wxPyEndAllowThreads(__tstate);
21277 if (PyErr_Occurred()) SWIG_fail;
21278 }
21279 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
21280 {
21281 if (temp1)
21282 delete arg1;
21283 }
21284 {
21285 if (temp4)
21286 delete arg4;
21287 }
21288 return resultobj;
21289 fail:
21290 {
21291 if (temp1)
21292 delete arg1;
21293 }
21294 {
21295 if (temp4)
21296 delete arg4;
21297 }
21298 return NULL;
21299 }
21300
21301
21302 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21303 PyObject *obj;
21304 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21305 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
21306 return SWIG_Py_Void();
21307 }
21308
21309 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21310 return SWIG_Python_InitShadowInstance(args);
21311 }
21312
21313 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21314 PyObject *resultobj = 0;
21315 wxPrintData *arg1 = 0 ;
21316 wxPrinterDC *result = 0 ;
21317 void *argp1 = 0 ;
21318 int res1 = 0 ;
21319 PyObject * obj0 = 0 ;
21320 char * kwnames[] = {
21321 (char *) "printData", NULL
21322 };
21323
21324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
21325 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21326 if (!SWIG_IsOK(res1)) {
21327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21328 }
21329 if (!argp1) {
21330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21331 }
21332 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21333 {
21334 if (!wxPyCheckForApp()) SWIG_fail;
21335 PyThreadState* __tstate = wxPyBeginAllowThreads();
21336 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
21337 wxPyEndAllowThreads(__tstate);
21338 if (PyErr_Occurred()) SWIG_fail;
21339 }
21340 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
21341 return resultobj;
21342 fail:
21343 return NULL;
21344 }
21345
21346
21347 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21348 PyObject *obj;
21349 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21350 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
21351 return SWIG_Py_Void();
21352 }
21353
21354 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21355 return SWIG_Python_InitShadowInstance(args);
21356 }
21357
21358 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21359 PyObject *resultobj = 0;
21360 int arg1 ;
21361 int arg2 ;
21362 int arg3 = (int) true ;
21363 int arg4 = (int) 1 ;
21364 wxImageList *result = 0 ;
21365 int val1 ;
21366 int ecode1 = 0 ;
21367 int val2 ;
21368 int ecode2 = 0 ;
21369 int val3 ;
21370 int ecode3 = 0 ;
21371 int val4 ;
21372 int ecode4 = 0 ;
21373 PyObject * obj0 = 0 ;
21374 PyObject * obj1 = 0 ;
21375 PyObject * obj2 = 0 ;
21376 PyObject * obj3 = 0 ;
21377 char * kwnames[] = {
21378 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
21379 };
21380
21381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21382 ecode1 = SWIG_AsVal_int(obj0, &val1);
21383 if (!SWIG_IsOK(ecode1)) {
21384 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
21385 }
21386 arg1 = static_cast< int >(val1);
21387 ecode2 = SWIG_AsVal_int(obj1, &val2);
21388 if (!SWIG_IsOK(ecode2)) {
21389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
21390 }
21391 arg2 = static_cast< int >(val2);
21392 if (obj2) {
21393 ecode3 = SWIG_AsVal_int(obj2, &val3);
21394 if (!SWIG_IsOK(ecode3)) {
21395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
21396 }
21397 arg3 = static_cast< int >(val3);
21398 }
21399 if (obj3) {
21400 ecode4 = SWIG_AsVal_int(obj3, &val4);
21401 if (!SWIG_IsOK(ecode4)) {
21402 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
21403 }
21404 arg4 = static_cast< int >(val4);
21405 }
21406 {
21407 if (!wxPyCheckForApp()) SWIG_fail;
21408 PyThreadState* __tstate = wxPyBeginAllowThreads();
21409 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
21410 wxPyEndAllowThreads(__tstate);
21411 if (PyErr_Occurred()) SWIG_fail;
21412 }
21413 {
21414 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
21415 }
21416 return resultobj;
21417 fail:
21418 return NULL;
21419 }
21420
21421
21422 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21423 PyObject *resultobj = 0;
21424 wxImageList *arg1 = (wxImageList *) 0 ;
21425 void *argp1 = 0 ;
21426 int res1 = 0 ;
21427 PyObject *swig_obj[1] ;
21428
21429 if (!args) SWIG_fail;
21430 swig_obj[0] = args;
21431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
21432 if (!SWIG_IsOK(res1)) {
21433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
21434 }
21435 arg1 = reinterpret_cast< wxImageList * >(argp1);
21436 {
21437 PyThreadState* __tstate = wxPyBeginAllowThreads();
21438 delete arg1;
21439
21440 wxPyEndAllowThreads(__tstate);
21441 if (PyErr_Occurred()) SWIG_fail;
21442 }
21443 resultobj = SWIG_Py_Void();
21444 return resultobj;
21445 fail:
21446 return NULL;
21447 }
21448
21449
21450 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21451 PyObject *resultobj = 0;
21452 wxImageList *arg1 = (wxImageList *) 0 ;
21453 wxBitmap *arg2 = 0 ;
21454 wxBitmap const &arg3_defvalue = wxNullBitmap ;
21455 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
21456 int result;
21457 void *argp1 = 0 ;
21458 int res1 = 0 ;
21459 void *argp2 = 0 ;
21460 int res2 = 0 ;
21461 void *argp3 = 0 ;
21462 int res3 = 0 ;
21463 PyObject * obj0 = 0 ;
21464 PyObject * obj1 = 0 ;
21465 PyObject * obj2 = 0 ;
21466 char * kwnames[] = {
21467 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
21468 };
21469
21470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21472 if (!SWIG_IsOK(res1)) {
21473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
21474 }
21475 arg1 = reinterpret_cast< wxImageList * >(argp1);
21476 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21477 if (!SWIG_IsOK(res2)) {
21478 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21479 }
21480 if (!argp2) {
21481 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21482 }
21483 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21484 if (obj2) {
21485 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21486 if (!SWIG_IsOK(res3)) {
21487 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21488 }
21489 if (!argp3) {
21490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21491 }
21492 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21493 }
21494 {
21495 PyThreadState* __tstate = wxPyBeginAllowThreads();
21496 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
21497 wxPyEndAllowThreads(__tstate);
21498 if (PyErr_Occurred()) SWIG_fail;
21499 }
21500 resultobj = SWIG_From_int(static_cast< int >(result));
21501 return resultobj;
21502 fail:
21503 return NULL;
21504 }
21505
21506
21507 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21508 PyObject *resultobj = 0;
21509 wxImageList *arg1 = (wxImageList *) 0 ;
21510 wxBitmap *arg2 = 0 ;
21511 wxColour *arg3 = 0 ;
21512 int result;
21513 void *argp1 = 0 ;
21514 int res1 = 0 ;
21515 void *argp2 = 0 ;
21516 int res2 = 0 ;
21517 wxColour temp3 ;
21518 PyObject * obj0 = 0 ;
21519 PyObject * obj1 = 0 ;
21520 PyObject * obj2 = 0 ;
21521 char * kwnames[] = {
21522 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
21523 };
21524
21525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21527 if (!SWIG_IsOK(res1)) {
21528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
21529 }
21530 arg1 = reinterpret_cast< wxImageList * >(argp1);
21531 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21532 if (!SWIG_IsOK(res2)) {
21533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21534 }
21535 if (!argp2) {
21536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21537 }
21538 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21539 {
21540 arg3 = &temp3;
21541 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
21542 }
21543 {
21544 PyThreadState* __tstate = wxPyBeginAllowThreads();
21545 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
21546 wxPyEndAllowThreads(__tstate);
21547 if (PyErr_Occurred()) SWIG_fail;
21548 }
21549 resultobj = SWIG_From_int(static_cast< int >(result));
21550 return resultobj;
21551 fail:
21552 return NULL;
21553 }
21554
21555
21556 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21557 PyObject *resultobj = 0;
21558 wxImageList *arg1 = (wxImageList *) 0 ;
21559 wxIcon *arg2 = 0 ;
21560 int result;
21561 void *argp1 = 0 ;
21562 int res1 = 0 ;
21563 void *argp2 = 0 ;
21564 int res2 = 0 ;
21565 PyObject * obj0 = 0 ;
21566 PyObject * obj1 = 0 ;
21567 char * kwnames[] = {
21568 (char *) "self",(char *) "icon", NULL
21569 };
21570
21571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21573 if (!SWIG_IsOK(res1)) {
21574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
21575 }
21576 arg1 = reinterpret_cast< wxImageList * >(argp1);
21577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
21578 if (!SWIG_IsOK(res2)) {
21579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21580 }
21581 if (!argp2) {
21582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21583 }
21584 arg2 = reinterpret_cast< wxIcon * >(argp2);
21585 {
21586 PyThreadState* __tstate = wxPyBeginAllowThreads();
21587 result = (int)(arg1)->Add((wxIcon const &)*arg2);
21588 wxPyEndAllowThreads(__tstate);
21589 if (PyErr_Occurred()) SWIG_fail;
21590 }
21591 resultobj = SWIG_From_int(static_cast< int >(result));
21592 return resultobj;
21593 fail:
21594 return NULL;
21595 }
21596
21597
21598 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21599 PyObject *resultobj = 0;
21600 wxImageList *arg1 = (wxImageList *) 0 ;
21601 int arg2 ;
21602 SwigValueWrapper<wxBitmap > result;
21603 void *argp1 = 0 ;
21604 int res1 = 0 ;
21605 int val2 ;
21606 int ecode2 = 0 ;
21607 PyObject * obj0 = 0 ;
21608 PyObject * obj1 = 0 ;
21609 char * kwnames[] = {
21610 (char *) "self",(char *) "index", NULL
21611 };
21612
21613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
21614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21615 if (!SWIG_IsOK(res1)) {
21616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
21617 }
21618 arg1 = reinterpret_cast< wxImageList * >(argp1);
21619 ecode2 = SWIG_AsVal_int(obj1, &val2);
21620 if (!SWIG_IsOK(ecode2)) {
21621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
21622 }
21623 arg2 = static_cast< int >(val2);
21624 {
21625 PyThreadState* __tstate = wxPyBeginAllowThreads();
21626 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
21627 wxPyEndAllowThreads(__tstate);
21628 if (PyErr_Occurred()) SWIG_fail;
21629 }
21630 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
21631 return resultobj;
21632 fail:
21633 return NULL;
21634 }
21635
21636
21637 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21638 PyObject *resultobj = 0;
21639 wxImageList *arg1 = (wxImageList *) 0 ;
21640 int arg2 ;
21641 wxIcon result;
21642 void *argp1 = 0 ;
21643 int res1 = 0 ;
21644 int val2 ;
21645 int ecode2 = 0 ;
21646 PyObject * obj0 = 0 ;
21647 PyObject * obj1 = 0 ;
21648 char * kwnames[] = {
21649 (char *) "self",(char *) "index", NULL
21650 };
21651
21652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21654 if (!SWIG_IsOK(res1)) {
21655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
21656 }
21657 arg1 = reinterpret_cast< wxImageList * >(argp1);
21658 ecode2 = SWIG_AsVal_int(obj1, &val2);
21659 if (!SWIG_IsOK(ecode2)) {
21660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
21661 }
21662 arg2 = static_cast< int >(val2);
21663 {
21664 PyThreadState* __tstate = wxPyBeginAllowThreads();
21665 result = ((wxImageList const *)arg1)->GetIcon(arg2);
21666 wxPyEndAllowThreads(__tstate);
21667 if (PyErr_Occurred()) SWIG_fail;
21668 }
21669 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
21670 return resultobj;
21671 fail:
21672 return NULL;
21673 }
21674
21675
21676 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21677 PyObject *resultobj = 0;
21678 wxImageList *arg1 = (wxImageList *) 0 ;
21679 int arg2 ;
21680 wxBitmap *arg3 = 0 ;
21681 wxBitmap const &arg4_defvalue = wxNullBitmap ;
21682 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
21683 bool result;
21684 void *argp1 = 0 ;
21685 int res1 = 0 ;
21686 int val2 ;
21687 int ecode2 = 0 ;
21688 void *argp3 = 0 ;
21689 int res3 = 0 ;
21690 void *argp4 = 0 ;
21691 int res4 = 0 ;
21692 PyObject * obj0 = 0 ;
21693 PyObject * obj1 = 0 ;
21694 PyObject * obj2 = 0 ;
21695 PyObject * obj3 = 0 ;
21696 char * kwnames[] = {
21697 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
21698 };
21699
21700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21702 if (!SWIG_IsOK(res1)) {
21703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
21704 }
21705 arg1 = reinterpret_cast< wxImageList * >(argp1);
21706 ecode2 = SWIG_AsVal_int(obj1, &val2);
21707 if (!SWIG_IsOK(ecode2)) {
21708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
21709 }
21710 arg2 = static_cast< int >(val2);
21711 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21712 if (!SWIG_IsOK(res3)) {
21713 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21714 }
21715 if (!argp3) {
21716 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21717 }
21718 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21719 if (obj3) {
21720 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
21721 if (!SWIG_IsOK(res4)) {
21722 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
21723 }
21724 if (!argp4) {
21725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
21726 }
21727 arg4 = reinterpret_cast< wxBitmap * >(argp4);
21728 }
21729 {
21730 PyThreadState* __tstate = wxPyBeginAllowThreads();
21731 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
21732 wxPyEndAllowThreads(__tstate);
21733 if (PyErr_Occurred()) SWIG_fail;
21734 }
21735 {
21736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21737 }
21738 return resultobj;
21739 fail:
21740 return NULL;
21741 }
21742
21743
21744 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21745 PyObject *resultobj = 0;
21746 wxImageList *arg1 = (wxImageList *) 0 ;
21747 int arg2 ;
21748 wxDC *arg3 = 0 ;
21749 int arg4 ;
21750 int arg5 ;
21751 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
21752 bool arg7 = (bool) (bool)false ;
21753 bool result;
21754 void *argp1 = 0 ;
21755 int res1 = 0 ;
21756 int val2 ;
21757 int ecode2 = 0 ;
21758 void *argp3 = 0 ;
21759 int res3 = 0 ;
21760 int val4 ;
21761 int ecode4 = 0 ;
21762 int val5 ;
21763 int ecode5 = 0 ;
21764 int val6 ;
21765 int ecode6 = 0 ;
21766 bool val7 ;
21767 int ecode7 = 0 ;
21768 PyObject * obj0 = 0 ;
21769 PyObject * obj1 = 0 ;
21770 PyObject * obj2 = 0 ;
21771 PyObject * obj3 = 0 ;
21772 PyObject * obj4 = 0 ;
21773 PyObject * obj5 = 0 ;
21774 PyObject * obj6 = 0 ;
21775 char * kwnames[] = {
21776 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
21777 };
21778
21779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21781 if (!SWIG_IsOK(res1)) {
21782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
21783 }
21784 arg1 = reinterpret_cast< wxImageList * >(argp1);
21785 ecode2 = SWIG_AsVal_int(obj1, &val2);
21786 if (!SWIG_IsOK(ecode2)) {
21787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
21788 }
21789 arg2 = static_cast< int >(val2);
21790 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
21791 if (!SWIG_IsOK(res3)) {
21792 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21793 }
21794 if (!argp3) {
21795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21796 }
21797 arg3 = reinterpret_cast< wxDC * >(argp3);
21798 ecode4 = SWIG_AsVal_int(obj3, &val4);
21799 if (!SWIG_IsOK(ecode4)) {
21800 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
21801 }
21802 arg4 = static_cast< int >(val4);
21803 ecode5 = SWIG_AsVal_int(obj4, &val5);
21804 if (!SWIG_IsOK(ecode5)) {
21805 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
21806 }
21807 arg5 = static_cast< int >(val5);
21808 if (obj5) {
21809 ecode6 = SWIG_AsVal_int(obj5, &val6);
21810 if (!SWIG_IsOK(ecode6)) {
21811 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
21812 }
21813 arg6 = static_cast< int >(val6);
21814 }
21815 if (obj6) {
21816 ecode7 = SWIG_AsVal_bool(obj6, &val7);
21817 if (!SWIG_IsOK(ecode7)) {
21818 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
21819 }
21820 arg7 = static_cast< bool >(val7);
21821 }
21822 {
21823 PyThreadState* __tstate = wxPyBeginAllowThreads();
21824 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
21825 wxPyEndAllowThreads(__tstate);
21826 if (PyErr_Occurred()) SWIG_fail;
21827 }
21828 {
21829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21830 }
21831 return resultobj;
21832 fail:
21833 return NULL;
21834 }
21835
21836
21837 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21838 PyObject *resultobj = 0;
21839 wxImageList *arg1 = (wxImageList *) 0 ;
21840 int result;
21841 void *argp1 = 0 ;
21842 int res1 = 0 ;
21843 PyObject *swig_obj[1] ;
21844
21845 if (!args) SWIG_fail;
21846 swig_obj[0] = args;
21847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21848 if (!SWIG_IsOK(res1)) {
21849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
21850 }
21851 arg1 = reinterpret_cast< wxImageList * >(argp1);
21852 {
21853 PyThreadState* __tstate = wxPyBeginAllowThreads();
21854 result = (int)(arg1)->GetImageCount();
21855 wxPyEndAllowThreads(__tstate);
21856 if (PyErr_Occurred()) SWIG_fail;
21857 }
21858 resultobj = SWIG_From_int(static_cast< int >(result));
21859 return resultobj;
21860 fail:
21861 return NULL;
21862 }
21863
21864
21865 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21866 PyObject *resultobj = 0;
21867 wxImageList *arg1 = (wxImageList *) 0 ;
21868 int arg2 ;
21869 bool result;
21870 void *argp1 = 0 ;
21871 int res1 = 0 ;
21872 int val2 ;
21873 int ecode2 = 0 ;
21874 PyObject * obj0 = 0 ;
21875 PyObject * obj1 = 0 ;
21876 char * kwnames[] = {
21877 (char *) "self",(char *) "index", NULL
21878 };
21879
21880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
21881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21882 if (!SWIG_IsOK(res1)) {
21883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
21884 }
21885 arg1 = reinterpret_cast< wxImageList * >(argp1);
21886 ecode2 = SWIG_AsVal_int(obj1, &val2);
21887 if (!SWIG_IsOK(ecode2)) {
21888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
21889 }
21890 arg2 = static_cast< int >(val2);
21891 {
21892 PyThreadState* __tstate = wxPyBeginAllowThreads();
21893 result = (bool)(arg1)->Remove(arg2);
21894 wxPyEndAllowThreads(__tstate);
21895 if (PyErr_Occurred()) SWIG_fail;
21896 }
21897 {
21898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21899 }
21900 return resultobj;
21901 fail:
21902 return NULL;
21903 }
21904
21905
21906 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21907 PyObject *resultobj = 0;
21908 wxImageList *arg1 = (wxImageList *) 0 ;
21909 bool result;
21910 void *argp1 = 0 ;
21911 int res1 = 0 ;
21912 PyObject *swig_obj[1] ;
21913
21914 if (!args) SWIG_fail;
21915 swig_obj[0] = args;
21916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21917 if (!SWIG_IsOK(res1)) {
21918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
21919 }
21920 arg1 = reinterpret_cast< wxImageList * >(argp1);
21921 {
21922 PyThreadState* __tstate = wxPyBeginAllowThreads();
21923 result = (bool)(arg1)->RemoveAll();
21924 wxPyEndAllowThreads(__tstate);
21925 if (PyErr_Occurred()) SWIG_fail;
21926 }
21927 {
21928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21929 }
21930 return resultobj;
21931 fail:
21932 return NULL;
21933 }
21934
21935
21936 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21937 PyObject *resultobj = 0;
21938 wxImageList *arg1 = (wxImageList *) 0 ;
21939 int arg2 ;
21940 int *arg3 = 0 ;
21941 int *arg4 = 0 ;
21942 void *argp1 = 0 ;
21943 int res1 = 0 ;
21944 int val2 ;
21945 int ecode2 = 0 ;
21946 int temp3 ;
21947 int res3 = SWIG_TMPOBJ ;
21948 int temp4 ;
21949 int res4 = SWIG_TMPOBJ ;
21950 PyObject * obj0 = 0 ;
21951 PyObject * obj1 = 0 ;
21952 char * kwnames[] = {
21953 (char *) "self",(char *) "index", NULL
21954 };
21955
21956 arg3 = &temp3;
21957 arg4 = &temp4;
21958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
21959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21960 if (!SWIG_IsOK(res1)) {
21961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
21962 }
21963 arg1 = reinterpret_cast< wxImageList * >(argp1);
21964 ecode2 = SWIG_AsVal_int(obj1, &val2);
21965 if (!SWIG_IsOK(ecode2)) {
21966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
21967 }
21968 arg2 = static_cast< int >(val2);
21969 {
21970 PyThreadState* __tstate = wxPyBeginAllowThreads();
21971 (arg1)->GetSize(arg2,*arg3,*arg4);
21972 wxPyEndAllowThreads(__tstate);
21973 if (PyErr_Occurred()) SWIG_fail;
21974 }
21975 resultobj = SWIG_Py_Void();
21976 if (SWIG_IsTmpObj(res3)) {
21977 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21978 } else {
21979 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21980 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21981 }
21982 if (SWIG_IsTmpObj(res4)) {
21983 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21984 } else {
21985 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21986 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21987 }
21988 return resultobj;
21989 fail:
21990 return NULL;
21991 }
21992
21993
21994 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21995 PyObject *obj;
21996 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21997 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
21998 return SWIG_Py_Void();
21999 }
22000
22001 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22002 return SWIG_Python_InitShadowInstance(args);
22003 }
22004
22005 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22006 PyObject *resultobj = 0;
22007 wxStockGDI *result = 0 ;
22008
22009 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
22010 {
22011 PyThreadState* __tstate = wxPyBeginAllowThreads();
22012 result = (wxStockGDI *)new wxStockGDI();
22013 wxPyEndAllowThreads(__tstate);
22014 if (PyErr_Occurred()) SWIG_fail;
22015 }
22016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
22017 return resultobj;
22018 fail:
22019 return NULL;
22020 }
22021
22022
22023 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22024 PyObject *resultobj = 0;
22025 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22026 void *argp1 = 0 ;
22027 int res1 = 0 ;
22028 PyObject *swig_obj[1] ;
22029
22030 if (!args) SWIG_fail;
22031 swig_obj[0] = args;
22032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
22033 if (!SWIG_IsOK(res1)) {
22034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22035 }
22036 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22037 {
22038 PyThreadState* __tstate = wxPyBeginAllowThreads();
22039 delete arg1;
22040
22041 wxPyEndAllowThreads(__tstate);
22042 if (PyErr_Occurred()) SWIG_fail;
22043 }
22044 resultobj = SWIG_Py_Void();
22045 return resultobj;
22046 fail:
22047 return NULL;
22048 }
22049
22050
22051 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22052 PyObject *resultobj = 0;
22053
22054 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
22055 {
22056 PyThreadState* __tstate = wxPyBeginAllowThreads();
22057 wxStockGDI::DeleteAll();
22058 wxPyEndAllowThreads(__tstate);
22059 if (PyErr_Occurred()) SWIG_fail;
22060 }
22061 resultobj = SWIG_Py_Void();
22062 return resultobj;
22063 fail:
22064 return NULL;
22065 }
22066
22067
22068 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22069 PyObject *resultobj = 0;
22070 wxStockGDI *result = 0 ;
22071
22072 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
22073 {
22074 PyThreadState* __tstate = wxPyBeginAllowThreads();
22075 {
22076 wxStockGDI &_result_ref = wxStockGDI::instance();
22077 result = (wxStockGDI *) &_result_ref;
22078 }
22079 wxPyEndAllowThreads(__tstate);
22080 if (PyErr_Occurred()) SWIG_fail;
22081 }
22082 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
22083 return resultobj;
22084 fail:
22085 return NULL;
22086 }
22087
22088
22089 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22090 PyObject *resultobj = 0;
22091 wxStockGDI::Item arg1 ;
22092 wxBrush *result = 0 ;
22093 int val1 ;
22094 int ecode1 = 0 ;
22095 PyObject * obj0 = 0 ;
22096 char * kwnames[] = {
22097 (char *) "item", NULL
22098 };
22099
22100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
22101 ecode1 = SWIG_AsVal_int(obj0, &val1);
22102 if (!SWIG_IsOK(ecode1)) {
22103 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22104 }
22105 arg1 = static_cast< wxStockGDI::Item >(val1);
22106 {
22107 PyThreadState* __tstate = wxPyBeginAllowThreads();
22108 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
22109 wxPyEndAllowThreads(__tstate);
22110 if (PyErr_Occurred()) SWIG_fail;
22111 }
22112 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22113 return resultobj;
22114 fail:
22115 return NULL;
22116 }
22117
22118
22119 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22120 PyObject *resultobj = 0;
22121 wxStockGDI::Item arg1 ;
22122 wxColour *result = 0 ;
22123 int val1 ;
22124 int ecode1 = 0 ;
22125 PyObject * obj0 = 0 ;
22126 char * kwnames[] = {
22127 (char *) "item", NULL
22128 };
22129
22130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
22131 ecode1 = SWIG_AsVal_int(obj0, &val1);
22132 if (!SWIG_IsOK(ecode1)) {
22133 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22134 }
22135 arg1 = static_cast< wxStockGDI::Item >(val1);
22136 {
22137 PyThreadState* __tstate = wxPyBeginAllowThreads();
22138 result = (wxColour *)wxStockGDI::GetColour(arg1);
22139 wxPyEndAllowThreads(__tstate);
22140 if (PyErr_Occurred()) SWIG_fail;
22141 }
22142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22143 return resultobj;
22144 fail:
22145 return NULL;
22146 }
22147
22148
22149 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22150 PyObject *resultobj = 0;
22151 wxStockGDI::Item arg1 ;
22152 wxCursor *result = 0 ;
22153 int val1 ;
22154 int ecode1 = 0 ;
22155 PyObject * obj0 = 0 ;
22156 char * kwnames[] = {
22157 (char *) "item", NULL
22158 };
22159
22160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
22161 ecode1 = SWIG_AsVal_int(obj0, &val1);
22162 if (!SWIG_IsOK(ecode1)) {
22163 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22164 }
22165 arg1 = static_cast< wxStockGDI::Item >(val1);
22166 {
22167 PyThreadState* __tstate = wxPyBeginAllowThreads();
22168 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
22169 wxPyEndAllowThreads(__tstate);
22170 if (PyErr_Occurred()) SWIG_fail;
22171 }
22172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
22173 return resultobj;
22174 fail:
22175 return NULL;
22176 }
22177
22178
22179 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22180 PyObject *resultobj = 0;
22181 wxStockGDI::Item arg1 ;
22182 wxPen *result = 0 ;
22183 int val1 ;
22184 int ecode1 = 0 ;
22185 PyObject * obj0 = 0 ;
22186 char * kwnames[] = {
22187 (char *) "item", NULL
22188 };
22189
22190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
22191 ecode1 = SWIG_AsVal_int(obj0, &val1);
22192 if (!SWIG_IsOK(ecode1)) {
22193 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22194 }
22195 arg1 = static_cast< wxStockGDI::Item >(val1);
22196 {
22197 PyThreadState* __tstate = wxPyBeginAllowThreads();
22198 result = (wxPen *)wxStockGDI::GetPen(arg1);
22199 wxPyEndAllowThreads(__tstate);
22200 if (PyErr_Occurred()) SWIG_fail;
22201 }
22202 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22203 return resultobj;
22204 fail:
22205 return NULL;
22206 }
22207
22208
22209 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22210 PyObject *resultobj = 0;
22211 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22212 wxStockGDI::Item arg2 ;
22213 wxFont *result = 0 ;
22214 void *argp1 = 0 ;
22215 int res1 = 0 ;
22216 int val2 ;
22217 int ecode2 = 0 ;
22218 PyObject * obj0 = 0 ;
22219 PyObject * obj1 = 0 ;
22220 char * kwnames[] = {
22221 (char *) "self",(char *) "item", NULL
22222 };
22223
22224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
22225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
22226 if (!SWIG_IsOK(res1)) {
22227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22228 }
22229 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22230 ecode2 = SWIG_AsVal_int(obj1, &val2);
22231 if (!SWIG_IsOK(ecode2)) {
22232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
22233 }
22234 arg2 = static_cast< wxStockGDI::Item >(val2);
22235 {
22236 PyThreadState* __tstate = wxPyBeginAllowThreads();
22237 result = (wxFont *)(arg1)->GetFont(arg2);
22238 wxPyEndAllowThreads(__tstate);
22239 if (PyErr_Occurred()) SWIG_fail;
22240 }
22241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22242 return resultobj;
22243 fail:
22244 return NULL;
22245 }
22246
22247
22248 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22249 PyObject *obj;
22250 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22251 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
22252 return SWIG_Py_Void();
22253 }
22254
22255 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22256 return SWIG_Python_InitShadowInstance(args);
22257 }
22258
22259 SWIGINTERN int NullBitmap_set(PyObject *) {
22260 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
22261 return 1;
22262 }
22263
22264
22265 SWIGINTERN PyObject *NullBitmap_get(void) {
22266 PyObject *pyobj = 0;
22267
22268 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
22269 return pyobj;
22270 }
22271
22272
22273 SWIGINTERN int NullIcon_set(PyObject *) {
22274 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
22275 return 1;
22276 }
22277
22278
22279 SWIGINTERN PyObject *NullIcon_get(void) {
22280 PyObject *pyobj = 0;
22281
22282 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
22283 return pyobj;
22284 }
22285
22286
22287 SWIGINTERN int NullCursor_set(PyObject *) {
22288 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
22289 return 1;
22290 }
22291
22292
22293 SWIGINTERN PyObject *NullCursor_get(void) {
22294 PyObject *pyobj = 0;
22295
22296 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
22297 return pyobj;
22298 }
22299
22300
22301 SWIGINTERN int NullPen_set(PyObject *) {
22302 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
22303 return 1;
22304 }
22305
22306
22307 SWIGINTERN PyObject *NullPen_get(void) {
22308 PyObject *pyobj = 0;
22309
22310 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
22311 return pyobj;
22312 }
22313
22314
22315 SWIGINTERN int NullBrush_set(PyObject *) {
22316 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
22317 return 1;
22318 }
22319
22320
22321 SWIGINTERN PyObject *NullBrush_get(void) {
22322 PyObject *pyobj = 0;
22323
22324 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
22325 return pyobj;
22326 }
22327
22328
22329 SWIGINTERN int NullPalette_set(PyObject *) {
22330 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
22331 return 1;
22332 }
22333
22334
22335 SWIGINTERN PyObject *NullPalette_get(void) {
22336 PyObject *pyobj = 0;
22337
22338 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
22339 return pyobj;
22340 }
22341
22342
22343 SWIGINTERN int NullFont_set(PyObject *) {
22344 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
22345 return 1;
22346 }
22347
22348
22349 SWIGINTERN PyObject *NullFont_get(void) {
22350 PyObject *pyobj = 0;
22351
22352 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
22353 return pyobj;
22354 }
22355
22356
22357 SWIGINTERN int NullColour_set(PyObject *) {
22358 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
22359 return 1;
22360 }
22361
22362
22363 SWIGINTERN PyObject *NullColour_get(void) {
22364 PyObject *pyobj = 0;
22365
22366 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
22367 return pyobj;
22368 }
22369
22370
22371 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22372 PyObject *resultobj = 0;
22373 wxGDIObjListBase *result = 0 ;
22374
22375 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
22376 {
22377 PyThreadState* __tstate = wxPyBeginAllowThreads();
22378 result = (wxGDIObjListBase *)new wxGDIObjListBase();
22379 wxPyEndAllowThreads(__tstate);
22380 if (PyErr_Occurred()) SWIG_fail;
22381 }
22382 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
22383 return resultobj;
22384 fail:
22385 return NULL;
22386 }
22387
22388
22389 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22390 PyObject *resultobj = 0;
22391 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
22392 void *argp1 = 0 ;
22393 int res1 = 0 ;
22394 PyObject *swig_obj[1] ;
22395
22396 if (!args) SWIG_fail;
22397 swig_obj[0] = args;
22398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
22399 if (!SWIG_IsOK(res1)) {
22400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
22401 }
22402 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
22403 {
22404 PyThreadState* __tstate = wxPyBeginAllowThreads();
22405 delete arg1;
22406
22407 wxPyEndAllowThreads(__tstate);
22408 if (PyErr_Occurred()) SWIG_fail;
22409 }
22410 resultobj = SWIG_Py_Void();
22411 return resultobj;
22412 fail:
22413 return NULL;
22414 }
22415
22416
22417 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22418 PyObject *obj;
22419 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22420 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
22421 return SWIG_Py_Void();
22422 }
22423
22424 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22425 return SWIG_Python_InitShadowInstance(args);
22426 }
22427
22428 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22429 PyObject *resultobj = 0;
22430 wxPenList *arg1 = (wxPenList *) 0 ;
22431 wxColour *arg2 = 0 ;
22432 int arg3 ;
22433 int arg4 ;
22434 wxPen *result = 0 ;
22435 void *argp1 = 0 ;
22436 int res1 = 0 ;
22437 wxColour temp2 ;
22438 int val3 ;
22439 int ecode3 = 0 ;
22440 int val4 ;
22441 int ecode4 = 0 ;
22442 PyObject * obj0 = 0 ;
22443 PyObject * obj1 = 0 ;
22444 PyObject * obj2 = 0 ;
22445 PyObject * obj3 = 0 ;
22446 char * kwnames[] = {
22447 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
22448 };
22449
22450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22452 if (!SWIG_IsOK(res1)) {
22453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22454 }
22455 arg1 = reinterpret_cast< wxPenList * >(argp1);
22456 {
22457 arg2 = &temp2;
22458 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22459 }
22460 ecode3 = SWIG_AsVal_int(obj2, &val3);
22461 if (!SWIG_IsOK(ecode3)) {
22462 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
22463 }
22464 arg3 = static_cast< int >(val3);
22465 ecode4 = SWIG_AsVal_int(obj3, &val4);
22466 if (!SWIG_IsOK(ecode4)) {
22467 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
22468 }
22469 arg4 = static_cast< int >(val4);
22470 {
22471 PyThreadState* __tstate = wxPyBeginAllowThreads();
22472 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
22473 wxPyEndAllowThreads(__tstate);
22474 if (PyErr_Occurred()) SWIG_fail;
22475 }
22476 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22477 return resultobj;
22478 fail:
22479 return NULL;
22480 }
22481
22482
22483 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22484 PyObject *resultobj = 0;
22485 wxPenList *arg1 = (wxPenList *) 0 ;
22486 wxPen *arg2 = (wxPen *) 0 ;
22487 void *argp1 = 0 ;
22488 int res1 = 0 ;
22489 void *argp2 = 0 ;
22490 int res2 = 0 ;
22491 PyObject * obj0 = 0 ;
22492 PyObject * obj1 = 0 ;
22493 char * kwnames[] = {
22494 (char *) "self",(char *) "pen", NULL
22495 };
22496
22497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
22498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22499 if (!SWIG_IsOK(res1)) {
22500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
22501 }
22502 arg1 = reinterpret_cast< wxPenList * >(argp1);
22503 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22504 if (!SWIG_IsOK(res2)) {
22505 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
22506 }
22507 arg2 = reinterpret_cast< wxPen * >(argp2);
22508 {
22509 PyThreadState* __tstate = wxPyBeginAllowThreads();
22510 (arg1)->AddPen(arg2);
22511 wxPyEndAllowThreads(__tstate);
22512 if (PyErr_Occurred()) SWIG_fail;
22513 }
22514 resultobj = SWIG_Py_Void();
22515 return resultobj;
22516 fail:
22517 return NULL;
22518 }
22519
22520
22521 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22522 PyObject *resultobj = 0;
22523 wxPenList *arg1 = (wxPenList *) 0 ;
22524 wxPen *arg2 = (wxPen *) 0 ;
22525 void *argp1 = 0 ;
22526 int res1 = 0 ;
22527 void *argp2 = 0 ;
22528 int res2 = 0 ;
22529 PyObject * obj0 = 0 ;
22530 PyObject * obj1 = 0 ;
22531 char * kwnames[] = {
22532 (char *) "self",(char *) "pen", NULL
22533 };
22534
22535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
22536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22537 if (!SWIG_IsOK(res1)) {
22538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22539 }
22540 arg1 = reinterpret_cast< wxPenList * >(argp1);
22541 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22542 if (!SWIG_IsOK(res2)) {
22543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
22544 }
22545 arg2 = reinterpret_cast< wxPen * >(argp2);
22546 {
22547 PyThreadState* __tstate = wxPyBeginAllowThreads();
22548 (arg1)->RemovePen(arg2);
22549 wxPyEndAllowThreads(__tstate);
22550 if (PyErr_Occurred()) SWIG_fail;
22551 }
22552 resultobj = SWIG_Py_Void();
22553 return resultobj;
22554 fail:
22555 return NULL;
22556 }
22557
22558
22559 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22560 PyObject *obj;
22561 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22562 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
22563 return SWIG_Py_Void();
22564 }
22565
22566 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22567 PyObject *resultobj = 0;
22568 wxBrushList *arg1 = (wxBrushList *) 0 ;
22569 wxColour *arg2 = 0 ;
22570 int arg3 = (int) wxSOLID ;
22571 wxBrush *result = 0 ;
22572 void *argp1 = 0 ;
22573 int res1 = 0 ;
22574 wxColour temp2 ;
22575 int val3 ;
22576 int ecode3 = 0 ;
22577 PyObject * obj0 = 0 ;
22578 PyObject * obj1 = 0 ;
22579 PyObject * obj2 = 0 ;
22580 char * kwnames[] = {
22581 (char *) "self",(char *) "colour",(char *) "style", NULL
22582 };
22583
22584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22586 if (!SWIG_IsOK(res1)) {
22587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22588 }
22589 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22590 {
22591 arg2 = &temp2;
22592 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22593 }
22594 if (obj2) {
22595 ecode3 = SWIG_AsVal_int(obj2, &val3);
22596 if (!SWIG_IsOK(ecode3)) {
22597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
22598 }
22599 arg3 = static_cast< int >(val3);
22600 }
22601 {
22602 PyThreadState* __tstate = wxPyBeginAllowThreads();
22603 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
22604 wxPyEndAllowThreads(__tstate);
22605 if (PyErr_Occurred()) SWIG_fail;
22606 }
22607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22608 return resultobj;
22609 fail:
22610 return NULL;
22611 }
22612
22613
22614 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22615 PyObject *resultobj = 0;
22616 wxBrushList *arg1 = (wxBrushList *) 0 ;
22617 wxBrush *arg2 = (wxBrush *) 0 ;
22618 void *argp1 = 0 ;
22619 int res1 = 0 ;
22620 void *argp2 = 0 ;
22621 int res2 = 0 ;
22622 PyObject * obj0 = 0 ;
22623 PyObject * obj1 = 0 ;
22624 char * kwnames[] = {
22625 (char *) "self",(char *) "brush", NULL
22626 };
22627
22628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22630 if (!SWIG_IsOK(res1)) {
22631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22632 }
22633 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22634 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22635 if (!SWIG_IsOK(res2)) {
22636 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22637 }
22638 arg2 = reinterpret_cast< wxBrush * >(argp2);
22639 {
22640 PyThreadState* __tstate = wxPyBeginAllowThreads();
22641 (arg1)->AddBrush(arg2);
22642 wxPyEndAllowThreads(__tstate);
22643 if (PyErr_Occurred()) SWIG_fail;
22644 }
22645 resultobj = SWIG_Py_Void();
22646 return resultobj;
22647 fail:
22648 return NULL;
22649 }
22650
22651
22652 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22653 PyObject *resultobj = 0;
22654 wxBrushList *arg1 = (wxBrushList *) 0 ;
22655 wxBrush *arg2 = (wxBrush *) 0 ;
22656 void *argp1 = 0 ;
22657 int res1 = 0 ;
22658 void *argp2 = 0 ;
22659 int res2 = 0 ;
22660 PyObject * obj0 = 0 ;
22661 PyObject * obj1 = 0 ;
22662 char * kwnames[] = {
22663 (char *) "self",(char *) "brush", NULL
22664 };
22665
22666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22668 if (!SWIG_IsOK(res1)) {
22669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22670 }
22671 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22672 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22673 if (!SWIG_IsOK(res2)) {
22674 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22675 }
22676 arg2 = reinterpret_cast< wxBrush * >(argp2);
22677 {
22678 PyThreadState* __tstate = wxPyBeginAllowThreads();
22679 (arg1)->RemoveBrush(arg2);
22680 wxPyEndAllowThreads(__tstate);
22681 if (PyErr_Occurred()) SWIG_fail;
22682 }
22683 resultobj = SWIG_Py_Void();
22684 return resultobj;
22685 fail:
22686 return NULL;
22687 }
22688
22689
22690 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22691 PyObject *obj;
22692 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22693 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
22694 return SWIG_Py_Void();
22695 }
22696
22697 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22698 PyObject *resultobj = 0;
22699 wxFontList *arg1 = (wxFontList *) 0 ;
22700 int arg2 ;
22701 int arg3 ;
22702 int arg4 ;
22703 int arg5 ;
22704 bool arg6 = (bool) false ;
22705 wxString const &arg7_defvalue = wxPyEmptyString ;
22706 wxString *arg7 = (wxString *) &arg7_defvalue ;
22707 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
22708 wxFont *result = 0 ;
22709 void *argp1 = 0 ;
22710 int res1 = 0 ;
22711 int val2 ;
22712 int ecode2 = 0 ;
22713 int val3 ;
22714 int ecode3 = 0 ;
22715 int val4 ;
22716 int ecode4 = 0 ;
22717 int val5 ;
22718 int ecode5 = 0 ;
22719 bool val6 ;
22720 int ecode6 = 0 ;
22721 bool temp7 = false ;
22722 int val8 ;
22723 int ecode8 = 0 ;
22724 PyObject * obj0 = 0 ;
22725 PyObject * obj1 = 0 ;
22726 PyObject * obj2 = 0 ;
22727 PyObject * obj3 = 0 ;
22728 PyObject * obj4 = 0 ;
22729 PyObject * obj5 = 0 ;
22730 PyObject * obj6 = 0 ;
22731 PyObject * obj7 = 0 ;
22732 char * kwnames[] = {
22733 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
22734 };
22735
22736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
22737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
22738 if (!SWIG_IsOK(res1)) {
22739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
22740 }
22741 arg1 = reinterpret_cast< wxFontList * >(argp1);
22742 ecode2 = SWIG_AsVal_int(obj1, &val2);
22743 if (!SWIG_IsOK(ecode2)) {
22744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
22745 }
22746 arg2 = static_cast< int >(val2);
22747 ecode3 = SWIG_AsVal_int(obj2, &val3);
22748 if (!SWIG_IsOK(ecode3)) {
22749 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
22750 }
22751 arg3 = static_cast< int >(val3);
22752 ecode4 = SWIG_AsVal_int(obj3, &val4);
22753 if (!SWIG_IsOK(ecode4)) {
22754 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
22755 }
22756 arg4 = static_cast< int >(val4);
22757 ecode5 = SWIG_AsVal_int(obj4, &val5);
22758 if (!SWIG_IsOK(ecode5)) {
22759 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
22760 }
22761 arg5 = static_cast< int >(val5);
22762 if (obj5) {
22763 ecode6 = SWIG_AsVal_bool(obj5, &val6);
22764 if (!SWIG_IsOK(ecode6)) {
22765 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
22766 }
22767 arg6 = static_cast< bool >(val6);
22768 }
22769 if (obj6) {
22770 {
22771 arg7 = wxString_in_helper(obj6);
22772 if (arg7 == NULL) SWIG_fail;
22773 temp7 = true;
22774 }
22775 }
22776 if (obj7) {
22777 ecode8 = SWIG_AsVal_int(obj7, &val8);
22778 if (!SWIG_IsOK(ecode8)) {
22779 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
22780 }
22781 arg8 = static_cast< wxFontEncoding >(val8);
22782 }
22783 {
22784 PyThreadState* __tstate = wxPyBeginAllowThreads();
22785 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
22786 wxPyEndAllowThreads(__tstate);
22787 if (PyErr_Occurred()) SWIG_fail;
22788 }
22789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22790 {
22791 if (temp7)
22792 delete arg7;
22793 }
22794 return resultobj;
22795 fail:
22796 {
22797 if (temp7)
22798 delete arg7;
22799 }
22800 return NULL;
22801 }
22802
22803
22804 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22805 PyObject *resultobj = 0;
22806 wxFontList *arg1 = (wxFontList *) 0 ;
22807 wxFont *arg2 = (wxFont *) 0 ;
22808 void *argp1 = 0 ;
22809 int res1 = 0 ;
22810 void *argp2 = 0 ;
22811 int res2 = 0 ;
22812 PyObject * obj0 = 0 ;
22813 PyObject * obj1 = 0 ;
22814 char * kwnames[] = {
22815 (char *) "self",(char *) "font", NULL
22816 };
22817
22818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
22819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
22820 if (!SWIG_IsOK(res1)) {
22821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
22822 }
22823 arg1 = reinterpret_cast< wxFontList * >(argp1);
22824 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
22825 if (!SWIG_IsOK(res2)) {
22826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
22827 }
22828 arg2 = reinterpret_cast< wxFont * >(argp2);
22829 {
22830 PyThreadState* __tstate = wxPyBeginAllowThreads();
22831 (arg1)->AddFont(arg2);
22832 wxPyEndAllowThreads(__tstate);
22833 if (PyErr_Occurred()) SWIG_fail;
22834 }
22835 resultobj = SWIG_Py_Void();
22836 return resultobj;
22837 fail:
22838 return NULL;
22839 }
22840
22841
22842 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22843 PyObject *resultobj = 0;
22844 wxFontList *arg1 = (wxFontList *) 0 ;
22845 wxFont *arg2 = (wxFont *) 0 ;
22846 void *argp1 = 0 ;
22847 int res1 = 0 ;
22848 void *argp2 = 0 ;
22849 int res2 = 0 ;
22850 PyObject * obj0 = 0 ;
22851 PyObject * obj1 = 0 ;
22852 char * kwnames[] = {
22853 (char *) "self",(char *) "font", NULL
22854 };
22855
22856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
22857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
22858 if (!SWIG_IsOK(res1)) {
22859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
22860 }
22861 arg1 = reinterpret_cast< wxFontList * >(argp1);
22862 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
22863 if (!SWIG_IsOK(res2)) {
22864 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
22865 }
22866 arg2 = reinterpret_cast< wxFont * >(argp2);
22867 {
22868 PyThreadState* __tstate = wxPyBeginAllowThreads();
22869 (arg1)->RemoveFont(arg2);
22870 wxPyEndAllowThreads(__tstate);
22871 if (PyErr_Occurred()) SWIG_fail;
22872 }
22873 resultobj = SWIG_Py_Void();
22874 return resultobj;
22875 fail:
22876 return NULL;
22877 }
22878
22879
22880 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22881 PyObject *obj;
22882 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22883 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
22884 return SWIG_Py_Void();
22885 }
22886
22887 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22888 PyObject *resultobj = 0;
22889 wxColourDatabase *result = 0 ;
22890
22891 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
22892 {
22893 if (!wxPyCheckForApp()) SWIG_fail;
22894 PyThreadState* __tstate = wxPyBeginAllowThreads();
22895 result = (wxColourDatabase *)new wxColourDatabase();
22896 wxPyEndAllowThreads(__tstate);
22897 if (PyErr_Occurred()) SWIG_fail;
22898 }
22899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
22900 return resultobj;
22901 fail:
22902 return NULL;
22903 }
22904
22905
22906 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22907 PyObject *resultobj = 0;
22908 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22909 void *argp1 = 0 ;
22910 int res1 = 0 ;
22911 PyObject *swig_obj[1] ;
22912
22913 if (!args) SWIG_fail;
22914 swig_obj[0] = args;
22915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
22916 if (!SWIG_IsOK(res1)) {
22917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
22918 }
22919 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
22920 {
22921 PyThreadState* __tstate = wxPyBeginAllowThreads();
22922 delete arg1;
22923
22924 wxPyEndAllowThreads(__tstate);
22925 if (PyErr_Occurred()) SWIG_fail;
22926 }
22927 resultobj = SWIG_Py_Void();
22928 return resultobj;
22929 fail:
22930 return NULL;
22931 }
22932
22933
22934 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22935 PyObject *resultobj = 0;
22936 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22937 wxString *arg2 = 0 ;
22938 wxColour result;
22939 void *argp1 = 0 ;
22940 int res1 = 0 ;
22941 bool temp2 = false ;
22942 PyObject * obj0 = 0 ;
22943 PyObject * obj1 = 0 ;
22944 char * kwnames[] = {
22945 (char *) "self",(char *) "name", NULL
22946 };
22947
22948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
22949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
22950 if (!SWIG_IsOK(res1)) {
22951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
22952 }
22953 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
22954 {
22955 arg2 = wxString_in_helper(obj1);
22956 if (arg2 == NULL) SWIG_fail;
22957 temp2 = true;
22958 }
22959 {
22960 PyThreadState* __tstate = wxPyBeginAllowThreads();
22961 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
22962 wxPyEndAllowThreads(__tstate);
22963 if (PyErr_Occurred()) SWIG_fail;
22964 }
22965 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
22966 {
22967 if (temp2)
22968 delete arg2;
22969 }
22970 return resultobj;
22971 fail:
22972 {
22973 if (temp2)
22974 delete arg2;
22975 }
22976 return NULL;
22977 }
22978
22979
22980 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22981 PyObject *resultobj = 0;
22982 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22983 wxColour *arg2 = 0 ;
22984 wxString result;
22985 void *argp1 = 0 ;
22986 int res1 = 0 ;
22987 wxColour temp2 ;
22988 PyObject * obj0 = 0 ;
22989 PyObject * obj1 = 0 ;
22990 char * kwnames[] = {
22991 (char *) "self",(char *) "colour", NULL
22992 };
22993
22994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
22995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
22996 if (!SWIG_IsOK(res1)) {
22997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
22998 }
22999 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23000 {
23001 arg2 = &temp2;
23002 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23003 }
23004 {
23005 PyThreadState* __tstate = wxPyBeginAllowThreads();
23006 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
23007 wxPyEndAllowThreads(__tstate);
23008 if (PyErr_Occurred()) SWIG_fail;
23009 }
23010 {
23011 #if wxUSE_UNICODE
23012 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23013 #else
23014 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23015 #endif
23016 }
23017 return resultobj;
23018 fail:
23019 return NULL;
23020 }
23021
23022
23023 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23024 PyObject *resultobj = 0;
23025 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23026 wxString *arg2 = 0 ;
23027 wxColour *arg3 = 0 ;
23028 void *argp1 = 0 ;
23029 int res1 = 0 ;
23030 bool temp2 = false ;
23031 wxColour temp3 ;
23032 PyObject * obj0 = 0 ;
23033 PyObject * obj1 = 0 ;
23034 PyObject * obj2 = 0 ;
23035 char * kwnames[] = {
23036 (char *) "self",(char *) "name",(char *) "colour", NULL
23037 };
23038
23039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23041 if (!SWIG_IsOK(res1)) {
23042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23043 }
23044 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23045 {
23046 arg2 = wxString_in_helper(obj1);
23047 if (arg2 == NULL) SWIG_fail;
23048 temp2 = true;
23049 }
23050 {
23051 arg3 = &temp3;
23052 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23053 }
23054 {
23055 PyThreadState* __tstate = wxPyBeginAllowThreads();
23056 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
23057 wxPyEndAllowThreads(__tstate);
23058 if (PyErr_Occurred()) SWIG_fail;
23059 }
23060 resultobj = SWIG_Py_Void();
23061 {
23062 if (temp2)
23063 delete arg2;
23064 }
23065 return resultobj;
23066 fail:
23067 {
23068 if (temp2)
23069 delete arg2;
23070 }
23071 return NULL;
23072 }
23073
23074
23075 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23076 PyObject *resultobj = 0;
23077 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23078 wxString *arg2 = 0 ;
23079 int arg3 ;
23080 int arg4 ;
23081 int arg5 ;
23082 void *argp1 = 0 ;
23083 int res1 = 0 ;
23084 bool temp2 = false ;
23085 int val3 ;
23086 int ecode3 = 0 ;
23087 int val4 ;
23088 int ecode4 = 0 ;
23089 int val5 ;
23090 int ecode5 = 0 ;
23091 PyObject * obj0 = 0 ;
23092 PyObject * obj1 = 0 ;
23093 PyObject * obj2 = 0 ;
23094 PyObject * obj3 = 0 ;
23095 PyObject * obj4 = 0 ;
23096 char * kwnames[] = {
23097 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
23098 };
23099
23100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23102 if (!SWIG_IsOK(res1)) {
23103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23104 }
23105 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23106 {
23107 arg2 = wxString_in_helper(obj1);
23108 if (arg2 == NULL) SWIG_fail;
23109 temp2 = true;
23110 }
23111 ecode3 = SWIG_AsVal_int(obj2, &val3);
23112 if (!SWIG_IsOK(ecode3)) {
23113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
23114 }
23115 arg3 = static_cast< int >(val3);
23116 ecode4 = SWIG_AsVal_int(obj3, &val4);
23117 if (!SWIG_IsOK(ecode4)) {
23118 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
23119 }
23120 arg4 = static_cast< int >(val4);
23121 ecode5 = SWIG_AsVal_int(obj4, &val5);
23122 if (!SWIG_IsOK(ecode5)) {
23123 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
23124 }
23125 arg5 = static_cast< int >(val5);
23126 {
23127 PyThreadState* __tstate = wxPyBeginAllowThreads();
23128 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
23129 wxPyEndAllowThreads(__tstate);
23130 if (PyErr_Occurred()) SWIG_fail;
23131 }
23132 resultobj = SWIG_Py_Void();
23133 {
23134 if (temp2)
23135 delete arg2;
23136 }
23137 return resultobj;
23138 fail:
23139 {
23140 if (temp2)
23141 delete arg2;
23142 }
23143 return NULL;
23144 }
23145
23146
23147 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23148 PyObject *obj;
23149 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23150 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
23151 return SWIG_Py_Void();
23152 }
23153
23154 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23155 return SWIG_Python_InitShadowInstance(args);
23156 }
23157
23158 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23159 PyObject *resultobj = 0;
23160 wxFontList *result = 0 ;
23161
23162 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
23163 {
23164 PyThreadState* __tstate = wxPyBeginAllowThreads();
23165 result = (wxFontList *)_wxPyInitTheFontList();
23166 wxPyEndAllowThreads(__tstate);
23167 if (PyErr_Occurred()) SWIG_fail;
23168 }
23169 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
23170 return resultobj;
23171 fail:
23172 return NULL;
23173 }
23174
23175
23176 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23177 PyObject *resultobj = 0;
23178 wxPenList *result = 0 ;
23179
23180 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
23181 {
23182 PyThreadState* __tstate = wxPyBeginAllowThreads();
23183 result = (wxPenList *)_wxPyInitThePenList();
23184 wxPyEndAllowThreads(__tstate);
23185 if (PyErr_Occurred()) SWIG_fail;
23186 }
23187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
23188 return resultobj;
23189 fail:
23190 return NULL;
23191 }
23192
23193
23194 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23195 PyObject *resultobj = 0;
23196 wxBrushList *result = 0 ;
23197
23198 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
23199 {
23200 PyThreadState* __tstate = wxPyBeginAllowThreads();
23201 result = (wxBrushList *)_wxPyInitTheBrushList();
23202 wxPyEndAllowThreads(__tstate);
23203 if (PyErr_Occurred()) SWIG_fail;
23204 }
23205 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
23206 return resultobj;
23207 fail:
23208 return NULL;
23209 }
23210
23211
23212 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23213 PyObject *resultobj = 0;
23214 wxColourDatabase *result = 0 ;
23215
23216 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
23217 {
23218 PyThreadState* __tstate = wxPyBeginAllowThreads();
23219 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
23220 wxPyEndAllowThreads(__tstate);
23221 if (PyErr_Occurred()) SWIG_fail;
23222 }
23223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23224 return resultobj;
23225 fail:
23226 return NULL;
23227 }
23228
23229
23230 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23231 PyObject *resultobj = 0;
23232 wxEffects *result = 0 ;
23233
23234 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
23235 {
23236 PyThreadState* __tstate = wxPyBeginAllowThreads();
23237 result = (wxEffects *)new wxEffects();
23238 wxPyEndAllowThreads(__tstate);
23239 if (PyErr_Occurred()) SWIG_fail;
23240 }
23241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
23242 return resultobj;
23243 fail:
23244 return NULL;
23245 }
23246
23247
23248 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23249 PyObject *resultobj = 0;
23250 wxEffects *arg1 = (wxEffects *) 0 ;
23251 wxColour result;
23252 void *argp1 = 0 ;
23253 int res1 = 0 ;
23254 PyObject *swig_obj[1] ;
23255
23256 if (!args) SWIG_fail;
23257 swig_obj[0] = args;
23258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23259 if (!SWIG_IsOK(res1)) {
23260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23261 }
23262 arg1 = reinterpret_cast< wxEffects * >(argp1);
23263 {
23264 PyThreadState* __tstate = wxPyBeginAllowThreads();
23265 result = ((wxEffects const *)arg1)->GetHighlightColour();
23266 wxPyEndAllowThreads(__tstate);
23267 if (PyErr_Occurred()) SWIG_fail;
23268 }
23269 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23270 return resultobj;
23271 fail:
23272 return NULL;
23273 }
23274
23275
23276 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23277 PyObject *resultobj = 0;
23278 wxEffects *arg1 = (wxEffects *) 0 ;
23279 wxColour result;
23280 void *argp1 = 0 ;
23281 int res1 = 0 ;
23282 PyObject *swig_obj[1] ;
23283
23284 if (!args) SWIG_fail;
23285 swig_obj[0] = args;
23286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23287 if (!SWIG_IsOK(res1)) {
23288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23289 }
23290 arg1 = reinterpret_cast< wxEffects * >(argp1);
23291 {
23292 PyThreadState* __tstate = wxPyBeginAllowThreads();
23293 result = ((wxEffects const *)arg1)->GetLightShadow();
23294 wxPyEndAllowThreads(__tstate);
23295 if (PyErr_Occurred()) SWIG_fail;
23296 }
23297 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23298 return resultobj;
23299 fail:
23300 return NULL;
23301 }
23302
23303
23304 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23305 PyObject *resultobj = 0;
23306 wxEffects *arg1 = (wxEffects *) 0 ;
23307 wxColour result;
23308 void *argp1 = 0 ;
23309 int res1 = 0 ;
23310 PyObject *swig_obj[1] ;
23311
23312 if (!args) SWIG_fail;
23313 swig_obj[0] = args;
23314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23315 if (!SWIG_IsOK(res1)) {
23316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23317 }
23318 arg1 = reinterpret_cast< wxEffects * >(argp1);
23319 {
23320 PyThreadState* __tstate = wxPyBeginAllowThreads();
23321 result = ((wxEffects const *)arg1)->GetFaceColour();
23322 wxPyEndAllowThreads(__tstate);
23323 if (PyErr_Occurred()) SWIG_fail;
23324 }
23325 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23326 return resultobj;
23327 fail:
23328 return NULL;
23329 }
23330
23331
23332 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23333 PyObject *resultobj = 0;
23334 wxEffects *arg1 = (wxEffects *) 0 ;
23335 wxColour result;
23336 void *argp1 = 0 ;
23337 int res1 = 0 ;
23338 PyObject *swig_obj[1] ;
23339
23340 if (!args) SWIG_fail;
23341 swig_obj[0] = args;
23342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23343 if (!SWIG_IsOK(res1)) {
23344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23345 }
23346 arg1 = reinterpret_cast< wxEffects * >(argp1);
23347 {
23348 PyThreadState* __tstate = wxPyBeginAllowThreads();
23349 result = ((wxEffects const *)arg1)->GetMediumShadow();
23350 wxPyEndAllowThreads(__tstate);
23351 if (PyErr_Occurred()) SWIG_fail;
23352 }
23353 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23354 return resultobj;
23355 fail:
23356 return NULL;
23357 }
23358
23359
23360 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23361 PyObject *resultobj = 0;
23362 wxEffects *arg1 = (wxEffects *) 0 ;
23363 wxColour result;
23364 void *argp1 = 0 ;
23365 int res1 = 0 ;
23366 PyObject *swig_obj[1] ;
23367
23368 if (!args) SWIG_fail;
23369 swig_obj[0] = args;
23370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23371 if (!SWIG_IsOK(res1)) {
23372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23373 }
23374 arg1 = reinterpret_cast< wxEffects * >(argp1);
23375 {
23376 PyThreadState* __tstate = wxPyBeginAllowThreads();
23377 result = ((wxEffects const *)arg1)->GetDarkShadow();
23378 wxPyEndAllowThreads(__tstate);
23379 if (PyErr_Occurred()) SWIG_fail;
23380 }
23381 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23382 return resultobj;
23383 fail:
23384 return NULL;
23385 }
23386
23387
23388 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23389 PyObject *resultobj = 0;
23390 wxEffects *arg1 = (wxEffects *) 0 ;
23391 wxColour *arg2 = 0 ;
23392 void *argp1 = 0 ;
23393 int res1 = 0 ;
23394 wxColour temp2 ;
23395 PyObject * obj0 = 0 ;
23396 PyObject * obj1 = 0 ;
23397 char * kwnames[] = {
23398 (char *) "self",(char *) "c", NULL
23399 };
23400
23401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
23402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23403 if (!SWIG_IsOK(res1)) {
23404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23405 }
23406 arg1 = reinterpret_cast< wxEffects * >(argp1);
23407 {
23408 arg2 = &temp2;
23409 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23410 }
23411 {
23412 PyThreadState* __tstate = wxPyBeginAllowThreads();
23413 (arg1)->SetHighlightColour((wxColour const &)*arg2);
23414 wxPyEndAllowThreads(__tstate);
23415 if (PyErr_Occurred()) SWIG_fail;
23416 }
23417 resultobj = SWIG_Py_Void();
23418 return resultobj;
23419 fail:
23420 return NULL;
23421 }
23422
23423
23424 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23425 PyObject *resultobj = 0;
23426 wxEffects *arg1 = (wxEffects *) 0 ;
23427 wxColour *arg2 = 0 ;
23428 void *argp1 = 0 ;
23429 int res1 = 0 ;
23430 wxColour temp2 ;
23431 PyObject * obj0 = 0 ;
23432 PyObject * obj1 = 0 ;
23433 char * kwnames[] = {
23434 (char *) "self",(char *) "c", NULL
23435 };
23436
23437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23439 if (!SWIG_IsOK(res1)) {
23440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23441 }
23442 arg1 = reinterpret_cast< wxEffects * >(argp1);
23443 {
23444 arg2 = &temp2;
23445 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23446 }
23447 {
23448 PyThreadState* __tstate = wxPyBeginAllowThreads();
23449 (arg1)->SetLightShadow((wxColour const &)*arg2);
23450 wxPyEndAllowThreads(__tstate);
23451 if (PyErr_Occurred()) SWIG_fail;
23452 }
23453 resultobj = SWIG_Py_Void();
23454 return resultobj;
23455 fail:
23456 return NULL;
23457 }
23458
23459
23460 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23461 PyObject *resultobj = 0;
23462 wxEffects *arg1 = (wxEffects *) 0 ;
23463 wxColour *arg2 = 0 ;
23464 void *argp1 = 0 ;
23465 int res1 = 0 ;
23466 wxColour temp2 ;
23467 PyObject * obj0 = 0 ;
23468 PyObject * obj1 = 0 ;
23469 char * kwnames[] = {
23470 (char *) "self",(char *) "c", NULL
23471 };
23472
23473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
23474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23475 if (!SWIG_IsOK(res1)) {
23476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23477 }
23478 arg1 = reinterpret_cast< wxEffects * >(argp1);
23479 {
23480 arg2 = &temp2;
23481 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23482 }
23483 {
23484 PyThreadState* __tstate = wxPyBeginAllowThreads();
23485 (arg1)->SetFaceColour((wxColour const &)*arg2);
23486 wxPyEndAllowThreads(__tstate);
23487 if (PyErr_Occurred()) SWIG_fail;
23488 }
23489 resultobj = SWIG_Py_Void();
23490 return resultobj;
23491 fail:
23492 return NULL;
23493 }
23494
23495
23496 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23497 PyObject *resultobj = 0;
23498 wxEffects *arg1 = (wxEffects *) 0 ;
23499 wxColour *arg2 = 0 ;
23500 void *argp1 = 0 ;
23501 int res1 = 0 ;
23502 wxColour temp2 ;
23503 PyObject * obj0 = 0 ;
23504 PyObject * obj1 = 0 ;
23505 char * kwnames[] = {
23506 (char *) "self",(char *) "c", NULL
23507 };
23508
23509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23511 if (!SWIG_IsOK(res1)) {
23512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23513 }
23514 arg1 = reinterpret_cast< wxEffects * >(argp1);
23515 {
23516 arg2 = &temp2;
23517 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23518 }
23519 {
23520 PyThreadState* __tstate = wxPyBeginAllowThreads();
23521 (arg1)->SetMediumShadow((wxColour const &)*arg2);
23522 wxPyEndAllowThreads(__tstate);
23523 if (PyErr_Occurred()) SWIG_fail;
23524 }
23525 resultobj = SWIG_Py_Void();
23526 return resultobj;
23527 fail:
23528 return NULL;
23529 }
23530
23531
23532 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23533 PyObject *resultobj = 0;
23534 wxEffects *arg1 = (wxEffects *) 0 ;
23535 wxColour *arg2 = 0 ;
23536 void *argp1 = 0 ;
23537 int res1 = 0 ;
23538 wxColour temp2 ;
23539 PyObject * obj0 = 0 ;
23540 PyObject * obj1 = 0 ;
23541 char * kwnames[] = {
23542 (char *) "self",(char *) "c", NULL
23543 };
23544
23545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23547 if (!SWIG_IsOK(res1)) {
23548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23549 }
23550 arg1 = reinterpret_cast< wxEffects * >(argp1);
23551 {
23552 arg2 = &temp2;
23553 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23554 }
23555 {
23556 PyThreadState* __tstate = wxPyBeginAllowThreads();
23557 (arg1)->SetDarkShadow((wxColour const &)*arg2);
23558 wxPyEndAllowThreads(__tstate);
23559 if (PyErr_Occurred()) SWIG_fail;
23560 }
23561 resultobj = SWIG_Py_Void();
23562 return resultobj;
23563 fail:
23564 return NULL;
23565 }
23566
23567
23568 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23569 PyObject *resultobj = 0;
23570 wxEffects *arg1 = (wxEffects *) 0 ;
23571 wxColour *arg2 = 0 ;
23572 wxColour *arg3 = 0 ;
23573 wxColour *arg4 = 0 ;
23574 wxColour *arg5 = 0 ;
23575 wxColour *arg6 = 0 ;
23576 void *argp1 = 0 ;
23577 int res1 = 0 ;
23578 wxColour temp2 ;
23579 wxColour temp3 ;
23580 wxColour temp4 ;
23581 wxColour temp5 ;
23582 wxColour temp6 ;
23583 PyObject * obj0 = 0 ;
23584 PyObject * obj1 = 0 ;
23585 PyObject * obj2 = 0 ;
23586 PyObject * obj3 = 0 ;
23587 PyObject * obj4 = 0 ;
23588 PyObject * obj5 = 0 ;
23589 char * kwnames[] = {
23590 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
23591 };
23592
23593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
23594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23595 if (!SWIG_IsOK(res1)) {
23596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
23597 }
23598 arg1 = reinterpret_cast< wxEffects * >(argp1);
23599 {
23600 arg2 = &temp2;
23601 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23602 }
23603 {
23604 arg3 = &temp3;
23605 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23606 }
23607 {
23608 arg4 = &temp4;
23609 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
23610 }
23611 {
23612 arg5 = &temp5;
23613 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
23614 }
23615 {
23616 arg6 = &temp6;
23617 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
23618 }
23619 {
23620 PyThreadState* __tstate = wxPyBeginAllowThreads();
23621 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
23622 wxPyEndAllowThreads(__tstate);
23623 if (PyErr_Occurred()) SWIG_fail;
23624 }
23625 resultobj = SWIG_Py_Void();
23626 return resultobj;
23627 fail:
23628 return NULL;
23629 }
23630
23631
23632 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23633 PyObject *resultobj = 0;
23634 wxEffects *arg1 = (wxEffects *) 0 ;
23635 wxDC *arg2 = 0 ;
23636 wxRect *arg3 = 0 ;
23637 int arg4 = (int) 1 ;
23638 void *argp1 = 0 ;
23639 int res1 = 0 ;
23640 void *argp2 = 0 ;
23641 int res2 = 0 ;
23642 wxRect temp3 ;
23643 int val4 ;
23644 int ecode4 = 0 ;
23645 PyObject * obj0 = 0 ;
23646 PyObject * obj1 = 0 ;
23647 PyObject * obj2 = 0 ;
23648 PyObject * obj3 = 0 ;
23649 char * kwnames[] = {
23650 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
23651 };
23652
23653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23655 if (!SWIG_IsOK(res1)) {
23656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
23657 }
23658 arg1 = reinterpret_cast< wxEffects * >(argp1);
23659 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
23660 if (!SWIG_IsOK(res2)) {
23661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23662 }
23663 if (!argp2) {
23664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23665 }
23666 arg2 = reinterpret_cast< wxDC * >(argp2);
23667 {
23668 arg3 = &temp3;
23669 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
23670 }
23671 if (obj3) {
23672 ecode4 = SWIG_AsVal_int(obj3, &val4);
23673 if (!SWIG_IsOK(ecode4)) {
23674 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
23675 }
23676 arg4 = static_cast< int >(val4);
23677 }
23678 {
23679 PyThreadState* __tstate = wxPyBeginAllowThreads();
23680 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
23681 wxPyEndAllowThreads(__tstate);
23682 if (PyErr_Occurred()) SWIG_fail;
23683 }
23684 resultobj = SWIG_Py_Void();
23685 return resultobj;
23686 fail:
23687 return NULL;
23688 }
23689
23690
23691 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23692 PyObject *resultobj = 0;
23693 wxEffects *arg1 = (wxEffects *) 0 ;
23694 wxRect *arg2 = 0 ;
23695 wxDC *arg3 = 0 ;
23696 wxBitmap *arg4 = 0 ;
23697 bool result;
23698 void *argp1 = 0 ;
23699 int res1 = 0 ;
23700 wxRect temp2 ;
23701 void *argp3 = 0 ;
23702 int res3 = 0 ;
23703 void *argp4 = 0 ;
23704 int res4 = 0 ;
23705 PyObject * obj0 = 0 ;
23706 PyObject * obj1 = 0 ;
23707 PyObject * obj2 = 0 ;
23708 PyObject * obj3 = 0 ;
23709 char * kwnames[] = {
23710 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
23711 };
23712
23713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23715 if (!SWIG_IsOK(res1)) {
23716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
23717 }
23718 arg1 = reinterpret_cast< wxEffects * >(argp1);
23719 {
23720 arg2 = &temp2;
23721 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
23722 }
23723 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
23724 if (!SWIG_IsOK(res3)) {
23725 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23726 }
23727 if (!argp3) {
23728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23729 }
23730 arg3 = reinterpret_cast< wxDC * >(argp3);
23731 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
23732 if (!SWIG_IsOK(res4)) {
23733 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23734 }
23735 if (!argp4) {
23736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23737 }
23738 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23739 {
23740 PyThreadState* __tstate = wxPyBeginAllowThreads();
23741 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
23742 wxPyEndAllowThreads(__tstate);
23743 if (PyErr_Occurred()) SWIG_fail;
23744 }
23745 {
23746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23747 }
23748 return resultobj;
23749 fail:
23750 return NULL;
23751 }
23752
23753
23754 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23755 PyObject *obj;
23756 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23757 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
23758 return SWIG_Py_Void();
23759 }
23760
23761 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23762 return SWIG_Python_InitShadowInstance(args);
23763 }
23764
23765 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23766 PyObject *resultobj = 0;
23767 int arg1 ;
23768 int arg2 ;
23769 bool arg3 ;
23770 wxSplitterRenderParams *result = 0 ;
23771 int val1 ;
23772 int ecode1 = 0 ;
23773 int val2 ;
23774 int ecode2 = 0 ;
23775 bool val3 ;
23776 int ecode3 = 0 ;
23777 PyObject * obj0 = 0 ;
23778 PyObject * obj1 = 0 ;
23779 PyObject * obj2 = 0 ;
23780 char * kwnames[] = {
23781 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
23782 };
23783
23784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23785 ecode1 = SWIG_AsVal_int(obj0, &val1);
23786 if (!SWIG_IsOK(ecode1)) {
23787 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
23788 }
23789 arg1 = static_cast< int >(val1);
23790 ecode2 = SWIG_AsVal_int(obj1, &val2);
23791 if (!SWIG_IsOK(ecode2)) {
23792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
23793 }
23794 arg2 = static_cast< int >(val2);
23795 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23796 if (!SWIG_IsOK(ecode3)) {
23797 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
23798 }
23799 arg3 = static_cast< bool >(val3);
23800 {
23801 PyThreadState* __tstate = wxPyBeginAllowThreads();
23802 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
23803 wxPyEndAllowThreads(__tstate);
23804 if (PyErr_Occurred()) SWIG_fail;
23805 }
23806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
23807 return resultobj;
23808 fail:
23809 return NULL;
23810 }
23811
23812
23813 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23814 PyObject *resultobj = 0;
23815 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23816 void *argp1 = 0 ;
23817 int res1 = 0 ;
23818 PyObject *swig_obj[1] ;
23819
23820 if (!args) SWIG_fail;
23821 swig_obj[0] = args;
23822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
23823 if (!SWIG_IsOK(res1)) {
23824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23825 }
23826 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23827 {
23828 PyThreadState* __tstate = wxPyBeginAllowThreads();
23829 delete arg1;
23830
23831 wxPyEndAllowThreads(__tstate);
23832 if (PyErr_Occurred()) SWIG_fail;
23833 }
23834 resultobj = SWIG_Py_Void();
23835 return resultobj;
23836 fail:
23837 return NULL;
23838 }
23839
23840
23841 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23842 PyObject *resultobj = 0;
23843 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23844 int result;
23845 void *argp1 = 0 ;
23846 int res1 = 0 ;
23847 PyObject *swig_obj[1] ;
23848
23849 if (!args) SWIG_fail;
23850 swig_obj[0] = args;
23851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
23852 if (!SWIG_IsOK(res1)) {
23853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23854 }
23855 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23856 result = (int)(int) ((arg1)->widthSash);
23857 resultobj = SWIG_From_int(static_cast< int >(result));
23858 return resultobj;
23859 fail:
23860 return NULL;
23861 }
23862
23863
23864 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23865 PyObject *resultobj = 0;
23866 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23867 int result;
23868 void *argp1 = 0 ;
23869 int res1 = 0 ;
23870 PyObject *swig_obj[1] ;
23871
23872 if (!args) SWIG_fail;
23873 swig_obj[0] = args;
23874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
23875 if (!SWIG_IsOK(res1)) {
23876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23877 }
23878 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23879 result = (int)(int) ((arg1)->border);
23880 resultobj = SWIG_From_int(static_cast< int >(result));
23881 return resultobj;
23882 fail:
23883 return NULL;
23884 }
23885
23886
23887 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23888 PyObject *resultobj = 0;
23889 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23890 bool result;
23891 void *argp1 = 0 ;
23892 int res1 = 0 ;
23893 PyObject *swig_obj[1] ;
23894
23895 if (!args) SWIG_fail;
23896 swig_obj[0] = args;
23897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
23898 if (!SWIG_IsOK(res1)) {
23899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23900 }
23901 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23902 result = (bool)(bool) ((arg1)->isHotSensitive);
23903 resultobj = SWIG_From_bool(static_cast< bool >(result));
23904 return resultobj;
23905 fail:
23906 return NULL;
23907 }
23908
23909
23910 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23911 PyObject *obj;
23912 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23913 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
23914 return SWIG_Py_Void();
23915 }
23916
23917 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23918 return SWIG_Python_InitShadowInstance(args);
23919 }
23920
23921 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23922 PyObject *resultobj = 0;
23923 int arg1 ;
23924 int arg2 ;
23925 wxRendererVersion *result = 0 ;
23926 int val1 ;
23927 int ecode1 = 0 ;
23928 int val2 ;
23929 int ecode2 = 0 ;
23930 PyObject * obj0 = 0 ;
23931 PyObject * obj1 = 0 ;
23932 char * kwnames[] = {
23933 (char *) "version_",(char *) "age_", NULL
23934 };
23935
23936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
23937 ecode1 = SWIG_AsVal_int(obj0, &val1);
23938 if (!SWIG_IsOK(ecode1)) {
23939 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
23940 }
23941 arg1 = static_cast< int >(val1);
23942 ecode2 = SWIG_AsVal_int(obj1, &val2);
23943 if (!SWIG_IsOK(ecode2)) {
23944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
23945 }
23946 arg2 = static_cast< int >(val2);
23947 {
23948 PyThreadState* __tstate = wxPyBeginAllowThreads();
23949 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
23950 wxPyEndAllowThreads(__tstate);
23951 if (PyErr_Occurred()) SWIG_fail;
23952 }
23953 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
23954 return resultobj;
23955 fail:
23956 return NULL;
23957 }
23958
23959
23960 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23961 PyObject *resultobj = 0;
23962 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
23963 void *argp1 = 0 ;
23964 int res1 = 0 ;
23965 PyObject *swig_obj[1] ;
23966
23967 if (!args) SWIG_fail;
23968 swig_obj[0] = args;
23969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
23970 if (!SWIG_IsOK(res1)) {
23971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
23972 }
23973 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
23974 {
23975 PyThreadState* __tstate = wxPyBeginAllowThreads();
23976 delete arg1;
23977
23978 wxPyEndAllowThreads(__tstate);
23979 if (PyErr_Occurred()) SWIG_fail;
23980 }
23981 resultobj = SWIG_Py_Void();
23982 return resultobj;
23983 fail:
23984 return NULL;
23985 }
23986
23987
23988 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23989 PyObject *resultobj = 0;
23990 wxRendererVersion *arg1 = 0 ;
23991 bool result;
23992 void *argp1 = 0 ;
23993 int res1 = 0 ;
23994 PyObject * obj0 = 0 ;
23995 char * kwnames[] = {
23996 (char *) "ver", NULL
23997 };
23998
23999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
24000 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
24001 if (!SWIG_IsOK(res1)) {
24002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24003 }
24004 if (!argp1) {
24005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24006 }
24007 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24008 {
24009 PyThreadState* __tstate = wxPyBeginAllowThreads();
24010 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
24011 wxPyEndAllowThreads(__tstate);
24012 if (PyErr_Occurred()) SWIG_fail;
24013 }
24014 {
24015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24016 }
24017 return resultobj;
24018 fail:
24019 return NULL;
24020 }
24021
24022
24023 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24024 PyObject *resultobj = 0;
24025 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24026 int result;
24027 void *argp1 = 0 ;
24028 int res1 = 0 ;
24029 PyObject *swig_obj[1] ;
24030
24031 if (!args) SWIG_fail;
24032 swig_obj[0] = args;
24033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24034 if (!SWIG_IsOK(res1)) {
24035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24036 }
24037 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24038 result = (int)(int) ((arg1)->version);
24039 resultobj = SWIG_From_int(static_cast< int >(result));
24040 return resultobj;
24041 fail:
24042 return NULL;
24043 }
24044
24045
24046 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24047 PyObject *resultobj = 0;
24048 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24049 int result;
24050 void *argp1 = 0 ;
24051 int res1 = 0 ;
24052 PyObject *swig_obj[1] ;
24053
24054 if (!args) SWIG_fail;
24055 swig_obj[0] = args;
24056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24057 if (!SWIG_IsOK(res1)) {
24058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24059 }
24060 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24061 result = (int)(int) ((arg1)->age);
24062 resultobj = SWIG_From_int(static_cast< int >(result));
24063 return resultobj;
24064 fail:
24065 return NULL;
24066 }
24067
24068
24069 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24070 PyObject *obj;
24071 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24072 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
24073 return SWIG_Py_Void();
24074 }
24075
24076 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24077 return SWIG_Python_InitShadowInstance(args);
24078 }
24079
24080 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24081 PyObject *resultobj = 0;
24082 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24083 wxWindow *arg2 = (wxWindow *) 0 ;
24084 wxDC *arg3 = 0 ;
24085 wxRect *arg4 = 0 ;
24086 int arg5 = (int) 0 ;
24087 void *argp1 = 0 ;
24088 int res1 = 0 ;
24089 void *argp2 = 0 ;
24090 int res2 = 0 ;
24091 void *argp3 = 0 ;
24092 int res3 = 0 ;
24093 wxRect temp4 ;
24094 int val5 ;
24095 int ecode5 = 0 ;
24096 PyObject * obj0 = 0 ;
24097 PyObject * obj1 = 0 ;
24098 PyObject * obj2 = 0 ;
24099 PyObject * obj3 = 0 ;
24100 PyObject * obj4 = 0 ;
24101 char * kwnames[] = {
24102 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24103 };
24104
24105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24107 if (!SWIG_IsOK(res1)) {
24108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24109 }
24110 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24111 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24112 if (!SWIG_IsOK(res2)) {
24113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24114 }
24115 arg2 = reinterpret_cast< wxWindow * >(argp2);
24116 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24117 if (!SWIG_IsOK(res3)) {
24118 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24119 }
24120 if (!argp3) {
24121 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24122 }
24123 arg3 = reinterpret_cast< wxDC * >(argp3);
24124 {
24125 arg4 = &temp4;
24126 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24127 }
24128 if (obj4) {
24129 ecode5 = SWIG_AsVal_int(obj4, &val5);
24130 if (!SWIG_IsOK(ecode5)) {
24131 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
24132 }
24133 arg5 = static_cast< int >(val5);
24134 }
24135 {
24136 PyThreadState* __tstate = wxPyBeginAllowThreads();
24137 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24138 wxPyEndAllowThreads(__tstate);
24139 if (PyErr_Occurred()) SWIG_fail;
24140 }
24141 resultobj = SWIG_Py_Void();
24142 return resultobj;
24143 fail:
24144 return NULL;
24145 }
24146
24147
24148 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24149 PyObject *resultobj = 0;
24150 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24151 wxWindow *arg2 = (wxWindow *) 0 ;
24152 wxDC *arg3 = 0 ;
24153 wxRect *arg4 = 0 ;
24154 int arg5 = (int) 0 ;
24155 void *argp1 = 0 ;
24156 int res1 = 0 ;
24157 void *argp2 = 0 ;
24158 int res2 = 0 ;
24159 void *argp3 = 0 ;
24160 int res3 = 0 ;
24161 wxRect temp4 ;
24162 int val5 ;
24163 int ecode5 = 0 ;
24164 PyObject * obj0 = 0 ;
24165 PyObject * obj1 = 0 ;
24166 PyObject * obj2 = 0 ;
24167 PyObject * obj3 = 0 ;
24168 PyObject * obj4 = 0 ;
24169 char * kwnames[] = {
24170 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24171 };
24172
24173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24175 if (!SWIG_IsOK(res1)) {
24176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24177 }
24178 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24179 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24180 if (!SWIG_IsOK(res2)) {
24181 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24182 }
24183 arg2 = reinterpret_cast< wxWindow * >(argp2);
24184 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24185 if (!SWIG_IsOK(res3)) {
24186 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24187 }
24188 if (!argp3) {
24189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24190 }
24191 arg3 = reinterpret_cast< wxDC * >(argp3);
24192 {
24193 arg4 = &temp4;
24194 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24195 }
24196 if (obj4) {
24197 ecode5 = SWIG_AsVal_int(obj4, &val5);
24198 if (!SWIG_IsOK(ecode5)) {
24199 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
24200 }
24201 arg5 = static_cast< int >(val5);
24202 }
24203 {
24204 PyThreadState* __tstate = wxPyBeginAllowThreads();
24205 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24206 wxPyEndAllowThreads(__tstate);
24207 if (PyErr_Occurred()) SWIG_fail;
24208 }
24209 resultobj = SWIG_Py_Void();
24210 return resultobj;
24211 fail:
24212 return NULL;
24213 }
24214
24215
24216 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24217 PyObject *resultobj = 0;
24218 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24219 wxWindow *arg2 = (wxWindow *) 0 ;
24220 wxDC *arg3 = 0 ;
24221 wxRect *arg4 = 0 ;
24222 int arg5 = (int) 0 ;
24223 void *argp1 = 0 ;
24224 int res1 = 0 ;
24225 void *argp2 = 0 ;
24226 int res2 = 0 ;
24227 void *argp3 = 0 ;
24228 int res3 = 0 ;
24229 wxRect temp4 ;
24230 int val5 ;
24231 int ecode5 = 0 ;
24232 PyObject * obj0 = 0 ;
24233 PyObject * obj1 = 0 ;
24234 PyObject * obj2 = 0 ;
24235 PyObject * obj3 = 0 ;
24236 PyObject * obj4 = 0 ;
24237 char * kwnames[] = {
24238 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24239 };
24240
24241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24243 if (!SWIG_IsOK(res1)) {
24244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24245 }
24246 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24247 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24248 if (!SWIG_IsOK(res2)) {
24249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
24250 }
24251 arg2 = reinterpret_cast< wxWindow * >(argp2);
24252 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24253 if (!SWIG_IsOK(res3)) {
24254 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24255 }
24256 if (!argp3) {
24257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24258 }
24259 arg3 = reinterpret_cast< wxDC * >(argp3);
24260 {
24261 arg4 = &temp4;
24262 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24263 }
24264 if (obj4) {
24265 ecode5 = SWIG_AsVal_int(obj4, &val5);
24266 if (!SWIG_IsOK(ecode5)) {
24267 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
24268 }
24269 arg5 = static_cast< int >(val5);
24270 }
24271 {
24272 PyThreadState* __tstate = wxPyBeginAllowThreads();
24273 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
24274 wxPyEndAllowThreads(__tstate);
24275 if (PyErr_Occurred()) SWIG_fail;
24276 }
24277 resultobj = SWIG_Py_Void();
24278 return resultobj;
24279 fail:
24280 return NULL;
24281 }
24282
24283
24284 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24285 PyObject *resultobj = 0;
24286 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24287 wxWindow *arg2 = (wxWindow *) 0 ;
24288 wxDC *arg3 = 0 ;
24289 wxSize *arg4 = 0 ;
24290 int arg5 ;
24291 wxOrientation arg6 ;
24292 int arg7 = (int) 0 ;
24293 void *argp1 = 0 ;
24294 int res1 = 0 ;
24295 void *argp2 = 0 ;
24296 int res2 = 0 ;
24297 void *argp3 = 0 ;
24298 int res3 = 0 ;
24299 wxSize temp4 ;
24300 int val5 ;
24301 int ecode5 = 0 ;
24302 int val6 ;
24303 int ecode6 = 0 ;
24304 int val7 ;
24305 int ecode7 = 0 ;
24306 PyObject * obj0 = 0 ;
24307 PyObject * obj1 = 0 ;
24308 PyObject * obj2 = 0 ;
24309 PyObject * obj3 = 0 ;
24310 PyObject * obj4 = 0 ;
24311 PyObject * obj5 = 0 ;
24312 PyObject * obj6 = 0 ;
24313 char * kwnames[] = {
24314 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
24315 };
24316
24317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24319 if (!SWIG_IsOK(res1)) {
24320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24321 }
24322 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24323 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24324 if (!SWIG_IsOK(res2)) {
24325 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
24326 }
24327 arg2 = reinterpret_cast< wxWindow * >(argp2);
24328 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24329 if (!SWIG_IsOK(res3)) {
24330 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24331 }
24332 if (!argp3) {
24333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24334 }
24335 arg3 = reinterpret_cast< wxDC * >(argp3);
24336 {
24337 arg4 = &temp4;
24338 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24339 }
24340 ecode5 = SWIG_AsVal_int(obj4, &val5);
24341 if (!SWIG_IsOK(ecode5)) {
24342 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
24343 }
24344 arg5 = static_cast< int >(val5);
24345 ecode6 = SWIG_AsVal_int(obj5, &val6);
24346 if (!SWIG_IsOK(ecode6)) {
24347 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
24348 }
24349 arg6 = static_cast< wxOrientation >(val6);
24350 if (obj6) {
24351 ecode7 = SWIG_AsVal_int(obj6, &val7);
24352 if (!SWIG_IsOK(ecode7)) {
24353 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
24354 }
24355 arg7 = static_cast< int >(val7);
24356 }
24357 {
24358 PyThreadState* __tstate = wxPyBeginAllowThreads();
24359 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
24360 wxPyEndAllowThreads(__tstate);
24361 if (PyErr_Occurred()) SWIG_fail;
24362 }
24363 resultobj = SWIG_Py_Void();
24364 return resultobj;
24365 fail:
24366 return NULL;
24367 }
24368
24369
24370 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24371 PyObject *resultobj = 0;
24372 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24373 wxWindow *arg2 = (wxWindow *) 0 ;
24374 wxDC *arg3 = 0 ;
24375 wxRect *arg4 = 0 ;
24376 int arg5 = (int) 0 ;
24377 void *argp1 = 0 ;
24378 int res1 = 0 ;
24379 void *argp2 = 0 ;
24380 int res2 = 0 ;
24381 void *argp3 = 0 ;
24382 int res3 = 0 ;
24383 wxRect temp4 ;
24384 int val5 ;
24385 int ecode5 = 0 ;
24386 PyObject * obj0 = 0 ;
24387 PyObject * obj1 = 0 ;
24388 PyObject * obj2 = 0 ;
24389 PyObject * obj3 = 0 ;
24390 PyObject * obj4 = 0 ;
24391 char * kwnames[] = {
24392 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24393 };
24394
24395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24397 if (!SWIG_IsOK(res1)) {
24398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24399 }
24400 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24401 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24402 if (!SWIG_IsOK(res2)) {
24403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24404 }
24405 arg2 = reinterpret_cast< wxWindow * >(argp2);
24406 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24407 if (!SWIG_IsOK(res3)) {
24408 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24409 }
24410 if (!argp3) {
24411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24412 }
24413 arg3 = reinterpret_cast< wxDC * >(argp3);
24414 {
24415 arg4 = &temp4;
24416 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24417 }
24418 if (obj4) {
24419 ecode5 = SWIG_AsVal_int(obj4, &val5);
24420 if (!SWIG_IsOK(ecode5)) {
24421 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
24422 }
24423 arg5 = static_cast< int >(val5);
24424 }
24425 {
24426 PyThreadState* __tstate = wxPyBeginAllowThreads();
24427 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24428 wxPyEndAllowThreads(__tstate);
24429 if (PyErr_Occurred()) SWIG_fail;
24430 }
24431 resultobj = SWIG_Py_Void();
24432 return resultobj;
24433 fail:
24434 return NULL;
24435 }
24436
24437
24438 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24439 PyObject *resultobj = 0;
24440 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24441 wxWindow *arg2 = (wxWindow *) 0 ;
24442 wxDC *arg3 = 0 ;
24443 wxRect *arg4 = 0 ;
24444 int arg5 = (int) 0 ;
24445 void *argp1 = 0 ;
24446 int res1 = 0 ;
24447 void *argp2 = 0 ;
24448 int res2 = 0 ;
24449 void *argp3 = 0 ;
24450 int res3 = 0 ;
24451 wxRect temp4 ;
24452 int val5 ;
24453 int ecode5 = 0 ;
24454 PyObject * obj0 = 0 ;
24455 PyObject * obj1 = 0 ;
24456 PyObject * obj2 = 0 ;
24457 PyObject * obj3 = 0 ;
24458 PyObject * obj4 = 0 ;
24459 char * kwnames[] = {
24460 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24461 };
24462
24463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24465 if (!SWIG_IsOK(res1)) {
24466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24467 }
24468 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24469 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24470 if (!SWIG_IsOK(res2)) {
24471 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
24472 }
24473 arg2 = reinterpret_cast< wxWindow * >(argp2);
24474 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24475 if (!SWIG_IsOK(res3)) {
24476 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24477 }
24478 if (!argp3) {
24479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24480 }
24481 arg3 = reinterpret_cast< wxDC * >(argp3);
24482 {
24483 arg4 = &temp4;
24484 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24485 }
24486 if (obj4) {
24487 ecode5 = SWIG_AsVal_int(obj4, &val5);
24488 if (!SWIG_IsOK(ecode5)) {
24489 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
24490 }
24491 arg5 = static_cast< int >(val5);
24492 }
24493 {
24494 PyThreadState* __tstate = wxPyBeginAllowThreads();
24495 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
24496 wxPyEndAllowThreads(__tstate);
24497 if (PyErr_Occurred()) SWIG_fail;
24498 }
24499 resultobj = SWIG_Py_Void();
24500 return resultobj;
24501 fail:
24502 return NULL;
24503 }
24504
24505
24506 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24507 PyObject *resultobj = 0;
24508 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24509 wxWindow *arg2 = (wxWindow *) 0 ;
24510 wxDC *arg3 = 0 ;
24511 wxRect *arg4 = 0 ;
24512 int arg5 = (int) 0 ;
24513 void *argp1 = 0 ;
24514 int res1 = 0 ;
24515 void *argp2 = 0 ;
24516 int res2 = 0 ;
24517 void *argp3 = 0 ;
24518 int res3 = 0 ;
24519 wxRect temp4 ;
24520 int val5 ;
24521 int ecode5 = 0 ;
24522 PyObject * obj0 = 0 ;
24523 PyObject * obj1 = 0 ;
24524 PyObject * obj2 = 0 ;
24525 PyObject * obj3 = 0 ;
24526 PyObject * obj4 = 0 ;
24527 char * kwnames[] = {
24528 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24529 };
24530
24531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24533 if (!SWIG_IsOK(res1)) {
24534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24535 }
24536 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24537 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24538 if (!SWIG_IsOK(res2)) {
24539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
24540 }
24541 arg2 = reinterpret_cast< wxWindow * >(argp2);
24542 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24543 if (!SWIG_IsOK(res3)) {
24544 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
24545 }
24546 if (!argp3) {
24547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
24548 }
24549 arg3 = reinterpret_cast< wxDC * >(argp3);
24550 {
24551 arg4 = &temp4;
24552 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24553 }
24554 if (obj4) {
24555 ecode5 = SWIG_AsVal_int(obj4, &val5);
24556 if (!SWIG_IsOK(ecode5)) {
24557 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
24558 }
24559 arg5 = static_cast< int >(val5);
24560 }
24561 {
24562 PyThreadState* __tstate = wxPyBeginAllowThreads();
24563 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
24564 wxPyEndAllowThreads(__tstate);
24565 if (PyErr_Occurred()) SWIG_fail;
24566 }
24567 resultobj = SWIG_Py_Void();
24568 return resultobj;
24569 fail:
24570 return NULL;
24571 }
24572
24573
24574 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24575 PyObject *resultobj = 0;
24576 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24577 wxWindow *arg2 = (wxWindow *) 0 ;
24578 wxDC *arg3 = 0 ;
24579 wxRect *arg4 = 0 ;
24580 int arg5 = (int) 0 ;
24581 void *argp1 = 0 ;
24582 int res1 = 0 ;
24583 void *argp2 = 0 ;
24584 int res2 = 0 ;
24585 void *argp3 = 0 ;
24586 int res3 = 0 ;
24587 wxRect temp4 ;
24588 int val5 ;
24589 int ecode5 = 0 ;
24590 PyObject * obj0 = 0 ;
24591 PyObject * obj1 = 0 ;
24592 PyObject * obj2 = 0 ;
24593 PyObject * obj3 = 0 ;
24594 PyObject * obj4 = 0 ;
24595 char * kwnames[] = {
24596 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24597 };
24598
24599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24601 if (!SWIG_IsOK(res1)) {
24602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24603 }
24604 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24605 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24606 if (!SWIG_IsOK(res2)) {
24607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24608 }
24609 arg2 = reinterpret_cast< wxWindow * >(argp2);
24610 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24611 if (!SWIG_IsOK(res3)) {
24612 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
24613 }
24614 if (!argp3) {
24615 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
24616 }
24617 arg3 = reinterpret_cast< wxDC * >(argp3);
24618 {
24619 arg4 = &temp4;
24620 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24621 }
24622 if (obj4) {
24623 ecode5 = SWIG_AsVal_int(obj4, &val5);
24624 if (!SWIG_IsOK(ecode5)) {
24625 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
24626 }
24627 arg5 = static_cast< int >(val5);
24628 }
24629 {
24630 PyThreadState* __tstate = wxPyBeginAllowThreads();
24631 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24632 wxPyEndAllowThreads(__tstate);
24633 if (PyErr_Occurred()) SWIG_fail;
24634 }
24635 resultobj = SWIG_Py_Void();
24636 return resultobj;
24637 fail:
24638 return NULL;
24639 }
24640
24641
24642 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24643 PyObject *resultobj = 0;
24644 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24645 wxWindow *arg2 = (wxWindow *) 0 ;
24646 wxDC *arg3 = 0 ;
24647 wxRect *arg4 = 0 ;
24648 int arg5 = (int) 0 ;
24649 void *argp1 = 0 ;
24650 int res1 = 0 ;
24651 void *argp2 = 0 ;
24652 int res2 = 0 ;
24653 void *argp3 = 0 ;
24654 int res3 = 0 ;
24655 wxRect temp4 ;
24656 int val5 ;
24657 int ecode5 = 0 ;
24658 PyObject * obj0 = 0 ;
24659 PyObject * obj1 = 0 ;
24660 PyObject * obj2 = 0 ;
24661 PyObject * obj3 = 0 ;
24662 PyObject * obj4 = 0 ;
24663 char * kwnames[] = {
24664 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24665 };
24666
24667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24669 if (!SWIG_IsOK(res1)) {
24670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24671 }
24672 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24673 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24674 if (!SWIG_IsOK(res2)) {
24675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
24676 }
24677 arg2 = reinterpret_cast< wxWindow * >(argp2);
24678 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24679 if (!SWIG_IsOK(res3)) {
24680 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
24681 }
24682 if (!argp3) {
24683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
24684 }
24685 arg3 = reinterpret_cast< wxDC * >(argp3);
24686 {
24687 arg4 = &temp4;
24688 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24689 }
24690 if (obj4) {
24691 ecode5 = SWIG_AsVal_int(obj4, &val5);
24692 if (!SWIG_IsOK(ecode5)) {
24693 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
24694 }
24695 arg5 = static_cast< int >(val5);
24696 }
24697 {
24698 PyThreadState* __tstate = wxPyBeginAllowThreads();
24699 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
24700 wxPyEndAllowThreads(__tstate);
24701 if (PyErr_Occurred()) SWIG_fail;
24702 }
24703 resultobj = SWIG_Py_Void();
24704 return resultobj;
24705 fail:
24706 return NULL;
24707 }
24708
24709
24710 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24711 PyObject *resultobj = 0;
24712 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24713 wxWindow *arg2 = (wxWindow *) 0 ;
24714 SwigValueWrapper<wxSplitterRenderParams > result;
24715 void *argp1 = 0 ;
24716 int res1 = 0 ;
24717 void *argp2 = 0 ;
24718 int res2 = 0 ;
24719 PyObject * obj0 = 0 ;
24720 PyObject * obj1 = 0 ;
24721 char * kwnames[] = {
24722 (char *) "self",(char *) "win", NULL
24723 };
24724
24725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
24726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24727 if (!SWIG_IsOK(res1)) {
24728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24729 }
24730 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24731 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24732 if (!SWIG_IsOK(res2)) {
24733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
24734 }
24735 arg2 = reinterpret_cast< wxWindow * >(argp2);
24736 {
24737 PyThreadState* __tstate = wxPyBeginAllowThreads();
24738 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
24739 wxPyEndAllowThreads(__tstate);
24740 if (PyErr_Occurred()) SWIG_fail;
24741 }
24742 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
24743 return resultobj;
24744 fail:
24745 return NULL;
24746 }
24747
24748
24749 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24750 PyObject *resultobj = 0;
24751 wxRendererNative *result = 0 ;
24752
24753 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
24754 {
24755 if (!wxPyCheckForApp()) SWIG_fail;
24756 PyThreadState* __tstate = wxPyBeginAllowThreads();
24757 {
24758 wxRendererNative &_result_ref = wxRendererNative::Get();
24759 result = (wxRendererNative *) &_result_ref;
24760 }
24761 wxPyEndAllowThreads(__tstate);
24762 if (PyErr_Occurred()) SWIG_fail;
24763 }
24764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24765 return resultobj;
24766 fail:
24767 return NULL;
24768 }
24769
24770
24771 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24772 PyObject *resultobj = 0;
24773 wxRendererNative *result = 0 ;
24774
24775 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
24776 {
24777 if (!wxPyCheckForApp()) SWIG_fail;
24778 PyThreadState* __tstate = wxPyBeginAllowThreads();
24779 {
24780 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
24781 result = (wxRendererNative *) &_result_ref;
24782 }
24783 wxPyEndAllowThreads(__tstate);
24784 if (PyErr_Occurred()) SWIG_fail;
24785 }
24786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24787 return resultobj;
24788 fail:
24789 return NULL;
24790 }
24791
24792
24793 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24794 PyObject *resultobj = 0;
24795 wxRendererNative *result = 0 ;
24796
24797 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
24798 {
24799 if (!wxPyCheckForApp()) SWIG_fail;
24800 PyThreadState* __tstate = wxPyBeginAllowThreads();
24801 {
24802 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
24803 result = (wxRendererNative *) &_result_ref;
24804 }
24805 wxPyEndAllowThreads(__tstate);
24806 if (PyErr_Occurred()) SWIG_fail;
24807 }
24808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24809 return resultobj;
24810 fail:
24811 return NULL;
24812 }
24813
24814
24815 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24816 PyObject *resultobj = 0;
24817 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24818 wxRendererNative *result = 0 ;
24819 void *argp1 = 0 ;
24820 int res1 = 0 ;
24821 PyObject * obj0 = 0 ;
24822 char * kwnames[] = {
24823 (char *) "renderer", NULL
24824 };
24825
24826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
24827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24828 if (!SWIG_IsOK(res1)) {
24829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24830 }
24831 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24832 {
24833 if (!wxPyCheckForApp()) SWIG_fail;
24834 PyThreadState* __tstate = wxPyBeginAllowThreads();
24835 result = (wxRendererNative *)wxRendererNative::Set(arg1);
24836 wxPyEndAllowThreads(__tstate);
24837 if (PyErr_Occurred()) SWIG_fail;
24838 }
24839 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24840 return resultobj;
24841 fail:
24842 return NULL;
24843 }
24844
24845
24846 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24847 PyObject *resultobj = 0;
24848 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24849 SwigValueWrapper<wxRendererVersion > result;
24850 void *argp1 = 0 ;
24851 int res1 = 0 ;
24852 PyObject *swig_obj[1] ;
24853
24854 if (!args) SWIG_fail;
24855 swig_obj[0] = args;
24856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24857 if (!SWIG_IsOK(res1)) {
24858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
24859 }
24860 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24861 {
24862 PyThreadState* __tstate = wxPyBeginAllowThreads();
24863 result = ((wxRendererNative const *)arg1)->GetVersion();
24864 wxPyEndAllowThreads(__tstate);
24865 if (PyErr_Occurred()) SWIG_fail;
24866 }
24867 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
24868 return resultobj;
24869 fail:
24870 return NULL;
24871 }
24872
24873
24874 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24875 PyObject *obj;
24876 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24877 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
24878 return SWIG_Py_Void();
24879 }
24880
24881 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24882 PyObject *resultobj = 0;
24883 wxPseudoDC *result = 0 ;
24884
24885 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
24886 {
24887 PyThreadState* __tstate = wxPyBeginAllowThreads();
24888 result = (wxPseudoDC *)new wxPseudoDC();
24889 wxPyEndAllowThreads(__tstate);
24890 if (PyErr_Occurred()) SWIG_fail;
24891 }
24892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
24893 return resultobj;
24894 fail:
24895 return NULL;
24896 }
24897
24898
24899 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24900 PyObject *resultobj = 0;
24901 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
24902 void *argp1 = 0 ;
24903 int res1 = 0 ;
24904 PyObject *swig_obj[1] ;
24905
24906 if (!args) SWIG_fail;
24907 swig_obj[0] = args;
24908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
24909 if (!SWIG_IsOK(res1)) {
24910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
24911 }
24912 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
24913 {
24914 PyThreadState* __tstate = wxPyBeginAllowThreads();
24915 (arg1)->BeginDrawing();
24916 wxPyEndAllowThreads(__tstate);
24917 if (PyErr_Occurred()) SWIG_fail;
24918 }
24919 resultobj = SWIG_Py_Void();
24920 return resultobj;
24921 fail:
24922 return NULL;
24923 }
24924
24925
24926 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24927 PyObject *resultobj = 0;
24928 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
24929 void *argp1 = 0 ;
24930 int res1 = 0 ;
24931 PyObject *swig_obj[1] ;
24932
24933 if (!args) SWIG_fail;
24934 swig_obj[0] = args;
24935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
24936 if (!SWIG_IsOK(res1)) {
24937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
24938 }
24939 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
24940 {
24941 PyThreadState* __tstate = wxPyBeginAllowThreads();
24942 (arg1)->EndDrawing();
24943 wxPyEndAllowThreads(__tstate);
24944 if (PyErr_Occurred()) SWIG_fail;
24945 }
24946 resultobj = SWIG_Py_Void();
24947 return resultobj;
24948 fail:
24949 return NULL;
24950 }
24951
24952
24953 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24954 PyObject *resultobj = 0;
24955 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
24956 void *argp1 = 0 ;
24957 int res1 = 0 ;
24958 PyObject *swig_obj[1] ;
24959
24960 if (!args) SWIG_fail;
24961 swig_obj[0] = args;
24962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
24963 if (!SWIG_IsOK(res1)) {
24964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
24965 }
24966 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
24967 {
24968 PyThreadState* __tstate = wxPyBeginAllowThreads();
24969 delete arg1;
24970
24971 wxPyEndAllowThreads(__tstate);
24972 if (PyErr_Occurred()) SWIG_fail;
24973 }
24974 resultobj = SWIG_Py_Void();
24975 return resultobj;
24976 fail:
24977 return NULL;
24978 }
24979
24980
24981 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24982 PyObject *resultobj = 0;
24983 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
24984 void *argp1 = 0 ;
24985 int res1 = 0 ;
24986 PyObject *swig_obj[1] ;
24987
24988 if (!args) SWIG_fail;
24989 swig_obj[0] = args;
24990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
24991 if (!SWIG_IsOK(res1)) {
24992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
24993 }
24994 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
24995 {
24996 PyThreadState* __tstate = wxPyBeginAllowThreads();
24997 (arg1)->RemoveAll();
24998 wxPyEndAllowThreads(__tstate);
24999 if (PyErr_Occurred()) SWIG_fail;
25000 }
25001 resultobj = SWIG_Py_Void();
25002 return resultobj;
25003 fail:
25004 return NULL;
25005 }
25006
25007
25008 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25009 PyObject *resultobj = 0;
25010 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25011 int result;
25012 void *argp1 = 0 ;
25013 int res1 = 0 ;
25014 PyObject *swig_obj[1] ;
25015
25016 if (!args) SWIG_fail;
25017 swig_obj[0] = args;
25018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25019 if (!SWIG_IsOK(res1)) {
25020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25021 }
25022 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25023 {
25024 PyThreadState* __tstate = wxPyBeginAllowThreads();
25025 result = (int)(arg1)->GetLen();
25026 wxPyEndAllowThreads(__tstate);
25027 if (PyErr_Occurred()) SWIG_fail;
25028 }
25029 resultobj = SWIG_From_int(static_cast< int >(result));
25030 return resultobj;
25031 fail:
25032 return NULL;
25033 }
25034
25035
25036 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25037 PyObject *resultobj = 0;
25038 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25039 int arg2 ;
25040 void *argp1 = 0 ;
25041 int res1 = 0 ;
25042 int val2 ;
25043 int ecode2 = 0 ;
25044 PyObject * obj0 = 0 ;
25045 PyObject * obj1 = 0 ;
25046 char * kwnames[] = {
25047 (char *) "self",(char *) "id", NULL
25048 };
25049
25050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
25051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25052 if (!SWIG_IsOK(res1)) {
25053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25054 }
25055 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25056 ecode2 = SWIG_AsVal_int(obj1, &val2);
25057 if (!SWIG_IsOK(ecode2)) {
25058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
25059 }
25060 arg2 = static_cast< int >(val2);
25061 {
25062 PyThreadState* __tstate = wxPyBeginAllowThreads();
25063 (arg1)->SetId(arg2);
25064 wxPyEndAllowThreads(__tstate);
25065 if (PyErr_Occurred()) SWIG_fail;
25066 }
25067 resultobj = SWIG_Py_Void();
25068 return resultobj;
25069 fail:
25070 return NULL;
25071 }
25072
25073
25074 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25075 PyObject *resultobj = 0;
25076 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25077 int arg2 ;
25078 void *argp1 = 0 ;
25079 int res1 = 0 ;
25080 int val2 ;
25081 int ecode2 = 0 ;
25082 PyObject * obj0 = 0 ;
25083 PyObject * obj1 = 0 ;
25084 char * kwnames[] = {
25085 (char *) "self",(char *) "id", NULL
25086 };
25087
25088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
25089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25090 if (!SWIG_IsOK(res1)) {
25091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25092 }
25093 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25094 ecode2 = SWIG_AsVal_int(obj1, &val2);
25095 if (!SWIG_IsOK(ecode2)) {
25096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
25097 }
25098 arg2 = static_cast< int >(val2);
25099 {
25100 PyThreadState* __tstate = wxPyBeginAllowThreads();
25101 (arg1)->ClearId(arg2);
25102 wxPyEndAllowThreads(__tstate);
25103 if (PyErr_Occurred()) SWIG_fail;
25104 }
25105 resultobj = SWIG_Py_Void();
25106 return resultobj;
25107 fail:
25108 return NULL;
25109 }
25110
25111
25112 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25113 PyObject *resultobj = 0;
25114 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25115 int arg2 ;
25116 void *argp1 = 0 ;
25117 int res1 = 0 ;
25118 int val2 ;
25119 int ecode2 = 0 ;
25120 PyObject * obj0 = 0 ;
25121 PyObject * obj1 = 0 ;
25122 char * kwnames[] = {
25123 (char *) "self",(char *) "id", NULL
25124 };
25125
25126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
25127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25128 if (!SWIG_IsOK(res1)) {
25129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25130 }
25131 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25132 ecode2 = SWIG_AsVal_int(obj1, &val2);
25133 if (!SWIG_IsOK(ecode2)) {
25134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
25135 }
25136 arg2 = static_cast< int >(val2);
25137 {
25138 PyThreadState* __tstate = wxPyBeginAllowThreads();
25139 (arg1)->RemoveId(arg2);
25140 wxPyEndAllowThreads(__tstate);
25141 if (PyErr_Occurred()) SWIG_fail;
25142 }
25143 resultobj = SWIG_Py_Void();
25144 return resultobj;
25145 fail:
25146 return NULL;
25147 }
25148
25149
25150 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25151 PyObject *resultobj = 0;
25152 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25153 int arg2 ;
25154 int arg3 ;
25155 int arg4 ;
25156 void *argp1 = 0 ;
25157 int res1 = 0 ;
25158 int val2 ;
25159 int ecode2 = 0 ;
25160 int val3 ;
25161 int ecode3 = 0 ;
25162 int val4 ;
25163 int ecode4 = 0 ;
25164 PyObject * obj0 = 0 ;
25165 PyObject * obj1 = 0 ;
25166 PyObject * obj2 = 0 ;
25167 PyObject * obj3 = 0 ;
25168 char * kwnames[] = {
25169 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
25170 };
25171
25172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25174 if (!SWIG_IsOK(res1)) {
25175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25176 }
25177 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25178 ecode2 = SWIG_AsVal_int(obj1, &val2);
25179 if (!SWIG_IsOK(ecode2)) {
25180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
25181 }
25182 arg2 = static_cast< int >(val2);
25183 ecode3 = SWIG_AsVal_int(obj2, &val3);
25184 if (!SWIG_IsOK(ecode3)) {
25185 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
25186 }
25187 arg3 = static_cast< int >(val3);
25188 ecode4 = SWIG_AsVal_int(obj3, &val4);
25189 if (!SWIG_IsOK(ecode4)) {
25190 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
25191 }
25192 arg4 = static_cast< int >(val4);
25193 {
25194 PyThreadState* __tstate = wxPyBeginAllowThreads();
25195 (arg1)->TranslateId(arg2,arg3,arg4);
25196 wxPyEndAllowThreads(__tstate);
25197 if (PyErr_Occurred()) SWIG_fail;
25198 }
25199 resultobj = SWIG_Py_Void();
25200 return resultobj;
25201 fail:
25202 return NULL;
25203 }
25204
25205
25206 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25207 PyObject *resultobj = 0;
25208 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25209 int arg2 ;
25210 wxDC *arg3 = (wxDC *) 0 ;
25211 void *argp1 = 0 ;
25212 int res1 = 0 ;
25213 int val2 ;
25214 int ecode2 = 0 ;
25215 void *argp3 = 0 ;
25216 int res3 = 0 ;
25217 PyObject * obj0 = 0 ;
25218 PyObject * obj1 = 0 ;
25219 PyObject * obj2 = 0 ;
25220 char * kwnames[] = {
25221 (char *) "self",(char *) "id",(char *) "dc", NULL
25222 };
25223
25224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25226 if (!SWIG_IsOK(res1)) {
25227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25228 }
25229 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25230 ecode2 = SWIG_AsVal_int(obj1, &val2);
25231 if (!SWIG_IsOK(ecode2)) {
25232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
25233 }
25234 arg2 = static_cast< int >(val2);
25235 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
25236 if (!SWIG_IsOK(res3)) {
25237 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
25238 }
25239 arg3 = reinterpret_cast< wxDC * >(argp3);
25240 {
25241 PyThreadState* __tstate = wxPyBeginAllowThreads();
25242 (arg1)->DrawIdToDC(arg2,arg3);
25243 wxPyEndAllowThreads(__tstate);
25244 if (PyErr_Occurred()) SWIG_fail;
25245 }
25246 resultobj = SWIG_Py_Void();
25247 return resultobj;
25248 fail:
25249 return NULL;
25250 }
25251
25252
25253 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25254 PyObject *resultobj = 0;
25255 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25256 int arg2 ;
25257 wxRect *arg3 = 0 ;
25258 void *argp1 = 0 ;
25259 int res1 = 0 ;
25260 int val2 ;
25261 int ecode2 = 0 ;
25262 wxRect temp3 ;
25263 PyObject * obj0 = 0 ;
25264 PyObject * obj1 = 0 ;
25265 PyObject * obj2 = 0 ;
25266 char * kwnames[] = {
25267 (char *) "self",(char *) "id",(char *) "rect", NULL
25268 };
25269
25270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25272 if (!SWIG_IsOK(res1)) {
25273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25274 }
25275 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25276 ecode2 = SWIG_AsVal_int(obj1, &val2);
25277 if (!SWIG_IsOK(ecode2)) {
25278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
25279 }
25280 arg2 = static_cast< int >(val2);
25281 {
25282 arg3 = &temp3;
25283 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
25284 }
25285 {
25286 PyThreadState* __tstate = wxPyBeginAllowThreads();
25287 (arg1)->SetIdBounds(arg2,*arg3);
25288 wxPyEndAllowThreads(__tstate);
25289 if (PyErr_Occurred()) SWIG_fail;
25290 }
25291 resultobj = SWIG_Py_Void();
25292 return resultobj;
25293 fail:
25294 return NULL;
25295 }
25296
25297
25298 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25299 PyObject *resultobj = 0;
25300 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25301 int arg2 ;
25302 wxRect result;
25303 void *argp1 = 0 ;
25304 int res1 = 0 ;
25305 int val2 ;
25306 int ecode2 = 0 ;
25307 PyObject * obj0 = 0 ;
25308 PyObject * obj1 = 0 ;
25309 char * kwnames[] = {
25310 (char *) "self",(char *) "id", NULL
25311 };
25312
25313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
25314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25315 if (!SWIG_IsOK(res1)) {
25316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25317 }
25318 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25319 ecode2 = SWIG_AsVal_int(obj1, &val2);
25320 if (!SWIG_IsOK(ecode2)) {
25321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
25322 }
25323 arg2 = static_cast< int >(val2);
25324 {
25325 PyThreadState* __tstate = wxPyBeginAllowThreads();
25326 result = wxPseudoDC_GetIdBounds(arg1,arg2);
25327 wxPyEndAllowThreads(__tstate);
25328 if (PyErr_Occurred()) SWIG_fail;
25329 }
25330 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
25331 return resultobj;
25332 fail:
25333 return NULL;
25334 }
25335
25336
25337 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25338 PyObject *resultobj = 0;
25339 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25340 wxDC *arg2 = (wxDC *) 0 ;
25341 wxRect *arg3 = 0 ;
25342 void *argp1 = 0 ;
25343 int res1 = 0 ;
25344 void *argp2 = 0 ;
25345 int res2 = 0 ;
25346 wxRect temp3 ;
25347 PyObject * obj0 = 0 ;
25348 PyObject * obj1 = 0 ;
25349 PyObject * obj2 = 0 ;
25350 char * kwnames[] = {
25351 (char *) "self",(char *) "dc",(char *) "rect", NULL
25352 };
25353
25354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25356 if (!SWIG_IsOK(res1)) {
25357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25358 }
25359 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25360 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
25361 if (!SWIG_IsOK(res2)) {
25362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
25363 }
25364 arg2 = reinterpret_cast< wxDC * >(argp2);
25365 {
25366 arg3 = &temp3;
25367 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
25368 }
25369 {
25370 PyThreadState* __tstate = wxPyBeginAllowThreads();
25371 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
25372 wxPyEndAllowThreads(__tstate);
25373 if (PyErr_Occurred()) SWIG_fail;
25374 }
25375 resultobj = SWIG_Py_Void();
25376 return resultobj;
25377 fail:
25378 return NULL;
25379 }
25380
25381
25382 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25383 PyObject *resultobj = 0;
25384 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25385 wxDC *arg2 = (wxDC *) 0 ;
25386 wxRegion *arg3 = 0 ;
25387 void *argp1 = 0 ;
25388 int res1 = 0 ;
25389 void *argp2 = 0 ;
25390 int res2 = 0 ;
25391 void *argp3 = 0 ;
25392 int res3 = 0 ;
25393 PyObject * obj0 = 0 ;
25394 PyObject * obj1 = 0 ;
25395 PyObject * obj2 = 0 ;
25396 char * kwnames[] = {
25397 (char *) "self",(char *) "dc",(char *) "region", NULL
25398 };
25399
25400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25402 if (!SWIG_IsOK(res1)) {
25403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25404 }
25405 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25406 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
25407 if (!SWIG_IsOK(res2)) {
25408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
25409 }
25410 arg2 = reinterpret_cast< wxDC * >(argp2);
25411 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
25412 if (!SWIG_IsOK(res3)) {
25413 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
25414 }
25415 if (!argp3) {
25416 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
25417 }
25418 arg3 = reinterpret_cast< wxRegion * >(argp3);
25419 {
25420 PyThreadState* __tstate = wxPyBeginAllowThreads();
25421 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
25422 wxPyEndAllowThreads(__tstate);
25423 if (PyErr_Occurred()) SWIG_fail;
25424 }
25425 resultobj = SWIG_Py_Void();
25426 return resultobj;
25427 fail:
25428 return NULL;
25429 }
25430
25431
25432 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25433 PyObject *resultobj = 0;
25434 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25435 wxDC *arg2 = (wxDC *) 0 ;
25436 void *argp1 = 0 ;
25437 int res1 = 0 ;
25438 void *argp2 = 0 ;
25439 int res2 = 0 ;
25440 PyObject * obj0 = 0 ;
25441 PyObject * obj1 = 0 ;
25442 char * kwnames[] = {
25443 (char *) "self",(char *) "dc", NULL
25444 };
25445
25446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
25447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25448 if (!SWIG_IsOK(res1)) {
25449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25450 }
25451 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25452 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
25453 if (!SWIG_IsOK(res2)) {
25454 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
25455 }
25456 arg2 = reinterpret_cast< wxDC * >(argp2);
25457 {
25458 PyThreadState* __tstate = wxPyBeginAllowThreads();
25459 (arg1)->DrawToDC(arg2);
25460 wxPyEndAllowThreads(__tstate);
25461 if (PyErr_Occurred()) SWIG_fail;
25462 }
25463 resultobj = SWIG_Py_Void();
25464 return resultobj;
25465 fail:
25466 return NULL;
25467 }
25468
25469
25470 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25471 PyObject *resultobj = 0;
25472 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25473 int arg2 ;
25474 int arg3 ;
25475 wxColour *arg4 = 0 ;
25476 int arg5 = (int) wxFLOOD_SURFACE ;
25477 void *argp1 = 0 ;
25478 int res1 = 0 ;
25479 int val2 ;
25480 int ecode2 = 0 ;
25481 int val3 ;
25482 int ecode3 = 0 ;
25483 wxColour temp4 ;
25484 int val5 ;
25485 int ecode5 = 0 ;
25486 PyObject * obj0 = 0 ;
25487 PyObject * obj1 = 0 ;
25488 PyObject * obj2 = 0 ;
25489 PyObject * obj3 = 0 ;
25490 PyObject * obj4 = 0 ;
25491 char * kwnames[] = {
25492 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
25493 };
25494
25495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25497 if (!SWIG_IsOK(res1)) {
25498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25499 }
25500 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25501 ecode2 = SWIG_AsVal_int(obj1, &val2);
25502 if (!SWIG_IsOK(ecode2)) {
25503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
25504 }
25505 arg2 = static_cast< int >(val2);
25506 ecode3 = SWIG_AsVal_int(obj2, &val3);
25507 if (!SWIG_IsOK(ecode3)) {
25508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
25509 }
25510 arg3 = static_cast< int >(val3);
25511 {
25512 arg4 = &temp4;
25513 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
25514 }
25515 if (obj4) {
25516 ecode5 = SWIG_AsVal_int(obj4, &val5);
25517 if (!SWIG_IsOK(ecode5)) {
25518 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
25519 }
25520 arg5 = static_cast< int >(val5);
25521 }
25522 {
25523 PyThreadState* __tstate = wxPyBeginAllowThreads();
25524 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
25525 wxPyEndAllowThreads(__tstate);
25526 if (PyErr_Occurred()) SWIG_fail;
25527 }
25528 resultobj = SWIG_Py_Void();
25529 return resultobj;
25530 fail:
25531 return NULL;
25532 }
25533
25534
25535 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25536 PyObject *resultobj = 0;
25537 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25538 wxPoint *arg2 = 0 ;
25539 wxColour *arg3 = 0 ;
25540 int arg4 = (int) wxFLOOD_SURFACE ;
25541 void *argp1 = 0 ;
25542 int res1 = 0 ;
25543 wxPoint temp2 ;
25544 wxColour temp3 ;
25545 int val4 ;
25546 int ecode4 = 0 ;
25547 PyObject * obj0 = 0 ;
25548 PyObject * obj1 = 0 ;
25549 PyObject * obj2 = 0 ;
25550 PyObject * obj3 = 0 ;
25551 char * kwnames[] = {
25552 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
25553 };
25554
25555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25557 if (!SWIG_IsOK(res1)) {
25558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25559 }
25560 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25561 {
25562 arg2 = &temp2;
25563 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25564 }
25565 {
25566 arg3 = &temp3;
25567 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25568 }
25569 if (obj3) {
25570 ecode4 = SWIG_AsVal_int(obj3, &val4);
25571 if (!SWIG_IsOK(ecode4)) {
25572 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
25573 }
25574 arg4 = static_cast< int >(val4);
25575 }
25576 {
25577 PyThreadState* __tstate = wxPyBeginAllowThreads();
25578 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
25579 wxPyEndAllowThreads(__tstate);
25580 if (PyErr_Occurred()) SWIG_fail;
25581 }
25582 resultobj = SWIG_Py_Void();
25583 return resultobj;
25584 fail:
25585 return NULL;
25586 }
25587
25588
25589 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25590 PyObject *resultobj = 0;
25591 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25592 int arg2 ;
25593 int arg3 ;
25594 int arg4 ;
25595 int arg5 ;
25596 void *argp1 = 0 ;
25597 int res1 = 0 ;
25598 int val2 ;
25599 int ecode2 = 0 ;
25600 int val3 ;
25601 int ecode3 = 0 ;
25602 int val4 ;
25603 int ecode4 = 0 ;
25604 int val5 ;
25605 int ecode5 = 0 ;
25606 PyObject * obj0 = 0 ;
25607 PyObject * obj1 = 0 ;
25608 PyObject * obj2 = 0 ;
25609 PyObject * obj3 = 0 ;
25610 PyObject * obj4 = 0 ;
25611 char * kwnames[] = {
25612 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
25613 };
25614
25615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25617 if (!SWIG_IsOK(res1)) {
25618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25619 }
25620 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25621 ecode2 = SWIG_AsVal_int(obj1, &val2);
25622 if (!SWIG_IsOK(ecode2)) {
25623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
25624 }
25625 arg2 = static_cast< int >(val2);
25626 ecode3 = SWIG_AsVal_int(obj2, &val3);
25627 if (!SWIG_IsOK(ecode3)) {
25628 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
25629 }
25630 arg3 = static_cast< int >(val3);
25631 ecode4 = SWIG_AsVal_int(obj3, &val4);
25632 if (!SWIG_IsOK(ecode4)) {
25633 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
25634 }
25635 arg4 = static_cast< int >(val4);
25636 ecode5 = SWIG_AsVal_int(obj4, &val5);
25637 if (!SWIG_IsOK(ecode5)) {
25638 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
25639 }
25640 arg5 = static_cast< int >(val5);
25641 {
25642 PyThreadState* __tstate = wxPyBeginAllowThreads();
25643 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
25644 wxPyEndAllowThreads(__tstate);
25645 if (PyErr_Occurred()) SWIG_fail;
25646 }
25647 resultobj = SWIG_Py_Void();
25648 return resultobj;
25649 fail:
25650 return NULL;
25651 }
25652
25653
25654 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25655 PyObject *resultobj = 0;
25656 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25657 wxPoint *arg2 = 0 ;
25658 wxPoint *arg3 = 0 ;
25659 void *argp1 = 0 ;
25660 int res1 = 0 ;
25661 wxPoint temp2 ;
25662 wxPoint temp3 ;
25663 PyObject * obj0 = 0 ;
25664 PyObject * obj1 = 0 ;
25665 PyObject * obj2 = 0 ;
25666 char * kwnames[] = {
25667 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
25668 };
25669
25670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25672 if (!SWIG_IsOK(res1)) {
25673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25674 }
25675 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25676 {
25677 arg2 = &temp2;
25678 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25679 }
25680 {
25681 arg3 = &temp3;
25682 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25683 }
25684 {
25685 PyThreadState* __tstate = wxPyBeginAllowThreads();
25686 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
25687 wxPyEndAllowThreads(__tstate);
25688 if (PyErr_Occurred()) SWIG_fail;
25689 }
25690 resultobj = SWIG_Py_Void();
25691 return resultobj;
25692 fail:
25693 return NULL;
25694 }
25695
25696
25697 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25698 PyObject *resultobj = 0;
25699 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25700 int arg2 ;
25701 int arg3 ;
25702 void *argp1 = 0 ;
25703 int res1 = 0 ;
25704 int val2 ;
25705 int ecode2 = 0 ;
25706 int val3 ;
25707 int ecode3 = 0 ;
25708 PyObject * obj0 = 0 ;
25709 PyObject * obj1 = 0 ;
25710 PyObject * obj2 = 0 ;
25711 char * kwnames[] = {
25712 (char *) "self",(char *) "x",(char *) "y", NULL
25713 };
25714
25715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25717 if (!SWIG_IsOK(res1)) {
25718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25719 }
25720 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25721 ecode2 = SWIG_AsVal_int(obj1, &val2);
25722 if (!SWIG_IsOK(ecode2)) {
25723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
25724 }
25725 arg2 = static_cast< int >(val2);
25726 ecode3 = SWIG_AsVal_int(obj2, &val3);
25727 if (!SWIG_IsOK(ecode3)) {
25728 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
25729 }
25730 arg3 = static_cast< int >(val3);
25731 {
25732 PyThreadState* __tstate = wxPyBeginAllowThreads();
25733 (arg1)->CrossHair(arg2,arg3);
25734 wxPyEndAllowThreads(__tstate);
25735 if (PyErr_Occurred()) SWIG_fail;
25736 }
25737 resultobj = SWIG_Py_Void();
25738 return resultobj;
25739 fail:
25740 return NULL;
25741 }
25742
25743
25744 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25745 PyObject *resultobj = 0;
25746 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25747 wxPoint *arg2 = 0 ;
25748 void *argp1 = 0 ;
25749 int res1 = 0 ;
25750 wxPoint temp2 ;
25751 PyObject * obj0 = 0 ;
25752 PyObject * obj1 = 0 ;
25753 char * kwnames[] = {
25754 (char *) "self",(char *) "pt", NULL
25755 };
25756
25757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
25758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25759 if (!SWIG_IsOK(res1)) {
25760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25761 }
25762 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25763 {
25764 arg2 = &temp2;
25765 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25766 }
25767 {
25768 PyThreadState* __tstate = wxPyBeginAllowThreads();
25769 (arg1)->CrossHair((wxPoint const &)*arg2);
25770 wxPyEndAllowThreads(__tstate);
25771 if (PyErr_Occurred()) SWIG_fail;
25772 }
25773 resultobj = SWIG_Py_Void();
25774 return resultobj;
25775 fail:
25776 return NULL;
25777 }
25778
25779
25780 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25781 PyObject *resultobj = 0;
25782 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25783 int arg2 ;
25784 int arg3 ;
25785 int arg4 ;
25786 int arg5 ;
25787 int arg6 ;
25788 int arg7 ;
25789 void *argp1 = 0 ;
25790 int res1 = 0 ;
25791 int val2 ;
25792 int ecode2 = 0 ;
25793 int val3 ;
25794 int ecode3 = 0 ;
25795 int val4 ;
25796 int ecode4 = 0 ;
25797 int val5 ;
25798 int ecode5 = 0 ;
25799 int val6 ;
25800 int ecode6 = 0 ;
25801 int val7 ;
25802 int ecode7 = 0 ;
25803 PyObject * obj0 = 0 ;
25804 PyObject * obj1 = 0 ;
25805 PyObject * obj2 = 0 ;
25806 PyObject * obj3 = 0 ;
25807 PyObject * obj4 = 0 ;
25808 PyObject * obj5 = 0 ;
25809 PyObject * obj6 = 0 ;
25810 char * kwnames[] = {
25811 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
25812 };
25813
25814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25816 if (!SWIG_IsOK(res1)) {
25817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25818 }
25819 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25820 ecode2 = SWIG_AsVal_int(obj1, &val2);
25821 if (!SWIG_IsOK(ecode2)) {
25822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
25823 }
25824 arg2 = static_cast< int >(val2);
25825 ecode3 = SWIG_AsVal_int(obj2, &val3);
25826 if (!SWIG_IsOK(ecode3)) {
25827 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
25828 }
25829 arg3 = static_cast< int >(val3);
25830 ecode4 = SWIG_AsVal_int(obj3, &val4);
25831 if (!SWIG_IsOK(ecode4)) {
25832 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
25833 }
25834 arg4 = static_cast< int >(val4);
25835 ecode5 = SWIG_AsVal_int(obj4, &val5);
25836 if (!SWIG_IsOK(ecode5)) {
25837 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
25838 }
25839 arg5 = static_cast< int >(val5);
25840 ecode6 = SWIG_AsVal_int(obj5, &val6);
25841 if (!SWIG_IsOK(ecode6)) {
25842 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
25843 }
25844 arg6 = static_cast< int >(val6);
25845 ecode7 = SWIG_AsVal_int(obj6, &val7);
25846 if (!SWIG_IsOK(ecode7)) {
25847 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
25848 }
25849 arg7 = static_cast< int >(val7);
25850 {
25851 PyThreadState* __tstate = wxPyBeginAllowThreads();
25852 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
25853 wxPyEndAllowThreads(__tstate);
25854 if (PyErr_Occurred()) SWIG_fail;
25855 }
25856 resultobj = SWIG_Py_Void();
25857 return resultobj;
25858 fail:
25859 return NULL;
25860 }
25861
25862
25863 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25864 PyObject *resultobj = 0;
25865 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25866 wxPoint *arg2 = 0 ;
25867 wxPoint *arg3 = 0 ;
25868 wxPoint *arg4 = 0 ;
25869 void *argp1 = 0 ;
25870 int res1 = 0 ;
25871 wxPoint temp2 ;
25872 wxPoint temp3 ;
25873 wxPoint temp4 ;
25874 PyObject * obj0 = 0 ;
25875 PyObject * obj1 = 0 ;
25876 PyObject * obj2 = 0 ;
25877 PyObject * obj3 = 0 ;
25878 char * kwnames[] = {
25879 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
25880 };
25881
25882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25884 if (!SWIG_IsOK(res1)) {
25885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25886 }
25887 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25888 {
25889 arg2 = &temp2;
25890 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25891 }
25892 {
25893 arg3 = &temp3;
25894 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25895 }
25896 {
25897 arg4 = &temp4;
25898 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25899 }
25900 {
25901 PyThreadState* __tstate = wxPyBeginAllowThreads();
25902 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
25903 wxPyEndAllowThreads(__tstate);
25904 if (PyErr_Occurred()) SWIG_fail;
25905 }
25906 resultobj = SWIG_Py_Void();
25907 return resultobj;
25908 fail:
25909 return NULL;
25910 }
25911
25912
25913 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25914 PyObject *resultobj = 0;
25915 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25916 int arg2 ;
25917 int arg3 ;
25918 int arg4 ;
25919 int arg5 ;
25920 void *argp1 = 0 ;
25921 int res1 = 0 ;
25922 int val2 ;
25923 int ecode2 = 0 ;
25924 int val3 ;
25925 int ecode3 = 0 ;
25926 int val4 ;
25927 int ecode4 = 0 ;
25928 int val5 ;
25929 int ecode5 = 0 ;
25930 PyObject * obj0 = 0 ;
25931 PyObject * obj1 = 0 ;
25932 PyObject * obj2 = 0 ;
25933 PyObject * obj3 = 0 ;
25934 PyObject * obj4 = 0 ;
25935 char * kwnames[] = {
25936 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
25937 };
25938
25939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25941 if (!SWIG_IsOK(res1)) {
25942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25943 }
25944 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25945 ecode2 = SWIG_AsVal_int(obj1, &val2);
25946 if (!SWIG_IsOK(ecode2)) {
25947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
25948 }
25949 arg2 = static_cast< int >(val2);
25950 ecode3 = SWIG_AsVal_int(obj2, &val3);
25951 if (!SWIG_IsOK(ecode3)) {
25952 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
25953 }
25954 arg3 = static_cast< int >(val3);
25955 ecode4 = SWIG_AsVal_int(obj3, &val4);
25956 if (!SWIG_IsOK(ecode4)) {
25957 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
25958 }
25959 arg4 = static_cast< int >(val4);
25960 ecode5 = SWIG_AsVal_int(obj4, &val5);
25961 if (!SWIG_IsOK(ecode5)) {
25962 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
25963 }
25964 arg5 = static_cast< int >(val5);
25965 {
25966 PyThreadState* __tstate = wxPyBeginAllowThreads();
25967 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
25968 wxPyEndAllowThreads(__tstate);
25969 if (PyErr_Occurred()) SWIG_fail;
25970 }
25971 resultobj = SWIG_Py_Void();
25972 return resultobj;
25973 fail:
25974 return NULL;
25975 }
25976
25977
25978 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25979 PyObject *resultobj = 0;
25980 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25981 wxRect *arg2 = 0 ;
25982 void *argp1 = 0 ;
25983 int res1 = 0 ;
25984 wxRect temp2 ;
25985 PyObject * obj0 = 0 ;
25986 PyObject * obj1 = 0 ;
25987 char * kwnames[] = {
25988 (char *) "self",(char *) "rect", NULL
25989 };
25990
25991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
25992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25993 if (!SWIG_IsOK(res1)) {
25994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25995 }
25996 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25997 {
25998 arg2 = &temp2;
25999 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26000 }
26001 {
26002 PyThreadState* __tstate = wxPyBeginAllowThreads();
26003 (arg1)->DrawCheckMark((wxRect const &)*arg2);
26004 wxPyEndAllowThreads(__tstate);
26005 if (PyErr_Occurred()) SWIG_fail;
26006 }
26007 resultobj = SWIG_Py_Void();
26008 return resultobj;
26009 fail:
26010 return NULL;
26011 }
26012
26013
26014 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26015 PyObject *resultobj = 0;
26016 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26017 int arg2 ;
26018 int arg3 ;
26019 int arg4 ;
26020 int arg5 ;
26021 double arg6 ;
26022 double arg7 ;
26023 void *argp1 = 0 ;
26024 int res1 = 0 ;
26025 int val2 ;
26026 int ecode2 = 0 ;
26027 int val3 ;
26028 int ecode3 = 0 ;
26029 int val4 ;
26030 int ecode4 = 0 ;
26031 int val5 ;
26032 int ecode5 = 0 ;
26033 double val6 ;
26034 int ecode6 = 0 ;
26035 double val7 ;
26036 int ecode7 = 0 ;
26037 PyObject * obj0 = 0 ;
26038 PyObject * obj1 = 0 ;
26039 PyObject * obj2 = 0 ;
26040 PyObject * obj3 = 0 ;
26041 PyObject * obj4 = 0 ;
26042 PyObject * obj5 = 0 ;
26043 PyObject * obj6 = 0 ;
26044 char * kwnames[] = {
26045 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
26046 };
26047
26048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26050 if (!SWIG_IsOK(res1)) {
26051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26052 }
26053 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26054 ecode2 = SWIG_AsVal_int(obj1, &val2);
26055 if (!SWIG_IsOK(ecode2)) {
26056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
26057 }
26058 arg2 = static_cast< int >(val2);
26059 ecode3 = SWIG_AsVal_int(obj2, &val3);
26060 if (!SWIG_IsOK(ecode3)) {
26061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
26062 }
26063 arg3 = static_cast< int >(val3);
26064 ecode4 = SWIG_AsVal_int(obj3, &val4);
26065 if (!SWIG_IsOK(ecode4)) {
26066 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
26067 }
26068 arg4 = static_cast< int >(val4);
26069 ecode5 = SWIG_AsVal_int(obj4, &val5);
26070 if (!SWIG_IsOK(ecode5)) {
26071 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
26072 }
26073 arg5 = static_cast< int >(val5);
26074 ecode6 = SWIG_AsVal_double(obj5, &val6);
26075 if (!SWIG_IsOK(ecode6)) {
26076 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
26077 }
26078 arg6 = static_cast< double >(val6);
26079 ecode7 = SWIG_AsVal_double(obj6, &val7);
26080 if (!SWIG_IsOK(ecode7)) {
26081 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
26082 }
26083 arg7 = static_cast< double >(val7);
26084 {
26085 PyThreadState* __tstate = wxPyBeginAllowThreads();
26086 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
26087 wxPyEndAllowThreads(__tstate);
26088 if (PyErr_Occurred()) SWIG_fail;
26089 }
26090 resultobj = SWIG_Py_Void();
26091 return resultobj;
26092 fail:
26093 return NULL;
26094 }
26095
26096
26097 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26098 PyObject *resultobj = 0;
26099 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26100 wxPoint *arg2 = 0 ;
26101 wxSize *arg3 = 0 ;
26102 double arg4 ;
26103 double arg5 ;
26104 void *argp1 = 0 ;
26105 int res1 = 0 ;
26106 wxPoint temp2 ;
26107 wxSize temp3 ;
26108 double val4 ;
26109 int ecode4 = 0 ;
26110 double val5 ;
26111 int ecode5 = 0 ;
26112 PyObject * obj0 = 0 ;
26113 PyObject * obj1 = 0 ;
26114 PyObject * obj2 = 0 ;
26115 PyObject * obj3 = 0 ;
26116 PyObject * obj4 = 0 ;
26117 char * kwnames[] = {
26118 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
26119 };
26120
26121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26123 if (!SWIG_IsOK(res1)) {
26124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26125 }
26126 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26127 {
26128 arg2 = &temp2;
26129 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26130 }
26131 {
26132 arg3 = &temp3;
26133 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
26134 }
26135 ecode4 = SWIG_AsVal_double(obj3, &val4);
26136 if (!SWIG_IsOK(ecode4)) {
26137 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
26138 }
26139 arg4 = static_cast< double >(val4);
26140 ecode5 = SWIG_AsVal_double(obj4, &val5);
26141 if (!SWIG_IsOK(ecode5)) {
26142 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
26143 }
26144 arg5 = static_cast< double >(val5);
26145 {
26146 PyThreadState* __tstate = wxPyBeginAllowThreads();
26147 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
26148 wxPyEndAllowThreads(__tstate);
26149 if (PyErr_Occurred()) SWIG_fail;
26150 }
26151 resultobj = SWIG_Py_Void();
26152 return resultobj;
26153 fail:
26154 return NULL;
26155 }
26156
26157
26158 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26159 PyObject *resultobj = 0;
26160 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26161 int arg2 ;
26162 int arg3 ;
26163 void *argp1 = 0 ;
26164 int res1 = 0 ;
26165 int val2 ;
26166 int ecode2 = 0 ;
26167 int val3 ;
26168 int ecode3 = 0 ;
26169 PyObject * obj0 = 0 ;
26170 PyObject * obj1 = 0 ;
26171 PyObject * obj2 = 0 ;
26172 char * kwnames[] = {
26173 (char *) "self",(char *) "x",(char *) "y", NULL
26174 };
26175
26176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26178 if (!SWIG_IsOK(res1)) {
26179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26180 }
26181 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26182 ecode2 = SWIG_AsVal_int(obj1, &val2);
26183 if (!SWIG_IsOK(ecode2)) {
26184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
26185 }
26186 arg2 = static_cast< int >(val2);
26187 ecode3 = SWIG_AsVal_int(obj2, &val3);
26188 if (!SWIG_IsOK(ecode3)) {
26189 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
26190 }
26191 arg3 = static_cast< int >(val3);
26192 {
26193 PyThreadState* __tstate = wxPyBeginAllowThreads();
26194 (arg1)->DrawPoint(arg2,arg3);
26195 wxPyEndAllowThreads(__tstate);
26196 if (PyErr_Occurred()) SWIG_fail;
26197 }
26198 resultobj = SWIG_Py_Void();
26199 return resultobj;
26200 fail:
26201 return NULL;
26202 }
26203
26204
26205 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26206 PyObject *resultobj = 0;
26207 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26208 wxPoint *arg2 = 0 ;
26209 void *argp1 = 0 ;
26210 int res1 = 0 ;
26211 wxPoint temp2 ;
26212 PyObject * obj0 = 0 ;
26213 PyObject * obj1 = 0 ;
26214 char * kwnames[] = {
26215 (char *) "self",(char *) "pt", NULL
26216 };
26217
26218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
26219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26220 if (!SWIG_IsOK(res1)) {
26221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26222 }
26223 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26224 {
26225 arg2 = &temp2;
26226 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26227 }
26228 {
26229 PyThreadState* __tstate = wxPyBeginAllowThreads();
26230 (arg1)->DrawPoint((wxPoint const &)*arg2);
26231 wxPyEndAllowThreads(__tstate);
26232 if (PyErr_Occurred()) SWIG_fail;
26233 }
26234 resultobj = SWIG_Py_Void();
26235 return resultobj;
26236 fail:
26237 return NULL;
26238 }
26239
26240
26241 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26242 PyObject *resultobj = 0;
26243 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26244 int arg2 ;
26245 int arg3 ;
26246 int arg4 ;
26247 int arg5 ;
26248 void *argp1 = 0 ;
26249 int res1 = 0 ;
26250 int val2 ;
26251 int ecode2 = 0 ;
26252 int val3 ;
26253 int ecode3 = 0 ;
26254 int val4 ;
26255 int ecode4 = 0 ;
26256 int val5 ;
26257 int ecode5 = 0 ;
26258 PyObject * obj0 = 0 ;
26259 PyObject * obj1 = 0 ;
26260 PyObject * obj2 = 0 ;
26261 PyObject * obj3 = 0 ;
26262 PyObject * obj4 = 0 ;
26263 char * kwnames[] = {
26264 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
26265 };
26266
26267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26269 if (!SWIG_IsOK(res1)) {
26270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26271 }
26272 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26273 ecode2 = SWIG_AsVal_int(obj1, &val2);
26274 if (!SWIG_IsOK(ecode2)) {
26275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
26276 }
26277 arg2 = static_cast< int >(val2);
26278 ecode3 = SWIG_AsVal_int(obj2, &val3);
26279 if (!SWIG_IsOK(ecode3)) {
26280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
26281 }
26282 arg3 = static_cast< int >(val3);
26283 ecode4 = SWIG_AsVal_int(obj3, &val4);
26284 if (!SWIG_IsOK(ecode4)) {
26285 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
26286 }
26287 arg4 = static_cast< int >(val4);
26288 ecode5 = SWIG_AsVal_int(obj4, &val5);
26289 if (!SWIG_IsOK(ecode5)) {
26290 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
26291 }
26292 arg5 = static_cast< int >(val5);
26293 {
26294 PyThreadState* __tstate = wxPyBeginAllowThreads();
26295 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
26296 wxPyEndAllowThreads(__tstate);
26297 if (PyErr_Occurred()) SWIG_fail;
26298 }
26299 resultobj = SWIG_Py_Void();
26300 return resultobj;
26301 fail:
26302 return NULL;
26303 }
26304
26305
26306 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26307 PyObject *resultobj = 0;
26308 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26309 wxRect *arg2 = 0 ;
26310 void *argp1 = 0 ;
26311 int res1 = 0 ;
26312 wxRect temp2 ;
26313 PyObject * obj0 = 0 ;
26314 PyObject * obj1 = 0 ;
26315 char * kwnames[] = {
26316 (char *) "self",(char *) "rect", NULL
26317 };
26318
26319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
26320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26321 if (!SWIG_IsOK(res1)) {
26322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26323 }
26324 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26325 {
26326 arg2 = &temp2;
26327 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26328 }
26329 {
26330 PyThreadState* __tstate = wxPyBeginAllowThreads();
26331 (arg1)->DrawRectangle((wxRect const &)*arg2);
26332 wxPyEndAllowThreads(__tstate);
26333 if (PyErr_Occurred()) SWIG_fail;
26334 }
26335 resultobj = SWIG_Py_Void();
26336 return resultobj;
26337 fail:
26338 return NULL;
26339 }
26340
26341
26342 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26343 PyObject *resultobj = 0;
26344 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26345 wxPoint *arg2 = 0 ;
26346 wxSize *arg3 = 0 ;
26347 void *argp1 = 0 ;
26348 int res1 = 0 ;
26349 wxPoint temp2 ;
26350 wxSize temp3 ;
26351 PyObject * obj0 = 0 ;
26352 PyObject * obj1 = 0 ;
26353 PyObject * obj2 = 0 ;
26354 char * kwnames[] = {
26355 (char *) "self",(char *) "pt",(char *) "sz", NULL
26356 };
26357
26358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26360 if (!SWIG_IsOK(res1)) {
26361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26362 }
26363 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26364 {
26365 arg2 = &temp2;
26366 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26367 }
26368 {
26369 arg3 = &temp3;
26370 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
26371 }
26372 {
26373 PyThreadState* __tstate = wxPyBeginAllowThreads();
26374 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
26375 wxPyEndAllowThreads(__tstate);
26376 if (PyErr_Occurred()) SWIG_fail;
26377 }
26378 resultobj = SWIG_Py_Void();
26379 return resultobj;
26380 fail:
26381 return NULL;
26382 }
26383
26384
26385 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26386 PyObject *resultobj = 0;
26387 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26388 int arg2 ;
26389 int arg3 ;
26390 int arg4 ;
26391 int arg5 ;
26392 double arg6 ;
26393 void *argp1 = 0 ;
26394 int res1 = 0 ;
26395 int val2 ;
26396 int ecode2 = 0 ;
26397 int val3 ;
26398 int ecode3 = 0 ;
26399 int val4 ;
26400 int ecode4 = 0 ;
26401 int val5 ;
26402 int ecode5 = 0 ;
26403 double val6 ;
26404 int ecode6 = 0 ;
26405 PyObject * obj0 = 0 ;
26406 PyObject * obj1 = 0 ;
26407 PyObject * obj2 = 0 ;
26408 PyObject * obj3 = 0 ;
26409 PyObject * obj4 = 0 ;
26410 PyObject * obj5 = 0 ;
26411 char * kwnames[] = {
26412 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
26413 };
26414
26415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26417 if (!SWIG_IsOK(res1)) {
26418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26419 }
26420 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26421 ecode2 = SWIG_AsVal_int(obj1, &val2);
26422 if (!SWIG_IsOK(ecode2)) {
26423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
26424 }
26425 arg2 = static_cast< int >(val2);
26426 ecode3 = SWIG_AsVal_int(obj2, &val3);
26427 if (!SWIG_IsOK(ecode3)) {
26428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
26429 }
26430 arg3 = static_cast< int >(val3);
26431 ecode4 = SWIG_AsVal_int(obj3, &val4);
26432 if (!SWIG_IsOK(ecode4)) {
26433 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
26434 }
26435 arg4 = static_cast< int >(val4);
26436 ecode5 = SWIG_AsVal_int(obj4, &val5);
26437 if (!SWIG_IsOK(ecode5)) {
26438 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
26439 }
26440 arg5 = static_cast< int >(val5);
26441 ecode6 = SWIG_AsVal_double(obj5, &val6);
26442 if (!SWIG_IsOK(ecode6)) {
26443 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
26444 }
26445 arg6 = static_cast< double >(val6);
26446 {
26447 PyThreadState* __tstate = wxPyBeginAllowThreads();
26448 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
26449 wxPyEndAllowThreads(__tstate);
26450 if (PyErr_Occurred()) SWIG_fail;
26451 }
26452 resultobj = SWIG_Py_Void();
26453 return resultobj;
26454 fail:
26455 return NULL;
26456 }
26457
26458
26459 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26460 PyObject *resultobj = 0;
26461 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26462 wxRect *arg2 = 0 ;
26463 double arg3 ;
26464 void *argp1 = 0 ;
26465 int res1 = 0 ;
26466 wxRect temp2 ;
26467 double val3 ;
26468 int ecode3 = 0 ;
26469 PyObject * obj0 = 0 ;
26470 PyObject * obj1 = 0 ;
26471 PyObject * obj2 = 0 ;
26472 char * kwnames[] = {
26473 (char *) "self",(char *) "r",(char *) "radius", NULL
26474 };
26475
26476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26478 if (!SWIG_IsOK(res1)) {
26479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26480 }
26481 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26482 {
26483 arg2 = &temp2;
26484 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26485 }
26486 ecode3 = SWIG_AsVal_double(obj2, &val3);
26487 if (!SWIG_IsOK(ecode3)) {
26488 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
26489 }
26490 arg3 = static_cast< double >(val3);
26491 {
26492 PyThreadState* __tstate = wxPyBeginAllowThreads();
26493 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
26494 wxPyEndAllowThreads(__tstate);
26495 if (PyErr_Occurred()) SWIG_fail;
26496 }
26497 resultobj = SWIG_Py_Void();
26498 return resultobj;
26499 fail:
26500 return NULL;
26501 }
26502
26503
26504 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26505 PyObject *resultobj = 0;
26506 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26507 wxPoint *arg2 = 0 ;
26508 wxSize *arg3 = 0 ;
26509 double arg4 ;
26510 void *argp1 = 0 ;
26511 int res1 = 0 ;
26512 wxPoint temp2 ;
26513 wxSize temp3 ;
26514 double val4 ;
26515 int ecode4 = 0 ;
26516 PyObject * obj0 = 0 ;
26517 PyObject * obj1 = 0 ;
26518 PyObject * obj2 = 0 ;
26519 PyObject * obj3 = 0 ;
26520 char * kwnames[] = {
26521 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
26522 };
26523
26524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26526 if (!SWIG_IsOK(res1)) {
26527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26528 }
26529 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26530 {
26531 arg2 = &temp2;
26532 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26533 }
26534 {
26535 arg3 = &temp3;
26536 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
26537 }
26538 ecode4 = SWIG_AsVal_double(obj3, &val4);
26539 if (!SWIG_IsOK(ecode4)) {
26540 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
26541 }
26542 arg4 = static_cast< double >(val4);
26543 {
26544 PyThreadState* __tstate = wxPyBeginAllowThreads();
26545 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
26546 wxPyEndAllowThreads(__tstate);
26547 if (PyErr_Occurred()) SWIG_fail;
26548 }
26549 resultobj = SWIG_Py_Void();
26550 return resultobj;
26551 fail:
26552 return NULL;
26553 }
26554
26555
26556 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26557 PyObject *resultobj = 0;
26558 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26559 int arg2 ;
26560 int arg3 ;
26561 int arg4 ;
26562 void *argp1 = 0 ;
26563 int res1 = 0 ;
26564 int val2 ;
26565 int ecode2 = 0 ;
26566 int val3 ;
26567 int ecode3 = 0 ;
26568 int val4 ;
26569 int ecode4 = 0 ;
26570 PyObject * obj0 = 0 ;
26571 PyObject * obj1 = 0 ;
26572 PyObject * obj2 = 0 ;
26573 PyObject * obj3 = 0 ;
26574 char * kwnames[] = {
26575 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
26576 };
26577
26578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26580 if (!SWIG_IsOK(res1)) {
26581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26582 }
26583 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26584 ecode2 = SWIG_AsVal_int(obj1, &val2);
26585 if (!SWIG_IsOK(ecode2)) {
26586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
26587 }
26588 arg2 = static_cast< int >(val2);
26589 ecode3 = SWIG_AsVal_int(obj2, &val3);
26590 if (!SWIG_IsOK(ecode3)) {
26591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
26592 }
26593 arg3 = static_cast< int >(val3);
26594 ecode4 = SWIG_AsVal_int(obj3, &val4);
26595 if (!SWIG_IsOK(ecode4)) {
26596 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
26597 }
26598 arg4 = static_cast< int >(val4);
26599 {
26600 PyThreadState* __tstate = wxPyBeginAllowThreads();
26601 (arg1)->DrawCircle(arg2,arg3,arg4);
26602 wxPyEndAllowThreads(__tstate);
26603 if (PyErr_Occurred()) SWIG_fail;
26604 }
26605 resultobj = SWIG_Py_Void();
26606 return resultobj;
26607 fail:
26608 return NULL;
26609 }
26610
26611
26612 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26613 PyObject *resultobj = 0;
26614 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26615 wxPoint *arg2 = 0 ;
26616 int arg3 ;
26617 void *argp1 = 0 ;
26618 int res1 = 0 ;
26619 wxPoint temp2 ;
26620 int val3 ;
26621 int ecode3 = 0 ;
26622 PyObject * obj0 = 0 ;
26623 PyObject * obj1 = 0 ;
26624 PyObject * obj2 = 0 ;
26625 char * kwnames[] = {
26626 (char *) "self",(char *) "pt",(char *) "radius", NULL
26627 };
26628
26629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26631 if (!SWIG_IsOK(res1)) {
26632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26633 }
26634 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26635 {
26636 arg2 = &temp2;
26637 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26638 }
26639 ecode3 = SWIG_AsVal_int(obj2, &val3);
26640 if (!SWIG_IsOK(ecode3)) {
26641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
26642 }
26643 arg3 = static_cast< int >(val3);
26644 {
26645 PyThreadState* __tstate = wxPyBeginAllowThreads();
26646 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
26647 wxPyEndAllowThreads(__tstate);
26648 if (PyErr_Occurred()) SWIG_fail;
26649 }
26650 resultobj = SWIG_Py_Void();
26651 return resultobj;
26652 fail:
26653 return NULL;
26654 }
26655
26656
26657 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26658 PyObject *resultobj = 0;
26659 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26660 int arg2 ;
26661 int arg3 ;
26662 int arg4 ;
26663 int arg5 ;
26664 void *argp1 = 0 ;
26665 int res1 = 0 ;
26666 int val2 ;
26667 int ecode2 = 0 ;
26668 int val3 ;
26669 int ecode3 = 0 ;
26670 int val4 ;
26671 int ecode4 = 0 ;
26672 int val5 ;
26673 int ecode5 = 0 ;
26674 PyObject * obj0 = 0 ;
26675 PyObject * obj1 = 0 ;
26676 PyObject * obj2 = 0 ;
26677 PyObject * obj3 = 0 ;
26678 PyObject * obj4 = 0 ;
26679 char * kwnames[] = {
26680 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
26681 };
26682
26683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26685 if (!SWIG_IsOK(res1)) {
26686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26687 }
26688 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26689 ecode2 = SWIG_AsVal_int(obj1, &val2);
26690 if (!SWIG_IsOK(ecode2)) {
26691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
26692 }
26693 arg2 = static_cast< int >(val2);
26694 ecode3 = SWIG_AsVal_int(obj2, &val3);
26695 if (!SWIG_IsOK(ecode3)) {
26696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
26697 }
26698 arg3 = static_cast< int >(val3);
26699 ecode4 = SWIG_AsVal_int(obj3, &val4);
26700 if (!SWIG_IsOK(ecode4)) {
26701 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
26702 }
26703 arg4 = static_cast< int >(val4);
26704 ecode5 = SWIG_AsVal_int(obj4, &val5);
26705 if (!SWIG_IsOK(ecode5)) {
26706 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
26707 }
26708 arg5 = static_cast< int >(val5);
26709 {
26710 PyThreadState* __tstate = wxPyBeginAllowThreads();
26711 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
26712 wxPyEndAllowThreads(__tstate);
26713 if (PyErr_Occurred()) SWIG_fail;
26714 }
26715 resultobj = SWIG_Py_Void();
26716 return resultobj;
26717 fail:
26718 return NULL;
26719 }
26720
26721
26722 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26723 PyObject *resultobj = 0;
26724 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26725 wxRect *arg2 = 0 ;
26726 void *argp1 = 0 ;
26727 int res1 = 0 ;
26728 wxRect temp2 ;
26729 PyObject * obj0 = 0 ;
26730 PyObject * obj1 = 0 ;
26731 char * kwnames[] = {
26732 (char *) "self",(char *) "rect", NULL
26733 };
26734
26735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
26736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26737 if (!SWIG_IsOK(res1)) {
26738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26739 }
26740 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26741 {
26742 arg2 = &temp2;
26743 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26744 }
26745 {
26746 PyThreadState* __tstate = wxPyBeginAllowThreads();
26747 (arg1)->DrawEllipse((wxRect const &)*arg2);
26748 wxPyEndAllowThreads(__tstate);
26749 if (PyErr_Occurred()) SWIG_fail;
26750 }
26751 resultobj = SWIG_Py_Void();
26752 return resultobj;
26753 fail:
26754 return NULL;
26755 }
26756
26757
26758 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26759 PyObject *resultobj = 0;
26760 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26761 wxPoint *arg2 = 0 ;
26762 wxSize *arg3 = 0 ;
26763 void *argp1 = 0 ;
26764 int res1 = 0 ;
26765 wxPoint temp2 ;
26766 wxSize temp3 ;
26767 PyObject * obj0 = 0 ;
26768 PyObject * obj1 = 0 ;
26769 PyObject * obj2 = 0 ;
26770 char * kwnames[] = {
26771 (char *) "self",(char *) "pt",(char *) "sz", NULL
26772 };
26773
26774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26776 if (!SWIG_IsOK(res1)) {
26777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26778 }
26779 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26780 {
26781 arg2 = &temp2;
26782 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26783 }
26784 {
26785 arg3 = &temp3;
26786 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
26787 }
26788 {
26789 PyThreadState* __tstate = wxPyBeginAllowThreads();
26790 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
26791 wxPyEndAllowThreads(__tstate);
26792 if (PyErr_Occurred()) SWIG_fail;
26793 }
26794 resultobj = SWIG_Py_Void();
26795 return resultobj;
26796 fail:
26797 return NULL;
26798 }
26799
26800
26801 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26802 PyObject *resultobj = 0;
26803 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26804 wxIcon *arg2 = 0 ;
26805 int arg3 ;
26806 int arg4 ;
26807 void *argp1 = 0 ;
26808 int res1 = 0 ;
26809 void *argp2 = 0 ;
26810 int res2 = 0 ;
26811 int val3 ;
26812 int ecode3 = 0 ;
26813 int val4 ;
26814 int ecode4 = 0 ;
26815 PyObject * obj0 = 0 ;
26816 PyObject * obj1 = 0 ;
26817 PyObject * obj2 = 0 ;
26818 PyObject * obj3 = 0 ;
26819 char * kwnames[] = {
26820 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
26821 };
26822
26823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26825 if (!SWIG_IsOK(res1)) {
26826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26827 }
26828 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26829 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26830 if (!SWIG_IsOK(res2)) {
26831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26832 }
26833 if (!argp2) {
26834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26835 }
26836 arg2 = reinterpret_cast< wxIcon * >(argp2);
26837 ecode3 = SWIG_AsVal_int(obj2, &val3);
26838 if (!SWIG_IsOK(ecode3)) {
26839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
26840 }
26841 arg3 = static_cast< int >(val3);
26842 ecode4 = SWIG_AsVal_int(obj3, &val4);
26843 if (!SWIG_IsOK(ecode4)) {
26844 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
26845 }
26846 arg4 = static_cast< int >(val4);
26847 {
26848 PyThreadState* __tstate = wxPyBeginAllowThreads();
26849 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
26850 wxPyEndAllowThreads(__tstate);
26851 if (PyErr_Occurred()) SWIG_fail;
26852 }
26853 resultobj = SWIG_Py_Void();
26854 return resultobj;
26855 fail:
26856 return NULL;
26857 }
26858
26859
26860 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26861 PyObject *resultobj = 0;
26862 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26863 wxIcon *arg2 = 0 ;
26864 wxPoint *arg3 = 0 ;
26865 void *argp1 = 0 ;
26866 int res1 = 0 ;
26867 void *argp2 = 0 ;
26868 int res2 = 0 ;
26869 wxPoint temp3 ;
26870 PyObject * obj0 = 0 ;
26871 PyObject * obj1 = 0 ;
26872 PyObject * obj2 = 0 ;
26873 char * kwnames[] = {
26874 (char *) "self",(char *) "icon",(char *) "pt", NULL
26875 };
26876
26877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26879 if (!SWIG_IsOK(res1)) {
26880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26881 }
26882 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26883 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26884 if (!SWIG_IsOK(res2)) {
26885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
26886 }
26887 if (!argp2) {
26888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
26889 }
26890 arg2 = reinterpret_cast< wxIcon * >(argp2);
26891 {
26892 arg3 = &temp3;
26893 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
26894 }
26895 {
26896 PyThreadState* __tstate = wxPyBeginAllowThreads();
26897 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
26898 wxPyEndAllowThreads(__tstate);
26899 if (PyErr_Occurred()) SWIG_fail;
26900 }
26901 resultobj = SWIG_Py_Void();
26902 return resultobj;
26903 fail:
26904 return NULL;
26905 }
26906
26907
26908 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26909 PyObject *resultobj = 0;
26910 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26911 wxBitmap *arg2 = 0 ;
26912 int arg3 ;
26913 int arg4 ;
26914 bool arg5 = (bool) false ;
26915 void *argp1 = 0 ;
26916 int res1 = 0 ;
26917 void *argp2 = 0 ;
26918 int res2 = 0 ;
26919 int val3 ;
26920 int ecode3 = 0 ;
26921 int val4 ;
26922 int ecode4 = 0 ;
26923 bool val5 ;
26924 int ecode5 = 0 ;
26925 PyObject * obj0 = 0 ;
26926 PyObject * obj1 = 0 ;
26927 PyObject * obj2 = 0 ;
26928 PyObject * obj3 = 0 ;
26929 PyObject * obj4 = 0 ;
26930 char * kwnames[] = {
26931 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
26932 };
26933
26934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26936 if (!SWIG_IsOK(res1)) {
26937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26938 }
26939 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26940 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26941 if (!SWIG_IsOK(res2)) {
26942 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26943 }
26944 if (!argp2) {
26945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26946 }
26947 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26948 ecode3 = SWIG_AsVal_int(obj2, &val3);
26949 if (!SWIG_IsOK(ecode3)) {
26950 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
26951 }
26952 arg3 = static_cast< int >(val3);
26953 ecode4 = SWIG_AsVal_int(obj3, &val4);
26954 if (!SWIG_IsOK(ecode4)) {
26955 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
26956 }
26957 arg4 = static_cast< int >(val4);
26958 if (obj4) {
26959 ecode5 = SWIG_AsVal_bool(obj4, &val5);
26960 if (!SWIG_IsOK(ecode5)) {
26961 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
26962 }
26963 arg5 = static_cast< bool >(val5);
26964 }
26965 {
26966 PyThreadState* __tstate = wxPyBeginAllowThreads();
26967 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
26968 wxPyEndAllowThreads(__tstate);
26969 if (PyErr_Occurred()) SWIG_fail;
26970 }
26971 resultobj = SWIG_Py_Void();
26972 return resultobj;
26973 fail:
26974 return NULL;
26975 }
26976
26977
26978 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26979 PyObject *resultobj = 0;
26980 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26981 wxBitmap *arg2 = 0 ;
26982 wxPoint *arg3 = 0 ;
26983 bool arg4 = (bool) false ;
26984 void *argp1 = 0 ;
26985 int res1 = 0 ;
26986 void *argp2 = 0 ;
26987 int res2 = 0 ;
26988 wxPoint temp3 ;
26989 bool val4 ;
26990 int ecode4 = 0 ;
26991 PyObject * obj0 = 0 ;
26992 PyObject * obj1 = 0 ;
26993 PyObject * obj2 = 0 ;
26994 PyObject * obj3 = 0 ;
26995 char * kwnames[] = {
26996 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
26997 };
26998
26999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27001 if (!SWIG_IsOK(res1)) {
27002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27003 }
27004 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27005 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27006 if (!SWIG_IsOK(res2)) {
27007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27008 }
27009 if (!argp2) {
27010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27011 }
27012 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27013 {
27014 arg3 = &temp3;
27015 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27016 }
27017 if (obj3) {
27018 ecode4 = SWIG_AsVal_bool(obj3, &val4);
27019 if (!SWIG_IsOK(ecode4)) {
27020 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
27021 }
27022 arg4 = static_cast< bool >(val4);
27023 }
27024 {
27025 PyThreadState* __tstate = wxPyBeginAllowThreads();
27026 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
27027 wxPyEndAllowThreads(__tstate);
27028 if (PyErr_Occurred()) SWIG_fail;
27029 }
27030 resultobj = SWIG_Py_Void();
27031 return resultobj;
27032 fail:
27033 return NULL;
27034 }
27035
27036
27037 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27038 PyObject *resultobj = 0;
27039 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27040 wxString *arg2 = 0 ;
27041 int arg3 ;
27042 int arg4 ;
27043 void *argp1 = 0 ;
27044 int res1 = 0 ;
27045 bool temp2 = false ;
27046 int val3 ;
27047 int ecode3 = 0 ;
27048 int val4 ;
27049 int ecode4 = 0 ;
27050 PyObject * obj0 = 0 ;
27051 PyObject * obj1 = 0 ;
27052 PyObject * obj2 = 0 ;
27053 PyObject * obj3 = 0 ;
27054 char * kwnames[] = {
27055 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
27056 };
27057
27058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27060 if (!SWIG_IsOK(res1)) {
27061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27062 }
27063 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27064 {
27065 arg2 = wxString_in_helper(obj1);
27066 if (arg2 == NULL) SWIG_fail;
27067 temp2 = true;
27068 }
27069 ecode3 = SWIG_AsVal_int(obj2, &val3);
27070 if (!SWIG_IsOK(ecode3)) {
27071 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
27072 }
27073 arg3 = static_cast< int >(val3);
27074 ecode4 = SWIG_AsVal_int(obj3, &val4);
27075 if (!SWIG_IsOK(ecode4)) {
27076 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
27077 }
27078 arg4 = static_cast< int >(val4);
27079 {
27080 PyThreadState* __tstate = wxPyBeginAllowThreads();
27081 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
27082 wxPyEndAllowThreads(__tstate);
27083 if (PyErr_Occurred()) SWIG_fail;
27084 }
27085 resultobj = SWIG_Py_Void();
27086 {
27087 if (temp2)
27088 delete arg2;
27089 }
27090 return resultobj;
27091 fail:
27092 {
27093 if (temp2)
27094 delete arg2;
27095 }
27096 return NULL;
27097 }
27098
27099
27100 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27101 PyObject *resultobj = 0;
27102 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27103 wxString *arg2 = 0 ;
27104 wxPoint *arg3 = 0 ;
27105 void *argp1 = 0 ;
27106 int res1 = 0 ;
27107 bool temp2 = false ;
27108 wxPoint temp3 ;
27109 PyObject * obj0 = 0 ;
27110 PyObject * obj1 = 0 ;
27111 PyObject * obj2 = 0 ;
27112 char * kwnames[] = {
27113 (char *) "self",(char *) "text",(char *) "pt", NULL
27114 };
27115
27116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27118 if (!SWIG_IsOK(res1)) {
27119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27120 }
27121 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27122 {
27123 arg2 = wxString_in_helper(obj1);
27124 if (arg2 == NULL) SWIG_fail;
27125 temp2 = true;
27126 }
27127 {
27128 arg3 = &temp3;
27129 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27130 }
27131 {
27132 PyThreadState* __tstate = wxPyBeginAllowThreads();
27133 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
27134 wxPyEndAllowThreads(__tstate);
27135 if (PyErr_Occurred()) SWIG_fail;
27136 }
27137 resultobj = SWIG_Py_Void();
27138 {
27139 if (temp2)
27140 delete arg2;
27141 }
27142 return resultobj;
27143 fail:
27144 {
27145 if (temp2)
27146 delete arg2;
27147 }
27148 return NULL;
27149 }
27150
27151
27152 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27153 PyObject *resultobj = 0;
27154 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27155 wxString *arg2 = 0 ;
27156 int arg3 ;
27157 int arg4 ;
27158 double arg5 ;
27159 void *argp1 = 0 ;
27160 int res1 = 0 ;
27161 bool temp2 = false ;
27162 int val3 ;
27163 int ecode3 = 0 ;
27164 int val4 ;
27165 int ecode4 = 0 ;
27166 double val5 ;
27167 int ecode5 = 0 ;
27168 PyObject * obj0 = 0 ;
27169 PyObject * obj1 = 0 ;
27170 PyObject * obj2 = 0 ;
27171 PyObject * obj3 = 0 ;
27172 PyObject * obj4 = 0 ;
27173 char * kwnames[] = {
27174 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
27175 };
27176
27177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27179 if (!SWIG_IsOK(res1)) {
27180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27181 }
27182 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27183 {
27184 arg2 = wxString_in_helper(obj1);
27185 if (arg2 == NULL) SWIG_fail;
27186 temp2 = true;
27187 }
27188 ecode3 = SWIG_AsVal_int(obj2, &val3);
27189 if (!SWIG_IsOK(ecode3)) {
27190 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
27191 }
27192 arg3 = static_cast< int >(val3);
27193 ecode4 = SWIG_AsVal_int(obj3, &val4);
27194 if (!SWIG_IsOK(ecode4)) {
27195 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
27196 }
27197 arg4 = static_cast< int >(val4);
27198 ecode5 = SWIG_AsVal_double(obj4, &val5);
27199 if (!SWIG_IsOK(ecode5)) {
27200 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
27201 }
27202 arg5 = static_cast< double >(val5);
27203 {
27204 PyThreadState* __tstate = wxPyBeginAllowThreads();
27205 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
27206 wxPyEndAllowThreads(__tstate);
27207 if (PyErr_Occurred()) SWIG_fail;
27208 }
27209 resultobj = SWIG_Py_Void();
27210 {
27211 if (temp2)
27212 delete arg2;
27213 }
27214 return resultobj;
27215 fail:
27216 {
27217 if (temp2)
27218 delete arg2;
27219 }
27220 return NULL;
27221 }
27222
27223
27224 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27225 PyObject *resultobj = 0;
27226 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27227 wxString *arg2 = 0 ;
27228 wxPoint *arg3 = 0 ;
27229 double arg4 ;
27230 void *argp1 = 0 ;
27231 int res1 = 0 ;
27232 bool temp2 = false ;
27233 wxPoint temp3 ;
27234 double val4 ;
27235 int ecode4 = 0 ;
27236 PyObject * obj0 = 0 ;
27237 PyObject * obj1 = 0 ;
27238 PyObject * obj2 = 0 ;
27239 PyObject * obj3 = 0 ;
27240 char * kwnames[] = {
27241 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
27242 };
27243
27244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27246 if (!SWIG_IsOK(res1)) {
27247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27248 }
27249 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27250 {
27251 arg2 = wxString_in_helper(obj1);
27252 if (arg2 == NULL) SWIG_fail;
27253 temp2 = true;
27254 }
27255 {
27256 arg3 = &temp3;
27257 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27258 }
27259 ecode4 = SWIG_AsVal_double(obj3, &val4);
27260 if (!SWIG_IsOK(ecode4)) {
27261 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
27262 }
27263 arg4 = static_cast< double >(val4);
27264 {
27265 PyThreadState* __tstate = wxPyBeginAllowThreads();
27266 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
27267 wxPyEndAllowThreads(__tstate);
27268 if (PyErr_Occurred()) SWIG_fail;
27269 }
27270 resultobj = SWIG_Py_Void();
27271 {
27272 if (temp2)
27273 delete arg2;
27274 }
27275 return resultobj;
27276 fail:
27277 {
27278 if (temp2)
27279 delete arg2;
27280 }
27281 return NULL;
27282 }
27283
27284
27285 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27286 PyObject *resultobj = 0;
27287 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27288 int arg2 ;
27289 wxPoint *arg3 = (wxPoint *) 0 ;
27290 int arg4 = (int) 0 ;
27291 int arg5 = (int) 0 ;
27292 void *argp1 = 0 ;
27293 int res1 = 0 ;
27294 int val4 ;
27295 int ecode4 = 0 ;
27296 int val5 ;
27297 int ecode5 = 0 ;
27298 PyObject * obj0 = 0 ;
27299 PyObject * obj1 = 0 ;
27300 PyObject * obj2 = 0 ;
27301 PyObject * obj3 = 0 ;
27302 char * kwnames[] = {
27303 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
27304 };
27305
27306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27308 if (!SWIG_IsOK(res1)) {
27309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27310 }
27311 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27312 {
27313 arg3 = wxPoint_LIST_helper(obj1, &arg2);
27314 if (arg3 == NULL) SWIG_fail;
27315 }
27316 if (obj2) {
27317 ecode4 = SWIG_AsVal_int(obj2, &val4);
27318 if (!SWIG_IsOK(ecode4)) {
27319 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
27320 }
27321 arg4 = static_cast< int >(val4);
27322 }
27323 if (obj3) {
27324 ecode5 = SWIG_AsVal_int(obj3, &val5);
27325 if (!SWIG_IsOK(ecode5)) {
27326 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
27327 }
27328 arg5 = static_cast< int >(val5);
27329 }
27330 {
27331 PyThreadState* __tstate = wxPyBeginAllowThreads();
27332 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
27333 wxPyEndAllowThreads(__tstate);
27334 if (PyErr_Occurred()) SWIG_fail;
27335 }
27336 resultobj = SWIG_Py_Void();
27337 {
27338 if (arg3) delete [] arg3;
27339 }
27340 return resultobj;
27341 fail:
27342 {
27343 if (arg3) delete [] arg3;
27344 }
27345 return NULL;
27346 }
27347
27348
27349 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27350 PyObject *resultobj = 0;
27351 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27352 int arg2 ;
27353 wxPoint *arg3 = (wxPoint *) 0 ;
27354 int arg4 = (int) 0 ;
27355 int arg5 = (int) 0 ;
27356 int arg6 = (int) wxODDEVEN_RULE ;
27357 void *argp1 = 0 ;
27358 int res1 = 0 ;
27359 int val4 ;
27360 int ecode4 = 0 ;
27361 int val5 ;
27362 int ecode5 = 0 ;
27363 int val6 ;
27364 int ecode6 = 0 ;
27365 PyObject * obj0 = 0 ;
27366 PyObject * obj1 = 0 ;
27367 PyObject * obj2 = 0 ;
27368 PyObject * obj3 = 0 ;
27369 PyObject * obj4 = 0 ;
27370 char * kwnames[] = {
27371 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
27372 };
27373
27374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27376 if (!SWIG_IsOK(res1)) {
27377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27378 }
27379 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27380 {
27381 arg3 = wxPoint_LIST_helper(obj1, &arg2);
27382 if (arg3 == NULL) SWIG_fail;
27383 }
27384 if (obj2) {
27385 ecode4 = SWIG_AsVal_int(obj2, &val4);
27386 if (!SWIG_IsOK(ecode4)) {
27387 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
27388 }
27389 arg4 = static_cast< int >(val4);
27390 }
27391 if (obj3) {
27392 ecode5 = SWIG_AsVal_int(obj3, &val5);
27393 if (!SWIG_IsOK(ecode5)) {
27394 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
27395 }
27396 arg5 = static_cast< int >(val5);
27397 }
27398 if (obj4) {
27399 ecode6 = SWIG_AsVal_int(obj4, &val6);
27400 if (!SWIG_IsOK(ecode6)) {
27401 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
27402 }
27403 arg6 = static_cast< int >(val6);
27404 }
27405 {
27406 PyThreadState* __tstate = wxPyBeginAllowThreads();
27407 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
27408 wxPyEndAllowThreads(__tstate);
27409 if (PyErr_Occurred()) SWIG_fail;
27410 }
27411 resultobj = SWIG_Py_Void();
27412 {
27413 if (arg3) delete [] arg3;
27414 }
27415 return resultobj;
27416 fail:
27417 {
27418 if (arg3) delete [] arg3;
27419 }
27420 return NULL;
27421 }
27422
27423
27424 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27425 PyObject *resultobj = 0;
27426 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27427 wxString *arg2 = 0 ;
27428 wxRect *arg3 = 0 ;
27429 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
27430 int arg5 = (int) -1 ;
27431 void *argp1 = 0 ;
27432 int res1 = 0 ;
27433 bool temp2 = false ;
27434 wxRect temp3 ;
27435 int val4 ;
27436 int ecode4 = 0 ;
27437 int val5 ;
27438 int ecode5 = 0 ;
27439 PyObject * obj0 = 0 ;
27440 PyObject * obj1 = 0 ;
27441 PyObject * obj2 = 0 ;
27442 PyObject * obj3 = 0 ;
27443 PyObject * obj4 = 0 ;
27444 char * kwnames[] = {
27445 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
27446 };
27447
27448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27450 if (!SWIG_IsOK(res1)) {
27451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27452 }
27453 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27454 {
27455 arg2 = wxString_in_helper(obj1);
27456 if (arg2 == NULL) SWIG_fail;
27457 temp2 = true;
27458 }
27459 {
27460 arg3 = &temp3;
27461 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
27462 }
27463 if (obj3) {
27464 ecode4 = SWIG_AsVal_int(obj3, &val4);
27465 if (!SWIG_IsOK(ecode4)) {
27466 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
27467 }
27468 arg4 = static_cast< int >(val4);
27469 }
27470 if (obj4) {
27471 ecode5 = SWIG_AsVal_int(obj4, &val5);
27472 if (!SWIG_IsOK(ecode5)) {
27473 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
27474 }
27475 arg5 = static_cast< int >(val5);
27476 }
27477 {
27478 PyThreadState* __tstate = wxPyBeginAllowThreads();
27479 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
27480 wxPyEndAllowThreads(__tstate);
27481 if (PyErr_Occurred()) SWIG_fail;
27482 }
27483 resultobj = SWIG_Py_Void();
27484 {
27485 if (temp2)
27486 delete arg2;
27487 }
27488 return resultobj;
27489 fail:
27490 {
27491 if (temp2)
27492 delete arg2;
27493 }
27494 return NULL;
27495 }
27496
27497
27498 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27499 PyObject *resultobj = 0;
27500 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27501 wxString *arg2 = 0 ;
27502 wxBitmap *arg3 = 0 ;
27503 wxRect *arg4 = 0 ;
27504 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
27505 int arg6 = (int) -1 ;
27506 void *argp1 = 0 ;
27507 int res1 = 0 ;
27508 bool temp2 = false ;
27509 void *argp3 = 0 ;
27510 int res3 = 0 ;
27511 wxRect temp4 ;
27512 int val5 ;
27513 int ecode5 = 0 ;
27514 int val6 ;
27515 int ecode6 = 0 ;
27516 PyObject * obj0 = 0 ;
27517 PyObject * obj1 = 0 ;
27518 PyObject * obj2 = 0 ;
27519 PyObject * obj3 = 0 ;
27520 PyObject * obj4 = 0 ;
27521 PyObject * obj5 = 0 ;
27522 char * kwnames[] = {
27523 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
27524 };
27525
27526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27528 if (!SWIG_IsOK(res1)) {
27529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27530 }
27531 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27532 {
27533 arg2 = wxString_in_helper(obj1);
27534 if (arg2 == NULL) SWIG_fail;
27535 temp2 = true;
27536 }
27537 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27538 if (!SWIG_IsOK(res3)) {
27539 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27540 }
27541 if (!argp3) {
27542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27543 }
27544 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27545 {
27546 arg4 = &temp4;
27547 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27548 }
27549 if (obj4) {
27550 ecode5 = SWIG_AsVal_int(obj4, &val5);
27551 if (!SWIG_IsOK(ecode5)) {
27552 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
27553 }
27554 arg5 = static_cast< int >(val5);
27555 }
27556 if (obj5) {
27557 ecode6 = SWIG_AsVal_int(obj5, &val6);
27558 if (!SWIG_IsOK(ecode6)) {
27559 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
27560 }
27561 arg6 = static_cast< int >(val6);
27562 }
27563 {
27564 PyThreadState* __tstate = wxPyBeginAllowThreads();
27565 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
27566 wxPyEndAllowThreads(__tstate);
27567 if (PyErr_Occurred()) SWIG_fail;
27568 }
27569 resultobj = SWIG_Py_Void();
27570 {
27571 if (temp2)
27572 delete arg2;
27573 }
27574 return resultobj;
27575 fail:
27576 {
27577 if (temp2)
27578 delete arg2;
27579 }
27580 return NULL;
27581 }
27582
27583
27584 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27585 PyObject *resultobj = 0;
27586 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27587 int arg2 ;
27588 wxPoint *arg3 = (wxPoint *) 0 ;
27589 void *argp1 = 0 ;
27590 int res1 = 0 ;
27591 PyObject * obj0 = 0 ;
27592 PyObject * obj1 = 0 ;
27593 char * kwnames[] = {
27594 (char *) "self",(char *) "points", NULL
27595 };
27596
27597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
27598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27599 if (!SWIG_IsOK(res1)) {
27600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27601 }
27602 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27603 {
27604 arg3 = wxPoint_LIST_helper(obj1, &arg2);
27605 if (arg3 == NULL) SWIG_fail;
27606 }
27607 {
27608 PyThreadState* __tstate = wxPyBeginAllowThreads();
27609 (arg1)->DrawSpline(arg2,arg3);
27610 wxPyEndAllowThreads(__tstate);
27611 if (PyErr_Occurred()) SWIG_fail;
27612 }
27613 resultobj = SWIG_Py_Void();
27614 {
27615 if (arg3) delete [] arg3;
27616 }
27617 return resultobj;
27618 fail:
27619 {
27620 if (arg3) delete [] arg3;
27621 }
27622 return NULL;
27623 }
27624
27625
27626 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27627 PyObject *resultobj = 0;
27628 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27629 void *argp1 = 0 ;
27630 int res1 = 0 ;
27631 PyObject *swig_obj[1] ;
27632
27633 if (!args) SWIG_fail;
27634 swig_obj[0] = args;
27635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27636 if (!SWIG_IsOK(res1)) {
27637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27638 }
27639 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27640 {
27641 PyThreadState* __tstate = wxPyBeginAllowThreads();
27642 (arg1)->Clear();
27643 wxPyEndAllowThreads(__tstate);
27644 if (PyErr_Occurred()) SWIG_fail;
27645 }
27646 resultobj = SWIG_Py_Void();
27647 return resultobj;
27648 fail:
27649 return NULL;
27650 }
27651
27652
27653 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27654 PyObject *resultobj = 0;
27655 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27656 wxFont *arg2 = 0 ;
27657 void *argp1 = 0 ;
27658 int res1 = 0 ;
27659 void *argp2 = 0 ;
27660 int res2 = 0 ;
27661 PyObject * obj0 = 0 ;
27662 PyObject * obj1 = 0 ;
27663 char * kwnames[] = {
27664 (char *) "self",(char *) "font", NULL
27665 };
27666
27667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27669 if (!SWIG_IsOK(res1)) {
27670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27671 }
27672 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27673 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27674 if (!SWIG_IsOK(res2)) {
27675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27676 }
27677 if (!argp2) {
27678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27679 }
27680 arg2 = reinterpret_cast< wxFont * >(argp2);
27681 {
27682 PyThreadState* __tstate = wxPyBeginAllowThreads();
27683 (arg1)->SetFont((wxFont const &)*arg2);
27684 wxPyEndAllowThreads(__tstate);
27685 if (PyErr_Occurred()) SWIG_fail;
27686 }
27687 resultobj = SWIG_Py_Void();
27688 return resultobj;
27689 fail:
27690 return NULL;
27691 }
27692
27693
27694 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27695 PyObject *resultobj = 0;
27696 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27697 wxPen *arg2 = 0 ;
27698 void *argp1 = 0 ;
27699 int res1 = 0 ;
27700 void *argp2 = 0 ;
27701 int res2 = 0 ;
27702 PyObject * obj0 = 0 ;
27703 PyObject * obj1 = 0 ;
27704 char * kwnames[] = {
27705 (char *) "self",(char *) "pen", NULL
27706 };
27707
27708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
27709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27710 if (!SWIG_IsOK(res1)) {
27711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27712 }
27713 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27714 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27715 if (!SWIG_IsOK(res2)) {
27716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
27717 }
27718 if (!argp2) {
27719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
27720 }
27721 arg2 = reinterpret_cast< wxPen * >(argp2);
27722 {
27723 PyThreadState* __tstate = wxPyBeginAllowThreads();
27724 (arg1)->SetPen((wxPen const &)*arg2);
27725 wxPyEndAllowThreads(__tstate);
27726 if (PyErr_Occurred()) SWIG_fail;
27727 }
27728 resultobj = SWIG_Py_Void();
27729 return resultobj;
27730 fail:
27731 return NULL;
27732 }
27733
27734
27735 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27736 PyObject *resultobj = 0;
27737 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27738 wxBrush *arg2 = 0 ;
27739 void *argp1 = 0 ;
27740 int res1 = 0 ;
27741 void *argp2 = 0 ;
27742 int res2 = 0 ;
27743 PyObject * obj0 = 0 ;
27744 PyObject * obj1 = 0 ;
27745 char * kwnames[] = {
27746 (char *) "self",(char *) "brush", NULL
27747 };
27748
27749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27751 if (!SWIG_IsOK(res1)) {
27752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27753 }
27754 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27755 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27756 if (!SWIG_IsOK(res2)) {
27757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27758 }
27759 if (!argp2) {
27760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27761 }
27762 arg2 = reinterpret_cast< wxBrush * >(argp2);
27763 {
27764 PyThreadState* __tstate = wxPyBeginAllowThreads();
27765 (arg1)->SetBrush((wxBrush const &)*arg2);
27766 wxPyEndAllowThreads(__tstate);
27767 if (PyErr_Occurred()) SWIG_fail;
27768 }
27769 resultobj = SWIG_Py_Void();
27770 return resultobj;
27771 fail:
27772 return NULL;
27773 }
27774
27775
27776 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27777 PyObject *resultobj = 0;
27778 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27779 wxBrush *arg2 = 0 ;
27780 void *argp1 = 0 ;
27781 int res1 = 0 ;
27782 void *argp2 = 0 ;
27783 int res2 = 0 ;
27784 PyObject * obj0 = 0 ;
27785 PyObject * obj1 = 0 ;
27786 char * kwnames[] = {
27787 (char *) "self",(char *) "brush", NULL
27788 };
27789
27790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
27791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27792 if (!SWIG_IsOK(res1)) {
27793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27794 }
27795 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27796 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27797 if (!SWIG_IsOK(res2)) {
27798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
27799 }
27800 if (!argp2) {
27801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
27802 }
27803 arg2 = reinterpret_cast< wxBrush * >(argp2);
27804 {
27805 PyThreadState* __tstate = wxPyBeginAllowThreads();
27806 (arg1)->SetBackground((wxBrush const &)*arg2);
27807 wxPyEndAllowThreads(__tstate);
27808 if (PyErr_Occurred()) SWIG_fail;
27809 }
27810 resultobj = SWIG_Py_Void();
27811 return resultobj;
27812 fail:
27813 return NULL;
27814 }
27815
27816
27817 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27818 PyObject *resultobj = 0;
27819 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27820 int arg2 ;
27821 void *argp1 = 0 ;
27822 int res1 = 0 ;
27823 int val2 ;
27824 int ecode2 = 0 ;
27825 PyObject * obj0 = 0 ;
27826 PyObject * obj1 = 0 ;
27827 char * kwnames[] = {
27828 (char *) "self",(char *) "mode", NULL
27829 };
27830
27831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
27832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27833 if (!SWIG_IsOK(res1)) {
27834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27835 }
27836 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27837 ecode2 = SWIG_AsVal_int(obj1, &val2);
27838 if (!SWIG_IsOK(ecode2)) {
27839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
27840 }
27841 arg2 = static_cast< int >(val2);
27842 {
27843 PyThreadState* __tstate = wxPyBeginAllowThreads();
27844 (arg1)->SetBackgroundMode(arg2);
27845 wxPyEndAllowThreads(__tstate);
27846 if (PyErr_Occurred()) SWIG_fail;
27847 }
27848 resultobj = SWIG_Py_Void();
27849 return resultobj;
27850 fail:
27851 return NULL;
27852 }
27853
27854
27855 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27856 PyObject *resultobj = 0;
27857 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27858 wxPalette *arg2 = 0 ;
27859 void *argp1 = 0 ;
27860 int res1 = 0 ;
27861 void *argp2 = 0 ;
27862 int res2 = 0 ;
27863 PyObject * obj0 = 0 ;
27864 PyObject * obj1 = 0 ;
27865 char * kwnames[] = {
27866 (char *) "self",(char *) "palette", NULL
27867 };
27868
27869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
27870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27871 if (!SWIG_IsOK(res1)) {
27872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27873 }
27874 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27875 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
27876 if (!SWIG_IsOK(res2)) {
27877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
27878 }
27879 if (!argp2) {
27880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
27881 }
27882 arg2 = reinterpret_cast< wxPalette * >(argp2);
27883 {
27884 PyThreadState* __tstate = wxPyBeginAllowThreads();
27885 (arg1)->SetPalette((wxPalette const &)*arg2);
27886 wxPyEndAllowThreads(__tstate);
27887 if (PyErr_Occurred()) SWIG_fail;
27888 }
27889 resultobj = SWIG_Py_Void();
27890 return resultobj;
27891 fail:
27892 return NULL;
27893 }
27894
27895
27896 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27897 PyObject *resultobj = 0;
27898 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27899 wxColour *arg2 = 0 ;
27900 void *argp1 = 0 ;
27901 int res1 = 0 ;
27902 wxColour temp2 ;
27903 PyObject * obj0 = 0 ;
27904 PyObject * obj1 = 0 ;
27905 char * kwnames[] = {
27906 (char *) "self",(char *) "colour", NULL
27907 };
27908
27909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
27910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27911 if (!SWIG_IsOK(res1)) {
27912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27913 }
27914 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27915 {
27916 arg2 = &temp2;
27917 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27918 }
27919 {
27920 PyThreadState* __tstate = wxPyBeginAllowThreads();
27921 (arg1)->SetTextForeground((wxColour const &)*arg2);
27922 wxPyEndAllowThreads(__tstate);
27923 if (PyErr_Occurred()) SWIG_fail;
27924 }
27925 resultobj = SWIG_Py_Void();
27926 return resultobj;
27927 fail:
27928 return NULL;
27929 }
27930
27931
27932 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27933 PyObject *resultobj = 0;
27934 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27935 wxColour *arg2 = 0 ;
27936 void *argp1 = 0 ;
27937 int res1 = 0 ;
27938 wxColour temp2 ;
27939 PyObject * obj0 = 0 ;
27940 PyObject * obj1 = 0 ;
27941 char * kwnames[] = {
27942 (char *) "self",(char *) "colour", NULL
27943 };
27944
27945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
27946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27947 if (!SWIG_IsOK(res1)) {
27948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27949 }
27950 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27951 {
27952 arg2 = &temp2;
27953 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27954 }
27955 {
27956 PyThreadState* __tstate = wxPyBeginAllowThreads();
27957 (arg1)->SetTextBackground((wxColour const &)*arg2);
27958 wxPyEndAllowThreads(__tstate);
27959 if (PyErr_Occurred()) SWIG_fail;
27960 }
27961 resultobj = SWIG_Py_Void();
27962 return resultobj;
27963 fail:
27964 return NULL;
27965 }
27966
27967
27968 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27969 PyObject *resultobj = 0;
27970 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27971 int arg2 ;
27972 void *argp1 = 0 ;
27973 int res1 = 0 ;
27974 int val2 ;
27975 int ecode2 = 0 ;
27976 PyObject * obj0 = 0 ;
27977 PyObject * obj1 = 0 ;
27978 char * kwnames[] = {
27979 (char *) "self",(char *) "function", NULL
27980 };
27981
27982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
27983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27984 if (!SWIG_IsOK(res1)) {
27985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27986 }
27987 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27988 ecode2 = SWIG_AsVal_int(obj1, &val2);
27989 if (!SWIG_IsOK(ecode2)) {
27990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
27991 }
27992 arg2 = static_cast< int >(val2);
27993 {
27994 PyThreadState* __tstate = wxPyBeginAllowThreads();
27995 (arg1)->SetLogicalFunction(arg2);
27996 wxPyEndAllowThreads(__tstate);
27997 if (PyErr_Occurred()) SWIG_fail;
27998 }
27999 resultobj = SWIG_Py_Void();
28000 return resultobj;
28001 fail:
28002 return NULL;
28003 }
28004
28005
28006 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28007 PyObject *obj;
28008 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28009 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
28010 return SWIG_Py_Void();
28011 }
28012
28013 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28014 return SWIG_Python_InitShadowInstance(args);
28015 }
28016
28017 static PyMethodDef SwigMethods[] = {
28018 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
28019 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
28020 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
28021 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
28022 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
28023 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
28024 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
28025 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
28026 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
28027 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
28028 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
28029 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
28030 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
28031 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
28032 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
28033 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
28034 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
28035 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
28036 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
28037 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
28038 { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL},
28039 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
28040 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
28041 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
28042 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
28043 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
28044 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
28045 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
28046 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
28047 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
28048 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
28049 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
28050 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
28051 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
28052 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
28053 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
28054 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
28055 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
28056 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
28057 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
28058 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
28059 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
28060 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
28061 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
28062 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
28063 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
28064 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
28065 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
28066 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
28067 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
28068 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
28069 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
28070 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
28071 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
28072 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28073 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
28074 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
28075 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
28076 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
28077 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
28078 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
28079 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
28080 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
28081 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
28082 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
28083 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
28084 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28085 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
28086 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28087 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28088 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
28089 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
28090 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
28091 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
28092 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
28093 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
28094 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
28095 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
28096 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
28097 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
28098 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
28099 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
28100 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28101 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
28102 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
28103 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
28104 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28105 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
28106 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
28107 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
28108 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
28109 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
28110 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
28111 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
28112 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
28113 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
28114 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
28115 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
28116 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
28117 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
28118 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
28119 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
28120 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
28121 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28122 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
28123 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
28124 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
28125 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
28126 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
28127 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
28128 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
28129 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
28130 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
28131 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28132 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
28133 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
28134 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
28135 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
28136 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
28137 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
28138 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
28139 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
28140 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
28141 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
28142 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
28143 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
28144 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
28145 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28146 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
28147 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28148 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
28149 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28150 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
28151 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
28152 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
28153 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
28154 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
28155 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
28156 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
28157 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
28158 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
28159 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
28160 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28161 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
28162 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
28163 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
28164 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
28165 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
28166 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
28167 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28168 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
28169 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
28170 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
28171 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
28172 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
28173 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
28174 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
28175 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
28176 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
28177 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
28178 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
28179 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
28180 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
28181 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
28182 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
28183 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
28184 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
28185 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28186 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
28187 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
28188 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
28189 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
28190 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
28191 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
28192 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
28193 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
28194 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
28195 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
28196 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
28197 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
28198 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
28199 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
28200 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
28201 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
28202 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
28203 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
28204 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
28205 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
28206 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
28207 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
28208 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
28209 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
28210 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
28211 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
28212 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
28213 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
28214 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
28215 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28216 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
28217 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
28218 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
28219 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
28220 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
28221 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28222 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
28223 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
28224 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
28225 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
28226 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
28227 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
28228 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
28229 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
28230 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
28231 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
28232 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
28233 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
28234 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
28235 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
28236 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
28237 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
28238 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
28239 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28240 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28241 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
28242 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
28243 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
28244 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
28245 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28246 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
28247 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28248 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
28249 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
28250 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
28251 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
28252 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
28253 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28254 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
28255 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
28256 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
28257 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
28258 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
28259 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
28260 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
28261 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
28262 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
28263 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
28264 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
28265 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
28266 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
28267 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
28268 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
28269 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
28270 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
28271 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
28272 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
28273 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
28274 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
28275 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
28276 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
28277 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
28278 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
28279 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
28280 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
28281 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
28282 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28283 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
28284 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
28285 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
28286 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
28287 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
28288 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
28289 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28290 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
28291 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
28292 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
28293 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
28294 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
28295 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
28296 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
28297 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
28298 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
28299 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28300 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
28301 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
28302 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
28303 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
28304 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
28305 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
28306 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
28307 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
28308 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
28309 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
28310 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
28311 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
28312 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
28313 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
28314 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
28315 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
28316 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
28317 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
28318 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
28319 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
28320 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
28321 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
28322 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
28323 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
28324 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
28325 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
28326 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
28327 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
28328 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
28329 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
28330 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
28331 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
28332 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
28333 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
28334 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
28335 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
28336 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
28337 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
28338 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
28339 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
28340 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
28341 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
28342 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
28343 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
28344 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
28345 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
28346 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
28347 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
28348 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
28349 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
28350 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
28351 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
28352 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
28353 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
28354 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
28355 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28356 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
28357 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
28358 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
28359 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28360 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
28361 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
28362 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
28363 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28364 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
28365 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28366 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
28367 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
28368 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
28369 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28370 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28371 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28372 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
28373 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
28374 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28375 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
28376 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
28377 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28378 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
28379 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
28380 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
28381 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
28382 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28383 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28384 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28385 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28386 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28387 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
28388 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28389 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
28390 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28391 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
28392 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28393 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
28394 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28395 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
28396 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
28397 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
28398 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
28399 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
28400 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
28401 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
28402 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
28403 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
28404 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
28405 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
28406 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
28407 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
28408 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
28409 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
28410 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
28411 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
28412 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
28413 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
28414 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
28415 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
28416 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
28417 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
28418 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
28419 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
28420 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
28421 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
28422 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
28423 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
28424 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
28425 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
28426 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
28427 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
28428 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
28429 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
28430 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
28431 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
28432 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
28433 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
28434 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
28435 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
28436 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
28437 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
28438 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
28439 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
28440 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
28441 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
28442 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
28443 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
28444 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
28445 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
28446 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
28447 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
28448 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
28449 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
28450 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
28451 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
28452 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
28453 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
28454 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
28455 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
28456 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
28457 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28458 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
28459 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
28460 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
28461 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28462 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
28463 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
28464 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
28465 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
28466 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
28467 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28468 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
28469 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
28470 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
28471 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
28472 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
28473 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
28474 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
28475 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
28476 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
28477 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
28478 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
28479 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
28480 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
28481 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
28482 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
28483 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
28484 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
28485 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
28486 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
28487 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
28488 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
28489 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
28490 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
28491 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
28492 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
28493 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
28494 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
28495 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
28496 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
28497 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
28498 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
28499 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
28500 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
28501 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
28502 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
28503 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
28504 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
28505 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
28506 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
28507 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
28508 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
28509 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
28510 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
28511 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
28512 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
28513 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
28514 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
28515 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
28516 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
28517 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
28518 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
28519 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
28520 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
28521 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
28522 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
28523 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
28524 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
28525 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
28526 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
28527 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
28528 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
28529 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
28530 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
28531 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
28532 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28533 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28534 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28535 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
28536 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
28537 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
28538 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
28539 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
28540 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
28541 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
28542 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
28543 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
28544 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
28545 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
28546 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
28547 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
28548 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
28549 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
28550 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
28551 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
28552 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
28553 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
28554 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
28555 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
28556 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
28557 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
28558 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
28559 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
28560 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
28561 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
28562 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
28563 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
28564 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
28565 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
28566 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
28567 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
28568 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
28569 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
28570 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
28571 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
28572 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
28573 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
28574 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
28575 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
28576 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
28577 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
28578 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
28579 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
28580 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
28581 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
28582 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
28583 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
28584 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
28585 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
28586 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
28587 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
28588 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
28589 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
28590 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
28591 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
28592 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
28593 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
28594 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
28595 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28596 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
28597 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
28598 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
28599 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
28600 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
28601 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
28602 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
28603 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
28604 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
28605 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
28606 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
28607 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
28608 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
28609 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
28610 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
28611 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
28612 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
28613 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
28614 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
28615 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
28616 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
28617 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
28618 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
28619 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
28620 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
28621 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
28622 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
28623 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
28624 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
28625 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
28626 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
28627 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
28628 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
28629 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
28630 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
28631 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
28632 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
28633 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
28634 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
28635 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
28636 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
28637 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
28638 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
28639 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
28640 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
28641 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
28642 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
28643 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
28644 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
28645 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28646 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
28647 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
28648 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
28649 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28650 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
28651 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28652 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
28653 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
28654 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
28655 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28656 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28657 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28658 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
28659 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
28660 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28661 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
28662 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
28663 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28664 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
28665 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
28666 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
28667 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
28668 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28669 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28670 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28671 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28672 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28673 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
28674 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28675 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
28676 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28677 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
28678 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
28679 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
28680 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
28681 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
28682 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
28683 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
28684 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
28685 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
28686 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
28687 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
28688 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
28689 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
28690 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
28691 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
28692 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
28693 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
28694 { NULL, NULL, 0, NULL }
28695 };
28696
28697
28698 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
28699
28700 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
28701 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
28702 }
28703 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
28704 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
28705 }
28706 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
28707 return (void *)((wxGDIObject *) ((wxIcon *) x));
28708 }
28709 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
28710 return (void *)((wxGDIObject *) ((wxPalette *) x));
28711 }
28712 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
28713 return (void *)((wxGDIObject *) ((wxPen *) x));
28714 }
28715 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
28716 return (void *)((wxGDIObject *) ((wxFont *) x));
28717 }
28718 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
28719 return (void *)((wxGDIObject *) ((wxCursor *) x));
28720 }
28721 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
28722 return (void *)((wxGDIObject *) ((wxBitmap *) x));
28723 }
28724 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
28725 return (void *)((wxGDIObject *) ((wxRegion *) x));
28726 }
28727 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
28728 return (void *)((wxGDIObject *) ((wxBrush *) x));
28729 }
28730 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
28731 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
28732 }
28733 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
28734 return (void *)((wxDC *) ((wxScreenDC *) x));
28735 }
28736 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
28737 return (void *)((wxDC *) ((wxMirrorDC *) x));
28738 }
28739 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
28740 return (void *)((wxDC *) ((wxMemoryDC *) x));
28741 }
28742 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
28743 return (void *)((wxDC *) ((wxWindowDC *) x));
28744 }
28745 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
28746 return (void *)((wxDC *) ((wxMetaFileDC *) x));
28747 }
28748 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
28749 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
28750 }
28751 static void *_p_wxClientDCTo_p_wxDC(void *x) {
28752 return (void *)((wxDC *) ((wxClientDC *) x));
28753 }
28754 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
28755 return (void *)((wxDC *) ((wxPaintDC *) x));
28756 }
28757 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
28758 return (void *)((wxDC *) ((wxPostScriptDC *) x));
28759 }
28760 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
28761 return (void *)((wxDC *) ((wxPrinterDC *) x));
28762 }
28763 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
28764 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
28765 }
28766 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
28767 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
28768 }
28769 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
28770 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
28771 }
28772 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
28773 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
28774 }
28775 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
28776 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
28777 }
28778 static void *_p_wxPenTo_p_wxObject(void *x) {
28779 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
28780 }
28781 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
28782 return (void *)((wxObject *) ((wxRegionIterator *) x));
28783 }
28784 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
28785 return (void *)((wxObject *) ((wxSizerItem *) x));
28786 }
28787 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
28788 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
28789 }
28790 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
28791 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
28792 }
28793 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
28794 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
28795 }
28796 static void *_p_wxIconTo_p_wxObject(void *x) {
28797 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
28798 }
28799 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
28800 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
28801 }
28802 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
28803 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
28804 }
28805 static void *_p_wxSizerTo_p_wxObject(void *x) {
28806 return (void *)((wxObject *) ((wxSizer *) x));
28807 }
28808 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
28809 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
28810 }
28811 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
28812 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
28813 }
28814 static void *_p_wxEventTo_p_wxObject(void *x) {
28815 return (void *)((wxObject *) ((wxEvent *) x));
28816 }
28817 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
28818 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
28819 }
28820 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
28821 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
28822 }
28823 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
28824 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
28825 }
28826 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
28827 return (void *)((wxObject *) ((wxPseudoDC *) x));
28828 }
28829 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
28830 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
28831 }
28832 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
28833 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
28834 }
28835 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
28836 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
28837 }
28838 static void *_p_wxDCTo_p_wxObject(void *x) {
28839 return (void *)((wxObject *) ((wxDC *) x));
28840 }
28841 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
28842 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
28843 }
28844 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
28845 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
28846 }
28847 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
28848 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
28849 }
28850 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
28851 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
28852 }
28853 static void *_p_wxControlTo_p_wxObject(void *x) {
28854 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
28855 }
28856 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
28857 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
28858 }
28859 static void *_p_wxClientDCTo_p_wxObject(void *x) {
28860 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
28861 }
28862 static void *_p_wxFSFileTo_p_wxObject(void *x) {
28863 return (void *)((wxObject *) ((wxFSFile *) x));
28864 }
28865 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
28866 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
28867 }
28868 static void *_p_wxRegionTo_p_wxObject(void *x) {
28869 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
28870 }
28871 static void *_p_wxPySizerTo_p_wxObject(void *x) {
28872 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
28873 }
28874 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
28875 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
28876 }
28877 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
28878 return (void *)((wxObject *) ((wxGDIObject *) x));
28879 }
28880 static void *_p_wxEffectsTo_p_wxObject(void *x) {
28881 return (void *)((wxObject *) ((wxEffects *) x));
28882 }
28883 static void *_p_wxPyEventTo_p_wxObject(void *x) {
28884 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
28885 }
28886 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
28887 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
28888 }
28889 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
28890 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
28891 }
28892 static void *_p_wxShowEventTo_p_wxObject(void *x) {
28893 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
28894 }
28895 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
28896 return (void *)((wxObject *) ((wxMenuItem *) x));
28897 }
28898 static void *_p_wxDateEventTo_p_wxObject(void *x) {
28899 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
28900 }
28901 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
28902 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
28903 }
28904 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
28905 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
28906 }
28907 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
28908 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
28909 }
28910 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
28911 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
28912 }
28913 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
28914 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
28915 }
28916 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
28917 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
28918 }
28919 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
28920 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
28921 }
28922 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
28923 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
28924 }
28925 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
28926 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
28927 }
28928 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
28929 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
28930 }
28931 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
28932 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
28933 }
28934 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
28935 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
28936 }
28937 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
28938 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
28939 }
28940 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
28941 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
28942 }
28943 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
28944 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
28945 }
28946 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
28947 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
28948 }
28949 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
28950 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
28951 }
28952 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
28953 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
28954 }
28955 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
28956 return (void *)((wxObject *) ((wxImageHandler *) x));
28957 }
28958 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
28959 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
28960 }
28961 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
28962 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
28963 }
28964 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
28965 return (void *)((wxObject *) ((wxEvtHandler *) x));
28966 }
28967 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
28968 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
28969 }
28970 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
28971 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
28972 }
28973 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
28974 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
28975 }
28976 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
28977 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
28978 }
28979 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
28980 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
28981 }
28982 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
28983 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
28984 }
28985 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
28986 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
28987 }
28988 static void *_p_wxImageTo_p_wxObject(void *x) {
28989 return (void *)((wxObject *) ((wxImage *) x));
28990 }
28991 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
28992 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
28993 }
28994 static void *_p_wxPaletteTo_p_wxObject(void *x) {
28995 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
28996 }
28997 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
28998 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
28999 }
29000 static void *_p_wxImageListTo_p_wxObject(void *x) {
29001 return (void *)((wxObject *) ((wxImageList *) x));
29002 }
29003 static void *_p_wxCursorTo_p_wxObject(void *x) {
29004 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
29005 }
29006 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
29007 return (void *)((wxObject *) ((wxEncodingConverter *) x));
29008 }
29009 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
29010 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
29011 }
29012 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29013 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29014 }
29015 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29016 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29017 }
29018 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29019 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29020 }
29021 static void *_p_wxWindowTo_p_wxObject(void *x) {
29022 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29023 }
29024 static void *_p_wxMenuTo_p_wxObject(void *x) {
29025 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29026 }
29027 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29028 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29029 }
29030 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
29031 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
29032 }
29033 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29034 return (void *)((wxObject *) ((wxFileSystem *) x));
29035 }
29036 static void *_p_wxBitmapTo_p_wxObject(void *x) {
29037 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
29038 }
29039 static void *_p_wxMaskTo_p_wxObject(void *x) {
29040 return (void *)((wxObject *) ((wxMask *) x));
29041 }
29042 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29043 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29044 }
29045 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29046 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29047 }
29048 static void *_p_wxPyAppTo_p_wxObject(void *x) {
29049 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29050 }
29051 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29052 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29053 }
29054 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29055 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29056 }
29057 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29058 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29059 }
29060 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29061 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29062 }
29063 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29064 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29065 }
29066 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29067 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29068 }
29069 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29070 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29071 }
29072 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29073 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29074 }
29075 static void *_p_wxFontTo_p_wxObject(void *x) {
29076 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
29077 }
29078 static void *_p_wxBrushTo_p_wxObject(void *x) {
29079 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
29080 }
29081 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
29082 return (void *)((wxObject *) ((wxMetaFile *) x));
29083 }
29084 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29085 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29086 }
29087 static void *_p_wxColourTo_p_wxObject(void *x) {
29088 return (void *)((wxObject *) ((wxColour *) x));
29089 }
29090 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29091 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29092 }
29093 static void *_p_wxValidatorTo_p_wxObject(void *x) {
29094 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29095 }
29096 static void *_p_wxControlTo_p_wxWindow(void *x) {
29097 return (void *)((wxWindow *) ((wxControl *) x));
29098 }
29099 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29100 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29101 }
29102 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29103 return (void *)((wxWindow *) ((wxMenuBar *) x));
29104 }
29105 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
29106 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
29107 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};
29108 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
29109 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
29110 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
29111 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
29112 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
29113 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
29114 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
29115 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
29116 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
29117 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
29118 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
29119 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
29120 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
29121 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
29122 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
29123 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
29124 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
29125 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
29126 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
29127 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
29128 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
29129 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
29130 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
29131 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
29132 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
29133 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
29134 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
29135 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
29136 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
29137 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
29138 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
29139 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
29140 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
29141 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
29142 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
29143 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
29144 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
29145 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
29146 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
29147 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
29148 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
29149 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
29150 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
29151 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
29152 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
29153 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
29154 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
29155 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
29156 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
29157 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
29158 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
29159 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
29160 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
29161 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
29162 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
29163 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
29164 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
29165 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
29166 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
29167 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
29168 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
29169 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
29170 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
29171 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
29172 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
29173 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
29174 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
29175 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
29176 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
29177 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
29178 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
29179 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
29180 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
29181 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
29182 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
29183 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
29184 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
29185 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
29186 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
29187 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
29188 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
29189 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
29190 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
29191 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
29192 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
29193 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
29194 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
29195 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
29196 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
29197 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
29198 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
29199 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
29200 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
29201 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
29202 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
29203 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
29204 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
29205 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
29206 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
29207 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
29208 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
29209 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
29210 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
29211 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
29212 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
29213 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
29214 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
29215 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
29216 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
29217 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
29218 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
29219 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
29220 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
29221 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
29222 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
29223 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
29224 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
29225 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
29226 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
29227 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
29228 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
29229 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
29230 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
29231 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
29232 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
29233 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
29234 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
29235 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
29236 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
29237 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
29238 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
29239 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
29240 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
29241 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
29242 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
29243 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
29244 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
29245
29246 static swig_type_info *swig_type_initial[] = {
29247 &_swigt__p_char,
29248 &_swigt__p_double,
29249 &_swigt__p_form_ops_t,
29250 &_swigt__p_int,
29251 &_swigt__p_unsigned_char,
29252 &_swigt__p_unsigned_int,
29253 &_swigt__p_unsigned_long,
29254 &_swigt__p_wxANIHandler,
29255 &_swigt__p_wxAcceleratorTable,
29256 &_swigt__p_wxActivateEvent,
29257 &_swigt__p_wxBMPHandler,
29258 &_swigt__p_wxBitmap,
29259 &_swigt__p_wxBoxSizer,
29260 &_swigt__p_wxBrush,
29261 &_swigt__p_wxBrushList,
29262 &_swigt__p_wxBufferedDC,
29263 &_swigt__p_wxBufferedPaintDC,
29264 &_swigt__p_wxCURHandler,
29265 &_swigt__p_wxChildFocusEvent,
29266 &_swigt__p_wxClientDC,
29267 &_swigt__p_wxClipboardTextEvent,
29268 &_swigt__p_wxCloseEvent,
29269 &_swigt__p_wxColour,
29270 &_swigt__p_wxColourDatabase,
29271 &_swigt__p_wxCommandEvent,
29272 &_swigt__p_wxContextMenuEvent,
29273 &_swigt__p_wxControl,
29274 &_swigt__p_wxControlWithItems,
29275 &_swigt__p_wxCursor,
29276 &_swigt__p_wxDC,
29277 &_swigt__p_wxDash,
29278 &_swigt__p_wxDateEvent,
29279 &_swigt__p_wxDisplayChangedEvent,
29280 &_swigt__p_wxDropFilesEvent,
29281 &_swigt__p_wxDuplexMode,
29282 &_swigt__p_wxEffects,
29283 &_swigt__p_wxEncodingConverter,
29284 &_swigt__p_wxEraseEvent,
29285 &_swigt__p_wxEvent,
29286 &_swigt__p_wxEvtHandler,
29287 &_swigt__p_wxFSFile,
29288 &_swigt__p_wxFileSystem,
29289 &_swigt__p_wxFlexGridSizer,
29290 &_swigt__p_wxFocusEvent,
29291 &_swigt__p_wxFont,
29292 &_swigt__p_wxFontList,
29293 &_swigt__p_wxFontMapper,
29294 &_swigt__p_wxGBSizerItem,
29295 &_swigt__p_wxGDIObjListBase,
29296 &_swigt__p_wxGDIObject,
29297 &_swigt__p_wxGIFHandler,
29298 &_swigt__p_wxGridBagSizer,
29299 &_swigt__p_wxGridSizer,
29300 &_swigt__p_wxICOHandler,
29301 &_swigt__p_wxIcon,
29302 &_swigt__p_wxIconBundle,
29303 &_swigt__p_wxIconLocation,
29304 &_swigt__p_wxIconizeEvent,
29305 &_swigt__p_wxIdleEvent,
29306 &_swigt__p_wxImage,
29307 &_swigt__p_wxImageHandler,
29308 &_swigt__p_wxImageList,
29309 &_swigt__p_wxIndividualLayoutConstraint,
29310 &_swigt__p_wxInitDialogEvent,
29311 &_swigt__p_wxJPEGHandler,
29312 &_swigt__p_wxKeyEvent,
29313 &_swigt__p_wxLanguageInfo,
29314 &_swigt__p_wxLayoutConstraints,
29315 &_swigt__p_wxLocale,
29316 &_swigt__p_wxMask,
29317 &_swigt__p_wxMaximizeEvent,
29318 &_swigt__p_wxMemoryDC,
29319 &_swigt__p_wxMenu,
29320 &_swigt__p_wxMenuBar,
29321 &_swigt__p_wxMenuEvent,
29322 &_swigt__p_wxMenuItem,
29323 &_swigt__p_wxMetaFile,
29324 &_swigt__p_wxMetaFileDC,
29325 &_swigt__p_wxMirrorDC,
29326 &_swigt__p_wxMouseCaptureChangedEvent,
29327 &_swigt__p_wxMouseCaptureLostEvent,
29328 &_swigt__p_wxMouseEvent,
29329 &_swigt__p_wxMoveEvent,
29330 &_swigt__p_wxNativeEncodingInfo,
29331 &_swigt__p_wxNativeFontInfo,
29332 &_swigt__p_wxNavigationKeyEvent,
29333 &_swigt__p_wxNcPaintEvent,
29334 &_swigt__p_wxNotifyEvent,
29335 &_swigt__p_wxObject,
29336 &_swigt__p_wxPCXHandler,
29337 &_swigt__p_wxPNGHandler,
29338 &_swigt__p_wxPNMHandler,
29339 &_swigt__p_wxPaintDC,
29340 &_swigt__p_wxPaintEvent,
29341 &_swigt__p_wxPalette,
29342 &_swigt__p_wxPaletteChangedEvent,
29343 &_swigt__p_wxPaperSize,
29344 &_swigt__p_wxPen,
29345 &_swigt__p_wxPenList,
29346 &_swigt__p_wxPoint,
29347 &_swigt__p_wxPostScriptDC,
29348 &_swigt__p_wxPrintData,
29349 &_swigt__p_wxPrinterDC,
29350 &_swigt__p_wxPseudoDC,
29351 &_swigt__p_wxPyApp,
29352 &_swigt__p_wxPyCommandEvent,
29353 &_swigt__p_wxPyEvent,
29354 &_swigt__p_wxPyFontEnumerator,
29355 &_swigt__p_wxPyImageHandler,
29356 &_swigt__p_wxPySizer,
29357 &_swigt__p_wxPyValidator,
29358 &_swigt__p_wxQueryNewPaletteEvent,
29359 &_swigt__p_wxRect,
29360 &_swigt__p_wxRegion,
29361 &_swigt__p_wxRegionIterator,
29362 &_swigt__p_wxRendererNative,
29363 &_swigt__p_wxRendererVersion,
29364 &_swigt__p_wxScreenDC,
29365 &_swigt__p_wxScrollEvent,
29366 &_swigt__p_wxScrollWinEvent,
29367 &_swigt__p_wxSetCursorEvent,
29368 &_swigt__p_wxShowEvent,
29369 &_swigt__p_wxSize,
29370 &_swigt__p_wxSizeEvent,
29371 &_swigt__p_wxSizer,
29372 &_swigt__p_wxSizerItem,
29373 &_swigt__p_wxSplitterRenderParams,
29374 &_swigt__p_wxStaticBoxSizer,
29375 &_swigt__p_wxStdDialogButtonSizer,
29376 &_swigt__p_wxStockGDI,
29377 &_swigt__p_wxString,
29378 &_swigt__p_wxSysColourChangedEvent,
29379 &_swigt__p_wxTIFFHandler,
29380 &_swigt__p_wxUpdateUIEvent,
29381 &_swigt__p_wxValidator,
29382 &_swigt__p_wxWindow,
29383 &_swigt__p_wxWindowCreateEvent,
29384 &_swigt__p_wxWindowDC,
29385 &_swigt__p_wxWindowDestroyEvent,
29386 &_swigt__p_wxXPMHandler,
29387 };
29388
29389 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
29390 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
29391 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
29392 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
29393 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
29394 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
29395 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
29396 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
29397 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
29398 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
29399 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}};
29400 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
29401 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
29402 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
29403 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
29404 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
29405 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}};
29406 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
29407 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
29408 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
29409 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
29410 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
29411 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
29412 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
29413 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}};
29414 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}};
29415 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
29416 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
29417 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
29418 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
29419 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
29420 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
29421 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
29422 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
29423 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}};
29424 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
29425 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
29426 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
29427 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
29428 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
29429 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
29430 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
29431 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
29432 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
29433 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
29434 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
29435 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
29436 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
29437 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
29438 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
29439 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
29440 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
29441 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
29442 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
29443 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
29444 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
29445 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
29446 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
29447 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
29448 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
29449 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
29450 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
29451 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
29452 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
29453 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
29454 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
29455 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
29456 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
29457 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
29458 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
29459 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
29460 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
29461 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
29462 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
29463 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
29464 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
29465 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
29466 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
29467 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
29468 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
29469 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
29470 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
29471 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
29472 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
29473 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
29474 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
29475 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
29476 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
29477 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
29478 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
29479 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
29480 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
29481 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
29482 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
29483 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
29484 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
29485 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
29486 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
29487 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
29488 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
29489 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
29490 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
29491 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
29492 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
29493 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
29494 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
29495 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
29496 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
29497 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
29498 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
29499 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
29500 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
29501 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
29502 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
29503 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
29504 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
29505 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}};
29506 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
29507 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
29508 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
29509 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
29510 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
29511 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
29512 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
29513 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
29514 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
29515 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
29516 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
29517 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
29518 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
29519 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
29520 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
29521 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
29522 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
29523 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
29524 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
29525 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
29526 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
29527 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}};
29528 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
29529
29530 static swig_cast_info *swig_cast_initial[] = {
29531 _swigc__p_char,
29532 _swigc__p_double,
29533 _swigc__p_form_ops_t,
29534 _swigc__p_int,
29535 _swigc__p_unsigned_char,
29536 _swigc__p_unsigned_int,
29537 _swigc__p_unsigned_long,
29538 _swigc__p_wxANIHandler,
29539 _swigc__p_wxAcceleratorTable,
29540 _swigc__p_wxActivateEvent,
29541 _swigc__p_wxBMPHandler,
29542 _swigc__p_wxBitmap,
29543 _swigc__p_wxBoxSizer,
29544 _swigc__p_wxBrush,
29545 _swigc__p_wxBrushList,
29546 _swigc__p_wxBufferedDC,
29547 _swigc__p_wxBufferedPaintDC,
29548 _swigc__p_wxCURHandler,
29549 _swigc__p_wxChildFocusEvent,
29550 _swigc__p_wxClientDC,
29551 _swigc__p_wxClipboardTextEvent,
29552 _swigc__p_wxCloseEvent,
29553 _swigc__p_wxColour,
29554 _swigc__p_wxColourDatabase,
29555 _swigc__p_wxCommandEvent,
29556 _swigc__p_wxContextMenuEvent,
29557 _swigc__p_wxControl,
29558 _swigc__p_wxControlWithItems,
29559 _swigc__p_wxCursor,
29560 _swigc__p_wxDC,
29561 _swigc__p_wxDash,
29562 _swigc__p_wxDateEvent,
29563 _swigc__p_wxDisplayChangedEvent,
29564 _swigc__p_wxDropFilesEvent,
29565 _swigc__p_wxDuplexMode,
29566 _swigc__p_wxEffects,
29567 _swigc__p_wxEncodingConverter,
29568 _swigc__p_wxEraseEvent,
29569 _swigc__p_wxEvent,
29570 _swigc__p_wxEvtHandler,
29571 _swigc__p_wxFSFile,
29572 _swigc__p_wxFileSystem,
29573 _swigc__p_wxFlexGridSizer,
29574 _swigc__p_wxFocusEvent,
29575 _swigc__p_wxFont,
29576 _swigc__p_wxFontList,
29577 _swigc__p_wxFontMapper,
29578 _swigc__p_wxGBSizerItem,
29579 _swigc__p_wxGDIObjListBase,
29580 _swigc__p_wxGDIObject,
29581 _swigc__p_wxGIFHandler,
29582 _swigc__p_wxGridBagSizer,
29583 _swigc__p_wxGridSizer,
29584 _swigc__p_wxICOHandler,
29585 _swigc__p_wxIcon,
29586 _swigc__p_wxIconBundle,
29587 _swigc__p_wxIconLocation,
29588 _swigc__p_wxIconizeEvent,
29589 _swigc__p_wxIdleEvent,
29590 _swigc__p_wxImage,
29591 _swigc__p_wxImageHandler,
29592 _swigc__p_wxImageList,
29593 _swigc__p_wxIndividualLayoutConstraint,
29594 _swigc__p_wxInitDialogEvent,
29595 _swigc__p_wxJPEGHandler,
29596 _swigc__p_wxKeyEvent,
29597 _swigc__p_wxLanguageInfo,
29598 _swigc__p_wxLayoutConstraints,
29599 _swigc__p_wxLocale,
29600 _swigc__p_wxMask,
29601 _swigc__p_wxMaximizeEvent,
29602 _swigc__p_wxMemoryDC,
29603 _swigc__p_wxMenu,
29604 _swigc__p_wxMenuBar,
29605 _swigc__p_wxMenuEvent,
29606 _swigc__p_wxMenuItem,
29607 _swigc__p_wxMetaFile,
29608 _swigc__p_wxMetaFileDC,
29609 _swigc__p_wxMirrorDC,
29610 _swigc__p_wxMouseCaptureChangedEvent,
29611 _swigc__p_wxMouseCaptureLostEvent,
29612 _swigc__p_wxMouseEvent,
29613 _swigc__p_wxMoveEvent,
29614 _swigc__p_wxNativeEncodingInfo,
29615 _swigc__p_wxNativeFontInfo,
29616 _swigc__p_wxNavigationKeyEvent,
29617 _swigc__p_wxNcPaintEvent,
29618 _swigc__p_wxNotifyEvent,
29619 _swigc__p_wxObject,
29620 _swigc__p_wxPCXHandler,
29621 _swigc__p_wxPNGHandler,
29622 _swigc__p_wxPNMHandler,
29623 _swigc__p_wxPaintDC,
29624 _swigc__p_wxPaintEvent,
29625 _swigc__p_wxPalette,
29626 _swigc__p_wxPaletteChangedEvent,
29627 _swigc__p_wxPaperSize,
29628 _swigc__p_wxPen,
29629 _swigc__p_wxPenList,
29630 _swigc__p_wxPoint,
29631 _swigc__p_wxPostScriptDC,
29632 _swigc__p_wxPrintData,
29633 _swigc__p_wxPrinterDC,
29634 _swigc__p_wxPseudoDC,
29635 _swigc__p_wxPyApp,
29636 _swigc__p_wxPyCommandEvent,
29637 _swigc__p_wxPyEvent,
29638 _swigc__p_wxPyFontEnumerator,
29639 _swigc__p_wxPyImageHandler,
29640 _swigc__p_wxPySizer,
29641 _swigc__p_wxPyValidator,
29642 _swigc__p_wxQueryNewPaletteEvent,
29643 _swigc__p_wxRect,
29644 _swigc__p_wxRegion,
29645 _swigc__p_wxRegionIterator,
29646 _swigc__p_wxRendererNative,
29647 _swigc__p_wxRendererVersion,
29648 _swigc__p_wxScreenDC,
29649 _swigc__p_wxScrollEvent,
29650 _swigc__p_wxScrollWinEvent,
29651 _swigc__p_wxSetCursorEvent,
29652 _swigc__p_wxShowEvent,
29653 _swigc__p_wxSize,
29654 _swigc__p_wxSizeEvent,
29655 _swigc__p_wxSizer,
29656 _swigc__p_wxSizerItem,
29657 _swigc__p_wxSplitterRenderParams,
29658 _swigc__p_wxStaticBoxSizer,
29659 _swigc__p_wxStdDialogButtonSizer,
29660 _swigc__p_wxStockGDI,
29661 _swigc__p_wxString,
29662 _swigc__p_wxSysColourChangedEvent,
29663 _swigc__p_wxTIFFHandler,
29664 _swigc__p_wxUpdateUIEvent,
29665 _swigc__p_wxValidator,
29666 _swigc__p_wxWindow,
29667 _swigc__p_wxWindowCreateEvent,
29668 _swigc__p_wxWindowDC,
29669 _swigc__p_wxWindowDestroyEvent,
29670 _swigc__p_wxXPMHandler,
29671 };
29672
29673
29674 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29675
29676 static swig_const_info swig_const_table[] = {
29677 {0, 0, 0, 0.0, 0, 0}};
29678
29679 #ifdef __cplusplus
29680 }
29681 #endif
29682 /* -----------------------------------------------------------------------------
29683 * Type initialization:
29684 * This problem is tough by the requirement that no dynamic
29685 * memory is used. Also, since swig_type_info structures store pointers to
29686 * swig_cast_info structures and swig_cast_info structures store pointers back
29687 * to swig_type_info structures, we need some lookup code at initialization.
29688 * The idea is that swig generates all the structures that are needed.
29689 * The runtime then collects these partially filled structures.
29690 * The SWIG_InitializeModule function takes these initial arrays out of
29691 * swig_module, and does all the lookup, filling in the swig_module.types
29692 * array with the correct data and linking the correct swig_cast_info
29693 * structures together.
29694 *
29695 * The generated swig_type_info structures are assigned staticly to an initial
29696 * array. We just loop though that array, and handle each type individually.
29697 * First we lookup if this type has been already loaded, and if so, use the
29698 * loaded structure instead of the generated one. Then we have to fill in the
29699 * cast linked list. The cast data is initially stored in something like a
29700 * two-dimensional array. Each row corresponds to a type (there are the same
29701 * number of rows as there are in the swig_type_initial array). Each entry in
29702 * a column is one of the swig_cast_info structures for that type.
29703 * The cast_initial array is actually an array of arrays, because each row has
29704 * a variable number of columns. So to actually build the cast linked list,
29705 * we find the array of casts associated with the type, and loop through it
29706 * adding the casts to the list. The one last trick we need to do is making
29707 * sure the type pointer in the swig_cast_info struct is correct.
29708 *
29709 * First off, we lookup the cast->type name to see if it is already loaded.
29710 * There are three cases to handle:
29711 * 1) If the cast->type has already been loaded AND the type we are adding
29712 * casting info to has not been loaded (it is in this module), THEN we
29713 * replace the cast->type pointer with the type pointer that has already
29714 * been loaded.
29715 * 2) If BOTH types (the one we are adding casting info to, and the
29716 * cast->type) are loaded, THEN the cast info has already been loaded by
29717 * the previous module so we just ignore it.
29718 * 3) Finally, if cast->type has not already been loaded, then we add that
29719 * swig_cast_info to the linked list (because the cast->type) pointer will
29720 * be correct.
29721 * ----------------------------------------------------------------------------- */
29722
29723 #ifdef __cplusplus
29724 extern "C" {
29725 #if 0
29726 } /* c-mode */
29727 #endif
29728 #endif
29729
29730 #if 0
29731 #define SWIGRUNTIME_DEBUG
29732 #endif
29733
29734 SWIGRUNTIME void
29735 SWIG_InitializeModule(void *clientdata) {
29736 size_t i;
29737 swig_module_info *module_head;
29738 static int init_run = 0;
29739
29740 clientdata = clientdata;
29741
29742 if (init_run) return;
29743 init_run = 1;
29744
29745 /* Initialize the swig_module */
29746 swig_module.type_initial = swig_type_initial;
29747 swig_module.cast_initial = swig_cast_initial;
29748
29749 /* Try and load any already created modules */
29750 module_head = SWIG_GetModule(clientdata);
29751 if (module_head) {
29752 swig_module.next = module_head->next;
29753 module_head->next = &swig_module;
29754 } else {
29755 /* This is the first module loaded */
29756 swig_module.next = &swig_module;
29757 SWIG_SetModule(clientdata, &swig_module);
29758 }
29759
29760 /* Now work on filling in swig_module.types */
29761 #ifdef SWIGRUNTIME_DEBUG
29762 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
29763 #endif
29764 for (i = 0; i < swig_module.size; ++i) {
29765 swig_type_info *type = 0;
29766 swig_type_info *ret;
29767 swig_cast_info *cast;
29768
29769 #ifdef SWIGRUNTIME_DEBUG
29770 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
29771 #endif
29772
29773 /* if there is another module already loaded */
29774 if (swig_module.next != &swig_module) {
29775 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
29776 }
29777 if (type) {
29778 /* Overwrite clientdata field */
29779 #ifdef SWIGRUNTIME_DEBUG
29780 printf("SWIG_InitializeModule: found type %s\n", type->name);
29781 #endif
29782 if (swig_module.type_initial[i]->clientdata) {
29783 type->clientdata = swig_module.type_initial[i]->clientdata;
29784 #ifdef SWIGRUNTIME_DEBUG
29785 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
29786 #endif
29787 }
29788 } else {
29789 type = swig_module.type_initial[i];
29790 }
29791
29792 /* Insert casting types */
29793 cast = swig_module.cast_initial[i];
29794 while (cast->type) {
29795 /* Don't need to add information already in the list */
29796 ret = 0;
29797 #ifdef SWIGRUNTIME_DEBUG
29798 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
29799 #endif
29800 if (swig_module.next != &swig_module) {
29801 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
29802 #ifdef SWIGRUNTIME_DEBUG
29803 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
29804 #endif
29805 }
29806 if (ret) {
29807 if (type == swig_module.type_initial[i]) {
29808 #ifdef SWIGRUNTIME_DEBUG
29809 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
29810 #endif
29811 cast->type = ret;
29812 ret = 0;
29813 } else {
29814 /* Check for casting already in the list */
29815 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
29816 #ifdef SWIGRUNTIME_DEBUG
29817 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
29818 #endif
29819 if (!ocast) ret = 0;
29820 }
29821 }
29822
29823 if (!ret) {
29824 #ifdef SWIGRUNTIME_DEBUG
29825 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
29826 #endif
29827 if (type->cast) {
29828 type->cast->prev = cast;
29829 cast->next = type->cast;
29830 }
29831 type->cast = cast;
29832 }
29833 cast++;
29834 }
29835 /* Set entry in modules->types array equal to the type */
29836 swig_module.types[i] = type;
29837 }
29838 swig_module.types[i] = 0;
29839
29840 #ifdef SWIGRUNTIME_DEBUG
29841 printf("**** SWIG_InitializeModule: Cast List ******\n");
29842 for (i = 0; i < swig_module.size; ++i) {
29843 int j = 0;
29844 swig_cast_info *cast = swig_module.cast_initial[i];
29845 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
29846 while (cast->type) {
29847 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
29848 cast++;
29849 ++j;
29850 }
29851 printf("---- Total casts: %d\n",j);
29852 }
29853 printf("**** SWIG_InitializeModule: Cast List ******\n");
29854 #endif
29855 }
29856
29857 /* This function will propagate the clientdata field of type to
29858 * any new swig_type_info structures that have been added into the list
29859 * of equivalent types. It is like calling
29860 * SWIG_TypeClientData(type, clientdata) a second time.
29861 */
29862 SWIGRUNTIME void
29863 SWIG_PropagateClientData(void) {
29864 size_t i;
29865 swig_cast_info *equiv;
29866 static int init_run = 0;
29867
29868 if (init_run) return;
29869 init_run = 1;
29870
29871 for (i = 0; i < swig_module.size; i++) {
29872 if (swig_module.types[i]->clientdata) {
29873 equiv = swig_module.types[i]->cast;
29874 while (equiv) {
29875 if (!equiv->converter) {
29876 if (equiv->type && !equiv->type->clientdata)
29877 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
29878 }
29879 equiv = equiv->next;
29880 }
29881 }
29882 }
29883 }
29884
29885 #ifdef __cplusplus
29886 #if 0
29887 {
29888 /* c-mode */
29889 #endif
29890 }
29891 #endif
29892
29893
29894
29895 #ifdef __cplusplus
29896 extern "C" {
29897 #endif
29898
29899 /* Python-specific SWIG API */
29900 #define SWIG_newvarlink() SWIG_Python_newvarlink()
29901 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
29902 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
29903
29904 /* -----------------------------------------------------------------------------
29905 * global variable support code.
29906 * ----------------------------------------------------------------------------- */
29907
29908 typedef struct swig_globalvar {
29909 char *name; /* Name of global variable */
29910 PyObject *(*get_attr)(void); /* Return the current value */
29911 int (*set_attr)(PyObject *); /* Set the value */
29912 struct swig_globalvar *next;
29913 } swig_globalvar;
29914
29915 typedef struct swig_varlinkobject {
29916 PyObject_HEAD
29917 swig_globalvar *vars;
29918 } swig_varlinkobject;
29919
29920 SWIGINTERN PyObject *
29921 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
29922 return PyString_FromString("<Swig global variables>");
29923 }
29924
29925 SWIGINTERN PyObject *
29926 swig_varlink_str(swig_varlinkobject *v) {
29927 PyObject *str = PyString_FromString("(");
29928 swig_globalvar *var;
29929 for (var = v->vars; var; var=var->next) {
29930 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
29931 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
29932 }
29933 PyString_ConcatAndDel(&str,PyString_FromString(")"));
29934 return str;
29935 }
29936
29937 SWIGINTERN int
29938 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
29939 PyObject *str = swig_varlink_str(v);
29940 fprintf(fp,"Swig global variables ");
29941 fprintf(fp,"%s\n", PyString_AsString(str));
29942 Py_DECREF(str);
29943 return 0;
29944 }
29945
29946 SWIGINTERN void
29947 swig_varlink_dealloc(swig_varlinkobject *v) {
29948 swig_globalvar *var = v->vars;
29949 while (var) {
29950 swig_globalvar *n = var->next;
29951 free(var->name);
29952 free(var);
29953 var = n;
29954 }
29955 }
29956
29957 SWIGINTERN PyObject *
29958 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
29959 PyObject *res = NULL;
29960 swig_globalvar *var = v->vars;
29961 while (var) {
29962 if (strcmp(var->name,n) == 0) {
29963 res = (*var->get_attr)();
29964 break;
29965 }
29966 var = var->next;
29967 }
29968 if (res == NULL && !PyErr_Occurred()) {
29969 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
29970 }
29971 return res;
29972 }
29973
29974 SWIGINTERN int
29975 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
29976 int res = 1;
29977 swig_globalvar *var = v->vars;
29978 while (var) {
29979 if (strcmp(var->name,n) == 0) {
29980 res = (*var->set_attr)(p);
29981 break;
29982 }
29983 var = var->next;
29984 }
29985 if (res == 1 && !PyErr_Occurred()) {
29986 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
29987 }
29988 return res;
29989 }
29990
29991 SWIGINTERN PyTypeObject*
29992 swig_varlink_type(void) {
29993 static char varlink__doc__[] = "Swig var link object";
29994 static PyTypeObject varlink_type;
29995 static int type_init = 0;
29996 if (!type_init) {
29997 const PyTypeObject tmp
29998 = {
29999 PyObject_HEAD_INIT(NULL)
30000 0, /* Number of items in variable part (ob_size) */
30001 (char *)"swigvarlink", /* Type name (tp_name) */
30002 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
30003 0, /* Itemsize (tp_itemsize) */
30004 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
30005 (printfunc) swig_varlink_print, /* Print (tp_print) */
30006 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
30007 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
30008 0, /* tp_compare */
30009 (reprfunc) swig_varlink_repr, /* tp_repr */
30010 0, /* tp_as_number */
30011 0, /* tp_as_sequence */
30012 0, /* tp_as_mapping */
30013 0, /* tp_hash */
30014 0, /* tp_call */
30015 (reprfunc)swig_varlink_str, /* tp_str */
30016 0, /* tp_getattro */
30017 0, /* tp_setattro */
30018 0, /* tp_as_buffer */
30019 0, /* tp_flags */
30020 varlink__doc__, /* tp_doc */
30021 0, /* tp_traverse */
30022 0, /* tp_clear */
30023 0, /* tp_richcompare */
30024 0, /* tp_weaklistoffset */
30025 #if PY_VERSION_HEX >= 0x02020000
30026 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
30027 #endif
30028 #if PY_VERSION_HEX >= 0x02030000
30029 0, /* tp_del */
30030 #endif
30031 #ifdef COUNT_ALLOCS
30032 0,0,0,0 /* tp_alloc -> tp_next */
30033 #endif
30034 };
30035 varlink_type = tmp;
30036 varlink_type.ob_type = &PyType_Type;
30037 type_init = 1;
30038 }
30039 return &varlink_type;
30040 }
30041
30042 /* Create a variable linking object for use later */
30043 SWIGINTERN PyObject *
30044 SWIG_Python_newvarlink(void) {
30045 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
30046 if (result) {
30047 result->vars = 0;
30048 }
30049 return ((PyObject*) result);
30050 }
30051
30052 SWIGINTERN void
30053 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
30054 swig_varlinkobject *v = (swig_varlinkobject *) p;
30055 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
30056 if (gv) {
30057 size_t size = strlen(name)+1;
30058 gv->name = (char *)malloc(size);
30059 if (gv->name) {
30060 strncpy(gv->name,name,size);
30061 gv->get_attr = get_attr;
30062 gv->set_attr = set_attr;
30063 gv->next = v->vars;
30064 }
30065 }
30066 v->vars = gv;
30067 }
30068
30069 SWIGINTERN PyObject *
30070 SWIG_globals() {
30071 static PyObject *_SWIG_globals = 0;
30072 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
30073 return _SWIG_globals;
30074 }
30075
30076 /* -----------------------------------------------------------------------------
30077 * constants/methods manipulation
30078 * ----------------------------------------------------------------------------- */
30079
30080 /* Install Constants */
30081 SWIGINTERN void
30082 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
30083 PyObject *obj = 0;
30084 size_t i;
30085 for (i = 0; constants[i].type; ++i) {
30086 switch(constants[i].type) {
30087 case SWIG_PY_POINTER:
30088 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
30089 break;
30090 case SWIG_PY_BINARY:
30091 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
30092 break;
30093 default:
30094 obj = 0;
30095 break;
30096 }
30097 if (obj) {
30098 PyDict_SetItemString(d, constants[i].name, obj);
30099 Py_DECREF(obj);
30100 }
30101 }
30102 }
30103
30104 /* -----------------------------------------------------------------------------*/
30105 /* Fix SwigMethods to carry the callback ptrs when needed */
30106 /* -----------------------------------------------------------------------------*/
30107
30108 SWIGINTERN void
30109 SWIG_Python_FixMethods(PyMethodDef *methods,
30110 swig_const_info *const_table,
30111 swig_type_info **types,
30112 swig_type_info **types_initial) {
30113 size_t i;
30114 for (i = 0; methods[i].ml_name; ++i) {
30115 const char *c = methods[i].ml_doc;
30116 if (c && (c = strstr(c, "swig_ptr: "))) {
30117 int j;
30118 swig_const_info *ci = 0;
30119 const char *name = c + 10;
30120 for (j = 0; const_table[j].type; ++j) {
30121 if (strncmp(const_table[j].name, name,
30122 strlen(const_table[j].name)) == 0) {
30123 ci = &(const_table[j]);
30124 break;
30125 }
30126 }
30127 if (ci) {
30128 size_t shift = (ci->ptype) - types;
30129 swig_type_info *ty = types_initial[shift];
30130 size_t ldoc = (c - methods[i].ml_doc);
30131 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
30132 char *ndoc = (char*)malloc(ldoc + lptr + 10);
30133 if (ndoc) {
30134 char *buff = ndoc;
30135 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
30136 if (ptr) {
30137 strncpy(buff, methods[i].ml_doc, ldoc);
30138 buff += ldoc;
30139 strncpy(buff, "swig_ptr: ", 10);
30140 buff += 10;
30141 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
30142 methods[i].ml_doc = ndoc;
30143 }
30144 }
30145 }
30146 }
30147 }
30148 }
30149
30150 #ifdef __cplusplus
30151 }
30152 #endif
30153
30154 /* -----------------------------------------------------------------------------*
30155 * Partial Init method
30156 * -----------------------------------------------------------------------------*/
30157
30158 #ifdef __cplusplus
30159 extern "C"
30160 #endif
30161 SWIGEXPORT void SWIG_init(void) {
30162 PyObject *m, *d;
30163
30164 /* Fix SwigMethods to carry the callback ptrs when needed */
30165 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
30166
30167 m = Py_InitModule((char *) SWIG_name, SwigMethods);
30168 d = PyModule_GetDict(m);
30169
30170 SWIG_InitializeModule(0);
30171 SWIG_InstallConstants(d,swig_const_table);
30172
30173
30174 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
30175 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
30176 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
30177 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
30178 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
30179 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
30180 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
30181 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
30182 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
30183 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
30184 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
30185 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
30186 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
30187 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
30188 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
30189 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
30190 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
30191 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
30192 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
30193 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
30194 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
30195 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
30196 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
30197 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
30198 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
30199 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
30200 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
30201 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
30202 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
30203 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
30204 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
30205 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
30206 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
30207 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
30208 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
30209 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
30210 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
30211 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
30212 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
30213 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
30214 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
30215 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
30216 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
30217 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
30218 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
30219 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
30220 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
30221 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
30222 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
30223 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
30224 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
30225 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
30226 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
30227 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
30228 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
30229 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
30230 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
30231 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
30232 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
30233 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
30234 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
30235 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
30236 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
30237 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
30238 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
30239 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
30240 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
30241 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
30242 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
30243 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
30244 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
30245 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
30246 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
30247 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
30248 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
30249 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
30250 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
30251 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
30252 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
30253 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
30254 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
30255 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
30256 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
30257 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
30258 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
30259 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
30260 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
30261 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
30262 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
30263 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
30264 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
30265 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
30266 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
30267 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
30268 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
30269 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
30270 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
30271 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
30272 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
30273 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
30274 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
30275 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
30276 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
30277 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
30278 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
30279 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
30280 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
30281 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
30282 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
30283 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
30284 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
30285 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
30286 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
30287 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
30288 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
30289 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
30290 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
30291 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
30292 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
30293 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
30294 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
30295 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
30296 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
30297 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
30298 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
30299 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
30300 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
30301 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
30302 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
30303 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
30304
30305 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
30306
30307 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
30308 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
30309 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
30310 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
30311 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
30312 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
30313 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
30314 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
30315 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
30316 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
30317 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
30318 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
30319 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
30320 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
30321 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
30322 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
30323 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
30324 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
30325 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
30326 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
30327 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
30328 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
30329 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
30330 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
30331 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
30332 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
30333 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
30334 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
30335 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
30336 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
30337 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
30338 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
30339 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
30340 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
30341 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
30342 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
30343 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
30344 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
30345 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
30346 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
30347 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
30348 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
30349 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
30350 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
30351 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
30352 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
30353 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
30354 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
30355 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
30356 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
30357 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
30358 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
30359 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
30360 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
30361 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
30362 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
30363 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
30364 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
30365 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
30366 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
30367 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
30368 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
30369 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
30370 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
30371 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
30372 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
30373 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
30374 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
30375 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
30376 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
30377 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
30378 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
30379 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
30380 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
30381 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
30382 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
30383 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
30384 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
30385 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
30386 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
30387 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
30388 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
30389 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
30390 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
30391 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
30392 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
30393 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
30394 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
30395 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
30396 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
30397 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
30398 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
30399 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
30400 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
30401 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
30402 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
30403 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
30404 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
30405 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
30406 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
30407 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
30408 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
30409 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
30410 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
30411 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
30412 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
30413 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
30414 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
30415 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
30416 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
30417 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
30418 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
30419 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
30420 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
30421 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
30422 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
30423 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
30424 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
30425 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
30426 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
30427 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
30428 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
30429 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
30430 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
30431 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
30432 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
30433 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
30434 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
30435 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
30436 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
30437 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
30438 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
30439 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
30440 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
30441 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
30442 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
30443 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
30444 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
30445 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
30446 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
30447 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
30448 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
30449 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
30450 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
30451 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
30452 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
30453 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
30454 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
30455 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
30456 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
30457 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
30458 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
30459 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
30460 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
30461 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
30462 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
30463 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
30464 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
30465 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
30466 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
30467 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
30468 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
30469 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
30470 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
30471 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
30472 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
30473 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
30474 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
30475 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
30476 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
30477 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
30478 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
30479 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
30480 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
30481 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
30482 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
30483 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
30484 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
30485 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
30486 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
30487 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
30488 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
30489 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
30490 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
30491 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
30492 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
30493 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
30494 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
30495 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
30496 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
30497 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
30498 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
30499 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
30500 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
30501 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
30502 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
30503 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
30504 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
30505 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
30506 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
30507 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
30508 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
30509 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
30510 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
30511 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
30512 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
30513 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
30514 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
30515 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
30516 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
30517 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
30518 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
30519 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
30520 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
30521 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
30522 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
30523 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
30524 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
30525 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
30526 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
30527 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
30528 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
30529 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
30530 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
30531 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
30532 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
30533 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
30534 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
30535 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
30536 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
30537 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
30538 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
30539 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
30540 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
30541 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
30542 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
30543 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
30544 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
30545 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
30546 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
30547 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
30548 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
30549 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
30550 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
30551 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
30552 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
30553 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
30554 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
30555 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
30556 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
30557 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
30558 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
30559 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
30560 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
30561 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
30562 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
30563 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
30564 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
30565 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
30566 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
30567 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
30568 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
30569 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
30570 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
30571 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
30572 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
30573 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
30574 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
30575 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
30576 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
30577 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
30578 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
30579 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
30580 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
30581 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
30582 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
30583 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
30584 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
30585 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
30586 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
30587 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
30588 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
30589 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
30590 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
30591 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
30592 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
30593 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
30594 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
30595 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
30596 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
30597 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
30598 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
30599 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
30600 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
30601 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
30602 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
30603 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
30604 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
30605 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
30606 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
30607 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
30608 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
30609 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
30610 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
30611 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
30612 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
30613 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
30614 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
30615 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
30616 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
30617 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
30618 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
30619 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
30620 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
30621
30622 // Work around a chicken/egg problem in drawlist.cpp
30623 wxPyDrawList_SetAPIPtr();
30624
30625 }
30626