]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_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 SWIGINTERNINLINE PyObject *
2875 SWIG_From_short (short value)
2876 {
2877 return SWIG_From_long (value);
2878 }
2879
2880
2881 SWIGINTERN int
2882 SWIG_AsVal_short (PyObject * obj, short *val)
2883 {
2884 long v;
2885 int res = SWIG_AsVal_long (obj, &v);
2886 if (SWIG_IsOK(res)) {
2887 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2888 return SWIG_OverflowError;
2889 } else {
2890 if (val) *val = static_cast< short >(v);
2891 }
2892 }
2893 return res;
2894 }
2895
2896
2897 #include <wx/image.h>
2898
2899 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2900 char** cArray = NULL;
2901 int count;
2902
2903 if (!PyList_Check(listOfStrings)) {
2904 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2905 return NULL;
2906 }
2907 count = PyList_Size(listOfStrings);
2908 cArray = new char*[count];
2909
2910 for(int x=0; x<count; x++) {
2911 // TODO: Need some validation and error checking here
2912 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2913 }
2914 return cArray;
2915 }
2916
2917
2918 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2919 char** cArray = NULL;
2920 wxBitmap* bmp;
2921
2922 cArray = ConvertListOfStrings(listOfStrings);
2923 if (! cArray)
2924 return NULL;
2925 bmp = new wxBitmap(cArray);
2926 delete [] cArray;
2927 return bmp;
2928 }
2929 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2930 char* buf;
2931 Py_ssize_t length;
2932 PyString_AsStringAndSize(bits, &buf, &length);
2933 return new wxBitmap(buf, width, height, depth);
2934 }
2935 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2936 wxSize size(self->GetWidth(), self->GetHeight());
2937 return size;
2938 }
2939 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2940 wxMask *mask = new wxMask(*self, colour);
2941 self->SetMask(mask);
2942 }
2943 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2944 self->SetWidth(size.x);
2945 self->SetHeight(size.y);
2946 }
2947 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2948 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2949 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
2950 if ( !colour.Ok() )
2951 return new wxMask(bitmap, *wxBLACK);
2952 else
2953 return new wxMask(bitmap, colour);
2954 }
2955
2956 #include <wx/iconbndl.h>
2957
2958 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
2959 wxIcon* icon = new wxIcon();
2960 icon->CopyFromBitmap(bmp);
2961 return icon;
2962 }
2963 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
2964 char** cArray = NULL;
2965 wxIcon* icon;
2966
2967 cArray = ConvertListOfStrings(listOfStrings);
2968 if (! cArray)
2969 return NULL;
2970 icon = new wxIcon(cArray);
2971 delete [] cArray;
2972 return icon;
2973 }
2974 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2975
2976
2977
2978 return new wxIconLocation(*filename);
2979
2980 }
2981 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2982
2983
2984
2985 // do nothing
2986
2987 }
2988 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
2989
2990
2991
2992 return -1;
2993
2994 }
2995 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2996 #ifdef __WXGTK__
2997 wxImage img(cursorName, type);
2998 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2999 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3000 return new wxCursor(img);
3001 #else
3002 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3003 #endif
3004 }
3005
3006
3007 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3008 (*self) ++;
3009 }
3010 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3011 return self->operator bool();
3012 }
3013
3014 #include <wx/fontutil.h>
3015 #include <wx/fontmap.h>
3016 #include <wx/fontenum.h>
3017
3018
3019 SWIGINTERN int
3020 SWIG_AsVal_bool (PyObject *obj, bool *val)
3021 {
3022 if (obj == Py_True) {
3023 if (val) *val = true;
3024 return SWIG_OK;
3025 } else if (obj == Py_False) {
3026 if (val) *val = false;
3027 return SWIG_OK;
3028 } else {
3029 long v = 0;
3030 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
3031 if (SWIG_IsOK(res) && val) *val = v ? true : false;
3032 return res;
3033 }
3034 }
3035
3036 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3037 return self->ToString();
3038 }
3039
3040 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3041 static wxNativeEncodingInfo info;
3042 if ( wxGetNativeFontEncoding(encoding, &info) )
3043 return &info;
3044 else
3045 return NULL;
3046 }
3047
3048
3049 SWIGINTERNINLINE PyObject *
3050 SWIG_From_size_t (size_t value)
3051 {
3052 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3053 }
3054
3055
3056 SWIGINTERNINLINE int
3057 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3058 {
3059 unsigned long v;
3060 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3061 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3062 return res;
3063 }
3064
3065 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3066 wxFontEncoding alt_enc;
3067 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3068 return PyInt_FromLong(alt_enc);
3069 else {
3070 Py_INCREF(Py_None);
3071 return Py_None;
3072 }
3073 }
3074 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3075 wxNativeFontInfo nfi;
3076 nfi.FromString(info);
3077 return new wxFont(nfi);
3078 }
3079 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3080 return wxFont::New(pointSize, family, flags, face, encoding);
3081 }
3082 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3083 return wxFontBase::New(pixelSize, family,
3084 style, weight, underlined,
3085 face, encoding);
3086 }
3087 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3088 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3089 }
3090 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3091 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3092
3093 class wxPyFontEnumerator : public wxFontEnumerator {
3094 public:
3095 wxPyFontEnumerator() {}
3096 ~wxPyFontEnumerator() {}
3097
3098 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3099 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3100
3101 PYPRIVATE;
3102 };
3103
3104 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3105 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3106
3107
3108 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3109 PyObject* ret;
3110 wxArrayString arr = wxFontEnumerator::GetEncodings();
3111 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3112 ret = wxArrayString2PyList_helper(arr);
3113 wxPyEndBlockThreads(blocked);
3114 return ret;
3115 }
3116 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3117 PyObject* ret;
3118 wxArrayString arr = wxFontEnumerator::GetFacenames();
3119 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3120 ret = wxArrayString2PyList_helper(arr);
3121 wxPyEndBlockThreads(blocked);
3122 return ret;
3123 }
3124
3125 #include <locale.h>
3126
3127 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3128 wxLocale* loc;
3129 if (language == -1)
3130 loc = new wxLocale();
3131 else
3132 loc = new wxLocale(language, flags);
3133 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3134 // for the floating point conversions and such to work right.
3135 #if PY_VERSION_HEX < 0x02040000
3136 setlocale(LC_NUMERIC, "C");
3137 #endif
3138 return loc;
3139 }
3140 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3141 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3142 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3143 // for the floating point conversions and such to work right.
3144 #if PY_VERSION_HEX < 0x02040000
3145 setlocale(LC_NUMERIC, "C");
3146 #endif
3147 return rc;
3148 }
3149 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3150 bool rc = self->Init(language, flags);
3151 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3152 // for the floating point conversions and such to work right.
3153 #if PY_VERSION_HEX < 0x02040000
3154 setlocale(LC_NUMERIC, "C");
3155 #endif
3156 return rc;
3157 }
3158
3159 #include "wx/wxPython/pydrawxxx.h"
3160
3161 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3162 wxColour col;
3163 self->GetPixel(x, y, &col);
3164 return col;
3165 }
3166 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3167 wxColour col;
3168 self->GetPixel(pt, &col);
3169 return col;
3170 }
3171
3172 SWIGINTERN int
3173 SWIG_AsVal_double (PyObject *obj, double* val)
3174 {
3175 if (PyNumber_Check(obj)) {
3176 if (val) *val = PyFloat_AsDouble(obj);
3177 return SWIG_OK;
3178 }
3179 return SWIG_TypeError;
3180 }
3181
3182 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3183 wxRect rv;
3184 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3185 return rv;
3186 }
3187 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3188 wxRect rect;
3189 self->GetClippingBox(rect);
3190 return rect;
3191 }
3192 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3193 wxArrayInt widths;
3194 self->GetPartialTextExtents(text, widths);
3195 return widths;
3196 }
3197
3198 #define SWIG_From_double PyFloat_FromDouble
3199
3200 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3201 self->SetLogicalOrigin(point.x, point.y);
3202 }
3203 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3204 self->SetDeviceOrigin(point.x, point.y);
3205 }
3206 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3207 self->CalcBoundingBox(point.x, point.y);
3208 }
3209 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3210 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3211 }
3212 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3213 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3214 }
3215 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3216 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3217 }
3218 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3219 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3220 }
3221 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3222 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3223 }
3224 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3225 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3226 }
3227
3228 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3229 *x1 = dc->MinX();
3230 *y1 = dc->MinY();
3231 *x2 = dc->MaxX();
3232 *y2 = dc->MaxY();
3233 }
3234
3235
3236 #include <wx/dcbuffer.h>
3237
3238
3239 #include <wx/dcps.h>
3240
3241
3242 #include <wx/metafile.h>
3243
3244
3245
3246 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3247 self->AddColour(name, wxColour(red, green, blue));
3248 }
3249
3250 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3251 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3252 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3253 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3254
3255
3256 #include <wx/effects.h>
3257
3258
3259 #include "wx/renderer.h"
3260
3261
3262 SWIGINTERNINLINE PyObject*
3263 SWIG_From_bool (bool value)
3264 {
3265 return PyBool_FromLong(value ? 1 : 0);
3266 }
3267
3268
3269 #include "wx/wxPython/pseudodc.h"
3270
3271 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3272 wxRect rect;
3273 self->GetIdBounds(id, rect);
3274 return rect;
3275 }
3276 #ifdef __cplusplus
3277 extern "C" {
3278 #endif
3279 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3280 PyObject *resultobj = 0;
3281 wxGDIObject *result = 0 ;
3282
3283 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3284 {
3285 if (!wxPyCheckForApp()) SWIG_fail;
3286 PyThreadState* __tstate = wxPyBeginAllowThreads();
3287 result = (wxGDIObject *)new wxGDIObject();
3288 wxPyEndAllowThreads(__tstate);
3289 if (PyErr_Occurred()) SWIG_fail;
3290 }
3291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3292 return resultobj;
3293 fail:
3294 return NULL;
3295 }
3296
3297
3298 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3299 PyObject *resultobj = 0;
3300 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3301 void *argp1 = 0 ;
3302 int res1 = 0 ;
3303 PyObject *swig_obj[1] ;
3304
3305 if (!args) SWIG_fail;
3306 swig_obj[0] = args;
3307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3308 if (!SWIG_IsOK(res1)) {
3309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3310 }
3311 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3312 {
3313 PyThreadState* __tstate = wxPyBeginAllowThreads();
3314 delete arg1;
3315
3316 wxPyEndAllowThreads(__tstate);
3317 if (PyErr_Occurred()) SWIG_fail;
3318 }
3319 resultobj = SWIG_Py_Void();
3320 return resultobj;
3321 fail:
3322 return NULL;
3323 }
3324
3325
3326 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3327 PyObject *resultobj = 0;
3328 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3329 bool result;
3330 void *argp1 = 0 ;
3331 int res1 = 0 ;
3332 PyObject *swig_obj[1] ;
3333
3334 if (!args) SWIG_fail;
3335 swig_obj[0] = args;
3336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3337 if (!SWIG_IsOK(res1)) {
3338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3339 }
3340 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3341 {
3342 PyThreadState* __tstate = wxPyBeginAllowThreads();
3343 result = (bool)(arg1)->IsNull();
3344 wxPyEndAllowThreads(__tstate);
3345 if (PyErr_Occurred()) SWIG_fail;
3346 }
3347 {
3348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3349 }
3350 return resultobj;
3351 fail:
3352 return NULL;
3353 }
3354
3355
3356 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3357 PyObject *obj;
3358 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3359 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3360 return SWIG_Py_Void();
3361 }
3362
3363 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3364 return SWIG_Python_InitShadowInstance(args);
3365 }
3366
3367 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3368 PyObject *resultobj = 0;
3369 byte arg1 = (byte) 0 ;
3370 byte arg2 = (byte) 0 ;
3371 byte arg3 = (byte) 0 ;
3372 wxColour *result = 0 ;
3373 unsigned char val1 ;
3374 int ecode1 = 0 ;
3375 unsigned char val2 ;
3376 int ecode2 = 0 ;
3377 unsigned char val3 ;
3378 int ecode3 = 0 ;
3379 PyObject * obj0 = 0 ;
3380 PyObject * obj1 = 0 ;
3381 PyObject * obj2 = 0 ;
3382 char * kwnames[] = {
3383 (char *) "red",(char *) "green",(char *) "blue", NULL
3384 };
3385
3386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3387 if (obj0) {
3388 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3389 if (!SWIG_IsOK(ecode1)) {
3390 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3391 }
3392 arg1 = static_cast< byte >(val1);
3393 }
3394 if (obj1) {
3395 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3396 if (!SWIG_IsOK(ecode2)) {
3397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3398 }
3399 arg2 = static_cast< byte >(val2);
3400 }
3401 if (obj2) {
3402 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3403 if (!SWIG_IsOK(ecode3)) {
3404 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3405 }
3406 arg3 = static_cast< byte >(val3);
3407 }
3408 {
3409 PyThreadState* __tstate = wxPyBeginAllowThreads();
3410 result = (wxColour *)new wxColour(arg1,arg2,arg3);
3411 wxPyEndAllowThreads(__tstate);
3412 if (PyErr_Occurred()) SWIG_fail;
3413 }
3414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3415 return resultobj;
3416 fail:
3417 return NULL;
3418 }
3419
3420
3421 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3422 PyObject *resultobj = 0;
3423 wxString *arg1 = 0 ;
3424 wxColour *result = 0 ;
3425 bool temp1 = false ;
3426 PyObject * obj0 = 0 ;
3427 char * kwnames[] = {
3428 (char *) "colorName", NULL
3429 };
3430
3431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3432 {
3433 arg1 = wxString_in_helper(obj0);
3434 if (arg1 == NULL) SWIG_fail;
3435 temp1 = true;
3436 }
3437 {
3438 if (!wxPyCheckForApp()) SWIG_fail;
3439 PyThreadState* __tstate = wxPyBeginAllowThreads();
3440 result = (wxColour *)new wxColour((wxString const &)*arg1);
3441 wxPyEndAllowThreads(__tstate);
3442 if (PyErr_Occurred()) SWIG_fail;
3443 }
3444 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3445 {
3446 if (temp1)
3447 delete arg1;
3448 }
3449 return resultobj;
3450 fail:
3451 {
3452 if (temp1)
3453 delete arg1;
3454 }
3455 return NULL;
3456 }
3457
3458
3459 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3460 PyObject *resultobj = 0;
3461 unsigned long arg1 ;
3462 wxColour *result = 0 ;
3463 unsigned long val1 ;
3464 int ecode1 = 0 ;
3465 PyObject * obj0 = 0 ;
3466 char * kwnames[] = {
3467 (char *) "colRGB", NULL
3468 };
3469
3470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3471 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3472 if (!SWIG_IsOK(ecode1)) {
3473 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3474 }
3475 arg1 = static_cast< unsigned long >(val1);
3476 {
3477 PyThreadState* __tstate = wxPyBeginAllowThreads();
3478 result = (wxColour *)new wxColour(arg1);
3479 wxPyEndAllowThreads(__tstate);
3480 if (PyErr_Occurred()) SWIG_fail;
3481 }
3482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3483 return resultobj;
3484 fail:
3485 return NULL;
3486 }
3487
3488
3489 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3490 PyObject *resultobj = 0;
3491 wxColour *arg1 = (wxColour *) 0 ;
3492 void *argp1 = 0 ;
3493 int res1 = 0 ;
3494 PyObject *swig_obj[1] ;
3495
3496 if (!args) SWIG_fail;
3497 swig_obj[0] = args;
3498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3499 if (!SWIG_IsOK(res1)) {
3500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3501 }
3502 arg1 = reinterpret_cast< wxColour * >(argp1);
3503 {
3504 PyThreadState* __tstate = wxPyBeginAllowThreads();
3505 delete arg1;
3506
3507 wxPyEndAllowThreads(__tstate);
3508 if (PyErr_Occurred()) SWIG_fail;
3509 }
3510 resultobj = SWIG_Py_Void();
3511 return resultobj;
3512 fail:
3513 return NULL;
3514 }
3515
3516
3517 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3518 PyObject *resultobj = 0;
3519 wxColour *arg1 = (wxColour *) 0 ;
3520 byte result;
3521 void *argp1 = 0 ;
3522 int res1 = 0 ;
3523 PyObject *swig_obj[1] ;
3524
3525 if (!args) SWIG_fail;
3526 swig_obj[0] = args;
3527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3528 if (!SWIG_IsOK(res1)) {
3529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3530 }
3531 arg1 = reinterpret_cast< wxColour * >(argp1);
3532 {
3533 PyThreadState* __tstate = wxPyBeginAllowThreads();
3534 result = (byte)(arg1)->Red();
3535 wxPyEndAllowThreads(__tstate);
3536 if (PyErr_Occurred()) SWIG_fail;
3537 }
3538 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3539 return resultobj;
3540 fail:
3541 return NULL;
3542 }
3543
3544
3545 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3546 PyObject *resultobj = 0;
3547 wxColour *arg1 = (wxColour *) 0 ;
3548 byte result;
3549 void *argp1 = 0 ;
3550 int res1 = 0 ;
3551 PyObject *swig_obj[1] ;
3552
3553 if (!args) SWIG_fail;
3554 swig_obj[0] = args;
3555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3556 if (!SWIG_IsOK(res1)) {
3557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3558 }
3559 arg1 = reinterpret_cast< wxColour * >(argp1);
3560 {
3561 PyThreadState* __tstate = wxPyBeginAllowThreads();
3562 result = (byte)(arg1)->Green();
3563 wxPyEndAllowThreads(__tstate);
3564 if (PyErr_Occurred()) SWIG_fail;
3565 }
3566 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3567 return resultobj;
3568 fail:
3569 return NULL;
3570 }
3571
3572
3573 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3574 PyObject *resultobj = 0;
3575 wxColour *arg1 = (wxColour *) 0 ;
3576 byte result;
3577 void *argp1 = 0 ;
3578 int res1 = 0 ;
3579 PyObject *swig_obj[1] ;
3580
3581 if (!args) SWIG_fail;
3582 swig_obj[0] = args;
3583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3584 if (!SWIG_IsOK(res1)) {
3585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3586 }
3587 arg1 = reinterpret_cast< wxColour * >(argp1);
3588 {
3589 PyThreadState* __tstate = wxPyBeginAllowThreads();
3590 result = (byte)(arg1)->Blue();
3591 wxPyEndAllowThreads(__tstate);
3592 if (PyErr_Occurred()) SWIG_fail;
3593 }
3594 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3595 return resultobj;
3596 fail:
3597 return NULL;
3598 }
3599
3600
3601 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3602 PyObject *resultobj = 0;
3603 wxColour *arg1 = (wxColour *) 0 ;
3604 bool result;
3605 void *argp1 = 0 ;
3606 int res1 = 0 ;
3607 PyObject *swig_obj[1] ;
3608
3609 if (!args) SWIG_fail;
3610 swig_obj[0] = args;
3611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3612 if (!SWIG_IsOK(res1)) {
3613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3614 }
3615 arg1 = reinterpret_cast< wxColour * >(argp1);
3616 {
3617 PyThreadState* __tstate = wxPyBeginAllowThreads();
3618 result = (bool)(arg1)->Ok();
3619 wxPyEndAllowThreads(__tstate);
3620 if (PyErr_Occurred()) SWIG_fail;
3621 }
3622 {
3623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3624 }
3625 return resultobj;
3626 fail:
3627 return NULL;
3628 }
3629
3630
3631 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3632 PyObject *resultobj = 0;
3633 wxColour *arg1 = (wxColour *) 0 ;
3634 byte arg2 ;
3635 byte arg3 ;
3636 byte arg4 ;
3637 void *argp1 = 0 ;
3638 int res1 = 0 ;
3639 unsigned char val2 ;
3640 int ecode2 = 0 ;
3641 unsigned char val3 ;
3642 int ecode3 = 0 ;
3643 unsigned char val4 ;
3644 int ecode4 = 0 ;
3645 PyObject * obj0 = 0 ;
3646 PyObject * obj1 = 0 ;
3647 PyObject * obj2 = 0 ;
3648 PyObject * obj3 = 0 ;
3649 char * kwnames[] = {
3650 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3651 };
3652
3653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3655 if (!SWIG_IsOK(res1)) {
3656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3657 }
3658 arg1 = reinterpret_cast< wxColour * >(argp1);
3659 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3660 if (!SWIG_IsOK(ecode2)) {
3661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3662 }
3663 arg2 = static_cast< byte >(val2);
3664 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3665 if (!SWIG_IsOK(ecode3)) {
3666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3667 }
3668 arg3 = static_cast< byte >(val3);
3669 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3670 if (!SWIG_IsOK(ecode4)) {
3671 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3672 }
3673 arg4 = static_cast< byte >(val4);
3674 {
3675 PyThreadState* __tstate = wxPyBeginAllowThreads();
3676 (arg1)->Set(arg2,arg3,arg4);
3677 wxPyEndAllowThreads(__tstate);
3678 if (PyErr_Occurred()) SWIG_fail;
3679 }
3680 resultobj = SWIG_Py_Void();
3681 return resultobj;
3682 fail:
3683 return NULL;
3684 }
3685
3686
3687 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3688 PyObject *resultobj = 0;
3689 wxColour *arg1 = (wxColour *) 0 ;
3690 unsigned long arg2 ;
3691 void *argp1 = 0 ;
3692 int res1 = 0 ;
3693 unsigned long val2 ;
3694 int ecode2 = 0 ;
3695 PyObject * obj0 = 0 ;
3696 PyObject * obj1 = 0 ;
3697 char * kwnames[] = {
3698 (char *) "self",(char *) "colRGB", NULL
3699 };
3700
3701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
3702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3703 if (!SWIG_IsOK(res1)) {
3704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3705 }
3706 arg1 = reinterpret_cast< wxColour * >(argp1);
3707 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
3708 if (!SWIG_IsOK(ecode2)) {
3709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3710 }
3711 arg2 = static_cast< unsigned long >(val2);
3712 {
3713 PyThreadState* __tstate = wxPyBeginAllowThreads();
3714 (arg1)->Set(arg2);
3715 wxPyEndAllowThreads(__tstate);
3716 if (PyErr_Occurred()) SWIG_fail;
3717 }
3718 resultobj = SWIG_Py_Void();
3719 return resultobj;
3720 fail:
3721 return NULL;
3722 }
3723
3724
3725 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3726 PyObject *resultobj = 0;
3727 wxColour *arg1 = (wxColour *) 0 ;
3728 wxString *arg2 = 0 ;
3729 void *argp1 = 0 ;
3730 int res1 = 0 ;
3731 bool temp2 = false ;
3732 PyObject * obj0 = 0 ;
3733 PyObject * obj1 = 0 ;
3734 char * kwnames[] = {
3735 (char *) "self",(char *) "colourName", NULL
3736 };
3737
3738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
3739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3740 if (!SWIG_IsOK(res1)) {
3741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3742 }
3743 arg1 = reinterpret_cast< wxColour * >(argp1);
3744 {
3745 arg2 = wxString_in_helper(obj1);
3746 if (arg2 == NULL) SWIG_fail;
3747 temp2 = true;
3748 }
3749 {
3750 PyThreadState* __tstate = wxPyBeginAllowThreads();
3751 (arg1)->InitFromName((wxString const &)*arg2);
3752 wxPyEndAllowThreads(__tstate);
3753 if (PyErr_Occurred()) SWIG_fail;
3754 }
3755 resultobj = SWIG_Py_Void();
3756 {
3757 if (temp2)
3758 delete arg2;
3759 }
3760 return resultobj;
3761 fail:
3762 {
3763 if (temp2)
3764 delete arg2;
3765 }
3766 return NULL;
3767 }
3768
3769
3770 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3771 PyObject *resultobj = 0;
3772 wxColour *arg1 = (wxColour *) 0 ;
3773 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
3774 wxString result;
3775 void *argp1 = 0 ;
3776 int res1 = 0 ;
3777 long val2 ;
3778 int ecode2 = 0 ;
3779 PyObject * obj0 = 0 ;
3780 PyObject * obj1 = 0 ;
3781 char * kwnames[] = {
3782 (char *) "self",(char *) "flags", NULL
3783 };
3784
3785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
3786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3787 if (!SWIG_IsOK(res1)) {
3788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
3789 }
3790 arg1 = reinterpret_cast< wxColour * >(argp1);
3791 if (obj1) {
3792 ecode2 = SWIG_AsVal_long(obj1, &val2);
3793 if (!SWIG_IsOK(ecode2)) {
3794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
3795 }
3796 arg2 = static_cast< long >(val2);
3797 }
3798 {
3799 PyThreadState* __tstate = wxPyBeginAllowThreads();
3800 result = ((wxColour const *)arg1)->GetAsString(arg2);
3801 wxPyEndAllowThreads(__tstate);
3802 if (PyErr_Occurred()) SWIG_fail;
3803 }
3804 {
3805 #if wxUSE_UNICODE
3806 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3807 #else
3808 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3809 #endif
3810 }
3811 return resultobj;
3812 fail:
3813 return NULL;
3814 }
3815
3816
3817 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3818 PyObject *resultobj = 0;
3819 wxColour *arg1 = (wxColour *) 0 ;
3820 long result;
3821 void *argp1 = 0 ;
3822 int res1 = 0 ;
3823 PyObject *swig_obj[1] ;
3824
3825 if (!args) SWIG_fail;
3826 swig_obj[0] = args;
3827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3828 if (!SWIG_IsOK(res1)) {
3829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3830 }
3831 arg1 = reinterpret_cast< wxColour * >(argp1);
3832 {
3833 PyThreadState* __tstate = wxPyBeginAllowThreads();
3834 result = (long)((wxColour const *)arg1)->GetPixel();
3835 wxPyEndAllowThreads(__tstate);
3836 if (PyErr_Occurred()) SWIG_fail;
3837 }
3838 resultobj = SWIG_From_long(static_cast< long >(result));
3839 return resultobj;
3840 fail:
3841 return NULL;
3842 }
3843
3844
3845 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3846 PyObject *resultobj = 0;
3847 wxColour *arg1 = (wxColour *) 0 ;
3848 PyObject *arg2 = (PyObject *) 0 ;
3849 bool result;
3850 void *argp1 = 0 ;
3851 int res1 = 0 ;
3852 PyObject * obj0 = 0 ;
3853 PyObject * obj1 = 0 ;
3854 char * kwnames[] = {
3855 (char *) "self",(char *) "other", NULL
3856 };
3857
3858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3860 if (!SWIG_IsOK(res1)) {
3861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
3862 }
3863 arg1 = reinterpret_cast< wxColour * >(argp1);
3864 arg2 = obj1;
3865 {
3866 result = (bool)wxColour___eq__(arg1,arg2);
3867 if (PyErr_Occurred()) SWIG_fail;
3868 }
3869 {
3870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3871 }
3872 return resultobj;
3873 fail:
3874 return NULL;
3875 }
3876
3877
3878 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3879 PyObject *resultobj = 0;
3880 wxColour *arg1 = (wxColour *) 0 ;
3881 PyObject *arg2 = (PyObject *) 0 ;
3882 bool result;
3883 void *argp1 = 0 ;
3884 int res1 = 0 ;
3885 PyObject * obj0 = 0 ;
3886 PyObject * obj1 = 0 ;
3887 char * kwnames[] = {
3888 (char *) "self",(char *) "other", NULL
3889 };
3890
3891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
3892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3893 if (!SWIG_IsOK(res1)) {
3894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
3895 }
3896 arg1 = reinterpret_cast< wxColour * >(argp1);
3897 arg2 = obj1;
3898 {
3899 result = (bool)wxColour___ne__(arg1,arg2);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 {
3903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3904 }
3905 return resultobj;
3906 fail:
3907 return NULL;
3908 }
3909
3910
3911 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3912 PyObject *resultobj = 0;
3913 wxColour *arg1 = (wxColour *) 0 ;
3914 PyObject *result = 0 ;
3915 void *argp1 = 0 ;
3916 int res1 = 0 ;
3917 PyObject *swig_obj[1] ;
3918
3919 if (!args) SWIG_fail;
3920 swig_obj[0] = args;
3921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3922 if (!SWIG_IsOK(res1)) {
3923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
3924 }
3925 arg1 = reinterpret_cast< wxColour * >(argp1);
3926 {
3927 PyThreadState* __tstate = wxPyBeginAllowThreads();
3928 result = (PyObject *)wxColour_Get(arg1);
3929 wxPyEndAllowThreads(__tstate);
3930 if (PyErr_Occurred()) SWIG_fail;
3931 }
3932 resultobj = result;
3933 return resultobj;
3934 fail:
3935 return NULL;
3936 }
3937
3938
3939 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3940 PyObject *resultobj = 0;
3941 wxColour *arg1 = (wxColour *) 0 ;
3942 unsigned long result;
3943 void *argp1 = 0 ;
3944 int res1 = 0 ;
3945 PyObject *swig_obj[1] ;
3946
3947 if (!args) SWIG_fail;
3948 swig_obj[0] = args;
3949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3950 if (!SWIG_IsOK(res1)) {
3951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3952 }
3953 arg1 = reinterpret_cast< wxColour * >(argp1);
3954 {
3955 PyThreadState* __tstate = wxPyBeginAllowThreads();
3956 result = (unsigned long)wxColour_GetRGB(arg1);
3957 wxPyEndAllowThreads(__tstate);
3958 if (PyErr_Occurred()) SWIG_fail;
3959 }
3960 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
3961 return resultobj;
3962 fail:
3963 return NULL;
3964 }
3965
3966
3967 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3968 PyObject *obj;
3969 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3970 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
3971 return SWIG_Py_Void();
3972 }
3973
3974 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3975 return SWIG_Python_InitShadowInstance(args);
3976 }
3977
3978 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3979 PyObject *resultobj = 0;
3980 int arg1 ;
3981 unsigned char *arg2 = (unsigned char *) 0 ;
3982 unsigned char *arg3 = (unsigned char *) 0 ;
3983 unsigned char *arg4 = (unsigned char *) 0 ;
3984 wxPalette *result = 0 ;
3985 int val1 ;
3986 int ecode1 = 0 ;
3987 void *argp2 = 0 ;
3988 int res2 = 0 ;
3989 void *argp3 = 0 ;
3990 int res3 = 0 ;
3991 void *argp4 = 0 ;
3992 int res4 = 0 ;
3993 PyObject * obj0 = 0 ;
3994 PyObject * obj1 = 0 ;
3995 PyObject * obj2 = 0 ;
3996 PyObject * obj3 = 0 ;
3997 char * kwnames[] = {
3998 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3999 };
4000
4001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4002 ecode1 = SWIG_AsVal_int(obj0, &val1);
4003 if (!SWIG_IsOK(ecode1)) {
4004 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4005 }
4006 arg1 = static_cast< int >(val1);
4007 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4008 if (!SWIG_IsOK(res2)) {
4009 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4010 }
4011 arg2 = reinterpret_cast< unsigned char * >(argp2);
4012 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4013 if (!SWIG_IsOK(res3)) {
4014 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4015 }
4016 arg3 = reinterpret_cast< unsigned char * >(argp3);
4017 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4018 if (!SWIG_IsOK(res4)) {
4019 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4020 }
4021 arg4 = reinterpret_cast< unsigned char * >(argp4);
4022 {
4023 if (!wxPyCheckForApp()) SWIG_fail;
4024 PyThreadState* __tstate = wxPyBeginAllowThreads();
4025 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4026 wxPyEndAllowThreads(__tstate);
4027 if (PyErr_Occurred()) SWIG_fail;
4028 }
4029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4030 return resultobj;
4031 fail:
4032 return NULL;
4033 }
4034
4035
4036 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4037 PyObject *resultobj = 0;
4038 wxPalette *arg1 = (wxPalette *) 0 ;
4039 void *argp1 = 0 ;
4040 int res1 = 0 ;
4041 PyObject *swig_obj[1] ;
4042
4043 if (!args) SWIG_fail;
4044 swig_obj[0] = args;
4045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4046 if (!SWIG_IsOK(res1)) {
4047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4048 }
4049 arg1 = reinterpret_cast< wxPalette * >(argp1);
4050 {
4051 PyThreadState* __tstate = wxPyBeginAllowThreads();
4052 delete arg1;
4053
4054 wxPyEndAllowThreads(__tstate);
4055 if (PyErr_Occurred()) SWIG_fail;
4056 }
4057 resultobj = SWIG_Py_Void();
4058 return resultobj;
4059 fail:
4060 return NULL;
4061 }
4062
4063
4064 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4065 PyObject *resultobj = 0;
4066 wxPalette *arg1 = (wxPalette *) 0 ;
4067 byte arg2 ;
4068 byte arg3 ;
4069 byte arg4 ;
4070 int result;
4071 void *argp1 = 0 ;
4072 int res1 = 0 ;
4073 unsigned char val2 ;
4074 int ecode2 = 0 ;
4075 unsigned char val3 ;
4076 int ecode3 = 0 ;
4077 unsigned char val4 ;
4078 int ecode4 = 0 ;
4079 PyObject * obj0 = 0 ;
4080 PyObject * obj1 = 0 ;
4081 PyObject * obj2 = 0 ;
4082 PyObject * obj3 = 0 ;
4083 char * kwnames[] = {
4084 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4085 };
4086
4087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4089 if (!SWIG_IsOK(res1)) {
4090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4091 }
4092 arg1 = reinterpret_cast< wxPalette * >(argp1);
4093 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4094 if (!SWIG_IsOK(ecode2)) {
4095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4096 }
4097 arg2 = static_cast< byte >(val2);
4098 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4099 if (!SWIG_IsOK(ecode3)) {
4100 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4101 }
4102 arg3 = static_cast< byte >(val3);
4103 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4104 if (!SWIG_IsOK(ecode4)) {
4105 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4106 }
4107 arg4 = static_cast< byte >(val4);
4108 {
4109 PyThreadState* __tstate = wxPyBeginAllowThreads();
4110 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4111 wxPyEndAllowThreads(__tstate);
4112 if (PyErr_Occurred()) SWIG_fail;
4113 }
4114 resultobj = SWIG_From_int(static_cast< int >(result));
4115 return resultobj;
4116 fail:
4117 return NULL;
4118 }
4119
4120
4121 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4122 PyObject *resultobj = 0;
4123 wxPalette *arg1 = (wxPalette *) 0 ;
4124 int arg2 ;
4125 byte *arg3 = (byte *) 0 ;
4126 byte *arg4 = (byte *) 0 ;
4127 byte *arg5 = (byte *) 0 ;
4128 bool result;
4129 void *argp1 = 0 ;
4130 int res1 = 0 ;
4131 int val2 ;
4132 int ecode2 = 0 ;
4133 byte temp3 ;
4134 int res3 = SWIG_TMPOBJ ;
4135 byte temp4 ;
4136 int res4 = SWIG_TMPOBJ ;
4137 byte temp5 ;
4138 int res5 = SWIG_TMPOBJ ;
4139 PyObject * obj0 = 0 ;
4140 PyObject * obj1 = 0 ;
4141 char * kwnames[] = {
4142 (char *) "self",(char *) "pixel", NULL
4143 };
4144
4145 arg3 = &temp3;
4146 arg4 = &temp4;
4147 arg5 = &temp5;
4148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4150 if (!SWIG_IsOK(res1)) {
4151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4152 }
4153 arg1 = reinterpret_cast< wxPalette * >(argp1);
4154 ecode2 = SWIG_AsVal_int(obj1, &val2);
4155 if (!SWIG_IsOK(ecode2)) {
4156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4157 }
4158 arg2 = static_cast< int >(val2);
4159 {
4160 PyThreadState* __tstate = wxPyBeginAllowThreads();
4161 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4162 wxPyEndAllowThreads(__tstate);
4163 if (PyErr_Occurred()) SWIG_fail;
4164 }
4165 {
4166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4167 }
4168 if (SWIG_IsTmpObj(res3)) {
4169 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4170 } else {
4171 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4172 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4173 }
4174 if (SWIG_IsTmpObj(res4)) {
4175 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4176 } else {
4177 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4178 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4179 }
4180 if (SWIG_IsTmpObj(res5)) {
4181 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4182 } else {
4183 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4184 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4185 }
4186 return resultobj;
4187 fail:
4188 return NULL;
4189 }
4190
4191
4192 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4193 PyObject *resultobj = 0;
4194 wxPalette *arg1 = (wxPalette *) 0 ;
4195 int result;
4196 void *argp1 = 0 ;
4197 int res1 = 0 ;
4198 PyObject *swig_obj[1] ;
4199
4200 if (!args) SWIG_fail;
4201 swig_obj[0] = args;
4202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4203 if (!SWIG_IsOK(res1)) {
4204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4205 }
4206 arg1 = reinterpret_cast< wxPalette * >(argp1);
4207 {
4208 PyThreadState* __tstate = wxPyBeginAllowThreads();
4209 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4210 wxPyEndAllowThreads(__tstate);
4211 if (PyErr_Occurred()) SWIG_fail;
4212 }
4213 resultobj = SWIG_From_int(static_cast< int >(result));
4214 return resultobj;
4215 fail:
4216 return NULL;
4217 }
4218
4219
4220 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4221 PyObject *resultobj = 0;
4222 wxPalette *arg1 = (wxPalette *) 0 ;
4223 bool result;
4224 void *argp1 = 0 ;
4225 int res1 = 0 ;
4226 PyObject *swig_obj[1] ;
4227
4228 if (!args) SWIG_fail;
4229 swig_obj[0] = args;
4230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4231 if (!SWIG_IsOK(res1)) {
4232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4233 }
4234 arg1 = reinterpret_cast< wxPalette * >(argp1);
4235 {
4236 PyThreadState* __tstate = wxPyBeginAllowThreads();
4237 result = (bool)(arg1)->Ok();
4238 wxPyEndAllowThreads(__tstate);
4239 if (PyErr_Occurred()) SWIG_fail;
4240 }
4241 {
4242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4243 }
4244 return resultobj;
4245 fail:
4246 return NULL;
4247 }
4248
4249
4250 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4251 PyObject *obj;
4252 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4253 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4254 return SWIG_Py_Void();
4255 }
4256
4257 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4258 return SWIG_Python_InitShadowInstance(args);
4259 }
4260
4261 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4262 PyObject *resultobj = 0;
4263 wxColour *arg1 = 0 ;
4264 int arg2 = (int) 1 ;
4265 int arg3 = (int) wxSOLID ;
4266 wxPen *result = 0 ;
4267 wxColour temp1 ;
4268 int val2 ;
4269 int ecode2 = 0 ;
4270 int val3 ;
4271 int ecode3 = 0 ;
4272 PyObject * obj0 = 0 ;
4273 PyObject * obj1 = 0 ;
4274 PyObject * obj2 = 0 ;
4275 char * kwnames[] = {
4276 (char *) "colour",(char *) "width",(char *) "style", NULL
4277 };
4278
4279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4280 {
4281 arg1 = &temp1;
4282 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4283 }
4284 if (obj1) {
4285 ecode2 = SWIG_AsVal_int(obj1, &val2);
4286 if (!SWIG_IsOK(ecode2)) {
4287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4288 }
4289 arg2 = static_cast< int >(val2);
4290 }
4291 if (obj2) {
4292 ecode3 = SWIG_AsVal_int(obj2, &val3);
4293 if (!SWIG_IsOK(ecode3)) {
4294 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4295 }
4296 arg3 = static_cast< int >(val3);
4297 }
4298 {
4299 if (!wxPyCheckForApp()) SWIG_fail;
4300 PyThreadState* __tstate = wxPyBeginAllowThreads();
4301 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4302 wxPyEndAllowThreads(__tstate);
4303 if (PyErr_Occurred()) SWIG_fail;
4304 }
4305 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4306 return resultobj;
4307 fail:
4308 return NULL;
4309 }
4310
4311
4312 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4313 PyObject *resultobj = 0;
4314 wxPen *arg1 = (wxPen *) 0 ;
4315 void *argp1 = 0 ;
4316 int res1 = 0 ;
4317 PyObject *swig_obj[1] ;
4318
4319 if (!args) SWIG_fail;
4320 swig_obj[0] = args;
4321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4322 if (!SWIG_IsOK(res1)) {
4323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4324 }
4325 arg1 = reinterpret_cast< wxPen * >(argp1);
4326 {
4327 PyThreadState* __tstate = wxPyBeginAllowThreads();
4328 delete arg1;
4329
4330 wxPyEndAllowThreads(__tstate);
4331 if (PyErr_Occurred()) SWIG_fail;
4332 }
4333 resultobj = SWIG_Py_Void();
4334 return resultobj;
4335 fail:
4336 return NULL;
4337 }
4338
4339
4340 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4341 PyObject *resultobj = 0;
4342 wxPen *arg1 = (wxPen *) 0 ;
4343 int result;
4344 void *argp1 = 0 ;
4345 int res1 = 0 ;
4346 PyObject *swig_obj[1] ;
4347
4348 if (!args) SWIG_fail;
4349 swig_obj[0] = args;
4350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4351 if (!SWIG_IsOK(res1)) {
4352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4353 }
4354 arg1 = reinterpret_cast< wxPen * >(argp1);
4355 {
4356 PyThreadState* __tstate = wxPyBeginAllowThreads();
4357 result = (int)(arg1)->GetCap();
4358 wxPyEndAllowThreads(__tstate);
4359 if (PyErr_Occurred()) SWIG_fail;
4360 }
4361 resultobj = SWIG_From_int(static_cast< int >(result));
4362 return resultobj;
4363 fail:
4364 return NULL;
4365 }
4366
4367
4368 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4369 PyObject *resultobj = 0;
4370 wxPen *arg1 = (wxPen *) 0 ;
4371 wxColour result;
4372 void *argp1 = 0 ;
4373 int res1 = 0 ;
4374 PyObject *swig_obj[1] ;
4375
4376 if (!args) SWIG_fail;
4377 swig_obj[0] = args;
4378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4379 if (!SWIG_IsOK(res1)) {
4380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4381 }
4382 arg1 = reinterpret_cast< wxPen * >(argp1);
4383 {
4384 PyThreadState* __tstate = wxPyBeginAllowThreads();
4385 result = (arg1)->GetColour();
4386 wxPyEndAllowThreads(__tstate);
4387 if (PyErr_Occurred()) SWIG_fail;
4388 }
4389 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4390 return resultobj;
4391 fail:
4392 return NULL;
4393 }
4394
4395
4396 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4397 PyObject *resultobj = 0;
4398 wxPen *arg1 = (wxPen *) 0 ;
4399 int result;
4400 void *argp1 = 0 ;
4401 int res1 = 0 ;
4402 PyObject *swig_obj[1] ;
4403
4404 if (!args) SWIG_fail;
4405 swig_obj[0] = args;
4406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4407 if (!SWIG_IsOK(res1)) {
4408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4409 }
4410 arg1 = reinterpret_cast< wxPen * >(argp1);
4411 {
4412 PyThreadState* __tstate = wxPyBeginAllowThreads();
4413 result = (int)(arg1)->GetJoin();
4414 wxPyEndAllowThreads(__tstate);
4415 if (PyErr_Occurred()) SWIG_fail;
4416 }
4417 resultobj = SWIG_From_int(static_cast< int >(result));
4418 return resultobj;
4419 fail:
4420 return NULL;
4421 }
4422
4423
4424 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4425 PyObject *resultobj = 0;
4426 wxPen *arg1 = (wxPen *) 0 ;
4427 int result;
4428 void *argp1 = 0 ;
4429 int res1 = 0 ;
4430 PyObject *swig_obj[1] ;
4431
4432 if (!args) SWIG_fail;
4433 swig_obj[0] = args;
4434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4435 if (!SWIG_IsOK(res1)) {
4436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4437 }
4438 arg1 = reinterpret_cast< wxPen * >(argp1);
4439 {
4440 PyThreadState* __tstate = wxPyBeginAllowThreads();
4441 result = (int)(arg1)->GetStyle();
4442 wxPyEndAllowThreads(__tstate);
4443 if (PyErr_Occurred()) SWIG_fail;
4444 }
4445 resultobj = SWIG_From_int(static_cast< int >(result));
4446 return resultobj;
4447 fail:
4448 return NULL;
4449 }
4450
4451
4452 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4453 PyObject *resultobj = 0;
4454 wxPen *arg1 = (wxPen *) 0 ;
4455 int result;
4456 void *argp1 = 0 ;
4457 int res1 = 0 ;
4458 PyObject *swig_obj[1] ;
4459
4460 if (!args) SWIG_fail;
4461 swig_obj[0] = args;
4462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4463 if (!SWIG_IsOK(res1)) {
4464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4465 }
4466 arg1 = reinterpret_cast< wxPen * >(argp1);
4467 {
4468 PyThreadState* __tstate = wxPyBeginAllowThreads();
4469 result = (int)(arg1)->GetWidth();
4470 wxPyEndAllowThreads(__tstate);
4471 if (PyErr_Occurred()) SWIG_fail;
4472 }
4473 resultobj = SWIG_From_int(static_cast< int >(result));
4474 return resultobj;
4475 fail:
4476 return NULL;
4477 }
4478
4479
4480 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4481 PyObject *resultobj = 0;
4482 wxPen *arg1 = (wxPen *) 0 ;
4483 bool result;
4484 void *argp1 = 0 ;
4485 int res1 = 0 ;
4486 PyObject *swig_obj[1] ;
4487
4488 if (!args) SWIG_fail;
4489 swig_obj[0] = args;
4490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4491 if (!SWIG_IsOK(res1)) {
4492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4493 }
4494 arg1 = reinterpret_cast< wxPen * >(argp1);
4495 {
4496 PyThreadState* __tstate = wxPyBeginAllowThreads();
4497 result = (bool)(arg1)->Ok();
4498 wxPyEndAllowThreads(__tstate);
4499 if (PyErr_Occurred()) SWIG_fail;
4500 }
4501 {
4502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4503 }
4504 return resultobj;
4505 fail:
4506 return NULL;
4507 }
4508
4509
4510 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4511 PyObject *resultobj = 0;
4512 wxPen *arg1 = (wxPen *) 0 ;
4513 int arg2 ;
4514 void *argp1 = 0 ;
4515 int res1 = 0 ;
4516 int val2 ;
4517 int ecode2 = 0 ;
4518 PyObject * obj0 = 0 ;
4519 PyObject * obj1 = 0 ;
4520 char * kwnames[] = {
4521 (char *) "self",(char *) "cap_style", NULL
4522 };
4523
4524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4526 if (!SWIG_IsOK(res1)) {
4527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4528 }
4529 arg1 = reinterpret_cast< wxPen * >(argp1);
4530 ecode2 = SWIG_AsVal_int(obj1, &val2);
4531 if (!SWIG_IsOK(ecode2)) {
4532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4533 }
4534 arg2 = static_cast< int >(val2);
4535 {
4536 PyThreadState* __tstate = wxPyBeginAllowThreads();
4537 (arg1)->SetCap(arg2);
4538 wxPyEndAllowThreads(__tstate);
4539 if (PyErr_Occurred()) SWIG_fail;
4540 }
4541 resultobj = SWIG_Py_Void();
4542 return resultobj;
4543 fail:
4544 return NULL;
4545 }
4546
4547
4548 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4549 PyObject *resultobj = 0;
4550 wxPen *arg1 = (wxPen *) 0 ;
4551 wxColour *arg2 = 0 ;
4552 void *argp1 = 0 ;
4553 int res1 = 0 ;
4554 wxColour temp2 ;
4555 PyObject * obj0 = 0 ;
4556 PyObject * obj1 = 0 ;
4557 char * kwnames[] = {
4558 (char *) "self",(char *) "colour", NULL
4559 };
4560
4561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4563 if (!SWIG_IsOK(res1)) {
4564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4565 }
4566 arg1 = reinterpret_cast< wxPen * >(argp1);
4567 {
4568 arg2 = &temp2;
4569 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4570 }
4571 {
4572 PyThreadState* __tstate = wxPyBeginAllowThreads();
4573 (arg1)->SetColour(*arg2);
4574 wxPyEndAllowThreads(__tstate);
4575 if (PyErr_Occurred()) SWIG_fail;
4576 }
4577 resultobj = SWIG_Py_Void();
4578 return resultobj;
4579 fail:
4580 return NULL;
4581 }
4582
4583
4584 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4585 PyObject *resultobj = 0;
4586 wxPen *arg1 = (wxPen *) 0 ;
4587 int arg2 ;
4588 void *argp1 = 0 ;
4589 int res1 = 0 ;
4590 int val2 ;
4591 int ecode2 = 0 ;
4592 PyObject * obj0 = 0 ;
4593 PyObject * obj1 = 0 ;
4594 char * kwnames[] = {
4595 (char *) "self",(char *) "join_style", NULL
4596 };
4597
4598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4600 if (!SWIG_IsOK(res1)) {
4601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4602 }
4603 arg1 = reinterpret_cast< wxPen * >(argp1);
4604 ecode2 = SWIG_AsVal_int(obj1, &val2);
4605 if (!SWIG_IsOK(ecode2)) {
4606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4607 }
4608 arg2 = static_cast< int >(val2);
4609 {
4610 PyThreadState* __tstate = wxPyBeginAllowThreads();
4611 (arg1)->SetJoin(arg2);
4612 wxPyEndAllowThreads(__tstate);
4613 if (PyErr_Occurred()) SWIG_fail;
4614 }
4615 resultobj = SWIG_Py_Void();
4616 return resultobj;
4617 fail:
4618 return NULL;
4619 }
4620
4621
4622 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4623 PyObject *resultobj = 0;
4624 wxPen *arg1 = (wxPen *) 0 ;
4625 int arg2 ;
4626 void *argp1 = 0 ;
4627 int res1 = 0 ;
4628 int val2 ;
4629 int ecode2 = 0 ;
4630 PyObject * obj0 = 0 ;
4631 PyObject * obj1 = 0 ;
4632 char * kwnames[] = {
4633 (char *) "self",(char *) "style", NULL
4634 };
4635
4636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4638 if (!SWIG_IsOK(res1)) {
4639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4640 }
4641 arg1 = reinterpret_cast< wxPen * >(argp1);
4642 ecode2 = SWIG_AsVal_int(obj1, &val2);
4643 if (!SWIG_IsOK(ecode2)) {
4644 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4645 }
4646 arg2 = static_cast< int >(val2);
4647 {
4648 PyThreadState* __tstate = wxPyBeginAllowThreads();
4649 (arg1)->SetStyle(arg2);
4650 wxPyEndAllowThreads(__tstate);
4651 if (PyErr_Occurred()) SWIG_fail;
4652 }
4653 resultobj = SWIG_Py_Void();
4654 return resultobj;
4655 fail:
4656 return NULL;
4657 }
4658
4659
4660 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4661 PyObject *resultobj = 0;
4662 wxPen *arg1 = (wxPen *) 0 ;
4663 int arg2 ;
4664 void *argp1 = 0 ;
4665 int res1 = 0 ;
4666 int val2 ;
4667 int ecode2 = 0 ;
4668 PyObject * obj0 = 0 ;
4669 PyObject * obj1 = 0 ;
4670 char * kwnames[] = {
4671 (char *) "self",(char *) "width", NULL
4672 };
4673
4674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
4675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4676 if (!SWIG_IsOK(res1)) {
4677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4678 }
4679 arg1 = reinterpret_cast< wxPen * >(argp1);
4680 ecode2 = SWIG_AsVal_int(obj1, &val2);
4681 if (!SWIG_IsOK(ecode2)) {
4682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
4683 }
4684 arg2 = static_cast< int >(val2);
4685 {
4686 PyThreadState* __tstate = wxPyBeginAllowThreads();
4687 (arg1)->SetWidth(arg2);
4688 wxPyEndAllowThreads(__tstate);
4689 if (PyErr_Occurred()) SWIG_fail;
4690 }
4691 resultobj = SWIG_Py_Void();
4692 return resultobj;
4693 fail:
4694 return NULL;
4695 }
4696
4697
4698 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4699 PyObject *resultobj = 0;
4700 wxPen *arg1 = (wxPen *) 0 ;
4701 int arg2 ;
4702 wxDash *arg3 = (wxDash *) 0 ;
4703 void *argp1 = 0 ;
4704 int res1 = 0 ;
4705 PyObject * obj0 = 0 ;
4706 PyObject * obj1 = 0 ;
4707 char * kwnames[] = {
4708 (char *) "self",(char *) "dashes", NULL
4709 };
4710
4711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
4712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4713 if (!SWIG_IsOK(res1)) {
4714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4715 }
4716 arg1 = reinterpret_cast< wxPen * >(argp1);
4717 {
4718 arg2 = PyList_Size(obj1);
4719 arg3 = (wxDash*)byte_LIST_helper(obj1);
4720 if (arg3 == NULL) SWIG_fail;
4721 }
4722 {
4723 PyThreadState* __tstate = wxPyBeginAllowThreads();
4724 (arg1)->SetDashes(arg2,arg3);
4725 wxPyEndAllowThreads(__tstate);
4726 if (PyErr_Occurred()) SWIG_fail;
4727 }
4728 resultobj = SWIG_Py_Void();
4729 {
4730 if (arg3) delete [] arg3;
4731 }
4732 return resultobj;
4733 fail:
4734 {
4735 if (arg3) delete [] arg3;
4736 }
4737 return NULL;
4738 }
4739
4740
4741 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4742 PyObject *resultobj = 0;
4743 wxPen *arg1 = (wxPen *) 0 ;
4744 PyObject *result = 0 ;
4745 void *argp1 = 0 ;
4746 int res1 = 0 ;
4747 PyObject *swig_obj[1] ;
4748
4749 if (!args) SWIG_fail;
4750 swig_obj[0] = args;
4751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4752 if (!SWIG_IsOK(res1)) {
4753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4754 }
4755 arg1 = reinterpret_cast< wxPen * >(argp1);
4756 {
4757 PyThreadState* __tstate = wxPyBeginAllowThreads();
4758 result = (PyObject *)wxPen_GetDashes(arg1);
4759 wxPyEndAllowThreads(__tstate);
4760 if (PyErr_Occurred()) SWIG_fail;
4761 }
4762 resultobj = result;
4763 return resultobj;
4764 fail:
4765 return NULL;
4766 }
4767
4768
4769 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4770 PyObject *resultobj = 0;
4771 wxPen *arg1 = (wxPen *) 0 ;
4772 PyObject *arg2 = (PyObject *) 0 ;
4773 PyObject *arg3 = (PyObject *) 0 ;
4774 void *argp1 = 0 ;
4775 int res1 = 0 ;
4776 PyObject * obj0 = 0 ;
4777 PyObject * obj1 = 0 ;
4778 PyObject * obj2 = 0 ;
4779 char * kwnames[] = {
4780 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
4781 };
4782
4783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4785 if (!SWIG_IsOK(res1)) {
4786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4787 }
4788 arg1 = reinterpret_cast< wxPen * >(argp1);
4789 arg2 = obj1;
4790 arg3 = obj2;
4791 {
4792 PyThreadState* __tstate = wxPyBeginAllowThreads();
4793 wxPen__SetDashes(arg1,arg2,arg3);
4794 wxPyEndAllowThreads(__tstate);
4795 if (PyErr_Occurred()) SWIG_fail;
4796 }
4797 resultobj = SWIG_Py_Void();
4798 return resultobj;
4799 fail:
4800 return NULL;
4801 }
4802
4803
4804 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4805 PyObject *resultobj = 0;
4806 wxPen *arg1 = (wxPen *) 0 ;
4807 wxPen *arg2 = (wxPen *) 0 ;
4808 bool result;
4809 void *argp1 = 0 ;
4810 int res1 = 0 ;
4811 void *argp2 = 0 ;
4812 int res2 = 0 ;
4813 PyObject * obj0 = 0 ;
4814 PyObject * obj1 = 0 ;
4815 char * kwnames[] = {
4816 (char *) "self",(char *) "other", NULL
4817 };
4818
4819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4821 if (!SWIG_IsOK(res1)) {
4822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
4823 }
4824 arg1 = reinterpret_cast< wxPen * >(argp1);
4825 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4826 if (!SWIG_IsOK(res2)) {
4827 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
4828 }
4829 arg2 = reinterpret_cast< wxPen * >(argp2);
4830 {
4831 PyThreadState* __tstate = wxPyBeginAllowThreads();
4832 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
4833 wxPyEndAllowThreads(__tstate);
4834 if (PyErr_Occurred()) SWIG_fail;
4835 }
4836 {
4837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4838 }
4839 return resultobj;
4840 fail:
4841 return NULL;
4842 }
4843
4844
4845 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4846 PyObject *resultobj = 0;
4847 wxPen *arg1 = (wxPen *) 0 ;
4848 wxPen *arg2 = (wxPen *) 0 ;
4849 bool result;
4850 void *argp1 = 0 ;
4851 int res1 = 0 ;
4852 void *argp2 = 0 ;
4853 int res2 = 0 ;
4854 PyObject * obj0 = 0 ;
4855 PyObject * obj1 = 0 ;
4856 char * kwnames[] = {
4857 (char *) "self",(char *) "other", NULL
4858 };
4859
4860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4862 if (!SWIG_IsOK(res1)) {
4863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
4864 }
4865 arg1 = reinterpret_cast< wxPen * >(argp1);
4866 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4867 if (!SWIG_IsOK(res2)) {
4868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
4869 }
4870 arg2 = reinterpret_cast< wxPen * >(argp2);
4871 {
4872 PyThreadState* __tstate = wxPyBeginAllowThreads();
4873 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
4874 wxPyEndAllowThreads(__tstate);
4875 if (PyErr_Occurred()) SWIG_fail;
4876 }
4877 {
4878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4879 }
4880 return resultobj;
4881 fail:
4882 return NULL;
4883 }
4884
4885
4886 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4887 PyObject *obj;
4888 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4889 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
4890 return SWIG_Py_Void();
4891 }
4892
4893 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4894 return SWIG_Python_InitShadowInstance(args);
4895 }
4896
4897 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4898 PyObject *resultobj = 0;
4899 wxColour *arg1 = 0 ;
4900 int arg2 = (int) wxSOLID ;
4901 wxBrush *result = 0 ;
4902 wxColour temp1 ;
4903 int val2 ;
4904 int ecode2 = 0 ;
4905 PyObject * obj0 = 0 ;
4906 PyObject * obj1 = 0 ;
4907 char * kwnames[] = {
4908 (char *) "colour",(char *) "style", NULL
4909 };
4910
4911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
4912 {
4913 arg1 = &temp1;
4914 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4915 }
4916 if (obj1) {
4917 ecode2 = SWIG_AsVal_int(obj1, &val2);
4918 if (!SWIG_IsOK(ecode2)) {
4919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
4920 }
4921 arg2 = static_cast< int >(val2);
4922 }
4923 {
4924 if (!wxPyCheckForApp()) SWIG_fail;
4925 PyThreadState* __tstate = wxPyBeginAllowThreads();
4926 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
4927 wxPyEndAllowThreads(__tstate);
4928 if (PyErr_Occurred()) SWIG_fail;
4929 }
4930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
4931 return resultobj;
4932 fail:
4933 return NULL;
4934 }
4935
4936
4937 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4938 PyObject *resultobj = 0;
4939 wxBitmap *arg1 = 0 ;
4940 wxBrush *result = 0 ;
4941 void *argp1 = 0 ;
4942 int res1 = 0 ;
4943 PyObject * obj0 = 0 ;
4944 char * kwnames[] = {
4945 (char *) "stippleBitmap", NULL
4946 };
4947
4948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
4949 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
4950 if (!SWIG_IsOK(res1)) {
4951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4952 }
4953 if (!argp1) {
4954 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4955 }
4956 arg1 = reinterpret_cast< wxBitmap * >(argp1);
4957 {
4958 if (!wxPyCheckForApp()) SWIG_fail;
4959 PyThreadState* __tstate = wxPyBeginAllowThreads();
4960 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
4961 wxPyEndAllowThreads(__tstate);
4962 if (PyErr_Occurred()) SWIG_fail;
4963 }
4964 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
4965 return resultobj;
4966 fail:
4967 return NULL;
4968 }
4969
4970
4971 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4972 PyObject *resultobj = 0;
4973 wxBrush *arg1 = (wxBrush *) 0 ;
4974 void *argp1 = 0 ;
4975 int res1 = 0 ;
4976 PyObject *swig_obj[1] ;
4977
4978 if (!args) SWIG_fail;
4979 swig_obj[0] = args;
4980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
4981 if (!SWIG_IsOK(res1)) {
4982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
4983 }
4984 arg1 = reinterpret_cast< wxBrush * >(argp1);
4985 {
4986 PyThreadState* __tstate = wxPyBeginAllowThreads();
4987 delete arg1;
4988
4989 wxPyEndAllowThreads(__tstate);
4990 if (PyErr_Occurred()) SWIG_fail;
4991 }
4992 resultobj = SWIG_Py_Void();
4993 return resultobj;
4994 fail:
4995 return NULL;
4996 }
4997
4998
4999 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5000 PyObject *resultobj = 0;
5001 wxBrush *arg1 = (wxBrush *) 0 ;
5002 wxColour *arg2 = 0 ;
5003 void *argp1 = 0 ;
5004 int res1 = 0 ;
5005 wxColour temp2 ;
5006 PyObject * obj0 = 0 ;
5007 PyObject * obj1 = 0 ;
5008 char * kwnames[] = {
5009 (char *) "self",(char *) "col", NULL
5010 };
5011
5012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5014 if (!SWIG_IsOK(res1)) {
5015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5016 }
5017 arg1 = reinterpret_cast< wxBrush * >(argp1);
5018 {
5019 arg2 = &temp2;
5020 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5021 }
5022 {
5023 PyThreadState* __tstate = wxPyBeginAllowThreads();
5024 (arg1)->SetColour((wxColour const &)*arg2);
5025 wxPyEndAllowThreads(__tstate);
5026 if (PyErr_Occurred()) SWIG_fail;
5027 }
5028 resultobj = SWIG_Py_Void();
5029 return resultobj;
5030 fail:
5031 return NULL;
5032 }
5033
5034
5035 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5036 PyObject *resultobj = 0;
5037 wxBrush *arg1 = (wxBrush *) 0 ;
5038 int arg2 ;
5039 void *argp1 = 0 ;
5040 int res1 = 0 ;
5041 int val2 ;
5042 int ecode2 = 0 ;
5043 PyObject * obj0 = 0 ;
5044 PyObject * obj1 = 0 ;
5045 char * kwnames[] = {
5046 (char *) "self",(char *) "style", NULL
5047 };
5048
5049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5051 if (!SWIG_IsOK(res1)) {
5052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5053 }
5054 arg1 = reinterpret_cast< wxBrush * >(argp1);
5055 ecode2 = SWIG_AsVal_int(obj1, &val2);
5056 if (!SWIG_IsOK(ecode2)) {
5057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5058 }
5059 arg2 = static_cast< int >(val2);
5060 {
5061 PyThreadState* __tstate = wxPyBeginAllowThreads();
5062 (arg1)->SetStyle(arg2);
5063 wxPyEndAllowThreads(__tstate);
5064 if (PyErr_Occurred()) SWIG_fail;
5065 }
5066 resultobj = SWIG_Py_Void();
5067 return resultobj;
5068 fail:
5069 return NULL;
5070 }
5071
5072
5073 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5074 PyObject *resultobj = 0;
5075 wxBrush *arg1 = (wxBrush *) 0 ;
5076 wxBitmap *arg2 = 0 ;
5077 void *argp1 = 0 ;
5078 int res1 = 0 ;
5079 void *argp2 = 0 ;
5080 int res2 = 0 ;
5081 PyObject * obj0 = 0 ;
5082 PyObject * obj1 = 0 ;
5083 char * kwnames[] = {
5084 (char *) "self",(char *) "stipple", NULL
5085 };
5086
5087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5089 if (!SWIG_IsOK(res1)) {
5090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5091 }
5092 arg1 = reinterpret_cast< wxBrush * >(argp1);
5093 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5094 if (!SWIG_IsOK(res2)) {
5095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5096 }
5097 if (!argp2) {
5098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5099 }
5100 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5101 {
5102 PyThreadState* __tstate = wxPyBeginAllowThreads();
5103 (arg1)->SetStipple((wxBitmap const &)*arg2);
5104 wxPyEndAllowThreads(__tstate);
5105 if (PyErr_Occurred()) SWIG_fail;
5106 }
5107 resultobj = SWIG_Py_Void();
5108 return resultobj;
5109 fail:
5110 return NULL;
5111 }
5112
5113
5114 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5115 PyObject *resultobj = 0;
5116 wxBrush *arg1 = (wxBrush *) 0 ;
5117 wxColour result;
5118 void *argp1 = 0 ;
5119 int res1 = 0 ;
5120 PyObject *swig_obj[1] ;
5121
5122 if (!args) SWIG_fail;
5123 swig_obj[0] = args;
5124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5125 if (!SWIG_IsOK(res1)) {
5126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5127 }
5128 arg1 = reinterpret_cast< wxBrush * >(argp1);
5129 {
5130 PyThreadState* __tstate = wxPyBeginAllowThreads();
5131 result = ((wxBrush const *)arg1)->GetColour();
5132 wxPyEndAllowThreads(__tstate);
5133 if (PyErr_Occurred()) SWIG_fail;
5134 }
5135 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5136 return resultobj;
5137 fail:
5138 return NULL;
5139 }
5140
5141
5142 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5143 PyObject *resultobj = 0;
5144 wxBrush *arg1 = (wxBrush *) 0 ;
5145 int result;
5146 void *argp1 = 0 ;
5147 int res1 = 0 ;
5148 PyObject *swig_obj[1] ;
5149
5150 if (!args) SWIG_fail;
5151 swig_obj[0] = args;
5152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5153 if (!SWIG_IsOK(res1)) {
5154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5155 }
5156 arg1 = reinterpret_cast< wxBrush * >(argp1);
5157 {
5158 PyThreadState* __tstate = wxPyBeginAllowThreads();
5159 result = (int)((wxBrush const *)arg1)->GetStyle();
5160 wxPyEndAllowThreads(__tstate);
5161 if (PyErr_Occurred()) SWIG_fail;
5162 }
5163 resultobj = SWIG_From_int(static_cast< int >(result));
5164 return resultobj;
5165 fail:
5166 return NULL;
5167 }
5168
5169
5170 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5171 PyObject *resultobj = 0;
5172 wxBrush *arg1 = (wxBrush *) 0 ;
5173 wxBitmap *result = 0 ;
5174 void *argp1 = 0 ;
5175 int res1 = 0 ;
5176 PyObject *swig_obj[1] ;
5177
5178 if (!args) SWIG_fail;
5179 swig_obj[0] = args;
5180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5181 if (!SWIG_IsOK(res1)) {
5182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5183 }
5184 arg1 = reinterpret_cast< wxBrush * >(argp1);
5185 {
5186 PyThreadState* __tstate = wxPyBeginAllowThreads();
5187 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5188 wxPyEndAllowThreads(__tstate);
5189 if (PyErr_Occurred()) SWIG_fail;
5190 }
5191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5192 return resultobj;
5193 fail:
5194 return NULL;
5195 }
5196
5197
5198 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5199 PyObject *resultobj = 0;
5200 wxBrush *arg1 = (wxBrush *) 0 ;
5201 bool result;
5202 void *argp1 = 0 ;
5203 int res1 = 0 ;
5204 PyObject *swig_obj[1] ;
5205
5206 if (!args) SWIG_fail;
5207 swig_obj[0] = args;
5208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5209 if (!SWIG_IsOK(res1)) {
5210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5211 }
5212 arg1 = reinterpret_cast< wxBrush * >(argp1);
5213 {
5214 PyThreadState* __tstate = wxPyBeginAllowThreads();
5215 result = (bool)((wxBrush const *)arg1)->IsHatch();
5216 wxPyEndAllowThreads(__tstate);
5217 if (PyErr_Occurred()) SWIG_fail;
5218 }
5219 {
5220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5221 }
5222 return resultobj;
5223 fail:
5224 return NULL;
5225 }
5226
5227
5228 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5229 PyObject *resultobj = 0;
5230 wxBrush *arg1 = (wxBrush *) 0 ;
5231 bool result;
5232 void *argp1 = 0 ;
5233 int res1 = 0 ;
5234 PyObject *swig_obj[1] ;
5235
5236 if (!args) SWIG_fail;
5237 swig_obj[0] = args;
5238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5239 if (!SWIG_IsOK(res1)) {
5240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5241 }
5242 arg1 = reinterpret_cast< wxBrush * >(argp1);
5243 {
5244 PyThreadState* __tstate = wxPyBeginAllowThreads();
5245 result = (bool)(arg1)->Ok();
5246 wxPyEndAllowThreads(__tstate);
5247 if (PyErr_Occurred()) SWIG_fail;
5248 }
5249 {
5250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5251 }
5252 return resultobj;
5253 fail:
5254 return NULL;
5255 }
5256
5257
5258 SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5259 PyObject *resultobj = 0;
5260 wxBrush *arg1 = (wxBrush *) 0 ;
5261 short result;
5262 void *argp1 = 0 ;
5263 int res1 = 0 ;
5264 PyObject *swig_obj[1] ;
5265
5266 if (!args) SWIG_fail;
5267 swig_obj[0] = args;
5268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5269 if (!SWIG_IsOK(res1)) {
5270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5271 }
5272 arg1 = reinterpret_cast< wxBrush * >(argp1);
5273 {
5274 PyThreadState* __tstate = wxPyBeginAllowThreads();
5275 result = (short)(arg1)->MacGetTheme();
5276 wxPyEndAllowThreads(__tstate);
5277 if (PyErr_Occurred()) SWIG_fail;
5278 }
5279 resultobj = SWIG_From_short(static_cast< short >(result));
5280 return resultobj;
5281 fail:
5282 return NULL;
5283 }
5284
5285
5286 SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5287 PyObject *resultobj = 0;
5288 wxBrush *arg1 = (wxBrush *) 0 ;
5289 short arg2 ;
5290 void *argp1 = 0 ;
5291 int res1 = 0 ;
5292 short val2 ;
5293 int ecode2 = 0 ;
5294 PyObject * obj0 = 0 ;
5295 PyObject * obj1 = 0 ;
5296 char * kwnames[] = {
5297 (char *) "self",(char *) "macThemeBrush", NULL
5298 };
5299
5300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
5301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5302 if (!SWIG_IsOK(res1)) {
5303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5304 }
5305 arg1 = reinterpret_cast< wxBrush * >(argp1);
5306 ecode2 = SWIG_AsVal_short(obj1, &val2);
5307 if (!SWIG_IsOK(ecode2)) {
5308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
5309 }
5310 arg2 = static_cast< short >(val2);
5311 {
5312 PyThreadState* __tstate = wxPyBeginAllowThreads();
5313 (arg1)->MacSetTheme(arg2);
5314 wxPyEndAllowThreads(__tstate);
5315 if (PyErr_Occurred()) SWIG_fail;
5316 }
5317 resultobj = SWIG_Py_Void();
5318 return resultobj;
5319 fail:
5320 return NULL;
5321 }
5322
5323
5324 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5325 PyObject *obj;
5326 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5327 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5328 return SWIG_Py_Void();
5329 }
5330
5331 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5332 return SWIG_Python_InitShadowInstance(args);
5333 }
5334
5335 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5336 PyObject *resultobj = 0;
5337 wxString *arg1 = 0 ;
5338 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5339 wxBitmap *result = 0 ;
5340 bool temp1 = false ;
5341 int val2 ;
5342 int ecode2 = 0 ;
5343 PyObject * obj0 = 0 ;
5344 PyObject * obj1 = 0 ;
5345 char * kwnames[] = {
5346 (char *) "name",(char *) "type", NULL
5347 };
5348
5349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5350 {
5351 arg1 = wxString_in_helper(obj0);
5352 if (arg1 == NULL) SWIG_fail;
5353 temp1 = true;
5354 }
5355 if (obj1) {
5356 ecode2 = SWIG_AsVal_int(obj1, &val2);
5357 if (!SWIG_IsOK(ecode2)) {
5358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5359 }
5360 arg2 = static_cast< wxBitmapType >(val2);
5361 }
5362 {
5363 if (!wxPyCheckForApp()) SWIG_fail;
5364 PyThreadState* __tstate = wxPyBeginAllowThreads();
5365 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5366 wxPyEndAllowThreads(__tstate);
5367 if (PyErr_Occurred()) SWIG_fail;
5368 }
5369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5370 {
5371 if (temp1)
5372 delete arg1;
5373 }
5374 return resultobj;
5375 fail:
5376 {
5377 if (temp1)
5378 delete arg1;
5379 }
5380 return NULL;
5381 }
5382
5383
5384 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5385 PyObject *resultobj = 0;
5386 wxBitmap *arg1 = (wxBitmap *) 0 ;
5387 void *argp1 = 0 ;
5388 int res1 = 0 ;
5389 PyObject *swig_obj[1] ;
5390
5391 if (!args) SWIG_fail;
5392 swig_obj[0] = args;
5393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5394 if (!SWIG_IsOK(res1)) {
5395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5396 }
5397 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5398 {
5399 PyThreadState* __tstate = wxPyBeginAllowThreads();
5400 delete arg1;
5401
5402 wxPyEndAllowThreads(__tstate);
5403 if (PyErr_Occurred()) SWIG_fail;
5404 }
5405 resultobj = SWIG_Py_Void();
5406 return resultobj;
5407 fail:
5408 return NULL;
5409 }
5410
5411
5412 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5413 PyObject *resultobj = 0;
5414 int arg1 ;
5415 int arg2 ;
5416 int arg3 = (int) -1 ;
5417 wxBitmap *result = 0 ;
5418 int val1 ;
5419 int ecode1 = 0 ;
5420 int val2 ;
5421 int ecode2 = 0 ;
5422 int val3 ;
5423 int ecode3 = 0 ;
5424 PyObject * obj0 = 0 ;
5425 PyObject * obj1 = 0 ;
5426 PyObject * obj2 = 0 ;
5427 char * kwnames[] = {
5428 (char *) "width",(char *) "height",(char *) "depth", NULL
5429 };
5430
5431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5432 ecode1 = SWIG_AsVal_int(obj0, &val1);
5433 if (!SWIG_IsOK(ecode1)) {
5434 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5435 }
5436 arg1 = static_cast< int >(val1);
5437 ecode2 = SWIG_AsVal_int(obj1, &val2);
5438 if (!SWIG_IsOK(ecode2)) {
5439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5440 }
5441 arg2 = static_cast< int >(val2);
5442 if (obj2) {
5443 ecode3 = SWIG_AsVal_int(obj2, &val3);
5444 if (!SWIG_IsOK(ecode3)) {
5445 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5446 }
5447 arg3 = static_cast< int >(val3);
5448 }
5449 {
5450 if (!wxPyCheckForApp()) SWIG_fail;
5451 PyThreadState* __tstate = wxPyBeginAllowThreads();
5452 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5453 wxPyEndAllowThreads(__tstate);
5454 if (PyErr_Occurred()) SWIG_fail;
5455 }
5456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5457 return resultobj;
5458 fail:
5459 return NULL;
5460 }
5461
5462
5463 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5464 PyObject *resultobj = 0;
5465 wxIcon *arg1 = 0 ;
5466 wxBitmap *result = 0 ;
5467 void *argp1 = 0 ;
5468 int res1 = 0 ;
5469 PyObject * obj0 = 0 ;
5470 char * kwnames[] = {
5471 (char *) "icon", NULL
5472 };
5473
5474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5475 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5476 if (!SWIG_IsOK(res1)) {
5477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5478 }
5479 if (!argp1) {
5480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5481 }
5482 arg1 = reinterpret_cast< wxIcon * >(argp1);
5483 {
5484 if (!wxPyCheckForApp()) SWIG_fail;
5485 PyThreadState* __tstate = wxPyBeginAllowThreads();
5486 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5487 wxPyEndAllowThreads(__tstate);
5488 if (PyErr_Occurred()) SWIG_fail;
5489 }
5490 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5491 return resultobj;
5492 fail:
5493 return NULL;
5494 }
5495
5496
5497 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5498 PyObject *resultobj = 0;
5499 wxImage *arg1 = 0 ;
5500 int arg2 = (int) -1 ;
5501 wxBitmap *result = 0 ;
5502 void *argp1 = 0 ;
5503 int res1 = 0 ;
5504 int val2 ;
5505 int ecode2 = 0 ;
5506 PyObject * obj0 = 0 ;
5507 PyObject * obj1 = 0 ;
5508 char * kwnames[] = {
5509 (char *) "image",(char *) "depth", NULL
5510 };
5511
5512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5513 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5514 if (!SWIG_IsOK(res1)) {
5515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5516 }
5517 if (!argp1) {
5518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5519 }
5520 arg1 = reinterpret_cast< wxImage * >(argp1);
5521 if (obj1) {
5522 ecode2 = SWIG_AsVal_int(obj1, &val2);
5523 if (!SWIG_IsOK(ecode2)) {
5524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5525 }
5526 arg2 = static_cast< int >(val2);
5527 }
5528 {
5529 if (!wxPyCheckForApp()) SWIG_fail;
5530 PyThreadState* __tstate = wxPyBeginAllowThreads();
5531 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5532 wxPyEndAllowThreads(__tstate);
5533 if (PyErr_Occurred()) SWIG_fail;
5534 }
5535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5536 return resultobj;
5537 fail:
5538 return NULL;
5539 }
5540
5541
5542 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5543 PyObject *resultobj = 0;
5544 PyObject *arg1 = (PyObject *) 0 ;
5545 wxBitmap *result = 0 ;
5546 PyObject * obj0 = 0 ;
5547 char * kwnames[] = {
5548 (char *) "listOfStrings", NULL
5549 };
5550
5551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5552 arg1 = obj0;
5553 {
5554 if (!wxPyCheckForApp()) SWIG_fail;
5555 PyThreadState* __tstate = wxPyBeginAllowThreads();
5556 result = (wxBitmap *)new_wxBitmap(arg1);
5557 wxPyEndAllowThreads(__tstate);
5558 if (PyErr_Occurred()) SWIG_fail;
5559 }
5560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5561 return resultobj;
5562 fail:
5563 return NULL;
5564 }
5565
5566
5567 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5568 PyObject *resultobj = 0;
5569 PyObject *arg1 = (PyObject *) 0 ;
5570 int arg2 ;
5571 int arg3 ;
5572 int arg4 = (int) 1 ;
5573 wxBitmap *result = 0 ;
5574 int val2 ;
5575 int ecode2 = 0 ;
5576 int val3 ;
5577 int ecode3 = 0 ;
5578 int val4 ;
5579 int ecode4 = 0 ;
5580 PyObject * obj0 = 0 ;
5581 PyObject * obj1 = 0 ;
5582 PyObject * obj2 = 0 ;
5583 PyObject * obj3 = 0 ;
5584 char * kwnames[] = {
5585 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5586 };
5587
5588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5589 arg1 = obj0;
5590 ecode2 = SWIG_AsVal_int(obj1, &val2);
5591 if (!SWIG_IsOK(ecode2)) {
5592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5593 }
5594 arg2 = static_cast< int >(val2);
5595 ecode3 = SWIG_AsVal_int(obj2, &val3);
5596 if (!SWIG_IsOK(ecode3)) {
5597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5598 }
5599 arg3 = static_cast< int >(val3);
5600 if (obj3) {
5601 ecode4 = SWIG_AsVal_int(obj3, &val4);
5602 if (!SWIG_IsOK(ecode4)) {
5603 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5604 }
5605 arg4 = static_cast< int >(val4);
5606 }
5607 {
5608 if (!wxPyCheckForApp()) SWIG_fail;
5609 PyThreadState* __tstate = wxPyBeginAllowThreads();
5610 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5611 wxPyEndAllowThreads(__tstate);
5612 if (PyErr_Occurred()) SWIG_fail;
5613 }
5614 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5615 return resultobj;
5616 fail:
5617 return NULL;
5618 }
5619
5620
5621 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5622 PyObject *resultobj = 0;
5623 wxBitmap *arg1 = (wxBitmap *) 0 ;
5624 bool result;
5625 void *argp1 = 0 ;
5626 int res1 = 0 ;
5627 PyObject *swig_obj[1] ;
5628
5629 if (!args) SWIG_fail;
5630 swig_obj[0] = args;
5631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5632 if (!SWIG_IsOK(res1)) {
5633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5634 }
5635 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5636 {
5637 PyThreadState* __tstate = wxPyBeginAllowThreads();
5638 result = (bool)(arg1)->Ok();
5639 wxPyEndAllowThreads(__tstate);
5640 if (PyErr_Occurred()) SWIG_fail;
5641 }
5642 {
5643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5644 }
5645 return resultobj;
5646 fail:
5647 return NULL;
5648 }
5649
5650
5651 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5652 PyObject *resultobj = 0;
5653 wxBitmap *arg1 = (wxBitmap *) 0 ;
5654 int result;
5655 void *argp1 = 0 ;
5656 int res1 = 0 ;
5657 PyObject *swig_obj[1] ;
5658
5659 if (!args) SWIG_fail;
5660 swig_obj[0] = args;
5661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5662 if (!SWIG_IsOK(res1)) {
5663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5664 }
5665 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5666 {
5667 PyThreadState* __tstate = wxPyBeginAllowThreads();
5668 result = (int)(arg1)->GetWidth();
5669 wxPyEndAllowThreads(__tstate);
5670 if (PyErr_Occurred()) SWIG_fail;
5671 }
5672 resultobj = SWIG_From_int(static_cast< int >(result));
5673 return resultobj;
5674 fail:
5675 return NULL;
5676 }
5677
5678
5679 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5680 PyObject *resultobj = 0;
5681 wxBitmap *arg1 = (wxBitmap *) 0 ;
5682 int result;
5683 void *argp1 = 0 ;
5684 int res1 = 0 ;
5685 PyObject *swig_obj[1] ;
5686
5687 if (!args) SWIG_fail;
5688 swig_obj[0] = args;
5689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5690 if (!SWIG_IsOK(res1)) {
5691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
5692 }
5693 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5694 {
5695 PyThreadState* __tstate = wxPyBeginAllowThreads();
5696 result = (int)(arg1)->GetHeight();
5697 wxPyEndAllowThreads(__tstate);
5698 if (PyErr_Occurred()) SWIG_fail;
5699 }
5700 resultobj = SWIG_From_int(static_cast< int >(result));
5701 return resultobj;
5702 fail:
5703 return NULL;
5704 }
5705
5706
5707 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5708 PyObject *resultobj = 0;
5709 wxBitmap *arg1 = (wxBitmap *) 0 ;
5710 int result;
5711 void *argp1 = 0 ;
5712 int res1 = 0 ;
5713 PyObject *swig_obj[1] ;
5714
5715 if (!args) SWIG_fail;
5716 swig_obj[0] = args;
5717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5718 if (!SWIG_IsOK(res1)) {
5719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5720 }
5721 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5722 {
5723 PyThreadState* __tstate = wxPyBeginAllowThreads();
5724 result = (int)(arg1)->GetDepth();
5725 wxPyEndAllowThreads(__tstate);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 }
5728 resultobj = SWIG_From_int(static_cast< int >(result));
5729 return resultobj;
5730 fail:
5731 return NULL;
5732 }
5733
5734
5735 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5736 PyObject *resultobj = 0;
5737 wxBitmap *arg1 = (wxBitmap *) 0 ;
5738 wxSize result;
5739 void *argp1 = 0 ;
5740 int res1 = 0 ;
5741 PyObject *swig_obj[1] ;
5742
5743 if (!args) SWIG_fail;
5744 swig_obj[0] = args;
5745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5746 if (!SWIG_IsOK(res1)) {
5747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
5748 }
5749 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5750 {
5751 PyThreadState* __tstate = wxPyBeginAllowThreads();
5752 result = wxBitmap_GetSize(arg1);
5753 wxPyEndAllowThreads(__tstate);
5754 if (PyErr_Occurred()) SWIG_fail;
5755 }
5756 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
5757 return resultobj;
5758 fail:
5759 return NULL;
5760 }
5761
5762
5763 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5764 PyObject *resultobj = 0;
5765 wxBitmap *arg1 = (wxBitmap *) 0 ;
5766 SwigValueWrapper<wxImage > result;
5767 void *argp1 = 0 ;
5768 int res1 = 0 ;
5769 PyObject *swig_obj[1] ;
5770
5771 if (!args) SWIG_fail;
5772 swig_obj[0] = args;
5773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5774 if (!SWIG_IsOK(res1)) {
5775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5776 }
5777 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5778 {
5779 PyThreadState* __tstate = wxPyBeginAllowThreads();
5780 result = ((wxBitmap const *)arg1)->ConvertToImage();
5781 wxPyEndAllowThreads(__tstate);
5782 if (PyErr_Occurred()) SWIG_fail;
5783 }
5784 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
5785 return resultobj;
5786 fail:
5787 return NULL;
5788 }
5789
5790
5791 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5792 PyObject *resultobj = 0;
5793 wxBitmap *arg1 = (wxBitmap *) 0 ;
5794 wxMask *result = 0 ;
5795 void *argp1 = 0 ;
5796 int res1 = 0 ;
5797 PyObject *swig_obj[1] ;
5798
5799 if (!args) SWIG_fail;
5800 swig_obj[0] = args;
5801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5802 if (!SWIG_IsOK(res1)) {
5803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5804 }
5805 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5806 {
5807 PyThreadState* __tstate = wxPyBeginAllowThreads();
5808 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
5809 wxPyEndAllowThreads(__tstate);
5810 if (PyErr_Occurred()) SWIG_fail;
5811 }
5812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
5813 return resultobj;
5814 fail:
5815 return NULL;
5816 }
5817
5818
5819 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5820 PyObject *resultobj = 0;
5821 wxBitmap *arg1 = (wxBitmap *) 0 ;
5822 wxMask *arg2 = (wxMask *) 0 ;
5823 void *argp1 = 0 ;
5824 int res1 = 0 ;
5825 int res2 = 0 ;
5826 PyObject * obj0 = 0 ;
5827 PyObject * obj1 = 0 ;
5828 char * kwnames[] = {
5829 (char *) "self",(char *) "mask", NULL
5830 };
5831
5832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
5833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5834 if (!SWIG_IsOK(res1)) {
5835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
5836 }
5837 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5838 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
5839 if (!SWIG_IsOK(res2)) {
5840 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
5841 }
5842 {
5843 PyThreadState* __tstate = wxPyBeginAllowThreads();
5844 (arg1)->SetMask(arg2);
5845 wxPyEndAllowThreads(__tstate);
5846 if (PyErr_Occurred()) SWIG_fail;
5847 }
5848 resultobj = SWIG_Py_Void();
5849 return resultobj;
5850 fail:
5851 return NULL;
5852 }
5853
5854
5855 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5856 PyObject *resultobj = 0;
5857 wxBitmap *arg1 = (wxBitmap *) 0 ;
5858 wxColour *arg2 = 0 ;
5859 void *argp1 = 0 ;
5860 int res1 = 0 ;
5861 wxColour temp2 ;
5862 PyObject * obj0 = 0 ;
5863 PyObject * obj1 = 0 ;
5864 char * kwnames[] = {
5865 (char *) "self",(char *) "colour", NULL
5866 };
5867
5868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
5869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5870 if (!SWIG_IsOK(res1)) {
5871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
5872 }
5873 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5874 {
5875 arg2 = &temp2;
5876 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5877 }
5878 {
5879 PyThreadState* __tstate = wxPyBeginAllowThreads();
5880 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
5881 wxPyEndAllowThreads(__tstate);
5882 if (PyErr_Occurred()) SWIG_fail;
5883 }
5884 resultobj = SWIG_Py_Void();
5885 return resultobj;
5886 fail:
5887 return NULL;
5888 }
5889
5890
5891 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5892 PyObject *resultobj = 0;
5893 wxBitmap *arg1 = (wxBitmap *) 0 ;
5894 wxRect *arg2 = 0 ;
5895 SwigValueWrapper<wxBitmap > result;
5896 void *argp1 = 0 ;
5897 int res1 = 0 ;
5898 wxRect temp2 ;
5899 PyObject * obj0 = 0 ;
5900 PyObject * obj1 = 0 ;
5901 char * kwnames[] = {
5902 (char *) "self",(char *) "rect", NULL
5903 };
5904
5905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5907 if (!SWIG_IsOK(res1)) {
5908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5909 }
5910 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5911 {
5912 arg2 = &temp2;
5913 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5914 }
5915 {
5916 PyThreadState* __tstate = wxPyBeginAllowThreads();
5917 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
5918 wxPyEndAllowThreads(__tstate);
5919 if (PyErr_Occurred()) SWIG_fail;
5920 }
5921 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5922 return resultobj;
5923 fail:
5924 return NULL;
5925 }
5926
5927
5928 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5929 PyObject *resultobj = 0;
5930 wxBitmap *arg1 = (wxBitmap *) 0 ;
5931 wxString *arg2 = 0 ;
5932 wxBitmapType arg3 ;
5933 wxPalette *arg4 = (wxPalette *) NULL ;
5934 bool result;
5935 void *argp1 = 0 ;
5936 int res1 = 0 ;
5937 bool temp2 = false ;
5938 int val3 ;
5939 int ecode3 = 0 ;
5940 void *argp4 = 0 ;
5941 int res4 = 0 ;
5942 PyObject * obj0 = 0 ;
5943 PyObject * obj1 = 0 ;
5944 PyObject * obj2 = 0 ;
5945 PyObject * obj3 = 0 ;
5946 char * kwnames[] = {
5947 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
5948 };
5949
5950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5952 if (!SWIG_IsOK(res1)) {
5953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5954 }
5955 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5956 {
5957 arg2 = wxString_in_helper(obj1);
5958 if (arg2 == NULL) SWIG_fail;
5959 temp2 = true;
5960 }
5961 ecode3 = SWIG_AsVal_int(obj2, &val3);
5962 if (!SWIG_IsOK(ecode3)) {
5963 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5964 }
5965 arg3 = static_cast< wxBitmapType >(val3);
5966 if (obj3) {
5967 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
5968 if (!SWIG_IsOK(res4)) {
5969 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
5970 }
5971 arg4 = reinterpret_cast< wxPalette * >(argp4);
5972 }
5973 {
5974 PyThreadState* __tstate = wxPyBeginAllowThreads();
5975 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
5976 wxPyEndAllowThreads(__tstate);
5977 if (PyErr_Occurred()) SWIG_fail;
5978 }
5979 {
5980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5981 }
5982 {
5983 if (temp2)
5984 delete arg2;
5985 }
5986 return resultobj;
5987 fail:
5988 {
5989 if (temp2)
5990 delete arg2;
5991 }
5992 return NULL;
5993 }
5994
5995
5996 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5997 PyObject *resultobj = 0;
5998 wxBitmap *arg1 = (wxBitmap *) 0 ;
5999 wxString *arg2 = 0 ;
6000 wxBitmapType arg3 ;
6001 bool result;
6002 void *argp1 = 0 ;
6003 int res1 = 0 ;
6004 bool temp2 = false ;
6005 int val3 ;
6006 int ecode3 = 0 ;
6007 PyObject * obj0 = 0 ;
6008 PyObject * obj1 = 0 ;
6009 PyObject * obj2 = 0 ;
6010 char * kwnames[] = {
6011 (char *) "self",(char *) "name",(char *) "type", NULL
6012 };
6013
6014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6016 if (!SWIG_IsOK(res1)) {
6017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6018 }
6019 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6020 {
6021 arg2 = wxString_in_helper(obj1);
6022 if (arg2 == NULL) SWIG_fail;
6023 temp2 = true;
6024 }
6025 ecode3 = SWIG_AsVal_int(obj2, &val3);
6026 if (!SWIG_IsOK(ecode3)) {
6027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6028 }
6029 arg3 = static_cast< wxBitmapType >(val3);
6030 {
6031 PyThreadState* __tstate = wxPyBeginAllowThreads();
6032 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6033 wxPyEndAllowThreads(__tstate);
6034 if (PyErr_Occurred()) SWIG_fail;
6035 }
6036 {
6037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6038 }
6039 {
6040 if (temp2)
6041 delete arg2;
6042 }
6043 return resultobj;
6044 fail:
6045 {
6046 if (temp2)
6047 delete arg2;
6048 }
6049 return NULL;
6050 }
6051
6052
6053 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6054 PyObject *resultobj = 0;
6055 wxBitmap *arg1 = (wxBitmap *) 0 ;
6056 wxPalette *result = 0 ;
6057 void *argp1 = 0 ;
6058 int res1 = 0 ;
6059 PyObject *swig_obj[1] ;
6060
6061 if (!args) SWIG_fail;
6062 swig_obj[0] = args;
6063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6064 if (!SWIG_IsOK(res1)) {
6065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6066 }
6067 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6068 {
6069 PyThreadState* __tstate = wxPyBeginAllowThreads();
6070 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6071 wxPyEndAllowThreads(__tstate);
6072 if (PyErr_Occurred()) SWIG_fail;
6073 }
6074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6075 return resultobj;
6076 fail:
6077 return NULL;
6078 }
6079
6080
6081 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6082 PyObject *resultobj = 0;
6083 wxBitmap *arg1 = (wxBitmap *) 0 ;
6084 wxIcon *arg2 = 0 ;
6085 bool result;
6086 void *argp1 = 0 ;
6087 int res1 = 0 ;
6088 void *argp2 = 0 ;
6089 int res2 = 0 ;
6090 PyObject * obj0 = 0 ;
6091 PyObject * obj1 = 0 ;
6092 char * kwnames[] = {
6093 (char *) "self",(char *) "icon", NULL
6094 };
6095
6096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6098 if (!SWIG_IsOK(res1)) {
6099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6100 }
6101 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6102 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6103 if (!SWIG_IsOK(res2)) {
6104 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6105 }
6106 if (!argp2) {
6107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6108 }
6109 arg2 = reinterpret_cast< wxIcon * >(argp2);
6110 {
6111 PyThreadState* __tstate = wxPyBeginAllowThreads();
6112 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6113 wxPyEndAllowThreads(__tstate);
6114 if (PyErr_Occurred()) SWIG_fail;
6115 }
6116 {
6117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6118 }
6119 return resultobj;
6120 fail:
6121 return NULL;
6122 }
6123
6124
6125 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6126 PyObject *resultobj = 0;
6127 wxBitmap *arg1 = (wxBitmap *) 0 ;
6128 int arg2 ;
6129 void *argp1 = 0 ;
6130 int res1 = 0 ;
6131 int val2 ;
6132 int ecode2 = 0 ;
6133 PyObject * obj0 = 0 ;
6134 PyObject * obj1 = 0 ;
6135 char * kwnames[] = {
6136 (char *) "self",(char *) "height", NULL
6137 };
6138
6139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6141 if (!SWIG_IsOK(res1)) {
6142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6143 }
6144 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6145 ecode2 = SWIG_AsVal_int(obj1, &val2);
6146 if (!SWIG_IsOK(ecode2)) {
6147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6148 }
6149 arg2 = static_cast< int >(val2);
6150 {
6151 PyThreadState* __tstate = wxPyBeginAllowThreads();
6152 (arg1)->SetHeight(arg2);
6153 wxPyEndAllowThreads(__tstate);
6154 if (PyErr_Occurred()) SWIG_fail;
6155 }
6156 resultobj = SWIG_Py_Void();
6157 return resultobj;
6158 fail:
6159 return NULL;
6160 }
6161
6162
6163 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6164 PyObject *resultobj = 0;
6165 wxBitmap *arg1 = (wxBitmap *) 0 ;
6166 int arg2 ;
6167 void *argp1 = 0 ;
6168 int res1 = 0 ;
6169 int val2 ;
6170 int ecode2 = 0 ;
6171 PyObject * obj0 = 0 ;
6172 PyObject * obj1 = 0 ;
6173 char * kwnames[] = {
6174 (char *) "self",(char *) "width", NULL
6175 };
6176
6177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6179 if (!SWIG_IsOK(res1)) {
6180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6181 }
6182 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6183 ecode2 = SWIG_AsVal_int(obj1, &val2);
6184 if (!SWIG_IsOK(ecode2)) {
6185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6186 }
6187 arg2 = static_cast< int >(val2);
6188 {
6189 PyThreadState* __tstate = wxPyBeginAllowThreads();
6190 (arg1)->SetWidth(arg2);
6191 wxPyEndAllowThreads(__tstate);
6192 if (PyErr_Occurred()) SWIG_fail;
6193 }
6194 resultobj = SWIG_Py_Void();
6195 return resultobj;
6196 fail:
6197 return NULL;
6198 }
6199
6200
6201 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6202 PyObject *resultobj = 0;
6203 wxBitmap *arg1 = (wxBitmap *) 0 ;
6204 int arg2 ;
6205 void *argp1 = 0 ;
6206 int res1 = 0 ;
6207 int val2 ;
6208 int ecode2 = 0 ;
6209 PyObject * obj0 = 0 ;
6210 PyObject * obj1 = 0 ;
6211 char * kwnames[] = {
6212 (char *) "self",(char *) "depth", NULL
6213 };
6214
6215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6217 if (!SWIG_IsOK(res1)) {
6218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6219 }
6220 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6221 ecode2 = SWIG_AsVal_int(obj1, &val2);
6222 if (!SWIG_IsOK(ecode2)) {
6223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6224 }
6225 arg2 = static_cast< int >(val2);
6226 {
6227 PyThreadState* __tstate = wxPyBeginAllowThreads();
6228 (arg1)->SetDepth(arg2);
6229 wxPyEndAllowThreads(__tstate);
6230 if (PyErr_Occurred()) SWIG_fail;
6231 }
6232 resultobj = SWIG_Py_Void();
6233 return resultobj;
6234 fail:
6235 return NULL;
6236 }
6237
6238
6239 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6240 PyObject *resultobj = 0;
6241 wxBitmap *arg1 = (wxBitmap *) 0 ;
6242 wxSize *arg2 = 0 ;
6243 void *argp1 = 0 ;
6244 int res1 = 0 ;
6245 wxSize temp2 ;
6246 PyObject * obj0 = 0 ;
6247 PyObject * obj1 = 0 ;
6248 char * kwnames[] = {
6249 (char *) "self",(char *) "size", NULL
6250 };
6251
6252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6254 if (!SWIG_IsOK(res1)) {
6255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6256 }
6257 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6258 {
6259 arg2 = &temp2;
6260 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6261 }
6262 {
6263 PyThreadState* __tstate = wxPyBeginAllowThreads();
6264 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6265 wxPyEndAllowThreads(__tstate);
6266 if (PyErr_Occurred()) SWIG_fail;
6267 }
6268 resultobj = SWIG_Py_Void();
6269 return resultobj;
6270 fail:
6271 return NULL;
6272 }
6273
6274
6275 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6276 PyObject *resultobj = 0;
6277 wxBitmap *arg1 = (wxBitmap *) 0 ;
6278 wxBitmap *arg2 = (wxBitmap *) 0 ;
6279 bool result;
6280 void *argp1 = 0 ;
6281 int res1 = 0 ;
6282 void *argp2 = 0 ;
6283 int res2 = 0 ;
6284 PyObject * obj0 = 0 ;
6285 PyObject * obj1 = 0 ;
6286 char * kwnames[] = {
6287 (char *) "self",(char *) "other", NULL
6288 };
6289
6290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6292 if (!SWIG_IsOK(res1)) {
6293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6294 }
6295 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6296 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6297 if (!SWIG_IsOK(res2)) {
6298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6299 }
6300 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6301 {
6302 PyThreadState* __tstate = wxPyBeginAllowThreads();
6303 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6304 wxPyEndAllowThreads(__tstate);
6305 if (PyErr_Occurred()) SWIG_fail;
6306 }
6307 {
6308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6309 }
6310 return resultobj;
6311 fail:
6312 return NULL;
6313 }
6314
6315
6316 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6317 PyObject *resultobj = 0;
6318 wxBitmap *arg1 = (wxBitmap *) 0 ;
6319 wxBitmap *arg2 = (wxBitmap *) 0 ;
6320 bool result;
6321 void *argp1 = 0 ;
6322 int res1 = 0 ;
6323 void *argp2 = 0 ;
6324 int res2 = 0 ;
6325 PyObject * obj0 = 0 ;
6326 PyObject * obj1 = 0 ;
6327 char * kwnames[] = {
6328 (char *) "self",(char *) "other", NULL
6329 };
6330
6331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6333 if (!SWIG_IsOK(res1)) {
6334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6335 }
6336 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6337 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6338 if (!SWIG_IsOK(res2)) {
6339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6340 }
6341 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6342 {
6343 PyThreadState* __tstate = wxPyBeginAllowThreads();
6344 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6345 wxPyEndAllowThreads(__tstate);
6346 if (PyErr_Occurred()) SWIG_fail;
6347 }
6348 {
6349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6350 }
6351 return resultobj;
6352 fail:
6353 return NULL;
6354 }
6355
6356
6357 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6358 PyObject *obj;
6359 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6360 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6361 return SWIG_Py_Void();
6362 }
6363
6364 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6365 return SWIG_Python_InitShadowInstance(args);
6366 }
6367
6368 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6369 PyObject *resultobj = 0;
6370 wxBitmap *arg1 = 0 ;
6371 wxColour const &arg2_defvalue = wxNullColour ;
6372 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6373 wxMask *result = 0 ;
6374 void *argp1 = 0 ;
6375 int res1 = 0 ;
6376 wxColour temp2 ;
6377 PyObject * obj0 = 0 ;
6378 PyObject * obj1 = 0 ;
6379 char * kwnames[] = {
6380 (char *) "bitmap",(char *) "colour", NULL
6381 };
6382
6383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
6384 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6385 if (!SWIG_IsOK(res1)) {
6386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6387 }
6388 if (!argp1) {
6389 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6390 }
6391 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6392 if (obj1) {
6393 {
6394 arg2 = &temp2;
6395 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6396 }
6397 }
6398 {
6399 if (!wxPyCheckForApp()) SWIG_fail;
6400 PyThreadState* __tstate = wxPyBeginAllowThreads();
6401 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
6402 wxPyEndAllowThreads(__tstate);
6403 if (PyErr_Occurred()) SWIG_fail;
6404 }
6405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
6406 return resultobj;
6407 fail:
6408 return NULL;
6409 }
6410
6411
6412 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6413 PyObject *resultobj = 0;
6414 wxMask *arg1 = (wxMask *) 0 ;
6415 void *argp1 = 0 ;
6416 int res1 = 0 ;
6417 PyObject *swig_obj[1] ;
6418
6419 if (!args) SWIG_fail;
6420 swig_obj[0] = args;
6421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6422 if (!SWIG_IsOK(res1)) {
6423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
6424 }
6425 arg1 = reinterpret_cast< wxMask * >(argp1);
6426 {
6427 PyThreadState* __tstate = wxPyBeginAllowThreads();
6428 delete arg1;
6429
6430 wxPyEndAllowThreads(__tstate);
6431 if (PyErr_Occurred()) SWIG_fail;
6432 }
6433 resultobj = SWIG_Py_Void();
6434 return resultobj;
6435 fail:
6436 return NULL;
6437 }
6438
6439
6440 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6441 PyObject *obj;
6442 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6443 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
6444 return SWIG_Py_Void();
6445 }
6446
6447 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6448 return SWIG_Python_InitShadowInstance(args);
6449 }
6450
6451 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6452 PyObject *resultobj = 0;
6453 wxString *arg1 = 0 ;
6454 wxBitmapType arg2 ;
6455 int arg3 = (int) -1 ;
6456 int arg4 = (int) -1 ;
6457 wxIcon *result = 0 ;
6458 bool temp1 = false ;
6459 int val2 ;
6460 int ecode2 = 0 ;
6461 int val3 ;
6462 int ecode3 = 0 ;
6463 int val4 ;
6464 int ecode4 = 0 ;
6465 PyObject * obj0 = 0 ;
6466 PyObject * obj1 = 0 ;
6467 PyObject * obj2 = 0 ;
6468 PyObject * obj3 = 0 ;
6469 char * kwnames[] = {
6470 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
6471 };
6472
6473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6474 {
6475 arg1 = wxString_in_helper(obj0);
6476 if (arg1 == NULL) SWIG_fail;
6477 temp1 = true;
6478 }
6479 ecode2 = SWIG_AsVal_int(obj1, &val2);
6480 if (!SWIG_IsOK(ecode2)) {
6481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
6482 }
6483 arg2 = static_cast< wxBitmapType >(val2);
6484 if (obj2) {
6485 ecode3 = SWIG_AsVal_int(obj2, &val3);
6486 if (!SWIG_IsOK(ecode3)) {
6487 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
6488 }
6489 arg3 = static_cast< int >(val3);
6490 }
6491 if (obj3) {
6492 ecode4 = SWIG_AsVal_int(obj3, &val4);
6493 if (!SWIG_IsOK(ecode4)) {
6494 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
6495 }
6496 arg4 = static_cast< int >(val4);
6497 }
6498 {
6499 if (!wxPyCheckForApp()) SWIG_fail;
6500 PyThreadState* __tstate = wxPyBeginAllowThreads();
6501 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
6502 wxPyEndAllowThreads(__tstate);
6503 if (PyErr_Occurred()) SWIG_fail;
6504 }
6505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
6506 {
6507 if (temp1)
6508 delete arg1;
6509 }
6510 return resultobj;
6511 fail:
6512 {
6513 if (temp1)
6514 delete arg1;
6515 }
6516 return NULL;
6517 }
6518
6519
6520 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6521 PyObject *resultobj = 0;
6522 wxIcon *arg1 = (wxIcon *) 0 ;
6523 void *argp1 = 0 ;
6524 int res1 = 0 ;
6525 PyObject *swig_obj[1] ;
6526
6527 if (!args) SWIG_fail;
6528 swig_obj[0] = args;
6529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
6530 if (!SWIG_IsOK(res1)) {
6531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
6532 }
6533 arg1 = reinterpret_cast< wxIcon * >(argp1);
6534 {
6535 PyThreadState* __tstate = wxPyBeginAllowThreads();
6536 delete arg1;
6537
6538 wxPyEndAllowThreads(__tstate);
6539 if (PyErr_Occurred()) SWIG_fail;
6540 }
6541 resultobj = SWIG_Py_Void();
6542 return resultobj;
6543 fail:
6544 return NULL;
6545 }
6546
6547
6548 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6549 PyObject *resultobj = 0;
6550 wxIcon *result = 0 ;
6551
6552 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
6553 {
6554 if (!wxPyCheckForApp()) SWIG_fail;
6555 PyThreadState* __tstate = wxPyBeginAllowThreads();
6556 result = (wxIcon *)new wxIcon();
6557 wxPyEndAllowThreads(__tstate);
6558 if (PyErr_Occurred()) SWIG_fail;
6559 }
6560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6561 return resultobj;
6562 fail:
6563 return NULL;
6564 }
6565
6566
6567 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6568 PyObject *resultobj = 0;
6569 wxIconLocation *arg1 = 0 ;
6570 wxIcon *result = 0 ;
6571 void *argp1 = 0 ;
6572 int res1 = 0 ;
6573 PyObject * obj0 = 0 ;
6574 char * kwnames[] = {
6575 (char *) "loc", NULL
6576 };
6577
6578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
6579 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
6580 if (!SWIG_IsOK(res1)) {
6581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6582 }
6583 if (!argp1) {
6584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6585 }
6586 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6587 {
6588 if (!wxPyCheckForApp()) SWIG_fail;
6589 PyThreadState* __tstate = wxPyBeginAllowThreads();
6590 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
6591 wxPyEndAllowThreads(__tstate);
6592 if (PyErr_Occurred()) SWIG_fail;
6593 }
6594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6595 return resultobj;
6596 fail:
6597 return NULL;
6598 }
6599
6600
6601 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6602 PyObject *resultobj = 0;
6603 wxBitmap *arg1 = 0 ;
6604 wxIcon *result = 0 ;
6605 void *argp1 = 0 ;
6606 int res1 = 0 ;
6607 PyObject * obj0 = 0 ;
6608 char * kwnames[] = {
6609 (char *) "bmp", NULL
6610 };
6611
6612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
6613 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6614 if (!SWIG_IsOK(res1)) {
6615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6616 }
6617 if (!argp1) {
6618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6619 }
6620 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6621 {
6622 if (!wxPyCheckForApp()) SWIG_fail;
6623 PyThreadState* __tstate = wxPyBeginAllowThreads();
6624 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
6625 wxPyEndAllowThreads(__tstate);
6626 if (PyErr_Occurred()) SWIG_fail;
6627 }
6628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6629 return resultobj;
6630 fail:
6631 return NULL;
6632 }
6633
6634
6635 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6636 PyObject *resultobj = 0;
6637 PyObject *arg1 = (PyObject *) 0 ;
6638 wxIcon *result = 0 ;
6639 PyObject * obj0 = 0 ;
6640 char * kwnames[] = {
6641 (char *) "listOfStrings", NULL
6642 };
6643
6644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
6645 arg1 = obj0;
6646 {
6647 if (!wxPyCheckForApp()) SWIG_fail;
6648 PyThreadState* __tstate = wxPyBeginAllowThreads();
6649 result = (wxIcon *)new_wxIcon(arg1);
6650 wxPyEndAllowThreads(__tstate);
6651 if (PyErr_Occurred()) SWIG_fail;
6652 }
6653 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6654 return resultobj;
6655 fail:
6656 return NULL;
6657 }
6658
6659
6660 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6661 PyObject *resultobj = 0;
6662 wxIcon *arg1 = (wxIcon *) 0 ;
6663 bool result;
6664 void *argp1 = 0 ;
6665 int res1 = 0 ;
6666 PyObject *swig_obj[1] ;
6667
6668 if (!args) SWIG_fail;
6669 swig_obj[0] = args;
6670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6671 if (!SWIG_IsOK(res1)) {
6672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
6673 }
6674 arg1 = reinterpret_cast< wxIcon * >(argp1);
6675 {
6676 PyThreadState* __tstate = wxPyBeginAllowThreads();
6677 result = (bool)(arg1)->Ok();
6678 wxPyEndAllowThreads(__tstate);
6679 if (PyErr_Occurred()) SWIG_fail;
6680 }
6681 {
6682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6683 }
6684 return resultobj;
6685 fail:
6686 return NULL;
6687 }
6688
6689
6690 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6691 PyObject *resultobj = 0;
6692 wxIcon *arg1 = (wxIcon *) 0 ;
6693 int result;
6694 void *argp1 = 0 ;
6695 int res1 = 0 ;
6696 PyObject *swig_obj[1] ;
6697
6698 if (!args) SWIG_fail;
6699 swig_obj[0] = args;
6700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6701 if (!SWIG_IsOK(res1)) {
6702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6703 }
6704 arg1 = reinterpret_cast< wxIcon * >(argp1);
6705 {
6706 PyThreadState* __tstate = wxPyBeginAllowThreads();
6707 result = (int)(arg1)->GetWidth();
6708 wxPyEndAllowThreads(__tstate);
6709 if (PyErr_Occurred()) SWIG_fail;
6710 }
6711 resultobj = SWIG_From_int(static_cast< int >(result));
6712 return resultobj;
6713 fail:
6714 return NULL;
6715 }
6716
6717
6718 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6719 PyObject *resultobj = 0;
6720 wxIcon *arg1 = (wxIcon *) 0 ;
6721 int result;
6722 void *argp1 = 0 ;
6723 int res1 = 0 ;
6724 PyObject *swig_obj[1] ;
6725
6726 if (!args) SWIG_fail;
6727 swig_obj[0] = args;
6728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6729 if (!SWIG_IsOK(res1)) {
6730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6731 }
6732 arg1 = reinterpret_cast< wxIcon * >(argp1);
6733 {
6734 PyThreadState* __tstate = wxPyBeginAllowThreads();
6735 result = (int)(arg1)->GetHeight();
6736 wxPyEndAllowThreads(__tstate);
6737 if (PyErr_Occurred()) SWIG_fail;
6738 }
6739 resultobj = SWIG_From_int(static_cast< int >(result));
6740 return resultobj;
6741 fail:
6742 return NULL;
6743 }
6744
6745
6746 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6747 PyObject *resultobj = 0;
6748 wxIcon *arg1 = (wxIcon *) 0 ;
6749 int result;
6750 void *argp1 = 0 ;
6751 int res1 = 0 ;
6752 PyObject *swig_obj[1] ;
6753
6754 if (!args) SWIG_fail;
6755 swig_obj[0] = args;
6756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6757 if (!SWIG_IsOK(res1)) {
6758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6759 }
6760 arg1 = reinterpret_cast< wxIcon * >(argp1);
6761 {
6762 PyThreadState* __tstate = wxPyBeginAllowThreads();
6763 result = (int)(arg1)->GetDepth();
6764 wxPyEndAllowThreads(__tstate);
6765 if (PyErr_Occurred()) SWIG_fail;
6766 }
6767 resultobj = SWIG_From_int(static_cast< int >(result));
6768 return resultobj;
6769 fail:
6770 return NULL;
6771 }
6772
6773
6774 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6775 PyObject *resultobj = 0;
6776 wxIcon *arg1 = (wxIcon *) 0 ;
6777 int arg2 ;
6778 void *argp1 = 0 ;
6779 int res1 = 0 ;
6780 int val2 ;
6781 int ecode2 = 0 ;
6782 PyObject * obj0 = 0 ;
6783 PyObject * obj1 = 0 ;
6784 char * kwnames[] = {
6785 (char *) "self",(char *) "w", NULL
6786 };
6787
6788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6790 if (!SWIG_IsOK(res1)) {
6791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6792 }
6793 arg1 = reinterpret_cast< wxIcon * >(argp1);
6794 ecode2 = SWIG_AsVal_int(obj1, &val2);
6795 if (!SWIG_IsOK(ecode2)) {
6796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
6797 }
6798 arg2 = static_cast< int >(val2);
6799 {
6800 PyThreadState* __tstate = wxPyBeginAllowThreads();
6801 (arg1)->SetWidth(arg2);
6802 wxPyEndAllowThreads(__tstate);
6803 if (PyErr_Occurred()) SWIG_fail;
6804 }
6805 resultobj = SWIG_Py_Void();
6806 return resultobj;
6807 fail:
6808 return NULL;
6809 }
6810
6811
6812 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6813 PyObject *resultobj = 0;
6814 wxIcon *arg1 = (wxIcon *) 0 ;
6815 int arg2 ;
6816 void *argp1 = 0 ;
6817 int res1 = 0 ;
6818 int val2 ;
6819 int ecode2 = 0 ;
6820 PyObject * obj0 = 0 ;
6821 PyObject * obj1 = 0 ;
6822 char * kwnames[] = {
6823 (char *) "self",(char *) "h", NULL
6824 };
6825
6826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6828 if (!SWIG_IsOK(res1)) {
6829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6830 }
6831 arg1 = reinterpret_cast< wxIcon * >(argp1);
6832 ecode2 = SWIG_AsVal_int(obj1, &val2);
6833 if (!SWIG_IsOK(ecode2)) {
6834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
6835 }
6836 arg2 = static_cast< int >(val2);
6837 {
6838 PyThreadState* __tstate = wxPyBeginAllowThreads();
6839 (arg1)->SetHeight(arg2);
6840 wxPyEndAllowThreads(__tstate);
6841 if (PyErr_Occurred()) SWIG_fail;
6842 }
6843 resultobj = SWIG_Py_Void();
6844 return resultobj;
6845 fail:
6846 return NULL;
6847 }
6848
6849
6850 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6851 PyObject *resultobj = 0;
6852 wxIcon *arg1 = (wxIcon *) 0 ;
6853 int arg2 ;
6854 void *argp1 = 0 ;
6855 int res1 = 0 ;
6856 int val2 ;
6857 int ecode2 = 0 ;
6858 PyObject * obj0 = 0 ;
6859 PyObject * obj1 = 0 ;
6860 char * kwnames[] = {
6861 (char *) "self",(char *) "d", NULL
6862 };
6863
6864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6866 if (!SWIG_IsOK(res1)) {
6867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6868 }
6869 arg1 = reinterpret_cast< wxIcon * >(argp1);
6870 ecode2 = SWIG_AsVal_int(obj1, &val2);
6871 if (!SWIG_IsOK(ecode2)) {
6872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
6873 }
6874 arg2 = static_cast< int >(val2);
6875 {
6876 PyThreadState* __tstate = wxPyBeginAllowThreads();
6877 (arg1)->SetDepth(arg2);
6878 wxPyEndAllowThreads(__tstate);
6879 if (PyErr_Occurred()) SWIG_fail;
6880 }
6881 resultobj = SWIG_Py_Void();
6882 return resultobj;
6883 fail:
6884 return NULL;
6885 }
6886
6887
6888 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6889 PyObject *resultobj = 0;
6890 wxIcon *arg1 = (wxIcon *) 0 ;
6891 wxBitmap *arg2 = 0 ;
6892 void *argp1 = 0 ;
6893 int res1 = 0 ;
6894 void *argp2 = 0 ;
6895 int res2 = 0 ;
6896 PyObject * obj0 = 0 ;
6897 PyObject * obj1 = 0 ;
6898 char * kwnames[] = {
6899 (char *) "self",(char *) "bmp", NULL
6900 };
6901
6902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6904 if (!SWIG_IsOK(res1)) {
6905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
6906 }
6907 arg1 = reinterpret_cast< wxIcon * >(argp1);
6908 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
6909 if (!SWIG_IsOK(res2)) {
6910 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6911 }
6912 if (!argp2) {
6913 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6914 }
6915 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6916 {
6917 PyThreadState* __tstate = wxPyBeginAllowThreads();
6918 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
6919 wxPyEndAllowThreads(__tstate);
6920 if (PyErr_Occurred()) SWIG_fail;
6921 }
6922 resultobj = SWIG_Py_Void();
6923 return resultobj;
6924 fail:
6925 return NULL;
6926 }
6927
6928
6929 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6930 PyObject *obj;
6931 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6932 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
6933 return SWIG_Py_Void();
6934 }
6935
6936 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6937 return SWIG_Python_InitShadowInstance(args);
6938 }
6939
6940 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6941 PyObject *resultobj = 0;
6942 wxString *arg1 = (wxString *) &wxPyEmptyString ;
6943 int arg2 = (int) 0 ;
6944 wxIconLocation *result = 0 ;
6945 bool temp1 = false ;
6946 int val2 ;
6947 int ecode2 = 0 ;
6948 PyObject * obj0 = 0 ;
6949 PyObject * obj1 = 0 ;
6950 char * kwnames[] = {
6951 (char *) "filename",(char *) "num", NULL
6952 };
6953
6954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
6955 if (obj0) {
6956 {
6957 arg1 = wxString_in_helper(obj0);
6958 if (arg1 == NULL) SWIG_fail;
6959 temp1 = true;
6960 }
6961 }
6962 if (obj1) {
6963 ecode2 = SWIG_AsVal_int(obj1, &val2);
6964 if (!SWIG_IsOK(ecode2)) {
6965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
6966 }
6967 arg2 = static_cast< int >(val2);
6968 }
6969 {
6970 PyThreadState* __tstate = wxPyBeginAllowThreads();
6971 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
6972 wxPyEndAllowThreads(__tstate);
6973 if (PyErr_Occurred()) SWIG_fail;
6974 }
6975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
6976 {
6977 if (temp1)
6978 delete arg1;
6979 }
6980 return resultobj;
6981 fail:
6982 {
6983 if (temp1)
6984 delete arg1;
6985 }
6986 return NULL;
6987 }
6988
6989
6990 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6991 PyObject *resultobj = 0;
6992 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
6993 void *argp1 = 0 ;
6994 int res1 = 0 ;
6995 PyObject *swig_obj[1] ;
6996
6997 if (!args) SWIG_fail;
6998 swig_obj[0] = args;
6999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
7000 if (!SWIG_IsOK(res1)) {
7001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7002 }
7003 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7004 {
7005 PyThreadState* __tstate = wxPyBeginAllowThreads();
7006 delete arg1;
7007
7008 wxPyEndAllowThreads(__tstate);
7009 if (PyErr_Occurred()) SWIG_fail;
7010 }
7011 resultobj = SWIG_Py_Void();
7012 return resultobj;
7013 fail:
7014 return NULL;
7015 }
7016
7017
7018 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7019 PyObject *resultobj = 0;
7020 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7021 bool result;
7022 void *argp1 = 0 ;
7023 int res1 = 0 ;
7024 PyObject *swig_obj[1] ;
7025
7026 if (!args) SWIG_fail;
7027 swig_obj[0] = args;
7028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7029 if (!SWIG_IsOK(res1)) {
7030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7031 }
7032 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7033 {
7034 PyThreadState* __tstate = wxPyBeginAllowThreads();
7035 result = (bool)((wxIconLocation const *)arg1)->IsOk();
7036 wxPyEndAllowThreads(__tstate);
7037 if (PyErr_Occurred()) SWIG_fail;
7038 }
7039 {
7040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7041 }
7042 return resultobj;
7043 fail:
7044 return NULL;
7045 }
7046
7047
7048 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7049 PyObject *resultobj = 0;
7050 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7051 wxString *arg2 = 0 ;
7052 void *argp1 = 0 ;
7053 int res1 = 0 ;
7054 bool temp2 = false ;
7055 PyObject * obj0 = 0 ;
7056 PyObject * obj1 = 0 ;
7057 char * kwnames[] = {
7058 (char *) "self",(char *) "filename", NULL
7059 };
7060
7061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
7062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7063 if (!SWIG_IsOK(res1)) {
7064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7065 }
7066 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7067 {
7068 arg2 = wxString_in_helper(obj1);
7069 if (arg2 == NULL) SWIG_fail;
7070 temp2 = true;
7071 }
7072 {
7073 PyThreadState* __tstate = wxPyBeginAllowThreads();
7074 (arg1)->SetFileName((wxString const &)*arg2);
7075 wxPyEndAllowThreads(__tstate);
7076 if (PyErr_Occurred()) SWIG_fail;
7077 }
7078 resultobj = SWIG_Py_Void();
7079 {
7080 if (temp2)
7081 delete arg2;
7082 }
7083 return resultobj;
7084 fail:
7085 {
7086 if (temp2)
7087 delete arg2;
7088 }
7089 return NULL;
7090 }
7091
7092
7093 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7094 PyObject *resultobj = 0;
7095 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7096 wxString *result = 0 ;
7097 void *argp1 = 0 ;
7098 int res1 = 0 ;
7099 PyObject *swig_obj[1] ;
7100
7101 if (!args) SWIG_fail;
7102 swig_obj[0] = args;
7103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7104 if (!SWIG_IsOK(res1)) {
7105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7106 }
7107 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7108 {
7109 PyThreadState* __tstate = wxPyBeginAllowThreads();
7110 {
7111 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
7112 result = (wxString *) &_result_ref;
7113 }
7114 wxPyEndAllowThreads(__tstate);
7115 if (PyErr_Occurred()) SWIG_fail;
7116 }
7117 {
7118 #if wxUSE_UNICODE
7119 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7120 #else
7121 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7122 #endif
7123 }
7124 return resultobj;
7125 fail:
7126 return NULL;
7127 }
7128
7129
7130 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7131 PyObject *resultobj = 0;
7132 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7133 int arg2 ;
7134 void *argp1 = 0 ;
7135 int res1 = 0 ;
7136 int val2 ;
7137 int ecode2 = 0 ;
7138 PyObject * obj0 = 0 ;
7139 PyObject * obj1 = 0 ;
7140 char * kwnames[] = {
7141 (char *) "self",(char *) "num", NULL
7142 };
7143
7144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
7145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7146 if (!SWIG_IsOK(res1)) {
7147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7148 }
7149 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7150 ecode2 = SWIG_AsVal_int(obj1, &val2);
7151 if (!SWIG_IsOK(ecode2)) {
7152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
7153 }
7154 arg2 = static_cast< int >(val2);
7155 {
7156 PyThreadState* __tstate = wxPyBeginAllowThreads();
7157 wxIconLocation_SetIndex(arg1,arg2);
7158 wxPyEndAllowThreads(__tstate);
7159 if (PyErr_Occurred()) SWIG_fail;
7160 }
7161 resultobj = SWIG_Py_Void();
7162 return resultobj;
7163 fail:
7164 return NULL;
7165 }
7166
7167
7168 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7169 PyObject *resultobj = 0;
7170 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7171 int result;
7172 void *argp1 = 0 ;
7173 int res1 = 0 ;
7174 PyObject *swig_obj[1] ;
7175
7176 if (!args) SWIG_fail;
7177 swig_obj[0] = args;
7178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7179 if (!SWIG_IsOK(res1)) {
7180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7181 }
7182 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7183 {
7184 PyThreadState* __tstate = wxPyBeginAllowThreads();
7185 result = (int)wxIconLocation_GetIndex(arg1);
7186 wxPyEndAllowThreads(__tstate);
7187 if (PyErr_Occurred()) SWIG_fail;
7188 }
7189 resultobj = SWIG_From_int(static_cast< int >(result));
7190 return resultobj;
7191 fail:
7192 return NULL;
7193 }
7194
7195
7196 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7197 PyObject *obj;
7198 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7199 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
7200 return SWIG_Py_Void();
7201 }
7202
7203 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7204 return SWIG_Python_InitShadowInstance(args);
7205 }
7206
7207 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7208 PyObject *resultobj = 0;
7209 wxIconBundle *result = 0 ;
7210
7211 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
7212 {
7213 PyThreadState* __tstate = wxPyBeginAllowThreads();
7214 result = (wxIconBundle *)new wxIconBundle();
7215 wxPyEndAllowThreads(__tstate);
7216 if (PyErr_Occurred()) SWIG_fail;
7217 }
7218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
7219 return resultobj;
7220 fail:
7221 return NULL;
7222 }
7223
7224
7225 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7226 PyObject *resultobj = 0;
7227 wxString *arg1 = 0 ;
7228 long arg2 ;
7229 wxIconBundle *result = 0 ;
7230 bool temp1 = false ;
7231 long val2 ;
7232 int ecode2 = 0 ;
7233 PyObject * obj0 = 0 ;
7234 PyObject * obj1 = 0 ;
7235 char * kwnames[] = {
7236 (char *) "file",(char *) "type", NULL
7237 };
7238
7239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
7240 {
7241 arg1 = wxString_in_helper(obj0);
7242 if (arg1 == NULL) SWIG_fail;
7243 temp1 = true;
7244 }
7245 ecode2 = SWIG_AsVal_long(obj1, &val2);
7246 if (!SWIG_IsOK(ecode2)) {
7247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
7248 }
7249 arg2 = static_cast< long >(val2);
7250 {
7251 PyThreadState* __tstate = wxPyBeginAllowThreads();
7252 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
7253 wxPyEndAllowThreads(__tstate);
7254 if (PyErr_Occurred()) SWIG_fail;
7255 }
7256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7257 {
7258 if (temp1)
7259 delete arg1;
7260 }
7261 return resultobj;
7262 fail:
7263 {
7264 if (temp1)
7265 delete arg1;
7266 }
7267 return NULL;
7268 }
7269
7270
7271 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7272 PyObject *resultobj = 0;
7273 wxIcon *arg1 = 0 ;
7274 wxIconBundle *result = 0 ;
7275 void *argp1 = 0 ;
7276 int res1 = 0 ;
7277 PyObject * obj0 = 0 ;
7278 char * kwnames[] = {
7279 (char *) "icon", NULL
7280 };
7281
7282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
7283 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
7284 if (!SWIG_IsOK(res1)) {
7285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7286 }
7287 if (!argp1) {
7288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7289 }
7290 arg1 = reinterpret_cast< wxIcon * >(argp1);
7291 {
7292 PyThreadState* __tstate = wxPyBeginAllowThreads();
7293 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
7294 wxPyEndAllowThreads(__tstate);
7295 if (PyErr_Occurred()) SWIG_fail;
7296 }
7297 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7298 return resultobj;
7299 fail:
7300 return NULL;
7301 }
7302
7303
7304 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7305 PyObject *resultobj = 0;
7306 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7307 void *argp1 = 0 ;
7308 int res1 = 0 ;
7309 PyObject *swig_obj[1] ;
7310
7311 if (!args) SWIG_fail;
7312 swig_obj[0] = args;
7313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
7314 if (!SWIG_IsOK(res1)) {
7315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7316 }
7317 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7318 {
7319 PyThreadState* __tstate = wxPyBeginAllowThreads();
7320 delete arg1;
7321
7322 wxPyEndAllowThreads(__tstate);
7323 if (PyErr_Occurred()) SWIG_fail;
7324 }
7325 resultobj = SWIG_Py_Void();
7326 return resultobj;
7327 fail:
7328 return NULL;
7329 }
7330
7331
7332 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7333 PyObject *resultobj = 0;
7334 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7335 wxIcon *arg2 = 0 ;
7336 void *argp1 = 0 ;
7337 int res1 = 0 ;
7338 void *argp2 = 0 ;
7339 int res2 = 0 ;
7340 PyObject * obj0 = 0 ;
7341 PyObject * obj1 = 0 ;
7342 char * kwnames[] = {
7343 (char *) "self",(char *) "icon", NULL
7344 };
7345
7346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7348 if (!SWIG_IsOK(res1)) {
7349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7350 }
7351 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7352 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
7353 if (!SWIG_IsOK(res2)) {
7354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7355 }
7356 if (!argp2) {
7357 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7358 }
7359 arg2 = reinterpret_cast< wxIcon * >(argp2);
7360 {
7361 PyThreadState* __tstate = wxPyBeginAllowThreads();
7362 (arg1)->AddIcon((wxIcon const &)*arg2);
7363 wxPyEndAllowThreads(__tstate);
7364 if (PyErr_Occurred()) SWIG_fail;
7365 }
7366 resultobj = SWIG_Py_Void();
7367 return resultobj;
7368 fail:
7369 return NULL;
7370 }
7371
7372
7373 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7374 PyObject *resultobj = 0;
7375 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7376 wxString *arg2 = 0 ;
7377 long arg3 ;
7378 void *argp1 = 0 ;
7379 int res1 = 0 ;
7380 bool temp2 = false ;
7381 long val3 ;
7382 int ecode3 = 0 ;
7383 PyObject * obj0 = 0 ;
7384 PyObject * obj1 = 0 ;
7385 PyObject * obj2 = 0 ;
7386 char * kwnames[] = {
7387 (char *) "self",(char *) "file",(char *) "type", NULL
7388 };
7389
7390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7392 if (!SWIG_IsOK(res1)) {
7393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7394 }
7395 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7396 {
7397 arg2 = wxString_in_helper(obj1);
7398 if (arg2 == NULL) SWIG_fail;
7399 temp2 = true;
7400 }
7401 ecode3 = SWIG_AsVal_long(obj2, &val3);
7402 if (!SWIG_IsOK(ecode3)) {
7403 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
7404 }
7405 arg3 = static_cast< long >(val3);
7406 {
7407 PyThreadState* __tstate = wxPyBeginAllowThreads();
7408 (arg1)->AddIcon((wxString const &)*arg2,arg3);
7409 wxPyEndAllowThreads(__tstate);
7410 if (PyErr_Occurred()) SWIG_fail;
7411 }
7412 resultobj = SWIG_Py_Void();
7413 {
7414 if (temp2)
7415 delete arg2;
7416 }
7417 return resultobj;
7418 fail:
7419 {
7420 if (temp2)
7421 delete arg2;
7422 }
7423 return NULL;
7424 }
7425
7426
7427 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7428 PyObject *resultobj = 0;
7429 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7430 wxSize *arg2 = 0 ;
7431 wxIcon *result = 0 ;
7432 void *argp1 = 0 ;
7433 int res1 = 0 ;
7434 wxSize temp2 ;
7435 PyObject * obj0 = 0 ;
7436 PyObject * obj1 = 0 ;
7437 char * kwnames[] = {
7438 (char *) "self",(char *) "size", NULL
7439 };
7440
7441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7443 if (!SWIG_IsOK(res1)) {
7444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
7445 }
7446 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7447 {
7448 arg2 = &temp2;
7449 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7450 }
7451 {
7452 PyThreadState* __tstate = wxPyBeginAllowThreads();
7453 {
7454 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
7455 result = (wxIcon *) &_result_ref;
7456 }
7457 wxPyEndAllowThreads(__tstate);
7458 if (PyErr_Occurred()) SWIG_fail;
7459 }
7460 {
7461 wxIcon* resultptr = new wxIcon(*result);
7462 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
7463 }
7464 return resultobj;
7465 fail:
7466 return NULL;
7467 }
7468
7469
7470 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7471 PyObject *obj;
7472 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7473 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
7474 return SWIG_Py_Void();
7475 }
7476
7477 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7478 return SWIG_Python_InitShadowInstance(args);
7479 }
7480
7481 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7482 PyObject *resultobj = 0;
7483 wxString *arg1 = 0 ;
7484 long arg2 ;
7485 int arg3 = (int) 0 ;
7486 int arg4 = (int) 0 ;
7487 wxCursor *result = 0 ;
7488 bool temp1 = false ;
7489 long val2 ;
7490 int ecode2 = 0 ;
7491 int val3 ;
7492 int ecode3 = 0 ;
7493 int val4 ;
7494 int ecode4 = 0 ;
7495 PyObject * obj0 = 0 ;
7496 PyObject * obj1 = 0 ;
7497 PyObject * obj2 = 0 ;
7498 PyObject * obj3 = 0 ;
7499 char * kwnames[] = {
7500 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
7501 };
7502
7503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7504 {
7505 arg1 = wxString_in_helper(obj0);
7506 if (arg1 == NULL) SWIG_fail;
7507 temp1 = true;
7508 }
7509 ecode2 = SWIG_AsVal_long(obj1, &val2);
7510 if (!SWIG_IsOK(ecode2)) {
7511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
7512 }
7513 arg2 = static_cast< long >(val2);
7514 if (obj2) {
7515 ecode3 = SWIG_AsVal_int(obj2, &val3);
7516 if (!SWIG_IsOK(ecode3)) {
7517 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
7518 }
7519 arg3 = static_cast< int >(val3);
7520 }
7521 if (obj3) {
7522 ecode4 = SWIG_AsVal_int(obj3, &val4);
7523 if (!SWIG_IsOK(ecode4)) {
7524 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
7525 }
7526 arg4 = static_cast< int >(val4);
7527 }
7528 {
7529 if (!wxPyCheckForApp()) SWIG_fail;
7530 PyThreadState* __tstate = wxPyBeginAllowThreads();
7531 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
7532 wxPyEndAllowThreads(__tstate);
7533 if (PyErr_Occurred()) SWIG_fail;
7534 }
7535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
7536 {
7537 if (temp1)
7538 delete arg1;
7539 }
7540 return resultobj;
7541 fail:
7542 {
7543 if (temp1)
7544 delete arg1;
7545 }
7546 return NULL;
7547 }
7548
7549
7550 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7551 PyObject *resultobj = 0;
7552 wxCursor *arg1 = (wxCursor *) 0 ;
7553 void *argp1 = 0 ;
7554 int res1 = 0 ;
7555 PyObject *swig_obj[1] ;
7556
7557 if (!args) SWIG_fail;
7558 swig_obj[0] = args;
7559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
7560 if (!SWIG_IsOK(res1)) {
7561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
7562 }
7563 arg1 = reinterpret_cast< wxCursor * >(argp1);
7564 {
7565 PyThreadState* __tstate = wxPyBeginAllowThreads();
7566 delete arg1;
7567
7568 wxPyEndAllowThreads(__tstate);
7569 if (PyErr_Occurred()) SWIG_fail;
7570 }
7571 resultobj = SWIG_Py_Void();
7572 return resultobj;
7573 fail:
7574 return NULL;
7575 }
7576
7577
7578 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7579 PyObject *resultobj = 0;
7580 int arg1 ;
7581 wxCursor *result = 0 ;
7582 int val1 ;
7583 int ecode1 = 0 ;
7584 PyObject * obj0 = 0 ;
7585 char * kwnames[] = {
7586 (char *) "id", NULL
7587 };
7588
7589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
7590 ecode1 = SWIG_AsVal_int(obj0, &val1);
7591 if (!SWIG_IsOK(ecode1)) {
7592 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
7593 }
7594 arg1 = static_cast< int >(val1);
7595 {
7596 if (!wxPyCheckForApp()) SWIG_fail;
7597 PyThreadState* __tstate = wxPyBeginAllowThreads();
7598 result = (wxCursor *)new wxCursor(arg1);
7599 wxPyEndAllowThreads(__tstate);
7600 if (PyErr_Occurred()) SWIG_fail;
7601 }
7602 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7603 return resultobj;
7604 fail:
7605 return NULL;
7606 }
7607
7608
7609 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7610 PyObject *resultobj = 0;
7611 wxImage *arg1 = 0 ;
7612 wxCursor *result = 0 ;
7613 void *argp1 = 0 ;
7614 int res1 = 0 ;
7615 PyObject * obj0 = 0 ;
7616 char * kwnames[] = {
7617 (char *) "image", NULL
7618 };
7619
7620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
7621 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
7622 if (!SWIG_IsOK(res1)) {
7623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7624 }
7625 if (!argp1) {
7626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7627 }
7628 arg1 = reinterpret_cast< wxImage * >(argp1);
7629 {
7630 if (!wxPyCheckForApp()) SWIG_fail;
7631 PyThreadState* __tstate = wxPyBeginAllowThreads();
7632 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
7633 wxPyEndAllowThreads(__tstate);
7634 if (PyErr_Occurred()) SWIG_fail;
7635 }
7636 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7637 return resultobj;
7638 fail:
7639 return NULL;
7640 }
7641
7642
7643 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7644 PyObject *resultobj = 0;
7645 wxCursor *arg1 = (wxCursor *) 0 ;
7646 bool result;
7647 void *argp1 = 0 ;
7648 int res1 = 0 ;
7649 PyObject *swig_obj[1] ;
7650
7651 if (!args) SWIG_fail;
7652 swig_obj[0] = args;
7653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7654 if (!SWIG_IsOK(res1)) {
7655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
7656 }
7657 arg1 = reinterpret_cast< wxCursor * >(argp1);
7658 {
7659 PyThreadState* __tstate = wxPyBeginAllowThreads();
7660 result = (bool)(arg1)->Ok();
7661 wxPyEndAllowThreads(__tstate);
7662 if (PyErr_Occurred()) SWIG_fail;
7663 }
7664 {
7665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7666 }
7667 return resultobj;
7668 fail:
7669 return NULL;
7670 }
7671
7672
7673 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7674 PyObject *obj;
7675 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7676 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
7677 return SWIG_Py_Void();
7678 }
7679
7680 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7681 return SWIG_Python_InitShadowInstance(args);
7682 }
7683
7684 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7685 PyObject *resultobj = 0;
7686 int arg1 = (int) 0 ;
7687 int arg2 = (int) 0 ;
7688 int arg3 = (int) 0 ;
7689 int arg4 = (int) 0 ;
7690 wxRegion *result = 0 ;
7691 int val1 ;
7692 int ecode1 = 0 ;
7693 int val2 ;
7694 int ecode2 = 0 ;
7695 int val3 ;
7696 int ecode3 = 0 ;
7697 int val4 ;
7698 int ecode4 = 0 ;
7699 PyObject * obj0 = 0 ;
7700 PyObject * obj1 = 0 ;
7701 PyObject * obj2 = 0 ;
7702 PyObject * obj3 = 0 ;
7703 char * kwnames[] = {
7704 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7705 };
7706
7707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7708 if (obj0) {
7709 ecode1 = SWIG_AsVal_int(obj0, &val1);
7710 if (!SWIG_IsOK(ecode1)) {
7711 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
7712 }
7713 arg1 = static_cast< int >(val1);
7714 }
7715 if (obj1) {
7716 ecode2 = SWIG_AsVal_int(obj1, &val2);
7717 if (!SWIG_IsOK(ecode2)) {
7718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
7719 }
7720 arg2 = static_cast< int >(val2);
7721 }
7722 if (obj2) {
7723 ecode3 = SWIG_AsVal_int(obj2, &val3);
7724 if (!SWIG_IsOK(ecode3)) {
7725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
7726 }
7727 arg3 = static_cast< int >(val3);
7728 }
7729 if (obj3) {
7730 ecode4 = SWIG_AsVal_int(obj3, &val4);
7731 if (!SWIG_IsOK(ecode4)) {
7732 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
7733 }
7734 arg4 = static_cast< int >(val4);
7735 }
7736 {
7737 if (!wxPyCheckForApp()) SWIG_fail;
7738 PyThreadState* __tstate = wxPyBeginAllowThreads();
7739 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
7740 wxPyEndAllowThreads(__tstate);
7741 if (PyErr_Occurred()) SWIG_fail;
7742 }
7743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
7744 return resultobj;
7745 fail:
7746 return NULL;
7747 }
7748
7749
7750 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7751 PyObject *resultobj = 0;
7752 wxBitmap *arg1 = 0 ;
7753 wxRegion *result = 0 ;
7754 void *argp1 = 0 ;
7755 int res1 = 0 ;
7756 PyObject * obj0 = 0 ;
7757 char * kwnames[] = {
7758 (char *) "bmp", NULL
7759 };
7760
7761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
7762 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7763 if (!SWIG_IsOK(res1)) {
7764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7765 }
7766 if (!argp1) {
7767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7768 }
7769 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7770 {
7771 if (!wxPyCheckForApp()) SWIG_fail;
7772 PyThreadState* __tstate = wxPyBeginAllowThreads();
7773 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
7774 wxPyEndAllowThreads(__tstate);
7775 if (PyErr_Occurred()) SWIG_fail;
7776 }
7777 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7778 return resultobj;
7779 fail:
7780 return NULL;
7781 }
7782
7783
7784 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7785 PyObject *resultobj = 0;
7786 wxBitmap *arg1 = 0 ;
7787 wxColour *arg2 = 0 ;
7788 int arg3 = (int) 0 ;
7789 wxRegion *result = 0 ;
7790 void *argp1 = 0 ;
7791 int res1 = 0 ;
7792 wxColour temp2 ;
7793 int val3 ;
7794 int ecode3 = 0 ;
7795 PyObject * obj0 = 0 ;
7796 PyObject * obj1 = 0 ;
7797 PyObject * obj2 = 0 ;
7798 char * kwnames[] = {
7799 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
7800 };
7801
7802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7803 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7804 if (!SWIG_IsOK(res1)) {
7805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7806 }
7807 if (!argp1) {
7808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7809 }
7810 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7811 {
7812 arg2 = &temp2;
7813 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7814 }
7815 if (obj2) {
7816 ecode3 = SWIG_AsVal_int(obj2, &val3);
7817 if (!SWIG_IsOK(ecode3)) {
7818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
7819 }
7820 arg3 = static_cast< int >(val3);
7821 }
7822 {
7823 if (!wxPyCheckForApp()) SWIG_fail;
7824 PyThreadState* __tstate = wxPyBeginAllowThreads();
7825 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
7826 wxPyEndAllowThreads(__tstate);
7827 if (PyErr_Occurred()) SWIG_fail;
7828 }
7829 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7830 return resultobj;
7831 fail:
7832 return NULL;
7833 }
7834
7835
7836 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7837 PyObject *resultobj = 0;
7838 int arg1 ;
7839 wxPoint *arg2 = (wxPoint *) 0 ;
7840 int arg3 = (int) wxWINDING_RULE ;
7841 wxRegion *result = 0 ;
7842 int val3 ;
7843 int ecode3 = 0 ;
7844 PyObject * obj0 = 0 ;
7845 PyObject * obj1 = 0 ;
7846 char * kwnames[] = {
7847 (char *) "points",(char *) "fillStyle", NULL
7848 };
7849
7850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
7851 {
7852 arg2 = wxPoint_LIST_helper(obj0, &arg1);
7853 if (arg2 == NULL) SWIG_fail;
7854 }
7855 if (obj1) {
7856 ecode3 = SWIG_AsVal_int(obj1, &val3);
7857 if (!SWIG_IsOK(ecode3)) {
7858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
7859 }
7860 arg3 = static_cast< int >(val3);
7861 }
7862 {
7863 if (!wxPyCheckForApp()) SWIG_fail;
7864 PyThreadState* __tstate = wxPyBeginAllowThreads();
7865 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
7866 wxPyEndAllowThreads(__tstate);
7867 if (PyErr_Occurred()) SWIG_fail;
7868 }
7869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7870 {
7871 if (arg2) delete [] arg2;
7872 }
7873 return resultobj;
7874 fail:
7875 {
7876 if (arg2) delete [] arg2;
7877 }
7878 return NULL;
7879 }
7880
7881
7882 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7883 PyObject *resultobj = 0;
7884 wxRegion *arg1 = (wxRegion *) 0 ;
7885 void *argp1 = 0 ;
7886 int res1 = 0 ;
7887 PyObject *swig_obj[1] ;
7888
7889 if (!args) SWIG_fail;
7890 swig_obj[0] = args;
7891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
7892 if (!SWIG_IsOK(res1)) {
7893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
7894 }
7895 arg1 = reinterpret_cast< wxRegion * >(argp1);
7896 {
7897 PyThreadState* __tstate = wxPyBeginAllowThreads();
7898 delete arg1;
7899
7900 wxPyEndAllowThreads(__tstate);
7901 if (PyErr_Occurred()) SWIG_fail;
7902 }
7903 resultobj = SWIG_Py_Void();
7904 return resultobj;
7905 fail:
7906 return NULL;
7907 }
7908
7909
7910 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7911 PyObject *resultobj = 0;
7912 wxRegion *arg1 = (wxRegion *) 0 ;
7913 void *argp1 = 0 ;
7914 int res1 = 0 ;
7915 PyObject *swig_obj[1] ;
7916
7917 if (!args) SWIG_fail;
7918 swig_obj[0] = args;
7919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7920 if (!SWIG_IsOK(res1)) {
7921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
7922 }
7923 arg1 = reinterpret_cast< wxRegion * >(argp1);
7924 {
7925 PyThreadState* __tstate = wxPyBeginAllowThreads();
7926 (arg1)->Clear();
7927 wxPyEndAllowThreads(__tstate);
7928 if (PyErr_Occurred()) SWIG_fail;
7929 }
7930 resultobj = SWIG_Py_Void();
7931 return resultobj;
7932 fail:
7933 return NULL;
7934 }
7935
7936
7937 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7938 PyObject *resultobj = 0;
7939 wxRegion *arg1 = (wxRegion *) 0 ;
7940 int arg2 ;
7941 int arg3 ;
7942 bool result;
7943 void *argp1 = 0 ;
7944 int res1 = 0 ;
7945 int val2 ;
7946 int ecode2 = 0 ;
7947 int val3 ;
7948 int ecode3 = 0 ;
7949 PyObject * obj0 = 0 ;
7950 PyObject * obj1 = 0 ;
7951 PyObject * obj2 = 0 ;
7952 char * kwnames[] = {
7953 (char *) "self",(char *) "x",(char *) "y", NULL
7954 };
7955
7956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7958 if (!SWIG_IsOK(res1)) {
7959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
7960 }
7961 arg1 = reinterpret_cast< wxRegion * >(argp1);
7962 ecode2 = SWIG_AsVal_int(obj1, &val2);
7963 if (!SWIG_IsOK(ecode2)) {
7964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
7965 }
7966 arg2 = static_cast< int >(val2);
7967 ecode3 = SWIG_AsVal_int(obj2, &val3);
7968 if (!SWIG_IsOK(ecode3)) {
7969 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
7970 }
7971 arg3 = static_cast< int >(val3);
7972 {
7973 PyThreadState* __tstate = wxPyBeginAllowThreads();
7974 result = (bool)(arg1)->Offset(arg2,arg3);
7975 wxPyEndAllowThreads(__tstate);
7976 if (PyErr_Occurred()) SWIG_fail;
7977 }
7978 {
7979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7980 }
7981 return resultobj;
7982 fail:
7983 return NULL;
7984 }
7985
7986
7987 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7988 PyObject *resultobj = 0;
7989 wxRegion *arg1 = (wxRegion *) 0 ;
7990 int arg2 ;
7991 int arg3 ;
7992 wxRegionContain result;
7993 void *argp1 = 0 ;
7994 int res1 = 0 ;
7995 int val2 ;
7996 int ecode2 = 0 ;
7997 int val3 ;
7998 int ecode3 = 0 ;
7999 PyObject * obj0 = 0 ;
8000 PyObject * obj1 = 0 ;
8001 PyObject * obj2 = 0 ;
8002 char * kwnames[] = {
8003 (char *) "self",(char *) "x",(char *) "y", NULL
8004 };
8005
8006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8008 if (!SWIG_IsOK(res1)) {
8009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
8010 }
8011 arg1 = reinterpret_cast< wxRegion * >(argp1);
8012 ecode2 = SWIG_AsVal_int(obj1, &val2);
8013 if (!SWIG_IsOK(ecode2)) {
8014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
8015 }
8016 arg2 = static_cast< int >(val2);
8017 ecode3 = SWIG_AsVal_int(obj2, &val3);
8018 if (!SWIG_IsOK(ecode3)) {
8019 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
8020 }
8021 arg3 = static_cast< int >(val3);
8022 {
8023 PyThreadState* __tstate = wxPyBeginAllowThreads();
8024 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
8025 wxPyEndAllowThreads(__tstate);
8026 if (PyErr_Occurred()) SWIG_fail;
8027 }
8028 resultobj = SWIG_From_int(static_cast< int >(result));
8029 return resultobj;
8030 fail:
8031 return NULL;
8032 }
8033
8034
8035 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8036 PyObject *resultobj = 0;
8037 wxRegion *arg1 = (wxRegion *) 0 ;
8038 wxPoint *arg2 = 0 ;
8039 wxRegionContain result;
8040 void *argp1 = 0 ;
8041 int res1 = 0 ;
8042 wxPoint temp2 ;
8043 PyObject * obj0 = 0 ;
8044 PyObject * obj1 = 0 ;
8045 char * kwnames[] = {
8046 (char *) "self",(char *) "pt", NULL
8047 };
8048
8049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
8050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8051 if (!SWIG_IsOK(res1)) {
8052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
8053 }
8054 arg1 = reinterpret_cast< wxRegion * >(argp1);
8055 {
8056 arg2 = &temp2;
8057 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8058 }
8059 {
8060 PyThreadState* __tstate = wxPyBeginAllowThreads();
8061 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
8062 wxPyEndAllowThreads(__tstate);
8063 if (PyErr_Occurred()) SWIG_fail;
8064 }
8065 resultobj = SWIG_From_int(static_cast< int >(result));
8066 return resultobj;
8067 fail:
8068 return NULL;
8069 }
8070
8071
8072 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8073 PyObject *resultobj = 0;
8074 wxRegion *arg1 = (wxRegion *) 0 ;
8075 wxRect *arg2 = 0 ;
8076 wxRegionContain result;
8077 void *argp1 = 0 ;
8078 int res1 = 0 ;
8079 wxRect temp2 ;
8080 PyObject * obj0 = 0 ;
8081 PyObject * obj1 = 0 ;
8082 char * kwnames[] = {
8083 (char *) "self",(char *) "rect", NULL
8084 };
8085
8086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
8087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8088 if (!SWIG_IsOK(res1)) {
8089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8090 }
8091 arg1 = reinterpret_cast< wxRegion * >(argp1);
8092 {
8093 arg2 = &temp2;
8094 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8095 }
8096 {
8097 PyThreadState* __tstate = wxPyBeginAllowThreads();
8098 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
8099 wxPyEndAllowThreads(__tstate);
8100 if (PyErr_Occurred()) SWIG_fail;
8101 }
8102 resultobj = SWIG_From_int(static_cast< int >(result));
8103 return resultobj;
8104 fail:
8105 return NULL;
8106 }
8107
8108
8109 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8110 PyObject *resultobj = 0;
8111 wxRegion *arg1 = (wxRegion *) 0 ;
8112 int arg2 ;
8113 int arg3 ;
8114 int arg4 ;
8115 int arg5 ;
8116 wxRegionContain result;
8117 void *argp1 = 0 ;
8118 int res1 = 0 ;
8119 int val2 ;
8120 int ecode2 = 0 ;
8121 int val3 ;
8122 int ecode3 = 0 ;
8123 int val4 ;
8124 int ecode4 = 0 ;
8125 int val5 ;
8126 int ecode5 = 0 ;
8127 PyObject * obj0 = 0 ;
8128 PyObject * obj1 = 0 ;
8129 PyObject * obj2 = 0 ;
8130 PyObject * obj3 = 0 ;
8131 PyObject * obj4 = 0 ;
8132 char * kwnames[] = {
8133 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
8134 };
8135
8136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8138 if (!SWIG_IsOK(res1)) {
8139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
8140 }
8141 arg1 = reinterpret_cast< wxRegion * >(argp1);
8142 ecode2 = SWIG_AsVal_int(obj1, &val2);
8143 if (!SWIG_IsOK(ecode2)) {
8144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
8145 }
8146 arg2 = static_cast< int >(val2);
8147 ecode3 = SWIG_AsVal_int(obj2, &val3);
8148 if (!SWIG_IsOK(ecode3)) {
8149 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
8150 }
8151 arg3 = static_cast< int >(val3);
8152 ecode4 = SWIG_AsVal_int(obj3, &val4);
8153 if (!SWIG_IsOK(ecode4)) {
8154 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
8155 }
8156 arg4 = static_cast< int >(val4);
8157 ecode5 = SWIG_AsVal_int(obj4, &val5);
8158 if (!SWIG_IsOK(ecode5)) {
8159 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
8160 }
8161 arg5 = static_cast< int >(val5);
8162 {
8163 PyThreadState* __tstate = wxPyBeginAllowThreads();
8164 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
8165 wxPyEndAllowThreads(__tstate);
8166 if (PyErr_Occurred()) SWIG_fail;
8167 }
8168 resultobj = SWIG_From_int(static_cast< int >(result));
8169 return resultobj;
8170 fail:
8171 return NULL;
8172 }
8173
8174
8175 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8176 PyObject *resultobj = 0;
8177 wxRegion *arg1 = (wxRegion *) 0 ;
8178 wxRect result;
8179 void *argp1 = 0 ;
8180 int res1 = 0 ;
8181 PyObject *swig_obj[1] ;
8182
8183 if (!args) SWIG_fail;
8184 swig_obj[0] = args;
8185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8186 if (!SWIG_IsOK(res1)) {
8187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
8188 }
8189 arg1 = reinterpret_cast< wxRegion * >(argp1);
8190 {
8191 PyThreadState* __tstate = wxPyBeginAllowThreads();
8192 result = (arg1)->GetBox();
8193 wxPyEndAllowThreads(__tstate);
8194 if (PyErr_Occurred()) SWIG_fail;
8195 }
8196 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
8197 return resultobj;
8198 fail:
8199 return NULL;
8200 }
8201
8202
8203 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8204 PyObject *resultobj = 0;
8205 wxRegion *arg1 = (wxRegion *) 0 ;
8206 int arg2 ;
8207 int arg3 ;
8208 int arg4 ;
8209 int arg5 ;
8210 bool result;
8211 void *argp1 = 0 ;
8212 int res1 = 0 ;
8213 int val2 ;
8214 int ecode2 = 0 ;
8215 int val3 ;
8216 int ecode3 = 0 ;
8217 int val4 ;
8218 int ecode4 = 0 ;
8219 int val5 ;
8220 int ecode5 = 0 ;
8221 PyObject * obj0 = 0 ;
8222 PyObject * obj1 = 0 ;
8223 PyObject * obj2 = 0 ;
8224 PyObject * obj3 = 0 ;
8225 PyObject * obj4 = 0 ;
8226 char * kwnames[] = {
8227 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8228 };
8229
8230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8232 if (!SWIG_IsOK(res1)) {
8233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
8234 }
8235 arg1 = reinterpret_cast< wxRegion * >(argp1);
8236 ecode2 = SWIG_AsVal_int(obj1, &val2);
8237 if (!SWIG_IsOK(ecode2)) {
8238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
8239 }
8240 arg2 = static_cast< int >(val2);
8241 ecode3 = SWIG_AsVal_int(obj2, &val3);
8242 if (!SWIG_IsOK(ecode3)) {
8243 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
8244 }
8245 arg3 = static_cast< int >(val3);
8246 ecode4 = SWIG_AsVal_int(obj3, &val4);
8247 if (!SWIG_IsOK(ecode4)) {
8248 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
8249 }
8250 arg4 = static_cast< int >(val4);
8251 ecode5 = SWIG_AsVal_int(obj4, &val5);
8252 if (!SWIG_IsOK(ecode5)) {
8253 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
8254 }
8255 arg5 = static_cast< int >(val5);
8256 {
8257 PyThreadState* __tstate = wxPyBeginAllowThreads();
8258 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
8259 wxPyEndAllowThreads(__tstate);
8260 if (PyErr_Occurred()) SWIG_fail;
8261 }
8262 {
8263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8264 }
8265 return resultobj;
8266 fail:
8267 return NULL;
8268 }
8269
8270
8271 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8272 PyObject *resultobj = 0;
8273 wxRegion *arg1 = (wxRegion *) 0 ;
8274 wxRect *arg2 = 0 ;
8275 bool result;
8276 void *argp1 = 0 ;
8277 int res1 = 0 ;
8278 wxRect temp2 ;
8279 PyObject * obj0 = 0 ;
8280 PyObject * obj1 = 0 ;
8281 char * kwnames[] = {
8282 (char *) "self",(char *) "rect", NULL
8283 };
8284
8285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8287 if (!SWIG_IsOK(res1)) {
8288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8289 }
8290 arg1 = reinterpret_cast< wxRegion * >(argp1);
8291 {
8292 arg2 = &temp2;
8293 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8294 }
8295 {
8296 PyThreadState* __tstate = wxPyBeginAllowThreads();
8297 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
8298 wxPyEndAllowThreads(__tstate);
8299 if (PyErr_Occurred()) SWIG_fail;
8300 }
8301 {
8302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8303 }
8304 return resultobj;
8305 fail:
8306 return NULL;
8307 }
8308
8309
8310 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8311 PyObject *resultobj = 0;
8312 wxRegion *arg1 = (wxRegion *) 0 ;
8313 wxRegion *arg2 = 0 ;
8314 bool result;
8315 void *argp1 = 0 ;
8316 int res1 = 0 ;
8317 void *argp2 = 0 ;
8318 int res2 = 0 ;
8319 PyObject * obj0 = 0 ;
8320 PyObject * obj1 = 0 ;
8321 char * kwnames[] = {
8322 (char *) "self",(char *) "region", NULL
8323 };
8324
8325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8327 if (!SWIG_IsOK(res1)) {
8328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8329 }
8330 arg1 = reinterpret_cast< wxRegion * >(argp1);
8331 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8332 if (!SWIG_IsOK(res2)) {
8333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8334 }
8335 if (!argp2) {
8336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8337 }
8338 arg2 = reinterpret_cast< wxRegion * >(argp2);
8339 {
8340 PyThreadState* __tstate = wxPyBeginAllowThreads();
8341 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
8342 wxPyEndAllowThreads(__tstate);
8343 if (PyErr_Occurred()) SWIG_fail;
8344 }
8345 {
8346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8347 }
8348 return resultobj;
8349 fail:
8350 return NULL;
8351 }
8352
8353
8354 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8355 PyObject *resultobj = 0;
8356 wxRegion *arg1 = (wxRegion *) 0 ;
8357 bool result;
8358 void *argp1 = 0 ;
8359 int res1 = 0 ;
8360 PyObject *swig_obj[1] ;
8361
8362 if (!args) SWIG_fail;
8363 swig_obj[0] = args;
8364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8365 if (!SWIG_IsOK(res1)) {
8366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
8367 }
8368 arg1 = reinterpret_cast< wxRegion * >(argp1);
8369 {
8370 PyThreadState* __tstate = wxPyBeginAllowThreads();
8371 result = (bool)(arg1)->IsEmpty();
8372 wxPyEndAllowThreads(__tstate);
8373 if (PyErr_Occurred()) SWIG_fail;
8374 }
8375 {
8376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8377 }
8378 return resultobj;
8379 fail:
8380 return NULL;
8381 }
8382
8383
8384 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8385 PyObject *resultobj = 0;
8386 wxRegion *arg1 = (wxRegion *) 0 ;
8387 int arg2 ;
8388 int arg3 ;
8389 int arg4 ;
8390 int arg5 ;
8391 bool result;
8392 void *argp1 = 0 ;
8393 int res1 = 0 ;
8394 int val2 ;
8395 int ecode2 = 0 ;
8396 int val3 ;
8397 int ecode3 = 0 ;
8398 int val4 ;
8399 int ecode4 = 0 ;
8400 int val5 ;
8401 int ecode5 = 0 ;
8402 PyObject * obj0 = 0 ;
8403 PyObject * obj1 = 0 ;
8404 PyObject * obj2 = 0 ;
8405 PyObject * obj3 = 0 ;
8406 PyObject * obj4 = 0 ;
8407 char * kwnames[] = {
8408 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8409 };
8410
8411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8413 if (!SWIG_IsOK(res1)) {
8414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
8415 }
8416 arg1 = reinterpret_cast< wxRegion * >(argp1);
8417 ecode2 = SWIG_AsVal_int(obj1, &val2);
8418 if (!SWIG_IsOK(ecode2)) {
8419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
8420 }
8421 arg2 = static_cast< int >(val2);
8422 ecode3 = SWIG_AsVal_int(obj2, &val3);
8423 if (!SWIG_IsOK(ecode3)) {
8424 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
8425 }
8426 arg3 = static_cast< int >(val3);
8427 ecode4 = SWIG_AsVal_int(obj3, &val4);
8428 if (!SWIG_IsOK(ecode4)) {
8429 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
8430 }
8431 arg4 = static_cast< int >(val4);
8432 ecode5 = SWIG_AsVal_int(obj4, &val5);
8433 if (!SWIG_IsOK(ecode5)) {
8434 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
8435 }
8436 arg5 = static_cast< int >(val5);
8437 {
8438 PyThreadState* __tstate = wxPyBeginAllowThreads();
8439 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
8440 wxPyEndAllowThreads(__tstate);
8441 if (PyErr_Occurred()) SWIG_fail;
8442 }
8443 {
8444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8445 }
8446 return resultobj;
8447 fail:
8448 return NULL;
8449 }
8450
8451
8452 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8453 PyObject *resultobj = 0;
8454 wxRegion *arg1 = (wxRegion *) 0 ;
8455 wxRect *arg2 = 0 ;
8456 bool result;
8457 void *argp1 = 0 ;
8458 int res1 = 0 ;
8459 wxRect temp2 ;
8460 PyObject * obj0 = 0 ;
8461 PyObject * obj1 = 0 ;
8462 char * kwnames[] = {
8463 (char *) "self",(char *) "rect", NULL
8464 };
8465
8466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
8467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8468 if (!SWIG_IsOK(res1)) {
8469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8470 }
8471 arg1 = reinterpret_cast< wxRegion * >(argp1);
8472 {
8473 arg2 = &temp2;
8474 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8475 }
8476 {
8477 PyThreadState* __tstate = wxPyBeginAllowThreads();
8478 result = (bool)(arg1)->Union((wxRect const &)*arg2);
8479 wxPyEndAllowThreads(__tstate);
8480 if (PyErr_Occurred()) SWIG_fail;
8481 }
8482 {
8483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8484 }
8485 return resultobj;
8486 fail:
8487 return NULL;
8488 }
8489
8490
8491 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8492 PyObject *resultobj = 0;
8493 wxRegion *arg1 = (wxRegion *) 0 ;
8494 wxRegion *arg2 = 0 ;
8495 bool result;
8496 void *argp1 = 0 ;
8497 int res1 = 0 ;
8498 void *argp2 = 0 ;
8499 int res2 = 0 ;
8500 PyObject * obj0 = 0 ;
8501 PyObject * obj1 = 0 ;
8502 char * kwnames[] = {
8503 (char *) "self",(char *) "region", NULL
8504 };
8505
8506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8508 if (!SWIG_IsOK(res1)) {
8509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8510 }
8511 arg1 = reinterpret_cast< wxRegion * >(argp1);
8512 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8513 if (!SWIG_IsOK(res2)) {
8514 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8515 }
8516 if (!argp2) {
8517 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8518 }
8519 arg2 = reinterpret_cast< wxRegion * >(argp2);
8520 {
8521 PyThreadState* __tstate = wxPyBeginAllowThreads();
8522 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
8523 wxPyEndAllowThreads(__tstate);
8524 if (PyErr_Occurred()) SWIG_fail;
8525 }
8526 {
8527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8528 }
8529 return resultobj;
8530 fail:
8531 return NULL;
8532 }
8533
8534
8535 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8536 PyObject *resultobj = 0;
8537 wxRegion *arg1 = (wxRegion *) 0 ;
8538 int arg2 ;
8539 int arg3 ;
8540 int arg4 ;
8541 int arg5 ;
8542 bool result;
8543 void *argp1 = 0 ;
8544 int res1 = 0 ;
8545 int val2 ;
8546 int ecode2 = 0 ;
8547 int val3 ;
8548 int ecode3 = 0 ;
8549 int val4 ;
8550 int ecode4 = 0 ;
8551 int val5 ;
8552 int ecode5 = 0 ;
8553 PyObject * obj0 = 0 ;
8554 PyObject * obj1 = 0 ;
8555 PyObject * obj2 = 0 ;
8556 PyObject * obj3 = 0 ;
8557 PyObject * obj4 = 0 ;
8558 char * kwnames[] = {
8559 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8560 };
8561
8562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8564 if (!SWIG_IsOK(res1)) {
8565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
8566 }
8567 arg1 = reinterpret_cast< wxRegion * >(argp1);
8568 ecode2 = SWIG_AsVal_int(obj1, &val2);
8569 if (!SWIG_IsOK(ecode2)) {
8570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
8571 }
8572 arg2 = static_cast< int >(val2);
8573 ecode3 = SWIG_AsVal_int(obj2, &val3);
8574 if (!SWIG_IsOK(ecode3)) {
8575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
8576 }
8577 arg3 = static_cast< int >(val3);
8578 ecode4 = SWIG_AsVal_int(obj3, &val4);
8579 if (!SWIG_IsOK(ecode4)) {
8580 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
8581 }
8582 arg4 = static_cast< int >(val4);
8583 ecode5 = SWIG_AsVal_int(obj4, &val5);
8584 if (!SWIG_IsOK(ecode5)) {
8585 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
8586 }
8587 arg5 = static_cast< int >(val5);
8588 {
8589 PyThreadState* __tstate = wxPyBeginAllowThreads();
8590 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
8591 wxPyEndAllowThreads(__tstate);
8592 if (PyErr_Occurred()) SWIG_fail;
8593 }
8594 {
8595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8596 }
8597 return resultobj;
8598 fail:
8599 return NULL;
8600 }
8601
8602
8603 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8604 PyObject *resultobj = 0;
8605 wxRegion *arg1 = (wxRegion *) 0 ;
8606 wxRect *arg2 = 0 ;
8607 bool result;
8608 void *argp1 = 0 ;
8609 int res1 = 0 ;
8610 wxRect temp2 ;
8611 PyObject * obj0 = 0 ;
8612 PyObject * obj1 = 0 ;
8613 char * kwnames[] = {
8614 (char *) "self",(char *) "rect", NULL
8615 };
8616
8617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
8618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8619 if (!SWIG_IsOK(res1)) {
8620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8621 }
8622 arg1 = reinterpret_cast< wxRegion * >(argp1);
8623 {
8624 arg2 = &temp2;
8625 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8626 }
8627 {
8628 PyThreadState* __tstate = wxPyBeginAllowThreads();
8629 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
8630 wxPyEndAllowThreads(__tstate);
8631 if (PyErr_Occurred()) SWIG_fail;
8632 }
8633 {
8634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8635 }
8636 return resultobj;
8637 fail:
8638 return NULL;
8639 }
8640
8641
8642 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8643 PyObject *resultobj = 0;
8644 wxRegion *arg1 = (wxRegion *) 0 ;
8645 wxRegion *arg2 = 0 ;
8646 bool result;
8647 void *argp1 = 0 ;
8648 int res1 = 0 ;
8649 void *argp2 = 0 ;
8650 int res2 = 0 ;
8651 PyObject * obj0 = 0 ;
8652 PyObject * obj1 = 0 ;
8653 char * kwnames[] = {
8654 (char *) "self",(char *) "region", NULL
8655 };
8656
8657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8659 if (!SWIG_IsOK(res1)) {
8660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8661 }
8662 arg1 = reinterpret_cast< wxRegion * >(argp1);
8663 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8664 if (!SWIG_IsOK(res2)) {
8665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8666 }
8667 if (!argp2) {
8668 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8669 }
8670 arg2 = reinterpret_cast< wxRegion * >(argp2);
8671 {
8672 PyThreadState* __tstate = wxPyBeginAllowThreads();
8673 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
8674 wxPyEndAllowThreads(__tstate);
8675 if (PyErr_Occurred()) SWIG_fail;
8676 }
8677 {
8678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8679 }
8680 return resultobj;
8681 fail:
8682 return NULL;
8683 }
8684
8685
8686 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8687 PyObject *resultobj = 0;
8688 wxRegion *arg1 = (wxRegion *) 0 ;
8689 int arg2 ;
8690 int arg3 ;
8691 int arg4 ;
8692 int arg5 ;
8693 bool result;
8694 void *argp1 = 0 ;
8695 int res1 = 0 ;
8696 int val2 ;
8697 int ecode2 = 0 ;
8698 int val3 ;
8699 int ecode3 = 0 ;
8700 int val4 ;
8701 int ecode4 = 0 ;
8702 int val5 ;
8703 int ecode5 = 0 ;
8704 PyObject * obj0 = 0 ;
8705 PyObject * obj1 = 0 ;
8706 PyObject * obj2 = 0 ;
8707 PyObject * obj3 = 0 ;
8708 PyObject * obj4 = 0 ;
8709 char * kwnames[] = {
8710 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8711 };
8712
8713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8715 if (!SWIG_IsOK(res1)) {
8716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
8717 }
8718 arg1 = reinterpret_cast< wxRegion * >(argp1);
8719 ecode2 = SWIG_AsVal_int(obj1, &val2);
8720 if (!SWIG_IsOK(ecode2)) {
8721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
8722 }
8723 arg2 = static_cast< int >(val2);
8724 ecode3 = SWIG_AsVal_int(obj2, &val3);
8725 if (!SWIG_IsOK(ecode3)) {
8726 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
8727 }
8728 arg3 = static_cast< int >(val3);
8729 ecode4 = SWIG_AsVal_int(obj3, &val4);
8730 if (!SWIG_IsOK(ecode4)) {
8731 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
8732 }
8733 arg4 = static_cast< int >(val4);
8734 ecode5 = SWIG_AsVal_int(obj4, &val5);
8735 if (!SWIG_IsOK(ecode5)) {
8736 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
8737 }
8738 arg5 = static_cast< int >(val5);
8739 {
8740 PyThreadState* __tstate = wxPyBeginAllowThreads();
8741 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
8742 wxPyEndAllowThreads(__tstate);
8743 if (PyErr_Occurred()) SWIG_fail;
8744 }
8745 {
8746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8747 }
8748 return resultobj;
8749 fail:
8750 return NULL;
8751 }
8752
8753
8754 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8755 PyObject *resultobj = 0;
8756 wxRegion *arg1 = (wxRegion *) 0 ;
8757 wxRect *arg2 = 0 ;
8758 bool result;
8759 void *argp1 = 0 ;
8760 int res1 = 0 ;
8761 wxRect temp2 ;
8762 PyObject * obj0 = 0 ;
8763 PyObject * obj1 = 0 ;
8764 char * kwnames[] = {
8765 (char *) "self",(char *) "rect", NULL
8766 };
8767
8768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
8769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8770 if (!SWIG_IsOK(res1)) {
8771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8772 }
8773 arg1 = reinterpret_cast< wxRegion * >(argp1);
8774 {
8775 arg2 = &temp2;
8776 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8777 }
8778 {
8779 PyThreadState* __tstate = wxPyBeginAllowThreads();
8780 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
8781 wxPyEndAllowThreads(__tstate);
8782 if (PyErr_Occurred()) SWIG_fail;
8783 }
8784 {
8785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8786 }
8787 return resultobj;
8788 fail:
8789 return NULL;
8790 }
8791
8792
8793 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8794 PyObject *resultobj = 0;
8795 wxRegion *arg1 = (wxRegion *) 0 ;
8796 wxRegion *arg2 = 0 ;
8797 bool result;
8798 void *argp1 = 0 ;
8799 int res1 = 0 ;
8800 void *argp2 = 0 ;
8801 int res2 = 0 ;
8802 PyObject * obj0 = 0 ;
8803 PyObject * obj1 = 0 ;
8804 char * kwnames[] = {
8805 (char *) "self",(char *) "region", NULL
8806 };
8807
8808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8810 if (!SWIG_IsOK(res1)) {
8811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8812 }
8813 arg1 = reinterpret_cast< wxRegion * >(argp1);
8814 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8815 if (!SWIG_IsOK(res2)) {
8816 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8817 }
8818 if (!argp2) {
8819 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8820 }
8821 arg2 = reinterpret_cast< wxRegion * >(argp2);
8822 {
8823 PyThreadState* __tstate = wxPyBeginAllowThreads();
8824 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
8825 wxPyEndAllowThreads(__tstate);
8826 if (PyErr_Occurred()) SWIG_fail;
8827 }
8828 {
8829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8830 }
8831 return resultobj;
8832 fail:
8833 return NULL;
8834 }
8835
8836
8837 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8838 PyObject *resultobj = 0;
8839 wxRegion *arg1 = (wxRegion *) 0 ;
8840 SwigValueWrapper<wxBitmap > result;
8841 void *argp1 = 0 ;
8842 int res1 = 0 ;
8843 PyObject *swig_obj[1] ;
8844
8845 if (!args) SWIG_fail;
8846 swig_obj[0] = args;
8847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8848 if (!SWIG_IsOK(res1)) {
8849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8850 }
8851 arg1 = reinterpret_cast< wxRegion * >(argp1);
8852 {
8853 PyThreadState* __tstate = wxPyBeginAllowThreads();
8854 result = (arg1)->ConvertToBitmap();
8855 wxPyEndAllowThreads(__tstate);
8856 if (PyErr_Occurred()) SWIG_fail;
8857 }
8858 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8859 return resultobj;
8860 fail:
8861 return NULL;
8862 }
8863
8864
8865 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8866 PyObject *resultobj = 0;
8867 wxRegion *arg1 = (wxRegion *) 0 ;
8868 wxBitmap *arg2 = 0 ;
8869 bool result;
8870 void *argp1 = 0 ;
8871 int res1 = 0 ;
8872 void *argp2 = 0 ;
8873 int res2 = 0 ;
8874 PyObject * obj0 = 0 ;
8875 PyObject * obj1 = 0 ;
8876 char * kwnames[] = {
8877 (char *) "self",(char *) "bmp", NULL
8878 };
8879
8880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8882 if (!SWIG_IsOK(res1)) {
8883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8884 }
8885 arg1 = reinterpret_cast< wxRegion * >(argp1);
8886 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8887 if (!SWIG_IsOK(res2)) {
8888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8889 }
8890 if (!argp2) {
8891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8892 }
8893 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8894 {
8895 PyThreadState* __tstate = wxPyBeginAllowThreads();
8896 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
8897 wxPyEndAllowThreads(__tstate);
8898 if (PyErr_Occurred()) SWIG_fail;
8899 }
8900 {
8901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8902 }
8903 return resultobj;
8904 fail:
8905 return NULL;
8906 }
8907
8908
8909 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8910 PyObject *resultobj = 0;
8911 wxRegion *arg1 = (wxRegion *) 0 ;
8912 wxBitmap *arg2 = 0 ;
8913 wxColour *arg3 = 0 ;
8914 int arg4 = (int) 0 ;
8915 bool result;
8916 void *argp1 = 0 ;
8917 int res1 = 0 ;
8918 void *argp2 = 0 ;
8919 int res2 = 0 ;
8920 wxColour temp3 ;
8921 int val4 ;
8922 int ecode4 = 0 ;
8923 PyObject * obj0 = 0 ;
8924 PyObject * obj1 = 0 ;
8925 PyObject * obj2 = 0 ;
8926 PyObject * obj3 = 0 ;
8927 char * kwnames[] = {
8928 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
8929 };
8930
8931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8933 if (!SWIG_IsOK(res1)) {
8934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
8935 }
8936 arg1 = reinterpret_cast< wxRegion * >(argp1);
8937 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8938 if (!SWIG_IsOK(res2)) {
8939 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8940 }
8941 if (!argp2) {
8942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8943 }
8944 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8945 {
8946 arg3 = &temp3;
8947 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
8948 }
8949 if (obj3) {
8950 ecode4 = SWIG_AsVal_int(obj3, &val4);
8951 if (!SWIG_IsOK(ecode4)) {
8952 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
8953 }
8954 arg4 = static_cast< int >(val4);
8955 }
8956 {
8957 PyThreadState* __tstate = wxPyBeginAllowThreads();
8958 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
8959 wxPyEndAllowThreads(__tstate);
8960 if (PyErr_Occurred()) SWIG_fail;
8961 }
8962 {
8963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8964 }
8965 return resultobj;
8966 fail:
8967 return NULL;
8968 }
8969
8970
8971 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8972 PyObject *obj;
8973 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8974 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
8975 return SWIG_Py_Void();
8976 }
8977
8978 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8979 return SWIG_Python_InitShadowInstance(args);
8980 }
8981
8982 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8983 PyObject *resultobj = 0;
8984 wxRegion *arg1 = 0 ;
8985 wxRegionIterator *result = 0 ;
8986 void *argp1 = 0 ;
8987 int res1 = 0 ;
8988 PyObject * obj0 = 0 ;
8989 char * kwnames[] = {
8990 (char *) "region", NULL
8991 };
8992
8993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
8994 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
8995 if (!SWIG_IsOK(res1)) {
8996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
8997 }
8998 if (!argp1) {
8999 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9000 }
9001 arg1 = reinterpret_cast< wxRegion * >(argp1);
9002 {
9003 if (!wxPyCheckForApp()) SWIG_fail;
9004 PyThreadState* __tstate = wxPyBeginAllowThreads();
9005 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
9006 wxPyEndAllowThreads(__tstate);
9007 if (PyErr_Occurred()) SWIG_fail;
9008 }
9009 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
9010 return resultobj;
9011 fail:
9012 return NULL;
9013 }
9014
9015
9016 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9017 PyObject *resultobj = 0;
9018 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9019 void *argp1 = 0 ;
9020 int res1 = 0 ;
9021 PyObject *swig_obj[1] ;
9022
9023 if (!args) SWIG_fail;
9024 swig_obj[0] = args;
9025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
9026 if (!SWIG_IsOK(res1)) {
9027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9028 }
9029 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9030 {
9031 PyThreadState* __tstate = wxPyBeginAllowThreads();
9032 delete arg1;
9033
9034 wxPyEndAllowThreads(__tstate);
9035 if (PyErr_Occurred()) SWIG_fail;
9036 }
9037 resultobj = SWIG_Py_Void();
9038 return resultobj;
9039 fail:
9040 return NULL;
9041 }
9042
9043
9044 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9045 PyObject *resultobj = 0;
9046 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9047 int result;
9048 void *argp1 = 0 ;
9049 int res1 = 0 ;
9050 PyObject *swig_obj[1] ;
9051
9052 if (!args) SWIG_fail;
9053 swig_obj[0] = args;
9054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9055 if (!SWIG_IsOK(res1)) {
9056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9057 }
9058 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9059 {
9060 PyThreadState* __tstate = wxPyBeginAllowThreads();
9061 result = (int)(arg1)->GetX();
9062 wxPyEndAllowThreads(__tstate);
9063 if (PyErr_Occurred()) SWIG_fail;
9064 }
9065 resultobj = SWIG_From_int(static_cast< int >(result));
9066 return resultobj;
9067 fail:
9068 return NULL;
9069 }
9070
9071
9072 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9073 PyObject *resultobj = 0;
9074 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9075 int result;
9076 void *argp1 = 0 ;
9077 int res1 = 0 ;
9078 PyObject *swig_obj[1] ;
9079
9080 if (!args) SWIG_fail;
9081 swig_obj[0] = args;
9082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9083 if (!SWIG_IsOK(res1)) {
9084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9085 }
9086 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9087 {
9088 PyThreadState* __tstate = wxPyBeginAllowThreads();
9089 result = (int)(arg1)->GetY();
9090 wxPyEndAllowThreads(__tstate);
9091 if (PyErr_Occurred()) SWIG_fail;
9092 }
9093 resultobj = SWIG_From_int(static_cast< int >(result));
9094 return resultobj;
9095 fail:
9096 return NULL;
9097 }
9098
9099
9100 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9101 PyObject *resultobj = 0;
9102 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9103 int result;
9104 void *argp1 = 0 ;
9105 int res1 = 0 ;
9106 PyObject *swig_obj[1] ;
9107
9108 if (!args) SWIG_fail;
9109 swig_obj[0] = args;
9110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9111 if (!SWIG_IsOK(res1)) {
9112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9113 }
9114 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9115 {
9116 PyThreadState* __tstate = wxPyBeginAllowThreads();
9117 result = (int)(arg1)->GetW();
9118 wxPyEndAllowThreads(__tstate);
9119 if (PyErr_Occurred()) SWIG_fail;
9120 }
9121 resultobj = SWIG_From_int(static_cast< int >(result));
9122 return resultobj;
9123 fail:
9124 return NULL;
9125 }
9126
9127
9128 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9129 PyObject *resultobj = 0;
9130 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9131 int result;
9132 void *argp1 = 0 ;
9133 int res1 = 0 ;
9134 PyObject *swig_obj[1] ;
9135
9136 if (!args) SWIG_fail;
9137 swig_obj[0] = args;
9138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9139 if (!SWIG_IsOK(res1)) {
9140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9141 }
9142 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9143 {
9144 PyThreadState* __tstate = wxPyBeginAllowThreads();
9145 result = (int)(arg1)->GetWidth();
9146 wxPyEndAllowThreads(__tstate);
9147 if (PyErr_Occurred()) SWIG_fail;
9148 }
9149 resultobj = SWIG_From_int(static_cast< int >(result));
9150 return resultobj;
9151 fail:
9152 return NULL;
9153 }
9154
9155
9156 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9157 PyObject *resultobj = 0;
9158 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9159 int result;
9160 void *argp1 = 0 ;
9161 int res1 = 0 ;
9162 PyObject *swig_obj[1] ;
9163
9164 if (!args) SWIG_fail;
9165 swig_obj[0] = args;
9166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9167 if (!SWIG_IsOK(res1)) {
9168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9169 }
9170 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9171 {
9172 PyThreadState* __tstate = wxPyBeginAllowThreads();
9173 result = (int)(arg1)->GetH();
9174 wxPyEndAllowThreads(__tstate);
9175 if (PyErr_Occurred()) SWIG_fail;
9176 }
9177 resultobj = SWIG_From_int(static_cast< int >(result));
9178 return resultobj;
9179 fail:
9180 return NULL;
9181 }
9182
9183
9184 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9185 PyObject *resultobj = 0;
9186 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9187 int result;
9188 void *argp1 = 0 ;
9189 int res1 = 0 ;
9190 PyObject *swig_obj[1] ;
9191
9192 if (!args) SWIG_fail;
9193 swig_obj[0] = args;
9194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9195 if (!SWIG_IsOK(res1)) {
9196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9197 }
9198 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9199 {
9200 PyThreadState* __tstate = wxPyBeginAllowThreads();
9201 result = (int)(arg1)->GetHeight();
9202 wxPyEndAllowThreads(__tstate);
9203 if (PyErr_Occurred()) SWIG_fail;
9204 }
9205 resultobj = SWIG_From_int(static_cast< int >(result));
9206 return resultobj;
9207 fail:
9208 return NULL;
9209 }
9210
9211
9212 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9213 PyObject *resultobj = 0;
9214 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9215 wxRect result;
9216 void *argp1 = 0 ;
9217 int res1 = 0 ;
9218 PyObject *swig_obj[1] ;
9219
9220 if (!args) SWIG_fail;
9221 swig_obj[0] = args;
9222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9223 if (!SWIG_IsOK(res1)) {
9224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9225 }
9226 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9227 {
9228 PyThreadState* __tstate = wxPyBeginAllowThreads();
9229 result = (arg1)->GetRect();
9230 wxPyEndAllowThreads(__tstate);
9231 if (PyErr_Occurred()) SWIG_fail;
9232 }
9233 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
9234 return resultobj;
9235 fail:
9236 return NULL;
9237 }
9238
9239
9240 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9241 PyObject *resultobj = 0;
9242 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9243 bool result;
9244 void *argp1 = 0 ;
9245 int res1 = 0 ;
9246 PyObject *swig_obj[1] ;
9247
9248 if (!args) SWIG_fail;
9249 swig_obj[0] = args;
9250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9251 if (!SWIG_IsOK(res1)) {
9252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9253 }
9254 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9255 {
9256 PyThreadState* __tstate = wxPyBeginAllowThreads();
9257 result = (bool)(arg1)->HaveRects();
9258 wxPyEndAllowThreads(__tstate);
9259 if (PyErr_Occurred()) SWIG_fail;
9260 }
9261 {
9262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9263 }
9264 return resultobj;
9265 fail:
9266 return NULL;
9267 }
9268
9269
9270 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9271 PyObject *resultobj = 0;
9272 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9273 void *argp1 = 0 ;
9274 int res1 = 0 ;
9275 PyObject *swig_obj[1] ;
9276
9277 if (!args) SWIG_fail;
9278 swig_obj[0] = args;
9279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9280 if (!SWIG_IsOK(res1)) {
9281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9282 }
9283 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9284 {
9285 PyThreadState* __tstate = wxPyBeginAllowThreads();
9286 (arg1)->Reset();
9287 wxPyEndAllowThreads(__tstate);
9288 if (PyErr_Occurred()) SWIG_fail;
9289 }
9290 resultobj = SWIG_Py_Void();
9291 return resultobj;
9292 fail:
9293 return NULL;
9294 }
9295
9296
9297 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9298 PyObject *resultobj = 0;
9299 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9300 void *argp1 = 0 ;
9301 int res1 = 0 ;
9302 PyObject *swig_obj[1] ;
9303
9304 if (!args) SWIG_fail;
9305 swig_obj[0] = args;
9306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9307 if (!SWIG_IsOK(res1)) {
9308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9309 }
9310 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9311 {
9312 PyThreadState* __tstate = wxPyBeginAllowThreads();
9313 wxRegionIterator_Next(arg1);
9314 wxPyEndAllowThreads(__tstate);
9315 if (PyErr_Occurred()) SWIG_fail;
9316 }
9317 resultobj = SWIG_Py_Void();
9318 return resultobj;
9319 fail:
9320 return NULL;
9321 }
9322
9323
9324 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9325 PyObject *resultobj = 0;
9326 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9327 bool result;
9328 void *argp1 = 0 ;
9329 int res1 = 0 ;
9330 PyObject *swig_obj[1] ;
9331
9332 if (!args) SWIG_fail;
9333 swig_obj[0] = args;
9334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9335 if (!SWIG_IsOK(res1)) {
9336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9337 }
9338 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9339 {
9340 PyThreadState* __tstate = wxPyBeginAllowThreads();
9341 result = (bool)wxRegionIterator___nonzero__(arg1);
9342 wxPyEndAllowThreads(__tstate);
9343 if (PyErr_Occurred()) SWIG_fail;
9344 }
9345 {
9346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9347 }
9348 return resultobj;
9349 fail:
9350 return NULL;
9351 }
9352
9353
9354 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9355 PyObject *obj;
9356 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9357 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
9358 return SWIG_Py_Void();
9359 }
9360
9361 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9362 return SWIG_Python_InitShadowInstance(args);
9363 }
9364
9365 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9366 PyObject *resultobj = 0;
9367 wxNativeFontInfo *result = 0 ;
9368
9369 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
9370 {
9371 PyThreadState* __tstate = wxPyBeginAllowThreads();
9372 result = (wxNativeFontInfo *)new wxNativeFontInfo();
9373 wxPyEndAllowThreads(__tstate);
9374 if (PyErr_Occurred()) SWIG_fail;
9375 }
9376 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
9377 return resultobj;
9378 fail:
9379 return NULL;
9380 }
9381
9382
9383 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9384 PyObject *resultobj = 0;
9385 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9386 void *argp1 = 0 ;
9387 int res1 = 0 ;
9388 PyObject *swig_obj[1] ;
9389
9390 if (!args) SWIG_fail;
9391 swig_obj[0] = args;
9392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
9393 if (!SWIG_IsOK(res1)) {
9394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9395 }
9396 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 delete arg1;
9400
9401 wxPyEndAllowThreads(__tstate);
9402 if (PyErr_Occurred()) SWIG_fail;
9403 }
9404 resultobj = SWIG_Py_Void();
9405 return resultobj;
9406 fail:
9407 return NULL;
9408 }
9409
9410
9411 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9412 PyObject *resultobj = 0;
9413 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9414 void *argp1 = 0 ;
9415 int res1 = 0 ;
9416 PyObject *swig_obj[1] ;
9417
9418 if (!args) SWIG_fail;
9419 swig_obj[0] = args;
9420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9421 if (!SWIG_IsOK(res1)) {
9422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9423 }
9424 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9425 {
9426 PyThreadState* __tstate = wxPyBeginAllowThreads();
9427 (arg1)->Init();
9428 wxPyEndAllowThreads(__tstate);
9429 if (PyErr_Occurred()) SWIG_fail;
9430 }
9431 resultobj = SWIG_Py_Void();
9432 return resultobj;
9433 fail:
9434 return NULL;
9435 }
9436
9437
9438 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9439 PyObject *resultobj = 0;
9440 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9441 wxFont *arg2 = 0 ;
9442 void *argp1 = 0 ;
9443 int res1 = 0 ;
9444 void *argp2 = 0 ;
9445 int res2 = 0 ;
9446 PyObject * obj0 = 0 ;
9447 PyObject * obj1 = 0 ;
9448 char * kwnames[] = {
9449 (char *) "self",(char *) "font", NULL
9450 };
9451
9452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
9453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9454 if (!SWIG_IsOK(res1)) {
9455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9456 }
9457 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9458 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
9459 if (!SWIG_IsOK(res2)) {
9460 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9461 }
9462 if (!argp2) {
9463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9464 }
9465 arg2 = reinterpret_cast< wxFont * >(argp2);
9466 {
9467 PyThreadState* __tstate = wxPyBeginAllowThreads();
9468 (arg1)->InitFromFont((wxFont const &)*arg2);
9469 wxPyEndAllowThreads(__tstate);
9470 if (PyErr_Occurred()) SWIG_fail;
9471 }
9472 resultobj = SWIG_Py_Void();
9473 return resultobj;
9474 fail:
9475 return NULL;
9476 }
9477
9478
9479 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9480 PyObject *resultobj = 0;
9481 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9482 int result;
9483 void *argp1 = 0 ;
9484 int res1 = 0 ;
9485 PyObject *swig_obj[1] ;
9486
9487 if (!args) SWIG_fail;
9488 swig_obj[0] = args;
9489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9490 if (!SWIG_IsOK(res1)) {
9491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9492 }
9493 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9494 {
9495 PyThreadState* __tstate = wxPyBeginAllowThreads();
9496 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
9497 wxPyEndAllowThreads(__tstate);
9498 if (PyErr_Occurred()) SWIG_fail;
9499 }
9500 resultobj = SWIG_From_int(static_cast< int >(result));
9501 return resultobj;
9502 fail:
9503 return NULL;
9504 }
9505
9506
9507 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9508 PyObject *resultobj = 0;
9509 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9510 wxFontStyle result;
9511 void *argp1 = 0 ;
9512 int res1 = 0 ;
9513 PyObject *swig_obj[1] ;
9514
9515 if (!args) SWIG_fail;
9516 swig_obj[0] = args;
9517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9518 if (!SWIG_IsOK(res1)) {
9519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9520 }
9521 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9522 {
9523 PyThreadState* __tstate = wxPyBeginAllowThreads();
9524 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
9525 wxPyEndAllowThreads(__tstate);
9526 if (PyErr_Occurred()) SWIG_fail;
9527 }
9528 resultobj = SWIG_From_int(static_cast< int >(result));
9529 return resultobj;
9530 fail:
9531 return NULL;
9532 }
9533
9534
9535 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9536 PyObject *resultobj = 0;
9537 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9538 wxFontWeight result;
9539 void *argp1 = 0 ;
9540 int res1 = 0 ;
9541 PyObject *swig_obj[1] ;
9542
9543 if (!args) SWIG_fail;
9544 swig_obj[0] = args;
9545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9546 if (!SWIG_IsOK(res1)) {
9547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9548 }
9549 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9550 {
9551 PyThreadState* __tstate = wxPyBeginAllowThreads();
9552 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
9553 wxPyEndAllowThreads(__tstate);
9554 if (PyErr_Occurred()) SWIG_fail;
9555 }
9556 resultobj = SWIG_From_int(static_cast< int >(result));
9557 return resultobj;
9558 fail:
9559 return NULL;
9560 }
9561
9562
9563 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9564 PyObject *resultobj = 0;
9565 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9566 bool result;
9567 void *argp1 = 0 ;
9568 int res1 = 0 ;
9569 PyObject *swig_obj[1] ;
9570
9571 if (!args) SWIG_fail;
9572 swig_obj[0] = args;
9573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9574 if (!SWIG_IsOK(res1)) {
9575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9576 }
9577 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9578 {
9579 PyThreadState* __tstate = wxPyBeginAllowThreads();
9580 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
9581 wxPyEndAllowThreads(__tstate);
9582 if (PyErr_Occurred()) SWIG_fail;
9583 }
9584 {
9585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9586 }
9587 return resultobj;
9588 fail:
9589 return NULL;
9590 }
9591
9592
9593 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9594 PyObject *resultobj = 0;
9595 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9596 wxString result;
9597 void *argp1 = 0 ;
9598 int res1 = 0 ;
9599 PyObject *swig_obj[1] ;
9600
9601 if (!args) SWIG_fail;
9602 swig_obj[0] = args;
9603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9604 if (!SWIG_IsOK(res1)) {
9605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9606 }
9607 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9608 {
9609 PyThreadState* __tstate = wxPyBeginAllowThreads();
9610 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
9611 wxPyEndAllowThreads(__tstate);
9612 if (PyErr_Occurred()) SWIG_fail;
9613 }
9614 {
9615 #if wxUSE_UNICODE
9616 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9617 #else
9618 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9619 #endif
9620 }
9621 return resultobj;
9622 fail:
9623 return NULL;
9624 }
9625
9626
9627 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9628 PyObject *resultobj = 0;
9629 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9630 wxFontFamily result;
9631 void *argp1 = 0 ;
9632 int res1 = 0 ;
9633 PyObject *swig_obj[1] ;
9634
9635 if (!args) SWIG_fail;
9636 swig_obj[0] = args;
9637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9638 if (!SWIG_IsOK(res1)) {
9639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9640 }
9641 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9642 {
9643 PyThreadState* __tstate = wxPyBeginAllowThreads();
9644 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
9645 wxPyEndAllowThreads(__tstate);
9646 if (PyErr_Occurred()) SWIG_fail;
9647 }
9648 resultobj = SWIG_From_int(static_cast< int >(result));
9649 return resultobj;
9650 fail:
9651 return NULL;
9652 }
9653
9654
9655 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9656 PyObject *resultobj = 0;
9657 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9658 wxFontEncoding result;
9659 void *argp1 = 0 ;
9660 int res1 = 0 ;
9661 PyObject *swig_obj[1] ;
9662
9663 if (!args) SWIG_fail;
9664 swig_obj[0] = args;
9665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9666 if (!SWIG_IsOK(res1)) {
9667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9668 }
9669 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9670 {
9671 PyThreadState* __tstate = wxPyBeginAllowThreads();
9672 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
9673 wxPyEndAllowThreads(__tstate);
9674 if (PyErr_Occurred()) SWIG_fail;
9675 }
9676 resultobj = SWIG_From_int(static_cast< int >(result));
9677 return resultobj;
9678 fail:
9679 return NULL;
9680 }
9681
9682
9683 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9684 PyObject *resultobj = 0;
9685 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9686 int arg2 ;
9687 void *argp1 = 0 ;
9688 int res1 = 0 ;
9689 int val2 ;
9690 int ecode2 = 0 ;
9691 PyObject * obj0 = 0 ;
9692 PyObject * obj1 = 0 ;
9693 char * kwnames[] = {
9694 (char *) "self",(char *) "pointsize", NULL
9695 };
9696
9697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
9698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9699 if (!SWIG_IsOK(res1)) {
9700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9701 }
9702 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9703 ecode2 = SWIG_AsVal_int(obj1, &val2);
9704 if (!SWIG_IsOK(ecode2)) {
9705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
9706 }
9707 arg2 = static_cast< int >(val2);
9708 {
9709 PyThreadState* __tstate = wxPyBeginAllowThreads();
9710 (arg1)->SetPointSize(arg2);
9711 wxPyEndAllowThreads(__tstate);
9712 if (PyErr_Occurred()) SWIG_fail;
9713 }
9714 resultobj = SWIG_Py_Void();
9715 return resultobj;
9716 fail:
9717 return NULL;
9718 }
9719
9720
9721 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9722 PyObject *resultobj = 0;
9723 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9724 wxFontStyle arg2 ;
9725 void *argp1 = 0 ;
9726 int res1 = 0 ;
9727 int val2 ;
9728 int ecode2 = 0 ;
9729 PyObject * obj0 = 0 ;
9730 PyObject * obj1 = 0 ;
9731 char * kwnames[] = {
9732 (char *) "self",(char *) "style", NULL
9733 };
9734
9735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9737 if (!SWIG_IsOK(res1)) {
9738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9739 }
9740 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9741 ecode2 = SWIG_AsVal_int(obj1, &val2);
9742 if (!SWIG_IsOK(ecode2)) {
9743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
9744 }
9745 arg2 = static_cast< wxFontStyle >(val2);
9746 {
9747 PyThreadState* __tstate = wxPyBeginAllowThreads();
9748 (arg1)->SetStyle(arg2);
9749 wxPyEndAllowThreads(__tstate);
9750 if (PyErr_Occurred()) SWIG_fail;
9751 }
9752 resultobj = SWIG_Py_Void();
9753 return resultobj;
9754 fail:
9755 return NULL;
9756 }
9757
9758
9759 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9760 PyObject *resultobj = 0;
9761 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9762 wxFontWeight arg2 ;
9763 void *argp1 = 0 ;
9764 int res1 = 0 ;
9765 int val2 ;
9766 int ecode2 = 0 ;
9767 PyObject * obj0 = 0 ;
9768 PyObject * obj1 = 0 ;
9769 char * kwnames[] = {
9770 (char *) "self",(char *) "weight", NULL
9771 };
9772
9773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
9774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9775 if (!SWIG_IsOK(res1)) {
9776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9777 }
9778 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9779 ecode2 = SWIG_AsVal_int(obj1, &val2);
9780 if (!SWIG_IsOK(ecode2)) {
9781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
9782 }
9783 arg2 = static_cast< wxFontWeight >(val2);
9784 {
9785 PyThreadState* __tstate = wxPyBeginAllowThreads();
9786 (arg1)->SetWeight(arg2);
9787 wxPyEndAllowThreads(__tstate);
9788 if (PyErr_Occurred()) SWIG_fail;
9789 }
9790 resultobj = SWIG_Py_Void();
9791 return resultobj;
9792 fail:
9793 return NULL;
9794 }
9795
9796
9797 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9798 PyObject *resultobj = 0;
9799 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9800 bool arg2 ;
9801 void *argp1 = 0 ;
9802 int res1 = 0 ;
9803 bool val2 ;
9804 int ecode2 = 0 ;
9805 PyObject * obj0 = 0 ;
9806 PyObject * obj1 = 0 ;
9807 char * kwnames[] = {
9808 (char *) "self",(char *) "underlined", NULL
9809 };
9810
9811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
9812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9813 if (!SWIG_IsOK(res1)) {
9814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9815 }
9816 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9817 ecode2 = SWIG_AsVal_bool(obj1, &val2);
9818 if (!SWIG_IsOK(ecode2)) {
9819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
9820 }
9821 arg2 = static_cast< bool >(val2);
9822 {
9823 PyThreadState* __tstate = wxPyBeginAllowThreads();
9824 (arg1)->SetUnderlined(arg2);
9825 wxPyEndAllowThreads(__tstate);
9826 if (PyErr_Occurred()) SWIG_fail;
9827 }
9828 resultobj = SWIG_Py_Void();
9829 return resultobj;
9830 fail:
9831 return NULL;
9832 }
9833
9834
9835 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9836 PyObject *resultobj = 0;
9837 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9838 wxString arg2 ;
9839 bool result;
9840 void *argp1 = 0 ;
9841 int res1 = 0 ;
9842 PyObject * obj0 = 0 ;
9843 PyObject * obj1 = 0 ;
9844 char * kwnames[] = {
9845 (char *) "self",(char *) "facename", NULL
9846 };
9847
9848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
9849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9850 if (!SWIG_IsOK(res1)) {
9851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9852 }
9853 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9854 {
9855 wxString* sptr = wxString_in_helper(obj1);
9856 if (sptr == NULL) SWIG_fail;
9857 arg2 = *sptr;
9858 delete sptr;
9859 }
9860 {
9861 PyThreadState* __tstate = wxPyBeginAllowThreads();
9862 result = (bool)(arg1)->SetFaceName(arg2);
9863 wxPyEndAllowThreads(__tstate);
9864 if (PyErr_Occurred()) SWIG_fail;
9865 }
9866 {
9867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9868 }
9869 return resultobj;
9870 fail:
9871 return NULL;
9872 }
9873
9874
9875 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9876 PyObject *resultobj = 0;
9877 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9878 wxFontFamily arg2 ;
9879 void *argp1 = 0 ;
9880 int res1 = 0 ;
9881 int val2 ;
9882 int ecode2 = 0 ;
9883 PyObject * obj0 = 0 ;
9884 PyObject * obj1 = 0 ;
9885 char * kwnames[] = {
9886 (char *) "self",(char *) "family", NULL
9887 };
9888
9889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
9890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9891 if (!SWIG_IsOK(res1)) {
9892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9893 }
9894 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9895 ecode2 = SWIG_AsVal_int(obj1, &val2);
9896 if (!SWIG_IsOK(ecode2)) {
9897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
9898 }
9899 arg2 = static_cast< wxFontFamily >(val2);
9900 {
9901 PyThreadState* __tstate = wxPyBeginAllowThreads();
9902 (arg1)->SetFamily(arg2);
9903 wxPyEndAllowThreads(__tstate);
9904 if (PyErr_Occurred()) SWIG_fail;
9905 }
9906 resultobj = SWIG_Py_Void();
9907 return resultobj;
9908 fail:
9909 return NULL;
9910 }
9911
9912
9913 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9914 PyObject *resultobj = 0;
9915 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9916 wxFontEncoding arg2 ;
9917 void *argp1 = 0 ;
9918 int res1 = 0 ;
9919 int val2 ;
9920 int ecode2 = 0 ;
9921 PyObject * obj0 = 0 ;
9922 PyObject * obj1 = 0 ;
9923 char * kwnames[] = {
9924 (char *) "self",(char *) "encoding", NULL
9925 };
9926
9927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
9928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9929 if (!SWIG_IsOK(res1)) {
9930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9931 }
9932 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9933 ecode2 = SWIG_AsVal_int(obj1, &val2);
9934 if (!SWIG_IsOK(ecode2)) {
9935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
9936 }
9937 arg2 = static_cast< wxFontEncoding >(val2);
9938 {
9939 PyThreadState* __tstate = wxPyBeginAllowThreads();
9940 (arg1)->SetEncoding(arg2);
9941 wxPyEndAllowThreads(__tstate);
9942 if (PyErr_Occurred()) SWIG_fail;
9943 }
9944 resultobj = SWIG_Py_Void();
9945 return resultobj;
9946 fail:
9947 return NULL;
9948 }
9949
9950
9951 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9952 PyObject *resultobj = 0;
9953 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9954 wxString *arg2 = 0 ;
9955 bool result;
9956 void *argp1 = 0 ;
9957 int res1 = 0 ;
9958 bool temp2 = false ;
9959 PyObject * obj0 = 0 ;
9960 PyObject * obj1 = 0 ;
9961 char * kwnames[] = {
9962 (char *) "self",(char *) "s", NULL
9963 };
9964
9965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
9966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9967 if (!SWIG_IsOK(res1)) {
9968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9969 }
9970 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9971 {
9972 arg2 = wxString_in_helper(obj1);
9973 if (arg2 == NULL) SWIG_fail;
9974 temp2 = true;
9975 }
9976 {
9977 PyThreadState* __tstate = wxPyBeginAllowThreads();
9978 result = (bool)(arg1)->FromString((wxString const &)*arg2);
9979 wxPyEndAllowThreads(__tstate);
9980 if (PyErr_Occurred()) SWIG_fail;
9981 }
9982 {
9983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9984 }
9985 {
9986 if (temp2)
9987 delete arg2;
9988 }
9989 return resultobj;
9990 fail:
9991 {
9992 if (temp2)
9993 delete arg2;
9994 }
9995 return NULL;
9996 }
9997
9998
9999 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10000 PyObject *resultobj = 0;
10001 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10002 wxString result;
10003 void *argp1 = 0 ;
10004 int res1 = 0 ;
10005 PyObject *swig_obj[1] ;
10006
10007 if (!args) SWIG_fail;
10008 swig_obj[0] = args;
10009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10010 if (!SWIG_IsOK(res1)) {
10011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10012 }
10013 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10014 {
10015 PyThreadState* __tstate = wxPyBeginAllowThreads();
10016 result = ((wxNativeFontInfo const *)arg1)->ToString();
10017 wxPyEndAllowThreads(__tstate);
10018 if (PyErr_Occurred()) SWIG_fail;
10019 }
10020 {
10021 #if wxUSE_UNICODE
10022 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10023 #else
10024 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10025 #endif
10026 }
10027 return resultobj;
10028 fail:
10029 return NULL;
10030 }
10031
10032
10033 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10034 PyObject *resultobj = 0;
10035 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10036 wxString result;
10037 void *argp1 = 0 ;
10038 int res1 = 0 ;
10039 PyObject *swig_obj[1] ;
10040
10041 if (!args) SWIG_fail;
10042 swig_obj[0] = args;
10043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10044 if (!SWIG_IsOK(res1)) {
10045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10046 }
10047 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10048 {
10049 PyThreadState* __tstate = wxPyBeginAllowThreads();
10050 result = wxNativeFontInfo___str__(arg1);
10051 wxPyEndAllowThreads(__tstate);
10052 if (PyErr_Occurred()) SWIG_fail;
10053 }
10054 {
10055 #if wxUSE_UNICODE
10056 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10057 #else
10058 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10059 #endif
10060 }
10061 return resultobj;
10062 fail:
10063 return NULL;
10064 }
10065
10066
10067 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10068 PyObject *resultobj = 0;
10069 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10070 wxString *arg2 = 0 ;
10071 bool result;
10072 void *argp1 = 0 ;
10073 int res1 = 0 ;
10074 bool temp2 = false ;
10075 PyObject * obj0 = 0 ;
10076 PyObject * obj1 = 0 ;
10077 char * kwnames[] = {
10078 (char *) "self",(char *) "s", NULL
10079 };
10080
10081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
10082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10083 if (!SWIG_IsOK(res1)) {
10084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10085 }
10086 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10087 {
10088 arg2 = wxString_in_helper(obj1);
10089 if (arg2 == NULL) SWIG_fail;
10090 temp2 = true;
10091 }
10092 {
10093 PyThreadState* __tstate = wxPyBeginAllowThreads();
10094 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
10095 wxPyEndAllowThreads(__tstate);
10096 if (PyErr_Occurred()) SWIG_fail;
10097 }
10098 {
10099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10100 }
10101 {
10102 if (temp2)
10103 delete arg2;
10104 }
10105 return resultobj;
10106 fail:
10107 {
10108 if (temp2)
10109 delete arg2;
10110 }
10111 return NULL;
10112 }
10113
10114
10115 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10116 PyObject *resultobj = 0;
10117 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10118 wxString result;
10119 void *argp1 = 0 ;
10120 int res1 = 0 ;
10121 PyObject *swig_obj[1] ;
10122
10123 if (!args) SWIG_fail;
10124 swig_obj[0] = args;
10125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10126 if (!SWIG_IsOK(res1)) {
10127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10128 }
10129 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10130 {
10131 PyThreadState* __tstate = wxPyBeginAllowThreads();
10132 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
10133 wxPyEndAllowThreads(__tstate);
10134 if (PyErr_Occurred()) SWIG_fail;
10135 }
10136 {
10137 #if wxUSE_UNICODE
10138 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10139 #else
10140 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10141 #endif
10142 }
10143 return resultobj;
10144 fail:
10145 return NULL;
10146 }
10147
10148
10149 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10150 PyObject *obj;
10151 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10152 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
10153 return SWIG_Py_Void();
10154 }
10155
10156 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10157 return SWIG_Python_InitShadowInstance(args);
10158 }
10159
10160 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10161 PyObject *resultobj = 0;
10162 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10163 wxString *arg2 = (wxString *) 0 ;
10164 void *argp1 = 0 ;
10165 int res1 = 0 ;
10166 bool temp2 = false ;
10167 PyObject *swig_obj[2] ;
10168
10169 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
10170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10171 if (!SWIG_IsOK(res1)) {
10172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10173 }
10174 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10175 {
10176 arg2 = wxString_in_helper(swig_obj[1]);
10177 if (arg2 == NULL) SWIG_fail;
10178 temp2 = true;
10179 }
10180 if (arg1) (arg1)->facename = *arg2;
10181
10182 resultobj = SWIG_Py_Void();
10183 {
10184 if (temp2)
10185 delete arg2;
10186 }
10187 return resultobj;
10188 fail:
10189 {
10190 if (temp2)
10191 delete arg2;
10192 }
10193 return NULL;
10194 }
10195
10196
10197 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10198 PyObject *resultobj = 0;
10199 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10200 wxString *result = 0 ;
10201 void *argp1 = 0 ;
10202 int res1 = 0 ;
10203 PyObject *swig_obj[1] ;
10204
10205 if (!args) SWIG_fail;
10206 swig_obj[0] = args;
10207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10208 if (!SWIG_IsOK(res1)) {
10209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10210 }
10211 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10212 result = (wxString *)& ((arg1)->facename);
10213 {
10214 #if wxUSE_UNICODE
10215 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10216 #else
10217 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10218 #endif
10219 }
10220 return resultobj;
10221 fail:
10222 return NULL;
10223 }
10224
10225
10226 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10227 PyObject *resultobj = 0;
10228 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10229 wxFontEncoding arg2 ;
10230 void *argp1 = 0 ;
10231 int res1 = 0 ;
10232 int val2 ;
10233 int ecode2 = 0 ;
10234 PyObject *swig_obj[2] ;
10235
10236 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
10237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10238 if (!SWIG_IsOK(res1)) {
10239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10240 }
10241 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10242 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10243 if (!SWIG_IsOK(ecode2)) {
10244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10245 }
10246 arg2 = static_cast< wxFontEncoding >(val2);
10247 if (arg1) (arg1)->encoding = arg2;
10248
10249 resultobj = SWIG_Py_Void();
10250 return resultobj;
10251 fail:
10252 return NULL;
10253 }
10254
10255
10256 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10257 PyObject *resultobj = 0;
10258 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10259 wxFontEncoding result;
10260 void *argp1 = 0 ;
10261 int res1 = 0 ;
10262 PyObject *swig_obj[1] ;
10263
10264 if (!args) SWIG_fail;
10265 swig_obj[0] = args;
10266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10267 if (!SWIG_IsOK(res1)) {
10268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10269 }
10270 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10271 result = (wxFontEncoding) ((arg1)->encoding);
10272 resultobj = SWIG_From_int(static_cast< int >(result));
10273 return resultobj;
10274 fail:
10275 return NULL;
10276 }
10277
10278
10279 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10280 PyObject *resultobj = 0;
10281 wxNativeEncodingInfo *result = 0 ;
10282
10283 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
10284 {
10285 PyThreadState* __tstate = wxPyBeginAllowThreads();
10286 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
10287 wxPyEndAllowThreads(__tstate);
10288 if (PyErr_Occurred()) SWIG_fail;
10289 }
10290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
10291 return resultobj;
10292 fail:
10293 return NULL;
10294 }
10295
10296
10297 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10298 PyObject *resultobj = 0;
10299 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10300 void *argp1 = 0 ;
10301 int res1 = 0 ;
10302 PyObject *swig_obj[1] ;
10303
10304 if (!args) SWIG_fail;
10305 swig_obj[0] = args;
10306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
10307 if (!SWIG_IsOK(res1)) {
10308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10309 }
10310 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10311 {
10312 PyThreadState* __tstate = wxPyBeginAllowThreads();
10313 delete arg1;
10314
10315 wxPyEndAllowThreads(__tstate);
10316 if (PyErr_Occurred()) SWIG_fail;
10317 }
10318 resultobj = SWIG_Py_Void();
10319 return resultobj;
10320 fail:
10321 return NULL;
10322 }
10323
10324
10325 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10326 PyObject *resultobj = 0;
10327 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10328 wxString *arg2 = 0 ;
10329 bool result;
10330 void *argp1 = 0 ;
10331 int res1 = 0 ;
10332 bool temp2 = false ;
10333 PyObject * obj0 = 0 ;
10334 PyObject * obj1 = 0 ;
10335 char * kwnames[] = {
10336 (char *) "self",(char *) "s", NULL
10337 };
10338
10339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10341 if (!SWIG_IsOK(res1)) {
10342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10343 }
10344 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10345 {
10346 arg2 = wxString_in_helper(obj1);
10347 if (arg2 == NULL) SWIG_fail;
10348 temp2 = true;
10349 }
10350 {
10351 PyThreadState* __tstate = wxPyBeginAllowThreads();
10352 result = (bool)(arg1)->FromString((wxString const &)*arg2);
10353 wxPyEndAllowThreads(__tstate);
10354 if (PyErr_Occurred()) SWIG_fail;
10355 }
10356 {
10357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10358 }
10359 {
10360 if (temp2)
10361 delete arg2;
10362 }
10363 return resultobj;
10364 fail:
10365 {
10366 if (temp2)
10367 delete arg2;
10368 }
10369 return NULL;
10370 }
10371
10372
10373 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10374 PyObject *resultobj = 0;
10375 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10376 wxString result;
10377 void *argp1 = 0 ;
10378 int res1 = 0 ;
10379 PyObject *swig_obj[1] ;
10380
10381 if (!args) SWIG_fail;
10382 swig_obj[0] = args;
10383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10384 if (!SWIG_IsOK(res1)) {
10385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
10386 }
10387 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10388 {
10389 PyThreadState* __tstate = wxPyBeginAllowThreads();
10390 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
10391 wxPyEndAllowThreads(__tstate);
10392 if (PyErr_Occurred()) SWIG_fail;
10393 }
10394 {
10395 #if wxUSE_UNICODE
10396 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10397 #else
10398 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10399 #endif
10400 }
10401 return resultobj;
10402 fail:
10403 return NULL;
10404 }
10405
10406
10407 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10408 PyObject *obj;
10409 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10410 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
10411 return SWIG_Py_Void();
10412 }
10413
10414 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10415 return SWIG_Python_InitShadowInstance(args);
10416 }
10417
10418 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10419 PyObject *resultobj = 0;
10420 wxFontEncoding arg1 ;
10421 wxNativeEncodingInfo *result = 0 ;
10422 int val1 ;
10423 int ecode1 = 0 ;
10424 PyObject * obj0 = 0 ;
10425 char * kwnames[] = {
10426 (char *) "encoding", NULL
10427 };
10428
10429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
10430 ecode1 = SWIG_AsVal_int(obj0, &val1);
10431 if (!SWIG_IsOK(ecode1)) {
10432 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10433 }
10434 arg1 = static_cast< wxFontEncoding >(val1);
10435 {
10436 PyThreadState* __tstate = wxPyBeginAllowThreads();
10437 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
10438 wxPyEndAllowThreads(__tstate);
10439 if (PyErr_Occurred()) SWIG_fail;
10440 }
10441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10442 return resultobj;
10443 fail:
10444 return NULL;
10445 }
10446
10447
10448 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10449 PyObject *resultobj = 0;
10450 wxNativeEncodingInfo *arg1 = 0 ;
10451 bool result;
10452 void *argp1 = 0 ;
10453 int res1 = 0 ;
10454 PyObject * obj0 = 0 ;
10455 char * kwnames[] = {
10456 (char *) "info", NULL
10457 };
10458
10459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
10460 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
10461 if (!SWIG_IsOK(res1)) {
10462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10463 }
10464 if (!argp1) {
10465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10466 }
10467 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10468 {
10469 PyThreadState* __tstate = wxPyBeginAllowThreads();
10470 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
10471 wxPyEndAllowThreads(__tstate);
10472 if (PyErr_Occurred()) SWIG_fail;
10473 }
10474 {
10475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10476 }
10477 return resultobj;
10478 fail:
10479 return NULL;
10480 }
10481
10482
10483 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10484 PyObject *resultobj = 0;
10485 wxFontMapper *result = 0 ;
10486
10487 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
10488 {
10489 PyThreadState* __tstate = wxPyBeginAllowThreads();
10490 result = (wxFontMapper *)new wxFontMapper();
10491 wxPyEndAllowThreads(__tstate);
10492 if (PyErr_Occurred()) SWIG_fail;
10493 }
10494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
10495 return resultobj;
10496 fail:
10497 return NULL;
10498 }
10499
10500
10501 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10502 PyObject *resultobj = 0;
10503 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10504 void *argp1 = 0 ;
10505 int res1 = 0 ;
10506 PyObject *swig_obj[1] ;
10507
10508 if (!args) SWIG_fail;
10509 swig_obj[0] = args;
10510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
10511 if (!SWIG_IsOK(res1)) {
10512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10513 }
10514 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10515 {
10516 PyThreadState* __tstate = wxPyBeginAllowThreads();
10517 delete arg1;
10518
10519 wxPyEndAllowThreads(__tstate);
10520 if (PyErr_Occurred()) SWIG_fail;
10521 }
10522 resultobj = SWIG_Py_Void();
10523 return resultobj;
10524 fail:
10525 return NULL;
10526 }
10527
10528
10529 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10530 PyObject *resultobj = 0;
10531 wxFontMapper *result = 0 ;
10532
10533 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
10534 {
10535 PyThreadState* __tstate = wxPyBeginAllowThreads();
10536 result = (wxFontMapper *)wxFontMapper::Get();
10537 wxPyEndAllowThreads(__tstate);
10538 if (PyErr_Occurred()) SWIG_fail;
10539 }
10540 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10541 return resultobj;
10542 fail:
10543 return NULL;
10544 }
10545
10546
10547 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10548 PyObject *resultobj = 0;
10549 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10550 wxFontMapper *result = 0 ;
10551 void *argp1 = 0 ;
10552 int res1 = 0 ;
10553 PyObject * obj0 = 0 ;
10554 char * kwnames[] = {
10555 (char *) "mapper", NULL
10556 };
10557
10558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
10559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10560 if (!SWIG_IsOK(res1)) {
10561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10562 }
10563 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10564 {
10565 PyThreadState* __tstate = wxPyBeginAllowThreads();
10566 result = (wxFontMapper *)wxFontMapper::Set(arg1);
10567 wxPyEndAllowThreads(__tstate);
10568 if (PyErr_Occurred()) SWIG_fail;
10569 }
10570 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10571 return resultobj;
10572 fail:
10573 return NULL;
10574 }
10575
10576
10577 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10578 PyObject *resultobj = 0;
10579 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10580 wxString *arg2 = 0 ;
10581 bool arg3 = (bool) true ;
10582 wxFontEncoding result;
10583 void *argp1 = 0 ;
10584 int res1 = 0 ;
10585 bool temp2 = false ;
10586 bool val3 ;
10587 int ecode3 = 0 ;
10588 PyObject * obj0 = 0 ;
10589 PyObject * obj1 = 0 ;
10590 PyObject * obj2 = 0 ;
10591 char * kwnames[] = {
10592 (char *) "self",(char *) "charset",(char *) "interactive", NULL
10593 };
10594
10595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10597 if (!SWIG_IsOK(res1)) {
10598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10599 }
10600 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10601 {
10602 arg2 = wxString_in_helper(obj1);
10603 if (arg2 == NULL) SWIG_fail;
10604 temp2 = true;
10605 }
10606 if (obj2) {
10607 ecode3 = SWIG_AsVal_bool(obj2, &val3);
10608 if (!SWIG_IsOK(ecode3)) {
10609 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
10610 }
10611 arg3 = static_cast< bool >(val3);
10612 }
10613 {
10614 PyThreadState* __tstate = wxPyBeginAllowThreads();
10615 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
10616 wxPyEndAllowThreads(__tstate);
10617 if (PyErr_Occurred()) SWIG_fail;
10618 }
10619 resultobj = SWIG_From_int(static_cast< int >(result));
10620 {
10621 if (temp2)
10622 delete arg2;
10623 }
10624 return resultobj;
10625 fail:
10626 {
10627 if (temp2)
10628 delete arg2;
10629 }
10630 return NULL;
10631 }
10632
10633
10634 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10635 PyObject *resultobj = 0;
10636 size_t result;
10637
10638 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
10639 {
10640 PyThreadState* __tstate = wxPyBeginAllowThreads();
10641 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
10642 wxPyEndAllowThreads(__tstate);
10643 if (PyErr_Occurred()) SWIG_fail;
10644 }
10645 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
10646 return resultobj;
10647 fail:
10648 return NULL;
10649 }
10650
10651
10652 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10653 PyObject *resultobj = 0;
10654 size_t arg1 ;
10655 wxFontEncoding result;
10656 size_t val1 ;
10657 int ecode1 = 0 ;
10658 PyObject * obj0 = 0 ;
10659 char * kwnames[] = {
10660 (char *) "n", NULL
10661 };
10662
10663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
10664 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
10665 if (!SWIG_IsOK(ecode1)) {
10666 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
10667 }
10668 arg1 = static_cast< size_t >(val1);
10669 {
10670 PyThreadState* __tstate = wxPyBeginAllowThreads();
10671 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
10672 wxPyEndAllowThreads(__tstate);
10673 if (PyErr_Occurred()) SWIG_fail;
10674 }
10675 resultobj = SWIG_From_int(static_cast< int >(result));
10676 return resultobj;
10677 fail:
10678 return NULL;
10679 }
10680
10681
10682 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10683 PyObject *resultobj = 0;
10684 wxFontEncoding arg1 ;
10685 wxString result;
10686 int val1 ;
10687 int ecode1 = 0 ;
10688 PyObject * obj0 = 0 ;
10689 char * kwnames[] = {
10690 (char *) "encoding", NULL
10691 };
10692
10693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
10694 ecode1 = SWIG_AsVal_int(obj0, &val1);
10695 if (!SWIG_IsOK(ecode1)) {
10696 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10697 }
10698 arg1 = static_cast< wxFontEncoding >(val1);
10699 {
10700 PyThreadState* __tstate = wxPyBeginAllowThreads();
10701 result = wxFontMapper::GetEncodingName(arg1);
10702 wxPyEndAllowThreads(__tstate);
10703 if (PyErr_Occurred()) SWIG_fail;
10704 }
10705 {
10706 #if wxUSE_UNICODE
10707 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10708 #else
10709 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10710 #endif
10711 }
10712 return resultobj;
10713 fail:
10714 return NULL;
10715 }
10716
10717
10718 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10719 PyObject *resultobj = 0;
10720 wxFontEncoding arg1 ;
10721 wxString result;
10722 int val1 ;
10723 int ecode1 = 0 ;
10724 PyObject * obj0 = 0 ;
10725 char * kwnames[] = {
10726 (char *) "encoding", NULL
10727 };
10728
10729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
10730 ecode1 = SWIG_AsVal_int(obj0, &val1);
10731 if (!SWIG_IsOK(ecode1)) {
10732 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10733 }
10734 arg1 = static_cast< wxFontEncoding >(val1);
10735 {
10736 PyThreadState* __tstate = wxPyBeginAllowThreads();
10737 result = wxFontMapper::GetEncodingDescription(arg1);
10738 wxPyEndAllowThreads(__tstate);
10739 if (PyErr_Occurred()) SWIG_fail;
10740 }
10741 {
10742 #if wxUSE_UNICODE
10743 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10744 #else
10745 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10746 #endif
10747 }
10748 return resultobj;
10749 fail:
10750 return NULL;
10751 }
10752
10753
10754 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10755 PyObject *resultobj = 0;
10756 wxString *arg1 = 0 ;
10757 wxFontEncoding result;
10758 bool temp1 = false ;
10759 PyObject * obj0 = 0 ;
10760 char * kwnames[] = {
10761 (char *) "name", NULL
10762 };
10763
10764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
10765 {
10766 arg1 = wxString_in_helper(obj0);
10767 if (arg1 == NULL) SWIG_fail;
10768 temp1 = true;
10769 }
10770 {
10771 PyThreadState* __tstate = wxPyBeginAllowThreads();
10772 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
10773 wxPyEndAllowThreads(__tstate);
10774 if (PyErr_Occurred()) SWIG_fail;
10775 }
10776 resultobj = SWIG_From_int(static_cast< int >(result));
10777 {
10778 if (temp1)
10779 delete arg1;
10780 }
10781 return resultobj;
10782 fail:
10783 {
10784 if (temp1)
10785 delete arg1;
10786 }
10787 return NULL;
10788 }
10789
10790
10791 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10792 PyObject *resultobj = 0;
10793 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10794 wxString *arg2 = 0 ;
10795 void *argp1 = 0 ;
10796 int res1 = 0 ;
10797 bool temp2 = false ;
10798 PyObject * obj0 = 0 ;
10799 PyObject * obj1 = 0 ;
10800 char * kwnames[] = {
10801 (char *) "self",(char *) "prefix", NULL
10802 };
10803
10804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
10805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10806 if (!SWIG_IsOK(res1)) {
10807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10808 }
10809 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10810 {
10811 arg2 = wxString_in_helper(obj1);
10812 if (arg2 == NULL) SWIG_fail;
10813 temp2 = true;
10814 }
10815 {
10816 PyThreadState* __tstate = wxPyBeginAllowThreads();
10817 (arg1)->SetConfigPath((wxString const &)*arg2);
10818 wxPyEndAllowThreads(__tstate);
10819 if (PyErr_Occurred()) SWIG_fail;
10820 }
10821 resultobj = SWIG_Py_Void();
10822 {
10823 if (temp2)
10824 delete arg2;
10825 }
10826 return resultobj;
10827 fail:
10828 {
10829 if (temp2)
10830 delete arg2;
10831 }
10832 return NULL;
10833 }
10834
10835
10836 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10837 PyObject *resultobj = 0;
10838 wxString result;
10839
10840 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
10841 {
10842 PyThreadState* __tstate = wxPyBeginAllowThreads();
10843 result = wxFontMapper::GetDefaultConfigPath();
10844 wxPyEndAllowThreads(__tstate);
10845 if (PyErr_Occurred()) SWIG_fail;
10846 }
10847 {
10848 #if wxUSE_UNICODE
10849 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10850 #else
10851 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10852 #endif
10853 }
10854 return resultobj;
10855 fail:
10856 return NULL;
10857 }
10858
10859
10860 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10861 PyObject *resultobj = 0;
10862 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10863 wxFontEncoding arg2 ;
10864 wxString const &arg3_defvalue = wxPyEmptyString ;
10865 wxString *arg3 = (wxString *) &arg3_defvalue ;
10866 bool arg4 = (bool) true ;
10867 PyObject *result = 0 ;
10868 void *argp1 = 0 ;
10869 int res1 = 0 ;
10870 int val2 ;
10871 int ecode2 = 0 ;
10872 bool temp3 = false ;
10873 bool val4 ;
10874 int ecode4 = 0 ;
10875 PyObject * obj0 = 0 ;
10876 PyObject * obj1 = 0 ;
10877 PyObject * obj2 = 0 ;
10878 PyObject * obj3 = 0 ;
10879 char * kwnames[] = {
10880 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
10881 };
10882
10883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10885 if (!SWIG_IsOK(res1)) {
10886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10887 }
10888 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10889 ecode2 = SWIG_AsVal_int(obj1, &val2);
10890 if (!SWIG_IsOK(ecode2)) {
10891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10892 }
10893 arg2 = static_cast< wxFontEncoding >(val2);
10894 if (obj2) {
10895 {
10896 arg3 = wxString_in_helper(obj2);
10897 if (arg3 == NULL) SWIG_fail;
10898 temp3 = true;
10899 }
10900 }
10901 if (obj3) {
10902 ecode4 = SWIG_AsVal_bool(obj3, &val4);
10903 if (!SWIG_IsOK(ecode4)) {
10904 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
10905 }
10906 arg4 = static_cast< bool >(val4);
10907 }
10908 {
10909 PyThreadState* __tstate = wxPyBeginAllowThreads();
10910 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
10911 wxPyEndAllowThreads(__tstate);
10912 if (PyErr_Occurred()) SWIG_fail;
10913 }
10914 resultobj = result;
10915 {
10916 if (temp3)
10917 delete arg3;
10918 }
10919 return resultobj;
10920 fail:
10921 {
10922 if (temp3)
10923 delete arg3;
10924 }
10925 return NULL;
10926 }
10927
10928
10929 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10930 PyObject *resultobj = 0;
10931 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10932 wxFontEncoding arg2 ;
10933 wxString const &arg3_defvalue = wxPyEmptyString ;
10934 wxString *arg3 = (wxString *) &arg3_defvalue ;
10935 bool result;
10936 void *argp1 = 0 ;
10937 int res1 = 0 ;
10938 int val2 ;
10939 int ecode2 = 0 ;
10940 bool temp3 = false ;
10941 PyObject * obj0 = 0 ;
10942 PyObject * obj1 = 0 ;
10943 PyObject * obj2 = 0 ;
10944 char * kwnames[] = {
10945 (char *) "self",(char *) "encoding",(char *) "facename", NULL
10946 };
10947
10948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10950 if (!SWIG_IsOK(res1)) {
10951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10952 }
10953 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10954 ecode2 = SWIG_AsVal_int(obj1, &val2);
10955 if (!SWIG_IsOK(ecode2)) {
10956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10957 }
10958 arg2 = static_cast< wxFontEncoding >(val2);
10959 if (obj2) {
10960 {
10961 arg3 = wxString_in_helper(obj2);
10962 if (arg3 == NULL) SWIG_fail;
10963 temp3 = true;
10964 }
10965 }
10966 {
10967 PyThreadState* __tstate = wxPyBeginAllowThreads();
10968 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
10969 wxPyEndAllowThreads(__tstate);
10970 if (PyErr_Occurred()) SWIG_fail;
10971 }
10972 {
10973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10974 }
10975 {
10976 if (temp3)
10977 delete arg3;
10978 }
10979 return resultobj;
10980 fail:
10981 {
10982 if (temp3)
10983 delete arg3;
10984 }
10985 return NULL;
10986 }
10987
10988
10989 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10990 PyObject *resultobj = 0;
10991 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10992 wxWindow *arg2 = (wxWindow *) 0 ;
10993 void *argp1 = 0 ;
10994 int res1 = 0 ;
10995 void *argp2 = 0 ;
10996 int res2 = 0 ;
10997 PyObject * obj0 = 0 ;
10998 PyObject * obj1 = 0 ;
10999 char * kwnames[] = {
11000 (char *) "self",(char *) "parent", NULL
11001 };
11002
11003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
11004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11005 if (!SWIG_IsOK(res1)) {
11006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11007 }
11008 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11009 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11010 if (!SWIG_IsOK(res2)) {
11011 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
11012 }
11013 arg2 = reinterpret_cast< wxWindow * >(argp2);
11014 {
11015 PyThreadState* __tstate = wxPyBeginAllowThreads();
11016 (arg1)->SetDialogParent(arg2);
11017 wxPyEndAllowThreads(__tstate);
11018 if (PyErr_Occurred()) SWIG_fail;
11019 }
11020 resultobj = SWIG_Py_Void();
11021 return resultobj;
11022 fail:
11023 return NULL;
11024 }
11025
11026
11027 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11028 PyObject *resultobj = 0;
11029 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11030 wxString *arg2 = 0 ;
11031 void *argp1 = 0 ;
11032 int res1 = 0 ;
11033 bool temp2 = false ;
11034 PyObject * obj0 = 0 ;
11035 PyObject * obj1 = 0 ;
11036 char * kwnames[] = {
11037 (char *) "self",(char *) "title", NULL
11038 };
11039
11040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
11041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11042 if (!SWIG_IsOK(res1)) {
11043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11044 }
11045 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11046 {
11047 arg2 = wxString_in_helper(obj1);
11048 if (arg2 == NULL) SWIG_fail;
11049 temp2 = true;
11050 }
11051 {
11052 PyThreadState* __tstate = wxPyBeginAllowThreads();
11053 (arg1)->SetDialogTitle((wxString const &)*arg2);
11054 wxPyEndAllowThreads(__tstate);
11055 if (PyErr_Occurred()) SWIG_fail;
11056 }
11057 resultobj = SWIG_Py_Void();
11058 {
11059 if (temp2)
11060 delete arg2;
11061 }
11062 return resultobj;
11063 fail:
11064 {
11065 if (temp2)
11066 delete arg2;
11067 }
11068 return NULL;
11069 }
11070
11071
11072 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11073 PyObject *obj;
11074 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11075 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
11076 return SWIG_Py_Void();
11077 }
11078
11079 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11080 return SWIG_Python_InitShadowInstance(args);
11081 }
11082
11083 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11084 PyObject *resultobj = 0;
11085 int arg1 ;
11086 int arg2 ;
11087 int arg3 ;
11088 int arg4 ;
11089 bool arg5 = (bool) false ;
11090 wxString const &arg6_defvalue = wxPyEmptyString ;
11091 wxString *arg6 = (wxString *) &arg6_defvalue ;
11092 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11093 wxFont *result = 0 ;
11094 int val1 ;
11095 int ecode1 = 0 ;
11096 int val2 ;
11097 int ecode2 = 0 ;
11098 int val3 ;
11099 int ecode3 = 0 ;
11100 int val4 ;
11101 int ecode4 = 0 ;
11102 bool val5 ;
11103 int ecode5 = 0 ;
11104 bool temp6 = false ;
11105 int val7 ;
11106 int ecode7 = 0 ;
11107 PyObject * obj0 = 0 ;
11108 PyObject * obj1 = 0 ;
11109 PyObject * obj2 = 0 ;
11110 PyObject * obj3 = 0 ;
11111 PyObject * obj4 = 0 ;
11112 PyObject * obj5 = 0 ;
11113 PyObject * obj6 = 0 ;
11114 char * kwnames[] = {
11115 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11116 };
11117
11118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11119 ecode1 = SWIG_AsVal_int(obj0, &val1);
11120 if (!SWIG_IsOK(ecode1)) {
11121 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11122 }
11123 arg1 = static_cast< int >(val1);
11124 ecode2 = SWIG_AsVal_int(obj1, &val2);
11125 if (!SWIG_IsOK(ecode2)) {
11126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11127 }
11128 arg2 = static_cast< int >(val2);
11129 ecode3 = SWIG_AsVal_int(obj2, &val3);
11130 if (!SWIG_IsOK(ecode3)) {
11131 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11132 }
11133 arg3 = static_cast< int >(val3);
11134 ecode4 = SWIG_AsVal_int(obj3, &val4);
11135 if (!SWIG_IsOK(ecode4)) {
11136 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11137 }
11138 arg4 = static_cast< int >(val4);
11139 if (obj4) {
11140 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11141 if (!SWIG_IsOK(ecode5)) {
11142 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11143 }
11144 arg5 = static_cast< bool >(val5);
11145 }
11146 if (obj5) {
11147 {
11148 arg6 = wxString_in_helper(obj5);
11149 if (arg6 == NULL) SWIG_fail;
11150 temp6 = true;
11151 }
11152 }
11153 if (obj6) {
11154 ecode7 = SWIG_AsVal_int(obj6, &val7);
11155 if (!SWIG_IsOK(ecode7)) {
11156 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11157 }
11158 arg7 = static_cast< wxFontEncoding >(val7);
11159 }
11160 {
11161 if (!wxPyCheckForApp()) SWIG_fail;
11162 PyThreadState* __tstate = wxPyBeginAllowThreads();
11163 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11164 wxPyEndAllowThreads(__tstate);
11165 if (PyErr_Occurred()) SWIG_fail;
11166 }
11167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
11168 {
11169 if (temp6)
11170 delete arg6;
11171 }
11172 return resultobj;
11173 fail:
11174 {
11175 if (temp6)
11176 delete arg6;
11177 }
11178 return NULL;
11179 }
11180
11181
11182 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11183 PyObject *resultobj = 0;
11184 wxFont *arg1 = (wxFont *) 0 ;
11185 void *argp1 = 0 ;
11186 int res1 = 0 ;
11187 PyObject *swig_obj[1] ;
11188
11189 if (!args) SWIG_fail;
11190 swig_obj[0] = args;
11191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
11192 if (!SWIG_IsOK(res1)) {
11193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11194 }
11195 arg1 = reinterpret_cast< wxFont * >(argp1);
11196 {
11197 PyThreadState* __tstate = wxPyBeginAllowThreads();
11198 delete arg1;
11199
11200 wxPyEndAllowThreads(__tstate);
11201 if (PyErr_Occurred()) SWIG_fail;
11202 }
11203 resultobj = SWIG_Py_Void();
11204 return resultobj;
11205 fail:
11206 return NULL;
11207 }
11208
11209
11210 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11211 PyObject *resultobj = 0;
11212 wxNativeFontInfo *arg1 = 0 ;
11213 wxFont *result = 0 ;
11214 void *argp1 = 0 ;
11215 int res1 = 0 ;
11216 PyObject * obj0 = 0 ;
11217 char * kwnames[] = {
11218 (char *) "info", NULL
11219 };
11220
11221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
11222 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
11223 if (!SWIG_IsOK(res1)) {
11224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11225 }
11226 if (!argp1) {
11227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11228 }
11229 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11230 {
11231 if (!wxPyCheckForApp()) SWIG_fail;
11232 PyThreadState* __tstate = wxPyBeginAllowThreads();
11233 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
11234 wxPyEndAllowThreads(__tstate);
11235 if (PyErr_Occurred()) SWIG_fail;
11236 }
11237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11238 return resultobj;
11239 fail:
11240 return NULL;
11241 }
11242
11243
11244 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11245 PyObject *resultobj = 0;
11246 wxString *arg1 = 0 ;
11247 wxFont *result = 0 ;
11248 bool temp1 = false ;
11249 PyObject * obj0 = 0 ;
11250 char * kwnames[] = {
11251 (char *) "info", NULL
11252 };
11253
11254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
11255 {
11256 arg1 = wxString_in_helper(obj0);
11257 if (arg1 == NULL) SWIG_fail;
11258 temp1 = true;
11259 }
11260 {
11261 if (!wxPyCheckForApp()) SWIG_fail;
11262 PyThreadState* __tstate = wxPyBeginAllowThreads();
11263 result = (wxFont *)new_wxFont((wxString const &)*arg1);
11264 wxPyEndAllowThreads(__tstate);
11265 if (PyErr_Occurred()) SWIG_fail;
11266 }
11267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11268 {
11269 if (temp1)
11270 delete arg1;
11271 }
11272 return resultobj;
11273 fail:
11274 {
11275 if (temp1)
11276 delete arg1;
11277 }
11278 return NULL;
11279 }
11280
11281
11282 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11283 PyObject *resultobj = 0;
11284 int arg1 ;
11285 wxFontFamily arg2 ;
11286 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11287 wxString const &arg4_defvalue = wxPyEmptyString ;
11288 wxString *arg4 = (wxString *) &arg4_defvalue ;
11289 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11290 wxFont *result = 0 ;
11291 int val1 ;
11292 int ecode1 = 0 ;
11293 int val2 ;
11294 int ecode2 = 0 ;
11295 int val3 ;
11296 int ecode3 = 0 ;
11297 bool temp4 = false ;
11298 int val5 ;
11299 int ecode5 = 0 ;
11300 PyObject * obj0 = 0 ;
11301 PyObject * obj1 = 0 ;
11302 PyObject * obj2 = 0 ;
11303 PyObject * obj3 = 0 ;
11304 PyObject * obj4 = 0 ;
11305 char * kwnames[] = {
11306 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11307 };
11308
11309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11310 ecode1 = SWIG_AsVal_int(obj0, &val1);
11311 if (!SWIG_IsOK(ecode1)) {
11312 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11313 }
11314 arg1 = static_cast< int >(val1);
11315 ecode2 = SWIG_AsVal_int(obj1, &val2);
11316 if (!SWIG_IsOK(ecode2)) {
11317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
11318 }
11319 arg2 = static_cast< wxFontFamily >(val2);
11320 if (obj2) {
11321 ecode3 = SWIG_AsVal_int(obj2, &val3);
11322 if (!SWIG_IsOK(ecode3)) {
11323 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
11324 }
11325 arg3 = static_cast< int >(val3);
11326 }
11327 if (obj3) {
11328 {
11329 arg4 = wxString_in_helper(obj3);
11330 if (arg4 == NULL) SWIG_fail;
11331 temp4 = true;
11332 }
11333 }
11334 if (obj4) {
11335 ecode5 = SWIG_AsVal_int(obj4, &val5);
11336 if (!SWIG_IsOK(ecode5)) {
11337 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11338 }
11339 arg5 = static_cast< wxFontEncoding >(val5);
11340 }
11341 {
11342 if (!wxPyCheckForApp()) SWIG_fail;
11343 PyThreadState* __tstate = wxPyBeginAllowThreads();
11344 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11345 wxPyEndAllowThreads(__tstate);
11346 if (PyErr_Occurred()) SWIG_fail;
11347 }
11348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11349 {
11350 if (temp4)
11351 delete arg4;
11352 }
11353 return resultobj;
11354 fail:
11355 {
11356 if (temp4)
11357 delete arg4;
11358 }
11359 return NULL;
11360 }
11361
11362
11363 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11364 PyObject *resultobj = 0;
11365 wxSize *arg1 = 0 ;
11366 int arg2 ;
11367 int arg3 ;
11368 int arg4 ;
11369 bool arg5 = (bool) false ;
11370 wxString const &arg6_defvalue = wxEmptyString ;
11371 wxString *arg6 = (wxString *) &arg6_defvalue ;
11372 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11373 wxFont *result = 0 ;
11374 wxSize temp1 ;
11375 int val2 ;
11376 int ecode2 = 0 ;
11377 int val3 ;
11378 int ecode3 = 0 ;
11379 int val4 ;
11380 int ecode4 = 0 ;
11381 bool val5 ;
11382 int ecode5 = 0 ;
11383 bool temp6 = false ;
11384 int val7 ;
11385 int ecode7 = 0 ;
11386 PyObject * obj0 = 0 ;
11387 PyObject * obj1 = 0 ;
11388 PyObject * obj2 = 0 ;
11389 PyObject * obj3 = 0 ;
11390 PyObject * obj4 = 0 ;
11391 PyObject * obj5 = 0 ;
11392 PyObject * obj6 = 0 ;
11393 char * kwnames[] = {
11394 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
11395 };
11396
11397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11398 {
11399 arg1 = &temp1;
11400 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11401 }
11402 ecode2 = SWIG_AsVal_int(obj1, &val2);
11403 if (!SWIG_IsOK(ecode2)) {
11404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
11405 }
11406 arg2 = static_cast< int >(val2);
11407 ecode3 = SWIG_AsVal_int(obj2, &val3);
11408 if (!SWIG_IsOK(ecode3)) {
11409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11410 }
11411 arg3 = static_cast< int >(val3);
11412 ecode4 = SWIG_AsVal_int(obj3, &val4);
11413 if (!SWIG_IsOK(ecode4)) {
11414 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
11415 }
11416 arg4 = static_cast< int >(val4);
11417 if (obj4) {
11418 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11419 if (!SWIG_IsOK(ecode5)) {
11420 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
11421 }
11422 arg5 = static_cast< bool >(val5);
11423 }
11424 if (obj5) {
11425 {
11426 arg6 = wxString_in_helper(obj5);
11427 if (arg6 == NULL) SWIG_fail;
11428 temp6 = true;
11429 }
11430 }
11431 if (obj6) {
11432 ecode7 = SWIG_AsVal_int(obj6, &val7);
11433 if (!SWIG_IsOK(ecode7)) {
11434 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11435 }
11436 arg7 = static_cast< wxFontEncoding >(val7);
11437 }
11438 {
11439 if (!wxPyCheckForApp()) SWIG_fail;
11440 PyThreadState* __tstate = wxPyBeginAllowThreads();
11441 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11442 wxPyEndAllowThreads(__tstate);
11443 if (PyErr_Occurred()) SWIG_fail;
11444 }
11445 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11446 {
11447 if (temp6)
11448 delete arg6;
11449 }
11450 return resultobj;
11451 fail:
11452 {
11453 if (temp6)
11454 delete arg6;
11455 }
11456 return NULL;
11457 }
11458
11459
11460 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11461 PyObject *resultobj = 0;
11462 wxSize *arg1 = 0 ;
11463 wxFontFamily arg2 ;
11464 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11465 wxString const &arg4_defvalue = wxEmptyString ;
11466 wxString *arg4 = (wxString *) &arg4_defvalue ;
11467 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11468 wxFont *result = 0 ;
11469 wxSize temp1 ;
11470 int val2 ;
11471 int ecode2 = 0 ;
11472 int val3 ;
11473 int ecode3 = 0 ;
11474 bool temp4 = false ;
11475 int val5 ;
11476 int ecode5 = 0 ;
11477 PyObject * obj0 = 0 ;
11478 PyObject * obj1 = 0 ;
11479 PyObject * obj2 = 0 ;
11480 PyObject * obj3 = 0 ;
11481 PyObject * obj4 = 0 ;
11482 char * kwnames[] = {
11483 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11484 };
11485
11486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11487 {
11488 arg1 = &temp1;
11489 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11490 }
11491 ecode2 = SWIG_AsVal_int(obj1, &val2);
11492 if (!SWIG_IsOK(ecode2)) {
11493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
11494 }
11495 arg2 = static_cast< wxFontFamily >(val2);
11496 if (obj2) {
11497 ecode3 = SWIG_AsVal_int(obj2, &val3);
11498 if (!SWIG_IsOK(ecode3)) {
11499 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11500 }
11501 arg3 = static_cast< int >(val3);
11502 }
11503 if (obj3) {
11504 {
11505 arg4 = wxString_in_helper(obj3);
11506 if (arg4 == NULL) SWIG_fail;
11507 temp4 = true;
11508 }
11509 }
11510 if (obj4) {
11511 ecode5 = SWIG_AsVal_int(obj4, &val5);
11512 if (!SWIG_IsOK(ecode5)) {
11513 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11514 }
11515 arg5 = static_cast< wxFontEncoding >(val5);
11516 }
11517 {
11518 if (!wxPyCheckForApp()) SWIG_fail;
11519 PyThreadState* __tstate = wxPyBeginAllowThreads();
11520 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11521 wxPyEndAllowThreads(__tstate);
11522 if (PyErr_Occurred()) SWIG_fail;
11523 }
11524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11525 {
11526 if (temp4)
11527 delete arg4;
11528 }
11529 return resultobj;
11530 fail:
11531 {
11532 if (temp4)
11533 delete arg4;
11534 }
11535 return NULL;
11536 }
11537
11538
11539 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11540 PyObject *resultobj = 0;
11541 wxFont *arg1 = (wxFont *) 0 ;
11542 bool result;
11543 void *argp1 = 0 ;
11544 int res1 = 0 ;
11545 PyObject *swig_obj[1] ;
11546
11547 if (!args) SWIG_fail;
11548 swig_obj[0] = args;
11549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11550 if (!SWIG_IsOK(res1)) {
11551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
11552 }
11553 arg1 = reinterpret_cast< wxFont * >(argp1);
11554 {
11555 PyThreadState* __tstate = wxPyBeginAllowThreads();
11556 result = (bool)((wxFont const *)arg1)->Ok();
11557 wxPyEndAllowThreads(__tstate);
11558 if (PyErr_Occurred()) SWIG_fail;
11559 }
11560 {
11561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11562 }
11563 return resultobj;
11564 fail:
11565 return NULL;
11566 }
11567
11568
11569 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11570 PyObject *resultobj = 0;
11571 wxFont *arg1 = (wxFont *) 0 ;
11572 wxFont *arg2 = (wxFont *) 0 ;
11573 bool result;
11574 void *argp1 = 0 ;
11575 int res1 = 0 ;
11576 void *argp2 = 0 ;
11577 int res2 = 0 ;
11578 PyObject * obj0 = 0 ;
11579 PyObject * obj1 = 0 ;
11580 char * kwnames[] = {
11581 (char *) "self",(char *) "other", NULL
11582 };
11583
11584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
11585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11586 if (!SWIG_IsOK(res1)) {
11587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
11588 }
11589 arg1 = reinterpret_cast< wxFont * >(argp1);
11590 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11591 if (!SWIG_IsOK(res2)) {
11592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
11593 }
11594 arg2 = reinterpret_cast< wxFont * >(argp2);
11595 {
11596 PyThreadState* __tstate = wxPyBeginAllowThreads();
11597 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
11598 wxPyEndAllowThreads(__tstate);
11599 if (PyErr_Occurred()) SWIG_fail;
11600 }
11601 {
11602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11603 }
11604 return resultobj;
11605 fail:
11606 return NULL;
11607 }
11608
11609
11610 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11611 PyObject *resultobj = 0;
11612 wxFont *arg1 = (wxFont *) 0 ;
11613 wxFont *arg2 = (wxFont *) 0 ;
11614 bool result;
11615 void *argp1 = 0 ;
11616 int res1 = 0 ;
11617 void *argp2 = 0 ;
11618 int res2 = 0 ;
11619 PyObject * obj0 = 0 ;
11620 PyObject * obj1 = 0 ;
11621 char * kwnames[] = {
11622 (char *) "self",(char *) "other", NULL
11623 };
11624
11625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
11626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11627 if (!SWIG_IsOK(res1)) {
11628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
11629 }
11630 arg1 = reinterpret_cast< wxFont * >(argp1);
11631 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11632 if (!SWIG_IsOK(res2)) {
11633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
11634 }
11635 arg2 = reinterpret_cast< wxFont * >(argp2);
11636 {
11637 PyThreadState* __tstate = wxPyBeginAllowThreads();
11638 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
11639 wxPyEndAllowThreads(__tstate);
11640 if (PyErr_Occurred()) SWIG_fail;
11641 }
11642 {
11643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11644 }
11645 return resultobj;
11646 fail:
11647 return NULL;
11648 }
11649
11650
11651 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11652 PyObject *resultobj = 0;
11653 wxFont *arg1 = (wxFont *) 0 ;
11654 int result;
11655 void *argp1 = 0 ;
11656 int res1 = 0 ;
11657 PyObject *swig_obj[1] ;
11658
11659 if (!args) SWIG_fail;
11660 swig_obj[0] = args;
11661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11662 if (!SWIG_IsOK(res1)) {
11663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11664 }
11665 arg1 = reinterpret_cast< wxFont * >(argp1);
11666 {
11667 PyThreadState* __tstate = wxPyBeginAllowThreads();
11668 result = (int)((wxFont const *)arg1)->GetPointSize();
11669 wxPyEndAllowThreads(__tstate);
11670 if (PyErr_Occurred()) SWIG_fail;
11671 }
11672 resultobj = SWIG_From_int(static_cast< int >(result));
11673 return resultobj;
11674 fail:
11675 return NULL;
11676 }
11677
11678
11679 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11680 PyObject *resultobj = 0;
11681 wxFont *arg1 = (wxFont *) 0 ;
11682 wxSize result;
11683 void *argp1 = 0 ;
11684 int res1 = 0 ;
11685 PyObject *swig_obj[1] ;
11686
11687 if (!args) SWIG_fail;
11688 swig_obj[0] = args;
11689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11690 if (!SWIG_IsOK(res1)) {
11691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11692 }
11693 arg1 = reinterpret_cast< wxFont * >(argp1);
11694 {
11695 PyThreadState* __tstate = wxPyBeginAllowThreads();
11696 result = ((wxFont const *)arg1)->GetPixelSize();
11697 wxPyEndAllowThreads(__tstate);
11698 if (PyErr_Occurred()) SWIG_fail;
11699 }
11700 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
11701 return resultobj;
11702 fail:
11703 return NULL;
11704 }
11705
11706
11707 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11708 PyObject *resultobj = 0;
11709 wxFont *arg1 = (wxFont *) 0 ;
11710 bool result;
11711 void *argp1 = 0 ;
11712 int res1 = 0 ;
11713 PyObject *swig_obj[1] ;
11714
11715 if (!args) SWIG_fail;
11716 swig_obj[0] = args;
11717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11718 if (!SWIG_IsOK(res1)) {
11719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
11720 }
11721 arg1 = reinterpret_cast< wxFont * >(argp1);
11722 {
11723 PyThreadState* __tstate = wxPyBeginAllowThreads();
11724 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
11725 wxPyEndAllowThreads(__tstate);
11726 if (PyErr_Occurred()) SWIG_fail;
11727 }
11728 {
11729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11730 }
11731 return resultobj;
11732 fail:
11733 return NULL;
11734 }
11735
11736
11737 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11738 PyObject *resultobj = 0;
11739 wxFont *arg1 = (wxFont *) 0 ;
11740 int result;
11741 void *argp1 = 0 ;
11742 int res1 = 0 ;
11743 PyObject *swig_obj[1] ;
11744
11745 if (!args) SWIG_fail;
11746 swig_obj[0] = args;
11747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11748 if (!SWIG_IsOK(res1)) {
11749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
11750 }
11751 arg1 = reinterpret_cast< wxFont * >(argp1);
11752 {
11753 PyThreadState* __tstate = wxPyBeginAllowThreads();
11754 result = (int)((wxFont const *)arg1)->GetFamily();
11755 wxPyEndAllowThreads(__tstate);
11756 if (PyErr_Occurred()) SWIG_fail;
11757 }
11758 resultobj = SWIG_From_int(static_cast< int >(result));
11759 return resultobj;
11760 fail:
11761 return NULL;
11762 }
11763
11764
11765 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11766 PyObject *resultobj = 0;
11767 wxFont *arg1 = (wxFont *) 0 ;
11768 int result;
11769 void *argp1 = 0 ;
11770 int res1 = 0 ;
11771 PyObject *swig_obj[1] ;
11772
11773 if (!args) SWIG_fail;
11774 swig_obj[0] = args;
11775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11776 if (!SWIG_IsOK(res1)) {
11777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
11778 }
11779 arg1 = reinterpret_cast< wxFont * >(argp1);
11780 {
11781 PyThreadState* __tstate = wxPyBeginAllowThreads();
11782 result = (int)((wxFont const *)arg1)->GetStyle();
11783 wxPyEndAllowThreads(__tstate);
11784 if (PyErr_Occurred()) SWIG_fail;
11785 }
11786 resultobj = SWIG_From_int(static_cast< int >(result));
11787 return resultobj;
11788 fail:
11789 return NULL;
11790 }
11791
11792
11793 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11794 PyObject *resultobj = 0;
11795 wxFont *arg1 = (wxFont *) 0 ;
11796 int result;
11797 void *argp1 = 0 ;
11798 int res1 = 0 ;
11799 PyObject *swig_obj[1] ;
11800
11801 if (!args) SWIG_fail;
11802 swig_obj[0] = args;
11803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11804 if (!SWIG_IsOK(res1)) {
11805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
11806 }
11807 arg1 = reinterpret_cast< wxFont * >(argp1);
11808 {
11809 PyThreadState* __tstate = wxPyBeginAllowThreads();
11810 result = (int)((wxFont const *)arg1)->GetWeight();
11811 wxPyEndAllowThreads(__tstate);
11812 if (PyErr_Occurred()) SWIG_fail;
11813 }
11814 resultobj = SWIG_From_int(static_cast< int >(result));
11815 return resultobj;
11816 fail:
11817 return NULL;
11818 }
11819
11820
11821 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11822 PyObject *resultobj = 0;
11823 wxFont *arg1 = (wxFont *) 0 ;
11824 bool result;
11825 void *argp1 = 0 ;
11826 int res1 = 0 ;
11827 PyObject *swig_obj[1] ;
11828
11829 if (!args) SWIG_fail;
11830 swig_obj[0] = args;
11831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11832 if (!SWIG_IsOK(res1)) {
11833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
11834 }
11835 arg1 = reinterpret_cast< wxFont * >(argp1);
11836 {
11837 PyThreadState* __tstate = wxPyBeginAllowThreads();
11838 result = (bool)((wxFont const *)arg1)->GetUnderlined();
11839 wxPyEndAllowThreads(__tstate);
11840 if (PyErr_Occurred()) SWIG_fail;
11841 }
11842 {
11843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11844 }
11845 return resultobj;
11846 fail:
11847 return NULL;
11848 }
11849
11850
11851 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11852 PyObject *resultobj = 0;
11853 wxFont *arg1 = (wxFont *) 0 ;
11854 wxString result;
11855 void *argp1 = 0 ;
11856 int res1 = 0 ;
11857 PyObject *swig_obj[1] ;
11858
11859 if (!args) SWIG_fail;
11860 swig_obj[0] = args;
11861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11862 if (!SWIG_IsOK(res1)) {
11863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
11864 }
11865 arg1 = reinterpret_cast< wxFont * >(argp1);
11866 {
11867 PyThreadState* __tstate = wxPyBeginAllowThreads();
11868 result = ((wxFont const *)arg1)->GetFaceName();
11869 wxPyEndAllowThreads(__tstate);
11870 if (PyErr_Occurred()) SWIG_fail;
11871 }
11872 {
11873 #if wxUSE_UNICODE
11874 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11875 #else
11876 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11877 #endif
11878 }
11879 return resultobj;
11880 fail:
11881 return NULL;
11882 }
11883
11884
11885 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11886 PyObject *resultobj = 0;
11887 wxFont *arg1 = (wxFont *) 0 ;
11888 wxFontEncoding result;
11889 void *argp1 = 0 ;
11890 int res1 = 0 ;
11891 PyObject *swig_obj[1] ;
11892
11893 if (!args) SWIG_fail;
11894 swig_obj[0] = args;
11895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11896 if (!SWIG_IsOK(res1)) {
11897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
11898 }
11899 arg1 = reinterpret_cast< wxFont * >(argp1);
11900 {
11901 PyThreadState* __tstate = wxPyBeginAllowThreads();
11902 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
11903 wxPyEndAllowThreads(__tstate);
11904 if (PyErr_Occurred()) SWIG_fail;
11905 }
11906 resultobj = SWIG_From_int(static_cast< int >(result));
11907 return resultobj;
11908 fail:
11909 return NULL;
11910 }
11911
11912
11913 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11914 PyObject *resultobj = 0;
11915 wxFont *arg1 = (wxFont *) 0 ;
11916 wxNativeFontInfo *result = 0 ;
11917 void *argp1 = 0 ;
11918 int res1 = 0 ;
11919 PyObject *swig_obj[1] ;
11920
11921 if (!args) SWIG_fail;
11922 swig_obj[0] = args;
11923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11924 if (!SWIG_IsOK(res1)) {
11925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
11926 }
11927 arg1 = reinterpret_cast< wxFont * >(argp1);
11928 {
11929 PyThreadState* __tstate = wxPyBeginAllowThreads();
11930 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
11931 wxPyEndAllowThreads(__tstate);
11932 if (PyErr_Occurred()) SWIG_fail;
11933 }
11934 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11935 return resultobj;
11936 fail:
11937 return NULL;
11938 }
11939
11940
11941 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11942 PyObject *resultobj = 0;
11943 wxFont *arg1 = (wxFont *) 0 ;
11944 bool result;
11945 void *argp1 = 0 ;
11946 int res1 = 0 ;
11947 PyObject *swig_obj[1] ;
11948
11949 if (!args) SWIG_fail;
11950 swig_obj[0] = args;
11951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11952 if (!SWIG_IsOK(res1)) {
11953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
11954 }
11955 arg1 = reinterpret_cast< wxFont * >(argp1);
11956 {
11957 PyThreadState* __tstate = wxPyBeginAllowThreads();
11958 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
11959 wxPyEndAllowThreads(__tstate);
11960 if (PyErr_Occurred()) SWIG_fail;
11961 }
11962 {
11963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11964 }
11965 return resultobj;
11966 fail:
11967 return NULL;
11968 }
11969
11970
11971 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11972 PyObject *resultobj = 0;
11973 wxFont *arg1 = (wxFont *) 0 ;
11974 wxString result;
11975 void *argp1 = 0 ;
11976 int res1 = 0 ;
11977 PyObject *swig_obj[1] ;
11978
11979 if (!args) SWIG_fail;
11980 swig_obj[0] = args;
11981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11982 if (!SWIG_IsOK(res1)) {
11983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
11984 }
11985 arg1 = reinterpret_cast< wxFont * >(argp1);
11986 {
11987 PyThreadState* __tstate = wxPyBeginAllowThreads();
11988 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
11989 wxPyEndAllowThreads(__tstate);
11990 if (PyErr_Occurred()) SWIG_fail;
11991 }
11992 {
11993 #if wxUSE_UNICODE
11994 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11995 #else
11996 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11997 #endif
11998 }
11999 return resultobj;
12000 fail:
12001 return NULL;
12002 }
12003
12004
12005 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12006 PyObject *resultobj = 0;
12007 wxFont *arg1 = (wxFont *) 0 ;
12008 wxString result;
12009 void *argp1 = 0 ;
12010 int res1 = 0 ;
12011 PyObject *swig_obj[1] ;
12012
12013 if (!args) SWIG_fail;
12014 swig_obj[0] = args;
12015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12016 if (!SWIG_IsOK(res1)) {
12017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12018 }
12019 arg1 = reinterpret_cast< wxFont * >(argp1);
12020 {
12021 PyThreadState* __tstate = wxPyBeginAllowThreads();
12022 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
12023 wxPyEndAllowThreads(__tstate);
12024 if (PyErr_Occurred()) SWIG_fail;
12025 }
12026 {
12027 #if wxUSE_UNICODE
12028 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12029 #else
12030 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12031 #endif
12032 }
12033 return resultobj;
12034 fail:
12035 return NULL;
12036 }
12037
12038
12039 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12040 PyObject *resultobj = 0;
12041 wxFont *arg1 = (wxFont *) 0 ;
12042 int arg2 ;
12043 void *argp1 = 0 ;
12044 int res1 = 0 ;
12045 int val2 ;
12046 int ecode2 = 0 ;
12047 PyObject * obj0 = 0 ;
12048 PyObject * obj1 = 0 ;
12049 char * kwnames[] = {
12050 (char *) "self",(char *) "pointSize", NULL
12051 };
12052
12053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12055 if (!SWIG_IsOK(res1)) {
12056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
12057 }
12058 arg1 = reinterpret_cast< wxFont * >(argp1);
12059 ecode2 = SWIG_AsVal_int(obj1, &val2);
12060 if (!SWIG_IsOK(ecode2)) {
12061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12062 }
12063 arg2 = static_cast< int >(val2);
12064 {
12065 PyThreadState* __tstate = wxPyBeginAllowThreads();
12066 (arg1)->SetPointSize(arg2);
12067 wxPyEndAllowThreads(__tstate);
12068 if (PyErr_Occurred()) SWIG_fail;
12069 }
12070 resultobj = SWIG_Py_Void();
12071 return resultobj;
12072 fail:
12073 return NULL;
12074 }
12075
12076
12077 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12078 PyObject *resultobj = 0;
12079 wxFont *arg1 = (wxFont *) 0 ;
12080 wxSize *arg2 = 0 ;
12081 void *argp1 = 0 ;
12082 int res1 = 0 ;
12083 wxSize temp2 ;
12084 PyObject * obj0 = 0 ;
12085 PyObject * obj1 = 0 ;
12086 char * kwnames[] = {
12087 (char *) "self",(char *) "pixelSize", NULL
12088 };
12089
12090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12092 if (!SWIG_IsOK(res1)) {
12093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12094 }
12095 arg1 = reinterpret_cast< wxFont * >(argp1);
12096 {
12097 arg2 = &temp2;
12098 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12099 }
12100 {
12101 PyThreadState* __tstate = wxPyBeginAllowThreads();
12102 (arg1)->SetPixelSize((wxSize const &)*arg2);
12103 wxPyEndAllowThreads(__tstate);
12104 if (PyErr_Occurred()) SWIG_fail;
12105 }
12106 resultobj = SWIG_Py_Void();
12107 return resultobj;
12108 fail:
12109 return NULL;
12110 }
12111
12112
12113 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12114 PyObject *resultobj = 0;
12115 wxFont *arg1 = (wxFont *) 0 ;
12116 int arg2 ;
12117 void *argp1 = 0 ;
12118 int res1 = 0 ;
12119 int val2 ;
12120 int ecode2 = 0 ;
12121 PyObject * obj0 = 0 ;
12122 PyObject * obj1 = 0 ;
12123 char * kwnames[] = {
12124 (char *) "self",(char *) "family", NULL
12125 };
12126
12127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12129 if (!SWIG_IsOK(res1)) {
12130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12131 }
12132 arg1 = reinterpret_cast< wxFont * >(argp1);
12133 ecode2 = SWIG_AsVal_int(obj1, &val2);
12134 if (!SWIG_IsOK(ecode2)) {
12135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12136 }
12137 arg2 = static_cast< int >(val2);
12138 {
12139 PyThreadState* __tstate = wxPyBeginAllowThreads();
12140 (arg1)->SetFamily(arg2);
12141 wxPyEndAllowThreads(__tstate);
12142 if (PyErr_Occurred()) SWIG_fail;
12143 }
12144 resultobj = SWIG_Py_Void();
12145 return resultobj;
12146 fail:
12147 return NULL;
12148 }
12149
12150
12151 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12152 PyObject *resultobj = 0;
12153 wxFont *arg1 = (wxFont *) 0 ;
12154 int arg2 ;
12155 void *argp1 = 0 ;
12156 int res1 = 0 ;
12157 int val2 ;
12158 int ecode2 = 0 ;
12159 PyObject * obj0 = 0 ;
12160 PyObject * obj1 = 0 ;
12161 char * kwnames[] = {
12162 (char *) "self",(char *) "style", NULL
12163 };
12164
12165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12167 if (!SWIG_IsOK(res1)) {
12168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12169 }
12170 arg1 = reinterpret_cast< wxFont * >(argp1);
12171 ecode2 = SWIG_AsVal_int(obj1, &val2);
12172 if (!SWIG_IsOK(ecode2)) {
12173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12174 }
12175 arg2 = static_cast< int >(val2);
12176 {
12177 PyThreadState* __tstate = wxPyBeginAllowThreads();
12178 (arg1)->SetStyle(arg2);
12179 wxPyEndAllowThreads(__tstate);
12180 if (PyErr_Occurred()) SWIG_fail;
12181 }
12182 resultobj = SWIG_Py_Void();
12183 return resultobj;
12184 fail:
12185 return NULL;
12186 }
12187
12188
12189 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12190 PyObject *resultobj = 0;
12191 wxFont *arg1 = (wxFont *) 0 ;
12192 int arg2 ;
12193 void *argp1 = 0 ;
12194 int res1 = 0 ;
12195 int val2 ;
12196 int ecode2 = 0 ;
12197 PyObject * obj0 = 0 ;
12198 PyObject * obj1 = 0 ;
12199 char * kwnames[] = {
12200 (char *) "self",(char *) "weight", NULL
12201 };
12202
12203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12205 if (!SWIG_IsOK(res1)) {
12206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12207 }
12208 arg1 = reinterpret_cast< wxFont * >(argp1);
12209 ecode2 = SWIG_AsVal_int(obj1, &val2);
12210 if (!SWIG_IsOK(ecode2)) {
12211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12212 }
12213 arg2 = static_cast< int >(val2);
12214 {
12215 PyThreadState* __tstate = wxPyBeginAllowThreads();
12216 (arg1)->SetWeight(arg2);
12217 wxPyEndAllowThreads(__tstate);
12218 if (PyErr_Occurred()) SWIG_fail;
12219 }
12220 resultobj = SWIG_Py_Void();
12221 return resultobj;
12222 fail:
12223 return NULL;
12224 }
12225
12226
12227 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12228 PyObject *resultobj = 0;
12229 wxFont *arg1 = (wxFont *) 0 ;
12230 wxString *arg2 = 0 ;
12231 bool result;
12232 void *argp1 = 0 ;
12233 int res1 = 0 ;
12234 bool temp2 = false ;
12235 PyObject * obj0 = 0 ;
12236 PyObject * obj1 = 0 ;
12237 char * kwnames[] = {
12238 (char *) "self",(char *) "faceName", NULL
12239 };
12240
12241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12243 if (!SWIG_IsOK(res1)) {
12244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
12245 }
12246 arg1 = reinterpret_cast< wxFont * >(argp1);
12247 {
12248 arg2 = wxString_in_helper(obj1);
12249 if (arg2 == NULL) SWIG_fail;
12250 temp2 = true;
12251 }
12252 {
12253 PyThreadState* __tstate = wxPyBeginAllowThreads();
12254 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
12255 wxPyEndAllowThreads(__tstate);
12256 if (PyErr_Occurred()) SWIG_fail;
12257 }
12258 {
12259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12260 }
12261 {
12262 if (temp2)
12263 delete arg2;
12264 }
12265 return resultobj;
12266 fail:
12267 {
12268 if (temp2)
12269 delete arg2;
12270 }
12271 return NULL;
12272 }
12273
12274
12275 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12276 PyObject *resultobj = 0;
12277 wxFont *arg1 = (wxFont *) 0 ;
12278 bool arg2 ;
12279 void *argp1 = 0 ;
12280 int res1 = 0 ;
12281 bool val2 ;
12282 int ecode2 = 0 ;
12283 PyObject * obj0 = 0 ;
12284 PyObject * obj1 = 0 ;
12285 char * kwnames[] = {
12286 (char *) "self",(char *) "underlined", NULL
12287 };
12288
12289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12291 if (!SWIG_IsOK(res1)) {
12292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12293 }
12294 arg1 = reinterpret_cast< wxFont * >(argp1);
12295 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12296 if (!SWIG_IsOK(ecode2)) {
12297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12298 }
12299 arg2 = static_cast< bool >(val2);
12300 {
12301 PyThreadState* __tstate = wxPyBeginAllowThreads();
12302 (arg1)->SetUnderlined(arg2);
12303 wxPyEndAllowThreads(__tstate);
12304 if (PyErr_Occurred()) SWIG_fail;
12305 }
12306 resultobj = SWIG_Py_Void();
12307 return resultobj;
12308 fail:
12309 return NULL;
12310 }
12311
12312
12313 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12314 PyObject *resultobj = 0;
12315 wxFont *arg1 = (wxFont *) 0 ;
12316 wxFontEncoding arg2 ;
12317 void *argp1 = 0 ;
12318 int res1 = 0 ;
12319 int val2 ;
12320 int ecode2 = 0 ;
12321 PyObject * obj0 = 0 ;
12322 PyObject * obj1 = 0 ;
12323 char * kwnames[] = {
12324 (char *) "self",(char *) "encoding", NULL
12325 };
12326
12327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12329 if (!SWIG_IsOK(res1)) {
12330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
12331 }
12332 arg1 = reinterpret_cast< wxFont * >(argp1);
12333 ecode2 = SWIG_AsVal_int(obj1, &val2);
12334 if (!SWIG_IsOK(ecode2)) {
12335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12336 }
12337 arg2 = static_cast< wxFontEncoding >(val2);
12338 {
12339 PyThreadState* __tstate = wxPyBeginAllowThreads();
12340 (arg1)->SetEncoding(arg2);
12341 wxPyEndAllowThreads(__tstate);
12342 if (PyErr_Occurred()) SWIG_fail;
12343 }
12344 resultobj = SWIG_Py_Void();
12345 return resultobj;
12346 fail:
12347 return NULL;
12348 }
12349
12350
12351 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12352 PyObject *resultobj = 0;
12353 wxFont *arg1 = (wxFont *) 0 ;
12354 wxNativeFontInfo *arg2 = 0 ;
12355 void *argp1 = 0 ;
12356 int res1 = 0 ;
12357 void *argp2 = 0 ;
12358 int res2 = 0 ;
12359 PyObject * obj0 = 0 ;
12360 PyObject * obj1 = 0 ;
12361 char * kwnames[] = {
12362 (char *) "self",(char *) "info", NULL
12363 };
12364
12365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
12366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12367 if (!SWIG_IsOK(res1)) {
12368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
12369 }
12370 arg1 = reinterpret_cast< wxFont * >(argp1);
12371 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
12372 if (!SWIG_IsOK(res2)) {
12373 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12374 }
12375 if (!argp2) {
12376 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12377 }
12378 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
12379 {
12380 PyThreadState* __tstate = wxPyBeginAllowThreads();
12381 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
12382 wxPyEndAllowThreads(__tstate);
12383 if (PyErr_Occurred()) SWIG_fail;
12384 }
12385 resultobj = SWIG_Py_Void();
12386 return resultobj;
12387 fail:
12388 return NULL;
12389 }
12390
12391
12392 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12393 PyObject *resultobj = 0;
12394 wxFont *arg1 = (wxFont *) 0 ;
12395 wxString *arg2 = 0 ;
12396 bool result;
12397 void *argp1 = 0 ;
12398 int res1 = 0 ;
12399 bool temp2 = false ;
12400 PyObject * obj0 = 0 ;
12401 PyObject * obj1 = 0 ;
12402 char * kwnames[] = {
12403 (char *) "self",(char *) "info", NULL
12404 };
12405
12406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
12407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12408 if (!SWIG_IsOK(res1)) {
12409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
12410 }
12411 arg1 = reinterpret_cast< wxFont * >(argp1);
12412 {
12413 arg2 = wxString_in_helper(obj1);
12414 if (arg2 == NULL) SWIG_fail;
12415 temp2 = true;
12416 }
12417 {
12418 PyThreadState* __tstate = wxPyBeginAllowThreads();
12419 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
12420 wxPyEndAllowThreads(__tstate);
12421 if (PyErr_Occurred()) SWIG_fail;
12422 }
12423 {
12424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12425 }
12426 {
12427 if (temp2)
12428 delete arg2;
12429 }
12430 return resultobj;
12431 fail:
12432 {
12433 if (temp2)
12434 delete arg2;
12435 }
12436 return NULL;
12437 }
12438
12439
12440 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12441 PyObject *resultobj = 0;
12442 wxFont *arg1 = (wxFont *) 0 ;
12443 wxString *arg2 = 0 ;
12444 bool result;
12445 void *argp1 = 0 ;
12446 int res1 = 0 ;
12447 bool temp2 = false ;
12448 PyObject * obj0 = 0 ;
12449 PyObject * obj1 = 0 ;
12450 char * kwnames[] = {
12451 (char *) "self",(char *) "info", NULL
12452 };
12453
12454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
12455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12456 if (!SWIG_IsOK(res1)) {
12457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
12458 }
12459 arg1 = reinterpret_cast< wxFont * >(argp1);
12460 {
12461 arg2 = wxString_in_helper(obj1);
12462 if (arg2 == NULL) SWIG_fail;
12463 temp2 = true;
12464 }
12465 {
12466 PyThreadState* __tstate = wxPyBeginAllowThreads();
12467 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
12468 wxPyEndAllowThreads(__tstate);
12469 if (PyErr_Occurred()) SWIG_fail;
12470 }
12471 {
12472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12473 }
12474 {
12475 if (temp2)
12476 delete arg2;
12477 }
12478 return resultobj;
12479 fail:
12480 {
12481 if (temp2)
12482 delete arg2;
12483 }
12484 return NULL;
12485 }
12486
12487
12488 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12489 PyObject *resultobj = 0;
12490 wxFont *arg1 = (wxFont *) 0 ;
12491 wxString result;
12492 void *argp1 = 0 ;
12493 int res1 = 0 ;
12494 PyObject *swig_obj[1] ;
12495
12496 if (!args) SWIG_fail;
12497 swig_obj[0] = args;
12498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12499 if (!SWIG_IsOK(res1)) {
12500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
12501 }
12502 arg1 = reinterpret_cast< wxFont * >(argp1);
12503 {
12504 PyThreadState* __tstate = wxPyBeginAllowThreads();
12505 result = ((wxFont const *)arg1)->GetFamilyString();
12506 wxPyEndAllowThreads(__tstate);
12507 if (PyErr_Occurred()) SWIG_fail;
12508 }
12509 {
12510 #if wxUSE_UNICODE
12511 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12512 #else
12513 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12514 #endif
12515 }
12516 return resultobj;
12517 fail:
12518 return NULL;
12519 }
12520
12521
12522 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12523 PyObject *resultobj = 0;
12524 wxFont *arg1 = (wxFont *) 0 ;
12525 wxString result;
12526 void *argp1 = 0 ;
12527 int res1 = 0 ;
12528 PyObject *swig_obj[1] ;
12529
12530 if (!args) SWIG_fail;
12531 swig_obj[0] = args;
12532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12533 if (!SWIG_IsOK(res1)) {
12534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
12535 }
12536 arg1 = reinterpret_cast< wxFont * >(argp1);
12537 {
12538 PyThreadState* __tstate = wxPyBeginAllowThreads();
12539 result = ((wxFont const *)arg1)->GetStyleString();
12540 wxPyEndAllowThreads(__tstate);
12541 if (PyErr_Occurred()) SWIG_fail;
12542 }
12543 {
12544 #if wxUSE_UNICODE
12545 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12546 #else
12547 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12548 #endif
12549 }
12550 return resultobj;
12551 fail:
12552 return NULL;
12553 }
12554
12555
12556 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12557 PyObject *resultobj = 0;
12558 wxFont *arg1 = (wxFont *) 0 ;
12559 wxString result;
12560 void *argp1 = 0 ;
12561 int res1 = 0 ;
12562 PyObject *swig_obj[1] ;
12563
12564 if (!args) SWIG_fail;
12565 swig_obj[0] = args;
12566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12567 if (!SWIG_IsOK(res1)) {
12568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
12569 }
12570 arg1 = reinterpret_cast< wxFont * >(argp1);
12571 {
12572 PyThreadState* __tstate = wxPyBeginAllowThreads();
12573 result = ((wxFont const *)arg1)->GetWeightString();
12574 wxPyEndAllowThreads(__tstate);
12575 if (PyErr_Occurred()) SWIG_fail;
12576 }
12577 {
12578 #if wxUSE_UNICODE
12579 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12580 #else
12581 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12582 #endif
12583 }
12584 return resultobj;
12585 fail:
12586 return NULL;
12587 }
12588
12589
12590 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12591 PyObject *resultobj = 0;
12592 wxFont *arg1 = (wxFont *) 0 ;
12593 bool arg2 = (bool) true ;
12594 void *argp1 = 0 ;
12595 int res1 = 0 ;
12596 bool val2 ;
12597 int ecode2 = 0 ;
12598 PyObject * obj0 = 0 ;
12599 PyObject * obj1 = 0 ;
12600 char * kwnames[] = {
12601 (char *) "self",(char *) "no", NULL
12602 };
12603
12604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
12605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12606 if (!SWIG_IsOK(res1)) {
12607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
12608 }
12609 arg1 = reinterpret_cast< wxFont * >(argp1);
12610 if (obj1) {
12611 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12612 if (!SWIG_IsOK(ecode2)) {
12613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
12614 }
12615 arg2 = static_cast< bool >(val2);
12616 }
12617 {
12618 PyThreadState* __tstate = wxPyBeginAllowThreads();
12619 (arg1)->SetNoAntiAliasing(arg2);
12620 wxPyEndAllowThreads(__tstate);
12621 if (PyErr_Occurred()) SWIG_fail;
12622 }
12623 resultobj = SWIG_Py_Void();
12624 return resultobj;
12625 fail:
12626 return NULL;
12627 }
12628
12629
12630 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12631 PyObject *resultobj = 0;
12632 wxFont *arg1 = (wxFont *) 0 ;
12633 bool result;
12634 void *argp1 = 0 ;
12635 int res1 = 0 ;
12636 PyObject *swig_obj[1] ;
12637
12638 if (!args) SWIG_fail;
12639 swig_obj[0] = args;
12640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12641 if (!SWIG_IsOK(res1)) {
12642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
12643 }
12644 arg1 = reinterpret_cast< wxFont * >(argp1);
12645 {
12646 PyThreadState* __tstate = wxPyBeginAllowThreads();
12647 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
12648 wxPyEndAllowThreads(__tstate);
12649 if (PyErr_Occurred()) SWIG_fail;
12650 }
12651 {
12652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12653 }
12654 return resultobj;
12655 fail:
12656 return NULL;
12657 }
12658
12659
12660 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12661 PyObject *resultobj = 0;
12662 wxFontEncoding result;
12663
12664 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
12665 {
12666 if (!wxPyCheckForApp()) SWIG_fail;
12667 PyThreadState* __tstate = wxPyBeginAllowThreads();
12668 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
12669 wxPyEndAllowThreads(__tstate);
12670 if (PyErr_Occurred()) SWIG_fail;
12671 }
12672 resultobj = SWIG_From_int(static_cast< int >(result));
12673 return resultobj;
12674 fail:
12675 return NULL;
12676 }
12677
12678
12679 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12680 PyObject *resultobj = 0;
12681 wxFontEncoding arg1 ;
12682 int val1 ;
12683 int ecode1 = 0 ;
12684 PyObject * obj0 = 0 ;
12685 char * kwnames[] = {
12686 (char *) "encoding", NULL
12687 };
12688
12689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
12690 ecode1 = SWIG_AsVal_int(obj0, &val1);
12691 if (!SWIG_IsOK(ecode1)) {
12692 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12693 }
12694 arg1 = static_cast< wxFontEncoding >(val1);
12695 {
12696 if (!wxPyCheckForApp()) SWIG_fail;
12697 PyThreadState* __tstate = wxPyBeginAllowThreads();
12698 wxFont::SetDefaultEncoding(arg1);
12699 wxPyEndAllowThreads(__tstate);
12700 if (PyErr_Occurred()) SWIG_fail;
12701 }
12702 resultobj = SWIG_Py_Void();
12703 return resultobj;
12704 fail:
12705 return NULL;
12706 }
12707
12708
12709 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12710 PyObject *obj;
12711 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12712 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
12713 return SWIG_Py_Void();
12714 }
12715
12716 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12717 return SWIG_Python_InitShadowInstance(args);
12718 }
12719
12720 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12721 PyObject *resultobj = 0;
12722 wxPyFontEnumerator *result = 0 ;
12723
12724 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
12725 {
12726 if (!wxPyCheckForApp()) SWIG_fail;
12727 PyThreadState* __tstate = wxPyBeginAllowThreads();
12728 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
12729 wxPyEndAllowThreads(__tstate);
12730 if (PyErr_Occurred()) SWIG_fail;
12731 }
12732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
12733 return resultobj;
12734 fail:
12735 return NULL;
12736 }
12737
12738
12739 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12740 PyObject *resultobj = 0;
12741 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12742 void *argp1 = 0 ;
12743 int res1 = 0 ;
12744 PyObject *swig_obj[1] ;
12745
12746 if (!args) SWIG_fail;
12747 swig_obj[0] = args;
12748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
12749 if (!SWIG_IsOK(res1)) {
12750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12751 }
12752 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12753 {
12754 PyThreadState* __tstate = wxPyBeginAllowThreads();
12755 delete arg1;
12756
12757 wxPyEndAllowThreads(__tstate);
12758 if (PyErr_Occurred()) SWIG_fail;
12759 }
12760 resultobj = SWIG_Py_Void();
12761 return resultobj;
12762 fail:
12763 return NULL;
12764 }
12765
12766
12767 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12768 PyObject *resultobj = 0;
12769 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12770 PyObject *arg2 = (PyObject *) 0 ;
12771 PyObject *arg3 = (PyObject *) 0 ;
12772 bool arg4 ;
12773 void *argp1 = 0 ;
12774 int res1 = 0 ;
12775 bool val4 ;
12776 int ecode4 = 0 ;
12777 PyObject * obj0 = 0 ;
12778 PyObject * obj1 = 0 ;
12779 PyObject * obj2 = 0 ;
12780 PyObject * obj3 = 0 ;
12781 char * kwnames[] = {
12782 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
12783 };
12784
12785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12787 if (!SWIG_IsOK(res1)) {
12788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12789 }
12790 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12791 arg2 = obj1;
12792 arg3 = obj2;
12793 ecode4 = SWIG_AsVal_bool(obj3, &val4);
12794 if (!SWIG_IsOK(ecode4)) {
12795 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
12796 }
12797 arg4 = static_cast< bool >(val4);
12798 {
12799 PyThreadState* __tstate = wxPyBeginAllowThreads();
12800 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
12801 wxPyEndAllowThreads(__tstate);
12802 if (PyErr_Occurred()) SWIG_fail;
12803 }
12804 resultobj = SWIG_Py_Void();
12805 return resultobj;
12806 fail:
12807 return NULL;
12808 }
12809
12810
12811 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12812 PyObject *resultobj = 0;
12813 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12814 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
12815 bool arg3 = (bool) false ;
12816 bool result;
12817 void *argp1 = 0 ;
12818 int res1 = 0 ;
12819 int val2 ;
12820 int ecode2 = 0 ;
12821 bool val3 ;
12822 int ecode3 = 0 ;
12823 PyObject * obj0 = 0 ;
12824 PyObject * obj1 = 0 ;
12825 PyObject * obj2 = 0 ;
12826 char * kwnames[] = {
12827 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
12828 };
12829
12830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12832 if (!SWIG_IsOK(res1)) {
12833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12834 }
12835 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12836 if (obj1) {
12837 ecode2 = SWIG_AsVal_int(obj1, &val2);
12838 if (!SWIG_IsOK(ecode2)) {
12839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12840 }
12841 arg2 = static_cast< wxFontEncoding >(val2);
12842 }
12843 if (obj2) {
12844 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12845 if (!SWIG_IsOK(ecode3)) {
12846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
12847 }
12848 arg3 = static_cast< bool >(val3);
12849 }
12850 {
12851 PyThreadState* __tstate = wxPyBeginAllowThreads();
12852 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
12853 wxPyEndAllowThreads(__tstate);
12854 if (PyErr_Occurred()) SWIG_fail;
12855 }
12856 {
12857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12858 }
12859 return resultobj;
12860 fail:
12861 return NULL;
12862 }
12863
12864
12865 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12866 PyObject *resultobj = 0;
12867 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12868 wxString const &arg2_defvalue = wxPyEmptyString ;
12869 wxString *arg2 = (wxString *) &arg2_defvalue ;
12870 bool result;
12871 void *argp1 = 0 ;
12872 int res1 = 0 ;
12873 bool temp2 = false ;
12874 PyObject * obj0 = 0 ;
12875 PyObject * obj1 = 0 ;
12876 char * kwnames[] = {
12877 (char *) "self",(char *) "facename", NULL
12878 };
12879
12880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
12881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12882 if (!SWIG_IsOK(res1)) {
12883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12884 }
12885 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12886 if (obj1) {
12887 {
12888 arg2 = wxString_in_helper(obj1);
12889 if (arg2 == NULL) SWIG_fail;
12890 temp2 = true;
12891 }
12892 }
12893 {
12894 PyThreadState* __tstate = wxPyBeginAllowThreads();
12895 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
12896 wxPyEndAllowThreads(__tstate);
12897 if (PyErr_Occurred()) SWIG_fail;
12898 }
12899 {
12900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12901 }
12902 {
12903 if (temp2)
12904 delete arg2;
12905 }
12906 return resultobj;
12907 fail:
12908 {
12909 if (temp2)
12910 delete arg2;
12911 }
12912 return NULL;
12913 }
12914
12915
12916 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12917 PyObject *resultobj = 0;
12918 PyObject *result = 0 ;
12919
12920 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
12921 {
12922 PyThreadState* __tstate = wxPyBeginAllowThreads();
12923 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
12924 wxPyEndAllowThreads(__tstate);
12925 if (PyErr_Occurred()) SWIG_fail;
12926 }
12927 resultobj = result;
12928 return resultobj;
12929 fail:
12930 return NULL;
12931 }
12932
12933
12934 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12935 PyObject *resultobj = 0;
12936 PyObject *result = 0 ;
12937
12938 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
12939 {
12940 PyThreadState* __tstate = wxPyBeginAllowThreads();
12941 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
12942 wxPyEndAllowThreads(__tstate);
12943 if (PyErr_Occurred()) SWIG_fail;
12944 }
12945 resultobj = result;
12946 return resultobj;
12947 fail:
12948 return NULL;
12949 }
12950
12951
12952 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12953 PyObject *resultobj = 0;
12954 wxString *arg1 = 0 ;
12955 bool result;
12956 bool temp1 = false ;
12957 PyObject * obj0 = 0 ;
12958 char * kwnames[] = {
12959 (char *) "str", NULL
12960 };
12961
12962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
12963 {
12964 arg1 = wxString_in_helper(obj0);
12965 if (arg1 == NULL) SWIG_fail;
12966 temp1 = true;
12967 }
12968 {
12969 PyThreadState* __tstate = wxPyBeginAllowThreads();
12970 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
12971 wxPyEndAllowThreads(__tstate);
12972 if (PyErr_Occurred()) SWIG_fail;
12973 }
12974 {
12975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12976 }
12977 {
12978 if (temp1)
12979 delete arg1;
12980 }
12981 return resultobj;
12982 fail:
12983 {
12984 if (temp1)
12985 delete arg1;
12986 }
12987 return NULL;
12988 }
12989
12990
12991 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12992 PyObject *obj;
12993 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12994 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
12995 return SWIG_Py_Void();
12996 }
12997
12998 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12999 return SWIG_Python_InitShadowInstance(args);
13000 }
13001
13002 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13003 PyObject *resultobj = 0;
13004 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13005 int arg2 ;
13006 void *argp1 = 0 ;
13007 int res1 = 0 ;
13008 int val2 ;
13009 int ecode2 = 0 ;
13010 PyObject *swig_obj[2] ;
13011
13012 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
13013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13014 if (!SWIG_IsOK(res1)) {
13015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13016 }
13017 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13018 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13019 if (!SWIG_IsOK(ecode2)) {
13020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
13021 }
13022 arg2 = static_cast< int >(val2);
13023 if (arg1) (arg1)->Language = arg2;
13024
13025 resultobj = SWIG_Py_Void();
13026 return resultobj;
13027 fail:
13028 return NULL;
13029 }
13030
13031
13032 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13033 PyObject *resultobj = 0;
13034 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13035 int result;
13036 void *argp1 = 0 ;
13037 int res1 = 0 ;
13038 PyObject *swig_obj[1] ;
13039
13040 if (!args) SWIG_fail;
13041 swig_obj[0] = args;
13042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13043 if (!SWIG_IsOK(res1)) {
13044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13045 }
13046 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13047 result = (int) ((arg1)->Language);
13048 resultobj = SWIG_From_int(static_cast< int >(result));
13049 return resultobj;
13050 fail:
13051 return NULL;
13052 }
13053
13054
13055 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13056 PyObject *resultobj = 0;
13057 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13058 wxString *arg2 = (wxString *) 0 ;
13059 void *argp1 = 0 ;
13060 int res1 = 0 ;
13061 bool temp2 = false ;
13062 PyObject *swig_obj[2] ;
13063
13064 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
13065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13066 if (!SWIG_IsOK(res1)) {
13067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13068 }
13069 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13070 {
13071 arg2 = wxString_in_helper(swig_obj[1]);
13072 if (arg2 == NULL) SWIG_fail;
13073 temp2 = true;
13074 }
13075 if (arg1) (arg1)->CanonicalName = *arg2;
13076
13077 resultobj = SWIG_Py_Void();
13078 {
13079 if (temp2)
13080 delete arg2;
13081 }
13082 return resultobj;
13083 fail:
13084 {
13085 if (temp2)
13086 delete arg2;
13087 }
13088 return NULL;
13089 }
13090
13091
13092 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13093 PyObject *resultobj = 0;
13094 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13095 wxString *result = 0 ;
13096 void *argp1 = 0 ;
13097 int res1 = 0 ;
13098 PyObject *swig_obj[1] ;
13099
13100 if (!args) SWIG_fail;
13101 swig_obj[0] = args;
13102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13103 if (!SWIG_IsOK(res1)) {
13104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13105 }
13106 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13107 result = (wxString *)& ((arg1)->CanonicalName);
13108 {
13109 #if wxUSE_UNICODE
13110 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13111 #else
13112 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13113 #endif
13114 }
13115 return resultobj;
13116 fail:
13117 return NULL;
13118 }
13119
13120
13121 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13122 PyObject *resultobj = 0;
13123 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13124 wxString *arg2 = (wxString *) 0 ;
13125 void *argp1 = 0 ;
13126 int res1 = 0 ;
13127 bool temp2 = false ;
13128 PyObject *swig_obj[2] ;
13129
13130 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
13131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13132 if (!SWIG_IsOK(res1)) {
13133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13134 }
13135 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13136 {
13137 arg2 = wxString_in_helper(swig_obj[1]);
13138 if (arg2 == NULL) SWIG_fail;
13139 temp2 = true;
13140 }
13141 if (arg1) (arg1)->Description = *arg2;
13142
13143 resultobj = SWIG_Py_Void();
13144 {
13145 if (temp2)
13146 delete arg2;
13147 }
13148 return resultobj;
13149 fail:
13150 {
13151 if (temp2)
13152 delete arg2;
13153 }
13154 return NULL;
13155 }
13156
13157
13158 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13159 PyObject *resultobj = 0;
13160 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13161 wxString *result = 0 ;
13162 void *argp1 = 0 ;
13163 int res1 = 0 ;
13164 PyObject *swig_obj[1] ;
13165
13166 if (!args) SWIG_fail;
13167 swig_obj[0] = args;
13168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13169 if (!SWIG_IsOK(res1)) {
13170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13171 }
13172 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13173 result = (wxString *)& ((arg1)->Description);
13174 {
13175 #if wxUSE_UNICODE
13176 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13177 #else
13178 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13179 #endif
13180 }
13181 return resultobj;
13182 fail:
13183 return NULL;
13184 }
13185
13186
13187 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13188 PyObject *obj;
13189 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13190 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
13191 return SWIG_Py_Void();
13192 }
13193
13194 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13195 PyObject *resultobj = 0;
13196 int arg1 = (int) -1 ;
13197 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13198 wxLocale *result = 0 ;
13199 int val1 ;
13200 int ecode1 = 0 ;
13201 int val2 ;
13202 int ecode2 = 0 ;
13203 PyObject * obj0 = 0 ;
13204 PyObject * obj1 = 0 ;
13205 char * kwnames[] = {
13206 (char *) "language",(char *) "flags", NULL
13207 };
13208
13209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
13210 if (obj0) {
13211 ecode1 = SWIG_AsVal_int(obj0, &val1);
13212 if (!SWIG_IsOK(ecode1)) {
13213 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13214 }
13215 arg1 = static_cast< int >(val1);
13216 }
13217 if (obj1) {
13218 ecode2 = SWIG_AsVal_int(obj1, &val2);
13219 if (!SWIG_IsOK(ecode2)) {
13220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13221 }
13222 arg2 = static_cast< int >(val2);
13223 }
13224 {
13225 PyThreadState* __tstate = wxPyBeginAllowThreads();
13226 result = (wxLocale *)new_wxLocale(arg1,arg2);
13227 wxPyEndAllowThreads(__tstate);
13228 if (PyErr_Occurred()) SWIG_fail;
13229 }
13230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
13231 return resultobj;
13232 fail:
13233 return NULL;
13234 }
13235
13236
13237 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13238 PyObject *resultobj = 0;
13239 wxLocale *arg1 = (wxLocale *) 0 ;
13240 void *argp1 = 0 ;
13241 int res1 = 0 ;
13242 PyObject *swig_obj[1] ;
13243
13244 if (!args) SWIG_fail;
13245 swig_obj[0] = args;
13246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
13247 if (!SWIG_IsOK(res1)) {
13248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13249 }
13250 arg1 = reinterpret_cast< wxLocale * >(argp1);
13251 {
13252 PyThreadState* __tstate = wxPyBeginAllowThreads();
13253 delete arg1;
13254
13255 wxPyEndAllowThreads(__tstate);
13256 if (PyErr_Occurred()) SWIG_fail;
13257 }
13258 resultobj = SWIG_Py_Void();
13259 return resultobj;
13260 fail:
13261 return NULL;
13262 }
13263
13264
13265 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13266 PyObject *resultobj = 0;
13267 wxLocale *arg1 = (wxLocale *) 0 ;
13268 wxString *arg2 = 0 ;
13269 wxString const &arg3_defvalue = wxPyEmptyString ;
13270 wxString *arg3 = (wxString *) &arg3_defvalue ;
13271 wxString const &arg4_defvalue = wxPyEmptyString ;
13272 wxString *arg4 = (wxString *) &arg4_defvalue ;
13273 bool arg5 = (bool) true ;
13274 bool arg6 = (bool) false ;
13275 bool result;
13276 void *argp1 = 0 ;
13277 int res1 = 0 ;
13278 bool temp2 = false ;
13279 bool temp3 = false ;
13280 bool temp4 = false ;
13281 bool val5 ;
13282 int ecode5 = 0 ;
13283 bool val6 ;
13284 int ecode6 = 0 ;
13285 PyObject * obj0 = 0 ;
13286 PyObject * obj1 = 0 ;
13287 PyObject * obj2 = 0 ;
13288 PyObject * obj3 = 0 ;
13289 PyObject * obj4 = 0 ;
13290 PyObject * obj5 = 0 ;
13291 char * kwnames[] = {
13292 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13293 };
13294
13295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13297 if (!SWIG_IsOK(res1)) {
13298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13299 }
13300 arg1 = reinterpret_cast< wxLocale * >(argp1);
13301 {
13302 arg2 = wxString_in_helper(obj1);
13303 if (arg2 == NULL) SWIG_fail;
13304 temp2 = true;
13305 }
13306 if (obj2) {
13307 {
13308 arg3 = wxString_in_helper(obj2);
13309 if (arg3 == NULL) SWIG_fail;
13310 temp3 = true;
13311 }
13312 }
13313 if (obj3) {
13314 {
13315 arg4 = wxString_in_helper(obj3);
13316 if (arg4 == NULL) SWIG_fail;
13317 temp4 = true;
13318 }
13319 }
13320 if (obj4) {
13321 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13322 if (!SWIG_IsOK(ecode5)) {
13323 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
13324 }
13325 arg5 = static_cast< bool >(val5);
13326 }
13327 if (obj5) {
13328 ecode6 = SWIG_AsVal_bool(obj5, &val6);
13329 if (!SWIG_IsOK(ecode6)) {
13330 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
13331 }
13332 arg6 = static_cast< bool >(val6);
13333 }
13334 {
13335 PyThreadState* __tstate = wxPyBeginAllowThreads();
13336 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
13337 wxPyEndAllowThreads(__tstate);
13338 if (PyErr_Occurred()) SWIG_fail;
13339 }
13340 {
13341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13342 }
13343 {
13344 if (temp2)
13345 delete arg2;
13346 }
13347 {
13348 if (temp3)
13349 delete arg3;
13350 }
13351 {
13352 if (temp4)
13353 delete arg4;
13354 }
13355 return resultobj;
13356 fail:
13357 {
13358 if (temp2)
13359 delete arg2;
13360 }
13361 {
13362 if (temp3)
13363 delete arg3;
13364 }
13365 {
13366 if (temp4)
13367 delete arg4;
13368 }
13369 return NULL;
13370 }
13371
13372
13373 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13374 PyObject *resultobj = 0;
13375 wxLocale *arg1 = (wxLocale *) 0 ;
13376 int arg2 = (int) wxLANGUAGE_DEFAULT ;
13377 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13378 bool result;
13379 void *argp1 = 0 ;
13380 int res1 = 0 ;
13381 int val2 ;
13382 int ecode2 = 0 ;
13383 int val3 ;
13384 int ecode3 = 0 ;
13385 PyObject * obj0 = 0 ;
13386 PyObject * obj1 = 0 ;
13387 PyObject * obj2 = 0 ;
13388 char * kwnames[] = {
13389 (char *) "self",(char *) "language",(char *) "flags", NULL
13390 };
13391
13392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13394 if (!SWIG_IsOK(res1)) {
13395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
13396 }
13397 arg1 = reinterpret_cast< wxLocale * >(argp1);
13398 if (obj1) {
13399 ecode2 = SWIG_AsVal_int(obj1, &val2);
13400 if (!SWIG_IsOK(ecode2)) {
13401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
13402 }
13403 arg2 = static_cast< int >(val2);
13404 }
13405 if (obj2) {
13406 ecode3 = SWIG_AsVal_int(obj2, &val3);
13407 if (!SWIG_IsOK(ecode3)) {
13408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
13409 }
13410 arg3 = static_cast< int >(val3);
13411 }
13412 {
13413 PyThreadState* __tstate = wxPyBeginAllowThreads();
13414 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
13415 wxPyEndAllowThreads(__tstate);
13416 if (PyErr_Occurred()) SWIG_fail;
13417 }
13418 {
13419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13420 }
13421 return resultobj;
13422 fail:
13423 return NULL;
13424 }
13425
13426
13427 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13428 PyObject *resultobj = 0;
13429 int result;
13430
13431 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
13432 {
13433 PyThreadState* __tstate = wxPyBeginAllowThreads();
13434 result = (int)wxLocale::GetSystemLanguage();
13435 wxPyEndAllowThreads(__tstate);
13436 if (PyErr_Occurred()) SWIG_fail;
13437 }
13438 resultobj = SWIG_From_int(static_cast< int >(result));
13439 return resultobj;
13440 fail:
13441 return NULL;
13442 }
13443
13444
13445 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13446 PyObject *resultobj = 0;
13447 wxFontEncoding result;
13448
13449 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
13450 {
13451 PyThreadState* __tstate = wxPyBeginAllowThreads();
13452 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
13453 wxPyEndAllowThreads(__tstate);
13454 if (PyErr_Occurred()) SWIG_fail;
13455 }
13456 resultobj = SWIG_From_int(static_cast< int >(result));
13457 return resultobj;
13458 fail:
13459 return NULL;
13460 }
13461
13462
13463 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13464 PyObject *resultobj = 0;
13465 wxString result;
13466
13467 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
13468 {
13469 PyThreadState* __tstate = wxPyBeginAllowThreads();
13470 result = wxLocale::GetSystemEncodingName();
13471 wxPyEndAllowThreads(__tstate);
13472 if (PyErr_Occurred()) SWIG_fail;
13473 }
13474 {
13475 #if wxUSE_UNICODE
13476 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13477 #else
13478 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13479 #endif
13480 }
13481 return resultobj;
13482 fail:
13483 return NULL;
13484 }
13485
13486
13487 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13488 PyObject *resultobj = 0;
13489 wxLocale *arg1 = (wxLocale *) 0 ;
13490 bool result;
13491 void *argp1 = 0 ;
13492 int res1 = 0 ;
13493 PyObject *swig_obj[1] ;
13494
13495 if (!args) SWIG_fail;
13496 swig_obj[0] = args;
13497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13498 if (!SWIG_IsOK(res1)) {
13499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
13500 }
13501 arg1 = reinterpret_cast< wxLocale * >(argp1);
13502 {
13503 PyThreadState* __tstate = wxPyBeginAllowThreads();
13504 result = (bool)((wxLocale const *)arg1)->IsOk();
13505 wxPyEndAllowThreads(__tstate);
13506 if (PyErr_Occurred()) SWIG_fail;
13507 }
13508 {
13509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13510 }
13511 return resultobj;
13512 fail:
13513 return NULL;
13514 }
13515
13516
13517 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13518 PyObject *resultobj = 0;
13519 wxLocale *arg1 = (wxLocale *) 0 ;
13520 wxString result;
13521 void *argp1 = 0 ;
13522 int res1 = 0 ;
13523 PyObject *swig_obj[1] ;
13524
13525 if (!args) SWIG_fail;
13526 swig_obj[0] = args;
13527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13528 if (!SWIG_IsOK(res1)) {
13529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
13530 }
13531 arg1 = reinterpret_cast< wxLocale * >(argp1);
13532 {
13533 PyThreadState* __tstate = wxPyBeginAllowThreads();
13534 result = ((wxLocale const *)arg1)->GetLocale();
13535 wxPyEndAllowThreads(__tstate);
13536 if (PyErr_Occurred()) SWIG_fail;
13537 }
13538 {
13539 #if wxUSE_UNICODE
13540 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13541 #else
13542 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13543 #endif
13544 }
13545 return resultobj;
13546 fail:
13547 return NULL;
13548 }
13549
13550
13551 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13552 PyObject *resultobj = 0;
13553 wxLocale *arg1 = (wxLocale *) 0 ;
13554 int result;
13555 void *argp1 = 0 ;
13556 int res1 = 0 ;
13557 PyObject *swig_obj[1] ;
13558
13559 if (!args) SWIG_fail;
13560 swig_obj[0] = args;
13561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13562 if (!SWIG_IsOK(res1)) {
13563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
13564 }
13565 arg1 = reinterpret_cast< wxLocale * >(argp1);
13566 {
13567 PyThreadState* __tstate = wxPyBeginAllowThreads();
13568 result = (int)((wxLocale const *)arg1)->GetLanguage();
13569 wxPyEndAllowThreads(__tstate);
13570 if (PyErr_Occurred()) SWIG_fail;
13571 }
13572 resultobj = SWIG_From_int(static_cast< int >(result));
13573 return resultobj;
13574 fail:
13575 return NULL;
13576 }
13577
13578
13579 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13580 PyObject *resultobj = 0;
13581 wxLocale *arg1 = (wxLocale *) 0 ;
13582 wxString result;
13583 void *argp1 = 0 ;
13584 int res1 = 0 ;
13585 PyObject *swig_obj[1] ;
13586
13587 if (!args) SWIG_fail;
13588 swig_obj[0] = args;
13589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13590 if (!SWIG_IsOK(res1)) {
13591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13592 }
13593 arg1 = reinterpret_cast< wxLocale * >(argp1);
13594 {
13595 PyThreadState* __tstate = wxPyBeginAllowThreads();
13596 result = ((wxLocale const *)arg1)->GetSysName();
13597 wxPyEndAllowThreads(__tstate);
13598 if (PyErr_Occurred()) SWIG_fail;
13599 }
13600 {
13601 #if wxUSE_UNICODE
13602 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13603 #else
13604 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13605 #endif
13606 }
13607 return resultobj;
13608 fail:
13609 return NULL;
13610 }
13611
13612
13613 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13614 PyObject *resultobj = 0;
13615 wxLocale *arg1 = (wxLocale *) 0 ;
13616 wxString result;
13617 void *argp1 = 0 ;
13618 int res1 = 0 ;
13619 PyObject *swig_obj[1] ;
13620
13621 if (!args) SWIG_fail;
13622 swig_obj[0] = args;
13623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13624 if (!SWIG_IsOK(res1)) {
13625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13626 }
13627 arg1 = reinterpret_cast< wxLocale * >(argp1);
13628 {
13629 PyThreadState* __tstate = wxPyBeginAllowThreads();
13630 result = ((wxLocale const *)arg1)->GetCanonicalName();
13631 wxPyEndAllowThreads(__tstate);
13632 if (PyErr_Occurred()) SWIG_fail;
13633 }
13634 {
13635 #if wxUSE_UNICODE
13636 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13637 #else
13638 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13639 #endif
13640 }
13641 return resultobj;
13642 fail:
13643 return NULL;
13644 }
13645
13646
13647 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13648 PyObject *resultobj = 0;
13649 wxString *arg1 = 0 ;
13650 bool temp1 = false ;
13651 PyObject * obj0 = 0 ;
13652 char * kwnames[] = {
13653 (char *) "prefix", NULL
13654 };
13655
13656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
13657 {
13658 arg1 = wxString_in_helper(obj0);
13659 if (arg1 == NULL) SWIG_fail;
13660 temp1 = true;
13661 }
13662 {
13663 PyThreadState* __tstate = wxPyBeginAllowThreads();
13664 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
13665 wxPyEndAllowThreads(__tstate);
13666 if (PyErr_Occurred()) SWIG_fail;
13667 }
13668 resultobj = SWIG_Py_Void();
13669 {
13670 if (temp1)
13671 delete arg1;
13672 }
13673 return resultobj;
13674 fail:
13675 {
13676 if (temp1)
13677 delete arg1;
13678 }
13679 return NULL;
13680 }
13681
13682
13683 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13684 PyObject *resultobj = 0;
13685 wxLocale *arg1 = (wxLocale *) 0 ;
13686 wxString *arg2 = 0 ;
13687 bool result;
13688 void *argp1 = 0 ;
13689 int res1 = 0 ;
13690 bool temp2 = false ;
13691 PyObject * obj0 = 0 ;
13692 PyObject * obj1 = 0 ;
13693 char * kwnames[] = {
13694 (char *) "self",(char *) "szDomain", NULL
13695 };
13696
13697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
13698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13699 if (!SWIG_IsOK(res1)) {
13700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
13701 }
13702 arg1 = reinterpret_cast< wxLocale * >(argp1);
13703 {
13704 arg2 = wxString_in_helper(obj1);
13705 if (arg2 == NULL) SWIG_fail;
13706 temp2 = true;
13707 }
13708 {
13709 PyThreadState* __tstate = wxPyBeginAllowThreads();
13710 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
13711 wxPyEndAllowThreads(__tstate);
13712 if (PyErr_Occurred()) SWIG_fail;
13713 }
13714 {
13715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13716 }
13717 {
13718 if (temp2)
13719 delete arg2;
13720 }
13721 return resultobj;
13722 fail:
13723 {
13724 if (temp2)
13725 delete arg2;
13726 }
13727 return NULL;
13728 }
13729
13730
13731 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13732 PyObject *resultobj = 0;
13733 wxLocale *arg1 = (wxLocale *) 0 ;
13734 wxString *arg2 = 0 ;
13735 bool result;
13736 void *argp1 = 0 ;
13737 int res1 = 0 ;
13738 bool temp2 = false ;
13739 PyObject * obj0 = 0 ;
13740 PyObject * obj1 = 0 ;
13741 char * kwnames[] = {
13742 (char *) "self",(char *) "szDomain", NULL
13743 };
13744
13745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
13746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13747 if (!SWIG_IsOK(res1)) {
13748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
13749 }
13750 arg1 = reinterpret_cast< wxLocale * >(argp1);
13751 {
13752 arg2 = wxString_in_helper(obj1);
13753 if (arg2 == NULL) SWIG_fail;
13754 temp2 = true;
13755 }
13756 {
13757 PyThreadState* __tstate = wxPyBeginAllowThreads();
13758 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
13759 wxPyEndAllowThreads(__tstate);
13760 if (PyErr_Occurred()) SWIG_fail;
13761 }
13762 {
13763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13764 }
13765 {
13766 if (temp2)
13767 delete arg2;
13768 }
13769 return resultobj;
13770 fail:
13771 {
13772 if (temp2)
13773 delete arg2;
13774 }
13775 return NULL;
13776 }
13777
13778
13779 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13780 PyObject *resultobj = 0;
13781 int arg1 ;
13782 wxLanguageInfo *result = 0 ;
13783 int val1 ;
13784 int ecode1 = 0 ;
13785 PyObject * obj0 = 0 ;
13786 char * kwnames[] = {
13787 (char *) "lang", NULL
13788 };
13789
13790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
13791 ecode1 = SWIG_AsVal_int(obj0, &val1);
13792 if (!SWIG_IsOK(ecode1)) {
13793 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
13794 }
13795 arg1 = static_cast< int >(val1);
13796 {
13797 PyThreadState* __tstate = wxPyBeginAllowThreads();
13798 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
13799 wxPyEndAllowThreads(__tstate);
13800 if (PyErr_Occurred()) SWIG_fail;
13801 }
13802 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13803 return resultobj;
13804 fail:
13805 return NULL;
13806 }
13807
13808
13809 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13810 PyObject *resultobj = 0;
13811 int arg1 ;
13812 wxString result;
13813 int val1 ;
13814 int ecode1 = 0 ;
13815 PyObject * obj0 = 0 ;
13816 char * kwnames[] = {
13817 (char *) "lang", NULL
13818 };
13819
13820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
13821 ecode1 = SWIG_AsVal_int(obj0, &val1);
13822 if (!SWIG_IsOK(ecode1)) {
13823 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
13824 }
13825 arg1 = static_cast< int >(val1);
13826 {
13827 PyThreadState* __tstate = wxPyBeginAllowThreads();
13828 result = wxLocale::GetLanguageName(arg1);
13829 wxPyEndAllowThreads(__tstate);
13830 if (PyErr_Occurred()) SWIG_fail;
13831 }
13832 {
13833 #if wxUSE_UNICODE
13834 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13835 #else
13836 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13837 #endif
13838 }
13839 return resultobj;
13840 fail:
13841 return NULL;
13842 }
13843
13844
13845 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13846 PyObject *resultobj = 0;
13847 wxString *arg1 = 0 ;
13848 wxLanguageInfo *result = 0 ;
13849 bool temp1 = false ;
13850 PyObject * obj0 = 0 ;
13851 char * kwnames[] = {
13852 (char *) "locale", NULL
13853 };
13854
13855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
13856 {
13857 arg1 = wxString_in_helper(obj0);
13858 if (arg1 == NULL) SWIG_fail;
13859 temp1 = true;
13860 }
13861 {
13862 PyThreadState* __tstate = wxPyBeginAllowThreads();
13863 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
13864 wxPyEndAllowThreads(__tstate);
13865 if (PyErr_Occurred()) SWIG_fail;
13866 }
13867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13868 {
13869 if (temp1)
13870 delete arg1;
13871 }
13872 return resultobj;
13873 fail:
13874 {
13875 if (temp1)
13876 delete arg1;
13877 }
13878 return NULL;
13879 }
13880
13881
13882 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13883 PyObject *resultobj = 0;
13884 wxLanguageInfo *arg1 = 0 ;
13885 void *argp1 = 0 ;
13886 int res1 = 0 ;
13887 PyObject * obj0 = 0 ;
13888 char * kwnames[] = {
13889 (char *) "info", NULL
13890 };
13891
13892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
13893 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
13894 if (!SWIG_IsOK(res1)) {
13895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13896 }
13897 if (!argp1) {
13898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13899 }
13900 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13901 {
13902 PyThreadState* __tstate = wxPyBeginAllowThreads();
13903 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
13904 wxPyEndAllowThreads(__tstate);
13905 if (PyErr_Occurred()) SWIG_fail;
13906 }
13907 resultobj = SWIG_Py_Void();
13908 return resultobj;
13909 fail:
13910 return NULL;
13911 }
13912
13913
13914 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13915 PyObject *resultobj = 0;
13916 wxLocale *arg1 = (wxLocale *) 0 ;
13917 wxString *arg2 = 0 ;
13918 wxString const &arg3_defvalue = wxPyEmptyString ;
13919 wxString *arg3 = (wxString *) &arg3_defvalue ;
13920 wxString result;
13921 void *argp1 = 0 ;
13922 int res1 = 0 ;
13923 bool temp2 = false ;
13924 bool temp3 = false ;
13925 PyObject * obj0 = 0 ;
13926 PyObject * obj1 = 0 ;
13927 PyObject * obj2 = 0 ;
13928 char * kwnames[] = {
13929 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
13930 };
13931
13932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13934 if (!SWIG_IsOK(res1)) {
13935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
13936 }
13937 arg1 = reinterpret_cast< wxLocale * >(argp1);
13938 {
13939 arg2 = wxString_in_helper(obj1);
13940 if (arg2 == NULL) SWIG_fail;
13941 temp2 = true;
13942 }
13943 if (obj2) {
13944 {
13945 arg3 = wxString_in_helper(obj2);
13946 if (arg3 == NULL) SWIG_fail;
13947 temp3 = true;
13948 }
13949 }
13950 {
13951 PyThreadState* __tstate = wxPyBeginAllowThreads();
13952 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
13953 wxPyEndAllowThreads(__tstate);
13954 if (PyErr_Occurred()) SWIG_fail;
13955 }
13956 {
13957 #if wxUSE_UNICODE
13958 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13959 #else
13960 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13961 #endif
13962 }
13963 {
13964 if (temp2)
13965 delete arg2;
13966 }
13967 {
13968 if (temp3)
13969 delete arg3;
13970 }
13971 return resultobj;
13972 fail:
13973 {
13974 if (temp2)
13975 delete arg2;
13976 }
13977 {
13978 if (temp3)
13979 delete arg3;
13980 }
13981 return NULL;
13982 }
13983
13984
13985 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13986 PyObject *resultobj = 0;
13987 wxLocale *arg1 = (wxLocale *) 0 ;
13988 wxString *result = 0 ;
13989 void *argp1 = 0 ;
13990 int res1 = 0 ;
13991 PyObject *swig_obj[1] ;
13992
13993 if (!args) SWIG_fail;
13994 swig_obj[0] = args;
13995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13996 if (!SWIG_IsOK(res1)) {
13997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13998 }
13999 arg1 = reinterpret_cast< wxLocale * >(argp1);
14000 {
14001 PyThreadState* __tstate = wxPyBeginAllowThreads();
14002 {
14003 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
14004 result = (wxString *) &_result_ref;
14005 }
14006 wxPyEndAllowThreads(__tstate);
14007 if (PyErr_Occurred()) SWIG_fail;
14008 }
14009 {
14010 #if wxUSE_UNICODE
14011 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14012 #else
14013 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14014 #endif
14015 }
14016 return resultobj;
14017 fail:
14018 return NULL;
14019 }
14020
14021
14022 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14023 PyObject *obj;
14024 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14025 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
14026 return SWIG_Py_Void();
14027 }
14028
14029 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14030 return SWIG_Python_InitShadowInstance(args);
14031 }
14032
14033 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14034 PyObject *resultobj = 0;
14035 wxLocale *result = 0 ;
14036
14037 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
14038 {
14039 PyThreadState* __tstate = wxPyBeginAllowThreads();
14040 result = (wxLocale *)wxGetLocale();
14041 wxPyEndAllowThreads(__tstate);
14042 if (PyErr_Occurred()) SWIG_fail;
14043 }
14044 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
14045 return resultobj;
14046 fail:
14047 return NULL;
14048 }
14049
14050
14051 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14052 PyObject *resultobj = 0;
14053 wxString *arg1 = 0 ;
14054 wxString result;
14055 bool temp1 = false ;
14056
14057 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14058 {
14059 arg1 = wxString_in_helper(swig_obj[0]);
14060 if (arg1 == NULL) SWIG_fail;
14061 temp1 = true;
14062 }
14063 {
14064 PyThreadState* __tstate = wxPyBeginAllowThreads();
14065 result = wxGetTranslation((wxString const &)*arg1);
14066 wxPyEndAllowThreads(__tstate);
14067 if (PyErr_Occurred()) SWIG_fail;
14068 }
14069 {
14070 #if wxUSE_UNICODE
14071 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14072 #else
14073 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14074 #endif
14075 }
14076 {
14077 if (temp1)
14078 delete arg1;
14079 }
14080 return resultobj;
14081 fail:
14082 {
14083 if (temp1)
14084 delete arg1;
14085 }
14086 return NULL;
14087 }
14088
14089
14090 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14091 PyObject *resultobj = 0;
14092 wxString *arg1 = 0 ;
14093 wxString *arg2 = 0 ;
14094 size_t arg3 ;
14095 wxString result;
14096 bool temp1 = false ;
14097 bool temp2 = false ;
14098 size_t val3 ;
14099 int ecode3 = 0 ;
14100
14101 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14102 {
14103 arg1 = wxString_in_helper(swig_obj[0]);
14104 if (arg1 == NULL) SWIG_fail;
14105 temp1 = true;
14106 }
14107 {
14108 arg2 = wxString_in_helper(swig_obj[1]);
14109 if (arg2 == NULL) SWIG_fail;
14110 temp2 = true;
14111 }
14112 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
14113 if (!SWIG_IsOK(ecode3)) {
14114 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14115 }
14116 arg3 = static_cast< size_t >(val3);
14117 {
14118 PyThreadState* __tstate = wxPyBeginAllowThreads();
14119 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
14120 wxPyEndAllowThreads(__tstate);
14121 if (PyErr_Occurred()) SWIG_fail;
14122 }
14123 {
14124 #if wxUSE_UNICODE
14125 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14126 #else
14127 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14128 #endif
14129 }
14130 {
14131 if (temp1)
14132 delete arg1;
14133 }
14134 {
14135 if (temp2)
14136 delete arg2;
14137 }
14138 return resultobj;
14139 fail:
14140 {
14141 if (temp1)
14142 delete arg1;
14143 }
14144 {
14145 if (temp2)
14146 delete arg2;
14147 }
14148 return NULL;
14149 }
14150
14151
14152 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
14153 int argc;
14154 PyObject *argv[4];
14155
14156 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail;
14157 --argc;
14158 if (argc == 1) {
14159 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
14160 }
14161 if (argc == 3) {
14162 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
14163 }
14164
14165 fail:
14166 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
14167 return NULL;
14168 }
14169
14170
14171 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14172 PyObject *resultobj = 0;
14173 wxEncodingConverter *result = 0 ;
14174
14175 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
14176 {
14177 PyThreadState* __tstate = wxPyBeginAllowThreads();
14178 result = (wxEncodingConverter *)new wxEncodingConverter();
14179 wxPyEndAllowThreads(__tstate);
14180 if (PyErr_Occurred()) SWIG_fail;
14181 }
14182 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
14183 return resultobj;
14184 fail:
14185 return NULL;
14186 }
14187
14188
14189 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14190 PyObject *resultobj = 0;
14191 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14192 void *argp1 = 0 ;
14193 int res1 = 0 ;
14194 PyObject *swig_obj[1] ;
14195
14196 if (!args) SWIG_fail;
14197 swig_obj[0] = args;
14198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
14199 if (!SWIG_IsOK(res1)) {
14200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14201 }
14202 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14203 {
14204 PyThreadState* __tstate = wxPyBeginAllowThreads();
14205 delete arg1;
14206
14207 wxPyEndAllowThreads(__tstate);
14208 if (PyErr_Occurred()) SWIG_fail;
14209 }
14210 resultobj = SWIG_Py_Void();
14211 return resultobj;
14212 fail:
14213 return NULL;
14214 }
14215
14216
14217 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14218 PyObject *resultobj = 0;
14219 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14220 wxFontEncoding arg2 ;
14221 wxFontEncoding arg3 ;
14222 int arg4 = (int) wxCONVERT_STRICT ;
14223 bool result;
14224 void *argp1 = 0 ;
14225 int res1 = 0 ;
14226 int val2 ;
14227 int ecode2 = 0 ;
14228 int val3 ;
14229 int ecode3 = 0 ;
14230 int val4 ;
14231 int ecode4 = 0 ;
14232 PyObject * obj0 = 0 ;
14233 PyObject * obj1 = 0 ;
14234 PyObject * obj2 = 0 ;
14235 PyObject * obj3 = 0 ;
14236 char * kwnames[] = {
14237 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14238 };
14239
14240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14242 if (!SWIG_IsOK(res1)) {
14243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14244 }
14245 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14246 ecode2 = SWIG_AsVal_int(obj1, &val2);
14247 if (!SWIG_IsOK(ecode2)) {
14248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14249 }
14250 arg2 = static_cast< wxFontEncoding >(val2);
14251 ecode3 = SWIG_AsVal_int(obj2, &val3);
14252 if (!SWIG_IsOK(ecode3)) {
14253 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14254 }
14255 arg3 = static_cast< wxFontEncoding >(val3);
14256 if (obj3) {
14257 ecode4 = SWIG_AsVal_int(obj3, &val4);
14258 if (!SWIG_IsOK(ecode4)) {
14259 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14260 }
14261 arg4 = static_cast< int >(val4);
14262 }
14263 {
14264 PyThreadState* __tstate = wxPyBeginAllowThreads();
14265 result = (bool)(arg1)->Init(arg2,arg3,arg4);
14266 wxPyEndAllowThreads(__tstate);
14267 if (PyErr_Occurred()) SWIG_fail;
14268 }
14269 {
14270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14271 }
14272 return resultobj;
14273 fail:
14274 return NULL;
14275 }
14276
14277
14278 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14279 PyObject *resultobj = 0;
14280 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14281 wxString *arg2 = 0 ;
14282 wxString result;
14283 void *argp1 = 0 ;
14284 int res1 = 0 ;
14285 bool temp2 = false ;
14286 PyObject * obj0 = 0 ;
14287 PyObject * obj1 = 0 ;
14288 char * kwnames[] = {
14289 (char *) "self",(char *) "input", NULL
14290 };
14291
14292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
14293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14294 if (!SWIG_IsOK(res1)) {
14295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14296 }
14297 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14298 {
14299 arg2 = wxString_in_helper(obj1);
14300 if (arg2 == NULL) SWIG_fail;
14301 temp2 = true;
14302 }
14303 {
14304 PyThreadState* __tstate = wxPyBeginAllowThreads();
14305 result = (arg1)->Convert((wxString const &)*arg2);
14306 wxPyEndAllowThreads(__tstate);
14307 if (PyErr_Occurred()) SWIG_fail;
14308 }
14309 {
14310 #if wxUSE_UNICODE
14311 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14312 #else
14313 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14314 #endif
14315 }
14316 {
14317 if (temp2)
14318 delete arg2;
14319 }
14320 return resultobj;
14321 fail:
14322 {
14323 if (temp2)
14324 delete arg2;
14325 }
14326 return NULL;
14327 }
14328
14329
14330 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14331 PyObject *resultobj = 0;
14332 wxFontEncoding arg1 ;
14333 int arg2 = (int) wxPLATFORM_CURRENT ;
14334 wxFontEncodingArray result;
14335 int val1 ;
14336 int ecode1 = 0 ;
14337 int val2 ;
14338 int ecode2 = 0 ;
14339 PyObject * obj0 = 0 ;
14340 PyObject * obj1 = 0 ;
14341 char * kwnames[] = {
14342 (char *) "enc",(char *) "platform", NULL
14343 };
14344
14345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
14346 ecode1 = SWIG_AsVal_int(obj0, &val1);
14347 if (!SWIG_IsOK(ecode1)) {
14348 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14349 }
14350 arg1 = static_cast< wxFontEncoding >(val1);
14351 if (obj1) {
14352 ecode2 = SWIG_AsVal_int(obj1, &val2);
14353 if (!SWIG_IsOK(ecode2)) {
14354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
14355 }
14356 arg2 = static_cast< int >(val2);
14357 }
14358 {
14359 PyThreadState* __tstate = wxPyBeginAllowThreads();
14360 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
14361 wxPyEndAllowThreads(__tstate);
14362 if (PyErr_Occurred()) SWIG_fail;
14363 }
14364 {
14365 resultobj = PyList_New(0);
14366 for (size_t i=0; i < (&result)->GetCount(); i++) {
14367 PyObject* number = PyInt_FromLong((&result)->Item(i));
14368 PyList_Append(resultobj, number);
14369 Py_DECREF(number);
14370 }
14371 }
14372 return resultobj;
14373 fail:
14374 return NULL;
14375 }
14376
14377
14378 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14379 PyObject *resultobj = 0;
14380 wxFontEncoding arg1 ;
14381 wxFontEncodingArray result;
14382 int val1 ;
14383 int ecode1 = 0 ;
14384 PyObject * obj0 = 0 ;
14385 char * kwnames[] = {
14386 (char *) "enc", NULL
14387 };
14388
14389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
14390 ecode1 = SWIG_AsVal_int(obj0, &val1);
14391 if (!SWIG_IsOK(ecode1)) {
14392 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14393 }
14394 arg1 = static_cast< wxFontEncoding >(val1);
14395 {
14396 PyThreadState* __tstate = wxPyBeginAllowThreads();
14397 result = wxEncodingConverter::GetAllEquivalents(arg1);
14398 wxPyEndAllowThreads(__tstate);
14399 if (PyErr_Occurred()) SWIG_fail;
14400 }
14401 {
14402 resultobj = PyList_New(0);
14403 for (size_t i=0; i < (&result)->GetCount(); i++) {
14404 PyObject* number = PyInt_FromLong((&result)->Item(i));
14405 PyList_Append(resultobj, number);
14406 Py_DECREF(number);
14407 }
14408 }
14409 return resultobj;
14410 fail:
14411 return NULL;
14412 }
14413
14414
14415 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14416 PyObject *resultobj = 0;
14417 wxFontEncoding arg1 ;
14418 wxFontEncoding arg2 ;
14419 bool result;
14420 int val1 ;
14421 int ecode1 = 0 ;
14422 int val2 ;
14423 int ecode2 = 0 ;
14424 PyObject * obj0 = 0 ;
14425 PyObject * obj1 = 0 ;
14426 char * kwnames[] = {
14427 (char *) "encIn",(char *) "encOut", NULL
14428 };
14429
14430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
14431 ecode1 = SWIG_AsVal_int(obj0, &val1);
14432 if (!SWIG_IsOK(ecode1)) {
14433 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14434 }
14435 arg1 = static_cast< wxFontEncoding >(val1);
14436 ecode2 = SWIG_AsVal_int(obj1, &val2);
14437 if (!SWIG_IsOK(ecode2)) {
14438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14439 }
14440 arg2 = static_cast< wxFontEncoding >(val2);
14441 {
14442 PyThreadState* __tstate = wxPyBeginAllowThreads();
14443 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
14444 wxPyEndAllowThreads(__tstate);
14445 if (PyErr_Occurred()) SWIG_fail;
14446 }
14447 {
14448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14449 }
14450 return resultobj;
14451 fail:
14452 return NULL;
14453 }
14454
14455
14456 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14457 PyObject *obj;
14458 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14459 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
14460 return SWIG_Py_Void();
14461 }
14462
14463 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14464 return SWIG_Python_InitShadowInstance(args);
14465 }
14466
14467 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14468 PyObject *resultobj = 0;
14469 wxDC *arg1 = (wxDC *) 0 ;
14470 void *argp1 = 0 ;
14471 int res1 = 0 ;
14472 PyObject *swig_obj[1] ;
14473
14474 if (!args) SWIG_fail;
14475 swig_obj[0] = args;
14476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
14477 if (!SWIG_IsOK(res1)) {
14478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
14479 }
14480 arg1 = reinterpret_cast< wxDC * >(argp1);
14481 {
14482 PyThreadState* __tstate = wxPyBeginAllowThreads();
14483 delete arg1;
14484
14485 wxPyEndAllowThreads(__tstate);
14486 if (PyErr_Occurred()) SWIG_fail;
14487 }
14488 resultobj = SWIG_Py_Void();
14489 return resultobj;
14490 fail:
14491 return NULL;
14492 }
14493
14494
14495 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14496 PyObject *resultobj = 0;
14497 wxDC *arg1 = (wxDC *) 0 ;
14498 int arg2 ;
14499 int arg3 ;
14500 wxColour *arg4 = 0 ;
14501 int arg5 = (int) wxFLOOD_SURFACE ;
14502 bool result;
14503 void *argp1 = 0 ;
14504 int res1 = 0 ;
14505 int val2 ;
14506 int ecode2 = 0 ;
14507 int val3 ;
14508 int ecode3 = 0 ;
14509 wxColour temp4 ;
14510 int val5 ;
14511 int ecode5 = 0 ;
14512 PyObject * obj0 = 0 ;
14513 PyObject * obj1 = 0 ;
14514 PyObject * obj2 = 0 ;
14515 PyObject * obj3 = 0 ;
14516 PyObject * obj4 = 0 ;
14517 char * kwnames[] = {
14518 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
14519 };
14520
14521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14523 if (!SWIG_IsOK(res1)) {
14524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
14525 }
14526 arg1 = reinterpret_cast< wxDC * >(argp1);
14527 ecode2 = SWIG_AsVal_int(obj1, &val2);
14528 if (!SWIG_IsOK(ecode2)) {
14529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
14530 }
14531 arg2 = static_cast< int >(val2);
14532 ecode3 = SWIG_AsVal_int(obj2, &val3);
14533 if (!SWIG_IsOK(ecode3)) {
14534 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
14535 }
14536 arg3 = static_cast< int >(val3);
14537 {
14538 arg4 = &temp4;
14539 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14540 }
14541 if (obj4) {
14542 ecode5 = SWIG_AsVal_int(obj4, &val5);
14543 if (!SWIG_IsOK(ecode5)) {
14544 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
14545 }
14546 arg5 = static_cast< int >(val5);
14547 }
14548 {
14549 PyThreadState* __tstate = wxPyBeginAllowThreads();
14550 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
14551 wxPyEndAllowThreads(__tstate);
14552 if (PyErr_Occurred()) SWIG_fail;
14553 }
14554 {
14555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14556 }
14557 return resultobj;
14558 fail:
14559 return NULL;
14560 }
14561
14562
14563 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14564 PyObject *resultobj = 0;
14565 wxDC *arg1 = (wxDC *) 0 ;
14566 wxPoint *arg2 = 0 ;
14567 wxColour *arg3 = 0 ;
14568 int arg4 = (int) wxFLOOD_SURFACE ;
14569 bool result;
14570 void *argp1 = 0 ;
14571 int res1 = 0 ;
14572 wxPoint temp2 ;
14573 wxColour temp3 ;
14574 int val4 ;
14575 int ecode4 = 0 ;
14576 PyObject * obj0 = 0 ;
14577 PyObject * obj1 = 0 ;
14578 PyObject * obj2 = 0 ;
14579 PyObject * obj3 = 0 ;
14580 char * kwnames[] = {
14581 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
14582 };
14583
14584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14586 if (!SWIG_IsOK(res1)) {
14587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14588 }
14589 arg1 = reinterpret_cast< wxDC * >(argp1);
14590 {
14591 arg2 = &temp2;
14592 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14593 }
14594 {
14595 arg3 = &temp3;
14596 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14597 }
14598 if (obj3) {
14599 ecode4 = SWIG_AsVal_int(obj3, &val4);
14600 if (!SWIG_IsOK(ecode4)) {
14601 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
14602 }
14603 arg4 = static_cast< int >(val4);
14604 }
14605 {
14606 PyThreadState* __tstate = wxPyBeginAllowThreads();
14607 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
14608 wxPyEndAllowThreads(__tstate);
14609 if (PyErr_Occurred()) SWIG_fail;
14610 }
14611 {
14612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14613 }
14614 return resultobj;
14615 fail:
14616 return NULL;
14617 }
14618
14619
14620 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14621 PyObject *resultobj = 0;
14622 wxDC *arg1 = (wxDC *) 0 ;
14623 wxRect *arg2 = 0 ;
14624 wxColour *arg3 = 0 ;
14625 wxColour *arg4 = 0 ;
14626 wxPoint *arg5 = 0 ;
14627 void *argp1 = 0 ;
14628 int res1 = 0 ;
14629 wxRect temp2 ;
14630 wxColour temp3 ;
14631 wxColour temp4 ;
14632 wxPoint temp5 ;
14633 PyObject * obj0 = 0 ;
14634 PyObject * obj1 = 0 ;
14635 PyObject * obj2 = 0 ;
14636 PyObject * obj3 = 0 ;
14637 PyObject * obj4 = 0 ;
14638 char * kwnames[] = {
14639 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
14640 };
14641
14642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14644 if (!SWIG_IsOK(res1)) {
14645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
14646 }
14647 arg1 = reinterpret_cast< wxDC * >(argp1);
14648 {
14649 arg2 = &temp2;
14650 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14651 }
14652 {
14653 arg3 = &temp3;
14654 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14655 }
14656 {
14657 arg4 = &temp4;
14658 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14659 }
14660 {
14661 arg5 = &temp5;
14662 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14663 }
14664 {
14665 PyThreadState* __tstate = wxPyBeginAllowThreads();
14666 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
14667 wxPyEndAllowThreads(__tstate);
14668 if (PyErr_Occurred()) SWIG_fail;
14669 }
14670 resultobj = SWIG_Py_Void();
14671 return resultobj;
14672 fail:
14673 return NULL;
14674 }
14675
14676
14677 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14678 PyObject *resultobj = 0;
14679 wxDC *arg1 = (wxDC *) 0 ;
14680 wxRect *arg2 = 0 ;
14681 wxColour *arg3 = 0 ;
14682 wxColour *arg4 = 0 ;
14683 wxDirection arg5 = (wxDirection) wxEAST ;
14684 void *argp1 = 0 ;
14685 int res1 = 0 ;
14686 wxRect temp2 ;
14687 wxColour temp3 ;
14688 wxColour temp4 ;
14689 int val5 ;
14690 int ecode5 = 0 ;
14691 PyObject * obj0 = 0 ;
14692 PyObject * obj1 = 0 ;
14693 PyObject * obj2 = 0 ;
14694 PyObject * obj3 = 0 ;
14695 PyObject * obj4 = 0 ;
14696 char * kwnames[] = {
14697 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
14698 };
14699
14700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14702 if (!SWIG_IsOK(res1)) {
14703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
14704 }
14705 arg1 = reinterpret_cast< wxDC * >(argp1);
14706 {
14707 arg2 = &temp2;
14708 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14709 }
14710 {
14711 arg3 = &temp3;
14712 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14713 }
14714 {
14715 arg4 = &temp4;
14716 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14717 }
14718 if (obj4) {
14719 ecode5 = SWIG_AsVal_int(obj4, &val5);
14720 if (!SWIG_IsOK(ecode5)) {
14721 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
14722 }
14723 arg5 = static_cast< wxDirection >(val5);
14724 }
14725 {
14726 PyThreadState* __tstate = wxPyBeginAllowThreads();
14727 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
14728 wxPyEndAllowThreads(__tstate);
14729 if (PyErr_Occurred()) SWIG_fail;
14730 }
14731 resultobj = SWIG_Py_Void();
14732 return resultobj;
14733 fail:
14734 return NULL;
14735 }
14736
14737
14738 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14739 PyObject *resultobj = 0;
14740 wxDC *arg1 = (wxDC *) 0 ;
14741 int arg2 ;
14742 int arg3 ;
14743 wxColour result;
14744 void *argp1 = 0 ;
14745 int res1 = 0 ;
14746 int val2 ;
14747 int ecode2 = 0 ;
14748 int val3 ;
14749 int ecode3 = 0 ;
14750 PyObject * obj0 = 0 ;
14751 PyObject * obj1 = 0 ;
14752 PyObject * obj2 = 0 ;
14753 char * kwnames[] = {
14754 (char *) "self",(char *) "x",(char *) "y", NULL
14755 };
14756
14757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14759 if (!SWIG_IsOK(res1)) {
14760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
14761 }
14762 arg1 = reinterpret_cast< wxDC * >(argp1);
14763 ecode2 = SWIG_AsVal_int(obj1, &val2);
14764 if (!SWIG_IsOK(ecode2)) {
14765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
14766 }
14767 arg2 = static_cast< int >(val2);
14768 ecode3 = SWIG_AsVal_int(obj2, &val3);
14769 if (!SWIG_IsOK(ecode3)) {
14770 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
14771 }
14772 arg3 = static_cast< int >(val3);
14773 {
14774 PyThreadState* __tstate = wxPyBeginAllowThreads();
14775 result = wxDC_GetPixel(arg1,arg2,arg3);
14776 wxPyEndAllowThreads(__tstate);
14777 if (PyErr_Occurred()) SWIG_fail;
14778 }
14779 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14780 return resultobj;
14781 fail:
14782 return NULL;
14783 }
14784
14785
14786 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14787 PyObject *resultobj = 0;
14788 wxDC *arg1 = (wxDC *) 0 ;
14789 wxPoint *arg2 = 0 ;
14790 wxColour result;
14791 void *argp1 = 0 ;
14792 int res1 = 0 ;
14793 wxPoint temp2 ;
14794 PyObject * obj0 = 0 ;
14795 PyObject * obj1 = 0 ;
14796 char * kwnames[] = {
14797 (char *) "self",(char *) "pt", NULL
14798 };
14799
14800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14802 if (!SWIG_IsOK(res1)) {
14803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14804 }
14805 arg1 = reinterpret_cast< wxDC * >(argp1);
14806 {
14807 arg2 = &temp2;
14808 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14809 }
14810 {
14811 PyThreadState* __tstate = wxPyBeginAllowThreads();
14812 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
14813 wxPyEndAllowThreads(__tstate);
14814 if (PyErr_Occurred()) SWIG_fail;
14815 }
14816 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14817 return resultobj;
14818 fail:
14819 return NULL;
14820 }
14821
14822
14823 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14824 PyObject *resultobj = 0;
14825 wxDC *arg1 = (wxDC *) 0 ;
14826 int arg2 ;
14827 int arg3 ;
14828 int arg4 ;
14829 int arg5 ;
14830 void *argp1 = 0 ;
14831 int res1 = 0 ;
14832 int val2 ;
14833 int ecode2 = 0 ;
14834 int val3 ;
14835 int ecode3 = 0 ;
14836 int val4 ;
14837 int ecode4 = 0 ;
14838 int val5 ;
14839 int ecode5 = 0 ;
14840 PyObject * obj0 = 0 ;
14841 PyObject * obj1 = 0 ;
14842 PyObject * obj2 = 0 ;
14843 PyObject * obj3 = 0 ;
14844 PyObject * obj4 = 0 ;
14845 char * kwnames[] = {
14846 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
14847 };
14848
14849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14851 if (!SWIG_IsOK(res1)) {
14852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
14853 }
14854 arg1 = reinterpret_cast< wxDC * >(argp1);
14855 ecode2 = SWIG_AsVal_int(obj1, &val2);
14856 if (!SWIG_IsOK(ecode2)) {
14857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
14858 }
14859 arg2 = static_cast< int >(val2);
14860 ecode3 = SWIG_AsVal_int(obj2, &val3);
14861 if (!SWIG_IsOK(ecode3)) {
14862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
14863 }
14864 arg3 = static_cast< int >(val3);
14865 ecode4 = SWIG_AsVal_int(obj3, &val4);
14866 if (!SWIG_IsOK(ecode4)) {
14867 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
14868 }
14869 arg4 = static_cast< int >(val4);
14870 ecode5 = SWIG_AsVal_int(obj4, &val5);
14871 if (!SWIG_IsOK(ecode5)) {
14872 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
14873 }
14874 arg5 = static_cast< int >(val5);
14875 {
14876 PyThreadState* __tstate = wxPyBeginAllowThreads();
14877 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
14878 wxPyEndAllowThreads(__tstate);
14879 if (PyErr_Occurred()) SWIG_fail;
14880 }
14881 resultobj = SWIG_Py_Void();
14882 return resultobj;
14883 fail:
14884 return NULL;
14885 }
14886
14887
14888 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14889 PyObject *resultobj = 0;
14890 wxDC *arg1 = (wxDC *) 0 ;
14891 wxPoint *arg2 = 0 ;
14892 wxPoint *arg3 = 0 ;
14893 void *argp1 = 0 ;
14894 int res1 = 0 ;
14895 wxPoint temp2 ;
14896 wxPoint temp3 ;
14897 PyObject * obj0 = 0 ;
14898 PyObject * obj1 = 0 ;
14899 PyObject * obj2 = 0 ;
14900 char * kwnames[] = {
14901 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
14902 };
14903
14904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14906 if (!SWIG_IsOK(res1)) {
14907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
14908 }
14909 arg1 = reinterpret_cast< wxDC * >(argp1);
14910 {
14911 arg2 = &temp2;
14912 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14913 }
14914 {
14915 arg3 = &temp3;
14916 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14917 }
14918 {
14919 PyThreadState* __tstate = wxPyBeginAllowThreads();
14920 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
14921 wxPyEndAllowThreads(__tstate);
14922 if (PyErr_Occurred()) SWIG_fail;
14923 }
14924 resultobj = SWIG_Py_Void();
14925 return resultobj;
14926 fail:
14927 return NULL;
14928 }
14929
14930
14931 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14932 PyObject *resultobj = 0;
14933 wxDC *arg1 = (wxDC *) 0 ;
14934 int arg2 ;
14935 int arg3 ;
14936 void *argp1 = 0 ;
14937 int res1 = 0 ;
14938 int val2 ;
14939 int ecode2 = 0 ;
14940 int val3 ;
14941 int ecode3 = 0 ;
14942 PyObject * obj0 = 0 ;
14943 PyObject * obj1 = 0 ;
14944 PyObject * obj2 = 0 ;
14945 char * kwnames[] = {
14946 (char *) "self",(char *) "x",(char *) "y", NULL
14947 };
14948
14949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14951 if (!SWIG_IsOK(res1)) {
14952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
14953 }
14954 arg1 = reinterpret_cast< wxDC * >(argp1);
14955 ecode2 = SWIG_AsVal_int(obj1, &val2);
14956 if (!SWIG_IsOK(ecode2)) {
14957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
14958 }
14959 arg2 = static_cast< int >(val2);
14960 ecode3 = SWIG_AsVal_int(obj2, &val3);
14961 if (!SWIG_IsOK(ecode3)) {
14962 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
14963 }
14964 arg3 = static_cast< int >(val3);
14965 {
14966 PyThreadState* __tstate = wxPyBeginAllowThreads();
14967 (arg1)->CrossHair(arg2,arg3);
14968 wxPyEndAllowThreads(__tstate);
14969 if (PyErr_Occurred()) SWIG_fail;
14970 }
14971 resultobj = SWIG_Py_Void();
14972 return resultobj;
14973 fail:
14974 return NULL;
14975 }
14976
14977
14978 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14979 PyObject *resultobj = 0;
14980 wxDC *arg1 = (wxDC *) 0 ;
14981 wxPoint *arg2 = 0 ;
14982 void *argp1 = 0 ;
14983 int res1 = 0 ;
14984 wxPoint temp2 ;
14985 PyObject * obj0 = 0 ;
14986 PyObject * obj1 = 0 ;
14987 char * kwnames[] = {
14988 (char *) "self",(char *) "pt", NULL
14989 };
14990
14991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14993 if (!SWIG_IsOK(res1)) {
14994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14995 }
14996 arg1 = reinterpret_cast< wxDC * >(argp1);
14997 {
14998 arg2 = &temp2;
14999 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15000 }
15001 {
15002 PyThreadState* __tstate = wxPyBeginAllowThreads();
15003 (arg1)->CrossHair((wxPoint const &)*arg2);
15004 wxPyEndAllowThreads(__tstate);
15005 if (PyErr_Occurred()) SWIG_fail;
15006 }
15007 resultobj = SWIG_Py_Void();
15008 return resultobj;
15009 fail:
15010 return NULL;
15011 }
15012
15013
15014 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15015 PyObject *resultobj = 0;
15016 wxDC *arg1 = (wxDC *) 0 ;
15017 int arg2 ;
15018 int arg3 ;
15019 int arg4 ;
15020 int arg5 ;
15021 int arg6 ;
15022 int arg7 ;
15023 void *argp1 = 0 ;
15024 int res1 = 0 ;
15025 int val2 ;
15026 int ecode2 = 0 ;
15027 int val3 ;
15028 int ecode3 = 0 ;
15029 int val4 ;
15030 int ecode4 = 0 ;
15031 int val5 ;
15032 int ecode5 = 0 ;
15033 int val6 ;
15034 int ecode6 = 0 ;
15035 int val7 ;
15036 int ecode7 = 0 ;
15037 PyObject * obj0 = 0 ;
15038 PyObject * obj1 = 0 ;
15039 PyObject * obj2 = 0 ;
15040 PyObject * obj3 = 0 ;
15041 PyObject * obj4 = 0 ;
15042 PyObject * obj5 = 0 ;
15043 PyObject * obj6 = 0 ;
15044 char * kwnames[] = {
15045 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
15046 };
15047
15048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15050 if (!SWIG_IsOK(res1)) {
15051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
15052 }
15053 arg1 = reinterpret_cast< wxDC * >(argp1);
15054 ecode2 = SWIG_AsVal_int(obj1, &val2);
15055 if (!SWIG_IsOK(ecode2)) {
15056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
15057 }
15058 arg2 = static_cast< int >(val2);
15059 ecode3 = SWIG_AsVal_int(obj2, &val3);
15060 if (!SWIG_IsOK(ecode3)) {
15061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
15062 }
15063 arg3 = static_cast< int >(val3);
15064 ecode4 = SWIG_AsVal_int(obj3, &val4);
15065 if (!SWIG_IsOK(ecode4)) {
15066 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
15067 }
15068 arg4 = static_cast< int >(val4);
15069 ecode5 = SWIG_AsVal_int(obj4, &val5);
15070 if (!SWIG_IsOK(ecode5)) {
15071 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
15072 }
15073 arg5 = static_cast< int >(val5);
15074 ecode6 = SWIG_AsVal_int(obj5, &val6);
15075 if (!SWIG_IsOK(ecode6)) {
15076 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
15077 }
15078 arg6 = static_cast< int >(val6);
15079 ecode7 = SWIG_AsVal_int(obj6, &val7);
15080 if (!SWIG_IsOK(ecode7)) {
15081 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
15082 }
15083 arg7 = static_cast< int >(val7);
15084 {
15085 PyThreadState* __tstate = wxPyBeginAllowThreads();
15086 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
15087 wxPyEndAllowThreads(__tstate);
15088 if (PyErr_Occurred()) SWIG_fail;
15089 }
15090 resultobj = SWIG_Py_Void();
15091 return resultobj;
15092 fail:
15093 return NULL;
15094 }
15095
15096
15097 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15098 PyObject *resultobj = 0;
15099 wxDC *arg1 = (wxDC *) 0 ;
15100 wxPoint *arg2 = 0 ;
15101 wxPoint *arg3 = 0 ;
15102 wxPoint *arg4 = 0 ;
15103 void *argp1 = 0 ;
15104 int res1 = 0 ;
15105 wxPoint temp2 ;
15106 wxPoint temp3 ;
15107 wxPoint temp4 ;
15108 PyObject * obj0 = 0 ;
15109 PyObject * obj1 = 0 ;
15110 PyObject * obj2 = 0 ;
15111 PyObject * obj3 = 0 ;
15112 char * kwnames[] = {
15113 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15114 };
15115
15116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15118 if (!SWIG_IsOK(res1)) {
15119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15120 }
15121 arg1 = reinterpret_cast< wxDC * >(argp1);
15122 {
15123 arg2 = &temp2;
15124 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15125 }
15126 {
15127 arg3 = &temp3;
15128 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15129 }
15130 {
15131 arg4 = &temp4;
15132 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15133 }
15134 {
15135 PyThreadState* __tstate = wxPyBeginAllowThreads();
15136 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
15137 wxPyEndAllowThreads(__tstate);
15138 if (PyErr_Occurred()) SWIG_fail;
15139 }
15140 resultobj = SWIG_Py_Void();
15141 return resultobj;
15142 fail:
15143 return NULL;
15144 }
15145
15146
15147 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15148 PyObject *resultobj = 0;
15149 wxDC *arg1 = (wxDC *) 0 ;
15150 int arg2 ;
15151 int arg3 ;
15152 int arg4 ;
15153 int arg5 ;
15154 void *argp1 = 0 ;
15155 int res1 = 0 ;
15156 int val2 ;
15157 int ecode2 = 0 ;
15158 int val3 ;
15159 int ecode3 = 0 ;
15160 int val4 ;
15161 int ecode4 = 0 ;
15162 int val5 ;
15163 int ecode5 = 0 ;
15164 PyObject * obj0 = 0 ;
15165 PyObject * obj1 = 0 ;
15166 PyObject * obj2 = 0 ;
15167 PyObject * obj3 = 0 ;
15168 PyObject * obj4 = 0 ;
15169 char * kwnames[] = {
15170 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15171 };
15172
15173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15175 if (!SWIG_IsOK(res1)) {
15176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15177 }
15178 arg1 = reinterpret_cast< wxDC * >(argp1);
15179 ecode2 = SWIG_AsVal_int(obj1, &val2);
15180 if (!SWIG_IsOK(ecode2)) {
15181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15182 }
15183 arg2 = static_cast< int >(val2);
15184 ecode3 = SWIG_AsVal_int(obj2, &val3);
15185 if (!SWIG_IsOK(ecode3)) {
15186 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15187 }
15188 arg3 = static_cast< int >(val3);
15189 ecode4 = SWIG_AsVal_int(obj3, &val4);
15190 if (!SWIG_IsOK(ecode4)) {
15191 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15192 }
15193 arg4 = static_cast< int >(val4);
15194 ecode5 = SWIG_AsVal_int(obj4, &val5);
15195 if (!SWIG_IsOK(ecode5)) {
15196 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15197 }
15198 arg5 = static_cast< int >(val5);
15199 {
15200 PyThreadState* __tstate = wxPyBeginAllowThreads();
15201 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
15202 wxPyEndAllowThreads(__tstate);
15203 if (PyErr_Occurred()) SWIG_fail;
15204 }
15205 resultobj = SWIG_Py_Void();
15206 return resultobj;
15207 fail:
15208 return NULL;
15209 }
15210
15211
15212 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15213 PyObject *resultobj = 0;
15214 wxDC *arg1 = (wxDC *) 0 ;
15215 wxRect *arg2 = 0 ;
15216 void *argp1 = 0 ;
15217 int res1 = 0 ;
15218 wxRect temp2 ;
15219 PyObject * obj0 = 0 ;
15220 PyObject * obj1 = 0 ;
15221 char * kwnames[] = {
15222 (char *) "self",(char *) "rect", NULL
15223 };
15224
15225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
15226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15227 if (!SWIG_IsOK(res1)) {
15228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15229 }
15230 arg1 = reinterpret_cast< wxDC * >(argp1);
15231 {
15232 arg2 = &temp2;
15233 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15234 }
15235 {
15236 PyThreadState* __tstate = wxPyBeginAllowThreads();
15237 (arg1)->DrawCheckMark((wxRect const &)*arg2);
15238 wxPyEndAllowThreads(__tstate);
15239 if (PyErr_Occurred()) SWIG_fail;
15240 }
15241 resultobj = SWIG_Py_Void();
15242 return resultobj;
15243 fail:
15244 return NULL;
15245 }
15246
15247
15248 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15249 PyObject *resultobj = 0;
15250 wxDC *arg1 = (wxDC *) 0 ;
15251 int arg2 ;
15252 int arg3 ;
15253 int arg4 ;
15254 int arg5 ;
15255 double arg6 ;
15256 double arg7 ;
15257 void *argp1 = 0 ;
15258 int res1 = 0 ;
15259 int val2 ;
15260 int ecode2 = 0 ;
15261 int val3 ;
15262 int ecode3 = 0 ;
15263 int val4 ;
15264 int ecode4 = 0 ;
15265 int val5 ;
15266 int ecode5 = 0 ;
15267 double val6 ;
15268 int ecode6 = 0 ;
15269 double val7 ;
15270 int ecode7 = 0 ;
15271 PyObject * obj0 = 0 ;
15272 PyObject * obj1 = 0 ;
15273 PyObject * obj2 = 0 ;
15274 PyObject * obj3 = 0 ;
15275 PyObject * obj4 = 0 ;
15276 PyObject * obj5 = 0 ;
15277 PyObject * obj6 = 0 ;
15278 char * kwnames[] = {
15279 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15280 };
15281
15282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15284 if (!SWIG_IsOK(res1)) {
15285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15286 }
15287 arg1 = reinterpret_cast< wxDC * >(argp1);
15288 ecode2 = SWIG_AsVal_int(obj1, &val2);
15289 if (!SWIG_IsOK(ecode2)) {
15290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15291 }
15292 arg2 = static_cast< int >(val2);
15293 ecode3 = SWIG_AsVal_int(obj2, &val3);
15294 if (!SWIG_IsOK(ecode3)) {
15295 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15296 }
15297 arg3 = static_cast< int >(val3);
15298 ecode4 = SWIG_AsVal_int(obj3, &val4);
15299 if (!SWIG_IsOK(ecode4)) {
15300 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15301 }
15302 arg4 = static_cast< int >(val4);
15303 ecode5 = SWIG_AsVal_int(obj4, &val5);
15304 if (!SWIG_IsOK(ecode5)) {
15305 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15306 }
15307 arg5 = static_cast< int >(val5);
15308 ecode6 = SWIG_AsVal_double(obj5, &val6);
15309 if (!SWIG_IsOK(ecode6)) {
15310 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15311 }
15312 arg6 = static_cast< double >(val6);
15313 ecode7 = SWIG_AsVal_double(obj6, &val7);
15314 if (!SWIG_IsOK(ecode7)) {
15315 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15316 }
15317 arg7 = static_cast< double >(val7);
15318 {
15319 PyThreadState* __tstate = wxPyBeginAllowThreads();
15320 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
15321 wxPyEndAllowThreads(__tstate);
15322 if (PyErr_Occurred()) SWIG_fail;
15323 }
15324 resultobj = SWIG_Py_Void();
15325 return resultobj;
15326 fail:
15327 return NULL;
15328 }
15329
15330
15331 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15332 PyObject *resultobj = 0;
15333 wxDC *arg1 = (wxDC *) 0 ;
15334 wxPoint *arg2 = 0 ;
15335 wxSize *arg3 = 0 ;
15336 double arg4 ;
15337 double arg5 ;
15338 void *argp1 = 0 ;
15339 int res1 = 0 ;
15340 wxPoint temp2 ;
15341 wxSize temp3 ;
15342 double val4 ;
15343 int ecode4 = 0 ;
15344 double val5 ;
15345 int ecode5 = 0 ;
15346 PyObject * obj0 = 0 ;
15347 PyObject * obj1 = 0 ;
15348 PyObject * obj2 = 0 ;
15349 PyObject * obj3 = 0 ;
15350 PyObject * obj4 = 0 ;
15351 char * kwnames[] = {
15352 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
15353 };
15354
15355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15357 if (!SWIG_IsOK(res1)) {
15358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15359 }
15360 arg1 = reinterpret_cast< wxDC * >(argp1);
15361 {
15362 arg2 = &temp2;
15363 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15364 }
15365 {
15366 arg3 = &temp3;
15367 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15368 }
15369 ecode4 = SWIG_AsVal_double(obj3, &val4);
15370 if (!SWIG_IsOK(ecode4)) {
15371 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
15372 }
15373 arg4 = static_cast< double >(val4);
15374 ecode5 = SWIG_AsVal_double(obj4, &val5);
15375 if (!SWIG_IsOK(ecode5)) {
15376 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
15377 }
15378 arg5 = static_cast< double >(val5);
15379 {
15380 PyThreadState* __tstate = wxPyBeginAllowThreads();
15381 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
15382 wxPyEndAllowThreads(__tstate);
15383 if (PyErr_Occurred()) SWIG_fail;
15384 }
15385 resultobj = SWIG_Py_Void();
15386 return resultobj;
15387 fail:
15388 return NULL;
15389 }
15390
15391
15392 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15393 PyObject *resultobj = 0;
15394 wxDC *arg1 = (wxDC *) 0 ;
15395 int arg2 ;
15396 int arg3 ;
15397 void *argp1 = 0 ;
15398 int res1 = 0 ;
15399 int val2 ;
15400 int ecode2 = 0 ;
15401 int val3 ;
15402 int ecode3 = 0 ;
15403 PyObject * obj0 = 0 ;
15404 PyObject * obj1 = 0 ;
15405 PyObject * obj2 = 0 ;
15406 char * kwnames[] = {
15407 (char *) "self",(char *) "x",(char *) "y", NULL
15408 };
15409
15410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15412 if (!SWIG_IsOK(res1)) {
15413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15414 }
15415 arg1 = reinterpret_cast< wxDC * >(argp1);
15416 ecode2 = SWIG_AsVal_int(obj1, &val2);
15417 if (!SWIG_IsOK(ecode2)) {
15418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
15419 }
15420 arg2 = static_cast< int >(val2);
15421 ecode3 = SWIG_AsVal_int(obj2, &val3);
15422 if (!SWIG_IsOK(ecode3)) {
15423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
15424 }
15425 arg3 = static_cast< int >(val3);
15426 {
15427 PyThreadState* __tstate = wxPyBeginAllowThreads();
15428 (arg1)->DrawPoint(arg2,arg3);
15429 wxPyEndAllowThreads(__tstate);
15430 if (PyErr_Occurred()) SWIG_fail;
15431 }
15432 resultobj = SWIG_Py_Void();
15433 return resultobj;
15434 fail:
15435 return NULL;
15436 }
15437
15438
15439 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15440 PyObject *resultobj = 0;
15441 wxDC *arg1 = (wxDC *) 0 ;
15442 wxPoint *arg2 = 0 ;
15443 void *argp1 = 0 ;
15444 int res1 = 0 ;
15445 wxPoint temp2 ;
15446 PyObject * obj0 = 0 ;
15447 PyObject * obj1 = 0 ;
15448 char * kwnames[] = {
15449 (char *) "self",(char *) "pt", NULL
15450 };
15451
15452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15454 if (!SWIG_IsOK(res1)) {
15455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15456 }
15457 arg1 = reinterpret_cast< wxDC * >(argp1);
15458 {
15459 arg2 = &temp2;
15460 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15461 }
15462 {
15463 PyThreadState* __tstate = wxPyBeginAllowThreads();
15464 (arg1)->DrawPoint((wxPoint const &)*arg2);
15465 wxPyEndAllowThreads(__tstate);
15466 if (PyErr_Occurred()) SWIG_fail;
15467 }
15468 resultobj = SWIG_Py_Void();
15469 return resultobj;
15470 fail:
15471 return NULL;
15472 }
15473
15474
15475 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15476 PyObject *resultobj = 0;
15477 wxDC *arg1 = (wxDC *) 0 ;
15478 int arg2 ;
15479 int arg3 ;
15480 int arg4 ;
15481 int arg5 ;
15482 void *argp1 = 0 ;
15483 int res1 = 0 ;
15484 int val2 ;
15485 int ecode2 = 0 ;
15486 int val3 ;
15487 int ecode3 = 0 ;
15488 int val4 ;
15489 int ecode4 = 0 ;
15490 int val5 ;
15491 int ecode5 = 0 ;
15492 PyObject * obj0 = 0 ;
15493 PyObject * obj1 = 0 ;
15494 PyObject * obj2 = 0 ;
15495 PyObject * obj3 = 0 ;
15496 PyObject * obj4 = 0 ;
15497 char * kwnames[] = {
15498 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15499 };
15500
15501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15503 if (!SWIG_IsOK(res1)) {
15504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15505 }
15506 arg1 = reinterpret_cast< wxDC * >(argp1);
15507 ecode2 = SWIG_AsVal_int(obj1, &val2);
15508 if (!SWIG_IsOK(ecode2)) {
15509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
15510 }
15511 arg2 = static_cast< int >(val2);
15512 ecode3 = SWIG_AsVal_int(obj2, &val3);
15513 if (!SWIG_IsOK(ecode3)) {
15514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
15515 }
15516 arg3 = static_cast< int >(val3);
15517 ecode4 = SWIG_AsVal_int(obj3, &val4);
15518 if (!SWIG_IsOK(ecode4)) {
15519 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
15520 }
15521 arg4 = static_cast< int >(val4);
15522 ecode5 = SWIG_AsVal_int(obj4, &val5);
15523 if (!SWIG_IsOK(ecode5)) {
15524 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
15525 }
15526 arg5 = static_cast< int >(val5);
15527 {
15528 PyThreadState* __tstate = wxPyBeginAllowThreads();
15529 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
15530 wxPyEndAllowThreads(__tstate);
15531 if (PyErr_Occurred()) SWIG_fail;
15532 }
15533 resultobj = SWIG_Py_Void();
15534 return resultobj;
15535 fail:
15536 return NULL;
15537 }
15538
15539
15540 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15541 PyObject *resultobj = 0;
15542 wxDC *arg1 = (wxDC *) 0 ;
15543 wxRect *arg2 = 0 ;
15544 void *argp1 = 0 ;
15545 int res1 = 0 ;
15546 wxRect temp2 ;
15547 PyObject * obj0 = 0 ;
15548 PyObject * obj1 = 0 ;
15549 char * kwnames[] = {
15550 (char *) "self",(char *) "rect", NULL
15551 };
15552
15553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
15554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15555 if (!SWIG_IsOK(res1)) {
15556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15557 }
15558 arg1 = reinterpret_cast< wxDC * >(argp1);
15559 {
15560 arg2 = &temp2;
15561 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15562 }
15563 {
15564 PyThreadState* __tstate = wxPyBeginAllowThreads();
15565 (arg1)->DrawRectangle((wxRect const &)*arg2);
15566 wxPyEndAllowThreads(__tstate);
15567 if (PyErr_Occurred()) SWIG_fail;
15568 }
15569 resultobj = SWIG_Py_Void();
15570 return resultobj;
15571 fail:
15572 return NULL;
15573 }
15574
15575
15576 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15577 PyObject *resultobj = 0;
15578 wxDC *arg1 = (wxDC *) 0 ;
15579 wxPoint *arg2 = 0 ;
15580 wxSize *arg3 = 0 ;
15581 void *argp1 = 0 ;
15582 int res1 = 0 ;
15583 wxPoint temp2 ;
15584 wxSize temp3 ;
15585 PyObject * obj0 = 0 ;
15586 PyObject * obj1 = 0 ;
15587 PyObject * obj2 = 0 ;
15588 char * kwnames[] = {
15589 (char *) "self",(char *) "pt",(char *) "sz", NULL
15590 };
15591
15592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15594 if (!SWIG_IsOK(res1)) {
15595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15596 }
15597 arg1 = reinterpret_cast< wxDC * >(argp1);
15598 {
15599 arg2 = &temp2;
15600 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15601 }
15602 {
15603 arg3 = &temp3;
15604 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15605 }
15606 {
15607 PyThreadState* __tstate = wxPyBeginAllowThreads();
15608 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
15609 wxPyEndAllowThreads(__tstate);
15610 if (PyErr_Occurred()) SWIG_fail;
15611 }
15612 resultobj = SWIG_Py_Void();
15613 return resultobj;
15614 fail:
15615 return NULL;
15616 }
15617
15618
15619 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15620 PyObject *resultobj = 0;
15621 wxDC *arg1 = (wxDC *) 0 ;
15622 int arg2 ;
15623 int arg3 ;
15624 int arg4 ;
15625 int arg5 ;
15626 double arg6 ;
15627 void *argp1 = 0 ;
15628 int res1 = 0 ;
15629 int val2 ;
15630 int ecode2 = 0 ;
15631 int val3 ;
15632 int ecode3 = 0 ;
15633 int val4 ;
15634 int ecode4 = 0 ;
15635 int val5 ;
15636 int ecode5 = 0 ;
15637 double val6 ;
15638 int ecode6 = 0 ;
15639 PyObject * obj0 = 0 ;
15640 PyObject * obj1 = 0 ;
15641 PyObject * obj2 = 0 ;
15642 PyObject * obj3 = 0 ;
15643 PyObject * obj4 = 0 ;
15644 PyObject * obj5 = 0 ;
15645 char * kwnames[] = {
15646 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
15647 };
15648
15649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15651 if (!SWIG_IsOK(res1)) {
15652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15653 }
15654 arg1 = reinterpret_cast< wxDC * >(argp1);
15655 ecode2 = SWIG_AsVal_int(obj1, &val2);
15656 if (!SWIG_IsOK(ecode2)) {
15657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
15658 }
15659 arg2 = static_cast< int >(val2);
15660 ecode3 = SWIG_AsVal_int(obj2, &val3);
15661 if (!SWIG_IsOK(ecode3)) {
15662 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
15663 }
15664 arg3 = static_cast< int >(val3);
15665 ecode4 = SWIG_AsVal_int(obj3, &val4);
15666 if (!SWIG_IsOK(ecode4)) {
15667 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
15668 }
15669 arg4 = static_cast< int >(val4);
15670 ecode5 = SWIG_AsVal_int(obj4, &val5);
15671 if (!SWIG_IsOK(ecode5)) {
15672 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
15673 }
15674 arg5 = static_cast< int >(val5);
15675 ecode6 = SWIG_AsVal_double(obj5, &val6);
15676 if (!SWIG_IsOK(ecode6)) {
15677 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
15678 }
15679 arg6 = static_cast< double >(val6);
15680 {
15681 PyThreadState* __tstate = wxPyBeginAllowThreads();
15682 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
15683 wxPyEndAllowThreads(__tstate);
15684 if (PyErr_Occurred()) SWIG_fail;
15685 }
15686 resultobj = SWIG_Py_Void();
15687 return resultobj;
15688 fail:
15689 return NULL;
15690 }
15691
15692
15693 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15694 PyObject *resultobj = 0;
15695 wxDC *arg1 = (wxDC *) 0 ;
15696 wxRect *arg2 = 0 ;
15697 double arg3 ;
15698 void *argp1 = 0 ;
15699 int res1 = 0 ;
15700 wxRect temp2 ;
15701 double val3 ;
15702 int ecode3 = 0 ;
15703 PyObject * obj0 = 0 ;
15704 PyObject * obj1 = 0 ;
15705 PyObject * obj2 = 0 ;
15706 char * kwnames[] = {
15707 (char *) "self",(char *) "r",(char *) "radius", NULL
15708 };
15709
15710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15712 if (!SWIG_IsOK(res1)) {
15713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15714 }
15715 arg1 = reinterpret_cast< wxDC * >(argp1);
15716 {
15717 arg2 = &temp2;
15718 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15719 }
15720 ecode3 = SWIG_AsVal_double(obj2, &val3);
15721 if (!SWIG_IsOK(ecode3)) {
15722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
15723 }
15724 arg3 = static_cast< double >(val3);
15725 {
15726 PyThreadState* __tstate = wxPyBeginAllowThreads();
15727 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
15728 wxPyEndAllowThreads(__tstate);
15729 if (PyErr_Occurred()) SWIG_fail;
15730 }
15731 resultobj = SWIG_Py_Void();
15732 return resultobj;
15733 fail:
15734 return NULL;
15735 }
15736
15737
15738 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15739 PyObject *resultobj = 0;
15740 wxDC *arg1 = (wxDC *) 0 ;
15741 wxPoint *arg2 = 0 ;
15742 wxSize *arg3 = 0 ;
15743 double arg4 ;
15744 void *argp1 = 0 ;
15745 int res1 = 0 ;
15746 wxPoint temp2 ;
15747 wxSize temp3 ;
15748 double val4 ;
15749 int ecode4 = 0 ;
15750 PyObject * obj0 = 0 ;
15751 PyObject * obj1 = 0 ;
15752 PyObject * obj2 = 0 ;
15753 PyObject * obj3 = 0 ;
15754 char * kwnames[] = {
15755 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
15756 };
15757
15758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15760 if (!SWIG_IsOK(res1)) {
15761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15762 }
15763 arg1 = reinterpret_cast< wxDC * >(argp1);
15764 {
15765 arg2 = &temp2;
15766 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15767 }
15768 {
15769 arg3 = &temp3;
15770 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15771 }
15772 ecode4 = SWIG_AsVal_double(obj3, &val4);
15773 if (!SWIG_IsOK(ecode4)) {
15774 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
15775 }
15776 arg4 = static_cast< double >(val4);
15777 {
15778 PyThreadState* __tstate = wxPyBeginAllowThreads();
15779 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
15780 wxPyEndAllowThreads(__tstate);
15781 if (PyErr_Occurred()) SWIG_fail;
15782 }
15783 resultobj = SWIG_Py_Void();
15784 return resultobj;
15785 fail:
15786 return NULL;
15787 }
15788
15789
15790 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15791 PyObject *resultobj = 0;
15792 wxDC *arg1 = (wxDC *) 0 ;
15793 int arg2 ;
15794 int arg3 ;
15795 int arg4 ;
15796 void *argp1 = 0 ;
15797 int res1 = 0 ;
15798 int val2 ;
15799 int ecode2 = 0 ;
15800 int val3 ;
15801 int ecode3 = 0 ;
15802 int val4 ;
15803 int ecode4 = 0 ;
15804 PyObject * obj0 = 0 ;
15805 PyObject * obj1 = 0 ;
15806 PyObject * obj2 = 0 ;
15807 PyObject * obj3 = 0 ;
15808 char * kwnames[] = {
15809 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
15810 };
15811
15812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15814 if (!SWIG_IsOK(res1)) {
15815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
15816 }
15817 arg1 = reinterpret_cast< wxDC * >(argp1);
15818 ecode2 = SWIG_AsVal_int(obj1, &val2);
15819 if (!SWIG_IsOK(ecode2)) {
15820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
15821 }
15822 arg2 = static_cast< int >(val2);
15823 ecode3 = SWIG_AsVal_int(obj2, &val3);
15824 if (!SWIG_IsOK(ecode3)) {
15825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
15826 }
15827 arg3 = static_cast< int >(val3);
15828 ecode4 = SWIG_AsVal_int(obj3, &val4);
15829 if (!SWIG_IsOK(ecode4)) {
15830 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
15831 }
15832 arg4 = static_cast< int >(val4);
15833 {
15834 PyThreadState* __tstate = wxPyBeginAllowThreads();
15835 (arg1)->DrawCircle(arg2,arg3,arg4);
15836 wxPyEndAllowThreads(__tstate);
15837 if (PyErr_Occurred()) SWIG_fail;
15838 }
15839 resultobj = SWIG_Py_Void();
15840 return resultobj;
15841 fail:
15842 return NULL;
15843 }
15844
15845
15846 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15847 PyObject *resultobj = 0;
15848 wxDC *arg1 = (wxDC *) 0 ;
15849 wxPoint *arg2 = 0 ;
15850 int arg3 ;
15851 void *argp1 = 0 ;
15852 int res1 = 0 ;
15853 wxPoint temp2 ;
15854 int val3 ;
15855 int ecode3 = 0 ;
15856 PyObject * obj0 = 0 ;
15857 PyObject * obj1 = 0 ;
15858 PyObject * obj2 = 0 ;
15859 char * kwnames[] = {
15860 (char *) "self",(char *) "pt",(char *) "radius", NULL
15861 };
15862
15863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15865 if (!SWIG_IsOK(res1)) {
15866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15867 }
15868 arg1 = reinterpret_cast< wxDC * >(argp1);
15869 {
15870 arg2 = &temp2;
15871 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15872 }
15873 ecode3 = SWIG_AsVal_int(obj2, &val3);
15874 if (!SWIG_IsOK(ecode3)) {
15875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
15876 }
15877 arg3 = static_cast< int >(val3);
15878 {
15879 PyThreadState* __tstate = wxPyBeginAllowThreads();
15880 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
15881 wxPyEndAllowThreads(__tstate);
15882 if (PyErr_Occurred()) SWIG_fail;
15883 }
15884 resultobj = SWIG_Py_Void();
15885 return resultobj;
15886 fail:
15887 return NULL;
15888 }
15889
15890
15891 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15892 PyObject *resultobj = 0;
15893 wxDC *arg1 = (wxDC *) 0 ;
15894 int arg2 ;
15895 int arg3 ;
15896 int arg4 ;
15897 int arg5 ;
15898 void *argp1 = 0 ;
15899 int res1 = 0 ;
15900 int val2 ;
15901 int ecode2 = 0 ;
15902 int val3 ;
15903 int ecode3 = 0 ;
15904 int val4 ;
15905 int ecode4 = 0 ;
15906 int val5 ;
15907 int ecode5 = 0 ;
15908 PyObject * obj0 = 0 ;
15909 PyObject * obj1 = 0 ;
15910 PyObject * obj2 = 0 ;
15911 PyObject * obj3 = 0 ;
15912 PyObject * obj4 = 0 ;
15913 char * kwnames[] = {
15914 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15915 };
15916
15917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15919 if (!SWIG_IsOK(res1)) {
15920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
15921 }
15922 arg1 = reinterpret_cast< wxDC * >(argp1);
15923 ecode2 = SWIG_AsVal_int(obj1, &val2);
15924 if (!SWIG_IsOK(ecode2)) {
15925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
15926 }
15927 arg2 = static_cast< int >(val2);
15928 ecode3 = SWIG_AsVal_int(obj2, &val3);
15929 if (!SWIG_IsOK(ecode3)) {
15930 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
15931 }
15932 arg3 = static_cast< int >(val3);
15933 ecode4 = SWIG_AsVal_int(obj3, &val4);
15934 if (!SWIG_IsOK(ecode4)) {
15935 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
15936 }
15937 arg4 = static_cast< int >(val4);
15938 ecode5 = SWIG_AsVal_int(obj4, &val5);
15939 if (!SWIG_IsOK(ecode5)) {
15940 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
15941 }
15942 arg5 = static_cast< int >(val5);
15943 {
15944 PyThreadState* __tstate = wxPyBeginAllowThreads();
15945 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
15946 wxPyEndAllowThreads(__tstate);
15947 if (PyErr_Occurred()) SWIG_fail;
15948 }
15949 resultobj = SWIG_Py_Void();
15950 return resultobj;
15951 fail:
15952 return NULL;
15953 }
15954
15955
15956 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15957 PyObject *resultobj = 0;
15958 wxDC *arg1 = (wxDC *) 0 ;
15959 wxRect *arg2 = 0 ;
15960 void *argp1 = 0 ;
15961 int res1 = 0 ;
15962 wxRect temp2 ;
15963 PyObject * obj0 = 0 ;
15964 PyObject * obj1 = 0 ;
15965 char * kwnames[] = {
15966 (char *) "self",(char *) "rect", NULL
15967 };
15968
15969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
15970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15971 if (!SWIG_IsOK(res1)) {
15972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
15973 }
15974 arg1 = reinterpret_cast< wxDC * >(argp1);
15975 {
15976 arg2 = &temp2;
15977 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15978 }
15979 {
15980 PyThreadState* __tstate = wxPyBeginAllowThreads();
15981 (arg1)->DrawEllipse((wxRect const &)*arg2);
15982 wxPyEndAllowThreads(__tstate);
15983 if (PyErr_Occurred()) SWIG_fail;
15984 }
15985 resultobj = SWIG_Py_Void();
15986 return resultobj;
15987 fail:
15988 return NULL;
15989 }
15990
15991
15992 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15993 PyObject *resultobj = 0;
15994 wxDC *arg1 = (wxDC *) 0 ;
15995 wxPoint *arg2 = 0 ;
15996 wxSize *arg3 = 0 ;
15997 void *argp1 = 0 ;
15998 int res1 = 0 ;
15999 wxPoint temp2 ;
16000 wxSize temp3 ;
16001 PyObject * obj0 = 0 ;
16002 PyObject * obj1 = 0 ;
16003 PyObject * obj2 = 0 ;
16004 char * kwnames[] = {
16005 (char *) "self",(char *) "pt",(char *) "sz", NULL
16006 };
16007
16008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16010 if (!SWIG_IsOK(res1)) {
16011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16012 }
16013 arg1 = reinterpret_cast< wxDC * >(argp1);
16014 {
16015 arg2 = &temp2;
16016 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16017 }
16018 {
16019 arg3 = &temp3;
16020 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16021 }
16022 {
16023 PyThreadState* __tstate = wxPyBeginAllowThreads();
16024 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
16025 wxPyEndAllowThreads(__tstate);
16026 if (PyErr_Occurred()) SWIG_fail;
16027 }
16028 resultobj = SWIG_Py_Void();
16029 return resultobj;
16030 fail:
16031 return NULL;
16032 }
16033
16034
16035 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16036 PyObject *resultobj = 0;
16037 wxDC *arg1 = (wxDC *) 0 ;
16038 wxIcon *arg2 = 0 ;
16039 int arg3 ;
16040 int arg4 ;
16041 void *argp1 = 0 ;
16042 int res1 = 0 ;
16043 void *argp2 = 0 ;
16044 int res2 = 0 ;
16045 int val3 ;
16046 int ecode3 = 0 ;
16047 int val4 ;
16048 int ecode4 = 0 ;
16049 PyObject * obj0 = 0 ;
16050 PyObject * obj1 = 0 ;
16051 PyObject * obj2 = 0 ;
16052 PyObject * obj3 = 0 ;
16053 char * kwnames[] = {
16054 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
16055 };
16056
16057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16059 if (!SWIG_IsOK(res1)) {
16060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
16061 }
16062 arg1 = reinterpret_cast< wxDC * >(argp1);
16063 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16064 if (!SWIG_IsOK(res2)) {
16065 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16066 }
16067 if (!argp2) {
16068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16069 }
16070 arg2 = reinterpret_cast< wxIcon * >(argp2);
16071 ecode3 = SWIG_AsVal_int(obj2, &val3);
16072 if (!SWIG_IsOK(ecode3)) {
16073 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
16074 }
16075 arg3 = static_cast< int >(val3);
16076 ecode4 = SWIG_AsVal_int(obj3, &val4);
16077 if (!SWIG_IsOK(ecode4)) {
16078 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
16079 }
16080 arg4 = static_cast< int >(val4);
16081 {
16082 PyThreadState* __tstate = wxPyBeginAllowThreads();
16083 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
16084 wxPyEndAllowThreads(__tstate);
16085 if (PyErr_Occurred()) SWIG_fail;
16086 }
16087 resultobj = SWIG_Py_Void();
16088 return resultobj;
16089 fail:
16090 return NULL;
16091 }
16092
16093
16094 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16095 PyObject *resultobj = 0;
16096 wxDC *arg1 = (wxDC *) 0 ;
16097 wxIcon *arg2 = 0 ;
16098 wxPoint *arg3 = 0 ;
16099 void *argp1 = 0 ;
16100 int res1 = 0 ;
16101 void *argp2 = 0 ;
16102 int res2 = 0 ;
16103 wxPoint temp3 ;
16104 PyObject * obj0 = 0 ;
16105 PyObject * obj1 = 0 ;
16106 PyObject * obj2 = 0 ;
16107 char * kwnames[] = {
16108 (char *) "self",(char *) "icon",(char *) "pt", NULL
16109 };
16110
16111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16113 if (!SWIG_IsOK(res1)) {
16114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16115 }
16116 arg1 = reinterpret_cast< wxDC * >(argp1);
16117 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16118 if (!SWIG_IsOK(res2)) {
16119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16120 }
16121 if (!argp2) {
16122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16123 }
16124 arg2 = reinterpret_cast< wxIcon * >(argp2);
16125 {
16126 arg3 = &temp3;
16127 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16128 }
16129 {
16130 PyThreadState* __tstate = wxPyBeginAllowThreads();
16131 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
16132 wxPyEndAllowThreads(__tstate);
16133 if (PyErr_Occurred()) SWIG_fail;
16134 }
16135 resultobj = SWIG_Py_Void();
16136 return resultobj;
16137 fail:
16138 return NULL;
16139 }
16140
16141
16142 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16143 PyObject *resultobj = 0;
16144 wxDC *arg1 = (wxDC *) 0 ;
16145 wxBitmap *arg2 = 0 ;
16146 int arg3 ;
16147 int arg4 ;
16148 bool arg5 = (bool) false ;
16149 void *argp1 = 0 ;
16150 int res1 = 0 ;
16151 void *argp2 = 0 ;
16152 int res2 = 0 ;
16153 int val3 ;
16154 int ecode3 = 0 ;
16155 int val4 ;
16156 int ecode4 = 0 ;
16157 bool val5 ;
16158 int ecode5 = 0 ;
16159 PyObject * obj0 = 0 ;
16160 PyObject * obj1 = 0 ;
16161 PyObject * obj2 = 0 ;
16162 PyObject * obj3 = 0 ;
16163 PyObject * obj4 = 0 ;
16164 char * kwnames[] = {
16165 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16166 };
16167
16168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16170 if (!SWIG_IsOK(res1)) {
16171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16172 }
16173 arg1 = reinterpret_cast< wxDC * >(argp1);
16174 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16175 if (!SWIG_IsOK(res2)) {
16176 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16177 }
16178 if (!argp2) {
16179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16180 }
16181 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16182 ecode3 = SWIG_AsVal_int(obj2, &val3);
16183 if (!SWIG_IsOK(ecode3)) {
16184 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16185 }
16186 arg3 = static_cast< int >(val3);
16187 ecode4 = SWIG_AsVal_int(obj3, &val4);
16188 if (!SWIG_IsOK(ecode4)) {
16189 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16190 }
16191 arg4 = static_cast< int >(val4);
16192 if (obj4) {
16193 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16194 if (!SWIG_IsOK(ecode5)) {
16195 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16196 }
16197 arg5 = static_cast< bool >(val5);
16198 }
16199 {
16200 PyThreadState* __tstate = wxPyBeginAllowThreads();
16201 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
16202 wxPyEndAllowThreads(__tstate);
16203 if (PyErr_Occurred()) SWIG_fail;
16204 }
16205 resultobj = SWIG_Py_Void();
16206 return resultobj;
16207 fail:
16208 return NULL;
16209 }
16210
16211
16212 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16213 PyObject *resultobj = 0;
16214 wxDC *arg1 = (wxDC *) 0 ;
16215 wxBitmap *arg2 = 0 ;
16216 wxPoint *arg3 = 0 ;
16217 bool arg4 = (bool) false ;
16218 void *argp1 = 0 ;
16219 int res1 = 0 ;
16220 void *argp2 = 0 ;
16221 int res2 = 0 ;
16222 wxPoint temp3 ;
16223 bool val4 ;
16224 int ecode4 = 0 ;
16225 PyObject * obj0 = 0 ;
16226 PyObject * obj1 = 0 ;
16227 PyObject * obj2 = 0 ;
16228 PyObject * obj3 = 0 ;
16229 char * kwnames[] = {
16230 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16231 };
16232
16233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16235 if (!SWIG_IsOK(res1)) {
16236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16237 }
16238 arg1 = reinterpret_cast< wxDC * >(argp1);
16239 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16240 if (!SWIG_IsOK(res2)) {
16241 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16242 }
16243 if (!argp2) {
16244 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16245 }
16246 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16247 {
16248 arg3 = &temp3;
16249 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16250 }
16251 if (obj3) {
16252 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16253 if (!SWIG_IsOK(ecode4)) {
16254 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16255 }
16256 arg4 = static_cast< bool >(val4);
16257 }
16258 {
16259 PyThreadState* __tstate = wxPyBeginAllowThreads();
16260 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
16261 wxPyEndAllowThreads(__tstate);
16262 if (PyErr_Occurred()) SWIG_fail;
16263 }
16264 resultobj = SWIG_Py_Void();
16265 return resultobj;
16266 fail:
16267 return NULL;
16268 }
16269
16270
16271 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16272 PyObject *resultobj = 0;
16273 wxDC *arg1 = (wxDC *) 0 ;
16274 wxString *arg2 = 0 ;
16275 int arg3 ;
16276 int arg4 ;
16277 void *argp1 = 0 ;
16278 int res1 = 0 ;
16279 bool temp2 = false ;
16280 int val3 ;
16281 int ecode3 = 0 ;
16282 int val4 ;
16283 int ecode4 = 0 ;
16284 PyObject * obj0 = 0 ;
16285 PyObject * obj1 = 0 ;
16286 PyObject * obj2 = 0 ;
16287 PyObject * obj3 = 0 ;
16288 char * kwnames[] = {
16289 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16290 };
16291
16292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16294 if (!SWIG_IsOK(res1)) {
16295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16296 }
16297 arg1 = reinterpret_cast< wxDC * >(argp1);
16298 {
16299 arg2 = wxString_in_helper(obj1);
16300 if (arg2 == NULL) SWIG_fail;
16301 temp2 = true;
16302 }
16303 ecode3 = SWIG_AsVal_int(obj2, &val3);
16304 if (!SWIG_IsOK(ecode3)) {
16305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16306 }
16307 arg3 = static_cast< int >(val3);
16308 ecode4 = SWIG_AsVal_int(obj3, &val4);
16309 if (!SWIG_IsOK(ecode4)) {
16310 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16311 }
16312 arg4 = static_cast< int >(val4);
16313 {
16314 PyThreadState* __tstate = wxPyBeginAllowThreads();
16315 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
16316 wxPyEndAllowThreads(__tstate);
16317 if (PyErr_Occurred()) SWIG_fail;
16318 }
16319 resultobj = SWIG_Py_Void();
16320 {
16321 if (temp2)
16322 delete arg2;
16323 }
16324 return resultobj;
16325 fail:
16326 {
16327 if (temp2)
16328 delete arg2;
16329 }
16330 return NULL;
16331 }
16332
16333
16334 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16335 PyObject *resultobj = 0;
16336 wxDC *arg1 = (wxDC *) 0 ;
16337 wxString *arg2 = 0 ;
16338 wxPoint *arg3 = 0 ;
16339 void *argp1 = 0 ;
16340 int res1 = 0 ;
16341 bool temp2 = false ;
16342 wxPoint temp3 ;
16343 PyObject * obj0 = 0 ;
16344 PyObject * obj1 = 0 ;
16345 PyObject * obj2 = 0 ;
16346 char * kwnames[] = {
16347 (char *) "self",(char *) "text",(char *) "pt", NULL
16348 };
16349
16350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16352 if (!SWIG_IsOK(res1)) {
16353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16354 }
16355 arg1 = reinterpret_cast< wxDC * >(argp1);
16356 {
16357 arg2 = wxString_in_helper(obj1);
16358 if (arg2 == NULL) SWIG_fail;
16359 temp2 = true;
16360 }
16361 {
16362 arg3 = &temp3;
16363 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16364 }
16365 {
16366 PyThreadState* __tstate = wxPyBeginAllowThreads();
16367 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
16368 wxPyEndAllowThreads(__tstate);
16369 if (PyErr_Occurred()) SWIG_fail;
16370 }
16371 resultobj = SWIG_Py_Void();
16372 {
16373 if (temp2)
16374 delete arg2;
16375 }
16376 return resultobj;
16377 fail:
16378 {
16379 if (temp2)
16380 delete arg2;
16381 }
16382 return NULL;
16383 }
16384
16385
16386 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16387 PyObject *resultobj = 0;
16388 wxDC *arg1 = (wxDC *) 0 ;
16389 wxString *arg2 = 0 ;
16390 int arg3 ;
16391 int arg4 ;
16392 double arg5 ;
16393 void *argp1 = 0 ;
16394 int res1 = 0 ;
16395 bool temp2 = false ;
16396 int val3 ;
16397 int ecode3 = 0 ;
16398 int val4 ;
16399 int ecode4 = 0 ;
16400 double val5 ;
16401 int ecode5 = 0 ;
16402 PyObject * obj0 = 0 ;
16403 PyObject * obj1 = 0 ;
16404 PyObject * obj2 = 0 ;
16405 PyObject * obj3 = 0 ;
16406 PyObject * obj4 = 0 ;
16407 char * kwnames[] = {
16408 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
16409 };
16410
16411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16413 if (!SWIG_IsOK(res1)) {
16414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
16415 }
16416 arg1 = reinterpret_cast< wxDC * >(argp1);
16417 {
16418 arg2 = wxString_in_helper(obj1);
16419 if (arg2 == NULL) SWIG_fail;
16420 temp2 = true;
16421 }
16422 ecode3 = SWIG_AsVal_int(obj2, &val3);
16423 if (!SWIG_IsOK(ecode3)) {
16424 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
16425 }
16426 arg3 = static_cast< int >(val3);
16427 ecode4 = SWIG_AsVal_int(obj3, &val4);
16428 if (!SWIG_IsOK(ecode4)) {
16429 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
16430 }
16431 arg4 = static_cast< int >(val4);
16432 ecode5 = SWIG_AsVal_double(obj4, &val5);
16433 if (!SWIG_IsOK(ecode5)) {
16434 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
16435 }
16436 arg5 = static_cast< double >(val5);
16437 {
16438 PyThreadState* __tstate = wxPyBeginAllowThreads();
16439 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
16440 wxPyEndAllowThreads(__tstate);
16441 if (PyErr_Occurred()) SWIG_fail;
16442 }
16443 resultobj = SWIG_Py_Void();
16444 {
16445 if (temp2)
16446 delete arg2;
16447 }
16448 return resultobj;
16449 fail:
16450 {
16451 if (temp2)
16452 delete arg2;
16453 }
16454 return NULL;
16455 }
16456
16457
16458 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16459 PyObject *resultobj = 0;
16460 wxDC *arg1 = (wxDC *) 0 ;
16461 wxString *arg2 = 0 ;
16462 wxPoint *arg3 = 0 ;
16463 double arg4 ;
16464 void *argp1 = 0 ;
16465 int res1 = 0 ;
16466 bool temp2 = false ;
16467 wxPoint temp3 ;
16468 double val4 ;
16469 int ecode4 = 0 ;
16470 PyObject * obj0 = 0 ;
16471 PyObject * obj1 = 0 ;
16472 PyObject * obj2 = 0 ;
16473 PyObject * obj3 = 0 ;
16474 char * kwnames[] = {
16475 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
16476 };
16477
16478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16480 if (!SWIG_IsOK(res1)) {
16481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16482 }
16483 arg1 = reinterpret_cast< wxDC * >(argp1);
16484 {
16485 arg2 = wxString_in_helper(obj1);
16486 if (arg2 == NULL) SWIG_fail;
16487 temp2 = true;
16488 }
16489 {
16490 arg3 = &temp3;
16491 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16492 }
16493 ecode4 = SWIG_AsVal_double(obj3, &val4);
16494 if (!SWIG_IsOK(ecode4)) {
16495 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
16496 }
16497 arg4 = static_cast< double >(val4);
16498 {
16499 PyThreadState* __tstate = wxPyBeginAllowThreads();
16500 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
16501 wxPyEndAllowThreads(__tstate);
16502 if (PyErr_Occurred()) SWIG_fail;
16503 }
16504 resultobj = SWIG_Py_Void();
16505 {
16506 if (temp2)
16507 delete arg2;
16508 }
16509 return resultobj;
16510 fail:
16511 {
16512 if (temp2)
16513 delete arg2;
16514 }
16515 return NULL;
16516 }
16517
16518
16519 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16520 PyObject *resultobj = 0;
16521 wxDC *arg1 = (wxDC *) 0 ;
16522 int arg2 ;
16523 int arg3 ;
16524 int arg4 ;
16525 int arg5 ;
16526 wxDC *arg6 = (wxDC *) 0 ;
16527 int arg7 ;
16528 int arg8 ;
16529 int arg9 = (int) wxCOPY ;
16530 bool arg10 = (bool) false ;
16531 int arg11 = (int) -1 ;
16532 int arg12 = (int) -1 ;
16533 bool result;
16534 void *argp1 = 0 ;
16535 int res1 = 0 ;
16536 int val2 ;
16537 int ecode2 = 0 ;
16538 int val3 ;
16539 int ecode3 = 0 ;
16540 int val4 ;
16541 int ecode4 = 0 ;
16542 int val5 ;
16543 int ecode5 = 0 ;
16544 void *argp6 = 0 ;
16545 int res6 = 0 ;
16546 int val7 ;
16547 int ecode7 = 0 ;
16548 int val8 ;
16549 int ecode8 = 0 ;
16550 int val9 ;
16551 int ecode9 = 0 ;
16552 bool val10 ;
16553 int ecode10 = 0 ;
16554 int val11 ;
16555 int ecode11 = 0 ;
16556 int val12 ;
16557 int ecode12 = 0 ;
16558 PyObject * obj0 = 0 ;
16559 PyObject * obj1 = 0 ;
16560 PyObject * obj2 = 0 ;
16561 PyObject * obj3 = 0 ;
16562 PyObject * obj4 = 0 ;
16563 PyObject * obj5 = 0 ;
16564 PyObject * obj6 = 0 ;
16565 PyObject * obj7 = 0 ;
16566 PyObject * obj8 = 0 ;
16567 PyObject * obj9 = 0 ;
16568 PyObject * obj10 = 0 ;
16569 PyObject * obj11 = 0 ;
16570 char * kwnames[] = {
16571 (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
16572 };
16573
16574 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;
16575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16576 if (!SWIG_IsOK(res1)) {
16577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
16578 }
16579 arg1 = reinterpret_cast< wxDC * >(argp1);
16580 ecode2 = SWIG_AsVal_int(obj1, &val2);
16581 if (!SWIG_IsOK(ecode2)) {
16582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
16583 }
16584 arg2 = static_cast< int >(val2);
16585 ecode3 = SWIG_AsVal_int(obj2, &val3);
16586 if (!SWIG_IsOK(ecode3)) {
16587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
16588 }
16589 arg3 = static_cast< int >(val3);
16590 ecode4 = SWIG_AsVal_int(obj3, &val4);
16591 if (!SWIG_IsOK(ecode4)) {
16592 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
16593 }
16594 arg4 = static_cast< int >(val4);
16595 ecode5 = SWIG_AsVal_int(obj4, &val5);
16596 if (!SWIG_IsOK(ecode5)) {
16597 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
16598 }
16599 arg5 = static_cast< int >(val5);
16600 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
16601 if (!SWIG_IsOK(res6)) {
16602 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
16603 }
16604 arg6 = reinterpret_cast< wxDC * >(argp6);
16605 ecode7 = SWIG_AsVal_int(obj6, &val7);
16606 if (!SWIG_IsOK(ecode7)) {
16607 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
16608 }
16609 arg7 = static_cast< int >(val7);
16610 ecode8 = SWIG_AsVal_int(obj7, &val8);
16611 if (!SWIG_IsOK(ecode8)) {
16612 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
16613 }
16614 arg8 = static_cast< int >(val8);
16615 if (obj8) {
16616 ecode9 = SWIG_AsVal_int(obj8, &val9);
16617 if (!SWIG_IsOK(ecode9)) {
16618 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
16619 }
16620 arg9 = static_cast< int >(val9);
16621 }
16622 if (obj9) {
16623 ecode10 = SWIG_AsVal_bool(obj9, &val10);
16624 if (!SWIG_IsOK(ecode10)) {
16625 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
16626 }
16627 arg10 = static_cast< bool >(val10);
16628 }
16629 if (obj10) {
16630 ecode11 = SWIG_AsVal_int(obj10, &val11);
16631 if (!SWIG_IsOK(ecode11)) {
16632 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
16633 }
16634 arg11 = static_cast< int >(val11);
16635 }
16636 if (obj11) {
16637 ecode12 = SWIG_AsVal_int(obj11, &val12);
16638 if (!SWIG_IsOK(ecode12)) {
16639 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
16640 }
16641 arg12 = static_cast< int >(val12);
16642 }
16643 {
16644 PyThreadState* __tstate = wxPyBeginAllowThreads();
16645 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
16646 wxPyEndAllowThreads(__tstate);
16647 if (PyErr_Occurred()) SWIG_fail;
16648 }
16649 {
16650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16651 }
16652 return resultobj;
16653 fail:
16654 return NULL;
16655 }
16656
16657
16658 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16659 PyObject *resultobj = 0;
16660 wxDC *arg1 = (wxDC *) 0 ;
16661 wxPoint *arg2 = 0 ;
16662 wxSize *arg3 = 0 ;
16663 wxDC *arg4 = (wxDC *) 0 ;
16664 wxPoint *arg5 = 0 ;
16665 int arg6 = (int) wxCOPY ;
16666 bool arg7 = (bool) false ;
16667 wxPoint const &arg8_defvalue = wxDefaultPosition ;
16668 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
16669 bool result;
16670 void *argp1 = 0 ;
16671 int res1 = 0 ;
16672 wxPoint temp2 ;
16673 wxSize temp3 ;
16674 void *argp4 = 0 ;
16675 int res4 = 0 ;
16676 wxPoint temp5 ;
16677 int val6 ;
16678 int ecode6 = 0 ;
16679 bool val7 ;
16680 int ecode7 = 0 ;
16681 wxPoint temp8 ;
16682 PyObject * obj0 = 0 ;
16683 PyObject * obj1 = 0 ;
16684 PyObject * obj2 = 0 ;
16685 PyObject * obj3 = 0 ;
16686 PyObject * obj4 = 0 ;
16687 PyObject * obj5 = 0 ;
16688 PyObject * obj6 = 0 ;
16689 PyObject * obj7 = 0 ;
16690 char * kwnames[] = {
16691 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
16692 };
16693
16694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16696 if (!SWIG_IsOK(res1)) {
16697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16698 }
16699 arg1 = reinterpret_cast< wxDC * >(argp1);
16700 {
16701 arg2 = &temp2;
16702 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16703 }
16704 {
16705 arg3 = &temp3;
16706 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16707 }
16708 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
16709 if (!SWIG_IsOK(res4)) {
16710 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
16711 }
16712 arg4 = reinterpret_cast< wxDC * >(argp4);
16713 {
16714 arg5 = &temp5;
16715 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16716 }
16717 if (obj5) {
16718 ecode6 = SWIG_AsVal_int(obj5, &val6);
16719 if (!SWIG_IsOK(ecode6)) {
16720 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
16721 }
16722 arg6 = static_cast< int >(val6);
16723 }
16724 if (obj6) {
16725 ecode7 = SWIG_AsVal_bool(obj6, &val7);
16726 if (!SWIG_IsOK(ecode7)) {
16727 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
16728 }
16729 arg7 = static_cast< bool >(val7);
16730 }
16731 if (obj7) {
16732 {
16733 arg8 = &temp8;
16734 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
16735 }
16736 }
16737 {
16738 PyThreadState* __tstate = wxPyBeginAllowThreads();
16739 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
16740 wxPyEndAllowThreads(__tstate);
16741 if (PyErr_Occurred()) SWIG_fail;
16742 }
16743 {
16744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16745 }
16746 return resultobj;
16747 fail:
16748 return NULL;
16749 }
16750
16751
16752 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16753 PyObject *resultobj = 0;
16754 wxDC *arg1 = (wxDC *) 0 ;
16755 int arg2 ;
16756 int arg3 ;
16757 int arg4 ;
16758 int arg5 ;
16759 void *argp1 = 0 ;
16760 int res1 = 0 ;
16761 int val2 ;
16762 int ecode2 = 0 ;
16763 int val3 ;
16764 int ecode3 = 0 ;
16765 int val4 ;
16766 int ecode4 = 0 ;
16767 int val5 ;
16768 int ecode5 = 0 ;
16769 PyObject * obj0 = 0 ;
16770 PyObject * obj1 = 0 ;
16771 PyObject * obj2 = 0 ;
16772 PyObject * obj3 = 0 ;
16773 PyObject * obj4 = 0 ;
16774 char * kwnames[] = {
16775 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16776 };
16777
16778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16780 if (!SWIG_IsOK(res1)) {
16781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16782 }
16783 arg1 = reinterpret_cast< wxDC * >(argp1);
16784 ecode2 = SWIG_AsVal_int(obj1, &val2);
16785 if (!SWIG_IsOK(ecode2)) {
16786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
16787 }
16788 arg2 = static_cast< int >(val2);
16789 ecode3 = SWIG_AsVal_int(obj2, &val3);
16790 if (!SWIG_IsOK(ecode3)) {
16791 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
16792 }
16793 arg3 = static_cast< int >(val3);
16794 ecode4 = SWIG_AsVal_int(obj3, &val4);
16795 if (!SWIG_IsOK(ecode4)) {
16796 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
16797 }
16798 arg4 = static_cast< int >(val4);
16799 ecode5 = SWIG_AsVal_int(obj4, &val5);
16800 if (!SWIG_IsOK(ecode5)) {
16801 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
16802 }
16803 arg5 = static_cast< int >(val5);
16804 {
16805 PyThreadState* __tstate = wxPyBeginAllowThreads();
16806 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
16807 wxPyEndAllowThreads(__tstate);
16808 if (PyErr_Occurred()) SWIG_fail;
16809 }
16810 resultobj = SWIG_Py_Void();
16811 return resultobj;
16812 fail:
16813 return NULL;
16814 }
16815
16816
16817 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16818 PyObject *resultobj = 0;
16819 wxDC *arg1 = (wxDC *) 0 ;
16820 wxPoint *arg2 = 0 ;
16821 wxSize *arg3 = 0 ;
16822 void *argp1 = 0 ;
16823 int res1 = 0 ;
16824 wxPoint temp2 ;
16825 wxSize temp3 ;
16826 PyObject * obj0 = 0 ;
16827 PyObject * obj1 = 0 ;
16828 PyObject * obj2 = 0 ;
16829 char * kwnames[] = {
16830 (char *) "self",(char *) "pt",(char *) "sz", NULL
16831 };
16832
16833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16835 if (!SWIG_IsOK(res1)) {
16836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16837 }
16838 arg1 = reinterpret_cast< wxDC * >(argp1);
16839 {
16840 arg2 = &temp2;
16841 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16842 }
16843 {
16844 arg3 = &temp3;
16845 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16846 }
16847 {
16848 PyThreadState* __tstate = wxPyBeginAllowThreads();
16849 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
16850 wxPyEndAllowThreads(__tstate);
16851 if (PyErr_Occurred()) SWIG_fail;
16852 }
16853 resultobj = SWIG_Py_Void();
16854 return resultobj;
16855 fail:
16856 return NULL;
16857 }
16858
16859
16860 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16861 PyObject *resultobj = 0;
16862 wxDC *arg1 = (wxDC *) 0 ;
16863 wxRegion *arg2 = 0 ;
16864 void *argp1 = 0 ;
16865 int res1 = 0 ;
16866 void *argp2 = 0 ;
16867 int res2 = 0 ;
16868 PyObject * obj0 = 0 ;
16869 PyObject * obj1 = 0 ;
16870 char * kwnames[] = {
16871 (char *) "self",(char *) "region", NULL
16872 };
16873
16874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
16875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16876 if (!SWIG_IsOK(res1)) {
16877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16878 }
16879 arg1 = reinterpret_cast< wxDC * >(argp1);
16880 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
16881 if (!SWIG_IsOK(res2)) {
16882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16883 }
16884 if (!argp2) {
16885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16886 }
16887 arg2 = reinterpret_cast< wxRegion * >(argp2);
16888 {
16889 PyThreadState* __tstate = wxPyBeginAllowThreads();
16890 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
16891 wxPyEndAllowThreads(__tstate);
16892 if (PyErr_Occurred()) SWIG_fail;
16893 }
16894 resultobj = SWIG_Py_Void();
16895 return resultobj;
16896 fail:
16897 return NULL;
16898 }
16899
16900
16901 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16902 PyObject *resultobj = 0;
16903 wxDC *arg1 = (wxDC *) 0 ;
16904 wxRect *arg2 = 0 ;
16905 void *argp1 = 0 ;
16906 int res1 = 0 ;
16907 wxRect temp2 ;
16908 PyObject * obj0 = 0 ;
16909 PyObject * obj1 = 0 ;
16910 char * kwnames[] = {
16911 (char *) "self",(char *) "rect", NULL
16912 };
16913
16914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
16915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16916 if (!SWIG_IsOK(res1)) {
16917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
16918 }
16919 arg1 = reinterpret_cast< wxDC * >(argp1);
16920 {
16921 arg2 = &temp2;
16922 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16923 }
16924 {
16925 PyThreadState* __tstate = wxPyBeginAllowThreads();
16926 (arg1)->SetClippingRegion((wxRect const &)*arg2);
16927 wxPyEndAllowThreads(__tstate);
16928 if (PyErr_Occurred()) SWIG_fail;
16929 }
16930 resultobj = SWIG_Py_Void();
16931 return resultobj;
16932 fail:
16933 return NULL;
16934 }
16935
16936
16937 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16938 PyObject *resultobj = 0;
16939 wxDC *arg1 = (wxDC *) 0 ;
16940 int arg2 ;
16941 wxPoint *arg3 = (wxPoint *) 0 ;
16942 int arg4 = (int) 0 ;
16943 int arg5 = (int) 0 ;
16944 void *argp1 = 0 ;
16945 int res1 = 0 ;
16946 int val4 ;
16947 int ecode4 = 0 ;
16948 int val5 ;
16949 int ecode5 = 0 ;
16950 PyObject * obj0 = 0 ;
16951 PyObject * obj1 = 0 ;
16952 PyObject * obj2 = 0 ;
16953 PyObject * obj3 = 0 ;
16954 char * kwnames[] = {
16955 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
16956 };
16957
16958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16960 if (!SWIG_IsOK(res1)) {
16961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
16962 }
16963 arg1 = reinterpret_cast< wxDC * >(argp1);
16964 {
16965 arg3 = wxPoint_LIST_helper(obj1, &arg2);
16966 if (arg3 == NULL) SWIG_fail;
16967 }
16968 if (obj2) {
16969 ecode4 = SWIG_AsVal_int(obj2, &val4);
16970 if (!SWIG_IsOK(ecode4)) {
16971 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
16972 }
16973 arg4 = static_cast< int >(val4);
16974 }
16975 if (obj3) {
16976 ecode5 = SWIG_AsVal_int(obj3, &val5);
16977 if (!SWIG_IsOK(ecode5)) {
16978 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
16979 }
16980 arg5 = static_cast< int >(val5);
16981 }
16982 {
16983 PyThreadState* __tstate = wxPyBeginAllowThreads();
16984 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
16985 wxPyEndAllowThreads(__tstate);
16986 if (PyErr_Occurred()) SWIG_fail;
16987 }
16988 resultobj = SWIG_Py_Void();
16989 {
16990 if (arg3) delete [] arg3;
16991 }
16992 return resultobj;
16993 fail:
16994 {
16995 if (arg3) delete [] arg3;
16996 }
16997 return NULL;
16998 }
16999
17000
17001 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17002 PyObject *resultobj = 0;
17003 wxDC *arg1 = (wxDC *) 0 ;
17004 int arg2 ;
17005 wxPoint *arg3 = (wxPoint *) 0 ;
17006 int arg4 = (int) 0 ;
17007 int arg5 = (int) 0 ;
17008 int arg6 = (int) wxODDEVEN_RULE ;
17009 void *argp1 = 0 ;
17010 int res1 = 0 ;
17011 int val4 ;
17012 int ecode4 = 0 ;
17013 int val5 ;
17014 int ecode5 = 0 ;
17015 int val6 ;
17016 int ecode6 = 0 ;
17017 PyObject * obj0 = 0 ;
17018 PyObject * obj1 = 0 ;
17019 PyObject * obj2 = 0 ;
17020 PyObject * obj3 = 0 ;
17021 PyObject * obj4 = 0 ;
17022 char * kwnames[] = {
17023 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
17024 };
17025
17026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17028 if (!SWIG_IsOK(res1)) {
17029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
17030 }
17031 arg1 = reinterpret_cast< wxDC * >(argp1);
17032 {
17033 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17034 if (arg3 == NULL) SWIG_fail;
17035 }
17036 if (obj2) {
17037 ecode4 = SWIG_AsVal_int(obj2, &val4);
17038 if (!SWIG_IsOK(ecode4)) {
17039 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
17040 }
17041 arg4 = static_cast< int >(val4);
17042 }
17043 if (obj3) {
17044 ecode5 = SWIG_AsVal_int(obj3, &val5);
17045 if (!SWIG_IsOK(ecode5)) {
17046 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
17047 }
17048 arg5 = static_cast< int >(val5);
17049 }
17050 if (obj4) {
17051 ecode6 = SWIG_AsVal_int(obj4, &val6);
17052 if (!SWIG_IsOK(ecode6)) {
17053 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
17054 }
17055 arg6 = static_cast< int >(val6);
17056 }
17057 {
17058 PyThreadState* __tstate = wxPyBeginAllowThreads();
17059 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
17060 wxPyEndAllowThreads(__tstate);
17061 if (PyErr_Occurred()) SWIG_fail;
17062 }
17063 resultobj = SWIG_Py_Void();
17064 {
17065 if (arg3) delete [] arg3;
17066 }
17067 return resultobj;
17068 fail:
17069 {
17070 if (arg3) delete [] arg3;
17071 }
17072 return NULL;
17073 }
17074
17075
17076 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17077 PyObject *resultobj = 0;
17078 wxDC *arg1 = (wxDC *) 0 ;
17079 wxString *arg2 = 0 ;
17080 wxRect *arg3 = 0 ;
17081 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17082 int arg5 = (int) -1 ;
17083 void *argp1 = 0 ;
17084 int res1 = 0 ;
17085 bool temp2 = false ;
17086 wxRect temp3 ;
17087 int val4 ;
17088 int ecode4 = 0 ;
17089 int val5 ;
17090 int ecode5 = 0 ;
17091 PyObject * obj0 = 0 ;
17092 PyObject * obj1 = 0 ;
17093 PyObject * obj2 = 0 ;
17094 PyObject * obj3 = 0 ;
17095 PyObject * obj4 = 0 ;
17096 char * kwnames[] = {
17097 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17098 };
17099
17100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17102 if (!SWIG_IsOK(res1)) {
17103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17104 }
17105 arg1 = reinterpret_cast< wxDC * >(argp1);
17106 {
17107 arg2 = wxString_in_helper(obj1);
17108 if (arg2 == NULL) SWIG_fail;
17109 temp2 = true;
17110 }
17111 {
17112 arg3 = &temp3;
17113 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17114 }
17115 if (obj3) {
17116 ecode4 = SWIG_AsVal_int(obj3, &val4);
17117 if (!SWIG_IsOK(ecode4)) {
17118 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17119 }
17120 arg4 = static_cast< int >(val4);
17121 }
17122 if (obj4) {
17123 ecode5 = SWIG_AsVal_int(obj4, &val5);
17124 if (!SWIG_IsOK(ecode5)) {
17125 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17126 }
17127 arg5 = static_cast< int >(val5);
17128 }
17129 {
17130 PyThreadState* __tstate = wxPyBeginAllowThreads();
17131 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
17132 wxPyEndAllowThreads(__tstate);
17133 if (PyErr_Occurred()) SWIG_fail;
17134 }
17135 resultobj = SWIG_Py_Void();
17136 {
17137 if (temp2)
17138 delete arg2;
17139 }
17140 return resultobj;
17141 fail:
17142 {
17143 if (temp2)
17144 delete arg2;
17145 }
17146 return NULL;
17147 }
17148
17149
17150 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17151 PyObject *resultobj = 0;
17152 wxDC *arg1 = (wxDC *) 0 ;
17153 wxString *arg2 = 0 ;
17154 wxBitmap *arg3 = 0 ;
17155 wxRect *arg4 = 0 ;
17156 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17157 int arg6 = (int) -1 ;
17158 wxRect result;
17159 void *argp1 = 0 ;
17160 int res1 = 0 ;
17161 bool temp2 = false ;
17162 void *argp3 = 0 ;
17163 int res3 = 0 ;
17164 wxRect temp4 ;
17165 int val5 ;
17166 int ecode5 = 0 ;
17167 int val6 ;
17168 int ecode6 = 0 ;
17169 PyObject * obj0 = 0 ;
17170 PyObject * obj1 = 0 ;
17171 PyObject * obj2 = 0 ;
17172 PyObject * obj3 = 0 ;
17173 PyObject * obj4 = 0 ;
17174 PyObject * obj5 = 0 ;
17175 char * kwnames[] = {
17176 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17177 };
17178
17179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17181 if (!SWIG_IsOK(res1)) {
17182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17183 }
17184 arg1 = reinterpret_cast< wxDC * >(argp1);
17185 {
17186 arg2 = wxString_in_helper(obj1);
17187 if (arg2 == NULL) SWIG_fail;
17188 temp2 = true;
17189 }
17190 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
17191 if (!SWIG_IsOK(res3)) {
17192 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17193 }
17194 if (!argp3) {
17195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17196 }
17197 arg3 = reinterpret_cast< wxBitmap * >(argp3);
17198 {
17199 arg4 = &temp4;
17200 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
17201 }
17202 if (obj4) {
17203 ecode5 = SWIG_AsVal_int(obj4, &val5);
17204 if (!SWIG_IsOK(ecode5)) {
17205 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17206 }
17207 arg5 = static_cast< int >(val5);
17208 }
17209 if (obj5) {
17210 ecode6 = SWIG_AsVal_int(obj5, &val6);
17211 if (!SWIG_IsOK(ecode6)) {
17212 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17213 }
17214 arg6 = static_cast< int >(val6);
17215 }
17216 {
17217 PyThreadState* __tstate = wxPyBeginAllowThreads();
17218 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
17219 wxPyEndAllowThreads(__tstate);
17220 if (PyErr_Occurred()) SWIG_fail;
17221 }
17222 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17223 {
17224 if (temp2)
17225 delete arg2;
17226 }
17227 return resultobj;
17228 fail:
17229 {
17230 if (temp2)
17231 delete arg2;
17232 }
17233 return NULL;
17234 }
17235
17236
17237 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17238 PyObject *resultobj = 0;
17239 wxDC *arg1 = (wxDC *) 0 ;
17240 int arg2 ;
17241 wxPoint *arg3 = (wxPoint *) 0 ;
17242 void *argp1 = 0 ;
17243 int res1 = 0 ;
17244 PyObject * obj0 = 0 ;
17245 PyObject * obj1 = 0 ;
17246 char * kwnames[] = {
17247 (char *) "self",(char *) "points", NULL
17248 };
17249
17250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
17251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17252 if (!SWIG_IsOK(res1)) {
17253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17254 }
17255 arg1 = reinterpret_cast< wxDC * >(argp1);
17256 {
17257 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17258 if (arg3 == NULL) SWIG_fail;
17259 }
17260 {
17261 PyThreadState* __tstate = wxPyBeginAllowThreads();
17262 (arg1)->DrawSpline(arg2,arg3);
17263 wxPyEndAllowThreads(__tstate);
17264 if (PyErr_Occurred()) SWIG_fail;
17265 }
17266 resultobj = SWIG_Py_Void();
17267 {
17268 if (arg3) delete [] arg3;
17269 }
17270 return resultobj;
17271 fail:
17272 {
17273 if (arg3) delete [] arg3;
17274 }
17275 return NULL;
17276 }
17277
17278
17279 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17280 PyObject *resultobj = 0;
17281 wxDC *arg1 = (wxDC *) 0 ;
17282 void *argp1 = 0 ;
17283 int res1 = 0 ;
17284 PyObject *swig_obj[1] ;
17285
17286 if (!args) SWIG_fail;
17287 swig_obj[0] = args;
17288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17289 if (!SWIG_IsOK(res1)) {
17290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17291 }
17292 arg1 = reinterpret_cast< wxDC * >(argp1);
17293 {
17294 PyThreadState* __tstate = wxPyBeginAllowThreads();
17295 (arg1)->Clear();
17296 wxPyEndAllowThreads(__tstate);
17297 if (PyErr_Occurred()) SWIG_fail;
17298 }
17299 resultobj = SWIG_Py_Void();
17300 return resultobj;
17301 fail:
17302 return NULL;
17303 }
17304
17305
17306 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17307 PyObject *resultobj = 0;
17308 wxDC *arg1 = (wxDC *) 0 ;
17309 wxString *arg2 = 0 ;
17310 bool result;
17311 void *argp1 = 0 ;
17312 int res1 = 0 ;
17313 bool temp2 = false ;
17314 PyObject * obj0 = 0 ;
17315 PyObject * obj1 = 0 ;
17316 char * kwnames[] = {
17317 (char *) "self",(char *) "message", NULL
17318 };
17319
17320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
17321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17322 if (!SWIG_IsOK(res1)) {
17323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17324 }
17325 arg1 = reinterpret_cast< wxDC * >(argp1);
17326 {
17327 arg2 = wxString_in_helper(obj1);
17328 if (arg2 == NULL) SWIG_fail;
17329 temp2 = true;
17330 }
17331 {
17332 PyThreadState* __tstate = wxPyBeginAllowThreads();
17333 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
17334 wxPyEndAllowThreads(__tstate);
17335 if (PyErr_Occurred()) SWIG_fail;
17336 }
17337 {
17338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17339 }
17340 {
17341 if (temp2)
17342 delete arg2;
17343 }
17344 return resultobj;
17345 fail:
17346 {
17347 if (temp2)
17348 delete arg2;
17349 }
17350 return NULL;
17351 }
17352
17353
17354 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17355 PyObject *resultobj = 0;
17356 wxDC *arg1 = (wxDC *) 0 ;
17357 void *argp1 = 0 ;
17358 int res1 = 0 ;
17359 PyObject *swig_obj[1] ;
17360
17361 if (!args) SWIG_fail;
17362 swig_obj[0] = args;
17363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17364 if (!SWIG_IsOK(res1)) {
17365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17366 }
17367 arg1 = reinterpret_cast< wxDC * >(argp1);
17368 {
17369 PyThreadState* __tstate = wxPyBeginAllowThreads();
17370 (arg1)->EndDoc();
17371 wxPyEndAllowThreads(__tstate);
17372 if (PyErr_Occurred()) SWIG_fail;
17373 }
17374 resultobj = SWIG_Py_Void();
17375 return resultobj;
17376 fail:
17377 return NULL;
17378 }
17379
17380
17381 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17382 PyObject *resultobj = 0;
17383 wxDC *arg1 = (wxDC *) 0 ;
17384 void *argp1 = 0 ;
17385 int res1 = 0 ;
17386 PyObject *swig_obj[1] ;
17387
17388 if (!args) SWIG_fail;
17389 swig_obj[0] = args;
17390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17391 if (!SWIG_IsOK(res1)) {
17392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
17393 }
17394 arg1 = reinterpret_cast< wxDC * >(argp1);
17395 {
17396 PyThreadState* __tstate = wxPyBeginAllowThreads();
17397 (arg1)->StartPage();
17398 wxPyEndAllowThreads(__tstate);
17399 if (PyErr_Occurred()) SWIG_fail;
17400 }
17401 resultobj = SWIG_Py_Void();
17402 return resultobj;
17403 fail:
17404 return NULL;
17405 }
17406
17407
17408 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17409 PyObject *resultobj = 0;
17410 wxDC *arg1 = (wxDC *) 0 ;
17411 void *argp1 = 0 ;
17412 int res1 = 0 ;
17413 PyObject *swig_obj[1] ;
17414
17415 if (!args) SWIG_fail;
17416 swig_obj[0] = args;
17417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17418 if (!SWIG_IsOK(res1)) {
17419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
17420 }
17421 arg1 = reinterpret_cast< wxDC * >(argp1);
17422 {
17423 PyThreadState* __tstate = wxPyBeginAllowThreads();
17424 (arg1)->EndPage();
17425 wxPyEndAllowThreads(__tstate);
17426 if (PyErr_Occurred()) SWIG_fail;
17427 }
17428 resultobj = SWIG_Py_Void();
17429 return resultobj;
17430 fail:
17431 return NULL;
17432 }
17433
17434
17435 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17436 PyObject *resultobj = 0;
17437 wxDC *arg1 = (wxDC *) 0 ;
17438 wxFont *arg2 = 0 ;
17439 void *argp1 = 0 ;
17440 int res1 = 0 ;
17441 void *argp2 = 0 ;
17442 int res2 = 0 ;
17443 PyObject * obj0 = 0 ;
17444 PyObject * obj1 = 0 ;
17445 char * kwnames[] = {
17446 (char *) "self",(char *) "font", NULL
17447 };
17448
17449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
17450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17451 if (!SWIG_IsOK(res1)) {
17452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
17453 }
17454 arg1 = reinterpret_cast< wxDC * >(argp1);
17455 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
17456 if (!SWIG_IsOK(res2)) {
17457 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17458 }
17459 if (!argp2) {
17460 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17461 }
17462 arg2 = reinterpret_cast< wxFont * >(argp2);
17463 {
17464 PyThreadState* __tstate = wxPyBeginAllowThreads();
17465 (arg1)->SetFont((wxFont const &)*arg2);
17466 wxPyEndAllowThreads(__tstate);
17467 if (PyErr_Occurred()) SWIG_fail;
17468 }
17469 resultobj = SWIG_Py_Void();
17470 return resultobj;
17471 fail:
17472 return NULL;
17473 }
17474
17475
17476 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17477 PyObject *resultobj = 0;
17478 wxDC *arg1 = (wxDC *) 0 ;
17479 wxPen *arg2 = 0 ;
17480 void *argp1 = 0 ;
17481 int res1 = 0 ;
17482 void *argp2 = 0 ;
17483 int res2 = 0 ;
17484 PyObject * obj0 = 0 ;
17485 PyObject * obj1 = 0 ;
17486 char * kwnames[] = {
17487 (char *) "self",(char *) "pen", NULL
17488 };
17489
17490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
17491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17492 if (!SWIG_IsOK(res1)) {
17493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
17494 }
17495 arg1 = reinterpret_cast< wxDC * >(argp1);
17496 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
17497 if (!SWIG_IsOK(res2)) {
17498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17499 }
17500 if (!argp2) {
17501 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17502 }
17503 arg2 = reinterpret_cast< wxPen * >(argp2);
17504 {
17505 PyThreadState* __tstate = wxPyBeginAllowThreads();
17506 (arg1)->SetPen((wxPen const &)*arg2);
17507 wxPyEndAllowThreads(__tstate);
17508 if (PyErr_Occurred()) SWIG_fail;
17509 }
17510 resultobj = SWIG_Py_Void();
17511 return resultobj;
17512 fail:
17513 return NULL;
17514 }
17515
17516
17517 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17518 PyObject *resultobj = 0;
17519 wxDC *arg1 = (wxDC *) 0 ;
17520 wxBrush *arg2 = 0 ;
17521 void *argp1 = 0 ;
17522 int res1 = 0 ;
17523 void *argp2 = 0 ;
17524 int res2 = 0 ;
17525 PyObject * obj0 = 0 ;
17526 PyObject * obj1 = 0 ;
17527 char * kwnames[] = {
17528 (char *) "self",(char *) "brush", NULL
17529 };
17530
17531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
17532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17533 if (!SWIG_IsOK(res1)) {
17534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
17535 }
17536 arg1 = reinterpret_cast< wxDC * >(argp1);
17537 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17538 if (!SWIG_IsOK(res2)) {
17539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17540 }
17541 if (!argp2) {
17542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17543 }
17544 arg2 = reinterpret_cast< wxBrush * >(argp2);
17545 {
17546 PyThreadState* __tstate = wxPyBeginAllowThreads();
17547 (arg1)->SetBrush((wxBrush const &)*arg2);
17548 wxPyEndAllowThreads(__tstate);
17549 if (PyErr_Occurred()) SWIG_fail;
17550 }
17551 resultobj = SWIG_Py_Void();
17552 return resultobj;
17553 fail:
17554 return NULL;
17555 }
17556
17557
17558 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17559 PyObject *resultobj = 0;
17560 wxDC *arg1 = (wxDC *) 0 ;
17561 wxBrush *arg2 = 0 ;
17562 void *argp1 = 0 ;
17563 int res1 = 0 ;
17564 void *argp2 = 0 ;
17565 int res2 = 0 ;
17566 PyObject * obj0 = 0 ;
17567 PyObject * obj1 = 0 ;
17568 char * kwnames[] = {
17569 (char *) "self",(char *) "brush", NULL
17570 };
17571
17572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
17573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17574 if (!SWIG_IsOK(res1)) {
17575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
17576 }
17577 arg1 = reinterpret_cast< wxDC * >(argp1);
17578 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17579 if (!SWIG_IsOK(res2)) {
17580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17581 }
17582 if (!argp2) {
17583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17584 }
17585 arg2 = reinterpret_cast< wxBrush * >(argp2);
17586 {
17587 PyThreadState* __tstate = wxPyBeginAllowThreads();
17588 (arg1)->SetBackground((wxBrush const &)*arg2);
17589 wxPyEndAllowThreads(__tstate);
17590 if (PyErr_Occurred()) SWIG_fail;
17591 }
17592 resultobj = SWIG_Py_Void();
17593 return resultobj;
17594 fail:
17595 return NULL;
17596 }
17597
17598
17599 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17600 PyObject *resultobj = 0;
17601 wxDC *arg1 = (wxDC *) 0 ;
17602 int arg2 ;
17603 void *argp1 = 0 ;
17604 int res1 = 0 ;
17605 int val2 ;
17606 int ecode2 = 0 ;
17607 PyObject * obj0 = 0 ;
17608 PyObject * obj1 = 0 ;
17609 char * kwnames[] = {
17610 (char *) "self",(char *) "mode", NULL
17611 };
17612
17613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
17614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17615 if (!SWIG_IsOK(res1)) {
17616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
17617 }
17618 arg1 = reinterpret_cast< wxDC * >(argp1);
17619 ecode2 = SWIG_AsVal_int(obj1, &val2);
17620 if (!SWIG_IsOK(ecode2)) {
17621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
17622 }
17623 arg2 = static_cast< int >(val2);
17624 {
17625 PyThreadState* __tstate = wxPyBeginAllowThreads();
17626 (arg1)->SetBackgroundMode(arg2);
17627 wxPyEndAllowThreads(__tstate);
17628 if (PyErr_Occurred()) SWIG_fail;
17629 }
17630 resultobj = SWIG_Py_Void();
17631 return resultobj;
17632 fail:
17633 return NULL;
17634 }
17635
17636
17637 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17638 PyObject *resultobj = 0;
17639 wxDC *arg1 = (wxDC *) 0 ;
17640 wxPalette *arg2 = 0 ;
17641 void *argp1 = 0 ;
17642 int res1 = 0 ;
17643 void *argp2 = 0 ;
17644 int res2 = 0 ;
17645 PyObject * obj0 = 0 ;
17646 PyObject * obj1 = 0 ;
17647 char * kwnames[] = {
17648 (char *) "self",(char *) "palette", NULL
17649 };
17650
17651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
17652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17653 if (!SWIG_IsOK(res1)) {
17654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
17655 }
17656 arg1 = reinterpret_cast< wxDC * >(argp1);
17657 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
17658 if (!SWIG_IsOK(res2)) {
17659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17660 }
17661 if (!argp2) {
17662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17663 }
17664 arg2 = reinterpret_cast< wxPalette * >(argp2);
17665 {
17666 PyThreadState* __tstate = wxPyBeginAllowThreads();
17667 (arg1)->SetPalette((wxPalette const &)*arg2);
17668 wxPyEndAllowThreads(__tstate);
17669 if (PyErr_Occurred()) SWIG_fail;
17670 }
17671 resultobj = SWIG_Py_Void();
17672 return resultobj;
17673 fail:
17674 return NULL;
17675 }
17676
17677
17678 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17679 PyObject *resultobj = 0;
17680 wxDC *arg1 = (wxDC *) 0 ;
17681 void *argp1 = 0 ;
17682 int res1 = 0 ;
17683 PyObject *swig_obj[1] ;
17684
17685 if (!args) SWIG_fail;
17686 swig_obj[0] = args;
17687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17688 if (!SWIG_IsOK(res1)) {
17689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17690 }
17691 arg1 = reinterpret_cast< wxDC * >(argp1);
17692 {
17693 PyThreadState* __tstate = wxPyBeginAllowThreads();
17694 (arg1)->DestroyClippingRegion();
17695 wxPyEndAllowThreads(__tstate);
17696 if (PyErr_Occurred()) SWIG_fail;
17697 }
17698 resultobj = SWIG_Py_Void();
17699 return resultobj;
17700 fail:
17701 return NULL;
17702 }
17703
17704
17705 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17706 PyObject *resultobj = 0;
17707 wxDC *arg1 = (wxDC *) 0 ;
17708 int *arg2 = (int *) 0 ;
17709 int *arg3 = (int *) 0 ;
17710 int *arg4 = (int *) 0 ;
17711 int *arg5 = (int *) 0 ;
17712 void *argp1 = 0 ;
17713 int res1 = 0 ;
17714 int temp2 ;
17715 int res2 = SWIG_TMPOBJ ;
17716 int temp3 ;
17717 int res3 = SWIG_TMPOBJ ;
17718 int temp4 ;
17719 int res4 = SWIG_TMPOBJ ;
17720 int temp5 ;
17721 int res5 = SWIG_TMPOBJ ;
17722 PyObject *swig_obj[1] ;
17723
17724 arg2 = &temp2;
17725 arg3 = &temp3;
17726 arg4 = &temp4;
17727 arg5 = &temp5;
17728 if (!args) SWIG_fail;
17729 swig_obj[0] = args;
17730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17731 if (!SWIG_IsOK(res1)) {
17732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
17733 }
17734 arg1 = reinterpret_cast< wxDC * >(argp1);
17735 {
17736 PyThreadState* __tstate = wxPyBeginAllowThreads();
17737 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
17738 wxPyEndAllowThreads(__tstate);
17739 if (PyErr_Occurred()) SWIG_fail;
17740 }
17741 resultobj = SWIG_Py_Void();
17742 if (SWIG_IsTmpObj(res2)) {
17743 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
17744 } else {
17745 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17746 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
17747 }
17748 if (SWIG_IsTmpObj(res3)) {
17749 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17750 } else {
17751 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17752 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17753 }
17754 if (SWIG_IsTmpObj(res4)) {
17755 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17756 } else {
17757 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17758 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17759 }
17760 if (SWIG_IsTmpObj(res5)) {
17761 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17762 } else {
17763 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17764 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17765 }
17766 return resultobj;
17767 fail:
17768 return NULL;
17769 }
17770
17771
17772 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17773 PyObject *resultobj = 0;
17774 wxDC *arg1 = (wxDC *) 0 ;
17775 wxRect result;
17776 void *argp1 = 0 ;
17777 int res1 = 0 ;
17778 PyObject *swig_obj[1] ;
17779
17780 if (!args) SWIG_fail;
17781 swig_obj[0] = args;
17782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17783 if (!SWIG_IsOK(res1)) {
17784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17785 }
17786 arg1 = reinterpret_cast< wxDC * >(argp1);
17787 {
17788 PyThreadState* __tstate = wxPyBeginAllowThreads();
17789 result = wxDC_GetClippingRect(arg1);
17790 wxPyEndAllowThreads(__tstate);
17791 if (PyErr_Occurred()) SWIG_fail;
17792 }
17793 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17794 return resultobj;
17795 fail:
17796 return NULL;
17797 }
17798
17799
17800 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17801 PyObject *resultobj = 0;
17802 wxDC *arg1 = (wxDC *) 0 ;
17803 int result;
17804 void *argp1 = 0 ;
17805 int res1 = 0 ;
17806 PyObject *swig_obj[1] ;
17807
17808 if (!args) SWIG_fail;
17809 swig_obj[0] = args;
17810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17811 if (!SWIG_IsOK(res1)) {
17812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
17813 }
17814 arg1 = reinterpret_cast< wxDC * >(argp1);
17815 {
17816 PyThreadState* __tstate = wxPyBeginAllowThreads();
17817 result = (int)((wxDC const *)arg1)->GetCharHeight();
17818 wxPyEndAllowThreads(__tstate);
17819 if (PyErr_Occurred()) SWIG_fail;
17820 }
17821 resultobj = SWIG_From_int(static_cast< int >(result));
17822 return resultobj;
17823 fail:
17824 return NULL;
17825 }
17826
17827
17828 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17829 PyObject *resultobj = 0;
17830 wxDC *arg1 = (wxDC *) 0 ;
17831 int result;
17832 void *argp1 = 0 ;
17833 int res1 = 0 ;
17834 PyObject *swig_obj[1] ;
17835
17836 if (!args) SWIG_fail;
17837 swig_obj[0] = args;
17838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17839 if (!SWIG_IsOK(res1)) {
17840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
17841 }
17842 arg1 = reinterpret_cast< wxDC * >(argp1);
17843 {
17844 PyThreadState* __tstate = wxPyBeginAllowThreads();
17845 result = (int)((wxDC const *)arg1)->GetCharWidth();
17846 wxPyEndAllowThreads(__tstate);
17847 if (PyErr_Occurred()) SWIG_fail;
17848 }
17849 resultobj = SWIG_From_int(static_cast< int >(result));
17850 return resultobj;
17851 fail:
17852 return NULL;
17853 }
17854
17855
17856 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17857 PyObject *resultobj = 0;
17858 wxDC *arg1 = (wxDC *) 0 ;
17859 wxString *arg2 = 0 ;
17860 int *arg3 = (int *) 0 ;
17861 int *arg4 = (int *) 0 ;
17862 void *argp1 = 0 ;
17863 int res1 = 0 ;
17864 bool temp2 = false ;
17865 int temp3 ;
17866 int res3 = SWIG_TMPOBJ ;
17867 int temp4 ;
17868 int res4 = SWIG_TMPOBJ ;
17869 PyObject * obj0 = 0 ;
17870 PyObject * obj1 = 0 ;
17871 char * kwnames[] = {
17872 (char *) "self",(char *) "string", NULL
17873 };
17874
17875 arg3 = &temp3;
17876 arg4 = &temp4;
17877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
17878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17879 if (!SWIG_IsOK(res1)) {
17880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17881 }
17882 arg1 = reinterpret_cast< wxDC * >(argp1);
17883 {
17884 arg2 = wxString_in_helper(obj1);
17885 if (arg2 == NULL) SWIG_fail;
17886 temp2 = true;
17887 }
17888 {
17889 PyThreadState* __tstate = wxPyBeginAllowThreads();
17890 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
17891 wxPyEndAllowThreads(__tstate);
17892 if (PyErr_Occurred()) SWIG_fail;
17893 }
17894 resultobj = SWIG_Py_Void();
17895 if (SWIG_IsTmpObj(res3)) {
17896 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17897 } else {
17898 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17899 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17900 }
17901 if (SWIG_IsTmpObj(res4)) {
17902 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17903 } else {
17904 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17905 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17906 }
17907 {
17908 if (temp2)
17909 delete arg2;
17910 }
17911 return resultobj;
17912 fail:
17913 {
17914 if (temp2)
17915 delete arg2;
17916 }
17917 return NULL;
17918 }
17919
17920
17921 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17922 PyObject *resultobj = 0;
17923 wxDC *arg1 = (wxDC *) 0 ;
17924 wxString *arg2 = 0 ;
17925 int *arg3 = (int *) 0 ;
17926 int *arg4 = (int *) 0 ;
17927 int *arg5 = (int *) 0 ;
17928 int *arg6 = (int *) 0 ;
17929 wxFont *arg7 = (wxFont *) NULL ;
17930 void *argp1 = 0 ;
17931 int res1 = 0 ;
17932 bool temp2 = false ;
17933 int temp3 ;
17934 int res3 = SWIG_TMPOBJ ;
17935 int temp4 ;
17936 int res4 = SWIG_TMPOBJ ;
17937 int temp5 ;
17938 int res5 = SWIG_TMPOBJ ;
17939 int temp6 ;
17940 int res6 = SWIG_TMPOBJ ;
17941 void *argp7 = 0 ;
17942 int res7 = 0 ;
17943 PyObject * obj0 = 0 ;
17944 PyObject * obj1 = 0 ;
17945 PyObject * obj2 = 0 ;
17946 char * kwnames[] = {
17947 (char *) "self",(char *) "string",(char *) "font", NULL
17948 };
17949
17950 arg3 = &temp3;
17951 arg4 = &temp4;
17952 arg5 = &temp5;
17953 arg6 = &temp6;
17954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17956 if (!SWIG_IsOK(res1)) {
17957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17958 }
17959 arg1 = reinterpret_cast< wxDC * >(argp1);
17960 {
17961 arg2 = wxString_in_helper(obj1);
17962 if (arg2 == NULL) SWIG_fail;
17963 temp2 = true;
17964 }
17965 if (obj2) {
17966 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
17967 if (!SWIG_IsOK(res7)) {
17968 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
17969 }
17970 arg7 = reinterpret_cast< wxFont * >(argp7);
17971 }
17972 {
17973 PyThreadState* __tstate = wxPyBeginAllowThreads();
17974 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
17975 wxPyEndAllowThreads(__tstate);
17976 if (PyErr_Occurred()) SWIG_fail;
17977 }
17978 resultobj = SWIG_Py_Void();
17979 if (SWIG_IsTmpObj(res3)) {
17980 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17981 } else {
17982 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17983 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17984 }
17985 if (SWIG_IsTmpObj(res4)) {
17986 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17987 } else {
17988 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17989 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17990 }
17991 if (SWIG_IsTmpObj(res5)) {
17992 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17993 } else {
17994 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17995 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17996 }
17997 if (SWIG_IsTmpObj(res6)) {
17998 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
17999 } else {
18000 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18001 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
18002 }
18003 {
18004 if (temp2)
18005 delete arg2;
18006 }
18007 return resultobj;
18008 fail:
18009 {
18010 if (temp2)
18011 delete arg2;
18012 }
18013 return NULL;
18014 }
18015
18016
18017 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18018 PyObject *resultobj = 0;
18019 wxDC *arg1 = (wxDC *) 0 ;
18020 wxString *arg2 = 0 ;
18021 int *arg3 = (int *) 0 ;
18022 int *arg4 = (int *) 0 ;
18023 int *arg5 = (int *) 0 ;
18024 wxFont *arg6 = (wxFont *) NULL ;
18025 void *argp1 = 0 ;
18026 int res1 = 0 ;
18027 bool temp2 = false ;
18028 int temp3 ;
18029 int res3 = SWIG_TMPOBJ ;
18030 int temp4 ;
18031 int res4 = SWIG_TMPOBJ ;
18032 int temp5 ;
18033 int res5 = SWIG_TMPOBJ ;
18034 void *argp6 = 0 ;
18035 int res6 = 0 ;
18036 PyObject * obj0 = 0 ;
18037 PyObject * obj1 = 0 ;
18038 PyObject * obj2 = 0 ;
18039 char * kwnames[] = {
18040 (char *) "self",(char *) "text",(char *) "font", NULL
18041 };
18042
18043 arg3 = &temp3;
18044 arg4 = &temp4;
18045 arg5 = &temp5;
18046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18048 if (!SWIG_IsOK(res1)) {
18049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18050 }
18051 arg1 = reinterpret_cast< wxDC * >(argp1);
18052 {
18053 arg2 = wxString_in_helper(obj1);
18054 if (arg2 == NULL) SWIG_fail;
18055 temp2 = true;
18056 }
18057 if (obj2) {
18058 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
18059 if (!SWIG_IsOK(res6)) {
18060 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
18061 }
18062 arg6 = reinterpret_cast< wxFont * >(argp6);
18063 }
18064 {
18065 PyThreadState* __tstate = wxPyBeginAllowThreads();
18066 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
18067 wxPyEndAllowThreads(__tstate);
18068 if (PyErr_Occurred()) SWIG_fail;
18069 }
18070 resultobj = SWIG_Py_Void();
18071 if (SWIG_IsTmpObj(res3)) {
18072 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18073 } else {
18074 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18075 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18076 }
18077 if (SWIG_IsTmpObj(res4)) {
18078 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18079 } else {
18080 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18081 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18082 }
18083 if (SWIG_IsTmpObj(res5)) {
18084 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18085 } else {
18086 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18087 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18088 }
18089 {
18090 if (temp2)
18091 delete arg2;
18092 }
18093 return resultobj;
18094 fail:
18095 {
18096 if (temp2)
18097 delete arg2;
18098 }
18099 return NULL;
18100 }
18101
18102
18103 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18104 PyObject *resultobj = 0;
18105 wxDC *arg1 = (wxDC *) 0 ;
18106 wxString *arg2 = 0 ;
18107 wxArrayInt result;
18108 void *argp1 = 0 ;
18109 int res1 = 0 ;
18110 bool temp2 = false ;
18111 PyObject * obj0 = 0 ;
18112 PyObject * obj1 = 0 ;
18113 char * kwnames[] = {
18114 (char *) "self",(char *) "text", NULL
18115 };
18116
18117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
18118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18119 if (!SWIG_IsOK(res1)) {
18120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18121 }
18122 arg1 = reinterpret_cast< wxDC * >(argp1);
18123 {
18124 arg2 = wxString_in_helper(obj1);
18125 if (arg2 == NULL) SWIG_fail;
18126 temp2 = true;
18127 }
18128 {
18129 PyThreadState* __tstate = wxPyBeginAllowThreads();
18130 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
18131 wxPyEndAllowThreads(__tstate);
18132 if (PyErr_Occurred()) SWIG_fail;
18133 }
18134 {
18135 resultobj = PyList_New(0);
18136 size_t idx;
18137 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
18138 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
18139 PyList_Append(resultobj, val);
18140 Py_DECREF(val);
18141 }
18142 }
18143 {
18144 if (temp2)
18145 delete arg2;
18146 }
18147 return resultobj;
18148 fail:
18149 {
18150 if (temp2)
18151 delete arg2;
18152 }
18153 return NULL;
18154 }
18155
18156
18157 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18158 PyObject *resultobj = 0;
18159 wxDC *arg1 = (wxDC *) 0 ;
18160 wxSize result;
18161 void *argp1 = 0 ;
18162 int res1 = 0 ;
18163 PyObject *swig_obj[1] ;
18164
18165 if (!args) SWIG_fail;
18166 swig_obj[0] = args;
18167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18168 if (!SWIG_IsOK(res1)) {
18169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18170 }
18171 arg1 = reinterpret_cast< wxDC * >(argp1);
18172 {
18173 PyThreadState* __tstate = wxPyBeginAllowThreads();
18174 result = (arg1)->GetSize();
18175 wxPyEndAllowThreads(__tstate);
18176 if (PyErr_Occurred()) SWIG_fail;
18177 }
18178 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18179 return resultobj;
18180 fail:
18181 return NULL;
18182 }
18183
18184
18185 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18186 PyObject *resultobj = 0;
18187 wxDC *arg1 = (wxDC *) 0 ;
18188 int *arg2 = (int *) 0 ;
18189 int *arg3 = (int *) 0 ;
18190 void *argp1 = 0 ;
18191 int res1 = 0 ;
18192 int temp2 ;
18193 int res2 = SWIG_TMPOBJ ;
18194 int temp3 ;
18195 int res3 = SWIG_TMPOBJ ;
18196 PyObject *swig_obj[1] ;
18197
18198 arg2 = &temp2;
18199 arg3 = &temp3;
18200 if (!args) SWIG_fail;
18201 swig_obj[0] = args;
18202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18203 if (!SWIG_IsOK(res1)) {
18204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18205 }
18206 arg1 = reinterpret_cast< wxDC * >(argp1);
18207 {
18208 PyThreadState* __tstate = wxPyBeginAllowThreads();
18209 (arg1)->GetSize(arg2,arg3);
18210 wxPyEndAllowThreads(__tstate);
18211 if (PyErr_Occurred()) SWIG_fail;
18212 }
18213 resultobj = SWIG_Py_Void();
18214 if (SWIG_IsTmpObj(res2)) {
18215 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18216 } else {
18217 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18218 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18219 }
18220 if (SWIG_IsTmpObj(res3)) {
18221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18222 } else {
18223 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18225 }
18226 return resultobj;
18227 fail:
18228 return NULL;
18229 }
18230
18231
18232 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18233 PyObject *resultobj = 0;
18234 wxDC *arg1 = (wxDC *) 0 ;
18235 wxSize result;
18236 void *argp1 = 0 ;
18237 int res1 = 0 ;
18238 PyObject *swig_obj[1] ;
18239
18240 if (!args) SWIG_fail;
18241 swig_obj[0] = args;
18242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18243 if (!SWIG_IsOK(res1)) {
18244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18245 }
18246 arg1 = reinterpret_cast< wxDC * >(argp1);
18247 {
18248 PyThreadState* __tstate = wxPyBeginAllowThreads();
18249 result = ((wxDC const *)arg1)->GetSizeMM();
18250 wxPyEndAllowThreads(__tstate);
18251 if (PyErr_Occurred()) SWIG_fail;
18252 }
18253 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18254 return resultobj;
18255 fail:
18256 return NULL;
18257 }
18258
18259
18260 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18261 PyObject *resultobj = 0;
18262 wxDC *arg1 = (wxDC *) 0 ;
18263 int *arg2 = (int *) 0 ;
18264 int *arg3 = (int *) 0 ;
18265 void *argp1 = 0 ;
18266 int res1 = 0 ;
18267 int temp2 ;
18268 int res2 = SWIG_TMPOBJ ;
18269 int temp3 ;
18270 int res3 = SWIG_TMPOBJ ;
18271 PyObject *swig_obj[1] ;
18272
18273 arg2 = &temp2;
18274 arg3 = &temp3;
18275 if (!args) SWIG_fail;
18276 swig_obj[0] = args;
18277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18278 if (!SWIG_IsOK(res1)) {
18279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18280 }
18281 arg1 = reinterpret_cast< wxDC * >(argp1);
18282 {
18283 PyThreadState* __tstate = wxPyBeginAllowThreads();
18284 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
18285 wxPyEndAllowThreads(__tstate);
18286 if (PyErr_Occurred()) SWIG_fail;
18287 }
18288 resultobj = SWIG_Py_Void();
18289 if (SWIG_IsTmpObj(res2)) {
18290 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18291 } else {
18292 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18293 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18294 }
18295 if (SWIG_IsTmpObj(res3)) {
18296 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18297 } else {
18298 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18299 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18300 }
18301 return resultobj;
18302 fail:
18303 return NULL;
18304 }
18305
18306
18307 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18308 PyObject *resultobj = 0;
18309 wxDC *arg1 = (wxDC *) 0 ;
18310 int arg2 ;
18311 int result;
18312 void *argp1 = 0 ;
18313 int res1 = 0 ;
18314 int val2 ;
18315 int ecode2 = 0 ;
18316 PyObject * obj0 = 0 ;
18317 PyObject * obj1 = 0 ;
18318 char * kwnames[] = {
18319 (char *) "self",(char *) "x", NULL
18320 };
18321
18322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
18323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18324 if (!SWIG_IsOK(res1)) {
18325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
18326 }
18327 arg1 = reinterpret_cast< wxDC * >(argp1);
18328 ecode2 = SWIG_AsVal_int(obj1, &val2);
18329 if (!SWIG_IsOK(ecode2)) {
18330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
18331 }
18332 arg2 = static_cast< int >(val2);
18333 {
18334 PyThreadState* __tstate = wxPyBeginAllowThreads();
18335 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
18336 wxPyEndAllowThreads(__tstate);
18337 if (PyErr_Occurred()) SWIG_fail;
18338 }
18339 resultobj = SWIG_From_int(static_cast< int >(result));
18340 return resultobj;
18341 fail:
18342 return NULL;
18343 }
18344
18345
18346 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18347 PyObject *resultobj = 0;
18348 wxDC *arg1 = (wxDC *) 0 ;
18349 int arg2 ;
18350 int result;
18351 void *argp1 = 0 ;
18352 int res1 = 0 ;
18353 int val2 ;
18354 int ecode2 = 0 ;
18355 PyObject * obj0 = 0 ;
18356 PyObject * obj1 = 0 ;
18357 char * kwnames[] = {
18358 (char *) "self",(char *) "y", NULL
18359 };
18360
18361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
18362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18363 if (!SWIG_IsOK(res1)) {
18364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
18365 }
18366 arg1 = reinterpret_cast< wxDC * >(argp1);
18367 ecode2 = SWIG_AsVal_int(obj1, &val2);
18368 if (!SWIG_IsOK(ecode2)) {
18369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
18370 }
18371 arg2 = static_cast< int >(val2);
18372 {
18373 PyThreadState* __tstate = wxPyBeginAllowThreads();
18374 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
18375 wxPyEndAllowThreads(__tstate);
18376 if (PyErr_Occurred()) SWIG_fail;
18377 }
18378 resultobj = SWIG_From_int(static_cast< int >(result));
18379 return resultobj;
18380 fail:
18381 return NULL;
18382 }
18383
18384
18385 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18386 PyObject *resultobj = 0;
18387 wxDC *arg1 = (wxDC *) 0 ;
18388 int arg2 ;
18389 int result;
18390 void *argp1 = 0 ;
18391 int res1 = 0 ;
18392 int val2 ;
18393 int ecode2 = 0 ;
18394 PyObject * obj0 = 0 ;
18395 PyObject * obj1 = 0 ;
18396 char * kwnames[] = {
18397 (char *) "self",(char *) "x", NULL
18398 };
18399
18400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18402 if (!SWIG_IsOK(res1)) {
18403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18404 }
18405 arg1 = reinterpret_cast< wxDC * >(argp1);
18406 ecode2 = SWIG_AsVal_int(obj1, &val2);
18407 if (!SWIG_IsOK(ecode2)) {
18408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
18409 }
18410 arg2 = static_cast< int >(val2);
18411 {
18412 PyThreadState* __tstate = wxPyBeginAllowThreads();
18413 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
18414 wxPyEndAllowThreads(__tstate);
18415 if (PyErr_Occurred()) SWIG_fail;
18416 }
18417 resultobj = SWIG_From_int(static_cast< int >(result));
18418 return resultobj;
18419 fail:
18420 return NULL;
18421 }
18422
18423
18424 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18425 PyObject *resultobj = 0;
18426 wxDC *arg1 = (wxDC *) 0 ;
18427 int arg2 ;
18428 int result;
18429 void *argp1 = 0 ;
18430 int res1 = 0 ;
18431 int val2 ;
18432 int ecode2 = 0 ;
18433 PyObject * obj0 = 0 ;
18434 PyObject * obj1 = 0 ;
18435 char * kwnames[] = {
18436 (char *) "self",(char *) "y", NULL
18437 };
18438
18439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18441 if (!SWIG_IsOK(res1)) {
18442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18443 }
18444 arg1 = reinterpret_cast< wxDC * >(argp1);
18445 ecode2 = SWIG_AsVal_int(obj1, &val2);
18446 if (!SWIG_IsOK(ecode2)) {
18447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
18448 }
18449 arg2 = static_cast< int >(val2);
18450 {
18451 PyThreadState* __tstate = wxPyBeginAllowThreads();
18452 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
18453 wxPyEndAllowThreads(__tstate);
18454 if (PyErr_Occurred()) SWIG_fail;
18455 }
18456 resultobj = SWIG_From_int(static_cast< int >(result));
18457 return resultobj;
18458 fail:
18459 return NULL;
18460 }
18461
18462
18463 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18464 PyObject *resultobj = 0;
18465 wxDC *arg1 = (wxDC *) 0 ;
18466 int arg2 ;
18467 int result;
18468 void *argp1 = 0 ;
18469 int res1 = 0 ;
18470 int val2 ;
18471 int ecode2 = 0 ;
18472 PyObject * obj0 = 0 ;
18473 PyObject * obj1 = 0 ;
18474 char * kwnames[] = {
18475 (char *) "self",(char *) "x", NULL
18476 };
18477
18478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
18479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18480 if (!SWIG_IsOK(res1)) {
18481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
18482 }
18483 arg1 = reinterpret_cast< wxDC * >(argp1);
18484 ecode2 = SWIG_AsVal_int(obj1, &val2);
18485 if (!SWIG_IsOK(ecode2)) {
18486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
18487 }
18488 arg2 = static_cast< int >(val2);
18489 {
18490 PyThreadState* __tstate = wxPyBeginAllowThreads();
18491 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
18492 wxPyEndAllowThreads(__tstate);
18493 if (PyErr_Occurred()) SWIG_fail;
18494 }
18495 resultobj = SWIG_From_int(static_cast< int >(result));
18496 return resultobj;
18497 fail:
18498 return NULL;
18499 }
18500
18501
18502 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18503 PyObject *resultobj = 0;
18504 wxDC *arg1 = (wxDC *) 0 ;
18505 int arg2 ;
18506 int result;
18507 void *argp1 = 0 ;
18508 int res1 = 0 ;
18509 int val2 ;
18510 int ecode2 = 0 ;
18511 PyObject * obj0 = 0 ;
18512 PyObject * obj1 = 0 ;
18513 char * kwnames[] = {
18514 (char *) "self",(char *) "y", NULL
18515 };
18516
18517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
18518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18519 if (!SWIG_IsOK(res1)) {
18520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
18521 }
18522 arg1 = reinterpret_cast< wxDC * >(argp1);
18523 ecode2 = SWIG_AsVal_int(obj1, &val2);
18524 if (!SWIG_IsOK(ecode2)) {
18525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
18526 }
18527 arg2 = static_cast< int >(val2);
18528 {
18529 PyThreadState* __tstate = wxPyBeginAllowThreads();
18530 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
18531 wxPyEndAllowThreads(__tstate);
18532 if (PyErr_Occurred()) SWIG_fail;
18533 }
18534 resultobj = SWIG_From_int(static_cast< int >(result));
18535 return resultobj;
18536 fail:
18537 return NULL;
18538 }
18539
18540
18541 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18542 PyObject *resultobj = 0;
18543 wxDC *arg1 = (wxDC *) 0 ;
18544 int arg2 ;
18545 int result;
18546 void *argp1 = 0 ;
18547 int res1 = 0 ;
18548 int val2 ;
18549 int ecode2 = 0 ;
18550 PyObject * obj0 = 0 ;
18551 PyObject * obj1 = 0 ;
18552 char * kwnames[] = {
18553 (char *) "self",(char *) "x", NULL
18554 };
18555
18556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18558 if (!SWIG_IsOK(res1)) {
18559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18560 }
18561 arg1 = reinterpret_cast< wxDC * >(argp1);
18562 ecode2 = SWIG_AsVal_int(obj1, &val2);
18563 if (!SWIG_IsOK(ecode2)) {
18564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
18565 }
18566 arg2 = static_cast< int >(val2);
18567 {
18568 PyThreadState* __tstate = wxPyBeginAllowThreads();
18569 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
18570 wxPyEndAllowThreads(__tstate);
18571 if (PyErr_Occurred()) SWIG_fail;
18572 }
18573 resultobj = SWIG_From_int(static_cast< int >(result));
18574 return resultobj;
18575 fail:
18576 return NULL;
18577 }
18578
18579
18580 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18581 PyObject *resultobj = 0;
18582 wxDC *arg1 = (wxDC *) 0 ;
18583 int arg2 ;
18584 int result;
18585 void *argp1 = 0 ;
18586 int res1 = 0 ;
18587 int val2 ;
18588 int ecode2 = 0 ;
18589 PyObject * obj0 = 0 ;
18590 PyObject * obj1 = 0 ;
18591 char * kwnames[] = {
18592 (char *) "self",(char *) "y", NULL
18593 };
18594
18595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18597 if (!SWIG_IsOK(res1)) {
18598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18599 }
18600 arg1 = reinterpret_cast< wxDC * >(argp1);
18601 ecode2 = SWIG_AsVal_int(obj1, &val2);
18602 if (!SWIG_IsOK(ecode2)) {
18603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
18604 }
18605 arg2 = static_cast< int >(val2);
18606 {
18607 PyThreadState* __tstate = wxPyBeginAllowThreads();
18608 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
18609 wxPyEndAllowThreads(__tstate);
18610 if (PyErr_Occurred()) SWIG_fail;
18611 }
18612 resultobj = SWIG_From_int(static_cast< int >(result));
18613 return resultobj;
18614 fail:
18615 return NULL;
18616 }
18617
18618
18619 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18620 PyObject *resultobj = 0;
18621 wxDC *arg1 = (wxDC *) 0 ;
18622 bool result;
18623 void *argp1 = 0 ;
18624 int res1 = 0 ;
18625 PyObject *swig_obj[1] ;
18626
18627 if (!args) SWIG_fail;
18628 swig_obj[0] = args;
18629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18630 if (!SWIG_IsOK(res1)) {
18631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
18632 }
18633 arg1 = reinterpret_cast< wxDC * >(argp1);
18634 {
18635 PyThreadState* __tstate = wxPyBeginAllowThreads();
18636 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
18637 wxPyEndAllowThreads(__tstate);
18638 if (PyErr_Occurred()) SWIG_fail;
18639 }
18640 {
18641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18642 }
18643 return resultobj;
18644 fail:
18645 return NULL;
18646 }
18647
18648
18649 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18650 PyObject *resultobj = 0;
18651 wxDC *arg1 = (wxDC *) 0 ;
18652 bool result;
18653 void *argp1 = 0 ;
18654 int res1 = 0 ;
18655 PyObject *swig_obj[1] ;
18656
18657 if (!args) SWIG_fail;
18658 swig_obj[0] = args;
18659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18660 if (!SWIG_IsOK(res1)) {
18661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
18662 }
18663 arg1 = reinterpret_cast< wxDC * >(argp1);
18664 {
18665 PyThreadState* __tstate = wxPyBeginAllowThreads();
18666 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
18667 wxPyEndAllowThreads(__tstate);
18668 if (PyErr_Occurred()) SWIG_fail;
18669 }
18670 {
18671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18672 }
18673 return resultobj;
18674 fail:
18675 return NULL;
18676 }
18677
18678
18679 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18680 PyObject *resultobj = 0;
18681 wxDC *arg1 = (wxDC *) 0 ;
18682 int result;
18683 void *argp1 = 0 ;
18684 int res1 = 0 ;
18685 PyObject *swig_obj[1] ;
18686
18687 if (!args) SWIG_fail;
18688 swig_obj[0] = args;
18689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18690 if (!SWIG_IsOK(res1)) {
18691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
18692 }
18693 arg1 = reinterpret_cast< wxDC * >(argp1);
18694 {
18695 PyThreadState* __tstate = wxPyBeginAllowThreads();
18696 result = (int)((wxDC const *)arg1)->GetDepth();
18697 wxPyEndAllowThreads(__tstate);
18698 if (PyErr_Occurred()) SWIG_fail;
18699 }
18700 resultobj = SWIG_From_int(static_cast< int >(result));
18701 return resultobj;
18702 fail:
18703 return NULL;
18704 }
18705
18706
18707 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18708 PyObject *resultobj = 0;
18709 wxDC *arg1 = (wxDC *) 0 ;
18710 wxSize result;
18711 void *argp1 = 0 ;
18712 int res1 = 0 ;
18713 PyObject *swig_obj[1] ;
18714
18715 if (!args) SWIG_fail;
18716 swig_obj[0] = args;
18717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18718 if (!SWIG_IsOK(res1)) {
18719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
18720 }
18721 arg1 = reinterpret_cast< wxDC * >(argp1);
18722 {
18723 PyThreadState* __tstate = wxPyBeginAllowThreads();
18724 result = ((wxDC const *)arg1)->GetPPI();
18725 wxPyEndAllowThreads(__tstate);
18726 if (PyErr_Occurred()) SWIG_fail;
18727 }
18728 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18729 return resultobj;
18730 fail:
18731 return NULL;
18732 }
18733
18734
18735 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18736 PyObject *resultobj = 0;
18737 wxDC *arg1 = (wxDC *) 0 ;
18738 bool result;
18739 void *argp1 = 0 ;
18740 int res1 = 0 ;
18741 PyObject *swig_obj[1] ;
18742
18743 if (!args) SWIG_fail;
18744 swig_obj[0] = args;
18745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18746 if (!SWIG_IsOK(res1)) {
18747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
18748 }
18749 arg1 = reinterpret_cast< wxDC * >(argp1);
18750 {
18751 PyThreadState* __tstate = wxPyBeginAllowThreads();
18752 result = (bool)((wxDC const *)arg1)->Ok();
18753 wxPyEndAllowThreads(__tstate);
18754 if (PyErr_Occurred()) SWIG_fail;
18755 }
18756 {
18757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18758 }
18759 return resultobj;
18760 fail:
18761 return NULL;
18762 }
18763
18764
18765 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18766 PyObject *resultobj = 0;
18767 wxDC *arg1 = (wxDC *) 0 ;
18768 int result;
18769 void *argp1 = 0 ;
18770 int res1 = 0 ;
18771 PyObject *swig_obj[1] ;
18772
18773 if (!args) SWIG_fail;
18774 swig_obj[0] = args;
18775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18776 if (!SWIG_IsOK(res1)) {
18777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
18778 }
18779 arg1 = reinterpret_cast< wxDC * >(argp1);
18780 {
18781 PyThreadState* __tstate = wxPyBeginAllowThreads();
18782 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
18783 wxPyEndAllowThreads(__tstate);
18784 if (PyErr_Occurred()) SWIG_fail;
18785 }
18786 resultobj = SWIG_From_int(static_cast< int >(result));
18787 return resultobj;
18788 fail:
18789 return NULL;
18790 }
18791
18792
18793 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18794 PyObject *resultobj = 0;
18795 wxDC *arg1 = (wxDC *) 0 ;
18796 wxBrush *result = 0 ;
18797 void *argp1 = 0 ;
18798 int res1 = 0 ;
18799 PyObject *swig_obj[1] ;
18800
18801 if (!args) SWIG_fail;
18802 swig_obj[0] = args;
18803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18804 if (!SWIG_IsOK(res1)) {
18805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18806 }
18807 arg1 = reinterpret_cast< wxDC * >(argp1);
18808 {
18809 PyThreadState* __tstate = wxPyBeginAllowThreads();
18810 {
18811 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
18812 result = (wxBrush *) &_result_ref;
18813 }
18814 wxPyEndAllowThreads(__tstate);
18815 if (PyErr_Occurred()) SWIG_fail;
18816 }
18817 {
18818 wxBrush* resultptr = new wxBrush(*result);
18819 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18820 }
18821 return resultobj;
18822 fail:
18823 return NULL;
18824 }
18825
18826
18827 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18828 PyObject *resultobj = 0;
18829 wxDC *arg1 = (wxDC *) 0 ;
18830 wxBrush *result = 0 ;
18831 void *argp1 = 0 ;
18832 int res1 = 0 ;
18833 PyObject *swig_obj[1] ;
18834
18835 if (!args) SWIG_fail;
18836 swig_obj[0] = args;
18837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18838 if (!SWIG_IsOK(res1)) {
18839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
18840 }
18841 arg1 = reinterpret_cast< wxDC * >(argp1);
18842 {
18843 PyThreadState* __tstate = wxPyBeginAllowThreads();
18844 {
18845 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
18846 result = (wxBrush *) &_result_ref;
18847 }
18848 wxPyEndAllowThreads(__tstate);
18849 if (PyErr_Occurred()) SWIG_fail;
18850 }
18851 {
18852 wxBrush* resultptr = new wxBrush(*result);
18853 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18854 }
18855 return resultobj;
18856 fail:
18857 return NULL;
18858 }
18859
18860
18861 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18862 PyObject *resultobj = 0;
18863 wxDC *arg1 = (wxDC *) 0 ;
18864 wxFont *result = 0 ;
18865 void *argp1 = 0 ;
18866 int res1 = 0 ;
18867 PyObject *swig_obj[1] ;
18868
18869 if (!args) SWIG_fail;
18870 swig_obj[0] = args;
18871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18872 if (!SWIG_IsOK(res1)) {
18873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
18874 }
18875 arg1 = reinterpret_cast< wxDC * >(argp1);
18876 {
18877 PyThreadState* __tstate = wxPyBeginAllowThreads();
18878 {
18879 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
18880 result = (wxFont *) &_result_ref;
18881 }
18882 wxPyEndAllowThreads(__tstate);
18883 if (PyErr_Occurred()) SWIG_fail;
18884 }
18885 {
18886 wxFont* resultptr = new wxFont(*result);
18887 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
18888 }
18889 return resultobj;
18890 fail:
18891 return NULL;
18892 }
18893
18894
18895 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18896 PyObject *resultobj = 0;
18897 wxDC *arg1 = (wxDC *) 0 ;
18898 wxPen *result = 0 ;
18899 void *argp1 = 0 ;
18900 int res1 = 0 ;
18901 PyObject *swig_obj[1] ;
18902
18903 if (!args) SWIG_fail;
18904 swig_obj[0] = args;
18905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18906 if (!SWIG_IsOK(res1)) {
18907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
18908 }
18909 arg1 = reinterpret_cast< wxDC * >(argp1);
18910 {
18911 PyThreadState* __tstate = wxPyBeginAllowThreads();
18912 {
18913 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
18914 result = (wxPen *) &_result_ref;
18915 }
18916 wxPyEndAllowThreads(__tstate);
18917 if (PyErr_Occurred()) SWIG_fail;
18918 }
18919 {
18920 wxPen* resultptr = new wxPen(*result);
18921 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
18922 }
18923 return resultobj;
18924 fail:
18925 return NULL;
18926 }
18927
18928
18929 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18930 PyObject *resultobj = 0;
18931 wxDC *arg1 = (wxDC *) 0 ;
18932 wxColour *result = 0 ;
18933 void *argp1 = 0 ;
18934 int res1 = 0 ;
18935 PyObject *swig_obj[1] ;
18936
18937 if (!args) SWIG_fail;
18938 swig_obj[0] = args;
18939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18940 if (!SWIG_IsOK(res1)) {
18941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18942 }
18943 arg1 = reinterpret_cast< wxDC * >(argp1);
18944 {
18945 PyThreadState* __tstate = wxPyBeginAllowThreads();
18946 {
18947 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
18948 result = (wxColour *) &_result_ref;
18949 }
18950 wxPyEndAllowThreads(__tstate);
18951 if (PyErr_Occurred()) SWIG_fail;
18952 }
18953 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18954 return resultobj;
18955 fail:
18956 return NULL;
18957 }
18958
18959
18960 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18961 PyObject *resultobj = 0;
18962 wxDC *arg1 = (wxDC *) 0 ;
18963 wxColour *result = 0 ;
18964 void *argp1 = 0 ;
18965 int res1 = 0 ;
18966 PyObject *swig_obj[1] ;
18967
18968 if (!args) SWIG_fail;
18969 swig_obj[0] = args;
18970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18971 if (!SWIG_IsOK(res1)) {
18972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
18973 }
18974 arg1 = reinterpret_cast< wxDC * >(argp1);
18975 {
18976 PyThreadState* __tstate = wxPyBeginAllowThreads();
18977 {
18978 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
18979 result = (wxColour *) &_result_ref;
18980 }
18981 wxPyEndAllowThreads(__tstate);
18982 if (PyErr_Occurred()) SWIG_fail;
18983 }
18984 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18985 return resultobj;
18986 fail:
18987 return NULL;
18988 }
18989
18990
18991 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18992 PyObject *resultobj = 0;
18993 wxDC *arg1 = (wxDC *) 0 ;
18994 wxColour *arg2 = 0 ;
18995 void *argp1 = 0 ;
18996 int res1 = 0 ;
18997 wxColour temp2 ;
18998 PyObject * obj0 = 0 ;
18999 PyObject * obj1 = 0 ;
19000 char * kwnames[] = {
19001 (char *) "self",(char *) "colour", NULL
19002 };
19003
19004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
19005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19006 if (!SWIG_IsOK(res1)) {
19007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
19008 }
19009 arg1 = reinterpret_cast< wxDC * >(argp1);
19010 {
19011 arg2 = &temp2;
19012 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19013 }
19014 {
19015 PyThreadState* __tstate = wxPyBeginAllowThreads();
19016 (arg1)->SetTextForeground((wxColour const &)*arg2);
19017 wxPyEndAllowThreads(__tstate);
19018 if (PyErr_Occurred()) SWIG_fail;
19019 }
19020 resultobj = SWIG_Py_Void();
19021 return resultobj;
19022 fail:
19023 return NULL;
19024 }
19025
19026
19027 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19028 PyObject *resultobj = 0;
19029 wxDC *arg1 = (wxDC *) 0 ;
19030 wxColour *arg2 = 0 ;
19031 void *argp1 = 0 ;
19032 int res1 = 0 ;
19033 wxColour temp2 ;
19034 PyObject * obj0 = 0 ;
19035 PyObject * obj1 = 0 ;
19036 char * kwnames[] = {
19037 (char *) "self",(char *) "colour", NULL
19038 };
19039
19040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
19041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19042 if (!SWIG_IsOK(res1)) {
19043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
19044 }
19045 arg1 = reinterpret_cast< wxDC * >(argp1);
19046 {
19047 arg2 = &temp2;
19048 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19049 }
19050 {
19051 PyThreadState* __tstate = wxPyBeginAllowThreads();
19052 (arg1)->SetTextBackground((wxColour const &)*arg2);
19053 wxPyEndAllowThreads(__tstate);
19054 if (PyErr_Occurred()) SWIG_fail;
19055 }
19056 resultobj = SWIG_Py_Void();
19057 return resultobj;
19058 fail:
19059 return NULL;
19060 }
19061
19062
19063 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19064 PyObject *resultobj = 0;
19065 wxDC *arg1 = (wxDC *) 0 ;
19066 int result;
19067 void *argp1 = 0 ;
19068 int res1 = 0 ;
19069 PyObject *swig_obj[1] ;
19070
19071 if (!args) SWIG_fail;
19072 swig_obj[0] = args;
19073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19074 if (!SWIG_IsOK(res1)) {
19075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19076 }
19077 arg1 = reinterpret_cast< wxDC * >(argp1);
19078 {
19079 PyThreadState* __tstate = wxPyBeginAllowThreads();
19080 result = (int)((wxDC const *)arg1)->GetMapMode();
19081 wxPyEndAllowThreads(__tstate);
19082 if (PyErr_Occurred()) SWIG_fail;
19083 }
19084 resultobj = SWIG_From_int(static_cast< int >(result));
19085 return resultobj;
19086 fail:
19087 return NULL;
19088 }
19089
19090
19091 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19092 PyObject *resultobj = 0;
19093 wxDC *arg1 = (wxDC *) 0 ;
19094 int arg2 ;
19095 void *argp1 = 0 ;
19096 int res1 = 0 ;
19097 int val2 ;
19098 int ecode2 = 0 ;
19099 PyObject * obj0 = 0 ;
19100 PyObject * obj1 = 0 ;
19101 char * kwnames[] = {
19102 (char *) "self",(char *) "mode", NULL
19103 };
19104
19105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
19106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19107 if (!SWIG_IsOK(res1)) {
19108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19109 }
19110 arg1 = reinterpret_cast< wxDC * >(argp1);
19111 ecode2 = SWIG_AsVal_int(obj1, &val2);
19112 if (!SWIG_IsOK(ecode2)) {
19113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19114 }
19115 arg2 = static_cast< int >(val2);
19116 {
19117 PyThreadState* __tstate = wxPyBeginAllowThreads();
19118 (arg1)->SetMapMode(arg2);
19119 wxPyEndAllowThreads(__tstate);
19120 if (PyErr_Occurred()) SWIG_fail;
19121 }
19122 resultobj = SWIG_Py_Void();
19123 return resultobj;
19124 fail:
19125 return NULL;
19126 }
19127
19128
19129 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19130 PyObject *resultobj = 0;
19131 wxDC *arg1 = (wxDC *) 0 ;
19132 double *arg2 = (double *) 0 ;
19133 double *arg3 = (double *) 0 ;
19134 void *argp1 = 0 ;
19135 int res1 = 0 ;
19136 double temp2 ;
19137 int res2 = SWIG_TMPOBJ ;
19138 double temp3 ;
19139 int res3 = SWIG_TMPOBJ ;
19140 PyObject *swig_obj[1] ;
19141
19142 arg2 = &temp2;
19143 arg3 = &temp3;
19144 if (!args) SWIG_fail;
19145 swig_obj[0] = args;
19146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19147 if (!SWIG_IsOK(res1)) {
19148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19149 }
19150 arg1 = reinterpret_cast< wxDC * >(argp1);
19151 {
19152 PyThreadState* __tstate = wxPyBeginAllowThreads();
19153 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
19154 wxPyEndAllowThreads(__tstate);
19155 if (PyErr_Occurred()) SWIG_fail;
19156 }
19157 resultobj = SWIG_Py_Void();
19158 if (SWIG_IsTmpObj(res2)) {
19159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19160 } else {
19161 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19163 }
19164 if (SWIG_IsTmpObj(res3)) {
19165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19166 } else {
19167 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19169 }
19170 return resultobj;
19171 fail:
19172 return NULL;
19173 }
19174
19175
19176 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19177 PyObject *resultobj = 0;
19178 wxDC *arg1 = (wxDC *) 0 ;
19179 double arg2 ;
19180 double arg3 ;
19181 void *argp1 = 0 ;
19182 int res1 = 0 ;
19183 double val2 ;
19184 int ecode2 = 0 ;
19185 double val3 ;
19186 int ecode3 = 0 ;
19187 PyObject * obj0 = 0 ;
19188 PyObject * obj1 = 0 ;
19189 PyObject * obj2 = 0 ;
19190 char * kwnames[] = {
19191 (char *) "self",(char *) "x",(char *) "y", NULL
19192 };
19193
19194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19196 if (!SWIG_IsOK(res1)) {
19197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19198 }
19199 arg1 = reinterpret_cast< wxDC * >(argp1);
19200 ecode2 = SWIG_AsVal_double(obj1, &val2);
19201 if (!SWIG_IsOK(ecode2)) {
19202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19203 }
19204 arg2 = static_cast< double >(val2);
19205 ecode3 = SWIG_AsVal_double(obj2, &val3);
19206 if (!SWIG_IsOK(ecode3)) {
19207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19208 }
19209 arg3 = static_cast< double >(val3);
19210 {
19211 PyThreadState* __tstate = wxPyBeginAllowThreads();
19212 (arg1)->SetUserScale(arg2,arg3);
19213 wxPyEndAllowThreads(__tstate);
19214 if (PyErr_Occurred()) SWIG_fail;
19215 }
19216 resultobj = SWIG_Py_Void();
19217 return resultobj;
19218 fail:
19219 return NULL;
19220 }
19221
19222
19223 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19224 PyObject *resultobj = 0;
19225 wxDC *arg1 = (wxDC *) 0 ;
19226 double *arg2 = (double *) 0 ;
19227 double *arg3 = (double *) 0 ;
19228 void *argp1 = 0 ;
19229 int res1 = 0 ;
19230 double temp2 ;
19231 int res2 = SWIG_TMPOBJ ;
19232 double temp3 ;
19233 int res3 = SWIG_TMPOBJ ;
19234 PyObject *swig_obj[1] ;
19235
19236 arg2 = &temp2;
19237 arg3 = &temp3;
19238 if (!args) SWIG_fail;
19239 swig_obj[0] = args;
19240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19241 if (!SWIG_IsOK(res1)) {
19242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19243 }
19244 arg1 = reinterpret_cast< wxDC * >(argp1);
19245 {
19246 PyThreadState* __tstate = wxPyBeginAllowThreads();
19247 (arg1)->GetLogicalScale(arg2,arg3);
19248 wxPyEndAllowThreads(__tstate);
19249 if (PyErr_Occurred()) SWIG_fail;
19250 }
19251 resultobj = SWIG_Py_Void();
19252 if (SWIG_IsTmpObj(res2)) {
19253 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19254 } else {
19255 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19256 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19257 }
19258 if (SWIG_IsTmpObj(res3)) {
19259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19260 } else {
19261 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19262 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19263 }
19264 return resultobj;
19265 fail:
19266 return NULL;
19267 }
19268
19269
19270 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19271 PyObject *resultobj = 0;
19272 wxDC *arg1 = (wxDC *) 0 ;
19273 double arg2 ;
19274 double arg3 ;
19275 void *argp1 = 0 ;
19276 int res1 = 0 ;
19277 double val2 ;
19278 int ecode2 = 0 ;
19279 double val3 ;
19280 int ecode3 = 0 ;
19281 PyObject * obj0 = 0 ;
19282 PyObject * obj1 = 0 ;
19283 PyObject * obj2 = 0 ;
19284 char * kwnames[] = {
19285 (char *) "self",(char *) "x",(char *) "y", NULL
19286 };
19287
19288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19290 if (!SWIG_IsOK(res1)) {
19291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19292 }
19293 arg1 = reinterpret_cast< wxDC * >(argp1);
19294 ecode2 = SWIG_AsVal_double(obj1, &val2);
19295 if (!SWIG_IsOK(ecode2)) {
19296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19297 }
19298 arg2 = static_cast< double >(val2);
19299 ecode3 = SWIG_AsVal_double(obj2, &val3);
19300 if (!SWIG_IsOK(ecode3)) {
19301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19302 }
19303 arg3 = static_cast< double >(val3);
19304 {
19305 PyThreadState* __tstate = wxPyBeginAllowThreads();
19306 (arg1)->SetLogicalScale(arg2,arg3);
19307 wxPyEndAllowThreads(__tstate);
19308 if (PyErr_Occurred()) SWIG_fail;
19309 }
19310 resultobj = SWIG_Py_Void();
19311 return resultobj;
19312 fail:
19313 return NULL;
19314 }
19315
19316
19317 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19318 PyObject *resultobj = 0;
19319 wxDC *arg1 = (wxDC *) 0 ;
19320 wxPoint result;
19321 void *argp1 = 0 ;
19322 int res1 = 0 ;
19323 PyObject *swig_obj[1] ;
19324
19325 if (!args) SWIG_fail;
19326 swig_obj[0] = args;
19327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19328 if (!SWIG_IsOK(res1)) {
19329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19330 }
19331 arg1 = reinterpret_cast< wxDC * >(argp1);
19332 {
19333 PyThreadState* __tstate = wxPyBeginAllowThreads();
19334 result = ((wxDC const *)arg1)->GetLogicalOrigin();
19335 wxPyEndAllowThreads(__tstate);
19336 if (PyErr_Occurred()) SWIG_fail;
19337 }
19338 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19339 return resultobj;
19340 fail:
19341 return NULL;
19342 }
19343
19344
19345 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19346 PyObject *resultobj = 0;
19347 wxDC *arg1 = (wxDC *) 0 ;
19348 int *arg2 = (int *) 0 ;
19349 int *arg3 = (int *) 0 ;
19350 void *argp1 = 0 ;
19351 int res1 = 0 ;
19352 int temp2 ;
19353 int res2 = SWIG_TMPOBJ ;
19354 int temp3 ;
19355 int res3 = SWIG_TMPOBJ ;
19356 PyObject *swig_obj[1] ;
19357
19358 arg2 = &temp2;
19359 arg3 = &temp3;
19360 if (!args) SWIG_fail;
19361 swig_obj[0] = args;
19362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19363 if (!SWIG_IsOK(res1)) {
19364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19365 }
19366 arg1 = reinterpret_cast< wxDC * >(argp1);
19367 {
19368 PyThreadState* __tstate = wxPyBeginAllowThreads();
19369 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
19370 wxPyEndAllowThreads(__tstate);
19371 if (PyErr_Occurred()) SWIG_fail;
19372 }
19373 resultobj = SWIG_Py_Void();
19374 if (SWIG_IsTmpObj(res2)) {
19375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19376 } else {
19377 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19378 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19379 }
19380 if (SWIG_IsTmpObj(res3)) {
19381 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19382 } else {
19383 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19384 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19385 }
19386 return resultobj;
19387 fail:
19388 return NULL;
19389 }
19390
19391
19392 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19393 PyObject *resultobj = 0;
19394 wxDC *arg1 = (wxDC *) 0 ;
19395 int arg2 ;
19396 int arg3 ;
19397 void *argp1 = 0 ;
19398 int res1 = 0 ;
19399 int val2 ;
19400 int ecode2 = 0 ;
19401 int val3 ;
19402 int ecode3 = 0 ;
19403 PyObject * obj0 = 0 ;
19404 PyObject * obj1 = 0 ;
19405 PyObject * obj2 = 0 ;
19406 char * kwnames[] = {
19407 (char *) "self",(char *) "x",(char *) "y", NULL
19408 };
19409
19410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19412 if (!SWIG_IsOK(res1)) {
19413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19414 }
19415 arg1 = reinterpret_cast< wxDC * >(argp1);
19416 ecode2 = SWIG_AsVal_int(obj1, &val2);
19417 if (!SWIG_IsOK(ecode2)) {
19418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
19419 }
19420 arg2 = static_cast< int >(val2);
19421 ecode3 = SWIG_AsVal_int(obj2, &val3);
19422 if (!SWIG_IsOK(ecode3)) {
19423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
19424 }
19425 arg3 = static_cast< int >(val3);
19426 {
19427 PyThreadState* __tstate = wxPyBeginAllowThreads();
19428 (arg1)->SetLogicalOrigin(arg2,arg3);
19429 wxPyEndAllowThreads(__tstate);
19430 if (PyErr_Occurred()) SWIG_fail;
19431 }
19432 resultobj = SWIG_Py_Void();
19433 return resultobj;
19434 fail:
19435 return NULL;
19436 }
19437
19438
19439 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19440 PyObject *resultobj = 0;
19441 wxDC *arg1 = (wxDC *) 0 ;
19442 wxPoint *arg2 = 0 ;
19443 void *argp1 = 0 ;
19444 int res1 = 0 ;
19445 wxPoint temp2 ;
19446 PyObject * obj0 = 0 ;
19447 PyObject * obj1 = 0 ;
19448 char * kwnames[] = {
19449 (char *) "self",(char *) "point", NULL
19450 };
19451
19452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19454 if (!SWIG_IsOK(res1)) {
19455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19456 }
19457 arg1 = reinterpret_cast< wxDC * >(argp1);
19458 {
19459 arg2 = &temp2;
19460 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19461 }
19462 {
19463 PyThreadState* __tstate = wxPyBeginAllowThreads();
19464 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
19465 wxPyEndAllowThreads(__tstate);
19466 if (PyErr_Occurred()) SWIG_fail;
19467 }
19468 resultobj = SWIG_Py_Void();
19469 return resultobj;
19470 fail:
19471 return NULL;
19472 }
19473
19474
19475 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19476 PyObject *resultobj = 0;
19477 wxDC *arg1 = (wxDC *) 0 ;
19478 wxPoint result;
19479 void *argp1 = 0 ;
19480 int res1 = 0 ;
19481 PyObject *swig_obj[1] ;
19482
19483 if (!args) SWIG_fail;
19484 swig_obj[0] = args;
19485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19486 if (!SWIG_IsOK(res1)) {
19487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19488 }
19489 arg1 = reinterpret_cast< wxDC * >(argp1);
19490 {
19491 PyThreadState* __tstate = wxPyBeginAllowThreads();
19492 result = ((wxDC const *)arg1)->GetDeviceOrigin();
19493 wxPyEndAllowThreads(__tstate);
19494 if (PyErr_Occurred()) SWIG_fail;
19495 }
19496 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19497 return resultobj;
19498 fail:
19499 return NULL;
19500 }
19501
19502
19503 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19504 PyObject *resultobj = 0;
19505 wxDC *arg1 = (wxDC *) 0 ;
19506 int *arg2 = (int *) 0 ;
19507 int *arg3 = (int *) 0 ;
19508 void *argp1 = 0 ;
19509 int res1 = 0 ;
19510 int temp2 ;
19511 int res2 = SWIG_TMPOBJ ;
19512 int temp3 ;
19513 int res3 = SWIG_TMPOBJ ;
19514 PyObject *swig_obj[1] ;
19515
19516 arg2 = &temp2;
19517 arg3 = &temp3;
19518 if (!args) SWIG_fail;
19519 swig_obj[0] = args;
19520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19521 if (!SWIG_IsOK(res1)) {
19522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19523 }
19524 arg1 = reinterpret_cast< wxDC * >(argp1);
19525 {
19526 PyThreadState* __tstate = wxPyBeginAllowThreads();
19527 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
19528 wxPyEndAllowThreads(__tstate);
19529 if (PyErr_Occurred()) SWIG_fail;
19530 }
19531 resultobj = SWIG_Py_Void();
19532 if (SWIG_IsTmpObj(res2)) {
19533 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19534 } else {
19535 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19536 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19537 }
19538 if (SWIG_IsTmpObj(res3)) {
19539 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19540 } else {
19541 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19542 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19543 }
19544 return resultobj;
19545 fail:
19546 return NULL;
19547 }
19548
19549
19550 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19551 PyObject *resultobj = 0;
19552 wxDC *arg1 = (wxDC *) 0 ;
19553 int arg2 ;
19554 int arg3 ;
19555 void *argp1 = 0 ;
19556 int res1 = 0 ;
19557 int val2 ;
19558 int ecode2 = 0 ;
19559 int val3 ;
19560 int ecode3 = 0 ;
19561 PyObject * obj0 = 0 ;
19562 PyObject * obj1 = 0 ;
19563 PyObject * obj2 = 0 ;
19564 char * kwnames[] = {
19565 (char *) "self",(char *) "x",(char *) "y", NULL
19566 };
19567
19568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19570 if (!SWIG_IsOK(res1)) {
19571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19572 }
19573 arg1 = reinterpret_cast< wxDC * >(argp1);
19574 ecode2 = SWIG_AsVal_int(obj1, &val2);
19575 if (!SWIG_IsOK(ecode2)) {
19576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
19577 }
19578 arg2 = static_cast< int >(val2);
19579 ecode3 = SWIG_AsVal_int(obj2, &val3);
19580 if (!SWIG_IsOK(ecode3)) {
19581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
19582 }
19583 arg3 = static_cast< int >(val3);
19584 {
19585 PyThreadState* __tstate = wxPyBeginAllowThreads();
19586 (arg1)->SetDeviceOrigin(arg2,arg3);
19587 wxPyEndAllowThreads(__tstate);
19588 if (PyErr_Occurred()) SWIG_fail;
19589 }
19590 resultobj = SWIG_Py_Void();
19591 return resultobj;
19592 fail:
19593 return NULL;
19594 }
19595
19596
19597 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19598 PyObject *resultobj = 0;
19599 wxDC *arg1 = (wxDC *) 0 ;
19600 wxPoint *arg2 = 0 ;
19601 void *argp1 = 0 ;
19602 int res1 = 0 ;
19603 wxPoint temp2 ;
19604 PyObject * obj0 = 0 ;
19605 PyObject * obj1 = 0 ;
19606 char * kwnames[] = {
19607 (char *) "self",(char *) "point", NULL
19608 };
19609
19610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19612 if (!SWIG_IsOK(res1)) {
19613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19614 }
19615 arg1 = reinterpret_cast< wxDC * >(argp1);
19616 {
19617 arg2 = &temp2;
19618 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19619 }
19620 {
19621 PyThreadState* __tstate = wxPyBeginAllowThreads();
19622 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
19623 wxPyEndAllowThreads(__tstate);
19624 if (PyErr_Occurred()) SWIG_fail;
19625 }
19626 resultobj = SWIG_Py_Void();
19627 return resultobj;
19628 fail:
19629 return NULL;
19630 }
19631
19632
19633 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19634 PyObject *resultobj = 0;
19635 wxDC *arg1 = (wxDC *) 0 ;
19636 bool arg2 ;
19637 bool arg3 ;
19638 void *argp1 = 0 ;
19639 int res1 = 0 ;
19640 bool val2 ;
19641 int ecode2 = 0 ;
19642 bool val3 ;
19643 int ecode3 = 0 ;
19644 PyObject * obj0 = 0 ;
19645 PyObject * obj1 = 0 ;
19646 PyObject * obj2 = 0 ;
19647 char * kwnames[] = {
19648 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
19649 };
19650
19651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19653 if (!SWIG_IsOK(res1)) {
19654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
19655 }
19656 arg1 = reinterpret_cast< wxDC * >(argp1);
19657 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19658 if (!SWIG_IsOK(ecode2)) {
19659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
19660 }
19661 arg2 = static_cast< bool >(val2);
19662 ecode3 = SWIG_AsVal_bool(obj2, &val3);
19663 if (!SWIG_IsOK(ecode3)) {
19664 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
19665 }
19666 arg3 = static_cast< bool >(val3);
19667 {
19668 PyThreadState* __tstate = wxPyBeginAllowThreads();
19669 (arg1)->SetAxisOrientation(arg2,arg3);
19670 wxPyEndAllowThreads(__tstate);
19671 if (PyErr_Occurred()) SWIG_fail;
19672 }
19673 resultobj = SWIG_Py_Void();
19674 return resultobj;
19675 fail:
19676 return NULL;
19677 }
19678
19679
19680 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19681 PyObject *resultobj = 0;
19682 wxDC *arg1 = (wxDC *) 0 ;
19683 int result;
19684 void *argp1 = 0 ;
19685 int res1 = 0 ;
19686 PyObject *swig_obj[1] ;
19687
19688 if (!args) SWIG_fail;
19689 swig_obj[0] = args;
19690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19691 if (!SWIG_IsOK(res1)) {
19692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
19693 }
19694 arg1 = reinterpret_cast< wxDC * >(argp1);
19695 {
19696 PyThreadState* __tstate = wxPyBeginAllowThreads();
19697 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
19698 wxPyEndAllowThreads(__tstate);
19699 if (PyErr_Occurred()) SWIG_fail;
19700 }
19701 resultobj = SWIG_From_int(static_cast< int >(result));
19702 return resultobj;
19703 fail:
19704 return NULL;
19705 }
19706
19707
19708 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19709 PyObject *resultobj = 0;
19710 wxDC *arg1 = (wxDC *) 0 ;
19711 int arg2 ;
19712 void *argp1 = 0 ;
19713 int res1 = 0 ;
19714 int val2 ;
19715 int ecode2 = 0 ;
19716 PyObject * obj0 = 0 ;
19717 PyObject * obj1 = 0 ;
19718 char * kwnames[] = {
19719 (char *) "self",(char *) "function", NULL
19720 };
19721
19722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
19723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19724 if (!SWIG_IsOK(res1)) {
19725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
19726 }
19727 arg1 = reinterpret_cast< wxDC * >(argp1);
19728 ecode2 = SWIG_AsVal_int(obj1, &val2);
19729 if (!SWIG_IsOK(ecode2)) {
19730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
19731 }
19732 arg2 = static_cast< int >(val2);
19733 {
19734 PyThreadState* __tstate = wxPyBeginAllowThreads();
19735 (arg1)->SetLogicalFunction(arg2);
19736 wxPyEndAllowThreads(__tstate);
19737 if (PyErr_Occurred()) SWIG_fail;
19738 }
19739 resultobj = SWIG_Py_Void();
19740 return resultobj;
19741 fail:
19742 return NULL;
19743 }
19744
19745
19746 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19747 PyObject *resultobj = 0;
19748 wxDC *arg1 = (wxDC *) 0 ;
19749 void *argp1 = 0 ;
19750 int res1 = 0 ;
19751 PyObject *swig_obj[1] ;
19752
19753 if (!args) SWIG_fail;
19754 swig_obj[0] = args;
19755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19756 if (!SWIG_IsOK(res1)) {
19757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19758 }
19759 arg1 = reinterpret_cast< wxDC * >(argp1);
19760 {
19761 PyThreadState* __tstate = wxPyBeginAllowThreads();
19762 (arg1)->ComputeScaleAndOrigin();
19763 wxPyEndAllowThreads(__tstate);
19764 if (PyErr_Occurred()) SWIG_fail;
19765 }
19766 resultobj = SWIG_Py_Void();
19767 return resultobj;
19768 fail:
19769 return NULL;
19770 }
19771
19772
19773 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19774 PyObject *resultobj = 0;
19775 wxDC *arg1 = (wxDC *) 0 ;
19776 int arg2 ;
19777 int arg3 ;
19778 void *argp1 = 0 ;
19779 int res1 = 0 ;
19780 int val2 ;
19781 int ecode2 = 0 ;
19782 int val3 ;
19783 int ecode3 = 0 ;
19784 PyObject * obj0 = 0 ;
19785 PyObject * obj1 = 0 ;
19786 PyObject * obj2 = 0 ;
19787 char * kwnames[] = {
19788 (char *) "self",(char *) "x",(char *) "y", NULL
19789 };
19790
19791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19793 if (!SWIG_IsOK(res1)) {
19794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19795 }
19796 arg1 = reinterpret_cast< wxDC * >(argp1);
19797 ecode2 = SWIG_AsVal_int(obj1, &val2);
19798 if (!SWIG_IsOK(ecode2)) {
19799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
19800 }
19801 arg2 = static_cast< int >(val2);
19802 ecode3 = SWIG_AsVal_int(obj2, &val3);
19803 if (!SWIG_IsOK(ecode3)) {
19804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
19805 }
19806 arg3 = static_cast< int >(val3);
19807 {
19808 PyThreadState* __tstate = wxPyBeginAllowThreads();
19809 (arg1)->CalcBoundingBox(arg2,arg3);
19810 wxPyEndAllowThreads(__tstate);
19811 if (PyErr_Occurred()) SWIG_fail;
19812 }
19813 resultobj = SWIG_Py_Void();
19814 return resultobj;
19815 fail:
19816 return NULL;
19817 }
19818
19819
19820 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19821 PyObject *resultobj = 0;
19822 wxDC *arg1 = (wxDC *) 0 ;
19823 wxPoint *arg2 = 0 ;
19824 void *argp1 = 0 ;
19825 int res1 = 0 ;
19826 wxPoint temp2 ;
19827 PyObject * obj0 = 0 ;
19828 PyObject * obj1 = 0 ;
19829 char * kwnames[] = {
19830 (char *) "self",(char *) "point", NULL
19831 };
19832
19833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19835 if (!SWIG_IsOK(res1)) {
19836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19837 }
19838 arg1 = reinterpret_cast< wxDC * >(argp1);
19839 {
19840 arg2 = &temp2;
19841 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19842 }
19843 {
19844 PyThreadState* __tstate = wxPyBeginAllowThreads();
19845 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
19846 wxPyEndAllowThreads(__tstate);
19847 if (PyErr_Occurred()) SWIG_fail;
19848 }
19849 resultobj = SWIG_Py_Void();
19850 return resultobj;
19851 fail:
19852 return NULL;
19853 }
19854
19855
19856 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19857 PyObject *resultobj = 0;
19858 wxDC *arg1 = (wxDC *) 0 ;
19859 void *argp1 = 0 ;
19860 int res1 = 0 ;
19861 PyObject *swig_obj[1] ;
19862
19863 if (!args) SWIG_fail;
19864 swig_obj[0] = args;
19865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19866 if (!SWIG_IsOK(res1)) {
19867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19868 }
19869 arg1 = reinterpret_cast< wxDC * >(argp1);
19870 {
19871 PyThreadState* __tstate = wxPyBeginAllowThreads();
19872 (arg1)->ResetBoundingBox();
19873 wxPyEndAllowThreads(__tstate);
19874 if (PyErr_Occurred()) SWIG_fail;
19875 }
19876 resultobj = SWIG_Py_Void();
19877 return resultobj;
19878 fail:
19879 return NULL;
19880 }
19881
19882
19883 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19884 PyObject *resultobj = 0;
19885 wxDC *arg1 = (wxDC *) 0 ;
19886 int result;
19887 void *argp1 = 0 ;
19888 int res1 = 0 ;
19889 PyObject *swig_obj[1] ;
19890
19891 if (!args) SWIG_fail;
19892 swig_obj[0] = args;
19893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19894 if (!SWIG_IsOK(res1)) {
19895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
19896 }
19897 arg1 = reinterpret_cast< wxDC * >(argp1);
19898 {
19899 PyThreadState* __tstate = wxPyBeginAllowThreads();
19900 result = (int)((wxDC const *)arg1)->MinX();
19901 wxPyEndAllowThreads(__tstate);
19902 if (PyErr_Occurred()) SWIG_fail;
19903 }
19904 resultobj = SWIG_From_int(static_cast< int >(result));
19905 return resultobj;
19906 fail:
19907 return NULL;
19908 }
19909
19910
19911 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19912 PyObject *resultobj = 0;
19913 wxDC *arg1 = (wxDC *) 0 ;
19914 int result;
19915 void *argp1 = 0 ;
19916 int res1 = 0 ;
19917 PyObject *swig_obj[1] ;
19918
19919 if (!args) SWIG_fail;
19920 swig_obj[0] = args;
19921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19922 if (!SWIG_IsOK(res1)) {
19923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
19924 }
19925 arg1 = reinterpret_cast< wxDC * >(argp1);
19926 {
19927 PyThreadState* __tstate = wxPyBeginAllowThreads();
19928 result = (int)((wxDC const *)arg1)->MaxX();
19929 wxPyEndAllowThreads(__tstate);
19930 if (PyErr_Occurred()) SWIG_fail;
19931 }
19932 resultobj = SWIG_From_int(static_cast< int >(result));
19933 return resultobj;
19934 fail:
19935 return NULL;
19936 }
19937
19938
19939 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19940 PyObject *resultobj = 0;
19941 wxDC *arg1 = (wxDC *) 0 ;
19942 int result;
19943 void *argp1 = 0 ;
19944 int res1 = 0 ;
19945 PyObject *swig_obj[1] ;
19946
19947 if (!args) SWIG_fail;
19948 swig_obj[0] = args;
19949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19950 if (!SWIG_IsOK(res1)) {
19951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
19952 }
19953 arg1 = reinterpret_cast< wxDC * >(argp1);
19954 {
19955 PyThreadState* __tstate = wxPyBeginAllowThreads();
19956 result = (int)((wxDC const *)arg1)->MinY();
19957 wxPyEndAllowThreads(__tstate);
19958 if (PyErr_Occurred()) SWIG_fail;
19959 }
19960 resultobj = SWIG_From_int(static_cast< int >(result));
19961 return resultobj;
19962 fail:
19963 return NULL;
19964 }
19965
19966
19967 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19968 PyObject *resultobj = 0;
19969 wxDC *arg1 = (wxDC *) 0 ;
19970 int result;
19971 void *argp1 = 0 ;
19972 int res1 = 0 ;
19973 PyObject *swig_obj[1] ;
19974
19975 if (!args) SWIG_fail;
19976 swig_obj[0] = args;
19977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19978 if (!SWIG_IsOK(res1)) {
19979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
19980 }
19981 arg1 = reinterpret_cast< wxDC * >(argp1);
19982 {
19983 PyThreadState* __tstate = wxPyBeginAllowThreads();
19984 result = (int)((wxDC const *)arg1)->MaxY();
19985 wxPyEndAllowThreads(__tstate);
19986 if (PyErr_Occurred()) SWIG_fail;
19987 }
19988 resultobj = SWIG_From_int(static_cast< int >(result));
19989 return resultobj;
19990 fail:
19991 return NULL;
19992 }
19993
19994
19995 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19996 PyObject *resultobj = 0;
19997 wxDC *arg1 = (wxDC *) 0 ;
19998 int *arg2 = (int *) 0 ;
19999 int *arg3 = (int *) 0 ;
20000 int *arg4 = (int *) 0 ;
20001 int *arg5 = (int *) 0 ;
20002 void *argp1 = 0 ;
20003 int res1 = 0 ;
20004 int temp2 ;
20005 int res2 = SWIG_TMPOBJ ;
20006 int temp3 ;
20007 int res3 = SWIG_TMPOBJ ;
20008 int temp4 ;
20009 int res4 = SWIG_TMPOBJ ;
20010 int temp5 ;
20011 int res5 = SWIG_TMPOBJ ;
20012 PyObject *swig_obj[1] ;
20013
20014 arg2 = &temp2;
20015 arg3 = &temp3;
20016 arg4 = &temp4;
20017 arg5 = &temp5;
20018 if (!args) SWIG_fail;
20019 swig_obj[0] = args;
20020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20021 if (!SWIG_IsOK(res1)) {
20022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20023 }
20024 arg1 = reinterpret_cast< wxDC * >(argp1);
20025 {
20026 PyThreadState* __tstate = wxPyBeginAllowThreads();
20027 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
20028 wxPyEndAllowThreads(__tstate);
20029 if (PyErr_Occurred()) SWIG_fail;
20030 }
20031 resultobj = SWIG_Py_Void();
20032 if (SWIG_IsTmpObj(res2)) {
20033 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20034 } else {
20035 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20036 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20037 }
20038 if (SWIG_IsTmpObj(res3)) {
20039 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20040 } else {
20041 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20042 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20043 }
20044 if (SWIG_IsTmpObj(res4)) {
20045 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20046 } else {
20047 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20048 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20049 }
20050 if (SWIG_IsTmpObj(res5)) {
20051 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20052 } else {
20053 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20054 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20055 }
20056 return resultobj;
20057 fail:
20058 return NULL;
20059 }
20060
20061
20062 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20063 PyObject *resultobj = 0;
20064 wxDC *arg1 = (wxDC *) 0 ;
20065 PyObject *arg2 = (PyObject *) 0 ;
20066 PyObject *arg3 = (PyObject *) 0 ;
20067 PyObject *arg4 = (PyObject *) 0 ;
20068 PyObject *result = 0 ;
20069 void *argp1 = 0 ;
20070 int res1 = 0 ;
20071 PyObject * obj0 = 0 ;
20072 PyObject * obj1 = 0 ;
20073 PyObject * obj2 = 0 ;
20074 PyObject * obj3 = 0 ;
20075 char * kwnames[] = {
20076 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20077 };
20078
20079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20081 if (!SWIG_IsOK(res1)) {
20082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
20083 }
20084 arg1 = reinterpret_cast< wxDC * >(argp1);
20085 arg2 = obj1;
20086 arg3 = obj2;
20087 arg4 = obj3;
20088 {
20089 PyThreadState* __tstate = wxPyBeginAllowThreads();
20090 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
20091 wxPyEndAllowThreads(__tstate);
20092 if (PyErr_Occurred()) SWIG_fail;
20093 }
20094 resultobj = result;
20095 return resultobj;
20096 fail:
20097 return NULL;
20098 }
20099
20100
20101 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20102 PyObject *resultobj = 0;
20103 wxDC *arg1 = (wxDC *) 0 ;
20104 PyObject *arg2 = (PyObject *) 0 ;
20105 PyObject *arg3 = (PyObject *) 0 ;
20106 PyObject *arg4 = (PyObject *) 0 ;
20107 PyObject *result = 0 ;
20108 void *argp1 = 0 ;
20109 int res1 = 0 ;
20110 PyObject * obj0 = 0 ;
20111 PyObject * obj1 = 0 ;
20112 PyObject * obj2 = 0 ;
20113 PyObject * obj3 = 0 ;
20114 char * kwnames[] = {
20115 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20116 };
20117
20118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20120 if (!SWIG_IsOK(res1)) {
20121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20122 }
20123 arg1 = reinterpret_cast< wxDC * >(argp1);
20124 arg2 = obj1;
20125 arg3 = obj2;
20126 arg4 = obj3;
20127 {
20128 PyThreadState* __tstate = wxPyBeginAllowThreads();
20129 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
20130 wxPyEndAllowThreads(__tstate);
20131 if (PyErr_Occurred()) SWIG_fail;
20132 }
20133 resultobj = result;
20134 return resultobj;
20135 fail:
20136 return NULL;
20137 }
20138
20139
20140 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20141 PyObject *resultobj = 0;
20142 wxDC *arg1 = (wxDC *) 0 ;
20143 PyObject *arg2 = (PyObject *) 0 ;
20144 PyObject *arg3 = (PyObject *) 0 ;
20145 PyObject *arg4 = (PyObject *) 0 ;
20146 PyObject *result = 0 ;
20147 void *argp1 = 0 ;
20148 int res1 = 0 ;
20149 PyObject * obj0 = 0 ;
20150 PyObject * obj1 = 0 ;
20151 PyObject * obj2 = 0 ;
20152 PyObject * obj3 = 0 ;
20153 char * kwnames[] = {
20154 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20155 };
20156
20157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20159 if (!SWIG_IsOK(res1)) {
20160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20161 }
20162 arg1 = reinterpret_cast< wxDC * >(argp1);
20163 arg2 = obj1;
20164 arg3 = obj2;
20165 arg4 = obj3;
20166 {
20167 PyThreadState* __tstate = wxPyBeginAllowThreads();
20168 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
20169 wxPyEndAllowThreads(__tstate);
20170 if (PyErr_Occurred()) SWIG_fail;
20171 }
20172 resultobj = result;
20173 return resultobj;
20174 fail:
20175 return NULL;
20176 }
20177
20178
20179 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20180 PyObject *resultobj = 0;
20181 wxDC *arg1 = (wxDC *) 0 ;
20182 PyObject *arg2 = (PyObject *) 0 ;
20183 PyObject *arg3 = (PyObject *) 0 ;
20184 PyObject *arg4 = (PyObject *) 0 ;
20185 PyObject *result = 0 ;
20186 void *argp1 = 0 ;
20187 int res1 = 0 ;
20188 PyObject * obj0 = 0 ;
20189 PyObject * obj1 = 0 ;
20190 PyObject * obj2 = 0 ;
20191 PyObject * obj3 = 0 ;
20192 char * kwnames[] = {
20193 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20194 };
20195
20196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20198 if (!SWIG_IsOK(res1)) {
20199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20200 }
20201 arg1 = reinterpret_cast< wxDC * >(argp1);
20202 arg2 = obj1;
20203 arg3 = obj2;
20204 arg4 = obj3;
20205 {
20206 PyThreadState* __tstate = wxPyBeginAllowThreads();
20207 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
20208 wxPyEndAllowThreads(__tstate);
20209 if (PyErr_Occurred()) SWIG_fail;
20210 }
20211 resultobj = result;
20212 return resultobj;
20213 fail:
20214 return NULL;
20215 }
20216
20217
20218 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20219 PyObject *resultobj = 0;
20220 wxDC *arg1 = (wxDC *) 0 ;
20221 PyObject *arg2 = (PyObject *) 0 ;
20222 PyObject *arg3 = (PyObject *) 0 ;
20223 PyObject *arg4 = (PyObject *) 0 ;
20224 PyObject *result = 0 ;
20225 void *argp1 = 0 ;
20226 int res1 = 0 ;
20227 PyObject * obj0 = 0 ;
20228 PyObject * obj1 = 0 ;
20229 PyObject * obj2 = 0 ;
20230 PyObject * obj3 = 0 ;
20231 char * kwnames[] = {
20232 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20233 };
20234
20235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20237 if (!SWIG_IsOK(res1)) {
20238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20239 }
20240 arg1 = reinterpret_cast< wxDC * >(argp1);
20241 arg2 = obj1;
20242 arg3 = obj2;
20243 arg4 = obj3;
20244 {
20245 PyThreadState* __tstate = wxPyBeginAllowThreads();
20246 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
20247 wxPyEndAllowThreads(__tstate);
20248 if (PyErr_Occurred()) SWIG_fail;
20249 }
20250 resultobj = result;
20251 return resultobj;
20252 fail:
20253 return NULL;
20254 }
20255
20256
20257 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20258 PyObject *resultobj = 0;
20259 wxDC *arg1 = (wxDC *) 0 ;
20260 PyObject *arg2 = (PyObject *) 0 ;
20261 PyObject *arg3 = (PyObject *) 0 ;
20262 PyObject *arg4 = (PyObject *) 0 ;
20263 PyObject *arg5 = (PyObject *) 0 ;
20264 PyObject *result = 0 ;
20265 void *argp1 = 0 ;
20266 int res1 = 0 ;
20267 PyObject * obj0 = 0 ;
20268 PyObject * obj1 = 0 ;
20269 PyObject * obj2 = 0 ;
20270 PyObject * obj3 = 0 ;
20271 PyObject * obj4 = 0 ;
20272 char * kwnames[] = {
20273 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20274 };
20275
20276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20278 if (!SWIG_IsOK(res1)) {
20279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20280 }
20281 arg1 = reinterpret_cast< wxDC * >(argp1);
20282 arg2 = obj1;
20283 arg3 = obj2;
20284 arg4 = obj3;
20285 arg5 = obj4;
20286 {
20287 PyThreadState* __tstate = wxPyBeginAllowThreads();
20288 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
20289 wxPyEndAllowThreads(__tstate);
20290 if (PyErr_Occurred()) SWIG_fail;
20291 }
20292 resultobj = result;
20293 return resultobj;
20294 fail:
20295 return NULL;
20296 }
20297
20298
20299 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20300 PyObject *obj;
20301 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20302 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
20303 return SWIG_Py_Void();
20304 }
20305
20306 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20307 PyObject *resultobj = 0;
20308 wxMemoryDC *result = 0 ;
20309
20310 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
20311 {
20312 if (!wxPyCheckForApp()) SWIG_fail;
20313 PyThreadState* __tstate = wxPyBeginAllowThreads();
20314 result = (wxMemoryDC *)new wxMemoryDC();
20315 wxPyEndAllowThreads(__tstate);
20316 if (PyErr_Occurred()) SWIG_fail;
20317 }
20318 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
20319 return resultobj;
20320 fail:
20321 return NULL;
20322 }
20323
20324
20325 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20326 PyObject *resultobj = 0;
20327 wxDC *arg1 = (wxDC *) 0 ;
20328 wxMemoryDC *result = 0 ;
20329 void *argp1 = 0 ;
20330 int res1 = 0 ;
20331 PyObject * obj0 = 0 ;
20332 char * kwnames[] = {
20333 (char *) "oldDC", NULL
20334 };
20335
20336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
20337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20338 if (!SWIG_IsOK(res1)) {
20339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
20340 }
20341 arg1 = reinterpret_cast< wxDC * >(argp1);
20342 {
20343 if (!wxPyCheckForApp()) SWIG_fail;
20344 PyThreadState* __tstate = wxPyBeginAllowThreads();
20345 result = (wxMemoryDC *)new wxMemoryDC(arg1);
20346 wxPyEndAllowThreads(__tstate);
20347 if (PyErr_Occurred()) SWIG_fail;
20348 }
20349 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
20350 return resultobj;
20351 fail:
20352 return NULL;
20353 }
20354
20355
20356 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20357 PyObject *resultobj = 0;
20358 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
20359 wxBitmap *arg2 = 0 ;
20360 void *argp1 = 0 ;
20361 int res1 = 0 ;
20362 void *argp2 = 0 ;
20363 int res2 = 0 ;
20364 PyObject * obj0 = 0 ;
20365 PyObject * obj1 = 0 ;
20366 char * kwnames[] = {
20367 (char *) "self",(char *) "bitmap", NULL
20368 };
20369
20370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
20371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
20372 if (!SWIG_IsOK(res1)) {
20373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
20374 }
20375 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
20376 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20377 if (!SWIG_IsOK(res2)) {
20378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20379 }
20380 if (!argp2) {
20381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20382 }
20383 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20384 {
20385 PyThreadState* __tstate = wxPyBeginAllowThreads();
20386 (arg1)->SelectObject((wxBitmap const &)*arg2);
20387 wxPyEndAllowThreads(__tstate);
20388 if (PyErr_Occurred()) SWIG_fail;
20389 }
20390 resultobj = SWIG_Py_Void();
20391 return resultobj;
20392 fail:
20393 return NULL;
20394 }
20395
20396
20397 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20398 PyObject *obj;
20399 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20400 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
20401 return SWIG_Py_Void();
20402 }
20403
20404 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20405 return SWIG_Python_InitShadowInstance(args);
20406 }
20407
20408 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20409 PyObject *resultobj = 0;
20410 wxDC *arg1 = (wxDC *) 0 ;
20411 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20412 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20413 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20414 wxBufferedDC *result = 0 ;
20415 void *argp1 = 0 ;
20416 int res1 = 0 ;
20417 void *argp2 = 0 ;
20418 int res2 = 0 ;
20419 int val3 ;
20420 int ecode3 = 0 ;
20421
20422 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
20423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20424 if (!SWIG_IsOK(res1)) {
20425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20426 }
20427 arg1 = reinterpret_cast< wxDC * >(argp1);
20428 if (swig_obj[1]) {
20429 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20430 if (!SWIG_IsOK(res2)) {
20431 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20432 }
20433 if (!argp2) {
20434 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20435 }
20436 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20437 }
20438 if (swig_obj[2]) {
20439 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20440 if (!SWIG_IsOK(ecode3)) {
20441 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20442 }
20443 arg3 = static_cast< int >(val3);
20444 }
20445 {
20446 if (!wxPyCheckForApp()) SWIG_fail;
20447 PyThreadState* __tstate = wxPyBeginAllowThreads();
20448 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
20449 wxPyEndAllowThreads(__tstate);
20450 if (PyErr_Occurred()) SWIG_fail;
20451 }
20452 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20453 return resultobj;
20454 fail:
20455 return NULL;
20456 }
20457
20458
20459 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20460 PyObject *resultobj = 0;
20461 wxDC *arg1 = (wxDC *) 0 ;
20462 wxSize *arg2 = 0 ;
20463 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20464 wxBufferedDC *result = 0 ;
20465 void *argp1 = 0 ;
20466 int res1 = 0 ;
20467 wxSize temp2 ;
20468 int val3 ;
20469 int ecode3 = 0 ;
20470
20471 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
20472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20473 if (!SWIG_IsOK(res1)) {
20474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20475 }
20476 arg1 = reinterpret_cast< wxDC * >(argp1);
20477 {
20478 arg2 = &temp2;
20479 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
20480 }
20481 if (swig_obj[2]) {
20482 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20483 if (!SWIG_IsOK(ecode3)) {
20484 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20485 }
20486 arg3 = static_cast< int >(val3);
20487 }
20488 {
20489 if (!wxPyCheckForApp()) SWIG_fail;
20490 PyThreadState* __tstate = wxPyBeginAllowThreads();
20491 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
20492 wxPyEndAllowThreads(__tstate);
20493 if (PyErr_Occurred()) SWIG_fail;
20494 }
20495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20496 return resultobj;
20497 fail:
20498 return NULL;
20499 }
20500
20501
20502 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
20503 int argc;
20504 PyObject *argv[4];
20505
20506 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
20507 --argc;
20508 if ((argc >= 1) && (argc <= 3)) {
20509 int _v = 0;
20510 if (argc > 1) {
20511 {
20512 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
20513 _v = SWIG_CheckState(res);
20514 }
20515 if (!_v) goto check_1;
20516 }
20517 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
20518 }
20519 check_1:
20520
20521 if ((argc >= 2) && (argc <= 3)) {
20522 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
20523 }
20524
20525 fail:
20526 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
20527 return NULL;
20528 }
20529
20530
20531 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20532 PyObject *resultobj = 0;
20533 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20534 void *argp1 = 0 ;
20535 int res1 = 0 ;
20536 PyObject *swig_obj[1] ;
20537
20538 if (!args) SWIG_fail;
20539 swig_obj[0] = args;
20540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
20541 if (!SWIG_IsOK(res1)) {
20542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20543 }
20544 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20545 {
20546 PyThreadState* __tstate = wxPyBeginAllowThreads();
20547 delete arg1;
20548
20549 wxPyEndAllowThreads(__tstate);
20550 if (PyErr_Occurred()) SWIG_fail;
20551 }
20552 resultobj = SWIG_Py_Void();
20553 return resultobj;
20554 fail:
20555 return NULL;
20556 }
20557
20558
20559 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20560 PyObject *resultobj = 0;
20561 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20562 void *argp1 = 0 ;
20563 int res1 = 0 ;
20564 PyObject *swig_obj[1] ;
20565
20566 if (!args) SWIG_fail;
20567 swig_obj[0] = args;
20568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
20569 if (!SWIG_IsOK(res1)) {
20570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20571 }
20572 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20573 {
20574 PyThreadState* __tstate = wxPyBeginAllowThreads();
20575 (arg1)->UnMask();
20576 wxPyEndAllowThreads(__tstate);
20577 if (PyErr_Occurred()) SWIG_fail;
20578 }
20579 resultobj = SWIG_Py_Void();
20580 return resultobj;
20581 fail:
20582 return NULL;
20583 }
20584
20585
20586 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20587 PyObject *obj;
20588 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20589 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
20590 return SWIG_Py_Void();
20591 }
20592
20593 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20594 return SWIG_Python_InitShadowInstance(args);
20595 }
20596
20597 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20598 PyObject *resultobj = 0;
20599 wxWindow *arg1 = (wxWindow *) 0 ;
20600 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20601 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20602 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20603 wxBufferedPaintDC *result = 0 ;
20604 void *argp1 = 0 ;
20605 int res1 = 0 ;
20606 void *argp2 = 0 ;
20607 int res2 = 0 ;
20608 int val3 ;
20609 int ecode3 = 0 ;
20610 PyObject * obj0 = 0 ;
20611 PyObject * obj1 = 0 ;
20612 PyObject * obj2 = 0 ;
20613 char * kwnames[] = {
20614 (char *) "window",(char *) "buffer",(char *) "style", NULL
20615 };
20616
20617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20619 if (!SWIG_IsOK(res1)) {
20620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20621 }
20622 arg1 = reinterpret_cast< wxWindow * >(argp1);
20623 if (obj1) {
20624 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20625 if (!SWIG_IsOK(res2)) {
20626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20627 }
20628 if (!argp2) {
20629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20630 }
20631 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20632 }
20633 if (obj2) {
20634 ecode3 = SWIG_AsVal_int(obj2, &val3);
20635 if (!SWIG_IsOK(ecode3)) {
20636 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
20637 }
20638 arg3 = static_cast< int >(val3);
20639 }
20640 {
20641 if (!wxPyCheckForApp()) SWIG_fail;
20642 PyThreadState* __tstate = wxPyBeginAllowThreads();
20643 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
20644 wxPyEndAllowThreads(__tstate);
20645 if (PyErr_Occurred()) SWIG_fail;
20646 }
20647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
20648 return resultobj;
20649 fail:
20650 return NULL;
20651 }
20652
20653
20654 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20655 PyObject *obj;
20656 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20657 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
20658 return SWIG_Py_Void();
20659 }
20660
20661 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20662 return SWIG_Python_InitShadowInstance(args);
20663 }
20664
20665 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20666 PyObject *resultobj = 0;
20667 wxScreenDC *result = 0 ;
20668
20669 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
20670 {
20671 if (!wxPyCheckForApp()) SWIG_fail;
20672 PyThreadState* __tstate = wxPyBeginAllowThreads();
20673 result = (wxScreenDC *)new wxScreenDC();
20674 wxPyEndAllowThreads(__tstate);
20675 if (PyErr_Occurred()) SWIG_fail;
20676 }
20677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
20678 return resultobj;
20679 fail:
20680 return NULL;
20681 }
20682
20683
20684 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20685 PyObject *resultobj = 0;
20686 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20687 wxWindow *arg2 = (wxWindow *) 0 ;
20688 bool result;
20689 void *argp1 = 0 ;
20690 int res1 = 0 ;
20691 void *argp2 = 0 ;
20692 int res2 = 0 ;
20693 PyObject * obj0 = 0 ;
20694 PyObject * obj1 = 0 ;
20695 char * kwnames[] = {
20696 (char *) "self",(char *) "window", NULL
20697 };
20698
20699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
20700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20701 if (!SWIG_IsOK(res1)) {
20702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20703 }
20704 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20705 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20706 if (!SWIG_IsOK(res2)) {
20707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
20708 }
20709 arg2 = reinterpret_cast< wxWindow * >(argp2);
20710 {
20711 PyThreadState* __tstate = wxPyBeginAllowThreads();
20712 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20713 wxPyEndAllowThreads(__tstate);
20714 if (PyErr_Occurred()) SWIG_fail;
20715 }
20716 {
20717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20718 }
20719 return resultobj;
20720 fail:
20721 return NULL;
20722 }
20723
20724
20725 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20726 PyObject *resultobj = 0;
20727 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20728 wxRect *arg2 = (wxRect *) NULL ;
20729 bool result;
20730 void *argp1 = 0 ;
20731 int res1 = 0 ;
20732 void *argp2 = 0 ;
20733 int res2 = 0 ;
20734 PyObject * obj0 = 0 ;
20735 PyObject * obj1 = 0 ;
20736 char * kwnames[] = {
20737 (char *) "self",(char *) "rect", NULL
20738 };
20739
20740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
20741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20742 if (!SWIG_IsOK(res1)) {
20743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20744 }
20745 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20746 if (obj1) {
20747 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20748 if (!SWIG_IsOK(res2)) {
20749 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
20750 }
20751 arg2 = reinterpret_cast< wxRect * >(argp2);
20752 }
20753 {
20754 PyThreadState* __tstate = wxPyBeginAllowThreads();
20755 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20756 wxPyEndAllowThreads(__tstate);
20757 if (PyErr_Occurred()) SWIG_fail;
20758 }
20759 {
20760 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20761 }
20762 return resultobj;
20763 fail:
20764 return NULL;
20765 }
20766
20767
20768 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20769 PyObject *resultobj = 0;
20770 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20771 bool result;
20772 void *argp1 = 0 ;
20773 int res1 = 0 ;
20774 PyObject *swig_obj[1] ;
20775
20776 if (!args) SWIG_fail;
20777 swig_obj[0] = args;
20778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20779 if (!SWIG_IsOK(res1)) {
20780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20781 }
20782 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20783 {
20784 PyThreadState* __tstate = wxPyBeginAllowThreads();
20785 result = (bool)(arg1)->EndDrawingOnTop();
20786 wxPyEndAllowThreads(__tstate);
20787 if (PyErr_Occurred()) SWIG_fail;
20788 }
20789 {
20790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20791 }
20792 return resultobj;
20793 fail:
20794 return NULL;
20795 }
20796
20797
20798 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20799 PyObject *obj;
20800 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20801 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
20802 return SWIG_Py_Void();
20803 }
20804
20805 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20806 return SWIG_Python_InitShadowInstance(args);
20807 }
20808
20809 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20810 PyObject *resultobj = 0;
20811 wxWindow *arg1 = (wxWindow *) 0 ;
20812 wxClientDC *result = 0 ;
20813 void *argp1 = 0 ;
20814 int res1 = 0 ;
20815 PyObject * obj0 = 0 ;
20816 char * kwnames[] = {
20817 (char *) "win", NULL
20818 };
20819
20820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
20821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20822 if (!SWIG_IsOK(res1)) {
20823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20824 }
20825 arg1 = reinterpret_cast< wxWindow * >(argp1);
20826 {
20827 if (!wxPyCheckForApp()) SWIG_fail;
20828 PyThreadState* __tstate = wxPyBeginAllowThreads();
20829 result = (wxClientDC *)new wxClientDC(arg1);
20830 wxPyEndAllowThreads(__tstate);
20831 if (PyErr_Occurred()) SWIG_fail;
20832 }
20833 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
20834 return resultobj;
20835 fail:
20836 return NULL;
20837 }
20838
20839
20840 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20841 PyObject *obj;
20842 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20843 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
20844 return SWIG_Py_Void();
20845 }
20846
20847 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20848 return SWIG_Python_InitShadowInstance(args);
20849 }
20850
20851 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20852 PyObject *resultobj = 0;
20853 wxWindow *arg1 = (wxWindow *) 0 ;
20854 wxPaintDC *result = 0 ;
20855 void *argp1 = 0 ;
20856 int res1 = 0 ;
20857 PyObject * obj0 = 0 ;
20858 char * kwnames[] = {
20859 (char *) "win", NULL
20860 };
20861
20862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
20863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20864 if (!SWIG_IsOK(res1)) {
20865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20866 }
20867 arg1 = reinterpret_cast< wxWindow * >(argp1);
20868 {
20869 if (!wxPyCheckForApp()) SWIG_fail;
20870 PyThreadState* __tstate = wxPyBeginAllowThreads();
20871 result = (wxPaintDC *)new wxPaintDC(arg1);
20872 wxPyEndAllowThreads(__tstate);
20873 if (PyErr_Occurred()) SWIG_fail;
20874 }
20875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
20876 return resultobj;
20877 fail:
20878 return NULL;
20879 }
20880
20881
20882 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20883 PyObject *obj;
20884 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20885 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
20886 return SWIG_Py_Void();
20887 }
20888
20889 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20890 return SWIG_Python_InitShadowInstance(args);
20891 }
20892
20893 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20894 PyObject *resultobj = 0;
20895 wxWindow *arg1 = (wxWindow *) 0 ;
20896 wxWindowDC *result = 0 ;
20897 void *argp1 = 0 ;
20898 int res1 = 0 ;
20899 PyObject * obj0 = 0 ;
20900 char * kwnames[] = {
20901 (char *) "win", NULL
20902 };
20903
20904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
20905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20906 if (!SWIG_IsOK(res1)) {
20907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20908 }
20909 arg1 = reinterpret_cast< wxWindow * >(argp1);
20910 {
20911 if (!wxPyCheckForApp()) SWIG_fail;
20912 PyThreadState* __tstate = wxPyBeginAllowThreads();
20913 result = (wxWindowDC *)new wxWindowDC(arg1);
20914 wxPyEndAllowThreads(__tstate);
20915 if (PyErr_Occurred()) SWIG_fail;
20916 }
20917 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
20918 return resultobj;
20919 fail:
20920 return NULL;
20921 }
20922
20923
20924 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20925 PyObject *obj;
20926 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20927 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
20928 return SWIG_Py_Void();
20929 }
20930
20931 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20932 return SWIG_Python_InitShadowInstance(args);
20933 }
20934
20935 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20936 PyObject *resultobj = 0;
20937 wxDC *arg1 = 0 ;
20938 bool arg2 ;
20939 wxMirrorDC *result = 0 ;
20940 void *argp1 = 0 ;
20941 int res1 = 0 ;
20942 bool val2 ;
20943 int ecode2 = 0 ;
20944 PyObject * obj0 = 0 ;
20945 PyObject * obj1 = 0 ;
20946 char * kwnames[] = {
20947 (char *) "dc",(char *) "mirror", NULL
20948 };
20949
20950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
20951 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
20952 if (!SWIG_IsOK(res1)) {
20953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20954 }
20955 if (!argp1) {
20956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20957 }
20958 arg1 = reinterpret_cast< wxDC * >(argp1);
20959 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20960 if (!SWIG_IsOK(ecode2)) {
20961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
20962 }
20963 arg2 = static_cast< bool >(val2);
20964 {
20965 if (!wxPyCheckForApp()) SWIG_fail;
20966 PyThreadState* __tstate = wxPyBeginAllowThreads();
20967 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
20968 wxPyEndAllowThreads(__tstate);
20969 if (PyErr_Occurred()) SWIG_fail;
20970 }
20971 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
20972 return resultobj;
20973 fail:
20974 return NULL;
20975 }
20976
20977
20978 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20979 PyObject *obj;
20980 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20981 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
20982 return SWIG_Py_Void();
20983 }
20984
20985 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20986 return SWIG_Python_InitShadowInstance(args);
20987 }
20988
20989 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20990 PyObject *resultobj = 0;
20991 wxPrintData *arg1 = 0 ;
20992 wxPostScriptDC *result = 0 ;
20993 void *argp1 = 0 ;
20994 int res1 = 0 ;
20995 PyObject * obj0 = 0 ;
20996 char * kwnames[] = {
20997 (char *) "printData", NULL
20998 };
20999
21000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
21001 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21002 if (!SWIG_IsOK(res1)) {
21003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21004 }
21005 if (!argp1) {
21006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21007 }
21008 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21009 {
21010 if (!wxPyCheckForApp()) SWIG_fail;
21011 PyThreadState* __tstate = wxPyBeginAllowThreads();
21012 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
21013 wxPyEndAllowThreads(__tstate);
21014 if (PyErr_Occurred()) SWIG_fail;
21015 }
21016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
21017 return resultobj;
21018 fail:
21019 return NULL;
21020 }
21021
21022
21023 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21024 PyObject *resultobj = 0;
21025 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21026 wxPrintData *result = 0 ;
21027 void *argp1 = 0 ;
21028 int res1 = 0 ;
21029 PyObject *swig_obj[1] ;
21030
21031 if (!args) SWIG_fail;
21032 swig_obj[0] = args;
21033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21034 if (!SWIG_IsOK(res1)) {
21035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21036 }
21037 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21038 {
21039 PyThreadState* __tstate = wxPyBeginAllowThreads();
21040 {
21041 wxPrintData &_result_ref = (arg1)->GetPrintData();
21042 result = (wxPrintData *) &_result_ref;
21043 }
21044 wxPyEndAllowThreads(__tstate);
21045 if (PyErr_Occurred()) SWIG_fail;
21046 }
21047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
21048 return resultobj;
21049 fail:
21050 return NULL;
21051 }
21052
21053
21054 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21055 PyObject *resultobj = 0;
21056 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21057 wxPrintData *arg2 = 0 ;
21058 void *argp1 = 0 ;
21059 int res1 = 0 ;
21060 void *argp2 = 0 ;
21061 int res2 = 0 ;
21062 PyObject * obj0 = 0 ;
21063 PyObject * obj1 = 0 ;
21064 char * kwnames[] = {
21065 (char *) "self",(char *) "data", NULL
21066 };
21067
21068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
21069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21070 if (!SWIG_IsOK(res1)) {
21071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21072 }
21073 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21074 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
21075 if (!SWIG_IsOK(res2)) {
21076 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21077 }
21078 if (!argp2) {
21079 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21080 }
21081 arg2 = reinterpret_cast< wxPrintData * >(argp2);
21082 {
21083 PyThreadState* __tstate = wxPyBeginAllowThreads();
21084 (arg1)->SetPrintData((wxPrintData const &)*arg2);
21085 wxPyEndAllowThreads(__tstate);
21086 if (PyErr_Occurred()) SWIG_fail;
21087 }
21088 resultobj = SWIG_Py_Void();
21089 return resultobj;
21090 fail:
21091 return NULL;
21092 }
21093
21094
21095 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21096 PyObject *resultobj = 0;
21097 int arg1 ;
21098 int val1 ;
21099 int ecode1 = 0 ;
21100 PyObject * obj0 = 0 ;
21101 char * kwnames[] = {
21102 (char *) "ppi", NULL
21103 };
21104
21105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
21106 ecode1 = SWIG_AsVal_int(obj0, &val1);
21107 if (!SWIG_IsOK(ecode1)) {
21108 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21109 }
21110 arg1 = static_cast< int >(val1);
21111 {
21112 PyThreadState* __tstate = wxPyBeginAllowThreads();
21113 wxPostScriptDC::SetResolution(arg1);
21114 wxPyEndAllowThreads(__tstate);
21115 if (PyErr_Occurred()) SWIG_fail;
21116 }
21117 resultobj = SWIG_Py_Void();
21118 return resultobj;
21119 fail:
21120 return NULL;
21121 }
21122
21123
21124 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21125 PyObject *resultobj = 0;
21126 int result;
21127
21128 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
21129 {
21130 PyThreadState* __tstate = wxPyBeginAllowThreads();
21131 result = (int)wxPostScriptDC::GetResolution();
21132 wxPyEndAllowThreads(__tstate);
21133 if (PyErr_Occurred()) SWIG_fail;
21134 }
21135 resultobj = SWIG_From_int(static_cast< int >(result));
21136 return resultobj;
21137 fail:
21138 return NULL;
21139 }
21140
21141
21142 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21143 PyObject *obj;
21144 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21145 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
21146 return SWIG_Py_Void();
21147 }
21148
21149 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21150 return SWIG_Python_InitShadowInstance(args);
21151 }
21152
21153 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21154 PyObject *resultobj = 0;
21155 wxString const &arg1_defvalue = wxPyEmptyString ;
21156 wxString *arg1 = (wxString *) &arg1_defvalue ;
21157 wxMetaFile *result = 0 ;
21158 bool temp1 = false ;
21159 PyObject * obj0 = 0 ;
21160 char * kwnames[] = {
21161 (char *) "filename", NULL
21162 };
21163
21164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
21165 if (obj0) {
21166 {
21167 arg1 = wxString_in_helper(obj0);
21168 if (arg1 == NULL) SWIG_fail;
21169 temp1 = true;
21170 }
21171 }
21172 {
21173 if (!wxPyCheckForApp()) SWIG_fail;
21174 PyThreadState* __tstate = wxPyBeginAllowThreads();
21175 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
21176 wxPyEndAllowThreads(__tstate);
21177 if (PyErr_Occurred()) SWIG_fail;
21178 }
21179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
21180 {
21181 if (temp1)
21182 delete arg1;
21183 }
21184 return resultobj;
21185 fail:
21186 {
21187 if (temp1)
21188 delete arg1;
21189 }
21190 return NULL;
21191 }
21192
21193
21194 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21195 PyObject *resultobj = 0;
21196 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21197 void *argp1 = 0 ;
21198 int res1 = 0 ;
21199 PyObject *swig_obj[1] ;
21200
21201 if (!args) SWIG_fail;
21202 swig_obj[0] = args;
21203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
21204 if (!SWIG_IsOK(res1)) {
21205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21206 }
21207 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21208 {
21209 PyThreadState* __tstate = wxPyBeginAllowThreads();
21210 delete arg1;
21211
21212 wxPyEndAllowThreads(__tstate);
21213 if (PyErr_Occurred()) SWIG_fail;
21214 }
21215 resultobj = SWIG_Py_Void();
21216 return resultobj;
21217 fail:
21218 return NULL;
21219 }
21220
21221
21222 SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21223 PyObject *resultobj = 0;
21224 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21225 bool result;
21226 void *argp1 = 0 ;
21227 int res1 = 0 ;
21228 PyObject *swig_obj[1] ;
21229
21230 if (!args) SWIG_fail;
21231 swig_obj[0] = args;
21232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21233 if (!SWIG_IsOK(res1)) {
21234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21235 }
21236 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21237 {
21238 PyThreadState* __tstate = wxPyBeginAllowThreads();
21239 result = (bool)(arg1)->Ok();
21240 wxPyEndAllowThreads(__tstate);
21241 if (PyErr_Occurred()) SWIG_fail;
21242 }
21243 {
21244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21245 }
21246 return resultobj;
21247 fail:
21248 return NULL;
21249 }
21250
21251
21252 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21253 PyObject *resultobj = 0;
21254 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21255 int arg2 = (int) 0 ;
21256 int arg3 = (int) 0 ;
21257 bool result;
21258 void *argp1 = 0 ;
21259 int res1 = 0 ;
21260 int val2 ;
21261 int ecode2 = 0 ;
21262 int val3 ;
21263 int ecode3 = 0 ;
21264 PyObject * obj0 = 0 ;
21265 PyObject * obj1 = 0 ;
21266 PyObject * obj2 = 0 ;
21267 char * kwnames[] = {
21268 (char *) "self",(char *) "width",(char *) "height", NULL
21269 };
21270
21271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21273 if (!SWIG_IsOK(res1)) {
21274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21275 }
21276 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21277 if (obj1) {
21278 ecode2 = SWIG_AsVal_int(obj1, &val2);
21279 if (!SWIG_IsOK(ecode2)) {
21280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
21281 }
21282 arg2 = static_cast< int >(val2);
21283 }
21284 if (obj2) {
21285 ecode3 = SWIG_AsVal_int(obj2, &val3);
21286 if (!SWIG_IsOK(ecode3)) {
21287 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
21288 }
21289 arg3 = static_cast< int >(val3);
21290 }
21291 {
21292 PyThreadState* __tstate = wxPyBeginAllowThreads();
21293 result = (bool)(arg1)->SetClipboard(arg2,arg3);
21294 wxPyEndAllowThreads(__tstate);
21295 if (PyErr_Occurred()) SWIG_fail;
21296 }
21297 {
21298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21299 }
21300 return resultobj;
21301 fail:
21302 return NULL;
21303 }
21304
21305
21306 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21307 PyObject *resultobj = 0;
21308 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21309 wxSize result;
21310 void *argp1 = 0 ;
21311 int res1 = 0 ;
21312 PyObject *swig_obj[1] ;
21313
21314 if (!args) SWIG_fail;
21315 swig_obj[0] = args;
21316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21317 if (!SWIG_IsOK(res1)) {
21318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21319 }
21320 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21321 {
21322 PyThreadState* __tstate = wxPyBeginAllowThreads();
21323 result = (arg1)->GetSize();
21324 wxPyEndAllowThreads(__tstate);
21325 if (PyErr_Occurred()) SWIG_fail;
21326 }
21327 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21328 return resultobj;
21329 fail:
21330 return NULL;
21331 }
21332
21333
21334 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21335 PyObject *resultobj = 0;
21336 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21337 int result;
21338 void *argp1 = 0 ;
21339 int res1 = 0 ;
21340 PyObject *swig_obj[1] ;
21341
21342 if (!args) SWIG_fail;
21343 swig_obj[0] = args;
21344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21345 if (!SWIG_IsOK(res1)) {
21346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21347 }
21348 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21349 {
21350 PyThreadState* __tstate = wxPyBeginAllowThreads();
21351 result = (int)(arg1)->GetWidth();
21352 wxPyEndAllowThreads(__tstate);
21353 if (PyErr_Occurred()) SWIG_fail;
21354 }
21355 resultobj = SWIG_From_int(static_cast< int >(result));
21356 return resultobj;
21357 fail:
21358 return NULL;
21359 }
21360
21361
21362 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21363 PyObject *resultobj = 0;
21364 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21365 int result;
21366 void *argp1 = 0 ;
21367 int res1 = 0 ;
21368 PyObject *swig_obj[1] ;
21369
21370 if (!args) SWIG_fail;
21371 swig_obj[0] = args;
21372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21373 if (!SWIG_IsOK(res1)) {
21374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21375 }
21376 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21377 {
21378 PyThreadState* __tstate = wxPyBeginAllowThreads();
21379 result = (int)(arg1)->GetHeight();
21380 wxPyEndAllowThreads(__tstate);
21381 if (PyErr_Occurred()) SWIG_fail;
21382 }
21383 resultobj = SWIG_From_int(static_cast< int >(result));
21384 return resultobj;
21385 fail:
21386 return NULL;
21387 }
21388
21389
21390 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21391 PyObject *obj;
21392 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21393 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
21394 return SWIG_Py_Void();
21395 }
21396
21397 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21398 return SWIG_Python_InitShadowInstance(args);
21399 }
21400
21401 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21402 PyObject *resultobj = 0;
21403 wxString const &arg1_defvalue = wxPyEmptyString ;
21404 wxString *arg1 = (wxString *) &arg1_defvalue ;
21405 int arg2 = (int) 0 ;
21406 int arg3 = (int) 0 ;
21407 wxString const &arg4_defvalue = wxPyEmptyString ;
21408 wxString *arg4 = (wxString *) &arg4_defvalue ;
21409 wxMetaFileDC *result = 0 ;
21410 bool temp1 = false ;
21411 int val2 ;
21412 int ecode2 = 0 ;
21413 int val3 ;
21414 int ecode3 = 0 ;
21415 bool temp4 = false ;
21416 PyObject * obj0 = 0 ;
21417 PyObject * obj1 = 0 ;
21418 PyObject * obj2 = 0 ;
21419 PyObject * obj3 = 0 ;
21420 char * kwnames[] = {
21421 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
21422 };
21423
21424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21425 if (obj0) {
21426 {
21427 arg1 = wxString_in_helper(obj0);
21428 if (arg1 == NULL) SWIG_fail;
21429 temp1 = true;
21430 }
21431 }
21432 if (obj1) {
21433 ecode2 = SWIG_AsVal_int(obj1, &val2);
21434 if (!SWIG_IsOK(ecode2)) {
21435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
21436 }
21437 arg2 = static_cast< int >(val2);
21438 }
21439 if (obj2) {
21440 ecode3 = SWIG_AsVal_int(obj2, &val3);
21441 if (!SWIG_IsOK(ecode3)) {
21442 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
21443 }
21444 arg3 = static_cast< int >(val3);
21445 }
21446 if (obj3) {
21447 {
21448 arg4 = wxString_in_helper(obj3);
21449 if (arg4 == NULL) SWIG_fail;
21450 temp4 = true;
21451 }
21452 }
21453 {
21454 if (!wxPyCheckForApp()) SWIG_fail;
21455 PyThreadState* __tstate = wxPyBeginAllowThreads();
21456 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
21457 wxPyEndAllowThreads(__tstate);
21458 if (PyErr_Occurred()) SWIG_fail;
21459 }
21460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
21461 {
21462 if (temp1)
21463 delete arg1;
21464 }
21465 {
21466 if (temp4)
21467 delete arg4;
21468 }
21469 return resultobj;
21470 fail:
21471 {
21472 if (temp1)
21473 delete arg1;
21474 }
21475 {
21476 if (temp4)
21477 delete arg4;
21478 }
21479 return NULL;
21480 }
21481
21482
21483 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21484 PyObject *resultobj = 0;
21485 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
21486 wxMetaFile *result = 0 ;
21487 void *argp1 = 0 ;
21488 int res1 = 0 ;
21489 PyObject *swig_obj[1] ;
21490
21491 if (!args) SWIG_fail;
21492 swig_obj[0] = args;
21493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
21494 if (!SWIG_IsOK(res1)) {
21495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
21496 }
21497 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
21498 {
21499 PyThreadState* __tstate = wxPyBeginAllowThreads();
21500 result = (wxMetaFile *)(arg1)->Close();
21501 wxPyEndAllowThreads(__tstate);
21502 if (PyErr_Occurred()) SWIG_fail;
21503 }
21504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
21505 return resultobj;
21506 fail:
21507 return NULL;
21508 }
21509
21510
21511 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21512 PyObject *obj;
21513 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21514 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
21515 return SWIG_Py_Void();
21516 }
21517
21518 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21519 return SWIG_Python_InitShadowInstance(args);
21520 }
21521
21522 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21523 PyObject *resultobj = 0;
21524 wxPrintData *arg1 = 0 ;
21525 wxPrinterDC *result = 0 ;
21526 void *argp1 = 0 ;
21527 int res1 = 0 ;
21528 PyObject * obj0 = 0 ;
21529 char * kwnames[] = {
21530 (char *) "printData", NULL
21531 };
21532
21533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
21534 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21535 if (!SWIG_IsOK(res1)) {
21536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21537 }
21538 if (!argp1) {
21539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21540 }
21541 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21542 {
21543 if (!wxPyCheckForApp()) SWIG_fail;
21544 PyThreadState* __tstate = wxPyBeginAllowThreads();
21545 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
21546 wxPyEndAllowThreads(__tstate);
21547 if (PyErr_Occurred()) SWIG_fail;
21548 }
21549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
21550 return resultobj;
21551 fail:
21552 return NULL;
21553 }
21554
21555
21556 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21557 PyObject *obj;
21558 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21559 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
21560 return SWIG_Py_Void();
21561 }
21562
21563 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21564 return SWIG_Python_InitShadowInstance(args);
21565 }
21566
21567 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21568 PyObject *resultobj = 0;
21569 int arg1 ;
21570 int arg2 ;
21571 int arg3 = (int) true ;
21572 int arg4 = (int) 1 ;
21573 wxImageList *result = 0 ;
21574 int val1 ;
21575 int ecode1 = 0 ;
21576 int val2 ;
21577 int ecode2 = 0 ;
21578 int val3 ;
21579 int ecode3 = 0 ;
21580 int val4 ;
21581 int ecode4 = 0 ;
21582 PyObject * obj0 = 0 ;
21583 PyObject * obj1 = 0 ;
21584 PyObject * obj2 = 0 ;
21585 PyObject * obj3 = 0 ;
21586 char * kwnames[] = {
21587 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
21588 };
21589
21590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21591 ecode1 = SWIG_AsVal_int(obj0, &val1);
21592 if (!SWIG_IsOK(ecode1)) {
21593 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
21594 }
21595 arg1 = static_cast< int >(val1);
21596 ecode2 = SWIG_AsVal_int(obj1, &val2);
21597 if (!SWIG_IsOK(ecode2)) {
21598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
21599 }
21600 arg2 = static_cast< int >(val2);
21601 if (obj2) {
21602 ecode3 = SWIG_AsVal_int(obj2, &val3);
21603 if (!SWIG_IsOK(ecode3)) {
21604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
21605 }
21606 arg3 = static_cast< int >(val3);
21607 }
21608 if (obj3) {
21609 ecode4 = SWIG_AsVal_int(obj3, &val4);
21610 if (!SWIG_IsOK(ecode4)) {
21611 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
21612 }
21613 arg4 = static_cast< int >(val4);
21614 }
21615 {
21616 if (!wxPyCheckForApp()) SWIG_fail;
21617 PyThreadState* __tstate = wxPyBeginAllowThreads();
21618 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
21619 wxPyEndAllowThreads(__tstate);
21620 if (PyErr_Occurred()) SWIG_fail;
21621 }
21622 {
21623 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
21624 }
21625 return resultobj;
21626 fail:
21627 return NULL;
21628 }
21629
21630
21631 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21632 PyObject *resultobj = 0;
21633 wxImageList *arg1 = (wxImageList *) 0 ;
21634 void *argp1 = 0 ;
21635 int res1 = 0 ;
21636 PyObject *swig_obj[1] ;
21637
21638 if (!args) SWIG_fail;
21639 swig_obj[0] = args;
21640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
21641 if (!SWIG_IsOK(res1)) {
21642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
21643 }
21644 arg1 = reinterpret_cast< wxImageList * >(argp1);
21645 {
21646 PyThreadState* __tstate = wxPyBeginAllowThreads();
21647 delete arg1;
21648
21649 wxPyEndAllowThreads(__tstate);
21650 if (PyErr_Occurred()) SWIG_fail;
21651 }
21652 resultobj = SWIG_Py_Void();
21653 return resultobj;
21654 fail:
21655 return NULL;
21656 }
21657
21658
21659 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21660 PyObject *resultobj = 0;
21661 wxImageList *arg1 = (wxImageList *) 0 ;
21662 wxBitmap *arg2 = 0 ;
21663 wxBitmap const &arg3_defvalue = wxNullBitmap ;
21664 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
21665 int result;
21666 void *argp1 = 0 ;
21667 int res1 = 0 ;
21668 void *argp2 = 0 ;
21669 int res2 = 0 ;
21670 void *argp3 = 0 ;
21671 int res3 = 0 ;
21672 PyObject * obj0 = 0 ;
21673 PyObject * obj1 = 0 ;
21674 PyObject * obj2 = 0 ;
21675 char * kwnames[] = {
21676 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
21677 };
21678
21679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21681 if (!SWIG_IsOK(res1)) {
21682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
21683 }
21684 arg1 = reinterpret_cast< wxImageList * >(argp1);
21685 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21686 if (!SWIG_IsOK(res2)) {
21687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21688 }
21689 if (!argp2) {
21690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21691 }
21692 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21693 if (obj2) {
21694 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21695 if (!SWIG_IsOK(res3)) {
21696 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21697 }
21698 if (!argp3) {
21699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21700 }
21701 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21702 }
21703 {
21704 PyThreadState* __tstate = wxPyBeginAllowThreads();
21705 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
21706 wxPyEndAllowThreads(__tstate);
21707 if (PyErr_Occurred()) SWIG_fail;
21708 }
21709 resultobj = SWIG_From_int(static_cast< int >(result));
21710 return resultobj;
21711 fail:
21712 return NULL;
21713 }
21714
21715
21716 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21717 PyObject *resultobj = 0;
21718 wxImageList *arg1 = (wxImageList *) 0 ;
21719 wxBitmap *arg2 = 0 ;
21720 wxColour *arg3 = 0 ;
21721 int result;
21722 void *argp1 = 0 ;
21723 int res1 = 0 ;
21724 void *argp2 = 0 ;
21725 int res2 = 0 ;
21726 wxColour temp3 ;
21727 PyObject * obj0 = 0 ;
21728 PyObject * obj1 = 0 ;
21729 PyObject * obj2 = 0 ;
21730 char * kwnames[] = {
21731 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
21732 };
21733
21734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21736 if (!SWIG_IsOK(res1)) {
21737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
21738 }
21739 arg1 = reinterpret_cast< wxImageList * >(argp1);
21740 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21741 if (!SWIG_IsOK(res2)) {
21742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21743 }
21744 if (!argp2) {
21745 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21746 }
21747 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21748 {
21749 arg3 = &temp3;
21750 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
21751 }
21752 {
21753 PyThreadState* __tstate = wxPyBeginAllowThreads();
21754 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
21755 wxPyEndAllowThreads(__tstate);
21756 if (PyErr_Occurred()) SWIG_fail;
21757 }
21758 resultobj = SWIG_From_int(static_cast< int >(result));
21759 return resultobj;
21760 fail:
21761 return NULL;
21762 }
21763
21764
21765 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21766 PyObject *resultobj = 0;
21767 wxImageList *arg1 = (wxImageList *) 0 ;
21768 wxIcon *arg2 = 0 ;
21769 int result;
21770 void *argp1 = 0 ;
21771 int res1 = 0 ;
21772 void *argp2 = 0 ;
21773 int res2 = 0 ;
21774 PyObject * obj0 = 0 ;
21775 PyObject * obj1 = 0 ;
21776 char * kwnames[] = {
21777 (char *) "self",(char *) "icon", NULL
21778 };
21779
21780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21782 if (!SWIG_IsOK(res1)) {
21783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
21784 }
21785 arg1 = reinterpret_cast< wxImageList * >(argp1);
21786 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
21787 if (!SWIG_IsOK(res2)) {
21788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21789 }
21790 if (!argp2) {
21791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21792 }
21793 arg2 = reinterpret_cast< wxIcon * >(argp2);
21794 {
21795 PyThreadState* __tstate = wxPyBeginAllowThreads();
21796 result = (int)(arg1)->Add((wxIcon const &)*arg2);
21797 wxPyEndAllowThreads(__tstate);
21798 if (PyErr_Occurred()) SWIG_fail;
21799 }
21800 resultobj = SWIG_From_int(static_cast< int >(result));
21801 return resultobj;
21802 fail:
21803 return NULL;
21804 }
21805
21806
21807 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21808 PyObject *resultobj = 0;
21809 wxImageList *arg1 = (wxImageList *) 0 ;
21810 int arg2 ;
21811 SwigValueWrapper<wxBitmap > result;
21812 void *argp1 = 0 ;
21813 int res1 = 0 ;
21814 int val2 ;
21815 int ecode2 = 0 ;
21816 PyObject * obj0 = 0 ;
21817 PyObject * obj1 = 0 ;
21818 char * kwnames[] = {
21819 (char *) "self",(char *) "index", NULL
21820 };
21821
21822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
21823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21824 if (!SWIG_IsOK(res1)) {
21825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
21826 }
21827 arg1 = reinterpret_cast< wxImageList * >(argp1);
21828 ecode2 = SWIG_AsVal_int(obj1, &val2);
21829 if (!SWIG_IsOK(ecode2)) {
21830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
21831 }
21832 arg2 = static_cast< int >(val2);
21833 {
21834 PyThreadState* __tstate = wxPyBeginAllowThreads();
21835 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
21836 wxPyEndAllowThreads(__tstate);
21837 if (PyErr_Occurred()) SWIG_fail;
21838 }
21839 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
21840 return resultobj;
21841 fail:
21842 return NULL;
21843 }
21844
21845
21846 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21847 PyObject *resultobj = 0;
21848 wxImageList *arg1 = (wxImageList *) 0 ;
21849 int arg2 ;
21850 wxIcon result;
21851 void *argp1 = 0 ;
21852 int res1 = 0 ;
21853 int val2 ;
21854 int ecode2 = 0 ;
21855 PyObject * obj0 = 0 ;
21856 PyObject * obj1 = 0 ;
21857 char * kwnames[] = {
21858 (char *) "self",(char *) "index", NULL
21859 };
21860
21861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21863 if (!SWIG_IsOK(res1)) {
21864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
21865 }
21866 arg1 = reinterpret_cast< wxImageList * >(argp1);
21867 ecode2 = SWIG_AsVal_int(obj1, &val2);
21868 if (!SWIG_IsOK(ecode2)) {
21869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
21870 }
21871 arg2 = static_cast< int >(val2);
21872 {
21873 PyThreadState* __tstate = wxPyBeginAllowThreads();
21874 result = ((wxImageList const *)arg1)->GetIcon(arg2);
21875 wxPyEndAllowThreads(__tstate);
21876 if (PyErr_Occurred()) SWIG_fail;
21877 }
21878 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
21879 return resultobj;
21880 fail:
21881 return NULL;
21882 }
21883
21884
21885 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21886 PyObject *resultobj = 0;
21887 wxImageList *arg1 = (wxImageList *) 0 ;
21888 int arg2 ;
21889 wxBitmap *arg3 = 0 ;
21890 wxBitmap const &arg4_defvalue = wxNullBitmap ;
21891 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
21892 bool result;
21893 void *argp1 = 0 ;
21894 int res1 = 0 ;
21895 int val2 ;
21896 int ecode2 = 0 ;
21897 void *argp3 = 0 ;
21898 int res3 = 0 ;
21899 void *argp4 = 0 ;
21900 int res4 = 0 ;
21901 PyObject * obj0 = 0 ;
21902 PyObject * obj1 = 0 ;
21903 PyObject * obj2 = 0 ;
21904 PyObject * obj3 = 0 ;
21905 char * kwnames[] = {
21906 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
21907 };
21908
21909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21911 if (!SWIG_IsOK(res1)) {
21912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
21913 }
21914 arg1 = reinterpret_cast< wxImageList * >(argp1);
21915 ecode2 = SWIG_AsVal_int(obj1, &val2);
21916 if (!SWIG_IsOK(ecode2)) {
21917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
21918 }
21919 arg2 = static_cast< int >(val2);
21920 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21921 if (!SWIG_IsOK(res3)) {
21922 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21923 }
21924 if (!argp3) {
21925 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21926 }
21927 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21928 if (obj3) {
21929 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
21930 if (!SWIG_IsOK(res4)) {
21931 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
21932 }
21933 if (!argp4) {
21934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
21935 }
21936 arg4 = reinterpret_cast< wxBitmap * >(argp4);
21937 }
21938 {
21939 PyThreadState* __tstate = wxPyBeginAllowThreads();
21940 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
21941 wxPyEndAllowThreads(__tstate);
21942 if (PyErr_Occurred()) SWIG_fail;
21943 }
21944 {
21945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21946 }
21947 return resultobj;
21948 fail:
21949 return NULL;
21950 }
21951
21952
21953 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21954 PyObject *resultobj = 0;
21955 wxImageList *arg1 = (wxImageList *) 0 ;
21956 int arg2 ;
21957 wxDC *arg3 = 0 ;
21958 int arg4 ;
21959 int arg5 ;
21960 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
21961 bool arg7 = (bool) (bool)false ;
21962 bool result;
21963 void *argp1 = 0 ;
21964 int res1 = 0 ;
21965 int val2 ;
21966 int ecode2 = 0 ;
21967 void *argp3 = 0 ;
21968 int res3 = 0 ;
21969 int val4 ;
21970 int ecode4 = 0 ;
21971 int val5 ;
21972 int ecode5 = 0 ;
21973 int val6 ;
21974 int ecode6 = 0 ;
21975 bool val7 ;
21976 int ecode7 = 0 ;
21977 PyObject * obj0 = 0 ;
21978 PyObject * obj1 = 0 ;
21979 PyObject * obj2 = 0 ;
21980 PyObject * obj3 = 0 ;
21981 PyObject * obj4 = 0 ;
21982 PyObject * obj5 = 0 ;
21983 PyObject * obj6 = 0 ;
21984 char * kwnames[] = {
21985 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
21986 };
21987
21988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21990 if (!SWIG_IsOK(res1)) {
21991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
21992 }
21993 arg1 = reinterpret_cast< wxImageList * >(argp1);
21994 ecode2 = SWIG_AsVal_int(obj1, &val2);
21995 if (!SWIG_IsOK(ecode2)) {
21996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
21997 }
21998 arg2 = static_cast< int >(val2);
21999 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
22000 if (!SWIG_IsOK(res3)) {
22001 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22002 }
22003 if (!argp3) {
22004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22005 }
22006 arg3 = reinterpret_cast< wxDC * >(argp3);
22007 ecode4 = SWIG_AsVal_int(obj3, &val4);
22008 if (!SWIG_IsOK(ecode4)) {
22009 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
22010 }
22011 arg4 = static_cast< int >(val4);
22012 ecode5 = SWIG_AsVal_int(obj4, &val5);
22013 if (!SWIG_IsOK(ecode5)) {
22014 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
22015 }
22016 arg5 = static_cast< int >(val5);
22017 if (obj5) {
22018 ecode6 = SWIG_AsVal_int(obj5, &val6);
22019 if (!SWIG_IsOK(ecode6)) {
22020 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
22021 }
22022 arg6 = static_cast< int >(val6);
22023 }
22024 if (obj6) {
22025 ecode7 = SWIG_AsVal_bool(obj6, &val7);
22026 if (!SWIG_IsOK(ecode7)) {
22027 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
22028 }
22029 arg7 = static_cast< bool >(val7);
22030 }
22031 {
22032 PyThreadState* __tstate = wxPyBeginAllowThreads();
22033 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
22034 wxPyEndAllowThreads(__tstate);
22035 if (PyErr_Occurred()) SWIG_fail;
22036 }
22037 {
22038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22039 }
22040 return resultobj;
22041 fail:
22042 return NULL;
22043 }
22044
22045
22046 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22047 PyObject *resultobj = 0;
22048 wxImageList *arg1 = (wxImageList *) 0 ;
22049 int result;
22050 void *argp1 = 0 ;
22051 int res1 = 0 ;
22052 PyObject *swig_obj[1] ;
22053
22054 if (!args) SWIG_fail;
22055 swig_obj[0] = args;
22056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22057 if (!SWIG_IsOK(res1)) {
22058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
22059 }
22060 arg1 = reinterpret_cast< wxImageList * >(argp1);
22061 {
22062 PyThreadState* __tstate = wxPyBeginAllowThreads();
22063 result = (int)(arg1)->GetImageCount();
22064 wxPyEndAllowThreads(__tstate);
22065 if (PyErr_Occurred()) SWIG_fail;
22066 }
22067 resultobj = SWIG_From_int(static_cast< int >(result));
22068 return resultobj;
22069 fail:
22070 return NULL;
22071 }
22072
22073
22074 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22075 PyObject *resultobj = 0;
22076 wxImageList *arg1 = (wxImageList *) 0 ;
22077 int arg2 ;
22078 bool result;
22079 void *argp1 = 0 ;
22080 int res1 = 0 ;
22081 int val2 ;
22082 int ecode2 = 0 ;
22083 PyObject * obj0 = 0 ;
22084 PyObject * obj1 = 0 ;
22085 char * kwnames[] = {
22086 (char *) "self",(char *) "index", NULL
22087 };
22088
22089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
22090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22091 if (!SWIG_IsOK(res1)) {
22092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
22093 }
22094 arg1 = reinterpret_cast< wxImageList * >(argp1);
22095 ecode2 = SWIG_AsVal_int(obj1, &val2);
22096 if (!SWIG_IsOK(ecode2)) {
22097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
22098 }
22099 arg2 = static_cast< int >(val2);
22100 {
22101 PyThreadState* __tstate = wxPyBeginAllowThreads();
22102 result = (bool)(arg1)->Remove(arg2);
22103 wxPyEndAllowThreads(__tstate);
22104 if (PyErr_Occurred()) SWIG_fail;
22105 }
22106 {
22107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22108 }
22109 return resultobj;
22110 fail:
22111 return NULL;
22112 }
22113
22114
22115 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22116 PyObject *resultobj = 0;
22117 wxImageList *arg1 = (wxImageList *) 0 ;
22118 bool result;
22119 void *argp1 = 0 ;
22120 int res1 = 0 ;
22121 PyObject *swig_obj[1] ;
22122
22123 if (!args) SWIG_fail;
22124 swig_obj[0] = args;
22125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22126 if (!SWIG_IsOK(res1)) {
22127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
22128 }
22129 arg1 = reinterpret_cast< wxImageList * >(argp1);
22130 {
22131 PyThreadState* __tstate = wxPyBeginAllowThreads();
22132 result = (bool)(arg1)->RemoveAll();
22133 wxPyEndAllowThreads(__tstate);
22134 if (PyErr_Occurred()) SWIG_fail;
22135 }
22136 {
22137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22138 }
22139 return resultobj;
22140 fail:
22141 return NULL;
22142 }
22143
22144
22145 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22146 PyObject *resultobj = 0;
22147 wxImageList *arg1 = (wxImageList *) 0 ;
22148 int arg2 ;
22149 int *arg3 = 0 ;
22150 int *arg4 = 0 ;
22151 void *argp1 = 0 ;
22152 int res1 = 0 ;
22153 int val2 ;
22154 int ecode2 = 0 ;
22155 int temp3 ;
22156 int res3 = SWIG_TMPOBJ ;
22157 int temp4 ;
22158 int res4 = SWIG_TMPOBJ ;
22159 PyObject * obj0 = 0 ;
22160 PyObject * obj1 = 0 ;
22161 char * kwnames[] = {
22162 (char *) "self",(char *) "index", NULL
22163 };
22164
22165 arg3 = &temp3;
22166 arg4 = &temp4;
22167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
22168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22169 if (!SWIG_IsOK(res1)) {
22170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
22171 }
22172 arg1 = reinterpret_cast< wxImageList * >(argp1);
22173 ecode2 = SWIG_AsVal_int(obj1, &val2);
22174 if (!SWIG_IsOK(ecode2)) {
22175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
22176 }
22177 arg2 = static_cast< int >(val2);
22178 {
22179 PyThreadState* __tstate = wxPyBeginAllowThreads();
22180 (arg1)->GetSize(arg2,*arg3,*arg4);
22181 wxPyEndAllowThreads(__tstate);
22182 if (PyErr_Occurred()) SWIG_fail;
22183 }
22184 resultobj = SWIG_Py_Void();
22185 if (SWIG_IsTmpObj(res3)) {
22186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22187 } else {
22188 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22189 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22190 }
22191 if (SWIG_IsTmpObj(res4)) {
22192 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22193 } else {
22194 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22195 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22196 }
22197 return resultobj;
22198 fail:
22199 return NULL;
22200 }
22201
22202
22203 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22204 PyObject *obj;
22205 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22206 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
22207 return SWIG_Py_Void();
22208 }
22209
22210 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22211 return SWIG_Python_InitShadowInstance(args);
22212 }
22213
22214 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22215 PyObject *resultobj = 0;
22216 wxStockGDI *result = 0 ;
22217
22218 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
22219 {
22220 PyThreadState* __tstate = wxPyBeginAllowThreads();
22221 result = (wxStockGDI *)new wxStockGDI();
22222 wxPyEndAllowThreads(__tstate);
22223 if (PyErr_Occurred()) SWIG_fail;
22224 }
22225 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
22226 return resultobj;
22227 fail:
22228 return NULL;
22229 }
22230
22231
22232 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22233 PyObject *resultobj = 0;
22234 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22235 void *argp1 = 0 ;
22236 int res1 = 0 ;
22237 PyObject *swig_obj[1] ;
22238
22239 if (!args) SWIG_fail;
22240 swig_obj[0] = args;
22241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
22242 if (!SWIG_IsOK(res1)) {
22243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22244 }
22245 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22246 {
22247 PyThreadState* __tstate = wxPyBeginAllowThreads();
22248 delete arg1;
22249
22250 wxPyEndAllowThreads(__tstate);
22251 if (PyErr_Occurred()) SWIG_fail;
22252 }
22253 resultobj = SWIG_Py_Void();
22254 return resultobj;
22255 fail:
22256 return NULL;
22257 }
22258
22259
22260 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22261 PyObject *resultobj = 0;
22262
22263 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
22264 {
22265 PyThreadState* __tstate = wxPyBeginAllowThreads();
22266 wxStockGDI::DeleteAll();
22267 wxPyEndAllowThreads(__tstate);
22268 if (PyErr_Occurred()) SWIG_fail;
22269 }
22270 resultobj = SWIG_Py_Void();
22271 return resultobj;
22272 fail:
22273 return NULL;
22274 }
22275
22276
22277 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22278 PyObject *resultobj = 0;
22279 wxStockGDI *result = 0 ;
22280
22281 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
22282 {
22283 PyThreadState* __tstate = wxPyBeginAllowThreads();
22284 {
22285 wxStockGDI &_result_ref = wxStockGDI::instance();
22286 result = (wxStockGDI *) &_result_ref;
22287 }
22288 wxPyEndAllowThreads(__tstate);
22289 if (PyErr_Occurred()) SWIG_fail;
22290 }
22291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
22292 return resultobj;
22293 fail:
22294 return NULL;
22295 }
22296
22297
22298 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22299 PyObject *resultobj = 0;
22300 wxStockGDI::Item arg1 ;
22301 wxBrush *result = 0 ;
22302 int val1 ;
22303 int ecode1 = 0 ;
22304 PyObject * obj0 = 0 ;
22305 char * kwnames[] = {
22306 (char *) "item", NULL
22307 };
22308
22309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
22310 ecode1 = SWIG_AsVal_int(obj0, &val1);
22311 if (!SWIG_IsOK(ecode1)) {
22312 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22313 }
22314 arg1 = static_cast< wxStockGDI::Item >(val1);
22315 {
22316 PyThreadState* __tstate = wxPyBeginAllowThreads();
22317 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
22318 wxPyEndAllowThreads(__tstate);
22319 if (PyErr_Occurred()) SWIG_fail;
22320 }
22321 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22322 return resultobj;
22323 fail:
22324 return NULL;
22325 }
22326
22327
22328 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22329 PyObject *resultobj = 0;
22330 wxStockGDI::Item arg1 ;
22331 wxColour *result = 0 ;
22332 int val1 ;
22333 int ecode1 = 0 ;
22334 PyObject * obj0 = 0 ;
22335 char * kwnames[] = {
22336 (char *) "item", NULL
22337 };
22338
22339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
22340 ecode1 = SWIG_AsVal_int(obj0, &val1);
22341 if (!SWIG_IsOK(ecode1)) {
22342 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22343 }
22344 arg1 = static_cast< wxStockGDI::Item >(val1);
22345 {
22346 PyThreadState* __tstate = wxPyBeginAllowThreads();
22347 result = (wxColour *)wxStockGDI::GetColour(arg1);
22348 wxPyEndAllowThreads(__tstate);
22349 if (PyErr_Occurred()) SWIG_fail;
22350 }
22351 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22352 return resultobj;
22353 fail:
22354 return NULL;
22355 }
22356
22357
22358 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22359 PyObject *resultobj = 0;
22360 wxStockGDI::Item arg1 ;
22361 wxCursor *result = 0 ;
22362 int val1 ;
22363 int ecode1 = 0 ;
22364 PyObject * obj0 = 0 ;
22365 char * kwnames[] = {
22366 (char *) "item", NULL
22367 };
22368
22369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
22370 ecode1 = SWIG_AsVal_int(obj0, &val1);
22371 if (!SWIG_IsOK(ecode1)) {
22372 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22373 }
22374 arg1 = static_cast< wxStockGDI::Item >(val1);
22375 {
22376 PyThreadState* __tstate = wxPyBeginAllowThreads();
22377 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
22378 wxPyEndAllowThreads(__tstate);
22379 if (PyErr_Occurred()) SWIG_fail;
22380 }
22381 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
22382 return resultobj;
22383 fail:
22384 return NULL;
22385 }
22386
22387
22388 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22389 PyObject *resultobj = 0;
22390 wxStockGDI::Item arg1 ;
22391 wxPen *result = 0 ;
22392 int val1 ;
22393 int ecode1 = 0 ;
22394 PyObject * obj0 = 0 ;
22395 char * kwnames[] = {
22396 (char *) "item", NULL
22397 };
22398
22399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
22400 ecode1 = SWIG_AsVal_int(obj0, &val1);
22401 if (!SWIG_IsOK(ecode1)) {
22402 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22403 }
22404 arg1 = static_cast< wxStockGDI::Item >(val1);
22405 {
22406 PyThreadState* __tstate = wxPyBeginAllowThreads();
22407 result = (wxPen *)wxStockGDI::GetPen(arg1);
22408 wxPyEndAllowThreads(__tstate);
22409 if (PyErr_Occurred()) SWIG_fail;
22410 }
22411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22412 return resultobj;
22413 fail:
22414 return NULL;
22415 }
22416
22417
22418 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22419 PyObject *resultobj = 0;
22420 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22421 wxStockGDI::Item arg2 ;
22422 wxFont *result = 0 ;
22423 void *argp1 = 0 ;
22424 int res1 = 0 ;
22425 int val2 ;
22426 int ecode2 = 0 ;
22427 PyObject * obj0 = 0 ;
22428 PyObject * obj1 = 0 ;
22429 char * kwnames[] = {
22430 (char *) "self",(char *) "item", NULL
22431 };
22432
22433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
22434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
22435 if (!SWIG_IsOK(res1)) {
22436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22437 }
22438 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22439 ecode2 = SWIG_AsVal_int(obj1, &val2);
22440 if (!SWIG_IsOK(ecode2)) {
22441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
22442 }
22443 arg2 = static_cast< wxStockGDI::Item >(val2);
22444 {
22445 PyThreadState* __tstate = wxPyBeginAllowThreads();
22446 result = (wxFont *)(arg1)->GetFont(arg2);
22447 wxPyEndAllowThreads(__tstate);
22448 if (PyErr_Occurred()) SWIG_fail;
22449 }
22450 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22451 return resultobj;
22452 fail:
22453 return NULL;
22454 }
22455
22456
22457 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22458 PyObject *obj;
22459 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22460 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
22461 return SWIG_Py_Void();
22462 }
22463
22464 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22465 return SWIG_Python_InitShadowInstance(args);
22466 }
22467
22468 SWIGINTERN int NullBitmap_set(PyObject *) {
22469 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
22470 return 1;
22471 }
22472
22473
22474 SWIGINTERN PyObject *NullBitmap_get(void) {
22475 PyObject *pyobj = 0;
22476
22477 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
22478 return pyobj;
22479 }
22480
22481
22482 SWIGINTERN int NullIcon_set(PyObject *) {
22483 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
22484 return 1;
22485 }
22486
22487
22488 SWIGINTERN PyObject *NullIcon_get(void) {
22489 PyObject *pyobj = 0;
22490
22491 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
22492 return pyobj;
22493 }
22494
22495
22496 SWIGINTERN int NullCursor_set(PyObject *) {
22497 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
22498 return 1;
22499 }
22500
22501
22502 SWIGINTERN PyObject *NullCursor_get(void) {
22503 PyObject *pyobj = 0;
22504
22505 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
22506 return pyobj;
22507 }
22508
22509
22510 SWIGINTERN int NullPen_set(PyObject *) {
22511 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
22512 return 1;
22513 }
22514
22515
22516 SWIGINTERN PyObject *NullPen_get(void) {
22517 PyObject *pyobj = 0;
22518
22519 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
22520 return pyobj;
22521 }
22522
22523
22524 SWIGINTERN int NullBrush_set(PyObject *) {
22525 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
22526 return 1;
22527 }
22528
22529
22530 SWIGINTERN PyObject *NullBrush_get(void) {
22531 PyObject *pyobj = 0;
22532
22533 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
22534 return pyobj;
22535 }
22536
22537
22538 SWIGINTERN int NullPalette_set(PyObject *) {
22539 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
22540 return 1;
22541 }
22542
22543
22544 SWIGINTERN PyObject *NullPalette_get(void) {
22545 PyObject *pyobj = 0;
22546
22547 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
22548 return pyobj;
22549 }
22550
22551
22552 SWIGINTERN int NullFont_set(PyObject *) {
22553 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
22554 return 1;
22555 }
22556
22557
22558 SWIGINTERN PyObject *NullFont_get(void) {
22559 PyObject *pyobj = 0;
22560
22561 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
22562 return pyobj;
22563 }
22564
22565
22566 SWIGINTERN int NullColour_set(PyObject *) {
22567 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
22568 return 1;
22569 }
22570
22571
22572 SWIGINTERN PyObject *NullColour_get(void) {
22573 PyObject *pyobj = 0;
22574
22575 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
22576 return pyobj;
22577 }
22578
22579
22580 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22581 PyObject *resultobj = 0;
22582 wxGDIObjListBase *result = 0 ;
22583
22584 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
22585 {
22586 PyThreadState* __tstate = wxPyBeginAllowThreads();
22587 result = (wxGDIObjListBase *)new wxGDIObjListBase();
22588 wxPyEndAllowThreads(__tstate);
22589 if (PyErr_Occurred()) SWIG_fail;
22590 }
22591 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
22592 return resultobj;
22593 fail:
22594 return NULL;
22595 }
22596
22597
22598 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22599 PyObject *resultobj = 0;
22600 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
22601 void *argp1 = 0 ;
22602 int res1 = 0 ;
22603 PyObject *swig_obj[1] ;
22604
22605 if (!args) SWIG_fail;
22606 swig_obj[0] = args;
22607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
22608 if (!SWIG_IsOK(res1)) {
22609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
22610 }
22611 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
22612 {
22613 PyThreadState* __tstate = wxPyBeginAllowThreads();
22614 delete arg1;
22615
22616 wxPyEndAllowThreads(__tstate);
22617 if (PyErr_Occurred()) SWIG_fail;
22618 }
22619 resultobj = SWIG_Py_Void();
22620 return resultobj;
22621 fail:
22622 return NULL;
22623 }
22624
22625
22626 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22627 PyObject *obj;
22628 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22629 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
22630 return SWIG_Py_Void();
22631 }
22632
22633 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22634 return SWIG_Python_InitShadowInstance(args);
22635 }
22636
22637 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22638 PyObject *resultobj = 0;
22639 wxPenList *arg1 = (wxPenList *) 0 ;
22640 wxColour *arg2 = 0 ;
22641 int arg3 ;
22642 int arg4 ;
22643 wxPen *result = 0 ;
22644 void *argp1 = 0 ;
22645 int res1 = 0 ;
22646 wxColour temp2 ;
22647 int val3 ;
22648 int ecode3 = 0 ;
22649 int val4 ;
22650 int ecode4 = 0 ;
22651 PyObject * obj0 = 0 ;
22652 PyObject * obj1 = 0 ;
22653 PyObject * obj2 = 0 ;
22654 PyObject * obj3 = 0 ;
22655 char * kwnames[] = {
22656 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
22657 };
22658
22659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22661 if (!SWIG_IsOK(res1)) {
22662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22663 }
22664 arg1 = reinterpret_cast< wxPenList * >(argp1);
22665 {
22666 arg2 = &temp2;
22667 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22668 }
22669 ecode3 = SWIG_AsVal_int(obj2, &val3);
22670 if (!SWIG_IsOK(ecode3)) {
22671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
22672 }
22673 arg3 = static_cast< int >(val3);
22674 ecode4 = SWIG_AsVal_int(obj3, &val4);
22675 if (!SWIG_IsOK(ecode4)) {
22676 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
22677 }
22678 arg4 = static_cast< int >(val4);
22679 {
22680 PyThreadState* __tstate = wxPyBeginAllowThreads();
22681 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
22682 wxPyEndAllowThreads(__tstate);
22683 if (PyErr_Occurred()) SWIG_fail;
22684 }
22685 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22686 return resultobj;
22687 fail:
22688 return NULL;
22689 }
22690
22691
22692 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22693 PyObject *resultobj = 0;
22694 wxPenList *arg1 = (wxPenList *) 0 ;
22695 wxPen *arg2 = (wxPen *) 0 ;
22696 void *argp1 = 0 ;
22697 int res1 = 0 ;
22698 void *argp2 = 0 ;
22699 int res2 = 0 ;
22700 PyObject * obj0 = 0 ;
22701 PyObject * obj1 = 0 ;
22702 char * kwnames[] = {
22703 (char *) "self",(char *) "pen", NULL
22704 };
22705
22706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
22707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22708 if (!SWIG_IsOK(res1)) {
22709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
22710 }
22711 arg1 = reinterpret_cast< wxPenList * >(argp1);
22712 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22713 if (!SWIG_IsOK(res2)) {
22714 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
22715 }
22716 arg2 = reinterpret_cast< wxPen * >(argp2);
22717 {
22718 PyThreadState* __tstate = wxPyBeginAllowThreads();
22719 (arg1)->AddPen(arg2);
22720 wxPyEndAllowThreads(__tstate);
22721 if (PyErr_Occurred()) SWIG_fail;
22722 }
22723 resultobj = SWIG_Py_Void();
22724 return resultobj;
22725 fail:
22726 return NULL;
22727 }
22728
22729
22730 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22731 PyObject *resultobj = 0;
22732 wxPenList *arg1 = (wxPenList *) 0 ;
22733 wxPen *arg2 = (wxPen *) 0 ;
22734 void *argp1 = 0 ;
22735 int res1 = 0 ;
22736 void *argp2 = 0 ;
22737 int res2 = 0 ;
22738 PyObject * obj0 = 0 ;
22739 PyObject * obj1 = 0 ;
22740 char * kwnames[] = {
22741 (char *) "self",(char *) "pen", NULL
22742 };
22743
22744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
22745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22746 if (!SWIG_IsOK(res1)) {
22747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22748 }
22749 arg1 = reinterpret_cast< wxPenList * >(argp1);
22750 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22751 if (!SWIG_IsOK(res2)) {
22752 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
22753 }
22754 arg2 = reinterpret_cast< wxPen * >(argp2);
22755 {
22756 PyThreadState* __tstate = wxPyBeginAllowThreads();
22757 (arg1)->RemovePen(arg2);
22758 wxPyEndAllowThreads(__tstate);
22759 if (PyErr_Occurred()) SWIG_fail;
22760 }
22761 resultobj = SWIG_Py_Void();
22762 return resultobj;
22763 fail:
22764 return NULL;
22765 }
22766
22767
22768 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22769 PyObject *obj;
22770 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22771 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
22772 return SWIG_Py_Void();
22773 }
22774
22775 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22776 PyObject *resultobj = 0;
22777 wxBrushList *arg1 = (wxBrushList *) 0 ;
22778 wxColour *arg2 = 0 ;
22779 int arg3 = (int) wxSOLID ;
22780 wxBrush *result = 0 ;
22781 void *argp1 = 0 ;
22782 int res1 = 0 ;
22783 wxColour temp2 ;
22784 int val3 ;
22785 int ecode3 = 0 ;
22786 PyObject * obj0 = 0 ;
22787 PyObject * obj1 = 0 ;
22788 PyObject * obj2 = 0 ;
22789 char * kwnames[] = {
22790 (char *) "self",(char *) "colour",(char *) "style", NULL
22791 };
22792
22793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22795 if (!SWIG_IsOK(res1)) {
22796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22797 }
22798 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22799 {
22800 arg2 = &temp2;
22801 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22802 }
22803 if (obj2) {
22804 ecode3 = SWIG_AsVal_int(obj2, &val3);
22805 if (!SWIG_IsOK(ecode3)) {
22806 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
22807 }
22808 arg3 = static_cast< int >(val3);
22809 }
22810 {
22811 PyThreadState* __tstate = wxPyBeginAllowThreads();
22812 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
22813 wxPyEndAllowThreads(__tstate);
22814 if (PyErr_Occurred()) SWIG_fail;
22815 }
22816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22817 return resultobj;
22818 fail:
22819 return NULL;
22820 }
22821
22822
22823 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22824 PyObject *resultobj = 0;
22825 wxBrushList *arg1 = (wxBrushList *) 0 ;
22826 wxBrush *arg2 = (wxBrush *) 0 ;
22827 void *argp1 = 0 ;
22828 int res1 = 0 ;
22829 void *argp2 = 0 ;
22830 int res2 = 0 ;
22831 PyObject * obj0 = 0 ;
22832 PyObject * obj1 = 0 ;
22833 char * kwnames[] = {
22834 (char *) "self",(char *) "brush", NULL
22835 };
22836
22837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22839 if (!SWIG_IsOK(res1)) {
22840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22841 }
22842 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22843 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22844 if (!SWIG_IsOK(res2)) {
22845 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22846 }
22847 arg2 = reinterpret_cast< wxBrush * >(argp2);
22848 {
22849 PyThreadState* __tstate = wxPyBeginAllowThreads();
22850 (arg1)->AddBrush(arg2);
22851 wxPyEndAllowThreads(__tstate);
22852 if (PyErr_Occurred()) SWIG_fail;
22853 }
22854 resultobj = SWIG_Py_Void();
22855 return resultobj;
22856 fail:
22857 return NULL;
22858 }
22859
22860
22861 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22862 PyObject *resultobj = 0;
22863 wxBrushList *arg1 = (wxBrushList *) 0 ;
22864 wxBrush *arg2 = (wxBrush *) 0 ;
22865 void *argp1 = 0 ;
22866 int res1 = 0 ;
22867 void *argp2 = 0 ;
22868 int res2 = 0 ;
22869 PyObject * obj0 = 0 ;
22870 PyObject * obj1 = 0 ;
22871 char * kwnames[] = {
22872 (char *) "self",(char *) "brush", NULL
22873 };
22874
22875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22877 if (!SWIG_IsOK(res1)) {
22878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22879 }
22880 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22881 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22882 if (!SWIG_IsOK(res2)) {
22883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22884 }
22885 arg2 = reinterpret_cast< wxBrush * >(argp2);
22886 {
22887 PyThreadState* __tstate = wxPyBeginAllowThreads();
22888 (arg1)->RemoveBrush(arg2);
22889 wxPyEndAllowThreads(__tstate);
22890 if (PyErr_Occurred()) SWIG_fail;
22891 }
22892 resultobj = SWIG_Py_Void();
22893 return resultobj;
22894 fail:
22895 return NULL;
22896 }
22897
22898
22899 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22900 PyObject *obj;
22901 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22902 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
22903 return SWIG_Py_Void();
22904 }
22905
22906 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22907 PyObject *resultobj = 0;
22908 wxFontList *arg1 = (wxFontList *) 0 ;
22909 int arg2 ;
22910 int arg3 ;
22911 int arg4 ;
22912 int arg5 ;
22913 bool arg6 = (bool) false ;
22914 wxString const &arg7_defvalue = wxPyEmptyString ;
22915 wxString *arg7 = (wxString *) &arg7_defvalue ;
22916 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
22917 wxFont *result = 0 ;
22918 void *argp1 = 0 ;
22919 int res1 = 0 ;
22920 int val2 ;
22921 int ecode2 = 0 ;
22922 int val3 ;
22923 int ecode3 = 0 ;
22924 int val4 ;
22925 int ecode4 = 0 ;
22926 int val5 ;
22927 int ecode5 = 0 ;
22928 bool val6 ;
22929 int ecode6 = 0 ;
22930 bool temp7 = false ;
22931 int val8 ;
22932 int ecode8 = 0 ;
22933 PyObject * obj0 = 0 ;
22934 PyObject * obj1 = 0 ;
22935 PyObject * obj2 = 0 ;
22936 PyObject * obj3 = 0 ;
22937 PyObject * obj4 = 0 ;
22938 PyObject * obj5 = 0 ;
22939 PyObject * obj6 = 0 ;
22940 PyObject * obj7 = 0 ;
22941 char * kwnames[] = {
22942 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
22943 };
22944
22945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
22946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
22947 if (!SWIG_IsOK(res1)) {
22948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
22949 }
22950 arg1 = reinterpret_cast< wxFontList * >(argp1);
22951 ecode2 = SWIG_AsVal_int(obj1, &val2);
22952 if (!SWIG_IsOK(ecode2)) {
22953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
22954 }
22955 arg2 = static_cast< int >(val2);
22956 ecode3 = SWIG_AsVal_int(obj2, &val3);
22957 if (!SWIG_IsOK(ecode3)) {
22958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
22959 }
22960 arg3 = static_cast< int >(val3);
22961 ecode4 = SWIG_AsVal_int(obj3, &val4);
22962 if (!SWIG_IsOK(ecode4)) {
22963 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
22964 }
22965 arg4 = static_cast< int >(val4);
22966 ecode5 = SWIG_AsVal_int(obj4, &val5);
22967 if (!SWIG_IsOK(ecode5)) {
22968 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
22969 }
22970 arg5 = static_cast< int >(val5);
22971 if (obj5) {
22972 ecode6 = SWIG_AsVal_bool(obj5, &val6);
22973 if (!SWIG_IsOK(ecode6)) {
22974 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
22975 }
22976 arg6 = static_cast< bool >(val6);
22977 }
22978 if (obj6) {
22979 {
22980 arg7 = wxString_in_helper(obj6);
22981 if (arg7 == NULL) SWIG_fail;
22982 temp7 = true;
22983 }
22984 }
22985 if (obj7) {
22986 ecode8 = SWIG_AsVal_int(obj7, &val8);
22987 if (!SWIG_IsOK(ecode8)) {
22988 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
22989 }
22990 arg8 = static_cast< wxFontEncoding >(val8);
22991 }
22992 {
22993 PyThreadState* __tstate = wxPyBeginAllowThreads();
22994 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
22995 wxPyEndAllowThreads(__tstate);
22996 if (PyErr_Occurred()) SWIG_fail;
22997 }
22998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22999 {
23000 if (temp7)
23001 delete arg7;
23002 }
23003 return resultobj;
23004 fail:
23005 {
23006 if (temp7)
23007 delete arg7;
23008 }
23009 return NULL;
23010 }
23011
23012
23013 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23014 PyObject *resultobj = 0;
23015 wxFontList *arg1 = (wxFontList *) 0 ;
23016 wxFont *arg2 = (wxFont *) 0 ;
23017 void *argp1 = 0 ;
23018 int res1 = 0 ;
23019 void *argp2 = 0 ;
23020 int res2 = 0 ;
23021 PyObject * obj0 = 0 ;
23022 PyObject * obj1 = 0 ;
23023 char * kwnames[] = {
23024 (char *) "self",(char *) "font", NULL
23025 };
23026
23027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
23028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23029 if (!SWIG_IsOK(res1)) {
23030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23031 }
23032 arg1 = reinterpret_cast< wxFontList * >(argp1);
23033 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23034 if (!SWIG_IsOK(res2)) {
23035 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
23036 }
23037 arg2 = reinterpret_cast< wxFont * >(argp2);
23038 {
23039 PyThreadState* __tstate = wxPyBeginAllowThreads();
23040 (arg1)->AddFont(arg2);
23041 wxPyEndAllowThreads(__tstate);
23042 if (PyErr_Occurred()) SWIG_fail;
23043 }
23044 resultobj = SWIG_Py_Void();
23045 return resultobj;
23046 fail:
23047 return NULL;
23048 }
23049
23050
23051 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23052 PyObject *resultobj = 0;
23053 wxFontList *arg1 = (wxFontList *) 0 ;
23054 wxFont *arg2 = (wxFont *) 0 ;
23055 void *argp1 = 0 ;
23056 int res1 = 0 ;
23057 void *argp2 = 0 ;
23058 int res2 = 0 ;
23059 PyObject * obj0 = 0 ;
23060 PyObject * obj1 = 0 ;
23061 char * kwnames[] = {
23062 (char *) "self",(char *) "font", NULL
23063 };
23064
23065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
23066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23067 if (!SWIG_IsOK(res1)) {
23068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23069 }
23070 arg1 = reinterpret_cast< wxFontList * >(argp1);
23071 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23072 if (!SWIG_IsOK(res2)) {
23073 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
23074 }
23075 arg2 = reinterpret_cast< wxFont * >(argp2);
23076 {
23077 PyThreadState* __tstate = wxPyBeginAllowThreads();
23078 (arg1)->RemoveFont(arg2);
23079 wxPyEndAllowThreads(__tstate);
23080 if (PyErr_Occurred()) SWIG_fail;
23081 }
23082 resultobj = SWIG_Py_Void();
23083 return resultobj;
23084 fail:
23085 return NULL;
23086 }
23087
23088
23089 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23090 PyObject *obj;
23091 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23092 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
23093 return SWIG_Py_Void();
23094 }
23095
23096 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23097 PyObject *resultobj = 0;
23098 wxColourDatabase *result = 0 ;
23099
23100 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
23101 {
23102 if (!wxPyCheckForApp()) SWIG_fail;
23103 PyThreadState* __tstate = wxPyBeginAllowThreads();
23104 result = (wxColourDatabase *)new wxColourDatabase();
23105 wxPyEndAllowThreads(__tstate);
23106 if (PyErr_Occurred()) SWIG_fail;
23107 }
23108 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
23109 return resultobj;
23110 fail:
23111 return NULL;
23112 }
23113
23114
23115 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23116 PyObject *resultobj = 0;
23117 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23118 void *argp1 = 0 ;
23119 int res1 = 0 ;
23120 PyObject *swig_obj[1] ;
23121
23122 if (!args) SWIG_fail;
23123 swig_obj[0] = args;
23124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
23125 if (!SWIG_IsOK(res1)) {
23126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23127 }
23128 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23129 {
23130 PyThreadState* __tstate = wxPyBeginAllowThreads();
23131 delete arg1;
23132
23133 wxPyEndAllowThreads(__tstate);
23134 if (PyErr_Occurred()) SWIG_fail;
23135 }
23136 resultobj = SWIG_Py_Void();
23137 return resultobj;
23138 fail:
23139 return NULL;
23140 }
23141
23142
23143 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23144 PyObject *resultobj = 0;
23145 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23146 wxString *arg2 = 0 ;
23147 wxColour result;
23148 void *argp1 = 0 ;
23149 int res1 = 0 ;
23150 bool temp2 = false ;
23151 PyObject * obj0 = 0 ;
23152 PyObject * obj1 = 0 ;
23153 char * kwnames[] = {
23154 (char *) "self",(char *) "name", NULL
23155 };
23156
23157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
23158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23159 if (!SWIG_IsOK(res1)) {
23160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23161 }
23162 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23163 {
23164 arg2 = wxString_in_helper(obj1);
23165 if (arg2 == NULL) SWIG_fail;
23166 temp2 = true;
23167 }
23168 {
23169 PyThreadState* __tstate = wxPyBeginAllowThreads();
23170 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
23171 wxPyEndAllowThreads(__tstate);
23172 if (PyErr_Occurred()) SWIG_fail;
23173 }
23174 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23175 {
23176 if (temp2)
23177 delete arg2;
23178 }
23179 return resultobj;
23180 fail:
23181 {
23182 if (temp2)
23183 delete arg2;
23184 }
23185 return NULL;
23186 }
23187
23188
23189 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23190 PyObject *resultobj = 0;
23191 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23192 wxColour *arg2 = 0 ;
23193 wxString result;
23194 void *argp1 = 0 ;
23195 int res1 = 0 ;
23196 wxColour temp2 ;
23197 PyObject * obj0 = 0 ;
23198 PyObject * obj1 = 0 ;
23199 char * kwnames[] = {
23200 (char *) "self",(char *) "colour", NULL
23201 };
23202
23203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
23204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23205 if (!SWIG_IsOK(res1)) {
23206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23207 }
23208 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23209 {
23210 arg2 = &temp2;
23211 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23212 }
23213 {
23214 PyThreadState* __tstate = wxPyBeginAllowThreads();
23215 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
23216 wxPyEndAllowThreads(__tstate);
23217 if (PyErr_Occurred()) SWIG_fail;
23218 }
23219 {
23220 #if wxUSE_UNICODE
23221 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23222 #else
23223 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23224 #endif
23225 }
23226 return resultobj;
23227 fail:
23228 return NULL;
23229 }
23230
23231
23232 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23233 PyObject *resultobj = 0;
23234 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23235 wxString *arg2 = 0 ;
23236 wxColour *arg3 = 0 ;
23237 void *argp1 = 0 ;
23238 int res1 = 0 ;
23239 bool temp2 = false ;
23240 wxColour temp3 ;
23241 PyObject * obj0 = 0 ;
23242 PyObject * obj1 = 0 ;
23243 PyObject * obj2 = 0 ;
23244 char * kwnames[] = {
23245 (char *) "self",(char *) "name",(char *) "colour", NULL
23246 };
23247
23248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23250 if (!SWIG_IsOK(res1)) {
23251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23252 }
23253 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23254 {
23255 arg2 = wxString_in_helper(obj1);
23256 if (arg2 == NULL) SWIG_fail;
23257 temp2 = true;
23258 }
23259 {
23260 arg3 = &temp3;
23261 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23262 }
23263 {
23264 PyThreadState* __tstate = wxPyBeginAllowThreads();
23265 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
23266 wxPyEndAllowThreads(__tstate);
23267 if (PyErr_Occurred()) SWIG_fail;
23268 }
23269 resultobj = SWIG_Py_Void();
23270 {
23271 if (temp2)
23272 delete arg2;
23273 }
23274 return resultobj;
23275 fail:
23276 {
23277 if (temp2)
23278 delete arg2;
23279 }
23280 return NULL;
23281 }
23282
23283
23284 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23285 PyObject *resultobj = 0;
23286 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23287 wxString *arg2 = 0 ;
23288 int arg3 ;
23289 int arg4 ;
23290 int arg5 ;
23291 void *argp1 = 0 ;
23292 int res1 = 0 ;
23293 bool temp2 = false ;
23294 int val3 ;
23295 int ecode3 = 0 ;
23296 int val4 ;
23297 int ecode4 = 0 ;
23298 int val5 ;
23299 int ecode5 = 0 ;
23300 PyObject * obj0 = 0 ;
23301 PyObject * obj1 = 0 ;
23302 PyObject * obj2 = 0 ;
23303 PyObject * obj3 = 0 ;
23304 PyObject * obj4 = 0 ;
23305 char * kwnames[] = {
23306 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
23307 };
23308
23309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23311 if (!SWIG_IsOK(res1)) {
23312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23313 }
23314 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23315 {
23316 arg2 = wxString_in_helper(obj1);
23317 if (arg2 == NULL) SWIG_fail;
23318 temp2 = true;
23319 }
23320 ecode3 = SWIG_AsVal_int(obj2, &val3);
23321 if (!SWIG_IsOK(ecode3)) {
23322 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
23323 }
23324 arg3 = static_cast< int >(val3);
23325 ecode4 = SWIG_AsVal_int(obj3, &val4);
23326 if (!SWIG_IsOK(ecode4)) {
23327 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
23328 }
23329 arg4 = static_cast< int >(val4);
23330 ecode5 = SWIG_AsVal_int(obj4, &val5);
23331 if (!SWIG_IsOK(ecode5)) {
23332 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
23333 }
23334 arg5 = static_cast< int >(val5);
23335 {
23336 PyThreadState* __tstate = wxPyBeginAllowThreads();
23337 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
23338 wxPyEndAllowThreads(__tstate);
23339 if (PyErr_Occurred()) SWIG_fail;
23340 }
23341 resultobj = SWIG_Py_Void();
23342 {
23343 if (temp2)
23344 delete arg2;
23345 }
23346 return resultobj;
23347 fail:
23348 {
23349 if (temp2)
23350 delete arg2;
23351 }
23352 return NULL;
23353 }
23354
23355
23356 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23357 PyObject *obj;
23358 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23359 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
23360 return SWIG_Py_Void();
23361 }
23362
23363 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23364 return SWIG_Python_InitShadowInstance(args);
23365 }
23366
23367 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23368 PyObject *resultobj = 0;
23369 wxFontList *result = 0 ;
23370
23371 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
23372 {
23373 PyThreadState* __tstate = wxPyBeginAllowThreads();
23374 result = (wxFontList *)_wxPyInitTheFontList();
23375 wxPyEndAllowThreads(__tstate);
23376 if (PyErr_Occurred()) SWIG_fail;
23377 }
23378 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
23379 return resultobj;
23380 fail:
23381 return NULL;
23382 }
23383
23384
23385 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23386 PyObject *resultobj = 0;
23387 wxPenList *result = 0 ;
23388
23389 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
23390 {
23391 PyThreadState* __tstate = wxPyBeginAllowThreads();
23392 result = (wxPenList *)_wxPyInitThePenList();
23393 wxPyEndAllowThreads(__tstate);
23394 if (PyErr_Occurred()) SWIG_fail;
23395 }
23396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
23397 return resultobj;
23398 fail:
23399 return NULL;
23400 }
23401
23402
23403 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23404 PyObject *resultobj = 0;
23405 wxBrushList *result = 0 ;
23406
23407 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
23408 {
23409 PyThreadState* __tstate = wxPyBeginAllowThreads();
23410 result = (wxBrushList *)_wxPyInitTheBrushList();
23411 wxPyEndAllowThreads(__tstate);
23412 if (PyErr_Occurred()) SWIG_fail;
23413 }
23414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
23415 return resultobj;
23416 fail:
23417 return NULL;
23418 }
23419
23420
23421 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23422 PyObject *resultobj = 0;
23423 wxColourDatabase *result = 0 ;
23424
23425 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
23426 {
23427 PyThreadState* __tstate = wxPyBeginAllowThreads();
23428 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
23429 wxPyEndAllowThreads(__tstate);
23430 if (PyErr_Occurred()) SWIG_fail;
23431 }
23432 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23433 return resultobj;
23434 fail:
23435 return NULL;
23436 }
23437
23438
23439 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23440 PyObject *resultobj = 0;
23441 wxEffects *result = 0 ;
23442
23443 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
23444 {
23445 PyThreadState* __tstate = wxPyBeginAllowThreads();
23446 result = (wxEffects *)new wxEffects();
23447 wxPyEndAllowThreads(__tstate);
23448 if (PyErr_Occurred()) SWIG_fail;
23449 }
23450 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
23451 return resultobj;
23452 fail:
23453 return NULL;
23454 }
23455
23456
23457 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23458 PyObject *resultobj = 0;
23459 wxEffects *arg1 = (wxEffects *) 0 ;
23460 wxColour result;
23461 void *argp1 = 0 ;
23462 int res1 = 0 ;
23463 PyObject *swig_obj[1] ;
23464
23465 if (!args) SWIG_fail;
23466 swig_obj[0] = args;
23467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23468 if (!SWIG_IsOK(res1)) {
23469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23470 }
23471 arg1 = reinterpret_cast< wxEffects * >(argp1);
23472 {
23473 PyThreadState* __tstate = wxPyBeginAllowThreads();
23474 result = ((wxEffects const *)arg1)->GetHighlightColour();
23475 wxPyEndAllowThreads(__tstate);
23476 if (PyErr_Occurred()) SWIG_fail;
23477 }
23478 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23479 return resultobj;
23480 fail:
23481 return NULL;
23482 }
23483
23484
23485 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23486 PyObject *resultobj = 0;
23487 wxEffects *arg1 = (wxEffects *) 0 ;
23488 wxColour result;
23489 void *argp1 = 0 ;
23490 int res1 = 0 ;
23491 PyObject *swig_obj[1] ;
23492
23493 if (!args) SWIG_fail;
23494 swig_obj[0] = args;
23495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23496 if (!SWIG_IsOK(res1)) {
23497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23498 }
23499 arg1 = reinterpret_cast< wxEffects * >(argp1);
23500 {
23501 PyThreadState* __tstate = wxPyBeginAllowThreads();
23502 result = ((wxEffects const *)arg1)->GetLightShadow();
23503 wxPyEndAllowThreads(__tstate);
23504 if (PyErr_Occurred()) SWIG_fail;
23505 }
23506 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23507 return resultobj;
23508 fail:
23509 return NULL;
23510 }
23511
23512
23513 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23514 PyObject *resultobj = 0;
23515 wxEffects *arg1 = (wxEffects *) 0 ;
23516 wxColour result;
23517 void *argp1 = 0 ;
23518 int res1 = 0 ;
23519 PyObject *swig_obj[1] ;
23520
23521 if (!args) SWIG_fail;
23522 swig_obj[0] = args;
23523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23524 if (!SWIG_IsOK(res1)) {
23525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23526 }
23527 arg1 = reinterpret_cast< wxEffects * >(argp1);
23528 {
23529 PyThreadState* __tstate = wxPyBeginAllowThreads();
23530 result = ((wxEffects const *)arg1)->GetFaceColour();
23531 wxPyEndAllowThreads(__tstate);
23532 if (PyErr_Occurred()) SWIG_fail;
23533 }
23534 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23535 return resultobj;
23536 fail:
23537 return NULL;
23538 }
23539
23540
23541 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23542 PyObject *resultobj = 0;
23543 wxEffects *arg1 = (wxEffects *) 0 ;
23544 wxColour result;
23545 void *argp1 = 0 ;
23546 int res1 = 0 ;
23547 PyObject *swig_obj[1] ;
23548
23549 if (!args) SWIG_fail;
23550 swig_obj[0] = args;
23551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23552 if (!SWIG_IsOK(res1)) {
23553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23554 }
23555 arg1 = reinterpret_cast< wxEffects * >(argp1);
23556 {
23557 PyThreadState* __tstate = wxPyBeginAllowThreads();
23558 result = ((wxEffects const *)arg1)->GetMediumShadow();
23559 wxPyEndAllowThreads(__tstate);
23560 if (PyErr_Occurred()) SWIG_fail;
23561 }
23562 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23563 return resultobj;
23564 fail:
23565 return NULL;
23566 }
23567
23568
23569 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23570 PyObject *resultobj = 0;
23571 wxEffects *arg1 = (wxEffects *) 0 ;
23572 wxColour result;
23573 void *argp1 = 0 ;
23574 int res1 = 0 ;
23575 PyObject *swig_obj[1] ;
23576
23577 if (!args) SWIG_fail;
23578 swig_obj[0] = args;
23579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23580 if (!SWIG_IsOK(res1)) {
23581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23582 }
23583 arg1 = reinterpret_cast< wxEffects * >(argp1);
23584 {
23585 PyThreadState* __tstate = wxPyBeginAllowThreads();
23586 result = ((wxEffects const *)arg1)->GetDarkShadow();
23587 wxPyEndAllowThreads(__tstate);
23588 if (PyErr_Occurred()) SWIG_fail;
23589 }
23590 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23591 return resultobj;
23592 fail:
23593 return NULL;
23594 }
23595
23596
23597 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23598 PyObject *resultobj = 0;
23599 wxEffects *arg1 = (wxEffects *) 0 ;
23600 wxColour *arg2 = 0 ;
23601 void *argp1 = 0 ;
23602 int res1 = 0 ;
23603 wxColour temp2 ;
23604 PyObject * obj0 = 0 ;
23605 PyObject * obj1 = 0 ;
23606 char * kwnames[] = {
23607 (char *) "self",(char *) "c", NULL
23608 };
23609
23610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
23611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23612 if (!SWIG_IsOK(res1)) {
23613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23614 }
23615 arg1 = reinterpret_cast< wxEffects * >(argp1);
23616 {
23617 arg2 = &temp2;
23618 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23619 }
23620 {
23621 PyThreadState* __tstate = wxPyBeginAllowThreads();
23622 (arg1)->SetHighlightColour((wxColour const &)*arg2);
23623 wxPyEndAllowThreads(__tstate);
23624 if (PyErr_Occurred()) SWIG_fail;
23625 }
23626 resultobj = SWIG_Py_Void();
23627 return resultobj;
23628 fail:
23629 return NULL;
23630 }
23631
23632
23633 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23634 PyObject *resultobj = 0;
23635 wxEffects *arg1 = (wxEffects *) 0 ;
23636 wxColour *arg2 = 0 ;
23637 void *argp1 = 0 ;
23638 int res1 = 0 ;
23639 wxColour temp2 ;
23640 PyObject * obj0 = 0 ;
23641 PyObject * obj1 = 0 ;
23642 char * kwnames[] = {
23643 (char *) "self",(char *) "c", NULL
23644 };
23645
23646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23648 if (!SWIG_IsOK(res1)) {
23649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23650 }
23651 arg1 = reinterpret_cast< wxEffects * >(argp1);
23652 {
23653 arg2 = &temp2;
23654 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23655 }
23656 {
23657 PyThreadState* __tstate = wxPyBeginAllowThreads();
23658 (arg1)->SetLightShadow((wxColour const &)*arg2);
23659 wxPyEndAllowThreads(__tstate);
23660 if (PyErr_Occurred()) SWIG_fail;
23661 }
23662 resultobj = SWIG_Py_Void();
23663 return resultobj;
23664 fail:
23665 return NULL;
23666 }
23667
23668
23669 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23670 PyObject *resultobj = 0;
23671 wxEffects *arg1 = (wxEffects *) 0 ;
23672 wxColour *arg2 = 0 ;
23673 void *argp1 = 0 ;
23674 int res1 = 0 ;
23675 wxColour temp2 ;
23676 PyObject * obj0 = 0 ;
23677 PyObject * obj1 = 0 ;
23678 char * kwnames[] = {
23679 (char *) "self",(char *) "c", NULL
23680 };
23681
23682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
23683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23684 if (!SWIG_IsOK(res1)) {
23685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23686 }
23687 arg1 = reinterpret_cast< wxEffects * >(argp1);
23688 {
23689 arg2 = &temp2;
23690 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23691 }
23692 {
23693 PyThreadState* __tstate = wxPyBeginAllowThreads();
23694 (arg1)->SetFaceColour((wxColour const &)*arg2);
23695 wxPyEndAllowThreads(__tstate);
23696 if (PyErr_Occurred()) SWIG_fail;
23697 }
23698 resultobj = SWIG_Py_Void();
23699 return resultobj;
23700 fail:
23701 return NULL;
23702 }
23703
23704
23705 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23706 PyObject *resultobj = 0;
23707 wxEffects *arg1 = (wxEffects *) 0 ;
23708 wxColour *arg2 = 0 ;
23709 void *argp1 = 0 ;
23710 int res1 = 0 ;
23711 wxColour temp2 ;
23712 PyObject * obj0 = 0 ;
23713 PyObject * obj1 = 0 ;
23714 char * kwnames[] = {
23715 (char *) "self",(char *) "c", NULL
23716 };
23717
23718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23720 if (!SWIG_IsOK(res1)) {
23721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23722 }
23723 arg1 = reinterpret_cast< wxEffects * >(argp1);
23724 {
23725 arg2 = &temp2;
23726 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23727 }
23728 {
23729 PyThreadState* __tstate = wxPyBeginAllowThreads();
23730 (arg1)->SetMediumShadow((wxColour const &)*arg2);
23731 wxPyEndAllowThreads(__tstate);
23732 if (PyErr_Occurred()) SWIG_fail;
23733 }
23734 resultobj = SWIG_Py_Void();
23735 return resultobj;
23736 fail:
23737 return NULL;
23738 }
23739
23740
23741 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23742 PyObject *resultobj = 0;
23743 wxEffects *arg1 = (wxEffects *) 0 ;
23744 wxColour *arg2 = 0 ;
23745 void *argp1 = 0 ;
23746 int res1 = 0 ;
23747 wxColour temp2 ;
23748 PyObject * obj0 = 0 ;
23749 PyObject * obj1 = 0 ;
23750 char * kwnames[] = {
23751 (char *) "self",(char *) "c", NULL
23752 };
23753
23754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23756 if (!SWIG_IsOK(res1)) {
23757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23758 }
23759 arg1 = reinterpret_cast< wxEffects * >(argp1);
23760 {
23761 arg2 = &temp2;
23762 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23763 }
23764 {
23765 PyThreadState* __tstate = wxPyBeginAllowThreads();
23766 (arg1)->SetDarkShadow((wxColour const &)*arg2);
23767 wxPyEndAllowThreads(__tstate);
23768 if (PyErr_Occurred()) SWIG_fail;
23769 }
23770 resultobj = SWIG_Py_Void();
23771 return resultobj;
23772 fail:
23773 return NULL;
23774 }
23775
23776
23777 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23778 PyObject *resultobj = 0;
23779 wxEffects *arg1 = (wxEffects *) 0 ;
23780 wxColour *arg2 = 0 ;
23781 wxColour *arg3 = 0 ;
23782 wxColour *arg4 = 0 ;
23783 wxColour *arg5 = 0 ;
23784 wxColour *arg6 = 0 ;
23785 void *argp1 = 0 ;
23786 int res1 = 0 ;
23787 wxColour temp2 ;
23788 wxColour temp3 ;
23789 wxColour temp4 ;
23790 wxColour temp5 ;
23791 wxColour temp6 ;
23792 PyObject * obj0 = 0 ;
23793 PyObject * obj1 = 0 ;
23794 PyObject * obj2 = 0 ;
23795 PyObject * obj3 = 0 ;
23796 PyObject * obj4 = 0 ;
23797 PyObject * obj5 = 0 ;
23798 char * kwnames[] = {
23799 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
23800 };
23801
23802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
23803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23804 if (!SWIG_IsOK(res1)) {
23805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
23806 }
23807 arg1 = reinterpret_cast< wxEffects * >(argp1);
23808 {
23809 arg2 = &temp2;
23810 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23811 }
23812 {
23813 arg3 = &temp3;
23814 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23815 }
23816 {
23817 arg4 = &temp4;
23818 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
23819 }
23820 {
23821 arg5 = &temp5;
23822 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
23823 }
23824 {
23825 arg6 = &temp6;
23826 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
23827 }
23828 {
23829 PyThreadState* __tstate = wxPyBeginAllowThreads();
23830 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
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_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23842 PyObject *resultobj = 0;
23843 wxEffects *arg1 = (wxEffects *) 0 ;
23844 wxDC *arg2 = 0 ;
23845 wxRect *arg3 = 0 ;
23846 int arg4 = (int) 1 ;
23847 void *argp1 = 0 ;
23848 int res1 = 0 ;
23849 void *argp2 = 0 ;
23850 int res2 = 0 ;
23851 wxRect temp3 ;
23852 int val4 ;
23853 int ecode4 = 0 ;
23854 PyObject * obj0 = 0 ;
23855 PyObject * obj1 = 0 ;
23856 PyObject * obj2 = 0 ;
23857 PyObject * obj3 = 0 ;
23858 char * kwnames[] = {
23859 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
23860 };
23861
23862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23864 if (!SWIG_IsOK(res1)) {
23865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
23866 }
23867 arg1 = reinterpret_cast< wxEffects * >(argp1);
23868 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
23869 if (!SWIG_IsOK(res2)) {
23870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23871 }
23872 if (!argp2) {
23873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23874 }
23875 arg2 = reinterpret_cast< wxDC * >(argp2);
23876 {
23877 arg3 = &temp3;
23878 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
23879 }
23880 if (obj3) {
23881 ecode4 = SWIG_AsVal_int(obj3, &val4);
23882 if (!SWIG_IsOK(ecode4)) {
23883 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
23884 }
23885 arg4 = static_cast< int >(val4);
23886 }
23887 {
23888 PyThreadState* __tstate = wxPyBeginAllowThreads();
23889 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
23890 wxPyEndAllowThreads(__tstate);
23891 if (PyErr_Occurred()) SWIG_fail;
23892 }
23893 resultobj = SWIG_Py_Void();
23894 return resultobj;
23895 fail:
23896 return NULL;
23897 }
23898
23899
23900 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23901 PyObject *resultobj = 0;
23902 wxEffects *arg1 = (wxEffects *) 0 ;
23903 wxRect *arg2 = 0 ;
23904 wxDC *arg3 = 0 ;
23905 wxBitmap *arg4 = 0 ;
23906 bool result;
23907 void *argp1 = 0 ;
23908 int res1 = 0 ;
23909 wxRect temp2 ;
23910 void *argp3 = 0 ;
23911 int res3 = 0 ;
23912 void *argp4 = 0 ;
23913 int res4 = 0 ;
23914 PyObject * obj0 = 0 ;
23915 PyObject * obj1 = 0 ;
23916 PyObject * obj2 = 0 ;
23917 PyObject * obj3 = 0 ;
23918 char * kwnames[] = {
23919 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
23920 };
23921
23922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23924 if (!SWIG_IsOK(res1)) {
23925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
23926 }
23927 arg1 = reinterpret_cast< wxEffects * >(argp1);
23928 {
23929 arg2 = &temp2;
23930 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
23931 }
23932 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
23933 if (!SWIG_IsOK(res3)) {
23934 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23935 }
23936 if (!argp3) {
23937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23938 }
23939 arg3 = reinterpret_cast< wxDC * >(argp3);
23940 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
23941 if (!SWIG_IsOK(res4)) {
23942 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23943 }
23944 if (!argp4) {
23945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23946 }
23947 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23948 {
23949 PyThreadState* __tstate = wxPyBeginAllowThreads();
23950 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
23951 wxPyEndAllowThreads(__tstate);
23952 if (PyErr_Occurred()) SWIG_fail;
23953 }
23954 {
23955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23956 }
23957 return resultobj;
23958 fail:
23959 return NULL;
23960 }
23961
23962
23963 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23964 PyObject *obj;
23965 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23966 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
23967 return SWIG_Py_Void();
23968 }
23969
23970 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23971 return SWIG_Python_InitShadowInstance(args);
23972 }
23973
23974 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23975 PyObject *resultobj = 0;
23976 int arg1 ;
23977 int arg2 ;
23978 bool arg3 ;
23979 wxSplitterRenderParams *result = 0 ;
23980 int val1 ;
23981 int ecode1 = 0 ;
23982 int val2 ;
23983 int ecode2 = 0 ;
23984 bool val3 ;
23985 int ecode3 = 0 ;
23986 PyObject * obj0 = 0 ;
23987 PyObject * obj1 = 0 ;
23988 PyObject * obj2 = 0 ;
23989 char * kwnames[] = {
23990 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
23991 };
23992
23993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23994 ecode1 = SWIG_AsVal_int(obj0, &val1);
23995 if (!SWIG_IsOK(ecode1)) {
23996 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
23997 }
23998 arg1 = static_cast< int >(val1);
23999 ecode2 = SWIG_AsVal_int(obj1, &val2);
24000 if (!SWIG_IsOK(ecode2)) {
24001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
24002 }
24003 arg2 = static_cast< int >(val2);
24004 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24005 if (!SWIG_IsOK(ecode3)) {
24006 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
24007 }
24008 arg3 = static_cast< bool >(val3);
24009 {
24010 PyThreadState* __tstate = wxPyBeginAllowThreads();
24011 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
24012 wxPyEndAllowThreads(__tstate);
24013 if (PyErr_Occurred()) SWIG_fail;
24014 }
24015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
24016 return resultobj;
24017 fail:
24018 return NULL;
24019 }
24020
24021
24022 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24023 PyObject *resultobj = 0;
24024 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24025 void *argp1 = 0 ;
24026 int res1 = 0 ;
24027 PyObject *swig_obj[1] ;
24028
24029 if (!args) SWIG_fail;
24030 swig_obj[0] = args;
24031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
24032 if (!SWIG_IsOK(res1)) {
24033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24034 }
24035 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24036 {
24037 PyThreadState* __tstate = wxPyBeginAllowThreads();
24038 delete arg1;
24039
24040 wxPyEndAllowThreads(__tstate);
24041 if (PyErr_Occurred()) SWIG_fail;
24042 }
24043 resultobj = SWIG_Py_Void();
24044 return resultobj;
24045 fail:
24046 return NULL;
24047 }
24048
24049
24050 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24051 PyObject *resultobj = 0;
24052 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24053 int result;
24054 void *argp1 = 0 ;
24055 int res1 = 0 ;
24056 PyObject *swig_obj[1] ;
24057
24058 if (!args) SWIG_fail;
24059 swig_obj[0] = args;
24060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24061 if (!SWIG_IsOK(res1)) {
24062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24063 }
24064 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24065 result = (int)(int) ((arg1)->widthSash);
24066 resultobj = SWIG_From_int(static_cast< int >(result));
24067 return resultobj;
24068 fail:
24069 return NULL;
24070 }
24071
24072
24073 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24074 PyObject *resultobj = 0;
24075 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24076 int result;
24077 void *argp1 = 0 ;
24078 int res1 = 0 ;
24079 PyObject *swig_obj[1] ;
24080
24081 if (!args) SWIG_fail;
24082 swig_obj[0] = args;
24083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24084 if (!SWIG_IsOK(res1)) {
24085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24086 }
24087 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24088 result = (int)(int) ((arg1)->border);
24089 resultobj = SWIG_From_int(static_cast< int >(result));
24090 return resultobj;
24091 fail:
24092 return NULL;
24093 }
24094
24095
24096 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24097 PyObject *resultobj = 0;
24098 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24099 bool result;
24100 void *argp1 = 0 ;
24101 int res1 = 0 ;
24102 PyObject *swig_obj[1] ;
24103
24104 if (!args) SWIG_fail;
24105 swig_obj[0] = args;
24106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24107 if (!SWIG_IsOK(res1)) {
24108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24109 }
24110 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24111 result = (bool)(bool) ((arg1)->isHotSensitive);
24112 resultobj = SWIG_From_bool(static_cast< bool >(result));
24113 return resultobj;
24114 fail:
24115 return NULL;
24116 }
24117
24118
24119 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24120 PyObject *obj;
24121 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24122 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
24123 return SWIG_Py_Void();
24124 }
24125
24126 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24127 return SWIG_Python_InitShadowInstance(args);
24128 }
24129
24130 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24131 PyObject *resultobj = 0;
24132 int arg1 ;
24133 int arg2 ;
24134 wxRendererVersion *result = 0 ;
24135 int val1 ;
24136 int ecode1 = 0 ;
24137 int val2 ;
24138 int ecode2 = 0 ;
24139 PyObject * obj0 = 0 ;
24140 PyObject * obj1 = 0 ;
24141 char * kwnames[] = {
24142 (char *) "version_",(char *) "age_", NULL
24143 };
24144
24145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
24146 ecode1 = SWIG_AsVal_int(obj0, &val1);
24147 if (!SWIG_IsOK(ecode1)) {
24148 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
24149 }
24150 arg1 = static_cast< int >(val1);
24151 ecode2 = SWIG_AsVal_int(obj1, &val2);
24152 if (!SWIG_IsOK(ecode2)) {
24153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
24154 }
24155 arg2 = static_cast< int >(val2);
24156 {
24157 PyThreadState* __tstate = wxPyBeginAllowThreads();
24158 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
24159 wxPyEndAllowThreads(__tstate);
24160 if (PyErr_Occurred()) SWIG_fail;
24161 }
24162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
24163 return resultobj;
24164 fail:
24165 return NULL;
24166 }
24167
24168
24169 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24170 PyObject *resultobj = 0;
24171 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24172 void *argp1 = 0 ;
24173 int res1 = 0 ;
24174 PyObject *swig_obj[1] ;
24175
24176 if (!args) SWIG_fail;
24177 swig_obj[0] = args;
24178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
24179 if (!SWIG_IsOK(res1)) {
24180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24181 }
24182 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24183 {
24184 PyThreadState* __tstate = wxPyBeginAllowThreads();
24185 delete arg1;
24186
24187 wxPyEndAllowThreads(__tstate);
24188 if (PyErr_Occurred()) SWIG_fail;
24189 }
24190 resultobj = SWIG_Py_Void();
24191 return resultobj;
24192 fail:
24193 return NULL;
24194 }
24195
24196
24197 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24198 PyObject *resultobj = 0;
24199 wxRendererVersion *arg1 = 0 ;
24200 bool result;
24201 void *argp1 = 0 ;
24202 int res1 = 0 ;
24203 PyObject * obj0 = 0 ;
24204 char * kwnames[] = {
24205 (char *) "ver", NULL
24206 };
24207
24208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
24209 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
24210 if (!SWIG_IsOK(res1)) {
24211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24212 }
24213 if (!argp1) {
24214 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24215 }
24216 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24217 {
24218 PyThreadState* __tstate = wxPyBeginAllowThreads();
24219 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
24220 wxPyEndAllowThreads(__tstate);
24221 if (PyErr_Occurred()) SWIG_fail;
24222 }
24223 {
24224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24225 }
24226 return resultobj;
24227 fail:
24228 return NULL;
24229 }
24230
24231
24232 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24233 PyObject *resultobj = 0;
24234 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24235 int result;
24236 void *argp1 = 0 ;
24237 int res1 = 0 ;
24238 PyObject *swig_obj[1] ;
24239
24240 if (!args) SWIG_fail;
24241 swig_obj[0] = args;
24242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24243 if (!SWIG_IsOK(res1)) {
24244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24245 }
24246 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24247 result = (int)(int) ((arg1)->version);
24248 resultobj = SWIG_From_int(static_cast< int >(result));
24249 return resultobj;
24250 fail:
24251 return NULL;
24252 }
24253
24254
24255 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24256 PyObject *resultobj = 0;
24257 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24258 int result;
24259 void *argp1 = 0 ;
24260 int res1 = 0 ;
24261 PyObject *swig_obj[1] ;
24262
24263 if (!args) SWIG_fail;
24264 swig_obj[0] = args;
24265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24266 if (!SWIG_IsOK(res1)) {
24267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24268 }
24269 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24270 result = (int)(int) ((arg1)->age);
24271 resultobj = SWIG_From_int(static_cast< int >(result));
24272 return resultobj;
24273 fail:
24274 return NULL;
24275 }
24276
24277
24278 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24279 PyObject *obj;
24280 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24281 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
24282 return SWIG_Py_Void();
24283 }
24284
24285 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24286 return SWIG_Python_InitShadowInstance(args);
24287 }
24288
24289 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24290 PyObject *resultobj = 0;
24291 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24292 wxWindow *arg2 = (wxWindow *) 0 ;
24293 wxDC *arg3 = 0 ;
24294 wxRect *arg4 = 0 ;
24295 int arg5 = (int) 0 ;
24296 void *argp1 = 0 ;
24297 int res1 = 0 ;
24298 void *argp2 = 0 ;
24299 int res2 = 0 ;
24300 void *argp3 = 0 ;
24301 int res3 = 0 ;
24302 wxRect temp4 ;
24303 int val5 ;
24304 int ecode5 = 0 ;
24305 PyObject * obj0 = 0 ;
24306 PyObject * obj1 = 0 ;
24307 PyObject * obj2 = 0 ;
24308 PyObject * obj3 = 0 ;
24309 PyObject * obj4 = 0 ;
24310 char * kwnames[] = {
24311 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24312 };
24313
24314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24316 if (!SWIG_IsOK(res1)) {
24317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24318 }
24319 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24320 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24321 if (!SWIG_IsOK(res2)) {
24322 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24323 }
24324 arg2 = reinterpret_cast< wxWindow * >(argp2);
24325 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24326 if (!SWIG_IsOK(res3)) {
24327 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24328 }
24329 if (!argp3) {
24330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24331 }
24332 arg3 = reinterpret_cast< wxDC * >(argp3);
24333 {
24334 arg4 = &temp4;
24335 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24336 }
24337 if (obj4) {
24338 ecode5 = SWIG_AsVal_int(obj4, &val5);
24339 if (!SWIG_IsOK(ecode5)) {
24340 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
24341 }
24342 arg5 = static_cast< int >(val5);
24343 }
24344 {
24345 PyThreadState* __tstate = wxPyBeginAllowThreads();
24346 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24347 wxPyEndAllowThreads(__tstate);
24348 if (PyErr_Occurred()) SWIG_fail;
24349 }
24350 resultobj = SWIG_Py_Void();
24351 return resultobj;
24352 fail:
24353 return NULL;
24354 }
24355
24356
24357 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24358 PyObject *resultobj = 0;
24359 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24360 wxWindow *arg2 = (wxWindow *) 0 ;
24361 wxDC *arg3 = 0 ;
24362 wxRect *arg4 = 0 ;
24363 int arg5 = (int) 0 ;
24364 void *argp1 = 0 ;
24365 int res1 = 0 ;
24366 void *argp2 = 0 ;
24367 int res2 = 0 ;
24368 void *argp3 = 0 ;
24369 int res3 = 0 ;
24370 wxRect temp4 ;
24371 int val5 ;
24372 int ecode5 = 0 ;
24373 PyObject * obj0 = 0 ;
24374 PyObject * obj1 = 0 ;
24375 PyObject * obj2 = 0 ;
24376 PyObject * obj3 = 0 ;
24377 PyObject * obj4 = 0 ;
24378 char * kwnames[] = {
24379 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24380 };
24381
24382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24384 if (!SWIG_IsOK(res1)) {
24385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24386 }
24387 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24388 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24389 if (!SWIG_IsOK(res2)) {
24390 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24391 }
24392 arg2 = reinterpret_cast< wxWindow * >(argp2);
24393 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24394 if (!SWIG_IsOK(res3)) {
24395 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24396 }
24397 if (!argp3) {
24398 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24399 }
24400 arg3 = reinterpret_cast< wxDC * >(argp3);
24401 {
24402 arg4 = &temp4;
24403 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24404 }
24405 if (obj4) {
24406 ecode5 = SWIG_AsVal_int(obj4, &val5);
24407 if (!SWIG_IsOK(ecode5)) {
24408 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
24409 }
24410 arg5 = static_cast< int >(val5);
24411 }
24412 {
24413 PyThreadState* __tstate = wxPyBeginAllowThreads();
24414 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24415 wxPyEndAllowThreads(__tstate);
24416 if (PyErr_Occurred()) SWIG_fail;
24417 }
24418 resultobj = SWIG_Py_Void();
24419 return resultobj;
24420 fail:
24421 return NULL;
24422 }
24423
24424
24425 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24426 PyObject *resultobj = 0;
24427 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24428 wxWindow *arg2 = (wxWindow *) 0 ;
24429 wxDC *arg3 = 0 ;
24430 wxRect *arg4 = 0 ;
24431 int arg5 = (int) 0 ;
24432 void *argp1 = 0 ;
24433 int res1 = 0 ;
24434 void *argp2 = 0 ;
24435 int res2 = 0 ;
24436 void *argp3 = 0 ;
24437 int res3 = 0 ;
24438 wxRect temp4 ;
24439 int val5 ;
24440 int ecode5 = 0 ;
24441 PyObject * obj0 = 0 ;
24442 PyObject * obj1 = 0 ;
24443 PyObject * obj2 = 0 ;
24444 PyObject * obj3 = 0 ;
24445 PyObject * obj4 = 0 ;
24446 char * kwnames[] = {
24447 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24448 };
24449
24450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24452 if (!SWIG_IsOK(res1)) {
24453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24454 }
24455 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24456 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24457 if (!SWIG_IsOK(res2)) {
24458 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
24459 }
24460 arg2 = reinterpret_cast< wxWindow * >(argp2);
24461 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24462 if (!SWIG_IsOK(res3)) {
24463 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24464 }
24465 if (!argp3) {
24466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24467 }
24468 arg3 = reinterpret_cast< wxDC * >(argp3);
24469 {
24470 arg4 = &temp4;
24471 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24472 }
24473 if (obj4) {
24474 ecode5 = SWIG_AsVal_int(obj4, &val5);
24475 if (!SWIG_IsOK(ecode5)) {
24476 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
24477 }
24478 arg5 = static_cast< int >(val5);
24479 }
24480 {
24481 PyThreadState* __tstate = wxPyBeginAllowThreads();
24482 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
24483 wxPyEndAllowThreads(__tstate);
24484 if (PyErr_Occurred()) SWIG_fail;
24485 }
24486 resultobj = SWIG_Py_Void();
24487 return resultobj;
24488 fail:
24489 return NULL;
24490 }
24491
24492
24493 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24494 PyObject *resultobj = 0;
24495 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24496 wxWindow *arg2 = (wxWindow *) 0 ;
24497 wxDC *arg3 = 0 ;
24498 wxSize *arg4 = 0 ;
24499 int arg5 ;
24500 wxOrientation arg6 ;
24501 int arg7 = (int) 0 ;
24502 void *argp1 = 0 ;
24503 int res1 = 0 ;
24504 void *argp2 = 0 ;
24505 int res2 = 0 ;
24506 void *argp3 = 0 ;
24507 int res3 = 0 ;
24508 wxSize temp4 ;
24509 int val5 ;
24510 int ecode5 = 0 ;
24511 int val6 ;
24512 int ecode6 = 0 ;
24513 int val7 ;
24514 int ecode7 = 0 ;
24515 PyObject * obj0 = 0 ;
24516 PyObject * obj1 = 0 ;
24517 PyObject * obj2 = 0 ;
24518 PyObject * obj3 = 0 ;
24519 PyObject * obj4 = 0 ;
24520 PyObject * obj5 = 0 ;
24521 PyObject * obj6 = 0 ;
24522 char * kwnames[] = {
24523 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
24524 };
24525
24526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24528 if (!SWIG_IsOK(res1)) {
24529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24530 }
24531 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24532 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24533 if (!SWIG_IsOK(res2)) {
24534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
24535 }
24536 arg2 = reinterpret_cast< wxWindow * >(argp2);
24537 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24538 if (!SWIG_IsOK(res3)) {
24539 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24540 }
24541 if (!argp3) {
24542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24543 }
24544 arg3 = reinterpret_cast< wxDC * >(argp3);
24545 {
24546 arg4 = &temp4;
24547 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24548 }
24549 ecode5 = SWIG_AsVal_int(obj4, &val5);
24550 if (!SWIG_IsOK(ecode5)) {
24551 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
24552 }
24553 arg5 = static_cast< int >(val5);
24554 ecode6 = SWIG_AsVal_int(obj5, &val6);
24555 if (!SWIG_IsOK(ecode6)) {
24556 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
24557 }
24558 arg6 = static_cast< wxOrientation >(val6);
24559 if (obj6) {
24560 ecode7 = SWIG_AsVal_int(obj6, &val7);
24561 if (!SWIG_IsOK(ecode7)) {
24562 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
24563 }
24564 arg7 = static_cast< int >(val7);
24565 }
24566 {
24567 PyThreadState* __tstate = wxPyBeginAllowThreads();
24568 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
24569 wxPyEndAllowThreads(__tstate);
24570 if (PyErr_Occurred()) SWIG_fail;
24571 }
24572 resultobj = SWIG_Py_Void();
24573 return resultobj;
24574 fail:
24575 return NULL;
24576 }
24577
24578
24579 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24580 PyObject *resultobj = 0;
24581 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24582 wxWindow *arg2 = (wxWindow *) 0 ;
24583 wxDC *arg3 = 0 ;
24584 wxRect *arg4 = 0 ;
24585 int arg5 = (int) 0 ;
24586 void *argp1 = 0 ;
24587 int res1 = 0 ;
24588 void *argp2 = 0 ;
24589 int res2 = 0 ;
24590 void *argp3 = 0 ;
24591 int res3 = 0 ;
24592 wxRect temp4 ;
24593 int val5 ;
24594 int ecode5 = 0 ;
24595 PyObject * obj0 = 0 ;
24596 PyObject * obj1 = 0 ;
24597 PyObject * obj2 = 0 ;
24598 PyObject * obj3 = 0 ;
24599 PyObject * obj4 = 0 ;
24600 char * kwnames[] = {
24601 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24602 };
24603
24604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24606 if (!SWIG_IsOK(res1)) {
24607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24608 }
24609 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24610 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24611 if (!SWIG_IsOK(res2)) {
24612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24613 }
24614 arg2 = reinterpret_cast< wxWindow * >(argp2);
24615 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24616 if (!SWIG_IsOK(res3)) {
24617 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24618 }
24619 if (!argp3) {
24620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24621 }
24622 arg3 = reinterpret_cast< wxDC * >(argp3);
24623 {
24624 arg4 = &temp4;
24625 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24626 }
24627 if (obj4) {
24628 ecode5 = SWIG_AsVal_int(obj4, &val5);
24629 if (!SWIG_IsOK(ecode5)) {
24630 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
24631 }
24632 arg5 = static_cast< int >(val5);
24633 }
24634 {
24635 PyThreadState* __tstate = wxPyBeginAllowThreads();
24636 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24637 wxPyEndAllowThreads(__tstate);
24638 if (PyErr_Occurred()) SWIG_fail;
24639 }
24640 resultobj = SWIG_Py_Void();
24641 return resultobj;
24642 fail:
24643 return NULL;
24644 }
24645
24646
24647 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24648 PyObject *resultobj = 0;
24649 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24650 wxWindow *arg2 = (wxWindow *) 0 ;
24651 wxDC *arg3 = 0 ;
24652 wxRect *arg4 = 0 ;
24653 int arg5 = (int) 0 ;
24654 void *argp1 = 0 ;
24655 int res1 = 0 ;
24656 void *argp2 = 0 ;
24657 int res2 = 0 ;
24658 void *argp3 = 0 ;
24659 int res3 = 0 ;
24660 wxRect temp4 ;
24661 int val5 ;
24662 int ecode5 = 0 ;
24663 PyObject * obj0 = 0 ;
24664 PyObject * obj1 = 0 ;
24665 PyObject * obj2 = 0 ;
24666 PyObject * obj3 = 0 ;
24667 PyObject * obj4 = 0 ;
24668 char * kwnames[] = {
24669 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24670 };
24671
24672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24674 if (!SWIG_IsOK(res1)) {
24675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24676 }
24677 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24678 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24679 if (!SWIG_IsOK(res2)) {
24680 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
24681 }
24682 arg2 = reinterpret_cast< wxWindow * >(argp2);
24683 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24684 if (!SWIG_IsOK(res3)) {
24685 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24686 }
24687 if (!argp3) {
24688 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24689 }
24690 arg3 = reinterpret_cast< wxDC * >(argp3);
24691 {
24692 arg4 = &temp4;
24693 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24694 }
24695 if (obj4) {
24696 ecode5 = SWIG_AsVal_int(obj4, &val5);
24697 if (!SWIG_IsOK(ecode5)) {
24698 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
24699 }
24700 arg5 = static_cast< int >(val5);
24701 }
24702 {
24703 PyThreadState* __tstate = wxPyBeginAllowThreads();
24704 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
24705 wxPyEndAllowThreads(__tstate);
24706 if (PyErr_Occurred()) SWIG_fail;
24707 }
24708 resultobj = SWIG_Py_Void();
24709 return resultobj;
24710 fail:
24711 return NULL;
24712 }
24713
24714
24715 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24716 PyObject *resultobj = 0;
24717 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24718 wxWindow *arg2 = (wxWindow *) 0 ;
24719 wxDC *arg3 = 0 ;
24720 wxRect *arg4 = 0 ;
24721 int arg5 = (int) 0 ;
24722 void *argp1 = 0 ;
24723 int res1 = 0 ;
24724 void *argp2 = 0 ;
24725 int res2 = 0 ;
24726 void *argp3 = 0 ;
24727 int res3 = 0 ;
24728 wxRect temp4 ;
24729 int val5 ;
24730 int ecode5 = 0 ;
24731 PyObject * obj0 = 0 ;
24732 PyObject * obj1 = 0 ;
24733 PyObject * obj2 = 0 ;
24734 PyObject * obj3 = 0 ;
24735 PyObject * obj4 = 0 ;
24736 char * kwnames[] = {
24737 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24738 };
24739
24740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24742 if (!SWIG_IsOK(res1)) {
24743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24744 }
24745 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24746 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24747 if (!SWIG_IsOK(res2)) {
24748 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
24749 }
24750 arg2 = reinterpret_cast< wxWindow * >(argp2);
24751 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24752 if (!SWIG_IsOK(res3)) {
24753 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
24754 }
24755 if (!argp3) {
24756 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
24757 }
24758 arg3 = reinterpret_cast< wxDC * >(argp3);
24759 {
24760 arg4 = &temp4;
24761 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24762 }
24763 if (obj4) {
24764 ecode5 = SWIG_AsVal_int(obj4, &val5);
24765 if (!SWIG_IsOK(ecode5)) {
24766 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
24767 }
24768 arg5 = static_cast< int >(val5);
24769 }
24770 {
24771 PyThreadState* __tstate = wxPyBeginAllowThreads();
24772 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
24773 wxPyEndAllowThreads(__tstate);
24774 if (PyErr_Occurred()) SWIG_fail;
24775 }
24776 resultobj = SWIG_Py_Void();
24777 return resultobj;
24778 fail:
24779 return NULL;
24780 }
24781
24782
24783 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24784 PyObject *resultobj = 0;
24785 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24786 wxWindow *arg2 = (wxWindow *) 0 ;
24787 wxDC *arg3 = 0 ;
24788 wxRect *arg4 = 0 ;
24789 int arg5 = (int) 0 ;
24790 void *argp1 = 0 ;
24791 int res1 = 0 ;
24792 void *argp2 = 0 ;
24793 int res2 = 0 ;
24794 void *argp3 = 0 ;
24795 int res3 = 0 ;
24796 wxRect temp4 ;
24797 int val5 ;
24798 int ecode5 = 0 ;
24799 PyObject * obj0 = 0 ;
24800 PyObject * obj1 = 0 ;
24801 PyObject * obj2 = 0 ;
24802 PyObject * obj3 = 0 ;
24803 PyObject * obj4 = 0 ;
24804 char * kwnames[] = {
24805 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24806 };
24807
24808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24810 if (!SWIG_IsOK(res1)) {
24811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24812 }
24813 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24814 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24815 if (!SWIG_IsOK(res2)) {
24816 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24817 }
24818 arg2 = reinterpret_cast< wxWindow * >(argp2);
24819 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24820 if (!SWIG_IsOK(res3)) {
24821 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
24822 }
24823 if (!argp3) {
24824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
24825 }
24826 arg3 = reinterpret_cast< wxDC * >(argp3);
24827 {
24828 arg4 = &temp4;
24829 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24830 }
24831 if (obj4) {
24832 ecode5 = SWIG_AsVal_int(obj4, &val5);
24833 if (!SWIG_IsOK(ecode5)) {
24834 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
24835 }
24836 arg5 = static_cast< int >(val5);
24837 }
24838 {
24839 PyThreadState* __tstate = wxPyBeginAllowThreads();
24840 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24841 wxPyEndAllowThreads(__tstate);
24842 if (PyErr_Occurred()) SWIG_fail;
24843 }
24844 resultobj = SWIG_Py_Void();
24845 return resultobj;
24846 fail:
24847 return NULL;
24848 }
24849
24850
24851 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24852 PyObject *resultobj = 0;
24853 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24854 wxWindow *arg2 = (wxWindow *) 0 ;
24855 wxDC *arg3 = 0 ;
24856 wxRect *arg4 = 0 ;
24857 int arg5 = (int) 0 ;
24858 void *argp1 = 0 ;
24859 int res1 = 0 ;
24860 void *argp2 = 0 ;
24861 int res2 = 0 ;
24862 void *argp3 = 0 ;
24863 int res3 = 0 ;
24864 wxRect temp4 ;
24865 int val5 ;
24866 int ecode5 = 0 ;
24867 PyObject * obj0 = 0 ;
24868 PyObject * obj1 = 0 ;
24869 PyObject * obj2 = 0 ;
24870 PyObject * obj3 = 0 ;
24871 PyObject * obj4 = 0 ;
24872 char * kwnames[] = {
24873 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24874 };
24875
24876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24878 if (!SWIG_IsOK(res1)) {
24879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24880 }
24881 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24882 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24883 if (!SWIG_IsOK(res2)) {
24884 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
24885 }
24886 arg2 = reinterpret_cast< wxWindow * >(argp2);
24887 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24888 if (!SWIG_IsOK(res3)) {
24889 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
24890 }
24891 if (!argp3) {
24892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
24893 }
24894 arg3 = reinterpret_cast< wxDC * >(argp3);
24895 {
24896 arg4 = &temp4;
24897 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24898 }
24899 if (obj4) {
24900 ecode5 = SWIG_AsVal_int(obj4, &val5);
24901 if (!SWIG_IsOK(ecode5)) {
24902 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
24903 }
24904 arg5 = static_cast< int >(val5);
24905 }
24906 {
24907 PyThreadState* __tstate = wxPyBeginAllowThreads();
24908 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
24909 wxPyEndAllowThreads(__tstate);
24910 if (PyErr_Occurred()) SWIG_fail;
24911 }
24912 resultobj = SWIG_Py_Void();
24913 return resultobj;
24914 fail:
24915 return NULL;
24916 }
24917
24918
24919 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24920 PyObject *resultobj = 0;
24921 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24922 wxWindow *arg2 = (wxWindow *) 0 ;
24923 SwigValueWrapper<wxSplitterRenderParams > result;
24924 void *argp1 = 0 ;
24925 int res1 = 0 ;
24926 void *argp2 = 0 ;
24927 int res2 = 0 ;
24928 PyObject * obj0 = 0 ;
24929 PyObject * obj1 = 0 ;
24930 char * kwnames[] = {
24931 (char *) "self",(char *) "win", NULL
24932 };
24933
24934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
24935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24936 if (!SWIG_IsOK(res1)) {
24937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24938 }
24939 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24940 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24941 if (!SWIG_IsOK(res2)) {
24942 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
24943 }
24944 arg2 = reinterpret_cast< wxWindow * >(argp2);
24945 {
24946 PyThreadState* __tstate = wxPyBeginAllowThreads();
24947 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
24948 wxPyEndAllowThreads(__tstate);
24949 if (PyErr_Occurred()) SWIG_fail;
24950 }
24951 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
24952 return resultobj;
24953 fail:
24954 return NULL;
24955 }
24956
24957
24958 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24959 PyObject *resultobj = 0;
24960 wxRendererNative *result = 0 ;
24961
24962 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
24963 {
24964 if (!wxPyCheckForApp()) SWIG_fail;
24965 PyThreadState* __tstate = wxPyBeginAllowThreads();
24966 {
24967 wxRendererNative &_result_ref = wxRendererNative::Get();
24968 result = (wxRendererNative *) &_result_ref;
24969 }
24970 wxPyEndAllowThreads(__tstate);
24971 if (PyErr_Occurred()) SWIG_fail;
24972 }
24973 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24974 return resultobj;
24975 fail:
24976 return NULL;
24977 }
24978
24979
24980 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24981 PyObject *resultobj = 0;
24982 wxRendererNative *result = 0 ;
24983
24984 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
24985 {
24986 if (!wxPyCheckForApp()) SWIG_fail;
24987 PyThreadState* __tstate = wxPyBeginAllowThreads();
24988 {
24989 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
24990 result = (wxRendererNative *) &_result_ref;
24991 }
24992 wxPyEndAllowThreads(__tstate);
24993 if (PyErr_Occurred()) SWIG_fail;
24994 }
24995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24996 return resultobj;
24997 fail:
24998 return NULL;
24999 }
25000
25001
25002 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25003 PyObject *resultobj = 0;
25004 wxRendererNative *result = 0 ;
25005
25006 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
25007 {
25008 if (!wxPyCheckForApp()) SWIG_fail;
25009 PyThreadState* __tstate = wxPyBeginAllowThreads();
25010 {
25011 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
25012 result = (wxRendererNative *) &_result_ref;
25013 }
25014 wxPyEndAllowThreads(__tstate);
25015 if (PyErr_Occurred()) SWIG_fail;
25016 }
25017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25018 return resultobj;
25019 fail:
25020 return NULL;
25021 }
25022
25023
25024 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25025 PyObject *resultobj = 0;
25026 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25027 wxRendererNative *result = 0 ;
25028 void *argp1 = 0 ;
25029 int res1 = 0 ;
25030 PyObject * obj0 = 0 ;
25031 char * kwnames[] = {
25032 (char *) "renderer", NULL
25033 };
25034
25035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
25036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25037 if (!SWIG_IsOK(res1)) {
25038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25039 }
25040 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25041 {
25042 if (!wxPyCheckForApp()) SWIG_fail;
25043 PyThreadState* __tstate = wxPyBeginAllowThreads();
25044 result = (wxRendererNative *)wxRendererNative::Set(arg1);
25045 wxPyEndAllowThreads(__tstate);
25046 if (PyErr_Occurred()) SWIG_fail;
25047 }
25048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25049 return resultobj;
25050 fail:
25051 return NULL;
25052 }
25053
25054
25055 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25056 PyObject *resultobj = 0;
25057 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25058 SwigValueWrapper<wxRendererVersion > result;
25059 void *argp1 = 0 ;
25060 int res1 = 0 ;
25061 PyObject *swig_obj[1] ;
25062
25063 if (!args) SWIG_fail;
25064 swig_obj[0] = args;
25065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25066 if (!SWIG_IsOK(res1)) {
25067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
25068 }
25069 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25070 {
25071 PyThreadState* __tstate = wxPyBeginAllowThreads();
25072 result = ((wxRendererNative const *)arg1)->GetVersion();
25073 wxPyEndAllowThreads(__tstate);
25074 if (PyErr_Occurred()) SWIG_fail;
25075 }
25076 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
25077 return resultobj;
25078 fail:
25079 return NULL;
25080 }
25081
25082
25083 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25084 PyObject *obj;
25085 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25086 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
25087 return SWIG_Py_Void();
25088 }
25089
25090 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25091 PyObject *resultobj = 0;
25092 wxPseudoDC *result = 0 ;
25093
25094 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
25095 {
25096 PyThreadState* __tstate = wxPyBeginAllowThreads();
25097 result = (wxPseudoDC *)new wxPseudoDC();
25098 wxPyEndAllowThreads(__tstate);
25099 if (PyErr_Occurred()) SWIG_fail;
25100 }
25101 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
25102 return resultobj;
25103 fail:
25104 return NULL;
25105 }
25106
25107
25108 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25109 PyObject *resultobj = 0;
25110 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25111 void *argp1 = 0 ;
25112 int res1 = 0 ;
25113 PyObject *swig_obj[1] ;
25114
25115 if (!args) SWIG_fail;
25116 swig_obj[0] = args;
25117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25118 if (!SWIG_IsOK(res1)) {
25119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25120 }
25121 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25122 {
25123 PyThreadState* __tstate = wxPyBeginAllowThreads();
25124 (arg1)->BeginDrawing();
25125 wxPyEndAllowThreads(__tstate);
25126 if (PyErr_Occurred()) SWIG_fail;
25127 }
25128 resultobj = SWIG_Py_Void();
25129 return resultobj;
25130 fail:
25131 return NULL;
25132 }
25133
25134
25135 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25136 PyObject *resultobj = 0;
25137 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25138 void *argp1 = 0 ;
25139 int res1 = 0 ;
25140 PyObject *swig_obj[1] ;
25141
25142 if (!args) SWIG_fail;
25143 swig_obj[0] = args;
25144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25145 if (!SWIG_IsOK(res1)) {
25146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25147 }
25148 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25149 {
25150 PyThreadState* __tstate = wxPyBeginAllowThreads();
25151 (arg1)->EndDrawing();
25152 wxPyEndAllowThreads(__tstate);
25153 if (PyErr_Occurred()) SWIG_fail;
25154 }
25155 resultobj = SWIG_Py_Void();
25156 return resultobj;
25157 fail:
25158 return NULL;
25159 }
25160
25161
25162 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25163 PyObject *resultobj = 0;
25164 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25165 void *argp1 = 0 ;
25166 int res1 = 0 ;
25167 PyObject *swig_obj[1] ;
25168
25169 if (!args) SWIG_fail;
25170 swig_obj[0] = args;
25171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
25172 if (!SWIG_IsOK(res1)) {
25173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25174 }
25175 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25176 {
25177 PyThreadState* __tstate = wxPyBeginAllowThreads();
25178 delete arg1;
25179
25180 wxPyEndAllowThreads(__tstate);
25181 if (PyErr_Occurred()) SWIG_fail;
25182 }
25183 resultobj = SWIG_Py_Void();
25184 return resultobj;
25185 fail:
25186 return NULL;
25187 }
25188
25189
25190 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25191 PyObject *resultobj = 0;
25192 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25193 void *argp1 = 0 ;
25194 int res1 = 0 ;
25195 PyObject *swig_obj[1] ;
25196
25197 if (!args) SWIG_fail;
25198 swig_obj[0] = args;
25199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25200 if (!SWIG_IsOK(res1)) {
25201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25202 }
25203 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25204 {
25205 PyThreadState* __tstate = wxPyBeginAllowThreads();
25206 (arg1)->RemoveAll();
25207 wxPyEndAllowThreads(__tstate);
25208 if (PyErr_Occurred()) SWIG_fail;
25209 }
25210 resultobj = SWIG_Py_Void();
25211 return resultobj;
25212 fail:
25213 return NULL;
25214 }
25215
25216
25217 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25218 PyObject *resultobj = 0;
25219 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25220 int result;
25221 void *argp1 = 0 ;
25222 int res1 = 0 ;
25223 PyObject *swig_obj[1] ;
25224
25225 if (!args) SWIG_fail;
25226 swig_obj[0] = args;
25227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25228 if (!SWIG_IsOK(res1)) {
25229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25230 }
25231 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25232 {
25233 PyThreadState* __tstate = wxPyBeginAllowThreads();
25234 result = (int)(arg1)->GetLen();
25235 wxPyEndAllowThreads(__tstate);
25236 if (PyErr_Occurred()) SWIG_fail;
25237 }
25238 resultobj = SWIG_From_int(static_cast< int >(result));
25239 return resultobj;
25240 fail:
25241 return NULL;
25242 }
25243
25244
25245 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25246 PyObject *resultobj = 0;
25247 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25248 int arg2 ;
25249 void *argp1 = 0 ;
25250 int res1 = 0 ;
25251 int val2 ;
25252 int ecode2 = 0 ;
25253 PyObject * obj0 = 0 ;
25254 PyObject * obj1 = 0 ;
25255 char * kwnames[] = {
25256 (char *) "self",(char *) "id", NULL
25257 };
25258
25259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
25260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25261 if (!SWIG_IsOK(res1)) {
25262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25263 }
25264 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25265 ecode2 = SWIG_AsVal_int(obj1, &val2);
25266 if (!SWIG_IsOK(ecode2)) {
25267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
25268 }
25269 arg2 = static_cast< int >(val2);
25270 {
25271 PyThreadState* __tstate = wxPyBeginAllowThreads();
25272 (arg1)->SetId(arg2);
25273 wxPyEndAllowThreads(__tstate);
25274 if (PyErr_Occurred()) SWIG_fail;
25275 }
25276 resultobj = SWIG_Py_Void();
25277 return resultobj;
25278 fail:
25279 return NULL;
25280 }
25281
25282
25283 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25284 PyObject *resultobj = 0;
25285 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25286 int arg2 ;
25287 void *argp1 = 0 ;
25288 int res1 = 0 ;
25289 int val2 ;
25290 int ecode2 = 0 ;
25291 PyObject * obj0 = 0 ;
25292 PyObject * obj1 = 0 ;
25293 char * kwnames[] = {
25294 (char *) "self",(char *) "id", NULL
25295 };
25296
25297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
25298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25299 if (!SWIG_IsOK(res1)) {
25300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25301 }
25302 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25303 ecode2 = SWIG_AsVal_int(obj1, &val2);
25304 if (!SWIG_IsOK(ecode2)) {
25305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
25306 }
25307 arg2 = static_cast< int >(val2);
25308 {
25309 PyThreadState* __tstate = wxPyBeginAllowThreads();
25310 (arg1)->ClearId(arg2);
25311 wxPyEndAllowThreads(__tstate);
25312 if (PyErr_Occurred()) SWIG_fail;
25313 }
25314 resultobj = SWIG_Py_Void();
25315 return resultobj;
25316 fail:
25317 return NULL;
25318 }
25319
25320
25321 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25322 PyObject *resultobj = 0;
25323 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25324 int arg2 ;
25325 void *argp1 = 0 ;
25326 int res1 = 0 ;
25327 int val2 ;
25328 int ecode2 = 0 ;
25329 PyObject * obj0 = 0 ;
25330 PyObject * obj1 = 0 ;
25331 char * kwnames[] = {
25332 (char *) "self",(char *) "id", NULL
25333 };
25334
25335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
25336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25337 if (!SWIG_IsOK(res1)) {
25338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25339 }
25340 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25341 ecode2 = SWIG_AsVal_int(obj1, &val2);
25342 if (!SWIG_IsOK(ecode2)) {
25343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
25344 }
25345 arg2 = static_cast< int >(val2);
25346 {
25347 PyThreadState* __tstate = wxPyBeginAllowThreads();
25348 (arg1)->RemoveId(arg2);
25349 wxPyEndAllowThreads(__tstate);
25350 if (PyErr_Occurred()) SWIG_fail;
25351 }
25352 resultobj = SWIG_Py_Void();
25353 return resultobj;
25354 fail:
25355 return NULL;
25356 }
25357
25358
25359 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25360 PyObject *resultobj = 0;
25361 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25362 int arg2 ;
25363 int arg3 ;
25364 int arg4 ;
25365 void *argp1 = 0 ;
25366 int res1 = 0 ;
25367 int val2 ;
25368 int ecode2 = 0 ;
25369 int val3 ;
25370 int ecode3 = 0 ;
25371 int val4 ;
25372 int ecode4 = 0 ;
25373 PyObject * obj0 = 0 ;
25374 PyObject * obj1 = 0 ;
25375 PyObject * obj2 = 0 ;
25376 PyObject * obj3 = 0 ;
25377 char * kwnames[] = {
25378 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
25379 };
25380
25381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25383 if (!SWIG_IsOK(res1)) {
25384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25385 }
25386 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25387 ecode2 = SWIG_AsVal_int(obj1, &val2);
25388 if (!SWIG_IsOK(ecode2)) {
25389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
25390 }
25391 arg2 = static_cast< int >(val2);
25392 ecode3 = SWIG_AsVal_int(obj2, &val3);
25393 if (!SWIG_IsOK(ecode3)) {
25394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
25395 }
25396 arg3 = static_cast< int >(val3);
25397 ecode4 = SWIG_AsVal_int(obj3, &val4);
25398 if (!SWIG_IsOK(ecode4)) {
25399 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
25400 }
25401 arg4 = static_cast< int >(val4);
25402 {
25403 PyThreadState* __tstate = wxPyBeginAllowThreads();
25404 (arg1)->TranslateId(arg2,arg3,arg4);
25405 wxPyEndAllowThreads(__tstate);
25406 if (PyErr_Occurred()) SWIG_fail;
25407 }
25408 resultobj = SWIG_Py_Void();
25409 return resultobj;
25410 fail:
25411 return NULL;
25412 }
25413
25414
25415 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25416 PyObject *resultobj = 0;
25417 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25418 int arg2 ;
25419 wxDC *arg3 = (wxDC *) 0 ;
25420 void *argp1 = 0 ;
25421 int res1 = 0 ;
25422 int val2 ;
25423 int ecode2 = 0 ;
25424 void *argp3 = 0 ;
25425 int res3 = 0 ;
25426 PyObject * obj0 = 0 ;
25427 PyObject * obj1 = 0 ;
25428 PyObject * obj2 = 0 ;
25429 char * kwnames[] = {
25430 (char *) "self",(char *) "id",(char *) "dc", NULL
25431 };
25432
25433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25435 if (!SWIG_IsOK(res1)) {
25436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25437 }
25438 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25439 ecode2 = SWIG_AsVal_int(obj1, &val2);
25440 if (!SWIG_IsOK(ecode2)) {
25441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
25442 }
25443 arg2 = static_cast< int >(val2);
25444 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
25445 if (!SWIG_IsOK(res3)) {
25446 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
25447 }
25448 arg3 = reinterpret_cast< wxDC * >(argp3);
25449 {
25450 PyThreadState* __tstate = wxPyBeginAllowThreads();
25451 (arg1)->DrawIdToDC(arg2,arg3);
25452 wxPyEndAllowThreads(__tstate);
25453 if (PyErr_Occurred()) SWIG_fail;
25454 }
25455 resultobj = SWIG_Py_Void();
25456 return resultobj;
25457 fail:
25458 return NULL;
25459 }
25460
25461
25462 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25463 PyObject *resultobj = 0;
25464 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25465 int arg2 ;
25466 wxRect *arg3 = 0 ;
25467 void *argp1 = 0 ;
25468 int res1 = 0 ;
25469 int val2 ;
25470 int ecode2 = 0 ;
25471 wxRect temp3 ;
25472 PyObject * obj0 = 0 ;
25473 PyObject * obj1 = 0 ;
25474 PyObject * obj2 = 0 ;
25475 char * kwnames[] = {
25476 (char *) "self",(char *) "id",(char *) "rect", NULL
25477 };
25478
25479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25481 if (!SWIG_IsOK(res1)) {
25482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25483 }
25484 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25485 ecode2 = SWIG_AsVal_int(obj1, &val2);
25486 if (!SWIG_IsOK(ecode2)) {
25487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
25488 }
25489 arg2 = static_cast< int >(val2);
25490 {
25491 arg3 = &temp3;
25492 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
25493 }
25494 {
25495 PyThreadState* __tstate = wxPyBeginAllowThreads();
25496 (arg1)->SetIdBounds(arg2,*arg3);
25497 wxPyEndAllowThreads(__tstate);
25498 if (PyErr_Occurred()) SWIG_fail;
25499 }
25500 resultobj = SWIG_Py_Void();
25501 return resultobj;
25502 fail:
25503 return NULL;
25504 }
25505
25506
25507 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25508 PyObject *resultobj = 0;
25509 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25510 int arg2 ;
25511 wxRect result;
25512 void *argp1 = 0 ;
25513 int res1 = 0 ;
25514 int val2 ;
25515 int ecode2 = 0 ;
25516 PyObject * obj0 = 0 ;
25517 PyObject * obj1 = 0 ;
25518 char * kwnames[] = {
25519 (char *) "self",(char *) "id", NULL
25520 };
25521
25522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
25523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25524 if (!SWIG_IsOK(res1)) {
25525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25526 }
25527 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25528 ecode2 = SWIG_AsVal_int(obj1, &val2);
25529 if (!SWIG_IsOK(ecode2)) {
25530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
25531 }
25532 arg2 = static_cast< int >(val2);
25533 {
25534 PyThreadState* __tstate = wxPyBeginAllowThreads();
25535 result = wxPseudoDC_GetIdBounds(arg1,arg2);
25536 wxPyEndAllowThreads(__tstate);
25537 if (PyErr_Occurred()) SWIG_fail;
25538 }
25539 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
25540 return resultobj;
25541 fail:
25542 return NULL;
25543 }
25544
25545
25546 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25547 PyObject *resultobj = 0;
25548 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25549 wxDC *arg2 = (wxDC *) 0 ;
25550 wxRect *arg3 = 0 ;
25551 void *argp1 = 0 ;
25552 int res1 = 0 ;
25553 void *argp2 = 0 ;
25554 int res2 = 0 ;
25555 wxRect temp3 ;
25556 PyObject * obj0 = 0 ;
25557 PyObject * obj1 = 0 ;
25558 PyObject * obj2 = 0 ;
25559 char * kwnames[] = {
25560 (char *) "self",(char *) "dc",(char *) "rect", NULL
25561 };
25562
25563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25565 if (!SWIG_IsOK(res1)) {
25566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25567 }
25568 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25569 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
25570 if (!SWIG_IsOK(res2)) {
25571 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
25572 }
25573 arg2 = reinterpret_cast< wxDC * >(argp2);
25574 {
25575 arg3 = &temp3;
25576 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
25577 }
25578 {
25579 PyThreadState* __tstate = wxPyBeginAllowThreads();
25580 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
25581 wxPyEndAllowThreads(__tstate);
25582 if (PyErr_Occurred()) SWIG_fail;
25583 }
25584 resultobj = SWIG_Py_Void();
25585 return resultobj;
25586 fail:
25587 return NULL;
25588 }
25589
25590
25591 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25592 PyObject *resultobj = 0;
25593 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25594 wxDC *arg2 = (wxDC *) 0 ;
25595 wxRegion *arg3 = 0 ;
25596 void *argp1 = 0 ;
25597 int res1 = 0 ;
25598 void *argp2 = 0 ;
25599 int res2 = 0 ;
25600 void *argp3 = 0 ;
25601 int res3 = 0 ;
25602 PyObject * obj0 = 0 ;
25603 PyObject * obj1 = 0 ;
25604 PyObject * obj2 = 0 ;
25605 char * kwnames[] = {
25606 (char *) "self",(char *) "dc",(char *) "region", NULL
25607 };
25608
25609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25611 if (!SWIG_IsOK(res1)) {
25612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25613 }
25614 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25615 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
25616 if (!SWIG_IsOK(res2)) {
25617 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
25618 }
25619 arg2 = reinterpret_cast< wxDC * >(argp2);
25620 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
25621 if (!SWIG_IsOK(res3)) {
25622 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
25623 }
25624 if (!argp3) {
25625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
25626 }
25627 arg3 = reinterpret_cast< wxRegion * >(argp3);
25628 {
25629 PyThreadState* __tstate = wxPyBeginAllowThreads();
25630 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
25631 wxPyEndAllowThreads(__tstate);
25632 if (PyErr_Occurred()) SWIG_fail;
25633 }
25634 resultobj = SWIG_Py_Void();
25635 return resultobj;
25636 fail:
25637 return NULL;
25638 }
25639
25640
25641 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25642 PyObject *resultobj = 0;
25643 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25644 wxDC *arg2 = (wxDC *) 0 ;
25645 void *argp1 = 0 ;
25646 int res1 = 0 ;
25647 void *argp2 = 0 ;
25648 int res2 = 0 ;
25649 PyObject * obj0 = 0 ;
25650 PyObject * obj1 = 0 ;
25651 char * kwnames[] = {
25652 (char *) "self",(char *) "dc", NULL
25653 };
25654
25655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
25656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25657 if (!SWIG_IsOK(res1)) {
25658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25659 }
25660 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25661 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
25662 if (!SWIG_IsOK(res2)) {
25663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
25664 }
25665 arg2 = reinterpret_cast< wxDC * >(argp2);
25666 {
25667 PyThreadState* __tstate = wxPyBeginAllowThreads();
25668 (arg1)->DrawToDC(arg2);
25669 wxPyEndAllowThreads(__tstate);
25670 if (PyErr_Occurred()) SWIG_fail;
25671 }
25672 resultobj = SWIG_Py_Void();
25673 return resultobj;
25674 fail:
25675 return NULL;
25676 }
25677
25678
25679 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25680 PyObject *resultobj = 0;
25681 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25682 int arg2 ;
25683 int arg3 ;
25684 wxColour *arg4 = 0 ;
25685 int arg5 = (int) wxFLOOD_SURFACE ;
25686 void *argp1 = 0 ;
25687 int res1 = 0 ;
25688 int val2 ;
25689 int ecode2 = 0 ;
25690 int val3 ;
25691 int ecode3 = 0 ;
25692 wxColour temp4 ;
25693 int val5 ;
25694 int ecode5 = 0 ;
25695 PyObject * obj0 = 0 ;
25696 PyObject * obj1 = 0 ;
25697 PyObject * obj2 = 0 ;
25698 PyObject * obj3 = 0 ;
25699 PyObject * obj4 = 0 ;
25700 char * kwnames[] = {
25701 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
25702 };
25703
25704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25706 if (!SWIG_IsOK(res1)) {
25707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25708 }
25709 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25710 ecode2 = SWIG_AsVal_int(obj1, &val2);
25711 if (!SWIG_IsOK(ecode2)) {
25712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
25713 }
25714 arg2 = static_cast< int >(val2);
25715 ecode3 = SWIG_AsVal_int(obj2, &val3);
25716 if (!SWIG_IsOK(ecode3)) {
25717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
25718 }
25719 arg3 = static_cast< int >(val3);
25720 {
25721 arg4 = &temp4;
25722 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
25723 }
25724 if (obj4) {
25725 ecode5 = SWIG_AsVal_int(obj4, &val5);
25726 if (!SWIG_IsOK(ecode5)) {
25727 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
25728 }
25729 arg5 = static_cast< int >(val5);
25730 }
25731 {
25732 PyThreadState* __tstate = wxPyBeginAllowThreads();
25733 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
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_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25745 PyObject *resultobj = 0;
25746 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25747 wxPoint *arg2 = 0 ;
25748 wxColour *arg3 = 0 ;
25749 int arg4 = (int) wxFLOOD_SURFACE ;
25750 void *argp1 = 0 ;
25751 int res1 = 0 ;
25752 wxPoint temp2 ;
25753 wxColour temp3 ;
25754 int val4 ;
25755 int ecode4 = 0 ;
25756 PyObject * obj0 = 0 ;
25757 PyObject * obj1 = 0 ;
25758 PyObject * obj2 = 0 ;
25759 PyObject * obj3 = 0 ;
25760 char * kwnames[] = {
25761 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
25762 };
25763
25764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25766 if (!SWIG_IsOK(res1)) {
25767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25768 }
25769 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25770 {
25771 arg2 = &temp2;
25772 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25773 }
25774 {
25775 arg3 = &temp3;
25776 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25777 }
25778 if (obj3) {
25779 ecode4 = SWIG_AsVal_int(obj3, &val4);
25780 if (!SWIG_IsOK(ecode4)) {
25781 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
25782 }
25783 arg4 = static_cast< int >(val4);
25784 }
25785 {
25786 PyThreadState* __tstate = wxPyBeginAllowThreads();
25787 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
25788 wxPyEndAllowThreads(__tstate);
25789 if (PyErr_Occurred()) SWIG_fail;
25790 }
25791 resultobj = SWIG_Py_Void();
25792 return resultobj;
25793 fail:
25794 return NULL;
25795 }
25796
25797
25798 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25799 PyObject *resultobj = 0;
25800 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25801 int arg2 ;
25802 int arg3 ;
25803 int arg4 ;
25804 int arg5 ;
25805 void *argp1 = 0 ;
25806 int res1 = 0 ;
25807 int val2 ;
25808 int ecode2 = 0 ;
25809 int val3 ;
25810 int ecode3 = 0 ;
25811 int val4 ;
25812 int ecode4 = 0 ;
25813 int val5 ;
25814 int ecode5 = 0 ;
25815 PyObject * obj0 = 0 ;
25816 PyObject * obj1 = 0 ;
25817 PyObject * obj2 = 0 ;
25818 PyObject * obj3 = 0 ;
25819 PyObject * obj4 = 0 ;
25820 char * kwnames[] = {
25821 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
25822 };
25823
25824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25826 if (!SWIG_IsOK(res1)) {
25827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25828 }
25829 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25830 ecode2 = SWIG_AsVal_int(obj1, &val2);
25831 if (!SWIG_IsOK(ecode2)) {
25832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
25833 }
25834 arg2 = static_cast< int >(val2);
25835 ecode3 = SWIG_AsVal_int(obj2, &val3);
25836 if (!SWIG_IsOK(ecode3)) {
25837 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
25838 }
25839 arg3 = static_cast< int >(val3);
25840 ecode4 = SWIG_AsVal_int(obj3, &val4);
25841 if (!SWIG_IsOK(ecode4)) {
25842 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
25843 }
25844 arg4 = static_cast< int >(val4);
25845 ecode5 = SWIG_AsVal_int(obj4, &val5);
25846 if (!SWIG_IsOK(ecode5)) {
25847 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
25848 }
25849 arg5 = static_cast< int >(val5);
25850 {
25851 PyThreadState* __tstate = wxPyBeginAllowThreads();
25852 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
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_DrawLinePoint(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 void *argp1 = 0 ;
25869 int res1 = 0 ;
25870 wxPoint temp2 ;
25871 wxPoint temp3 ;
25872 PyObject * obj0 = 0 ;
25873 PyObject * obj1 = 0 ;
25874 PyObject * obj2 = 0 ;
25875 char * kwnames[] = {
25876 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
25877 };
25878
25879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25881 if (!SWIG_IsOK(res1)) {
25882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25883 }
25884 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25885 {
25886 arg2 = &temp2;
25887 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25888 }
25889 {
25890 arg3 = &temp3;
25891 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25892 }
25893 {
25894 PyThreadState* __tstate = wxPyBeginAllowThreads();
25895 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
25896 wxPyEndAllowThreads(__tstate);
25897 if (PyErr_Occurred()) SWIG_fail;
25898 }
25899 resultobj = SWIG_Py_Void();
25900 return resultobj;
25901 fail:
25902 return NULL;
25903 }
25904
25905
25906 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25907 PyObject *resultobj = 0;
25908 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25909 int arg2 ;
25910 int arg3 ;
25911 void *argp1 = 0 ;
25912 int res1 = 0 ;
25913 int val2 ;
25914 int ecode2 = 0 ;
25915 int val3 ;
25916 int ecode3 = 0 ;
25917 PyObject * obj0 = 0 ;
25918 PyObject * obj1 = 0 ;
25919 PyObject * obj2 = 0 ;
25920 char * kwnames[] = {
25921 (char *) "self",(char *) "x",(char *) "y", NULL
25922 };
25923
25924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25926 if (!SWIG_IsOK(res1)) {
25927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25928 }
25929 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25930 ecode2 = SWIG_AsVal_int(obj1, &val2);
25931 if (!SWIG_IsOK(ecode2)) {
25932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
25933 }
25934 arg2 = static_cast< int >(val2);
25935 ecode3 = SWIG_AsVal_int(obj2, &val3);
25936 if (!SWIG_IsOK(ecode3)) {
25937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
25938 }
25939 arg3 = static_cast< int >(val3);
25940 {
25941 PyThreadState* __tstate = wxPyBeginAllowThreads();
25942 (arg1)->CrossHair(arg2,arg3);
25943 wxPyEndAllowThreads(__tstate);
25944 if (PyErr_Occurred()) SWIG_fail;
25945 }
25946 resultobj = SWIG_Py_Void();
25947 return resultobj;
25948 fail:
25949 return NULL;
25950 }
25951
25952
25953 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25954 PyObject *resultobj = 0;
25955 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25956 wxPoint *arg2 = 0 ;
25957 void *argp1 = 0 ;
25958 int res1 = 0 ;
25959 wxPoint temp2 ;
25960 PyObject * obj0 = 0 ;
25961 PyObject * obj1 = 0 ;
25962 char * kwnames[] = {
25963 (char *) "self",(char *) "pt", NULL
25964 };
25965
25966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
25967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25968 if (!SWIG_IsOK(res1)) {
25969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25970 }
25971 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25972 {
25973 arg2 = &temp2;
25974 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25975 }
25976 {
25977 PyThreadState* __tstate = wxPyBeginAllowThreads();
25978 (arg1)->CrossHair((wxPoint const &)*arg2);
25979 wxPyEndAllowThreads(__tstate);
25980 if (PyErr_Occurred()) SWIG_fail;
25981 }
25982 resultobj = SWIG_Py_Void();
25983 return resultobj;
25984 fail:
25985 return NULL;
25986 }
25987
25988
25989 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25990 PyObject *resultobj = 0;
25991 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25992 int arg2 ;
25993 int arg3 ;
25994 int arg4 ;
25995 int arg5 ;
25996 int arg6 ;
25997 int arg7 ;
25998 void *argp1 = 0 ;
25999 int res1 = 0 ;
26000 int val2 ;
26001 int ecode2 = 0 ;
26002 int val3 ;
26003 int ecode3 = 0 ;
26004 int val4 ;
26005 int ecode4 = 0 ;
26006 int val5 ;
26007 int ecode5 = 0 ;
26008 int val6 ;
26009 int ecode6 = 0 ;
26010 int val7 ;
26011 int ecode7 = 0 ;
26012 PyObject * obj0 = 0 ;
26013 PyObject * obj1 = 0 ;
26014 PyObject * obj2 = 0 ;
26015 PyObject * obj3 = 0 ;
26016 PyObject * obj4 = 0 ;
26017 PyObject * obj5 = 0 ;
26018 PyObject * obj6 = 0 ;
26019 char * kwnames[] = {
26020 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
26021 };
26022
26023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26025 if (!SWIG_IsOK(res1)) {
26026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26027 }
26028 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26029 ecode2 = SWIG_AsVal_int(obj1, &val2);
26030 if (!SWIG_IsOK(ecode2)) {
26031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
26032 }
26033 arg2 = static_cast< int >(val2);
26034 ecode3 = SWIG_AsVal_int(obj2, &val3);
26035 if (!SWIG_IsOK(ecode3)) {
26036 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
26037 }
26038 arg3 = static_cast< int >(val3);
26039 ecode4 = SWIG_AsVal_int(obj3, &val4);
26040 if (!SWIG_IsOK(ecode4)) {
26041 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
26042 }
26043 arg4 = static_cast< int >(val4);
26044 ecode5 = SWIG_AsVal_int(obj4, &val5);
26045 if (!SWIG_IsOK(ecode5)) {
26046 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
26047 }
26048 arg5 = static_cast< int >(val5);
26049 ecode6 = SWIG_AsVal_int(obj5, &val6);
26050 if (!SWIG_IsOK(ecode6)) {
26051 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
26052 }
26053 arg6 = static_cast< int >(val6);
26054 ecode7 = SWIG_AsVal_int(obj6, &val7);
26055 if (!SWIG_IsOK(ecode7)) {
26056 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
26057 }
26058 arg7 = static_cast< int >(val7);
26059 {
26060 PyThreadState* __tstate = wxPyBeginAllowThreads();
26061 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
26062 wxPyEndAllowThreads(__tstate);
26063 if (PyErr_Occurred()) SWIG_fail;
26064 }
26065 resultobj = SWIG_Py_Void();
26066 return resultobj;
26067 fail:
26068 return NULL;
26069 }
26070
26071
26072 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26073 PyObject *resultobj = 0;
26074 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26075 wxPoint *arg2 = 0 ;
26076 wxPoint *arg3 = 0 ;
26077 wxPoint *arg4 = 0 ;
26078 void *argp1 = 0 ;
26079 int res1 = 0 ;
26080 wxPoint temp2 ;
26081 wxPoint temp3 ;
26082 wxPoint temp4 ;
26083 PyObject * obj0 = 0 ;
26084 PyObject * obj1 = 0 ;
26085 PyObject * obj2 = 0 ;
26086 PyObject * obj3 = 0 ;
26087 char * kwnames[] = {
26088 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
26089 };
26090
26091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26093 if (!SWIG_IsOK(res1)) {
26094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26095 }
26096 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26097 {
26098 arg2 = &temp2;
26099 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26100 }
26101 {
26102 arg3 = &temp3;
26103 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
26104 }
26105 {
26106 arg4 = &temp4;
26107 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
26108 }
26109 {
26110 PyThreadState* __tstate = wxPyBeginAllowThreads();
26111 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
26112 wxPyEndAllowThreads(__tstate);
26113 if (PyErr_Occurred()) SWIG_fail;
26114 }
26115 resultobj = SWIG_Py_Void();
26116 return resultobj;
26117 fail:
26118 return NULL;
26119 }
26120
26121
26122 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26123 PyObject *resultobj = 0;
26124 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26125 int arg2 ;
26126 int arg3 ;
26127 int arg4 ;
26128 int arg5 ;
26129 void *argp1 = 0 ;
26130 int res1 = 0 ;
26131 int val2 ;
26132 int ecode2 = 0 ;
26133 int val3 ;
26134 int ecode3 = 0 ;
26135 int val4 ;
26136 int ecode4 = 0 ;
26137 int val5 ;
26138 int ecode5 = 0 ;
26139 PyObject * obj0 = 0 ;
26140 PyObject * obj1 = 0 ;
26141 PyObject * obj2 = 0 ;
26142 PyObject * obj3 = 0 ;
26143 PyObject * obj4 = 0 ;
26144 char * kwnames[] = {
26145 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
26146 };
26147
26148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26150 if (!SWIG_IsOK(res1)) {
26151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26152 }
26153 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26154 ecode2 = SWIG_AsVal_int(obj1, &val2);
26155 if (!SWIG_IsOK(ecode2)) {
26156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
26157 }
26158 arg2 = static_cast< int >(val2);
26159 ecode3 = SWIG_AsVal_int(obj2, &val3);
26160 if (!SWIG_IsOK(ecode3)) {
26161 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
26162 }
26163 arg3 = static_cast< int >(val3);
26164 ecode4 = SWIG_AsVal_int(obj3, &val4);
26165 if (!SWIG_IsOK(ecode4)) {
26166 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
26167 }
26168 arg4 = static_cast< int >(val4);
26169 ecode5 = SWIG_AsVal_int(obj4, &val5);
26170 if (!SWIG_IsOK(ecode5)) {
26171 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
26172 }
26173 arg5 = static_cast< int >(val5);
26174 {
26175 PyThreadState* __tstate = wxPyBeginAllowThreads();
26176 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
26177 wxPyEndAllowThreads(__tstate);
26178 if (PyErr_Occurred()) SWIG_fail;
26179 }
26180 resultobj = SWIG_Py_Void();
26181 return resultobj;
26182 fail:
26183 return NULL;
26184 }
26185
26186
26187 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26188 PyObject *resultobj = 0;
26189 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26190 wxRect *arg2 = 0 ;
26191 void *argp1 = 0 ;
26192 int res1 = 0 ;
26193 wxRect temp2 ;
26194 PyObject * obj0 = 0 ;
26195 PyObject * obj1 = 0 ;
26196 char * kwnames[] = {
26197 (char *) "self",(char *) "rect", NULL
26198 };
26199
26200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
26201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26202 if (!SWIG_IsOK(res1)) {
26203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26204 }
26205 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26206 {
26207 arg2 = &temp2;
26208 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26209 }
26210 {
26211 PyThreadState* __tstate = wxPyBeginAllowThreads();
26212 (arg1)->DrawCheckMark((wxRect const &)*arg2);
26213 wxPyEndAllowThreads(__tstate);
26214 if (PyErr_Occurred()) SWIG_fail;
26215 }
26216 resultobj = SWIG_Py_Void();
26217 return resultobj;
26218 fail:
26219 return NULL;
26220 }
26221
26222
26223 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26224 PyObject *resultobj = 0;
26225 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26226 int arg2 ;
26227 int arg3 ;
26228 int arg4 ;
26229 int arg5 ;
26230 double arg6 ;
26231 double arg7 ;
26232 void *argp1 = 0 ;
26233 int res1 = 0 ;
26234 int val2 ;
26235 int ecode2 = 0 ;
26236 int val3 ;
26237 int ecode3 = 0 ;
26238 int val4 ;
26239 int ecode4 = 0 ;
26240 int val5 ;
26241 int ecode5 = 0 ;
26242 double val6 ;
26243 int ecode6 = 0 ;
26244 double val7 ;
26245 int ecode7 = 0 ;
26246 PyObject * obj0 = 0 ;
26247 PyObject * obj1 = 0 ;
26248 PyObject * obj2 = 0 ;
26249 PyObject * obj3 = 0 ;
26250 PyObject * obj4 = 0 ;
26251 PyObject * obj5 = 0 ;
26252 PyObject * obj6 = 0 ;
26253 char * kwnames[] = {
26254 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
26255 };
26256
26257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26259 if (!SWIG_IsOK(res1)) {
26260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26261 }
26262 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26263 ecode2 = SWIG_AsVal_int(obj1, &val2);
26264 if (!SWIG_IsOK(ecode2)) {
26265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
26266 }
26267 arg2 = static_cast< int >(val2);
26268 ecode3 = SWIG_AsVal_int(obj2, &val3);
26269 if (!SWIG_IsOK(ecode3)) {
26270 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
26271 }
26272 arg3 = static_cast< int >(val3);
26273 ecode4 = SWIG_AsVal_int(obj3, &val4);
26274 if (!SWIG_IsOK(ecode4)) {
26275 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
26276 }
26277 arg4 = static_cast< int >(val4);
26278 ecode5 = SWIG_AsVal_int(obj4, &val5);
26279 if (!SWIG_IsOK(ecode5)) {
26280 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
26281 }
26282 arg5 = static_cast< int >(val5);
26283 ecode6 = SWIG_AsVal_double(obj5, &val6);
26284 if (!SWIG_IsOK(ecode6)) {
26285 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
26286 }
26287 arg6 = static_cast< double >(val6);
26288 ecode7 = SWIG_AsVal_double(obj6, &val7);
26289 if (!SWIG_IsOK(ecode7)) {
26290 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
26291 }
26292 arg7 = static_cast< double >(val7);
26293 {
26294 PyThreadState* __tstate = wxPyBeginAllowThreads();
26295 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
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_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26307 PyObject *resultobj = 0;
26308 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26309 wxPoint *arg2 = 0 ;
26310 wxSize *arg3 = 0 ;
26311 double arg4 ;
26312 double arg5 ;
26313 void *argp1 = 0 ;
26314 int res1 = 0 ;
26315 wxPoint temp2 ;
26316 wxSize temp3 ;
26317 double val4 ;
26318 int ecode4 = 0 ;
26319 double val5 ;
26320 int ecode5 = 0 ;
26321 PyObject * obj0 = 0 ;
26322 PyObject * obj1 = 0 ;
26323 PyObject * obj2 = 0 ;
26324 PyObject * obj3 = 0 ;
26325 PyObject * obj4 = 0 ;
26326 char * kwnames[] = {
26327 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
26328 };
26329
26330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26332 if (!SWIG_IsOK(res1)) {
26333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26334 }
26335 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26336 {
26337 arg2 = &temp2;
26338 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26339 }
26340 {
26341 arg3 = &temp3;
26342 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
26343 }
26344 ecode4 = SWIG_AsVal_double(obj3, &val4);
26345 if (!SWIG_IsOK(ecode4)) {
26346 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
26347 }
26348 arg4 = static_cast< double >(val4);
26349 ecode5 = SWIG_AsVal_double(obj4, &val5);
26350 if (!SWIG_IsOK(ecode5)) {
26351 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
26352 }
26353 arg5 = static_cast< double >(val5);
26354 {
26355 PyThreadState* __tstate = wxPyBeginAllowThreads();
26356 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
26357 wxPyEndAllowThreads(__tstate);
26358 if (PyErr_Occurred()) SWIG_fail;
26359 }
26360 resultobj = SWIG_Py_Void();
26361 return resultobj;
26362 fail:
26363 return NULL;
26364 }
26365
26366
26367 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26368 PyObject *resultobj = 0;
26369 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26370 int arg2 ;
26371 int arg3 ;
26372 void *argp1 = 0 ;
26373 int res1 = 0 ;
26374 int val2 ;
26375 int ecode2 = 0 ;
26376 int val3 ;
26377 int ecode3 = 0 ;
26378 PyObject * obj0 = 0 ;
26379 PyObject * obj1 = 0 ;
26380 PyObject * obj2 = 0 ;
26381 char * kwnames[] = {
26382 (char *) "self",(char *) "x",(char *) "y", NULL
26383 };
26384
26385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26387 if (!SWIG_IsOK(res1)) {
26388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26389 }
26390 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26391 ecode2 = SWIG_AsVal_int(obj1, &val2);
26392 if (!SWIG_IsOK(ecode2)) {
26393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
26394 }
26395 arg2 = static_cast< int >(val2);
26396 ecode3 = SWIG_AsVal_int(obj2, &val3);
26397 if (!SWIG_IsOK(ecode3)) {
26398 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
26399 }
26400 arg3 = static_cast< int >(val3);
26401 {
26402 PyThreadState* __tstate = wxPyBeginAllowThreads();
26403 (arg1)->DrawPoint(arg2,arg3);
26404 wxPyEndAllowThreads(__tstate);
26405 if (PyErr_Occurred()) SWIG_fail;
26406 }
26407 resultobj = SWIG_Py_Void();
26408 return resultobj;
26409 fail:
26410 return NULL;
26411 }
26412
26413
26414 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26415 PyObject *resultobj = 0;
26416 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26417 wxPoint *arg2 = 0 ;
26418 void *argp1 = 0 ;
26419 int res1 = 0 ;
26420 wxPoint temp2 ;
26421 PyObject * obj0 = 0 ;
26422 PyObject * obj1 = 0 ;
26423 char * kwnames[] = {
26424 (char *) "self",(char *) "pt", NULL
26425 };
26426
26427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
26428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26429 if (!SWIG_IsOK(res1)) {
26430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26431 }
26432 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26433 {
26434 arg2 = &temp2;
26435 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26436 }
26437 {
26438 PyThreadState* __tstate = wxPyBeginAllowThreads();
26439 (arg1)->DrawPoint((wxPoint const &)*arg2);
26440 wxPyEndAllowThreads(__tstate);
26441 if (PyErr_Occurred()) SWIG_fail;
26442 }
26443 resultobj = SWIG_Py_Void();
26444 return resultobj;
26445 fail:
26446 return NULL;
26447 }
26448
26449
26450 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26451 PyObject *resultobj = 0;
26452 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26453 int arg2 ;
26454 int arg3 ;
26455 int arg4 ;
26456 int arg5 ;
26457 void *argp1 = 0 ;
26458 int res1 = 0 ;
26459 int val2 ;
26460 int ecode2 = 0 ;
26461 int val3 ;
26462 int ecode3 = 0 ;
26463 int val4 ;
26464 int ecode4 = 0 ;
26465 int val5 ;
26466 int ecode5 = 0 ;
26467 PyObject * obj0 = 0 ;
26468 PyObject * obj1 = 0 ;
26469 PyObject * obj2 = 0 ;
26470 PyObject * obj3 = 0 ;
26471 PyObject * obj4 = 0 ;
26472 char * kwnames[] = {
26473 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
26474 };
26475
26476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26480 }
26481 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26482 ecode2 = SWIG_AsVal_int(obj1, &val2);
26483 if (!SWIG_IsOK(ecode2)) {
26484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
26485 }
26486 arg2 = static_cast< int >(val2);
26487 ecode3 = SWIG_AsVal_int(obj2, &val3);
26488 if (!SWIG_IsOK(ecode3)) {
26489 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
26490 }
26491 arg3 = static_cast< int >(val3);
26492 ecode4 = SWIG_AsVal_int(obj3, &val4);
26493 if (!SWIG_IsOK(ecode4)) {
26494 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
26495 }
26496 arg4 = static_cast< int >(val4);
26497 ecode5 = SWIG_AsVal_int(obj4, &val5);
26498 if (!SWIG_IsOK(ecode5)) {
26499 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
26500 }
26501 arg5 = static_cast< int >(val5);
26502 {
26503 PyThreadState* __tstate = wxPyBeginAllowThreads();
26504 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
26505 wxPyEndAllowThreads(__tstate);
26506 if (PyErr_Occurred()) SWIG_fail;
26507 }
26508 resultobj = SWIG_Py_Void();
26509 return resultobj;
26510 fail:
26511 return NULL;
26512 }
26513
26514
26515 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26516 PyObject *resultobj = 0;
26517 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26518 wxRect *arg2 = 0 ;
26519 void *argp1 = 0 ;
26520 int res1 = 0 ;
26521 wxRect temp2 ;
26522 PyObject * obj0 = 0 ;
26523 PyObject * obj1 = 0 ;
26524 char * kwnames[] = {
26525 (char *) "self",(char *) "rect", NULL
26526 };
26527
26528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
26529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26530 if (!SWIG_IsOK(res1)) {
26531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26532 }
26533 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26534 {
26535 arg2 = &temp2;
26536 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26537 }
26538 {
26539 PyThreadState* __tstate = wxPyBeginAllowThreads();
26540 (arg1)->DrawRectangle((wxRect const &)*arg2);
26541 wxPyEndAllowThreads(__tstate);
26542 if (PyErr_Occurred()) SWIG_fail;
26543 }
26544 resultobj = SWIG_Py_Void();
26545 return resultobj;
26546 fail:
26547 return NULL;
26548 }
26549
26550
26551 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26552 PyObject *resultobj = 0;
26553 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26554 wxPoint *arg2 = 0 ;
26555 wxSize *arg3 = 0 ;
26556 void *argp1 = 0 ;
26557 int res1 = 0 ;
26558 wxPoint temp2 ;
26559 wxSize temp3 ;
26560 PyObject * obj0 = 0 ;
26561 PyObject * obj1 = 0 ;
26562 PyObject * obj2 = 0 ;
26563 char * kwnames[] = {
26564 (char *) "self",(char *) "pt",(char *) "sz", NULL
26565 };
26566
26567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26569 if (!SWIG_IsOK(res1)) {
26570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26571 }
26572 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26573 {
26574 arg2 = &temp2;
26575 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26576 }
26577 {
26578 arg3 = &temp3;
26579 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
26580 }
26581 {
26582 PyThreadState* __tstate = wxPyBeginAllowThreads();
26583 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
26584 wxPyEndAllowThreads(__tstate);
26585 if (PyErr_Occurred()) SWIG_fail;
26586 }
26587 resultobj = SWIG_Py_Void();
26588 return resultobj;
26589 fail:
26590 return NULL;
26591 }
26592
26593
26594 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26595 PyObject *resultobj = 0;
26596 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26597 int arg2 ;
26598 int arg3 ;
26599 int arg4 ;
26600 int arg5 ;
26601 double arg6 ;
26602 void *argp1 = 0 ;
26603 int res1 = 0 ;
26604 int val2 ;
26605 int ecode2 = 0 ;
26606 int val3 ;
26607 int ecode3 = 0 ;
26608 int val4 ;
26609 int ecode4 = 0 ;
26610 int val5 ;
26611 int ecode5 = 0 ;
26612 double val6 ;
26613 int ecode6 = 0 ;
26614 PyObject * obj0 = 0 ;
26615 PyObject * obj1 = 0 ;
26616 PyObject * obj2 = 0 ;
26617 PyObject * obj3 = 0 ;
26618 PyObject * obj4 = 0 ;
26619 PyObject * obj5 = 0 ;
26620 char * kwnames[] = {
26621 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
26622 };
26623
26624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26626 if (!SWIG_IsOK(res1)) {
26627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26628 }
26629 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26630 ecode2 = SWIG_AsVal_int(obj1, &val2);
26631 if (!SWIG_IsOK(ecode2)) {
26632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
26633 }
26634 arg2 = static_cast< int >(val2);
26635 ecode3 = SWIG_AsVal_int(obj2, &val3);
26636 if (!SWIG_IsOK(ecode3)) {
26637 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
26638 }
26639 arg3 = static_cast< int >(val3);
26640 ecode4 = SWIG_AsVal_int(obj3, &val4);
26641 if (!SWIG_IsOK(ecode4)) {
26642 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
26643 }
26644 arg4 = static_cast< int >(val4);
26645 ecode5 = SWIG_AsVal_int(obj4, &val5);
26646 if (!SWIG_IsOK(ecode5)) {
26647 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
26648 }
26649 arg5 = static_cast< int >(val5);
26650 ecode6 = SWIG_AsVal_double(obj5, &val6);
26651 if (!SWIG_IsOK(ecode6)) {
26652 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
26653 }
26654 arg6 = static_cast< double >(val6);
26655 {
26656 PyThreadState* __tstate = wxPyBeginAllowThreads();
26657 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
26658 wxPyEndAllowThreads(__tstate);
26659 if (PyErr_Occurred()) SWIG_fail;
26660 }
26661 resultobj = SWIG_Py_Void();
26662 return resultobj;
26663 fail:
26664 return NULL;
26665 }
26666
26667
26668 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26669 PyObject *resultobj = 0;
26670 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26671 wxRect *arg2 = 0 ;
26672 double arg3 ;
26673 void *argp1 = 0 ;
26674 int res1 = 0 ;
26675 wxRect temp2 ;
26676 double val3 ;
26677 int ecode3 = 0 ;
26678 PyObject * obj0 = 0 ;
26679 PyObject * obj1 = 0 ;
26680 PyObject * obj2 = 0 ;
26681 char * kwnames[] = {
26682 (char *) "self",(char *) "r",(char *) "radius", NULL
26683 };
26684
26685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26687 if (!SWIG_IsOK(res1)) {
26688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26689 }
26690 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26691 {
26692 arg2 = &temp2;
26693 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26694 }
26695 ecode3 = SWIG_AsVal_double(obj2, &val3);
26696 if (!SWIG_IsOK(ecode3)) {
26697 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
26698 }
26699 arg3 = static_cast< double >(val3);
26700 {
26701 PyThreadState* __tstate = wxPyBeginAllowThreads();
26702 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
26703 wxPyEndAllowThreads(__tstate);
26704 if (PyErr_Occurred()) SWIG_fail;
26705 }
26706 resultobj = SWIG_Py_Void();
26707 return resultobj;
26708 fail:
26709 return NULL;
26710 }
26711
26712
26713 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26714 PyObject *resultobj = 0;
26715 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26716 wxPoint *arg2 = 0 ;
26717 wxSize *arg3 = 0 ;
26718 double arg4 ;
26719 void *argp1 = 0 ;
26720 int res1 = 0 ;
26721 wxPoint temp2 ;
26722 wxSize temp3 ;
26723 double val4 ;
26724 int ecode4 = 0 ;
26725 PyObject * obj0 = 0 ;
26726 PyObject * obj1 = 0 ;
26727 PyObject * obj2 = 0 ;
26728 PyObject * obj3 = 0 ;
26729 char * kwnames[] = {
26730 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
26731 };
26732
26733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26735 if (!SWIG_IsOK(res1)) {
26736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26737 }
26738 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26739 {
26740 arg2 = &temp2;
26741 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26742 }
26743 {
26744 arg3 = &temp3;
26745 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
26746 }
26747 ecode4 = SWIG_AsVal_double(obj3, &val4);
26748 if (!SWIG_IsOK(ecode4)) {
26749 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
26750 }
26751 arg4 = static_cast< double >(val4);
26752 {
26753 PyThreadState* __tstate = wxPyBeginAllowThreads();
26754 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
26755 wxPyEndAllowThreads(__tstate);
26756 if (PyErr_Occurred()) SWIG_fail;
26757 }
26758 resultobj = SWIG_Py_Void();
26759 return resultobj;
26760 fail:
26761 return NULL;
26762 }
26763
26764
26765 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26766 PyObject *resultobj = 0;
26767 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26768 int arg2 ;
26769 int arg3 ;
26770 int arg4 ;
26771 void *argp1 = 0 ;
26772 int res1 = 0 ;
26773 int val2 ;
26774 int ecode2 = 0 ;
26775 int val3 ;
26776 int ecode3 = 0 ;
26777 int val4 ;
26778 int ecode4 = 0 ;
26779 PyObject * obj0 = 0 ;
26780 PyObject * obj1 = 0 ;
26781 PyObject * obj2 = 0 ;
26782 PyObject * obj3 = 0 ;
26783 char * kwnames[] = {
26784 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
26785 };
26786
26787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26789 if (!SWIG_IsOK(res1)) {
26790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26791 }
26792 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26793 ecode2 = SWIG_AsVal_int(obj1, &val2);
26794 if (!SWIG_IsOK(ecode2)) {
26795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
26796 }
26797 arg2 = static_cast< int >(val2);
26798 ecode3 = SWIG_AsVal_int(obj2, &val3);
26799 if (!SWIG_IsOK(ecode3)) {
26800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
26801 }
26802 arg3 = static_cast< int >(val3);
26803 ecode4 = SWIG_AsVal_int(obj3, &val4);
26804 if (!SWIG_IsOK(ecode4)) {
26805 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
26806 }
26807 arg4 = static_cast< int >(val4);
26808 {
26809 PyThreadState* __tstate = wxPyBeginAllowThreads();
26810 (arg1)->DrawCircle(arg2,arg3,arg4);
26811 wxPyEndAllowThreads(__tstate);
26812 if (PyErr_Occurred()) SWIG_fail;
26813 }
26814 resultobj = SWIG_Py_Void();
26815 return resultobj;
26816 fail:
26817 return NULL;
26818 }
26819
26820
26821 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26822 PyObject *resultobj = 0;
26823 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26824 wxPoint *arg2 = 0 ;
26825 int arg3 ;
26826 void *argp1 = 0 ;
26827 int res1 = 0 ;
26828 wxPoint temp2 ;
26829 int val3 ;
26830 int ecode3 = 0 ;
26831 PyObject * obj0 = 0 ;
26832 PyObject * obj1 = 0 ;
26833 PyObject * obj2 = 0 ;
26834 char * kwnames[] = {
26835 (char *) "self",(char *) "pt",(char *) "radius", NULL
26836 };
26837
26838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26840 if (!SWIG_IsOK(res1)) {
26841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26842 }
26843 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26844 {
26845 arg2 = &temp2;
26846 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26847 }
26848 ecode3 = SWIG_AsVal_int(obj2, &val3);
26849 if (!SWIG_IsOK(ecode3)) {
26850 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
26851 }
26852 arg3 = static_cast< int >(val3);
26853 {
26854 PyThreadState* __tstate = wxPyBeginAllowThreads();
26855 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
26856 wxPyEndAllowThreads(__tstate);
26857 if (PyErr_Occurred()) SWIG_fail;
26858 }
26859 resultobj = SWIG_Py_Void();
26860 return resultobj;
26861 fail:
26862 return NULL;
26863 }
26864
26865
26866 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26867 PyObject *resultobj = 0;
26868 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26869 int arg2 ;
26870 int arg3 ;
26871 int arg4 ;
26872 int arg5 ;
26873 void *argp1 = 0 ;
26874 int res1 = 0 ;
26875 int val2 ;
26876 int ecode2 = 0 ;
26877 int val3 ;
26878 int ecode3 = 0 ;
26879 int val4 ;
26880 int ecode4 = 0 ;
26881 int val5 ;
26882 int ecode5 = 0 ;
26883 PyObject * obj0 = 0 ;
26884 PyObject * obj1 = 0 ;
26885 PyObject * obj2 = 0 ;
26886 PyObject * obj3 = 0 ;
26887 PyObject * obj4 = 0 ;
26888 char * kwnames[] = {
26889 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
26890 };
26891
26892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26894 if (!SWIG_IsOK(res1)) {
26895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26896 }
26897 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26898 ecode2 = SWIG_AsVal_int(obj1, &val2);
26899 if (!SWIG_IsOK(ecode2)) {
26900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
26901 }
26902 arg2 = static_cast< int >(val2);
26903 ecode3 = SWIG_AsVal_int(obj2, &val3);
26904 if (!SWIG_IsOK(ecode3)) {
26905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
26906 }
26907 arg3 = static_cast< int >(val3);
26908 ecode4 = SWIG_AsVal_int(obj3, &val4);
26909 if (!SWIG_IsOK(ecode4)) {
26910 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
26911 }
26912 arg4 = static_cast< int >(val4);
26913 ecode5 = SWIG_AsVal_int(obj4, &val5);
26914 if (!SWIG_IsOK(ecode5)) {
26915 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
26916 }
26917 arg5 = static_cast< int >(val5);
26918 {
26919 PyThreadState* __tstate = wxPyBeginAllowThreads();
26920 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
26921 wxPyEndAllowThreads(__tstate);
26922 if (PyErr_Occurred()) SWIG_fail;
26923 }
26924 resultobj = SWIG_Py_Void();
26925 return resultobj;
26926 fail:
26927 return NULL;
26928 }
26929
26930
26931 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26932 PyObject *resultobj = 0;
26933 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26934 wxRect *arg2 = 0 ;
26935 void *argp1 = 0 ;
26936 int res1 = 0 ;
26937 wxRect temp2 ;
26938 PyObject * obj0 = 0 ;
26939 PyObject * obj1 = 0 ;
26940 char * kwnames[] = {
26941 (char *) "self",(char *) "rect", NULL
26942 };
26943
26944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
26945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26946 if (!SWIG_IsOK(res1)) {
26947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26948 }
26949 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26950 {
26951 arg2 = &temp2;
26952 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26953 }
26954 {
26955 PyThreadState* __tstate = wxPyBeginAllowThreads();
26956 (arg1)->DrawEllipse((wxRect const &)*arg2);
26957 wxPyEndAllowThreads(__tstate);
26958 if (PyErr_Occurred()) SWIG_fail;
26959 }
26960 resultobj = SWIG_Py_Void();
26961 return resultobj;
26962 fail:
26963 return NULL;
26964 }
26965
26966
26967 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26968 PyObject *resultobj = 0;
26969 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26970 wxPoint *arg2 = 0 ;
26971 wxSize *arg3 = 0 ;
26972 void *argp1 = 0 ;
26973 int res1 = 0 ;
26974 wxPoint temp2 ;
26975 wxSize temp3 ;
26976 PyObject * obj0 = 0 ;
26977 PyObject * obj1 = 0 ;
26978 PyObject * obj2 = 0 ;
26979 char * kwnames[] = {
26980 (char *) "self",(char *) "pt",(char *) "sz", NULL
26981 };
26982
26983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26985 if (!SWIG_IsOK(res1)) {
26986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26987 }
26988 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26989 {
26990 arg2 = &temp2;
26991 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26992 }
26993 {
26994 arg3 = &temp3;
26995 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
26996 }
26997 {
26998 PyThreadState* __tstate = wxPyBeginAllowThreads();
26999 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
27000 wxPyEndAllowThreads(__tstate);
27001 if (PyErr_Occurred()) SWIG_fail;
27002 }
27003 resultobj = SWIG_Py_Void();
27004 return resultobj;
27005 fail:
27006 return NULL;
27007 }
27008
27009
27010 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27011 PyObject *resultobj = 0;
27012 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27013 wxIcon *arg2 = 0 ;
27014 int arg3 ;
27015 int arg4 ;
27016 void *argp1 = 0 ;
27017 int res1 = 0 ;
27018 void *argp2 = 0 ;
27019 int res2 = 0 ;
27020 int val3 ;
27021 int ecode3 = 0 ;
27022 int val4 ;
27023 int ecode4 = 0 ;
27024 PyObject * obj0 = 0 ;
27025 PyObject * obj1 = 0 ;
27026 PyObject * obj2 = 0 ;
27027 PyObject * obj3 = 0 ;
27028 char * kwnames[] = {
27029 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
27030 };
27031
27032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27034 if (!SWIG_IsOK(res1)) {
27035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27036 }
27037 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27038 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27039 if (!SWIG_IsOK(res2)) {
27040 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27041 }
27042 if (!argp2) {
27043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27044 }
27045 arg2 = reinterpret_cast< wxIcon * >(argp2);
27046 ecode3 = SWIG_AsVal_int(obj2, &val3);
27047 if (!SWIG_IsOK(ecode3)) {
27048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
27049 }
27050 arg3 = static_cast< int >(val3);
27051 ecode4 = SWIG_AsVal_int(obj3, &val4);
27052 if (!SWIG_IsOK(ecode4)) {
27053 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
27054 }
27055 arg4 = static_cast< int >(val4);
27056 {
27057 PyThreadState* __tstate = wxPyBeginAllowThreads();
27058 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
27059 wxPyEndAllowThreads(__tstate);
27060 if (PyErr_Occurred()) SWIG_fail;
27061 }
27062 resultobj = SWIG_Py_Void();
27063 return resultobj;
27064 fail:
27065 return NULL;
27066 }
27067
27068
27069 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27070 PyObject *resultobj = 0;
27071 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27072 wxIcon *arg2 = 0 ;
27073 wxPoint *arg3 = 0 ;
27074 void *argp1 = 0 ;
27075 int res1 = 0 ;
27076 void *argp2 = 0 ;
27077 int res2 = 0 ;
27078 wxPoint temp3 ;
27079 PyObject * obj0 = 0 ;
27080 PyObject * obj1 = 0 ;
27081 PyObject * obj2 = 0 ;
27082 char * kwnames[] = {
27083 (char *) "self",(char *) "icon",(char *) "pt", NULL
27084 };
27085
27086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27088 if (!SWIG_IsOK(res1)) {
27089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27090 }
27091 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27092 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27093 if (!SWIG_IsOK(res2)) {
27094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
27095 }
27096 if (!argp2) {
27097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
27098 }
27099 arg2 = reinterpret_cast< wxIcon * >(argp2);
27100 {
27101 arg3 = &temp3;
27102 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27103 }
27104 {
27105 PyThreadState* __tstate = wxPyBeginAllowThreads();
27106 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
27107 wxPyEndAllowThreads(__tstate);
27108 if (PyErr_Occurred()) SWIG_fail;
27109 }
27110 resultobj = SWIG_Py_Void();
27111 return resultobj;
27112 fail:
27113 return NULL;
27114 }
27115
27116
27117 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27118 PyObject *resultobj = 0;
27119 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27120 wxBitmap *arg2 = 0 ;
27121 int arg3 ;
27122 int arg4 ;
27123 bool arg5 = (bool) false ;
27124 void *argp1 = 0 ;
27125 int res1 = 0 ;
27126 void *argp2 = 0 ;
27127 int res2 = 0 ;
27128 int val3 ;
27129 int ecode3 = 0 ;
27130 int val4 ;
27131 int ecode4 = 0 ;
27132 bool val5 ;
27133 int ecode5 = 0 ;
27134 PyObject * obj0 = 0 ;
27135 PyObject * obj1 = 0 ;
27136 PyObject * obj2 = 0 ;
27137 PyObject * obj3 = 0 ;
27138 PyObject * obj4 = 0 ;
27139 char * kwnames[] = {
27140 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
27141 };
27142
27143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27145 if (!SWIG_IsOK(res1)) {
27146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27147 }
27148 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27149 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27150 if (!SWIG_IsOK(res2)) {
27151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27152 }
27153 if (!argp2) {
27154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27155 }
27156 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27157 ecode3 = SWIG_AsVal_int(obj2, &val3);
27158 if (!SWIG_IsOK(ecode3)) {
27159 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
27160 }
27161 arg3 = static_cast< int >(val3);
27162 ecode4 = SWIG_AsVal_int(obj3, &val4);
27163 if (!SWIG_IsOK(ecode4)) {
27164 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
27165 }
27166 arg4 = static_cast< int >(val4);
27167 if (obj4) {
27168 ecode5 = SWIG_AsVal_bool(obj4, &val5);
27169 if (!SWIG_IsOK(ecode5)) {
27170 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
27171 }
27172 arg5 = static_cast< bool >(val5);
27173 }
27174 {
27175 PyThreadState* __tstate = wxPyBeginAllowThreads();
27176 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
27177 wxPyEndAllowThreads(__tstate);
27178 if (PyErr_Occurred()) SWIG_fail;
27179 }
27180 resultobj = SWIG_Py_Void();
27181 return resultobj;
27182 fail:
27183 return NULL;
27184 }
27185
27186
27187 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27188 PyObject *resultobj = 0;
27189 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27190 wxBitmap *arg2 = 0 ;
27191 wxPoint *arg3 = 0 ;
27192 bool arg4 = (bool) false ;
27193 void *argp1 = 0 ;
27194 int res1 = 0 ;
27195 void *argp2 = 0 ;
27196 int res2 = 0 ;
27197 wxPoint temp3 ;
27198 bool val4 ;
27199 int ecode4 = 0 ;
27200 PyObject * obj0 = 0 ;
27201 PyObject * obj1 = 0 ;
27202 PyObject * obj2 = 0 ;
27203 PyObject * obj3 = 0 ;
27204 char * kwnames[] = {
27205 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
27206 };
27207
27208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27210 if (!SWIG_IsOK(res1)) {
27211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27212 }
27213 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27214 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27215 if (!SWIG_IsOK(res2)) {
27216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27217 }
27218 if (!argp2) {
27219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27220 }
27221 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27222 {
27223 arg3 = &temp3;
27224 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27225 }
27226 if (obj3) {
27227 ecode4 = SWIG_AsVal_bool(obj3, &val4);
27228 if (!SWIG_IsOK(ecode4)) {
27229 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
27230 }
27231 arg4 = static_cast< bool >(val4);
27232 }
27233 {
27234 PyThreadState* __tstate = wxPyBeginAllowThreads();
27235 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
27236 wxPyEndAllowThreads(__tstate);
27237 if (PyErr_Occurred()) SWIG_fail;
27238 }
27239 resultobj = SWIG_Py_Void();
27240 return resultobj;
27241 fail:
27242 return NULL;
27243 }
27244
27245
27246 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27247 PyObject *resultobj = 0;
27248 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27249 wxString *arg2 = 0 ;
27250 int arg3 ;
27251 int arg4 ;
27252 void *argp1 = 0 ;
27253 int res1 = 0 ;
27254 bool temp2 = false ;
27255 int val3 ;
27256 int ecode3 = 0 ;
27257 int val4 ;
27258 int ecode4 = 0 ;
27259 PyObject * obj0 = 0 ;
27260 PyObject * obj1 = 0 ;
27261 PyObject * obj2 = 0 ;
27262 PyObject * obj3 = 0 ;
27263 char * kwnames[] = {
27264 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
27265 };
27266
27267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27269 if (!SWIG_IsOK(res1)) {
27270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27271 }
27272 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27273 {
27274 arg2 = wxString_in_helper(obj1);
27275 if (arg2 == NULL) SWIG_fail;
27276 temp2 = true;
27277 }
27278 ecode3 = SWIG_AsVal_int(obj2, &val3);
27279 if (!SWIG_IsOK(ecode3)) {
27280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
27281 }
27282 arg3 = static_cast< int >(val3);
27283 ecode4 = SWIG_AsVal_int(obj3, &val4);
27284 if (!SWIG_IsOK(ecode4)) {
27285 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
27286 }
27287 arg4 = static_cast< int >(val4);
27288 {
27289 PyThreadState* __tstate = wxPyBeginAllowThreads();
27290 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
27291 wxPyEndAllowThreads(__tstate);
27292 if (PyErr_Occurred()) SWIG_fail;
27293 }
27294 resultobj = SWIG_Py_Void();
27295 {
27296 if (temp2)
27297 delete arg2;
27298 }
27299 return resultobj;
27300 fail:
27301 {
27302 if (temp2)
27303 delete arg2;
27304 }
27305 return NULL;
27306 }
27307
27308
27309 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27310 PyObject *resultobj = 0;
27311 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27312 wxString *arg2 = 0 ;
27313 wxPoint *arg3 = 0 ;
27314 void *argp1 = 0 ;
27315 int res1 = 0 ;
27316 bool temp2 = false ;
27317 wxPoint temp3 ;
27318 PyObject * obj0 = 0 ;
27319 PyObject * obj1 = 0 ;
27320 PyObject * obj2 = 0 ;
27321 char * kwnames[] = {
27322 (char *) "self",(char *) "text",(char *) "pt", NULL
27323 };
27324
27325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27327 if (!SWIG_IsOK(res1)) {
27328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27329 }
27330 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27331 {
27332 arg2 = wxString_in_helper(obj1);
27333 if (arg2 == NULL) SWIG_fail;
27334 temp2 = true;
27335 }
27336 {
27337 arg3 = &temp3;
27338 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27339 }
27340 {
27341 PyThreadState* __tstate = wxPyBeginAllowThreads();
27342 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
27343 wxPyEndAllowThreads(__tstate);
27344 if (PyErr_Occurred()) SWIG_fail;
27345 }
27346 resultobj = SWIG_Py_Void();
27347 {
27348 if (temp2)
27349 delete arg2;
27350 }
27351 return resultobj;
27352 fail:
27353 {
27354 if (temp2)
27355 delete arg2;
27356 }
27357 return NULL;
27358 }
27359
27360
27361 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27362 PyObject *resultobj = 0;
27363 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27364 wxString *arg2 = 0 ;
27365 int arg3 ;
27366 int arg4 ;
27367 double arg5 ;
27368 void *argp1 = 0 ;
27369 int res1 = 0 ;
27370 bool temp2 = false ;
27371 int val3 ;
27372 int ecode3 = 0 ;
27373 int val4 ;
27374 int ecode4 = 0 ;
27375 double val5 ;
27376 int ecode5 = 0 ;
27377 PyObject * obj0 = 0 ;
27378 PyObject * obj1 = 0 ;
27379 PyObject * obj2 = 0 ;
27380 PyObject * obj3 = 0 ;
27381 PyObject * obj4 = 0 ;
27382 char * kwnames[] = {
27383 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
27384 };
27385
27386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27388 if (!SWIG_IsOK(res1)) {
27389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27390 }
27391 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27392 {
27393 arg2 = wxString_in_helper(obj1);
27394 if (arg2 == NULL) SWIG_fail;
27395 temp2 = true;
27396 }
27397 ecode3 = SWIG_AsVal_int(obj2, &val3);
27398 if (!SWIG_IsOK(ecode3)) {
27399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
27400 }
27401 arg3 = static_cast< int >(val3);
27402 ecode4 = SWIG_AsVal_int(obj3, &val4);
27403 if (!SWIG_IsOK(ecode4)) {
27404 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
27405 }
27406 arg4 = static_cast< int >(val4);
27407 ecode5 = SWIG_AsVal_double(obj4, &val5);
27408 if (!SWIG_IsOK(ecode5)) {
27409 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
27410 }
27411 arg5 = static_cast< double >(val5);
27412 {
27413 PyThreadState* __tstate = wxPyBeginAllowThreads();
27414 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
27415 wxPyEndAllowThreads(__tstate);
27416 if (PyErr_Occurred()) SWIG_fail;
27417 }
27418 resultobj = SWIG_Py_Void();
27419 {
27420 if (temp2)
27421 delete arg2;
27422 }
27423 return resultobj;
27424 fail:
27425 {
27426 if (temp2)
27427 delete arg2;
27428 }
27429 return NULL;
27430 }
27431
27432
27433 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27434 PyObject *resultobj = 0;
27435 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27436 wxString *arg2 = 0 ;
27437 wxPoint *arg3 = 0 ;
27438 double arg4 ;
27439 void *argp1 = 0 ;
27440 int res1 = 0 ;
27441 bool temp2 = false ;
27442 wxPoint temp3 ;
27443 double val4 ;
27444 int ecode4 = 0 ;
27445 PyObject * obj0 = 0 ;
27446 PyObject * obj1 = 0 ;
27447 PyObject * obj2 = 0 ;
27448 PyObject * obj3 = 0 ;
27449 char * kwnames[] = {
27450 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
27451 };
27452
27453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27455 if (!SWIG_IsOK(res1)) {
27456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27457 }
27458 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27459 {
27460 arg2 = wxString_in_helper(obj1);
27461 if (arg2 == NULL) SWIG_fail;
27462 temp2 = true;
27463 }
27464 {
27465 arg3 = &temp3;
27466 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27467 }
27468 ecode4 = SWIG_AsVal_double(obj3, &val4);
27469 if (!SWIG_IsOK(ecode4)) {
27470 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
27471 }
27472 arg4 = static_cast< double >(val4);
27473 {
27474 PyThreadState* __tstate = wxPyBeginAllowThreads();
27475 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
27476 wxPyEndAllowThreads(__tstate);
27477 if (PyErr_Occurred()) SWIG_fail;
27478 }
27479 resultobj = SWIG_Py_Void();
27480 {
27481 if (temp2)
27482 delete arg2;
27483 }
27484 return resultobj;
27485 fail:
27486 {
27487 if (temp2)
27488 delete arg2;
27489 }
27490 return NULL;
27491 }
27492
27493
27494 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27495 PyObject *resultobj = 0;
27496 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27497 int arg2 ;
27498 wxPoint *arg3 = (wxPoint *) 0 ;
27499 int arg4 = (int) 0 ;
27500 int arg5 = (int) 0 ;
27501 void *argp1 = 0 ;
27502 int res1 = 0 ;
27503 int val4 ;
27504 int ecode4 = 0 ;
27505 int val5 ;
27506 int ecode5 = 0 ;
27507 PyObject * obj0 = 0 ;
27508 PyObject * obj1 = 0 ;
27509 PyObject * obj2 = 0 ;
27510 PyObject * obj3 = 0 ;
27511 char * kwnames[] = {
27512 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
27513 };
27514
27515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27517 if (!SWIG_IsOK(res1)) {
27518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27519 }
27520 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27521 {
27522 arg3 = wxPoint_LIST_helper(obj1, &arg2);
27523 if (arg3 == NULL) SWIG_fail;
27524 }
27525 if (obj2) {
27526 ecode4 = SWIG_AsVal_int(obj2, &val4);
27527 if (!SWIG_IsOK(ecode4)) {
27528 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
27529 }
27530 arg4 = static_cast< int >(val4);
27531 }
27532 if (obj3) {
27533 ecode5 = SWIG_AsVal_int(obj3, &val5);
27534 if (!SWIG_IsOK(ecode5)) {
27535 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
27536 }
27537 arg5 = static_cast< int >(val5);
27538 }
27539 {
27540 PyThreadState* __tstate = wxPyBeginAllowThreads();
27541 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
27542 wxPyEndAllowThreads(__tstate);
27543 if (PyErr_Occurred()) SWIG_fail;
27544 }
27545 resultobj = SWIG_Py_Void();
27546 {
27547 if (arg3) delete [] arg3;
27548 }
27549 return resultobj;
27550 fail:
27551 {
27552 if (arg3) delete [] arg3;
27553 }
27554 return NULL;
27555 }
27556
27557
27558 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27559 PyObject *resultobj = 0;
27560 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27561 int arg2 ;
27562 wxPoint *arg3 = (wxPoint *) 0 ;
27563 int arg4 = (int) 0 ;
27564 int arg5 = (int) 0 ;
27565 int arg6 = (int) wxODDEVEN_RULE ;
27566 void *argp1 = 0 ;
27567 int res1 = 0 ;
27568 int val4 ;
27569 int ecode4 = 0 ;
27570 int val5 ;
27571 int ecode5 = 0 ;
27572 int val6 ;
27573 int ecode6 = 0 ;
27574 PyObject * obj0 = 0 ;
27575 PyObject * obj1 = 0 ;
27576 PyObject * obj2 = 0 ;
27577 PyObject * obj3 = 0 ;
27578 PyObject * obj4 = 0 ;
27579 char * kwnames[] = {
27580 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
27581 };
27582
27583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27585 if (!SWIG_IsOK(res1)) {
27586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27587 }
27588 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27589 {
27590 arg3 = wxPoint_LIST_helper(obj1, &arg2);
27591 if (arg3 == NULL) SWIG_fail;
27592 }
27593 if (obj2) {
27594 ecode4 = SWIG_AsVal_int(obj2, &val4);
27595 if (!SWIG_IsOK(ecode4)) {
27596 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
27597 }
27598 arg4 = static_cast< int >(val4);
27599 }
27600 if (obj3) {
27601 ecode5 = SWIG_AsVal_int(obj3, &val5);
27602 if (!SWIG_IsOK(ecode5)) {
27603 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
27604 }
27605 arg5 = static_cast< int >(val5);
27606 }
27607 if (obj4) {
27608 ecode6 = SWIG_AsVal_int(obj4, &val6);
27609 if (!SWIG_IsOK(ecode6)) {
27610 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
27611 }
27612 arg6 = static_cast< int >(val6);
27613 }
27614 {
27615 PyThreadState* __tstate = wxPyBeginAllowThreads();
27616 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
27617 wxPyEndAllowThreads(__tstate);
27618 if (PyErr_Occurred()) SWIG_fail;
27619 }
27620 resultobj = SWIG_Py_Void();
27621 {
27622 if (arg3) delete [] arg3;
27623 }
27624 return resultobj;
27625 fail:
27626 {
27627 if (arg3) delete [] arg3;
27628 }
27629 return NULL;
27630 }
27631
27632
27633 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27634 PyObject *resultobj = 0;
27635 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27636 wxString *arg2 = 0 ;
27637 wxRect *arg3 = 0 ;
27638 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
27639 int arg5 = (int) -1 ;
27640 void *argp1 = 0 ;
27641 int res1 = 0 ;
27642 bool temp2 = false ;
27643 wxRect temp3 ;
27644 int val4 ;
27645 int ecode4 = 0 ;
27646 int val5 ;
27647 int ecode5 = 0 ;
27648 PyObject * obj0 = 0 ;
27649 PyObject * obj1 = 0 ;
27650 PyObject * obj2 = 0 ;
27651 PyObject * obj3 = 0 ;
27652 PyObject * obj4 = 0 ;
27653 char * kwnames[] = {
27654 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
27655 };
27656
27657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27659 if (!SWIG_IsOK(res1)) {
27660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27661 }
27662 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27663 {
27664 arg2 = wxString_in_helper(obj1);
27665 if (arg2 == NULL) SWIG_fail;
27666 temp2 = true;
27667 }
27668 {
27669 arg3 = &temp3;
27670 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
27671 }
27672 if (obj3) {
27673 ecode4 = SWIG_AsVal_int(obj3, &val4);
27674 if (!SWIG_IsOK(ecode4)) {
27675 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
27676 }
27677 arg4 = static_cast< int >(val4);
27678 }
27679 if (obj4) {
27680 ecode5 = SWIG_AsVal_int(obj4, &val5);
27681 if (!SWIG_IsOK(ecode5)) {
27682 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
27683 }
27684 arg5 = static_cast< int >(val5);
27685 }
27686 {
27687 PyThreadState* __tstate = wxPyBeginAllowThreads();
27688 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
27689 wxPyEndAllowThreads(__tstate);
27690 if (PyErr_Occurred()) SWIG_fail;
27691 }
27692 resultobj = SWIG_Py_Void();
27693 {
27694 if (temp2)
27695 delete arg2;
27696 }
27697 return resultobj;
27698 fail:
27699 {
27700 if (temp2)
27701 delete arg2;
27702 }
27703 return NULL;
27704 }
27705
27706
27707 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27708 PyObject *resultobj = 0;
27709 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27710 wxString *arg2 = 0 ;
27711 wxBitmap *arg3 = 0 ;
27712 wxRect *arg4 = 0 ;
27713 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
27714 int arg6 = (int) -1 ;
27715 void *argp1 = 0 ;
27716 int res1 = 0 ;
27717 bool temp2 = false ;
27718 void *argp3 = 0 ;
27719 int res3 = 0 ;
27720 wxRect temp4 ;
27721 int val5 ;
27722 int ecode5 = 0 ;
27723 int val6 ;
27724 int ecode6 = 0 ;
27725 PyObject * obj0 = 0 ;
27726 PyObject * obj1 = 0 ;
27727 PyObject * obj2 = 0 ;
27728 PyObject * obj3 = 0 ;
27729 PyObject * obj4 = 0 ;
27730 PyObject * obj5 = 0 ;
27731 char * kwnames[] = {
27732 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
27733 };
27734
27735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27737 if (!SWIG_IsOK(res1)) {
27738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27739 }
27740 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27741 {
27742 arg2 = wxString_in_helper(obj1);
27743 if (arg2 == NULL) SWIG_fail;
27744 temp2 = true;
27745 }
27746 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27747 if (!SWIG_IsOK(res3)) {
27748 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27749 }
27750 if (!argp3) {
27751 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27752 }
27753 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27754 {
27755 arg4 = &temp4;
27756 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27757 }
27758 if (obj4) {
27759 ecode5 = SWIG_AsVal_int(obj4, &val5);
27760 if (!SWIG_IsOK(ecode5)) {
27761 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
27762 }
27763 arg5 = static_cast< int >(val5);
27764 }
27765 if (obj5) {
27766 ecode6 = SWIG_AsVal_int(obj5, &val6);
27767 if (!SWIG_IsOK(ecode6)) {
27768 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
27769 }
27770 arg6 = static_cast< int >(val6);
27771 }
27772 {
27773 PyThreadState* __tstate = wxPyBeginAllowThreads();
27774 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
27775 wxPyEndAllowThreads(__tstate);
27776 if (PyErr_Occurred()) SWIG_fail;
27777 }
27778 resultobj = SWIG_Py_Void();
27779 {
27780 if (temp2)
27781 delete arg2;
27782 }
27783 return resultobj;
27784 fail:
27785 {
27786 if (temp2)
27787 delete arg2;
27788 }
27789 return NULL;
27790 }
27791
27792
27793 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27794 PyObject *resultobj = 0;
27795 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27796 int arg2 ;
27797 wxPoint *arg3 = (wxPoint *) 0 ;
27798 void *argp1 = 0 ;
27799 int res1 = 0 ;
27800 PyObject * obj0 = 0 ;
27801 PyObject * obj1 = 0 ;
27802 char * kwnames[] = {
27803 (char *) "self",(char *) "points", NULL
27804 };
27805
27806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
27807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27808 if (!SWIG_IsOK(res1)) {
27809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27810 }
27811 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27812 {
27813 arg3 = wxPoint_LIST_helper(obj1, &arg2);
27814 if (arg3 == NULL) SWIG_fail;
27815 }
27816 {
27817 PyThreadState* __tstate = wxPyBeginAllowThreads();
27818 (arg1)->DrawSpline(arg2,arg3);
27819 wxPyEndAllowThreads(__tstate);
27820 if (PyErr_Occurred()) SWIG_fail;
27821 }
27822 resultobj = SWIG_Py_Void();
27823 {
27824 if (arg3) delete [] arg3;
27825 }
27826 return resultobj;
27827 fail:
27828 {
27829 if (arg3) delete [] arg3;
27830 }
27831 return NULL;
27832 }
27833
27834
27835 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27836 PyObject *resultobj = 0;
27837 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27838 void *argp1 = 0 ;
27839 int res1 = 0 ;
27840 PyObject *swig_obj[1] ;
27841
27842 if (!args) SWIG_fail;
27843 swig_obj[0] = args;
27844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27845 if (!SWIG_IsOK(res1)) {
27846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27847 }
27848 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27849 {
27850 PyThreadState* __tstate = wxPyBeginAllowThreads();
27851 (arg1)->Clear();
27852 wxPyEndAllowThreads(__tstate);
27853 if (PyErr_Occurred()) SWIG_fail;
27854 }
27855 resultobj = SWIG_Py_Void();
27856 return resultobj;
27857 fail:
27858 return NULL;
27859 }
27860
27861
27862 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27863 PyObject *resultobj = 0;
27864 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27865 wxFont *arg2 = 0 ;
27866 void *argp1 = 0 ;
27867 int res1 = 0 ;
27868 void *argp2 = 0 ;
27869 int res2 = 0 ;
27870 PyObject * obj0 = 0 ;
27871 PyObject * obj1 = 0 ;
27872 char * kwnames[] = {
27873 (char *) "self",(char *) "font", NULL
27874 };
27875
27876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27878 if (!SWIG_IsOK(res1)) {
27879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27880 }
27881 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27882 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27883 if (!SWIG_IsOK(res2)) {
27884 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27885 }
27886 if (!argp2) {
27887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27888 }
27889 arg2 = reinterpret_cast< wxFont * >(argp2);
27890 {
27891 PyThreadState* __tstate = wxPyBeginAllowThreads();
27892 (arg1)->SetFont((wxFont const &)*arg2);
27893 wxPyEndAllowThreads(__tstate);
27894 if (PyErr_Occurred()) SWIG_fail;
27895 }
27896 resultobj = SWIG_Py_Void();
27897 return resultobj;
27898 fail:
27899 return NULL;
27900 }
27901
27902
27903 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27904 PyObject *resultobj = 0;
27905 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27906 wxPen *arg2 = 0 ;
27907 void *argp1 = 0 ;
27908 int res1 = 0 ;
27909 void *argp2 = 0 ;
27910 int res2 = 0 ;
27911 PyObject * obj0 = 0 ;
27912 PyObject * obj1 = 0 ;
27913 char * kwnames[] = {
27914 (char *) "self",(char *) "pen", NULL
27915 };
27916
27917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
27918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27919 if (!SWIG_IsOK(res1)) {
27920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27921 }
27922 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27923 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27924 if (!SWIG_IsOK(res2)) {
27925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
27926 }
27927 if (!argp2) {
27928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
27929 }
27930 arg2 = reinterpret_cast< wxPen * >(argp2);
27931 {
27932 PyThreadState* __tstate = wxPyBeginAllowThreads();
27933 (arg1)->SetPen((wxPen const &)*arg2);
27934 wxPyEndAllowThreads(__tstate);
27935 if (PyErr_Occurred()) SWIG_fail;
27936 }
27937 resultobj = SWIG_Py_Void();
27938 return resultobj;
27939 fail:
27940 return NULL;
27941 }
27942
27943
27944 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27945 PyObject *resultobj = 0;
27946 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27947 wxBrush *arg2 = 0 ;
27948 void *argp1 = 0 ;
27949 int res1 = 0 ;
27950 void *argp2 = 0 ;
27951 int res2 = 0 ;
27952 PyObject * obj0 = 0 ;
27953 PyObject * obj1 = 0 ;
27954 char * kwnames[] = {
27955 (char *) "self",(char *) "brush", NULL
27956 };
27957
27958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27960 if (!SWIG_IsOK(res1)) {
27961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27962 }
27963 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27964 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27965 if (!SWIG_IsOK(res2)) {
27966 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27967 }
27968 if (!argp2) {
27969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27970 }
27971 arg2 = reinterpret_cast< wxBrush * >(argp2);
27972 {
27973 PyThreadState* __tstate = wxPyBeginAllowThreads();
27974 (arg1)->SetBrush((wxBrush const &)*arg2);
27975 wxPyEndAllowThreads(__tstate);
27976 if (PyErr_Occurred()) SWIG_fail;
27977 }
27978 resultobj = SWIG_Py_Void();
27979 return resultobj;
27980 fail:
27981 return NULL;
27982 }
27983
27984
27985 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27986 PyObject *resultobj = 0;
27987 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27988 wxBrush *arg2 = 0 ;
27989 void *argp1 = 0 ;
27990 int res1 = 0 ;
27991 void *argp2 = 0 ;
27992 int res2 = 0 ;
27993 PyObject * obj0 = 0 ;
27994 PyObject * obj1 = 0 ;
27995 char * kwnames[] = {
27996 (char *) "self",(char *) "brush", NULL
27997 };
27998
27999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
28000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28001 if (!SWIG_IsOK(res1)) {
28002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28003 }
28004 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28005 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28006 if (!SWIG_IsOK(res2)) {
28007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
28008 }
28009 if (!argp2) {
28010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
28011 }
28012 arg2 = reinterpret_cast< wxBrush * >(argp2);
28013 {
28014 PyThreadState* __tstate = wxPyBeginAllowThreads();
28015 (arg1)->SetBackground((wxBrush const &)*arg2);
28016 wxPyEndAllowThreads(__tstate);
28017 if (PyErr_Occurred()) SWIG_fail;
28018 }
28019 resultobj = SWIG_Py_Void();
28020 return resultobj;
28021 fail:
28022 return NULL;
28023 }
28024
28025
28026 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28027 PyObject *resultobj = 0;
28028 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28029 int arg2 ;
28030 void *argp1 = 0 ;
28031 int res1 = 0 ;
28032 int val2 ;
28033 int ecode2 = 0 ;
28034 PyObject * obj0 = 0 ;
28035 PyObject * obj1 = 0 ;
28036 char * kwnames[] = {
28037 (char *) "self",(char *) "mode", NULL
28038 };
28039
28040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
28041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28042 if (!SWIG_IsOK(res1)) {
28043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28044 }
28045 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28046 ecode2 = SWIG_AsVal_int(obj1, &val2);
28047 if (!SWIG_IsOK(ecode2)) {
28048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
28049 }
28050 arg2 = static_cast< int >(val2);
28051 {
28052 PyThreadState* __tstate = wxPyBeginAllowThreads();
28053 (arg1)->SetBackgroundMode(arg2);
28054 wxPyEndAllowThreads(__tstate);
28055 if (PyErr_Occurred()) SWIG_fail;
28056 }
28057 resultobj = SWIG_Py_Void();
28058 return resultobj;
28059 fail:
28060 return NULL;
28061 }
28062
28063
28064 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28065 PyObject *resultobj = 0;
28066 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28067 wxPalette *arg2 = 0 ;
28068 void *argp1 = 0 ;
28069 int res1 = 0 ;
28070 void *argp2 = 0 ;
28071 int res2 = 0 ;
28072 PyObject * obj0 = 0 ;
28073 PyObject * obj1 = 0 ;
28074 char * kwnames[] = {
28075 (char *) "self",(char *) "palette", NULL
28076 };
28077
28078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
28079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28080 if (!SWIG_IsOK(res1)) {
28081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28082 }
28083 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28084 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
28085 if (!SWIG_IsOK(res2)) {
28086 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
28087 }
28088 if (!argp2) {
28089 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
28090 }
28091 arg2 = reinterpret_cast< wxPalette * >(argp2);
28092 {
28093 PyThreadState* __tstate = wxPyBeginAllowThreads();
28094 (arg1)->SetPalette((wxPalette const &)*arg2);
28095 wxPyEndAllowThreads(__tstate);
28096 if (PyErr_Occurred()) SWIG_fail;
28097 }
28098 resultobj = SWIG_Py_Void();
28099 return resultobj;
28100 fail:
28101 return NULL;
28102 }
28103
28104
28105 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28106 PyObject *resultobj = 0;
28107 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28108 wxColour *arg2 = 0 ;
28109 void *argp1 = 0 ;
28110 int res1 = 0 ;
28111 wxColour temp2 ;
28112 PyObject * obj0 = 0 ;
28113 PyObject * obj1 = 0 ;
28114 char * kwnames[] = {
28115 (char *) "self",(char *) "colour", NULL
28116 };
28117
28118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
28119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28120 if (!SWIG_IsOK(res1)) {
28121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28122 }
28123 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28124 {
28125 arg2 = &temp2;
28126 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28127 }
28128 {
28129 PyThreadState* __tstate = wxPyBeginAllowThreads();
28130 (arg1)->SetTextForeground((wxColour const &)*arg2);
28131 wxPyEndAllowThreads(__tstate);
28132 if (PyErr_Occurred()) SWIG_fail;
28133 }
28134 resultobj = SWIG_Py_Void();
28135 return resultobj;
28136 fail:
28137 return NULL;
28138 }
28139
28140
28141 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28142 PyObject *resultobj = 0;
28143 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28144 wxColour *arg2 = 0 ;
28145 void *argp1 = 0 ;
28146 int res1 = 0 ;
28147 wxColour temp2 ;
28148 PyObject * obj0 = 0 ;
28149 PyObject * obj1 = 0 ;
28150 char * kwnames[] = {
28151 (char *) "self",(char *) "colour", NULL
28152 };
28153
28154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
28155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28156 if (!SWIG_IsOK(res1)) {
28157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28158 }
28159 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28160 {
28161 arg2 = &temp2;
28162 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28163 }
28164 {
28165 PyThreadState* __tstate = wxPyBeginAllowThreads();
28166 (arg1)->SetTextBackground((wxColour const &)*arg2);
28167 wxPyEndAllowThreads(__tstate);
28168 if (PyErr_Occurred()) SWIG_fail;
28169 }
28170 resultobj = SWIG_Py_Void();
28171 return resultobj;
28172 fail:
28173 return NULL;
28174 }
28175
28176
28177 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28178 PyObject *resultobj = 0;
28179 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28180 int arg2 ;
28181 void *argp1 = 0 ;
28182 int res1 = 0 ;
28183 int val2 ;
28184 int ecode2 = 0 ;
28185 PyObject * obj0 = 0 ;
28186 PyObject * obj1 = 0 ;
28187 char * kwnames[] = {
28188 (char *) "self",(char *) "function", NULL
28189 };
28190
28191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
28192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28193 if (!SWIG_IsOK(res1)) {
28194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28195 }
28196 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28197 ecode2 = SWIG_AsVal_int(obj1, &val2);
28198 if (!SWIG_IsOK(ecode2)) {
28199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
28200 }
28201 arg2 = static_cast< int >(val2);
28202 {
28203 PyThreadState* __tstate = wxPyBeginAllowThreads();
28204 (arg1)->SetLogicalFunction(arg2);
28205 wxPyEndAllowThreads(__tstate);
28206 if (PyErr_Occurred()) SWIG_fail;
28207 }
28208 resultobj = SWIG_Py_Void();
28209 return resultobj;
28210 fail:
28211 return NULL;
28212 }
28213
28214
28215 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28216 PyObject *obj;
28217 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28218 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
28219 return SWIG_Py_Void();
28220 }
28221
28222 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28223 return SWIG_Python_InitShadowInstance(args);
28224 }
28225
28226 static PyMethodDef SwigMethods[] = {
28227 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
28228 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
28229 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
28230 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
28231 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
28232 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
28233 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
28234 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
28235 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
28236 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
28237 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
28238 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
28239 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
28240 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
28241 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
28242 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
28243 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
28244 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
28245 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
28246 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
28247 { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL},
28248 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
28249 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
28250 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
28251 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
28252 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
28253 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
28254 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
28255 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
28256 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
28257 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
28258 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
28259 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
28260 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
28261 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
28262 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
28263 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
28264 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
28265 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
28266 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
28267 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
28268 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
28269 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
28270 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
28271 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
28272 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
28273 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
28274 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
28275 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
28276 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
28277 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
28278 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
28279 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
28280 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28281 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
28282 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
28283 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
28284 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
28285 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
28286 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
28287 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
28288 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
28289 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
28290 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
28291 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
28292 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
28293 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
28294 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28295 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
28296 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28297 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28298 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
28299 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
28300 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
28301 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
28302 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
28303 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
28304 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
28305 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
28306 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
28307 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
28308 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
28309 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
28310 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28311 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
28312 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
28313 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
28314 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28315 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
28316 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
28317 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
28318 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
28319 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
28320 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
28321 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
28322 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
28323 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
28324 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
28325 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
28326 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
28327 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
28328 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
28329 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
28330 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
28331 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28332 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
28333 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
28334 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
28335 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
28336 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
28337 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
28338 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
28339 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
28340 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28341 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
28342 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
28343 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
28344 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
28345 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
28346 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
28347 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
28348 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
28349 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
28350 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
28351 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
28352 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
28353 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
28354 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28355 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
28356 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28357 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
28358 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28359 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
28360 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
28361 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
28362 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
28363 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
28364 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
28365 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
28366 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
28367 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
28368 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
28369 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28370 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
28371 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
28372 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
28373 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
28374 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
28375 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
28376 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28377 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
28378 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
28379 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
28380 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
28381 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
28382 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
28383 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
28384 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
28385 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
28386 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
28387 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
28388 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
28389 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
28390 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
28391 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
28392 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
28393 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
28394 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28395 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
28396 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
28397 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
28398 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
28399 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
28400 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
28401 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
28402 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
28403 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
28404 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
28405 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
28406 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
28407 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
28408 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
28409 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
28410 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
28411 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
28412 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
28413 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
28414 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
28415 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
28416 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
28417 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
28418 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
28419 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
28420 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
28421 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
28422 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
28423 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
28424 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28425 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
28426 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
28427 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
28428 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
28429 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
28430 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28431 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
28432 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
28433 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
28434 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
28435 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
28436 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
28437 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
28438 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
28439 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
28440 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
28441 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
28442 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
28443 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
28444 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
28445 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
28446 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
28447 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
28448 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28449 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28450 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
28451 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
28452 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
28453 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
28454 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28455 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
28456 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28457 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
28458 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
28459 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
28460 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
28461 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
28462 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28463 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
28464 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
28465 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
28466 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
28467 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
28468 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
28469 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
28470 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
28471 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
28472 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
28473 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
28474 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
28475 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
28476 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
28477 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
28478 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
28479 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
28480 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
28481 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
28482 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
28483 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
28484 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
28485 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
28486 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
28487 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
28488 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
28489 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
28490 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
28491 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28492 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
28493 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
28494 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
28495 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
28496 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
28497 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
28498 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28499 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
28500 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
28501 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
28502 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
28503 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
28504 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
28505 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
28506 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
28507 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
28508 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28509 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
28510 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
28511 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
28512 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
28513 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
28514 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
28515 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
28516 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
28517 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
28518 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
28519 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
28520 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
28521 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
28522 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
28523 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
28524 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
28525 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
28526 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
28527 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
28528 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
28529 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
28530 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
28531 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
28532 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
28533 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
28534 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
28535 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
28536 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
28537 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
28538 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
28539 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
28540 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
28541 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
28542 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
28543 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
28544 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
28545 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
28546 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
28547 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
28548 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
28549 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
28550 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
28551 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
28552 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
28553 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
28554 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
28555 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
28556 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
28557 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
28558 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
28559 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
28560 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
28561 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
28562 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
28563 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
28564 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28565 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
28566 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
28567 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
28568 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28569 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
28570 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
28571 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
28572 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28573 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
28574 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28575 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
28576 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
28577 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
28578 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28579 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28580 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28581 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
28582 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
28583 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28584 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
28585 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
28586 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28587 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
28588 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
28589 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
28590 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
28591 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28592 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28593 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28594 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28595 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28596 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
28597 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28598 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
28599 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28600 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
28601 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28602 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
28603 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28604 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
28605 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
28606 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
28607 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
28608 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
28609 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
28610 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
28611 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
28612 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
28613 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
28614 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
28615 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
28616 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
28617 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
28618 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
28619 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
28620 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
28621 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
28622 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
28623 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
28624 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
28625 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
28626 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
28627 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
28628 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
28629 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
28630 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
28631 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
28632 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
28633 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
28634 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
28635 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
28636 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
28637 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
28638 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
28639 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
28640 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
28641 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
28642 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
28643 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
28644 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
28645 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
28646 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
28647 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
28648 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
28649 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
28650 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
28651 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
28652 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
28653 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
28654 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
28655 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
28656 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
28657 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
28658 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
28659 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
28660 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
28661 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
28662 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
28663 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
28664 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
28665 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
28666 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28667 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
28668 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
28669 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
28670 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28671 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
28672 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
28673 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
28674 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
28675 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
28676 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28677 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
28678 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
28679 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
28680 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
28681 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
28682 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
28683 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
28684 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
28685 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
28686 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
28687 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
28688 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
28689 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
28690 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
28691 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
28692 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
28693 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
28694 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
28695 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
28696 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
28697 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
28698 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
28699 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
28700 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
28701 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
28702 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
28703 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
28704 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
28705 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
28706 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
28707 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
28708 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
28709 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
28710 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
28711 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
28712 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
28713 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
28714 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
28715 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
28716 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
28717 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
28718 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
28719 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
28720 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
28721 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
28722 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
28723 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
28724 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
28725 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
28726 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
28727 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
28728 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
28729 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
28730 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
28731 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
28732 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
28733 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
28734 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
28735 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
28736 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
28737 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
28738 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
28739 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
28740 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
28741 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
28742 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
28743 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
28744 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
28745 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
28746 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
28747 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
28748 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28749 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28750 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28751 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
28752 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
28753 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
28754 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
28755 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
28756 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
28757 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
28758 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
28759 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
28760 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
28761 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
28762 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
28763 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
28764 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
28765 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
28766 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
28767 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
28768 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
28769 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
28770 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
28771 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
28772 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
28773 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
28774 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
28775 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
28776 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
28777 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
28778 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
28779 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
28780 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
28781 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
28782 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
28783 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
28784 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
28785 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
28786 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
28787 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
28788 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
28789 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
28790 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
28791 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
28792 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
28793 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
28794 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
28795 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
28796 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
28797 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
28798 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
28799 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
28800 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
28801 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
28802 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
28803 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
28804 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
28805 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
28806 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
28807 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
28808 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
28809 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
28810 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
28811 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28812 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
28813 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
28814 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
28815 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
28816 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
28817 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
28818 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
28819 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
28820 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
28821 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
28822 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
28823 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
28824 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
28825 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
28826 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
28827 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
28828 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
28829 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
28830 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
28831 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
28832 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
28833 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
28834 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
28835 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
28836 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
28837 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
28838 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
28839 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
28840 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
28841 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
28842 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
28843 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
28844 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
28845 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
28846 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
28847 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
28848 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
28849 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
28850 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
28851 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
28852 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
28853 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
28854 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
28855 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
28856 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
28857 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
28858 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
28859 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
28860 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
28861 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28862 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
28863 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
28864 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
28865 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28866 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
28867 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28868 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
28869 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
28870 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
28871 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28872 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28873 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28874 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
28875 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
28876 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28877 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
28878 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
28879 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28880 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
28881 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
28882 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
28883 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
28884 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28885 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28886 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28887 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28888 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28889 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
28890 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28891 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
28892 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28893 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
28894 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
28895 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
28896 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
28897 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
28898 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
28899 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
28900 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
28901 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
28902 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
28903 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
28904 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
28905 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
28906 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
28907 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
28908 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
28909 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
28910 { NULL, NULL, 0, NULL }
28911 };
28912
28913
28914 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
28915
28916 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
28917 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
28918 }
28919 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
28920 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
28921 }
28922 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
28923 return (void *)((wxGDIObject *) ((wxIcon *) x));
28924 }
28925 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
28926 return (void *)((wxGDIObject *) ((wxPalette *) x));
28927 }
28928 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
28929 return (void *)((wxGDIObject *) ((wxPen *) x));
28930 }
28931 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
28932 return (void *)((wxGDIObject *) ((wxFont *) x));
28933 }
28934 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
28935 return (void *)((wxGDIObject *) ((wxCursor *) x));
28936 }
28937 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
28938 return (void *)((wxGDIObject *) ((wxBitmap *) x));
28939 }
28940 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
28941 return (void *)((wxGDIObject *) ((wxRegion *) x));
28942 }
28943 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
28944 return (void *)((wxGDIObject *) ((wxBrush *) x));
28945 }
28946 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
28947 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
28948 }
28949 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
28950 return (void *)((wxDC *) ((wxScreenDC *) x));
28951 }
28952 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
28953 return (void *)((wxDC *) ((wxMirrorDC *) x));
28954 }
28955 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
28956 return (void *)((wxDC *) ((wxMemoryDC *) x));
28957 }
28958 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
28959 return (void *)((wxDC *) ((wxWindowDC *) x));
28960 }
28961 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
28962 return (void *)((wxDC *) ((wxMetaFileDC *) x));
28963 }
28964 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
28965 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
28966 }
28967 static void *_p_wxClientDCTo_p_wxDC(void *x) {
28968 return (void *)((wxDC *) ((wxClientDC *) x));
28969 }
28970 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
28971 return (void *)((wxDC *) ((wxPaintDC *) x));
28972 }
28973 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
28974 return (void *)((wxDC *) ((wxPostScriptDC *) x));
28975 }
28976 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
28977 return (void *)((wxDC *) ((wxPrinterDC *) x));
28978 }
28979 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
28980 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
28981 }
28982 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
28983 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
28984 }
28985 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
28986 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
28987 }
28988 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
28989 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
28990 }
28991 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
28992 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
28993 }
28994 static void *_p_wxPenTo_p_wxObject(void *x) {
28995 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
28996 }
28997 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
28998 return (void *)((wxObject *) ((wxRegionIterator *) x));
28999 }
29000 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29001 return (void *)((wxObject *) ((wxSizerItem *) x));
29002 }
29003 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29004 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29005 }
29006 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29007 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29008 }
29009 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29010 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29011 }
29012 static void *_p_wxIconTo_p_wxObject(void *x) {
29013 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
29014 }
29015 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29016 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29017 }
29018 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29019 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29020 }
29021 static void *_p_wxSizerTo_p_wxObject(void *x) {
29022 return (void *)((wxObject *) ((wxSizer *) x));
29023 }
29024 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29025 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29026 }
29027 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29028 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29029 }
29030 static void *_p_wxEventTo_p_wxObject(void *x) {
29031 return (void *)((wxObject *) ((wxEvent *) x));
29032 }
29033 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29034 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29035 }
29036 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29037 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29038 }
29039 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29040 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29041 }
29042 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
29043 return (void *)((wxObject *) ((wxPseudoDC *) x));
29044 }
29045 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
29046 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
29047 }
29048 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29049 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29050 }
29051 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29052 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29053 }
29054 static void *_p_wxDCTo_p_wxObject(void *x) {
29055 return (void *)((wxObject *) ((wxDC *) x));
29056 }
29057 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29058 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29059 }
29060 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29061 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29062 }
29063 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29064 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29065 }
29066 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29067 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29068 }
29069 static void *_p_wxControlTo_p_wxObject(void *x) {
29070 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29071 }
29072 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29073 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29074 }
29075 static void *_p_wxClientDCTo_p_wxObject(void *x) {
29076 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
29077 }
29078 static void *_p_wxFSFileTo_p_wxObject(void *x) {
29079 return (void *)((wxObject *) ((wxFSFile *) x));
29080 }
29081 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
29082 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
29083 }
29084 static void *_p_wxRegionTo_p_wxObject(void *x) {
29085 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
29086 }
29087 static void *_p_wxPySizerTo_p_wxObject(void *x) {
29088 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29089 }
29090 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
29091 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
29092 }
29093 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
29094 return (void *)((wxObject *) ((wxGDIObject *) x));
29095 }
29096 static void *_p_wxEffectsTo_p_wxObject(void *x) {
29097 return (void *)((wxObject *) ((wxEffects *) x));
29098 }
29099 static void *_p_wxPyEventTo_p_wxObject(void *x) {
29100 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29101 }
29102 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29103 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29104 }
29105 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
29106 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
29107 }
29108 static void *_p_wxShowEventTo_p_wxObject(void *x) {
29109 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29110 }
29111 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29112 return (void *)((wxObject *) ((wxMenuItem *) x));
29113 }
29114 static void *_p_wxDateEventTo_p_wxObject(void *x) {
29115 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
29116 }
29117 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29118 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29119 }
29120 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29121 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29122 }
29123 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29124 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29125 }
29126 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29127 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29128 }
29129 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29130 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29131 }
29132 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29133 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29134 }
29135 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29136 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29137 }
29138 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29139 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29140 }
29141 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29142 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29143 }
29144 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29145 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29146 }
29147 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29148 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29149 }
29150 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29151 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29152 }
29153 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29154 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29155 }
29156 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29157 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29158 }
29159 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29160 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29161 }
29162 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29163 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29164 }
29165 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29166 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29167 }
29168 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
29169 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
29170 }
29171 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29172 return (void *)((wxObject *) ((wxImageHandler *) x));
29173 }
29174 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29175 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29176 }
29177 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29178 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29179 }
29180 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29181 return (void *)((wxObject *) ((wxEvtHandler *) x));
29182 }
29183 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
29184 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
29185 }
29186 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
29187 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
29188 }
29189 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
29190 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
29191 }
29192 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
29193 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
29194 }
29195 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
29196 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
29197 }
29198 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
29199 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
29200 }
29201 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29202 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29203 }
29204 static void *_p_wxImageTo_p_wxObject(void *x) {
29205 return (void *)((wxObject *) ((wxImage *) x));
29206 }
29207 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29208 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29209 }
29210 static void *_p_wxPaletteTo_p_wxObject(void *x) {
29211 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
29212 }
29213 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
29214 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
29215 }
29216 static void *_p_wxImageListTo_p_wxObject(void *x) {
29217 return (void *)((wxObject *) ((wxImageList *) x));
29218 }
29219 static void *_p_wxCursorTo_p_wxObject(void *x) {
29220 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
29221 }
29222 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
29223 return (void *)((wxObject *) ((wxEncodingConverter *) x));
29224 }
29225 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
29226 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
29227 }
29228 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29229 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29230 }
29231 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29232 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29233 }
29234 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29235 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29236 }
29237 static void *_p_wxWindowTo_p_wxObject(void *x) {
29238 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29239 }
29240 static void *_p_wxMenuTo_p_wxObject(void *x) {
29241 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29242 }
29243 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29244 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29245 }
29246 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
29247 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
29248 }
29249 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29250 return (void *)((wxObject *) ((wxFileSystem *) x));
29251 }
29252 static void *_p_wxBitmapTo_p_wxObject(void *x) {
29253 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
29254 }
29255 static void *_p_wxMaskTo_p_wxObject(void *x) {
29256 return (void *)((wxObject *) ((wxMask *) x));
29257 }
29258 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29259 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29260 }
29261 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29262 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29263 }
29264 static void *_p_wxPyAppTo_p_wxObject(void *x) {
29265 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29266 }
29267 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29268 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29269 }
29270 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29271 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29272 }
29273 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29274 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29275 }
29276 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29277 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29278 }
29279 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29280 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29281 }
29282 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29283 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29284 }
29285 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29286 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29287 }
29288 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29289 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29290 }
29291 static void *_p_wxFontTo_p_wxObject(void *x) {
29292 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
29293 }
29294 static void *_p_wxBrushTo_p_wxObject(void *x) {
29295 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
29296 }
29297 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
29298 return (void *)((wxObject *) ((wxMetaFile *) x));
29299 }
29300 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29301 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29302 }
29303 static void *_p_wxColourTo_p_wxObject(void *x) {
29304 return (void *)((wxObject *) ((wxColour *) x));
29305 }
29306 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29307 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29308 }
29309 static void *_p_wxValidatorTo_p_wxObject(void *x) {
29310 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29311 }
29312 static void *_p_wxControlTo_p_wxWindow(void *x) {
29313 return (void *)((wxWindow *) ((wxControl *) x));
29314 }
29315 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29316 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29317 }
29318 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29319 return (void *)((wxWindow *) ((wxMenuBar *) x));
29320 }
29321 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
29322 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
29323 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};
29324 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
29325 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
29326 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
29327 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
29328 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
29329 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
29330 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
29331 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
29332 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
29333 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
29334 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
29335 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
29336 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
29337 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
29338 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
29339 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
29340 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
29341 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
29342 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
29343 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
29344 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
29345 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
29346 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
29347 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
29348 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
29349 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
29350 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
29351 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
29352 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
29353 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
29354 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
29355 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
29356 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
29357 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
29358 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
29359 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
29360 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
29361 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
29362 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
29363 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
29364 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
29365 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
29366 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
29367 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
29368 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
29369 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
29370 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
29371 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
29372 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
29373 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
29374 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
29375 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
29376 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
29377 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
29378 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
29379 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
29380 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
29381 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
29382 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
29383 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
29384 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
29385 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
29386 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
29387 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
29388 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
29389 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
29390 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
29391 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
29392 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
29393 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
29394 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
29395 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
29396 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
29397 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
29398 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
29399 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
29400 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
29401 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
29402 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
29403 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
29404 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
29405 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
29406 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
29407 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
29408 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
29409 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
29410 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
29411 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
29412 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
29413 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
29414 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
29415 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
29416 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
29417 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
29418 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
29419 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
29420 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
29421 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
29422 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
29423 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
29424 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
29425 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
29426 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
29427 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
29428 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
29429 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
29430 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
29431 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
29432 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
29433 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
29434 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
29435 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
29436 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
29437 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
29438 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
29439 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
29440 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
29441 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
29442 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
29443 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
29444 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
29445 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
29446 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
29447 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
29448 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
29449 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
29450 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
29451 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
29452 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
29453 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
29454 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
29455 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
29456 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
29457 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
29458 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
29459 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
29460 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
29461
29462 static swig_type_info *swig_type_initial[] = {
29463 &_swigt__p_char,
29464 &_swigt__p_double,
29465 &_swigt__p_form_ops_t,
29466 &_swigt__p_int,
29467 &_swigt__p_unsigned_char,
29468 &_swigt__p_unsigned_int,
29469 &_swigt__p_unsigned_long,
29470 &_swigt__p_wxANIHandler,
29471 &_swigt__p_wxAcceleratorTable,
29472 &_swigt__p_wxActivateEvent,
29473 &_swigt__p_wxBMPHandler,
29474 &_swigt__p_wxBitmap,
29475 &_swigt__p_wxBoxSizer,
29476 &_swigt__p_wxBrush,
29477 &_swigt__p_wxBrushList,
29478 &_swigt__p_wxBufferedDC,
29479 &_swigt__p_wxBufferedPaintDC,
29480 &_swigt__p_wxCURHandler,
29481 &_swigt__p_wxChildFocusEvent,
29482 &_swigt__p_wxClientDC,
29483 &_swigt__p_wxClipboardTextEvent,
29484 &_swigt__p_wxCloseEvent,
29485 &_swigt__p_wxColour,
29486 &_swigt__p_wxColourDatabase,
29487 &_swigt__p_wxCommandEvent,
29488 &_swigt__p_wxContextMenuEvent,
29489 &_swigt__p_wxControl,
29490 &_swigt__p_wxControlWithItems,
29491 &_swigt__p_wxCursor,
29492 &_swigt__p_wxDC,
29493 &_swigt__p_wxDash,
29494 &_swigt__p_wxDateEvent,
29495 &_swigt__p_wxDisplayChangedEvent,
29496 &_swigt__p_wxDropFilesEvent,
29497 &_swigt__p_wxDuplexMode,
29498 &_swigt__p_wxEffects,
29499 &_swigt__p_wxEncodingConverter,
29500 &_swigt__p_wxEraseEvent,
29501 &_swigt__p_wxEvent,
29502 &_swigt__p_wxEvtHandler,
29503 &_swigt__p_wxFSFile,
29504 &_swigt__p_wxFileSystem,
29505 &_swigt__p_wxFlexGridSizer,
29506 &_swigt__p_wxFocusEvent,
29507 &_swigt__p_wxFont,
29508 &_swigt__p_wxFontList,
29509 &_swigt__p_wxFontMapper,
29510 &_swigt__p_wxGBSizerItem,
29511 &_swigt__p_wxGDIObjListBase,
29512 &_swigt__p_wxGDIObject,
29513 &_swigt__p_wxGIFHandler,
29514 &_swigt__p_wxGridBagSizer,
29515 &_swigt__p_wxGridSizer,
29516 &_swigt__p_wxICOHandler,
29517 &_swigt__p_wxIcon,
29518 &_swigt__p_wxIconBundle,
29519 &_swigt__p_wxIconLocation,
29520 &_swigt__p_wxIconizeEvent,
29521 &_swigt__p_wxIdleEvent,
29522 &_swigt__p_wxImage,
29523 &_swigt__p_wxImageHandler,
29524 &_swigt__p_wxImageList,
29525 &_swigt__p_wxIndividualLayoutConstraint,
29526 &_swigt__p_wxInitDialogEvent,
29527 &_swigt__p_wxJPEGHandler,
29528 &_swigt__p_wxKeyEvent,
29529 &_swigt__p_wxLanguageInfo,
29530 &_swigt__p_wxLayoutConstraints,
29531 &_swigt__p_wxLocale,
29532 &_swigt__p_wxMask,
29533 &_swigt__p_wxMaximizeEvent,
29534 &_swigt__p_wxMemoryDC,
29535 &_swigt__p_wxMenu,
29536 &_swigt__p_wxMenuBar,
29537 &_swigt__p_wxMenuEvent,
29538 &_swigt__p_wxMenuItem,
29539 &_swigt__p_wxMetaFile,
29540 &_swigt__p_wxMetaFileDC,
29541 &_swigt__p_wxMirrorDC,
29542 &_swigt__p_wxMouseCaptureChangedEvent,
29543 &_swigt__p_wxMouseCaptureLostEvent,
29544 &_swigt__p_wxMouseEvent,
29545 &_swigt__p_wxMoveEvent,
29546 &_swigt__p_wxNativeEncodingInfo,
29547 &_swigt__p_wxNativeFontInfo,
29548 &_swigt__p_wxNavigationKeyEvent,
29549 &_swigt__p_wxNcPaintEvent,
29550 &_swigt__p_wxNotifyEvent,
29551 &_swigt__p_wxObject,
29552 &_swigt__p_wxPCXHandler,
29553 &_swigt__p_wxPNGHandler,
29554 &_swigt__p_wxPNMHandler,
29555 &_swigt__p_wxPaintDC,
29556 &_swigt__p_wxPaintEvent,
29557 &_swigt__p_wxPalette,
29558 &_swigt__p_wxPaletteChangedEvent,
29559 &_swigt__p_wxPaperSize,
29560 &_swigt__p_wxPen,
29561 &_swigt__p_wxPenList,
29562 &_swigt__p_wxPoint,
29563 &_swigt__p_wxPostScriptDC,
29564 &_swigt__p_wxPrintData,
29565 &_swigt__p_wxPrinterDC,
29566 &_swigt__p_wxPseudoDC,
29567 &_swigt__p_wxPyApp,
29568 &_swigt__p_wxPyCommandEvent,
29569 &_swigt__p_wxPyEvent,
29570 &_swigt__p_wxPyFontEnumerator,
29571 &_swigt__p_wxPyImageHandler,
29572 &_swigt__p_wxPySizer,
29573 &_swigt__p_wxPyValidator,
29574 &_swigt__p_wxQueryNewPaletteEvent,
29575 &_swigt__p_wxRect,
29576 &_swigt__p_wxRegion,
29577 &_swigt__p_wxRegionIterator,
29578 &_swigt__p_wxRendererNative,
29579 &_swigt__p_wxRendererVersion,
29580 &_swigt__p_wxScreenDC,
29581 &_swigt__p_wxScrollEvent,
29582 &_swigt__p_wxScrollWinEvent,
29583 &_swigt__p_wxSetCursorEvent,
29584 &_swigt__p_wxShowEvent,
29585 &_swigt__p_wxSize,
29586 &_swigt__p_wxSizeEvent,
29587 &_swigt__p_wxSizer,
29588 &_swigt__p_wxSizerItem,
29589 &_swigt__p_wxSplitterRenderParams,
29590 &_swigt__p_wxStaticBoxSizer,
29591 &_swigt__p_wxStdDialogButtonSizer,
29592 &_swigt__p_wxStockGDI,
29593 &_swigt__p_wxString,
29594 &_swigt__p_wxSysColourChangedEvent,
29595 &_swigt__p_wxTIFFHandler,
29596 &_swigt__p_wxUpdateUIEvent,
29597 &_swigt__p_wxValidator,
29598 &_swigt__p_wxWindow,
29599 &_swigt__p_wxWindowCreateEvent,
29600 &_swigt__p_wxWindowDC,
29601 &_swigt__p_wxWindowDestroyEvent,
29602 &_swigt__p_wxXPMHandler,
29603 };
29604
29605 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
29606 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
29607 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
29608 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
29609 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
29610 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
29611 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
29612 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
29613 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
29614 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
29615 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}};
29616 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
29617 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
29618 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
29619 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
29620 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
29621 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}};
29622 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
29623 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
29624 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
29625 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
29626 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
29627 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
29628 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
29629 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}};
29630 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}};
29631 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
29632 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
29633 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
29634 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
29635 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
29636 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
29637 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
29638 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
29639 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}};
29640 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
29641 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
29642 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
29643 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
29644 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
29645 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
29646 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
29647 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
29648 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
29649 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
29650 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
29651 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
29652 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
29653 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
29654 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
29655 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
29656 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
29657 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
29658 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
29659 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
29660 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
29661 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
29662 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
29663 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
29664 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
29665 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
29666 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
29667 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
29668 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
29669 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
29670 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
29671 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
29672 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
29673 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
29674 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
29675 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
29676 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
29677 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
29678 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
29679 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
29680 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
29681 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
29682 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
29683 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
29684 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
29685 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
29686 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
29687 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
29688 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
29689 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
29690 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
29691 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
29692 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
29693 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
29694 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
29695 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
29696 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
29697 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
29698 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
29699 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
29700 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
29701 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
29702 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
29703 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
29704 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
29705 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
29706 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
29707 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
29708 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
29709 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
29710 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
29711 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
29712 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
29713 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
29714 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
29715 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
29716 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
29717 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
29718 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
29719 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
29720 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
29721 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}};
29722 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
29723 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
29724 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
29725 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
29726 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
29727 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
29728 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
29729 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
29730 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
29731 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
29732 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
29733 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
29734 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
29735 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
29736 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
29737 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
29738 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
29739 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
29740 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
29741 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
29742 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
29743 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}};
29744 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
29745
29746 static swig_cast_info *swig_cast_initial[] = {
29747 _swigc__p_char,
29748 _swigc__p_double,
29749 _swigc__p_form_ops_t,
29750 _swigc__p_int,
29751 _swigc__p_unsigned_char,
29752 _swigc__p_unsigned_int,
29753 _swigc__p_unsigned_long,
29754 _swigc__p_wxANIHandler,
29755 _swigc__p_wxAcceleratorTable,
29756 _swigc__p_wxActivateEvent,
29757 _swigc__p_wxBMPHandler,
29758 _swigc__p_wxBitmap,
29759 _swigc__p_wxBoxSizer,
29760 _swigc__p_wxBrush,
29761 _swigc__p_wxBrushList,
29762 _swigc__p_wxBufferedDC,
29763 _swigc__p_wxBufferedPaintDC,
29764 _swigc__p_wxCURHandler,
29765 _swigc__p_wxChildFocusEvent,
29766 _swigc__p_wxClientDC,
29767 _swigc__p_wxClipboardTextEvent,
29768 _swigc__p_wxCloseEvent,
29769 _swigc__p_wxColour,
29770 _swigc__p_wxColourDatabase,
29771 _swigc__p_wxCommandEvent,
29772 _swigc__p_wxContextMenuEvent,
29773 _swigc__p_wxControl,
29774 _swigc__p_wxControlWithItems,
29775 _swigc__p_wxCursor,
29776 _swigc__p_wxDC,
29777 _swigc__p_wxDash,
29778 _swigc__p_wxDateEvent,
29779 _swigc__p_wxDisplayChangedEvent,
29780 _swigc__p_wxDropFilesEvent,
29781 _swigc__p_wxDuplexMode,
29782 _swigc__p_wxEffects,
29783 _swigc__p_wxEncodingConverter,
29784 _swigc__p_wxEraseEvent,
29785 _swigc__p_wxEvent,
29786 _swigc__p_wxEvtHandler,
29787 _swigc__p_wxFSFile,
29788 _swigc__p_wxFileSystem,
29789 _swigc__p_wxFlexGridSizer,
29790 _swigc__p_wxFocusEvent,
29791 _swigc__p_wxFont,
29792 _swigc__p_wxFontList,
29793 _swigc__p_wxFontMapper,
29794 _swigc__p_wxGBSizerItem,
29795 _swigc__p_wxGDIObjListBase,
29796 _swigc__p_wxGDIObject,
29797 _swigc__p_wxGIFHandler,
29798 _swigc__p_wxGridBagSizer,
29799 _swigc__p_wxGridSizer,
29800 _swigc__p_wxICOHandler,
29801 _swigc__p_wxIcon,
29802 _swigc__p_wxIconBundle,
29803 _swigc__p_wxIconLocation,
29804 _swigc__p_wxIconizeEvent,
29805 _swigc__p_wxIdleEvent,
29806 _swigc__p_wxImage,
29807 _swigc__p_wxImageHandler,
29808 _swigc__p_wxImageList,
29809 _swigc__p_wxIndividualLayoutConstraint,
29810 _swigc__p_wxInitDialogEvent,
29811 _swigc__p_wxJPEGHandler,
29812 _swigc__p_wxKeyEvent,
29813 _swigc__p_wxLanguageInfo,
29814 _swigc__p_wxLayoutConstraints,
29815 _swigc__p_wxLocale,
29816 _swigc__p_wxMask,
29817 _swigc__p_wxMaximizeEvent,
29818 _swigc__p_wxMemoryDC,
29819 _swigc__p_wxMenu,
29820 _swigc__p_wxMenuBar,
29821 _swigc__p_wxMenuEvent,
29822 _swigc__p_wxMenuItem,
29823 _swigc__p_wxMetaFile,
29824 _swigc__p_wxMetaFileDC,
29825 _swigc__p_wxMirrorDC,
29826 _swigc__p_wxMouseCaptureChangedEvent,
29827 _swigc__p_wxMouseCaptureLostEvent,
29828 _swigc__p_wxMouseEvent,
29829 _swigc__p_wxMoveEvent,
29830 _swigc__p_wxNativeEncodingInfo,
29831 _swigc__p_wxNativeFontInfo,
29832 _swigc__p_wxNavigationKeyEvent,
29833 _swigc__p_wxNcPaintEvent,
29834 _swigc__p_wxNotifyEvent,
29835 _swigc__p_wxObject,
29836 _swigc__p_wxPCXHandler,
29837 _swigc__p_wxPNGHandler,
29838 _swigc__p_wxPNMHandler,
29839 _swigc__p_wxPaintDC,
29840 _swigc__p_wxPaintEvent,
29841 _swigc__p_wxPalette,
29842 _swigc__p_wxPaletteChangedEvent,
29843 _swigc__p_wxPaperSize,
29844 _swigc__p_wxPen,
29845 _swigc__p_wxPenList,
29846 _swigc__p_wxPoint,
29847 _swigc__p_wxPostScriptDC,
29848 _swigc__p_wxPrintData,
29849 _swigc__p_wxPrinterDC,
29850 _swigc__p_wxPseudoDC,
29851 _swigc__p_wxPyApp,
29852 _swigc__p_wxPyCommandEvent,
29853 _swigc__p_wxPyEvent,
29854 _swigc__p_wxPyFontEnumerator,
29855 _swigc__p_wxPyImageHandler,
29856 _swigc__p_wxPySizer,
29857 _swigc__p_wxPyValidator,
29858 _swigc__p_wxQueryNewPaletteEvent,
29859 _swigc__p_wxRect,
29860 _swigc__p_wxRegion,
29861 _swigc__p_wxRegionIterator,
29862 _swigc__p_wxRendererNative,
29863 _swigc__p_wxRendererVersion,
29864 _swigc__p_wxScreenDC,
29865 _swigc__p_wxScrollEvent,
29866 _swigc__p_wxScrollWinEvent,
29867 _swigc__p_wxSetCursorEvent,
29868 _swigc__p_wxShowEvent,
29869 _swigc__p_wxSize,
29870 _swigc__p_wxSizeEvent,
29871 _swigc__p_wxSizer,
29872 _swigc__p_wxSizerItem,
29873 _swigc__p_wxSplitterRenderParams,
29874 _swigc__p_wxStaticBoxSizer,
29875 _swigc__p_wxStdDialogButtonSizer,
29876 _swigc__p_wxStockGDI,
29877 _swigc__p_wxString,
29878 _swigc__p_wxSysColourChangedEvent,
29879 _swigc__p_wxTIFFHandler,
29880 _swigc__p_wxUpdateUIEvent,
29881 _swigc__p_wxValidator,
29882 _swigc__p_wxWindow,
29883 _swigc__p_wxWindowCreateEvent,
29884 _swigc__p_wxWindowDC,
29885 _swigc__p_wxWindowDestroyEvent,
29886 _swigc__p_wxXPMHandler,
29887 };
29888
29889
29890 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29891
29892 static swig_const_info swig_const_table[] = {
29893 {0, 0, 0, 0.0, 0, 0}};
29894
29895 #ifdef __cplusplus
29896 }
29897 #endif
29898 /* -----------------------------------------------------------------------------
29899 * Type initialization:
29900 * This problem is tough by the requirement that no dynamic
29901 * memory is used. Also, since swig_type_info structures store pointers to
29902 * swig_cast_info structures and swig_cast_info structures store pointers back
29903 * to swig_type_info structures, we need some lookup code at initialization.
29904 * The idea is that swig generates all the structures that are needed.
29905 * The runtime then collects these partially filled structures.
29906 * The SWIG_InitializeModule function takes these initial arrays out of
29907 * swig_module, and does all the lookup, filling in the swig_module.types
29908 * array with the correct data and linking the correct swig_cast_info
29909 * structures together.
29910 *
29911 * The generated swig_type_info structures are assigned staticly to an initial
29912 * array. We just loop though that array, and handle each type individually.
29913 * First we lookup if this type has been already loaded, and if so, use the
29914 * loaded structure instead of the generated one. Then we have to fill in the
29915 * cast linked list. The cast data is initially stored in something like a
29916 * two-dimensional array. Each row corresponds to a type (there are the same
29917 * number of rows as there are in the swig_type_initial array). Each entry in
29918 * a column is one of the swig_cast_info structures for that type.
29919 * The cast_initial array is actually an array of arrays, because each row has
29920 * a variable number of columns. So to actually build the cast linked list,
29921 * we find the array of casts associated with the type, and loop through it
29922 * adding the casts to the list. The one last trick we need to do is making
29923 * sure the type pointer in the swig_cast_info struct is correct.
29924 *
29925 * First off, we lookup the cast->type name to see if it is already loaded.
29926 * There are three cases to handle:
29927 * 1) If the cast->type has already been loaded AND the type we are adding
29928 * casting info to has not been loaded (it is in this module), THEN we
29929 * replace the cast->type pointer with the type pointer that has already
29930 * been loaded.
29931 * 2) If BOTH types (the one we are adding casting info to, and the
29932 * cast->type) are loaded, THEN the cast info has already been loaded by
29933 * the previous module so we just ignore it.
29934 * 3) Finally, if cast->type has not already been loaded, then we add that
29935 * swig_cast_info to the linked list (because the cast->type) pointer will
29936 * be correct.
29937 * ----------------------------------------------------------------------------- */
29938
29939 #ifdef __cplusplus
29940 extern "C" {
29941 #if 0
29942 } /* c-mode */
29943 #endif
29944 #endif
29945
29946 #if 0
29947 #define SWIGRUNTIME_DEBUG
29948 #endif
29949
29950 SWIGRUNTIME void
29951 SWIG_InitializeModule(void *clientdata) {
29952 size_t i;
29953 swig_module_info *module_head;
29954 static int init_run = 0;
29955
29956 clientdata = clientdata;
29957
29958 if (init_run) return;
29959 init_run = 1;
29960
29961 /* Initialize the swig_module */
29962 swig_module.type_initial = swig_type_initial;
29963 swig_module.cast_initial = swig_cast_initial;
29964
29965 /* Try and load any already created modules */
29966 module_head = SWIG_GetModule(clientdata);
29967 if (module_head) {
29968 swig_module.next = module_head->next;
29969 module_head->next = &swig_module;
29970 } else {
29971 /* This is the first module loaded */
29972 swig_module.next = &swig_module;
29973 SWIG_SetModule(clientdata, &swig_module);
29974 }
29975
29976 /* Now work on filling in swig_module.types */
29977 #ifdef SWIGRUNTIME_DEBUG
29978 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
29979 #endif
29980 for (i = 0; i < swig_module.size; ++i) {
29981 swig_type_info *type = 0;
29982 swig_type_info *ret;
29983 swig_cast_info *cast;
29984
29985 #ifdef SWIGRUNTIME_DEBUG
29986 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
29987 #endif
29988
29989 /* if there is another module already loaded */
29990 if (swig_module.next != &swig_module) {
29991 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
29992 }
29993 if (type) {
29994 /* Overwrite clientdata field */
29995 #ifdef SWIGRUNTIME_DEBUG
29996 printf("SWIG_InitializeModule: found type %s\n", type->name);
29997 #endif
29998 if (swig_module.type_initial[i]->clientdata) {
29999 type->clientdata = swig_module.type_initial[i]->clientdata;
30000 #ifdef SWIGRUNTIME_DEBUG
30001 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
30002 #endif
30003 }
30004 } else {
30005 type = swig_module.type_initial[i];
30006 }
30007
30008 /* Insert casting types */
30009 cast = swig_module.cast_initial[i];
30010 while (cast->type) {
30011 /* Don't need to add information already in the list */
30012 ret = 0;
30013 #ifdef SWIGRUNTIME_DEBUG
30014 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
30015 #endif
30016 if (swig_module.next != &swig_module) {
30017 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
30018 #ifdef SWIGRUNTIME_DEBUG
30019 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
30020 #endif
30021 }
30022 if (ret) {
30023 if (type == swig_module.type_initial[i]) {
30024 #ifdef SWIGRUNTIME_DEBUG
30025 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
30026 #endif
30027 cast->type = ret;
30028 ret = 0;
30029 } else {
30030 /* Check for casting already in the list */
30031 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
30032 #ifdef SWIGRUNTIME_DEBUG
30033 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
30034 #endif
30035 if (!ocast) ret = 0;
30036 }
30037 }
30038
30039 if (!ret) {
30040 #ifdef SWIGRUNTIME_DEBUG
30041 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
30042 #endif
30043 if (type->cast) {
30044 type->cast->prev = cast;
30045 cast->next = type->cast;
30046 }
30047 type->cast = cast;
30048 }
30049 cast++;
30050 }
30051 /* Set entry in modules->types array equal to the type */
30052 swig_module.types[i] = type;
30053 }
30054 swig_module.types[i] = 0;
30055
30056 #ifdef SWIGRUNTIME_DEBUG
30057 printf("**** SWIG_InitializeModule: Cast List ******\n");
30058 for (i = 0; i < swig_module.size; ++i) {
30059 int j = 0;
30060 swig_cast_info *cast = swig_module.cast_initial[i];
30061 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
30062 while (cast->type) {
30063 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
30064 cast++;
30065 ++j;
30066 }
30067 printf("---- Total casts: %d\n",j);
30068 }
30069 printf("**** SWIG_InitializeModule: Cast List ******\n");
30070 #endif
30071 }
30072
30073 /* This function will propagate the clientdata field of type to
30074 * any new swig_type_info structures that have been added into the list
30075 * of equivalent types. It is like calling
30076 * SWIG_TypeClientData(type, clientdata) a second time.
30077 */
30078 SWIGRUNTIME void
30079 SWIG_PropagateClientData(void) {
30080 size_t i;
30081 swig_cast_info *equiv;
30082 static int init_run = 0;
30083
30084 if (init_run) return;
30085 init_run = 1;
30086
30087 for (i = 0; i < swig_module.size; i++) {
30088 if (swig_module.types[i]->clientdata) {
30089 equiv = swig_module.types[i]->cast;
30090 while (equiv) {
30091 if (!equiv->converter) {
30092 if (equiv->type && !equiv->type->clientdata)
30093 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
30094 }
30095 equiv = equiv->next;
30096 }
30097 }
30098 }
30099 }
30100
30101 #ifdef __cplusplus
30102 #if 0
30103 {
30104 /* c-mode */
30105 #endif
30106 }
30107 #endif
30108
30109
30110
30111 #ifdef __cplusplus
30112 extern "C" {
30113 #endif
30114
30115 /* Python-specific SWIG API */
30116 #define SWIG_newvarlink() SWIG_Python_newvarlink()
30117 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
30118 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
30119
30120 /* -----------------------------------------------------------------------------
30121 * global variable support code.
30122 * ----------------------------------------------------------------------------- */
30123
30124 typedef struct swig_globalvar {
30125 char *name; /* Name of global variable */
30126 PyObject *(*get_attr)(void); /* Return the current value */
30127 int (*set_attr)(PyObject *); /* Set the value */
30128 struct swig_globalvar *next;
30129 } swig_globalvar;
30130
30131 typedef struct swig_varlinkobject {
30132 PyObject_HEAD
30133 swig_globalvar *vars;
30134 } swig_varlinkobject;
30135
30136 SWIGINTERN PyObject *
30137 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
30138 return PyString_FromString("<Swig global variables>");
30139 }
30140
30141 SWIGINTERN PyObject *
30142 swig_varlink_str(swig_varlinkobject *v) {
30143 PyObject *str = PyString_FromString("(");
30144 swig_globalvar *var;
30145 for (var = v->vars; var; var=var->next) {
30146 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
30147 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
30148 }
30149 PyString_ConcatAndDel(&str,PyString_FromString(")"));
30150 return str;
30151 }
30152
30153 SWIGINTERN int
30154 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
30155 PyObject *str = swig_varlink_str(v);
30156 fprintf(fp,"Swig global variables ");
30157 fprintf(fp,"%s\n", PyString_AsString(str));
30158 Py_DECREF(str);
30159 return 0;
30160 }
30161
30162 SWIGINTERN void
30163 swig_varlink_dealloc(swig_varlinkobject *v) {
30164 swig_globalvar *var = v->vars;
30165 while (var) {
30166 swig_globalvar *n = var->next;
30167 free(var->name);
30168 free(var);
30169 var = n;
30170 }
30171 }
30172
30173 SWIGINTERN PyObject *
30174 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
30175 PyObject *res = NULL;
30176 swig_globalvar *var = v->vars;
30177 while (var) {
30178 if (strcmp(var->name,n) == 0) {
30179 res = (*var->get_attr)();
30180 break;
30181 }
30182 var = var->next;
30183 }
30184 if (res == NULL && !PyErr_Occurred()) {
30185 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
30186 }
30187 return res;
30188 }
30189
30190 SWIGINTERN int
30191 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
30192 int res = 1;
30193 swig_globalvar *var = v->vars;
30194 while (var) {
30195 if (strcmp(var->name,n) == 0) {
30196 res = (*var->set_attr)(p);
30197 break;
30198 }
30199 var = var->next;
30200 }
30201 if (res == 1 && !PyErr_Occurred()) {
30202 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
30203 }
30204 return res;
30205 }
30206
30207 SWIGINTERN PyTypeObject*
30208 swig_varlink_type(void) {
30209 static char varlink__doc__[] = "Swig var link object";
30210 static PyTypeObject varlink_type;
30211 static int type_init = 0;
30212 if (!type_init) {
30213 const PyTypeObject tmp
30214 = {
30215 PyObject_HEAD_INIT(NULL)
30216 0, /* Number of items in variable part (ob_size) */
30217 (char *)"swigvarlink", /* Type name (tp_name) */
30218 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
30219 0, /* Itemsize (tp_itemsize) */
30220 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
30221 (printfunc) swig_varlink_print, /* Print (tp_print) */
30222 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
30223 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
30224 0, /* tp_compare */
30225 (reprfunc) swig_varlink_repr, /* tp_repr */
30226 0, /* tp_as_number */
30227 0, /* tp_as_sequence */
30228 0, /* tp_as_mapping */
30229 0, /* tp_hash */
30230 0, /* tp_call */
30231 (reprfunc)swig_varlink_str, /* tp_str */
30232 0, /* tp_getattro */
30233 0, /* tp_setattro */
30234 0, /* tp_as_buffer */
30235 0, /* tp_flags */
30236 varlink__doc__, /* tp_doc */
30237 0, /* tp_traverse */
30238 0, /* tp_clear */
30239 0, /* tp_richcompare */
30240 0, /* tp_weaklistoffset */
30241 #if PY_VERSION_HEX >= 0x02020000
30242 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
30243 #endif
30244 #if PY_VERSION_HEX >= 0x02030000
30245 0, /* tp_del */
30246 #endif
30247 #ifdef COUNT_ALLOCS
30248 0,0,0,0 /* tp_alloc -> tp_next */
30249 #endif
30250 };
30251 varlink_type = tmp;
30252 varlink_type.ob_type = &PyType_Type;
30253 type_init = 1;
30254 }
30255 return &varlink_type;
30256 }
30257
30258 /* Create a variable linking object for use later */
30259 SWIGINTERN PyObject *
30260 SWIG_Python_newvarlink(void) {
30261 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
30262 if (result) {
30263 result->vars = 0;
30264 }
30265 return ((PyObject*) result);
30266 }
30267
30268 SWIGINTERN void
30269 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
30270 swig_varlinkobject *v = (swig_varlinkobject *) p;
30271 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
30272 if (gv) {
30273 size_t size = strlen(name)+1;
30274 gv->name = (char *)malloc(size);
30275 if (gv->name) {
30276 strncpy(gv->name,name,size);
30277 gv->get_attr = get_attr;
30278 gv->set_attr = set_attr;
30279 gv->next = v->vars;
30280 }
30281 }
30282 v->vars = gv;
30283 }
30284
30285 SWIGINTERN PyObject *
30286 SWIG_globals() {
30287 static PyObject *_SWIG_globals = 0;
30288 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
30289 return _SWIG_globals;
30290 }
30291
30292 /* -----------------------------------------------------------------------------
30293 * constants/methods manipulation
30294 * ----------------------------------------------------------------------------- */
30295
30296 /* Install Constants */
30297 SWIGINTERN void
30298 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
30299 PyObject *obj = 0;
30300 size_t i;
30301 for (i = 0; constants[i].type; ++i) {
30302 switch(constants[i].type) {
30303 case SWIG_PY_POINTER:
30304 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
30305 break;
30306 case SWIG_PY_BINARY:
30307 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
30308 break;
30309 default:
30310 obj = 0;
30311 break;
30312 }
30313 if (obj) {
30314 PyDict_SetItemString(d, constants[i].name, obj);
30315 Py_DECREF(obj);
30316 }
30317 }
30318 }
30319
30320 /* -----------------------------------------------------------------------------*/
30321 /* Fix SwigMethods to carry the callback ptrs when needed */
30322 /* -----------------------------------------------------------------------------*/
30323
30324 SWIGINTERN void
30325 SWIG_Python_FixMethods(PyMethodDef *methods,
30326 swig_const_info *const_table,
30327 swig_type_info **types,
30328 swig_type_info **types_initial) {
30329 size_t i;
30330 for (i = 0; methods[i].ml_name; ++i) {
30331 const char *c = methods[i].ml_doc;
30332 if (c && (c = strstr(c, "swig_ptr: "))) {
30333 int j;
30334 swig_const_info *ci = 0;
30335 const char *name = c + 10;
30336 for (j = 0; const_table[j].type; ++j) {
30337 if (strncmp(const_table[j].name, name,
30338 strlen(const_table[j].name)) == 0) {
30339 ci = &(const_table[j]);
30340 break;
30341 }
30342 }
30343 if (ci) {
30344 size_t shift = (ci->ptype) - types;
30345 swig_type_info *ty = types_initial[shift];
30346 size_t ldoc = (c - methods[i].ml_doc);
30347 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
30348 char *ndoc = (char*)malloc(ldoc + lptr + 10);
30349 if (ndoc) {
30350 char *buff = ndoc;
30351 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
30352 if (ptr) {
30353 strncpy(buff, methods[i].ml_doc, ldoc);
30354 buff += ldoc;
30355 strncpy(buff, "swig_ptr: ", 10);
30356 buff += 10;
30357 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
30358 methods[i].ml_doc = ndoc;
30359 }
30360 }
30361 }
30362 }
30363 }
30364 }
30365
30366 #ifdef __cplusplus
30367 }
30368 #endif
30369
30370 /* -----------------------------------------------------------------------------*
30371 * Partial Init method
30372 * -----------------------------------------------------------------------------*/
30373
30374 #ifdef __cplusplus
30375 extern "C"
30376 #endif
30377 SWIGEXPORT void SWIG_init(void) {
30378 PyObject *m, *d;
30379
30380 /* Fix SwigMethods to carry the callback ptrs when needed */
30381 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
30382
30383 m = Py_InitModule((char *) SWIG_name, SwigMethods);
30384 d = PyModule_GetDict(m);
30385
30386 SWIG_InitializeModule(0);
30387 SWIG_InstallConstants(d,swig_const_table);
30388
30389
30390 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
30391 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
30392 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
30393 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
30394 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
30395 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
30396 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
30397 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
30398 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
30399 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
30400 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
30401 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
30402 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
30403 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
30404 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
30405 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
30406 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
30407 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
30408 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
30409 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
30410 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
30411 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
30412 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
30413 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
30414 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
30415 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
30416 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
30417 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
30418 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
30419 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
30420 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
30421 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
30422 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
30423 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
30424 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
30425 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
30426 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
30427 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
30428 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
30429 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
30430 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
30431 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
30432 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
30433 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
30434 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
30435 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
30436 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
30437 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
30438 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
30439 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
30440 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
30441 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
30442 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
30443 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
30444 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
30445 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
30446 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
30447 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
30448 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
30449 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
30450 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
30451 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
30452 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
30453 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
30454 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
30455 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
30456 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
30457 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
30458 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
30459 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
30460 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
30461 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
30462 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
30463 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
30464 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
30465 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
30466 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
30467 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
30468 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
30469 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
30470 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
30471 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
30472 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
30473 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
30474 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
30475 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
30476 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
30477 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
30478 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
30479 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
30480 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
30481 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
30482 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
30483 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
30484 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
30485 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
30486 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
30487 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
30488 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
30489 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
30490 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
30491 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
30492 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
30493 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
30494 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
30495 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
30496 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
30497 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
30498 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
30499 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
30500 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
30501 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
30502 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
30503 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
30504 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
30505 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
30506 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
30507 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
30508 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
30509 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
30510 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
30511 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
30512 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
30513 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
30514 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
30515 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
30516 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
30517 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
30518 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
30519 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
30520
30521 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
30522
30523 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
30524 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
30525 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
30526 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
30527 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
30528 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
30529 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
30530 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
30531 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
30532 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
30533 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
30534 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
30535 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
30536 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
30537 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
30538 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
30539 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
30540 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
30541 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
30542 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
30543 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
30544 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
30545 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
30546 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
30547 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
30548 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
30549 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
30550 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
30551 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
30552 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
30553 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
30554 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
30555 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
30556 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
30557 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
30558 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
30559 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
30560 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
30561 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
30562 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
30563 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
30564 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
30565 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
30566 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
30567 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
30568 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
30569 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
30570 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
30571 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
30572 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
30573 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
30574 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
30575 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
30576 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
30577 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
30578 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
30579 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
30580 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
30581 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
30582 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
30583 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
30584 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
30585 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
30586 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
30587 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
30588 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
30589 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
30590 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
30591 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
30592 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
30593 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
30594 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
30595 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
30596 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
30597 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
30598 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
30599 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
30600 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
30601 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
30602 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
30603 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
30604 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
30605 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
30606 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
30607 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
30608 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
30609 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
30610 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
30611 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
30612 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
30613 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
30614 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
30615 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
30616 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
30617 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
30618 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
30619 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
30620 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
30621 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
30622 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
30623 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
30624 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
30625 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
30626 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
30627 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
30628 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
30629 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
30630 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
30631 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
30632 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
30633 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
30634 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
30635 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
30636 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
30637 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
30638 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
30639 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
30640 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
30641 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
30642 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
30643 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
30644 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
30645 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
30646 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
30647 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
30648 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
30649 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
30650 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
30651 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
30652 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
30653 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
30654 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
30655 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
30656 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
30657 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
30658 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
30659 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
30660 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
30661 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
30662 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
30663 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
30664 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
30665 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
30666 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
30667 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
30668 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
30669 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
30670 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
30671 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
30672 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
30673 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
30674 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
30675 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
30676 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
30677 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
30678 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
30679 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
30680 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
30681 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
30682 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
30683 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
30684 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
30685 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
30686 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
30687 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
30688 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
30689 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
30690 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
30691 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
30692 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
30693 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
30694 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
30695 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
30696 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
30697 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
30698 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
30699 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
30700 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
30701 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
30702 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
30703 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
30704 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
30705 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
30706 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
30707 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
30708 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
30709 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
30710 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
30711 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
30712 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
30713 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
30714 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
30715 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
30716 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
30717 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
30718 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
30719 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
30720 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
30721 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
30722 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
30723 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
30724 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
30725 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
30726 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
30727 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
30728 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
30729 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
30730 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
30731 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
30732 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
30733 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
30734 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
30735 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
30736 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
30737 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
30738 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
30739 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
30740 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
30741 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
30742 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
30743 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
30744 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
30745 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
30746 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
30747 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
30748 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
30749 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
30750 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
30751 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
30752 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
30753 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
30754 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
30755 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
30756 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
30757 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
30758 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
30759 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
30760 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
30761 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
30762 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
30763 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
30764 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
30765 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
30766 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
30767 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
30768 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
30769 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
30770 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
30771 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
30772 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
30773 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
30774 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
30775 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
30776 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
30777 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
30778 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
30779 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
30780 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
30781 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
30782 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
30783 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
30784 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
30785 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
30786 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
30787 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
30788 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
30789 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
30790 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
30791 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
30792 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
30793 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
30794 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
30795 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
30796 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
30797 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
30798 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
30799 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
30800 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
30801 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
30802 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
30803 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
30804 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
30805 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
30806 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
30807 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
30808 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
30809 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
30810 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
30811 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
30812 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
30813 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
30814 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
30815 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
30816 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
30817 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
30818 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
30819 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
30820 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
30821 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
30822 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
30823 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
30824 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
30825 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
30826 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
30827 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
30828 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
30829 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
30830 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
30831 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
30832 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
30833 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
30834 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
30835 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
30836 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
30837
30838 // Work around a chicken/egg problem in drawlist.cpp
30839 wxPyDrawList_SetAPIPtr();
30840
30841 }
30842