]> 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_wxMouseEvent swig_types[80]
2547 #define SWIGTYPE_p_wxMoveEvent swig_types[81]
2548 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[82]
2549 #define SWIGTYPE_p_wxNativeFontInfo swig_types[83]
2550 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[84]
2551 #define SWIGTYPE_p_wxNcPaintEvent swig_types[85]
2552 #define SWIGTYPE_p_wxNotifyEvent swig_types[86]
2553 #define SWIGTYPE_p_wxObject swig_types[87]
2554 #define SWIGTYPE_p_wxPCXHandler swig_types[88]
2555 #define SWIGTYPE_p_wxPNGHandler swig_types[89]
2556 #define SWIGTYPE_p_wxPNMHandler swig_types[90]
2557 #define SWIGTYPE_p_wxPaintDC swig_types[91]
2558 #define SWIGTYPE_p_wxPaintEvent swig_types[92]
2559 #define SWIGTYPE_p_wxPalette swig_types[93]
2560 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[94]
2561 #define SWIGTYPE_p_wxPaperSize swig_types[95]
2562 #define SWIGTYPE_p_wxPen swig_types[96]
2563 #define SWIGTYPE_p_wxPenList swig_types[97]
2564 #define SWIGTYPE_p_wxPoint swig_types[98]
2565 #define SWIGTYPE_p_wxPostScriptDC swig_types[99]
2566 #define SWIGTYPE_p_wxPrintData swig_types[100]
2567 #define SWIGTYPE_p_wxPrinterDC swig_types[101]
2568 #define SWIGTYPE_p_wxPyApp swig_types[102]
2569 #define SWIGTYPE_p_wxPyCommandEvent swig_types[103]
2570 #define SWIGTYPE_p_wxPyEvent swig_types[104]
2571 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[105]
2572 #define SWIGTYPE_p_wxPyImageHandler swig_types[106]
2573 #define SWIGTYPE_p_wxPySizer swig_types[107]
2574 #define SWIGTYPE_p_wxPyValidator swig_types[108]
2575 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[109]
2576 #define SWIGTYPE_p_wxRect swig_types[110]
2577 #define SWIGTYPE_p_wxRegion swig_types[111]
2578 #define SWIGTYPE_p_wxRegionIterator swig_types[112]
2579 #define SWIGTYPE_p_wxRendererNative swig_types[113]
2580 #define SWIGTYPE_p_wxRendererVersion swig_types[114]
2581 #define SWIGTYPE_p_wxScreenDC swig_types[115]
2582 #define SWIGTYPE_p_wxScrollEvent swig_types[116]
2583 #define SWIGTYPE_p_wxScrollWinEvent swig_types[117]
2584 #define SWIGTYPE_p_wxSetCursorEvent swig_types[118]
2585 #define SWIGTYPE_p_wxShowEvent swig_types[119]
2586 #define SWIGTYPE_p_wxSize swig_types[120]
2587 #define SWIGTYPE_p_wxSizeEvent swig_types[121]
2588 #define SWIGTYPE_p_wxSizer swig_types[122]
2589 #define SWIGTYPE_p_wxSizerItem swig_types[123]
2590 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[124]
2591 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[125]
2592 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[126]
2593 #define SWIGTYPE_p_wxStockGDI swig_types[127]
2594 #define SWIGTYPE_p_wxString swig_types[128]
2595 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[129]
2596 #define SWIGTYPE_p_wxTIFFHandler swig_types[130]
2597 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[131]
2598 #define SWIGTYPE_p_wxValidator swig_types[132]
2599 #define SWIGTYPE_p_wxWindow swig_types[133]
2600 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[134]
2601 #define SWIGTYPE_p_wxWindowDC swig_types[135]
2602 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[136]
2603 #define SWIGTYPE_p_wxXPMHandler swig_types[137]
2604 static swig_type_info *swig_types[139];
2605 static swig_module_info swig_module = {swig_types, 138, 0, 0, 0, 0};
2606 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2607 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2608
2609 /* -------- TYPES TABLE (END) -------- */
2610
2611 #if (PY_VERSION_HEX <= 0x02000000)
2612 # if !defined(SWIG_PYTHON_CLASSIC)
2613 # error "This python version requires to use swig with the '-classic' option"
2614 # endif
2615 #endif
2616 #if (PY_VERSION_HEX <= 0x02020000)
2617 # error "This python version requires to use swig with the '-nomodern' option"
2618 #endif
2619 #if (PY_VERSION_HEX <= 0x02020000)
2620 # error "This python version requires to use swig with the '-nomodernargs' option"
2621 #endif
2622 #ifndef METH_O
2623 # error "This python version requires to use swig with the '-nofastunpack' option"
2624 #endif
2625
2626 /*-----------------------------------------------
2627 @(target):= _gdi_.so
2628 ------------------------------------------------*/
2629 #define SWIG_init init_gdi_
2630
2631 #define SWIG_name "_gdi_"
2632
2633 #define SWIGVERSION 0x010329
2634
2635
2636 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2637 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2638
2639
2640 #include <stdexcept>
2641
2642
2643 namespace swig {
2644 class PyObject_ptr {
2645 protected:
2646 PyObject *_obj;
2647
2648 public:
2649 PyObject_ptr() :_obj(0)
2650 {
2651 }
2652
2653 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2654 {
2655 Py_XINCREF(_obj);
2656 }
2657
2658 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2659 {
2660 if (initial_ref) Py_XINCREF(_obj);
2661 }
2662
2663 PyObject_ptr & operator=(const PyObject_ptr& item)
2664 {
2665 Py_XINCREF(item._obj);
2666 Py_XDECREF(_obj);
2667 _obj = item._obj;
2668 return *this;
2669 }
2670
2671 ~PyObject_ptr()
2672 {
2673 Py_XDECREF(_obj);
2674 }
2675
2676 operator PyObject *() const
2677 {
2678 return _obj;
2679 }
2680
2681 PyObject *operator->() const
2682 {
2683 return _obj;
2684 }
2685 };
2686 }
2687
2688
2689 namespace swig {
2690 struct PyObject_var : PyObject_ptr {
2691 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2692
2693 PyObject_var & operator = (PyObject* obj)
2694 {
2695 Py_XDECREF(_obj);
2696 _obj = obj;
2697 return *this;
2698 }
2699 };
2700 }
2701
2702
2703 #include "wx/wxPython/wxPython.h"
2704 #include "wx/wxPython/pyclasses.h"
2705
2706
2707 static const wxString wxPyEmptyString(wxEmptyString);
2708
2709 #define SWIG_From_long PyInt_FromLong
2710
2711
2712 SWIGINTERNINLINE PyObject *
2713 SWIG_From_int (int value)
2714 {
2715 return SWIG_From_long (value);
2716 }
2717
2718
2719 #include <limits.h>
2720 #ifndef LLONG_MIN
2721 # define LLONG_MIN LONG_LONG_MIN
2722 #endif
2723 #ifndef LLONG_MAX
2724 # define LLONG_MAX LONG_LONG_MAX
2725 #endif
2726 #ifndef ULLONG_MAX
2727 # define ULLONG_MAX ULONG_LONG_MAX
2728 #endif
2729
2730
2731 SWIGINTERN int
2732 SWIG_AsVal_long (PyObject* obj, long* val)
2733 {
2734 if (PyNumber_Check(obj)) {
2735 if (val) *val = PyInt_AsLong(obj);
2736 return SWIG_OK;
2737 }
2738 return SWIG_TypeError;
2739 }
2740
2741
2742 SWIGINTERN int
2743 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2744 {
2745 long v = 0;
2746 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2747 return SWIG_TypeError;
2748 }
2749 else if (val)
2750 *val = (unsigned long)v;
2751 return SWIG_OK;
2752 }
2753
2754
2755 SWIGINTERN int
2756 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2757 {
2758 unsigned long v;
2759 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2760 if (SWIG_IsOK(res)) {
2761 if ((v > UCHAR_MAX)) {
2762 return SWIG_OverflowError;
2763 } else {
2764 if (val) *val = static_cast< unsigned char >(v);
2765 }
2766 }
2767 return res;
2768 }
2769
2770
2771 SWIGINTERNINLINE PyObject*
2772 SWIG_From_unsigned_SS_long (unsigned long value)
2773 {
2774 return (value > LONG_MAX) ?
2775 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2776 }
2777
2778
2779 SWIGINTERNINLINE PyObject *
2780 SWIG_From_unsigned_SS_char (unsigned char value)
2781 {
2782 return SWIG_From_unsigned_SS_long (value);
2783 }
2784
2785 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2786 wxColour temp, *obj = &temp;
2787 if ( other == Py_None ) return false;
2788 if ( ! wxColour_helper(other, &obj) ) {
2789 PyErr_Clear();
2790 return false;
2791 }
2792 return self->operator==(*obj);
2793 }
2794 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2795 wxColour temp, *obj = &temp;
2796 if ( other == Py_None ) return true;
2797 if ( ! wxColour_helper(other, &obj)) {
2798 PyErr_Clear();
2799 return true;
2800 }
2801 return self->operator!=(*obj);
2802 }
2803 SWIGINTERN PyObject *wxColour_Get(wxColour *self){
2804 PyObject* rv = PyTuple_New(3);
2805 int red = -1;
2806 int green = -1;
2807 int blue = -1;
2808 if (self->Ok()) {
2809 red = self->Red();
2810 green = self->Green();
2811 blue = self->Blue();
2812 }
2813 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2814 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2815 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2816 return rv;
2817 }
2818 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2819 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2820 }
2821
2822 SWIGINTERN int
2823 SWIG_AsVal_int (PyObject * obj, int *val)
2824 {
2825 long v;
2826 int res = SWIG_AsVal_long (obj, &v);
2827 if (SWIG_IsOK(res)) {
2828 if ((v < INT_MIN || v > INT_MAX)) {
2829 return SWIG_OverflowError;
2830 } else {
2831 if (val) *val = static_cast< int >(v);
2832 }
2833 }
2834 return res;
2835 }
2836
2837 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2838 wxDash* dashes;
2839 int count = self->GetDashes(&dashes);
2840 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2841 PyObject* retval = PyList_New(0);
2842 for (int x=0; x<count; x++) {
2843 PyObject* pyint = PyInt_FromLong(dashes[x]);
2844 PyList_Append(retval, pyint);
2845 Py_DECREF(pyint);
2846 }
2847 wxPyEndBlockThreads(blocked);
2848 return retval;
2849 }
2850 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2851 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2852 int size = PyList_Size(pyDashes);
2853 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2854
2855 // black magic warning! The array of wxDashes needs to exist as
2856 // long as the pen does because wxPen does not copy the array. So
2857 // stick a copy in a Python string object and attach it to _self,
2858 // and then call SetDashes with a pointer to that array. Then
2859 // when the Python pen object is destroyed the array will be
2860 // cleaned up too.
2861 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2862 PyObject_SetAttrString(_self, "_dashes", strDashes);
2863
2864 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2865 delete [] dashes;
2866 Py_DECREF(strDashes);
2867 wxPyEndBlockThreads(blocked);
2868 }
2869 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2870 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2871
2872 SWIGINTERNINLINE PyObject *
2873 SWIG_From_short (short value)
2874 {
2875 return SWIG_From_long (value);
2876 }
2877
2878
2879 SWIGINTERN int
2880 SWIG_AsVal_short (PyObject * obj, short *val)
2881 {
2882 long v;
2883 int res = SWIG_AsVal_long (obj, &v);
2884 if (SWIG_IsOK(res)) {
2885 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2886 return SWIG_OverflowError;
2887 } else {
2888 if (val) *val = static_cast< short >(v);
2889 }
2890 }
2891 return res;
2892 }
2893
2894
2895 #include <wx/image.h>
2896
2897 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2898 char** cArray = NULL;
2899 int count;
2900
2901 if (!PyList_Check(listOfStrings)) {
2902 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2903 return NULL;
2904 }
2905 count = PyList_Size(listOfStrings);
2906 cArray = new char*[count];
2907
2908 for(int x=0; x<count; x++) {
2909 // TODO: Need some validation and error checking here
2910 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2911 }
2912 return cArray;
2913 }
2914
2915
2916 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2917 char** cArray = NULL;
2918 wxBitmap* bmp;
2919
2920 cArray = ConvertListOfStrings(listOfStrings);
2921 if (! cArray)
2922 return NULL;
2923 bmp = new wxBitmap(cArray);
2924 delete [] cArray;
2925 return bmp;
2926 }
2927 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2928 char* buf;
2929 Py_ssize_t length;
2930 PyString_AsStringAndSize(bits, &buf, &length);
2931 return new wxBitmap(buf, width, height, depth);
2932 }
2933 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2934 wxSize size(self->GetWidth(), self->GetHeight());
2935 return size;
2936 }
2937 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2938 wxMask *mask = new wxMask(*self, colour);
2939 self->SetMask(mask);
2940 }
2941 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2942 self->SetWidth(size.x);
2943 self->SetHeight(size.y);
2944 }
2945 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2946 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2947 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
2948 if ( !colour.Ok() )
2949 return new wxMask(bitmap, *wxBLACK);
2950 else
2951 return new wxMask(bitmap, colour);
2952 }
2953
2954 #include <wx/iconbndl.h>
2955
2956 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
2957 wxIcon* icon = new wxIcon();
2958 icon->CopyFromBitmap(bmp);
2959 return icon;
2960 }
2961 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
2962 char** cArray = NULL;
2963 wxIcon* icon;
2964
2965 cArray = ConvertListOfStrings(listOfStrings);
2966 if (! cArray)
2967 return NULL;
2968 icon = new wxIcon(cArray);
2969 delete [] cArray;
2970 return icon;
2971 }
2972 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2973
2974
2975
2976 return new wxIconLocation(*filename);
2977
2978 }
2979 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2980
2981
2982
2983 // do nothing
2984
2985 }
2986 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
2987
2988
2989
2990 return -1;
2991
2992 }
2993 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2994 #ifdef __WXGTK__
2995 wxImage img(cursorName, type);
2996 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2997 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2998 return new wxCursor(img);
2999 #else
3000 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3001 #endif
3002 }
3003
3004
3005 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3006 (*self) ++;
3007 }
3008 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3009 return self->operator bool();
3010 }
3011
3012 #include <wx/fontutil.h>
3013 #include <wx/fontmap.h>
3014 #include <wx/fontenum.h>
3015
3016
3017 SWIGINTERN int
3018 SWIG_AsVal_bool (PyObject *obj, bool *val)
3019 {
3020 if (obj == Py_True) {
3021 if (val) *val = true;
3022 return SWIG_OK;
3023 } else if (obj == Py_False) {
3024 if (val) *val = false;
3025 return SWIG_OK;
3026 } else {
3027 long v = 0;
3028 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
3029 if (SWIG_IsOK(res) && val) *val = v ? true : false;
3030 return res;
3031 }
3032 }
3033
3034 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3035 return self->ToString();
3036 }
3037
3038 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3039 static wxNativeEncodingInfo info;
3040 if ( wxGetNativeFontEncoding(encoding, &info) )
3041 return &info;
3042 else
3043 return NULL;
3044 }
3045
3046
3047 SWIGINTERNINLINE PyObject *
3048 SWIG_From_size_t (size_t value)
3049 {
3050 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3051 }
3052
3053
3054 SWIGINTERNINLINE int
3055 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3056 {
3057 unsigned long v;
3058 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3059 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3060 return res;
3061 }
3062
3063 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3064 wxFontEncoding alt_enc;
3065 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3066 return PyInt_FromLong(alt_enc);
3067 else {
3068 Py_INCREF(Py_None);
3069 return Py_None;
3070 }
3071 }
3072 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3073 wxNativeFontInfo nfi;
3074 nfi.FromString(info);
3075 return new wxFont(nfi);
3076 }
3077 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3078 return wxFont::New(pointSize, family, flags, face, encoding);
3079 }
3080 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3081 return wxFontBase::New(pixelSize, family,
3082 style, weight, underlined,
3083 face, encoding);
3084 }
3085 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3086 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3087 }
3088 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3089 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3090
3091 class wxPyFontEnumerator : public wxFontEnumerator {
3092 public:
3093 wxPyFontEnumerator() {}
3094 ~wxPyFontEnumerator() {}
3095
3096 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3097 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3098
3099 PYPRIVATE;
3100 };
3101
3102 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3103 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3104
3105
3106 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3107 PyObject* ret;
3108 wxArrayString arr = wxFontEnumerator::GetEncodings();
3109 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3110 ret = wxArrayString2PyList_helper(arr);
3111 wxPyEndBlockThreads(blocked);
3112 return ret;
3113 }
3114 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3115 PyObject* ret;
3116 wxArrayString arr = wxFontEnumerator::GetFacenames();
3117 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3118 ret = wxArrayString2PyList_helper(arr);
3119 wxPyEndBlockThreads(blocked);
3120 return ret;
3121 }
3122
3123 #include <locale.h>
3124
3125 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3126 wxLocale* loc;
3127 if (language == -1)
3128 loc = new wxLocale();
3129 else
3130 loc = new wxLocale(language, flags);
3131 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3132 // for the floating point conversions and such to work right.
3133 #if PY_VERSION_HEX < 0x02040000
3134 setlocale(LC_NUMERIC, "C");
3135 #endif
3136 return loc;
3137 }
3138 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3139 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3140 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3141 // for the floating point conversions and such to work right.
3142 #if PY_VERSION_HEX < 0x02040000
3143 setlocale(LC_NUMERIC, "C");
3144 #endif
3145 return rc;
3146 }
3147 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3148 bool rc = self->Init(language, flags);
3149 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3150 // for the floating point conversions and such to work right.
3151 #if PY_VERSION_HEX < 0x02040000
3152 setlocale(LC_NUMERIC, "C");
3153 #endif
3154 return rc;
3155 }
3156
3157 #include "wx/wxPython/pydrawxxx.h"
3158
3159 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3160 wxColour col;
3161 self->GetPixel(x, y, &col);
3162 return col;
3163 }
3164 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3165 wxColour col;
3166 self->GetPixel(pt, &col);
3167 return col;
3168 }
3169
3170 SWIGINTERN int
3171 SWIG_AsVal_double (PyObject *obj, double* val)
3172 {
3173 if (PyNumber_Check(obj)) {
3174 if (val) *val = PyFloat_AsDouble(obj);
3175 return SWIG_OK;
3176 }
3177 return SWIG_TypeError;
3178 }
3179
3180 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3181 wxRect rv;
3182 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3183 return rv;
3184 }
3185 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3186 wxRect rect;
3187 self->GetClippingBox(rect);
3188 return rect;
3189 }
3190 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3191 wxArrayInt widths;
3192 self->GetPartialTextExtents(text, widths);
3193 return widths;
3194 }
3195
3196 #define SWIG_From_double PyFloat_FromDouble
3197
3198 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3199 self->SetLogicalOrigin(point.x, point.y);
3200 }
3201 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3202 self->SetDeviceOrigin(point.x, point.y);
3203 }
3204 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3205 self->CalcBoundingBox(point.x, point.y);
3206 }
3207 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3208 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3209 }
3210 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3211 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3212 }
3213 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3214 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3215 }
3216 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3217 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3218 }
3219 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3220 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3221 }
3222 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3223 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3224 }
3225
3226 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3227 *x1 = dc->MinX();
3228 *y1 = dc->MinY();
3229 *x2 = dc->MaxX();
3230 *y2 = dc->MaxY();
3231 }
3232
3233
3234 #include <wx/dcbuffer.h>
3235
3236
3237 #include <wx/dcps.h>
3238
3239
3240 #include <wx/metafile.h>
3241
3242
3243
3244 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3245 self->AddColour(name, wxColour(red, green, blue));
3246 }
3247
3248 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3249 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3250 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3251 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3252
3253
3254 #include <wx/effects.h>
3255
3256
3257 #include "wx/renderer.h"
3258
3259
3260 SWIGINTERNINLINE PyObject*
3261 SWIG_From_bool (bool value)
3262 {
3263 return PyBool_FromLong(value ? 1 : 0);
3264 }
3265
3266 #ifdef __cplusplus
3267 extern "C" {
3268 #endif
3269 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3270 PyObject *resultobj = 0;
3271 wxGDIObject *result = 0 ;
3272
3273 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3274 {
3275 if (!wxPyCheckForApp()) SWIG_fail;
3276 PyThreadState* __tstate = wxPyBeginAllowThreads();
3277 result = (wxGDIObject *)new wxGDIObject();
3278 wxPyEndAllowThreads(__tstate);
3279 if (PyErr_Occurred()) SWIG_fail;
3280 }
3281 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3282 return resultobj;
3283 fail:
3284 return NULL;
3285 }
3286
3287
3288 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3289 PyObject *resultobj = 0;
3290 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3291 void *argp1 = 0 ;
3292 int res1 = 0 ;
3293 PyObject *swig_obj[1] ;
3294
3295 if (!args) SWIG_fail;
3296 swig_obj[0] = args;
3297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3298 if (!SWIG_IsOK(res1)) {
3299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3300 }
3301 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3302 {
3303 PyThreadState* __tstate = wxPyBeginAllowThreads();
3304 delete arg1;
3305
3306 wxPyEndAllowThreads(__tstate);
3307 if (PyErr_Occurred()) SWIG_fail;
3308 }
3309 resultobj = SWIG_Py_Void();
3310 return resultobj;
3311 fail:
3312 return NULL;
3313 }
3314
3315
3316 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3317 PyObject *resultobj = 0;
3318 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3319 bool result;
3320 void *argp1 = 0 ;
3321 int res1 = 0 ;
3322 PyObject *swig_obj[1] ;
3323
3324 if (!args) SWIG_fail;
3325 swig_obj[0] = args;
3326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3327 if (!SWIG_IsOK(res1)) {
3328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3329 }
3330 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3331 {
3332 PyThreadState* __tstate = wxPyBeginAllowThreads();
3333 result = (bool)(arg1)->IsNull();
3334 wxPyEndAllowThreads(__tstate);
3335 if (PyErr_Occurred()) SWIG_fail;
3336 }
3337 {
3338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3339 }
3340 return resultobj;
3341 fail:
3342 return NULL;
3343 }
3344
3345
3346 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3347 PyObject *obj;
3348 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3349 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3350 return SWIG_Py_Void();
3351 }
3352
3353 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3354 return SWIG_Python_InitShadowInstance(args);
3355 }
3356
3357 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3358 PyObject *resultobj = 0;
3359 byte arg1 = (byte) 0 ;
3360 byte arg2 = (byte) 0 ;
3361 byte arg3 = (byte) 0 ;
3362 wxColour *result = 0 ;
3363 unsigned char val1 ;
3364 int ecode1 = 0 ;
3365 unsigned char val2 ;
3366 int ecode2 = 0 ;
3367 unsigned char val3 ;
3368 int ecode3 = 0 ;
3369 PyObject * obj0 = 0 ;
3370 PyObject * obj1 = 0 ;
3371 PyObject * obj2 = 0 ;
3372 char * kwnames[] = {
3373 (char *) "red",(char *) "green",(char *) "blue", NULL
3374 };
3375
3376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3377 if (obj0) {
3378 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3379 if (!SWIG_IsOK(ecode1)) {
3380 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3381 }
3382 arg1 = static_cast< byte >(val1);
3383 }
3384 if (obj1) {
3385 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3386 if (!SWIG_IsOK(ecode2)) {
3387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3388 }
3389 arg2 = static_cast< byte >(val2);
3390 }
3391 if (obj2) {
3392 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3393 if (!SWIG_IsOK(ecode3)) {
3394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3395 }
3396 arg3 = static_cast< byte >(val3);
3397 }
3398 {
3399 PyThreadState* __tstate = wxPyBeginAllowThreads();
3400 result = (wxColour *)new wxColour(arg1,arg2,arg3);
3401 wxPyEndAllowThreads(__tstate);
3402 if (PyErr_Occurred()) SWIG_fail;
3403 }
3404 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3405 return resultobj;
3406 fail:
3407 return NULL;
3408 }
3409
3410
3411 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3412 PyObject *resultobj = 0;
3413 wxString *arg1 = 0 ;
3414 wxColour *result = 0 ;
3415 bool temp1 = false ;
3416 PyObject * obj0 = 0 ;
3417 char * kwnames[] = {
3418 (char *) "colorName", NULL
3419 };
3420
3421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3422 {
3423 arg1 = wxString_in_helper(obj0);
3424 if (arg1 == NULL) SWIG_fail;
3425 temp1 = true;
3426 }
3427 {
3428 if (!wxPyCheckForApp()) SWIG_fail;
3429 PyThreadState* __tstate = wxPyBeginAllowThreads();
3430 result = (wxColour *)new wxColour((wxString const &)*arg1);
3431 wxPyEndAllowThreads(__tstate);
3432 if (PyErr_Occurred()) SWIG_fail;
3433 }
3434 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3435 {
3436 if (temp1)
3437 delete arg1;
3438 }
3439 return resultobj;
3440 fail:
3441 {
3442 if (temp1)
3443 delete arg1;
3444 }
3445 return NULL;
3446 }
3447
3448
3449 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3450 PyObject *resultobj = 0;
3451 unsigned long arg1 ;
3452 wxColour *result = 0 ;
3453 unsigned long val1 ;
3454 int ecode1 = 0 ;
3455 PyObject * obj0 = 0 ;
3456 char * kwnames[] = {
3457 (char *) "colRGB", NULL
3458 };
3459
3460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3461 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3462 if (!SWIG_IsOK(ecode1)) {
3463 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3464 }
3465 arg1 = static_cast< unsigned long >(val1);
3466 {
3467 PyThreadState* __tstate = wxPyBeginAllowThreads();
3468 result = (wxColour *)new wxColour(arg1);
3469 wxPyEndAllowThreads(__tstate);
3470 if (PyErr_Occurred()) SWIG_fail;
3471 }
3472 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3473 return resultobj;
3474 fail:
3475 return NULL;
3476 }
3477
3478
3479 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3480 PyObject *resultobj = 0;
3481 wxColour *arg1 = (wxColour *) 0 ;
3482 void *argp1 = 0 ;
3483 int res1 = 0 ;
3484 PyObject *swig_obj[1] ;
3485
3486 if (!args) SWIG_fail;
3487 swig_obj[0] = args;
3488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3489 if (!SWIG_IsOK(res1)) {
3490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3491 }
3492 arg1 = reinterpret_cast< wxColour * >(argp1);
3493 {
3494 PyThreadState* __tstate = wxPyBeginAllowThreads();
3495 delete arg1;
3496
3497 wxPyEndAllowThreads(__tstate);
3498 if (PyErr_Occurred()) SWIG_fail;
3499 }
3500 resultobj = SWIG_Py_Void();
3501 return resultobj;
3502 fail:
3503 return NULL;
3504 }
3505
3506
3507 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3508 PyObject *resultobj = 0;
3509 wxColour *arg1 = (wxColour *) 0 ;
3510 byte result;
3511 void *argp1 = 0 ;
3512 int res1 = 0 ;
3513 PyObject *swig_obj[1] ;
3514
3515 if (!args) SWIG_fail;
3516 swig_obj[0] = args;
3517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3518 if (!SWIG_IsOK(res1)) {
3519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3520 }
3521 arg1 = reinterpret_cast< wxColour * >(argp1);
3522 {
3523 PyThreadState* __tstate = wxPyBeginAllowThreads();
3524 result = (byte)(arg1)->Red();
3525 wxPyEndAllowThreads(__tstate);
3526 if (PyErr_Occurred()) SWIG_fail;
3527 }
3528 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3529 return resultobj;
3530 fail:
3531 return NULL;
3532 }
3533
3534
3535 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3536 PyObject *resultobj = 0;
3537 wxColour *arg1 = (wxColour *) 0 ;
3538 byte result;
3539 void *argp1 = 0 ;
3540 int res1 = 0 ;
3541 PyObject *swig_obj[1] ;
3542
3543 if (!args) SWIG_fail;
3544 swig_obj[0] = args;
3545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3546 if (!SWIG_IsOK(res1)) {
3547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3548 }
3549 arg1 = reinterpret_cast< wxColour * >(argp1);
3550 {
3551 PyThreadState* __tstate = wxPyBeginAllowThreads();
3552 result = (byte)(arg1)->Green();
3553 wxPyEndAllowThreads(__tstate);
3554 if (PyErr_Occurred()) SWIG_fail;
3555 }
3556 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3557 return resultobj;
3558 fail:
3559 return NULL;
3560 }
3561
3562
3563 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3564 PyObject *resultobj = 0;
3565 wxColour *arg1 = (wxColour *) 0 ;
3566 byte result;
3567 void *argp1 = 0 ;
3568 int res1 = 0 ;
3569 PyObject *swig_obj[1] ;
3570
3571 if (!args) SWIG_fail;
3572 swig_obj[0] = args;
3573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3574 if (!SWIG_IsOK(res1)) {
3575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3576 }
3577 arg1 = reinterpret_cast< wxColour * >(argp1);
3578 {
3579 PyThreadState* __tstate = wxPyBeginAllowThreads();
3580 result = (byte)(arg1)->Blue();
3581 wxPyEndAllowThreads(__tstate);
3582 if (PyErr_Occurred()) SWIG_fail;
3583 }
3584 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3585 return resultobj;
3586 fail:
3587 return NULL;
3588 }
3589
3590
3591 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3592 PyObject *resultobj = 0;
3593 wxColour *arg1 = (wxColour *) 0 ;
3594 bool result;
3595 void *argp1 = 0 ;
3596 int res1 = 0 ;
3597 PyObject *swig_obj[1] ;
3598
3599 if (!args) SWIG_fail;
3600 swig_obj[0] = args;
3601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3602 if (!SWIG_IsOK(res1)) {
3603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3604 }
3605 arg1 = reinterpret_cast< wxColour * >(argp1);
3606 {
3607 PyThreadState* __tstate = wxPyBeginAllowThreads();
3608 result = (bool)(arg1)->Ok();
3609 wxPyEndAllowThreads(__tstate);
3610 if (PyErr_Occurred()) SWIG_fail;
3611 }
3612 {
3613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3614 }
3615 return resultobj;
3616 fail:
3617 return NULL;
3618 }
3619
3620
3621 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3622 PyObject *resultobj = 0;
3623 wxColour *arg1 = (wxColour *) 0 ;
3624 byte arg2 ;
3625 byte arg3 ;
3626 byte arg4 ;
3627 void *argp1 = 0 ;
3628 int res1 = 0 ;
3629 unsigned char val2 ;
3630 int ecode2 = 0 ;
3631 unsigned char val3 ;
3632 int ecode3 = 0 ;
3633 unsigned char val4 ;
3634 int ecode4 = 0 ;
3635 PyObject * obj0 = 0 ;
3636 PyObject * obj1 = 0 ;
3637 PyObject * obj2 = 0 ;
3638 PyObject * obj3 = 0 ;
3639 char * kwnames[] = {
3640 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3641 };
3642
3643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3645 if (!SWIG_IsOK(res1)) {
3646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3647 }
3648 arg1 = reinterpret_cast< wxColour * >(argp1);
3649 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3650 if (!SWIG_IsOK(ecode2)) {
3651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3652 }
3653 arg2 = static_cast< byte >(val2);
3654 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3655 if (!SWIG_IsOK(ecode3)) {
3656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3657 }
3658 arg3 = static_cast< byte >(val3);
3659 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3660 if (!SWIG_IsOK(ecode4)) {
3661 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3662 }
3663 arg4 = static_cast< byte >(val4);
3664 {
3665 PyThreadState* __tstate = wxPyBeginAllowThreads();
3666 (arg1)->Set(arg2,arg3,arg4);
3667 wxPyEndAllowThreads(__tstate);
3668 if (PyErr_Occurred()) SWIG_fail;
3669 }
3670 resultobj = SWIG_Py_Void();
3671 return resultobj;
3672 fail:
3673 return NULL;
3674 }
3675
3676
3677 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3678 PyObject *resultobj = 0;
3679 wxColour *arg1 = (wxColour *) 0 ;
3680 unsigned long arg2 ;
3681 void *argp1 = 0 ;
3682 int res1 = 0 ;
3683 unsigned long val2 ;
3684 int ecode2 = 0 ;
3685 PyObject * obj0 = 0 ;
3686 PyObject * obj1 = 0 ;
3687 char * kwnames[] = {
3688 (char *) "self",(char *) "colRGB", NULL
3689 };
3690
3691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
3692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3693 if (!SWIG_IsOK(res1)) {
3694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3695 }
3696 arg1 = reinterpret_cast< wxColour * >(argp1);
3697 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
3698 if (!SWIG_IsOK(ecode2)) {
3699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3700 }
3701 arg2 = static_cast< unsigned long >(val2);
3702 {
3703 PyThreadState* __tstate = wxPyBeginAllowThreads();
3704 (arg1)->Set(arg2);
3705 wxPyEndAllowThreads(__tstate);
3706 if (PyErr_Occurred()) SWIG_fail;
3707 }
3708 resultobj = SWIG_Py_Void();
3709 return resultobj;
3710 fail:
3711 return NULL;
3712 }
3713
3714
3715 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3716 PyObject *resultobj = 0;
3717 wxColour *arg1 = (wxColour *) 0 ;
3718 wxString *arg2 = 0 ;
3719 void *argp1 = 0 ;
3720 int res1 = 0 ;
3721 bool temp2 = false ;
3722 PyObject * obj0 = 0 ;
3723 PyObject * obj1 = 0 ;
3724 char * kwnames[] = {
3725 (char *) "self",(char *) "colourName", NULL
3726 };
3727
3728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
3729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3730 if (!SWIG_IsOK(res1)) {
3731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3732 }
3733 arg1 = reinterpret_cast< wxColour * >(argp1);
3734 {
3735 arg2 = wxString_in_helper(obj1);
3736 if (arg2 == NULL) SWIG_fail;
3737 temp2 = true;
3738 }
3739 {
3740 PyThreadState* __tstate = wxPyBeginAllowThreads();
3741 (arg1)->InitFromName((wxString const &)*arg2);
3742 wxPyEndAllowThreads(__tstate);
3743 if (PyErr_Occurred()) SWIG_fail;
3744 }
3745 resultobj = SWIG_Py_Void();
3746 {
3747 if (temp2)
3748 delete arg2;
3749 }
3750 return resultobj;
3751 fail:
3752 {
3753 if (temp2)
3754 delete arg2;
3755 }
3756 return NULL;
3757 }
3758
3759
3760 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3761 PyObject *resultobj = 0;
3762 wxColour *arg1 = (wxColour *) 0 ;
3763 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
3764 wxString result;
3765 void *argp1 = 0 ;
3766 int res1 = 0 ;
3767 long val2 ;
3768 int ecode2 = 0 ;
3769 PyObject * obj0 = 0 ;
3770 PyObject * obj1 = 0 ;
3771 char * kwnames[] = {
3772 (char *) "self",(char *) "flags", NULL
3773 };
3774
3775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
3776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3777 if (!SWIG_IsOK(res1)) {
3778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
3779 }
3780 arg1 = reinterpret_cast< wxColour * >(argp1);
3781 if (obj1) {
3782 ecode2 = SWIG_AsVal_long(obj1, &val2);
3783 if (!SWIG_IsOK(ecode2)) {
3784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
3785 }
3786 arg2 = static_cast< long >(val2);
3787 }
3788 {
3789 PyThreadState* __tstate = wxPyBeginAllowThreads();
3790 result = ((wxColour const *)arg1)->GetAsString(arg2);
3791 wxPyEndAllowThreads(__tstate);
3792 if (PyErr_Occurred()) SWIG_fail;
3793 }
3794 {
3795 #if wxUSE_UNICODE
3796 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3797 #else
3798 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3799 #endif
3800 }
3801 return resultobj;
3802 fail:
3803 return NULL;
3804 }
3805
3806
3807 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3808 PyObject *resultobj = 0;
3809 wxColour *arg1 = (wxColour *) 0 ;
3810 long result;
3811 void *argp1 = 0 ;
3812 int res1 = 0 ;
3813 PyObject *swig_obj[1] ;
3814
3815 if (!args) SWIG_fail;
3816 swig_obj[0] = args;
3817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3818 if (!SWIG_IsOK(res1)) {
3819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3820 }
3821 arg1 = reinterpret_cast< wxColour * >(argp1);
3822 {
3823 PyThreadState* __tstate = wxPyBeginAllowThreads();
3824 result = (long)((wxColour const *)arg1)->GetPixel();
3825 wxPyEndAllowThreads(__tstate);
3826 if (PyErr_Occurred()) SWIG_fail;
3827 }
3828 resultobj = SWIG_From_long(static_cast< long >(result));
3829 return resultobj;
3830 fail:
3831 return NULL;
3832 }
3833
3834
3835 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3836 PyObject *resultobj = 0;
3837 wxColour *arg1 = (wxColour *) 0 ;
3838 PyObject *arg2 = (PyObject *) 0 ;
3839 bool result;
3840 void *argp1 = 0 ;
3841 int res1 = 0 ;
3842 PyObject * obj0 = 0 ;
3843 PyObject * obj1 = 0 ;
3844 char * kwnames[] = {
3845 (char *) "self",(char *) "other", NULL
3846 };
3847
3848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3850 if (!SWIG_IsOK(res1)) {
3851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
3852 }
3853 arg1 = reinterpret_cast< wxColour * >(argp1);
3854 arg2 = obj1;
3855 {
3856 result = (bool)wxColour___eq__(arg1,arg2);
3857 if (PyErr_Occurred()) SWIG_fail;
3858 }
3859 {
3860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3861 }
3862 return resultobj;
3863 fail:
3864 return NULL;
3865 }
3866
3867
3868 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3869 PyObject *resultobj = 0;
3870 wxColour *arg1 = (wxColour *) 0 ;
3871 PyObject *arg2 = (PyObject *) 0 ;
3872 bool result;
3873 void *argp1 = 0 ;
3874 int res1 = 0 ;
3875 PyObject * obj0 = 0 ;
3876 PyObject * obj1 = 0 ;
3877 char * kwnames[] = {
3878 (char *) "self",(char *) "other", NULL
3879 };
3880
3881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
3882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3883 if (!SWIG_IsOK(res1)) {
3884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
3885 }
3886 arg1 = reinterpret_cast< wxColour * >(argp1);
3887 arg2 = obj1;
3888 {
3889 result = (bool)wxColour___ne__(arg1,arg2);
3890 if (PyErr_Occurred()) SWIG_fail;
3891 }
3892 {
3893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3894 }
3895 return resultobj;
3896 fail:
3897 return NULL;
3898 }
3899
3900
3901 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3902 PyObject *resultobj = 0;
3903 wxColour *arg1 = (wxColour *) 0 ;
3904 PyObject *result = 0 ;
3905 void *argp1 = 0 ;
3906 int res1 = 0 ;
3907 PyObject *swig_obj[1] ;
3908
3909 if (!args) SWIG_fail;
3910 swig_obj[0] = args;
3911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3912 if (!SWIG_IsOK(res1)) {
3913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
3914 }
3915 arg1 = reinterpret_cast< wxColour * >(argp1);
3916 {
3917 PyThreadState* __tstate = wxPyBeginAllowThreads();
3918 result = (PyObject *)wxColour_Get(arg1);
3919 wxPyEndAllowThreads(__tstate);
3920 if (PyErr_Occurred()) SWIG_fail;
3921 }
3922 resultobj = result;
3923 return resultobj;
3924 fail:
3925 return NULL;
3926 }
3927
3928
3929 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3930 PyObject *resultobj = 0;
3931 wxColour *arg1 = (wxColour *) 0 ;
3932 unsigned long result;
3933 void *argp1 = 0 ;
3934 int res1 = 0 ;
3935 PyObject *swig_obj[1] ;
3936
3937 if (!args) SWIG_fail;
3938 swig_obj[0] = args;
3939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3940 if (!SWIG_IsOK(res1)) {
3941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3942 }
3943 arg1 = reinterpret_cast< wxColour * >(argp1);
3944 {
3945 PyThreadState* __tstate = wxPyBeginAllowThreads();
3946 result = (unsigned long)wxColour_GetRGB(arg1);
3947 wxPyEndAllowThreads(__tstate);
3948 if (PyErr_Occurred()) SWIG_fail;
3949 }
3950 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
3951 return resultobj;
3952 fail:
3953 return NULL;
3954 }
3955
3956
3957 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3958 PyObject *obj;
3959 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3960 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
3961 return SWIG_Py_Void();
3962 }
3963
3964 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3965 return SWIG_Python_InitShadowInstance(args);
3966 }
3967
3968 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3969 PyObject *resultobj = 0;
3970 int arg1 ;
3971 unsigned char *arg2 = (unsigned char *) 0 ;
3972 unsigned char *arg3 = (unsigned char *) 0 ;
3973 unsigned char *arg4 = (unsigned char *) 0 ;
3974 wxPalette *result = 0 ;
3975 int val1 ;
3976 int ecode1 = 0 ;
3977 void *argp2 = 0 ;
3978 int res2 = 0 ;
3979 void *argp3 = 0 ;
3980 int res3 = 0 ;
3981 void *argp4 = 0 ;
3982 int res4 = 0 ;
3983 PyObject * obj0 = 0 ;
3984 PyObject * obj1 = 0 ;
3985 PyObject * obj2 = 0 ;
3986 PyObject * obj3 = 0 ;
3987 char * kwnames[] = {
3988 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3989 };
3990
3991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3992 ecode1 = SWIG_AsVal_int(obj0, &val1);
3993 if (!SWIG_IsOK(ecode1)) {
3994 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
3995 }
3996 arg1 = static_cast< int >(val1);
3997 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
3998 if (!SWIG_IsOK(res2)) {
3999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4000 }
4001 arg2 = reinterpret_cast< unsigned char * >(argp2);
4002 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4003 if (!SWIG_IsOK(res3)) {
4004 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4005 }
4006 arg3 = reinterpret_cast< unsigned char * >(argp3);
4007 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4008 if (!SWIG_IsOK(res4)) {
4009 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4010 }
4011 arg4 = reinterpret_cast< unsigned char * >(argp4);
4012 {
4013 if (!wxPyCheckForApp()) SWIG_fail;
4014 PyThreadState* __tstate = wxPyBeginAllowThreads();
4015 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4016 wxPyEndAllowThreads(__tstate);
4017 if (PyErr_Occurred()) SWIG_fail;
4018 }
4019 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4020 return resultobj;
4021 fail:
4022 return NULL;
4023 }
4024
4025
4026 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4027 PyObject *resultobj = 0;
4028 wxPalette *arg1 = (wxPalette *) 0 ;
4029 void *argp1 = 0 ;
4030 int res1 = 0 ;
4031 PyObject *swig_obj[1] ;
4032
4033 if (!args) SWIG_fail;
4034 swig_obj[0] = args;
4035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4036 if (!SWIG_IsOK(res1)) {
4037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4038 }
4039 arg1 = reinterpret_cast< wxPalette * >(argp1);
4040 {
4041 PyThreadState* __tstate = wxPyBeginAllowThreads();
4042 delete arg1;
4043
4044 wxPyEndAllowThreads(__tstate);
4045 if (PyErr_Occurred()) SWIG_fail;
4046 }
4047 resultobj = SWIG_Py_Void();
4048 return resultobj;
4049 fail:
4050 return NULL;
4051 }
4052
4053
4054 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4055 PyObject *resultobj = 0;
4056 wxPalette *arg1 = (wxPalette *) 0 ;
4057 byte arg2 ;
4058 byte arg3 ;
4059 byte arg4 ;
4060 int result;
4061 void *argp1 = 0 ;
4062 int res1 = 0 ;
4063 unsigned char val2 ;
4064 int ecode2 = 0 ;
4065 unsigned char val3 ;
4066 int ecode3 = 0 ;
4067 unsigned char val4 ;
4068 int ecode4 = 0 ;
4069 PyObject * obj0 = 0 ;
4070 PyObject * obj1 = 0 ;
4071 PyObject * obj2 = 0 ;
4072 PyObject * obj3 = 0 ;
4073 char * kwnames[] = {
4074 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4075 };
4076
4077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4079 if (!SWIG_IsOK(res1)) {
4080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4081 }
4082 arg1 = reinterpret_cast< wxPalette * >(argp1);
4083 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4084 if (!SWIG_IsOK(ecode2)) {
4085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4086 }
4087 arg2 = static_cast< byte >(val2);
4088 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4089 if (!SWIG_IsOK(ecode3)) {
4090 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4091 }
4092 arg3 = static_cast< byte >(val3);
4093 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4094 if (!SWIG_IsOK(ecode4)) {
4095 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4096 }
4097 arg4 = static_cast< byte >(val4);
4098 {
4099 PyThreadState* __tstate = wxPyBeginAllowThreads();
4100 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4101 wxPyEndAllowThreads(__tstate);
4102 if (PyErr_Occurred()) SWIG_fail;
4103 }
4104 resultobj = SWIG_From_int(static_cast< int >(result));
4105 return resultobj;
4106 fail:
4107 return NULL;
4108 }
4109
4110
4111 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4112 PyObject *resultobj = 0;
4113 wxPalette *arg1 = (wxPalette *) 0 ;
4114 int arg2 ;
4115 byte *arg3 = (byte *) 0 ;
4116 byte *arg4 = (byte *) 0 ;
4117 byte *arg5 = (byte *) 0 ;
4118 bool result;
4119 void *argp1 = 0 ;
4120 int res1 = 0 ;
4121 int val2 ;
4122 int ecode2 = 0 ;
4123 byte temp3 ;
4124 int res3 = SWIG_TMPOBJ ;
4125 byte temp4 ;
4126 int res4 = SWIG_TMPOBJ ;
4127 byte temp5 ;
4128 int res5 = SWIG_TMPOBJ ;
4129 PyObject * obj0 = 0 ;
4130 PyObject * obj1 = 0 ;
4131 char * kwnames[] = {
4132 (char *) "self",(char *) "pixel", NULL
4133 };
4134
4135 arg3 = &temp3;
4136 arg4 = &temp4;
4137 arg5 = &temp5;
4138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4140 if (!SWIG_IsOK(res1)) {
4141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4142 }
4143 arg1 = reinterpret_cast< wxPalette * >(argp1);
4144 ecode2 = SWIG_AsVal_int(obj1, &val2);
4145 if (!SWIG_IsOK(ecode2)) {
4146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4147 }
4148 arg2 = static_cast< int >(val2);
4149 {
4150 PyThreadState* __tstate = wxPyBeginAllowThreads();
4151 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4152 wxPyEndAllowThreads(__tstate);
4153 if (PyErr_Occurred()) SWIG_fail;
4154 }
4155 {
4156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4157 }
4158 if (SWIG_IsTmpObj(res3)) {
4159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4160 } else {
4161 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4163 }
4164 if (SWIG_IsTmpObj(res4)) {
4165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4166 } else {
4167 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4169 }
4170 if (SWIG_IsTmpObj(res5)) {
4171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4172 } else {
4173 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4174 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4175 }
4176 return resultobj;
4177 fail:
4178 return NULL;
4179 }
4180
4181
4182 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4183 PyObject *resultobj = 0;
4184 wxPalette *arg1 = (wxPalette *) 0 ;
4185 int result;
4186 void *argp1 = 0 ;
4187 int res1 = 0 ;
4188 PyObject *swig_obj[1] ;
4189
4190 if (!args) SWIG_fail;
4191 swig_obj[0] = args;
4192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4193 if (!SWIG_IsOK(res1)) {
4194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4195 }
4196 arg1 = reinterpret_cast< wxPalette * >(argp1);
4197 {
4198 PyThreadState* __tstate = wxPyBeginAllowThreads();
4199 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4200 wxPyEndAllowThreads(__tstate);
4201 if (PyErr_Occurred()) SWIG_fail;
4202 }
4203 resultobj = SWIG_From_int(static_cast< int >(result));
4204 return resultobj;
4205 fail:
4206 return NULL;
4207 }
4208
4209
4210 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4211 PyObject *resultobj = 0;
4212 wxPalette *arg1 = (wxPalette *) 0 ;
4213 bool result;
4214 void *argp1 = 0 ;
4215 int res1 = 0 ;
4216 PyObject *swig_obj[1] ;
4217
4218 if (!args) SWIG_fail;
4219 swig_obj[0] = args;
4220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4221 if (!SWIG_IsOK(res1)) {
4222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4223 }
4224 arg1 = reinterpret_cast< wxPalette * >(argp1);
4225 {
4226 PyThreadState* __tstate = wxPyBeginAllowThreads();
4227 result = (bool)(arg1)->Ok();
4228 wxPyEndAllowThreads(__tstate);
4229 if (PyErr_Occurred()) SWIG_fail;
4230 }
4231 {
4232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4233 }
4234 return resultobj;
4235 fail:
4236 return NULL;
4237 }
4238
4239
4240 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4241 PyObject *obj;
4242 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4243 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4244 return SWIG_Py_Void();
4245 }
4246
4247 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4248 return SWIG_Python_InitShadowInstance(args);
4249 }
4250
4251 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4252 PyObject *resultobj = 0;
4253 wxColour *arg1 = 0 ;
4254 int arg2 = (int) 1 ;
4255 int arg3 = (int) wxSOLID ;
4256 wxPen *result = 0 ;
4257 wxColour temp1 ;
4258 int val2 ;
4259 int ecode2 = 0 ;
4260 int val3 ;
4261 int ecode3 = 0 ;
4262 PyObject * obj0 = 0 ;
4263 PyObject * obj1 = 0 ;
4264 PyObject * obj2 = 0 ;
4265 char * kwnames[] = {
4266 (char *) "colour",(char *) "width",(char *) "style", NULL
4267 };
4268
4269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4270 {
4271 arg1 = &temp1;
4272 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4273 }
4274 if (obj1) {
4275 ecode2 = SWIG_AsVal_int(obj1, &val2);
4276 if (!SWIG_IsOK(ecode2)) {
4277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4278 }
4279 arg2 = static_cast< int >(val2);
4280 }
4281 if (obj2) {
4282 ecode3 = SWIG_AsVal_int(obj2, &val3);
4283 if (!SWIG_IsOK(ecode3)) {
4284 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4285 }
4286 arg3 = static_cast< int >(val3);
4287 }
4288 {
4289 if (!wxPyCheckForApp()) SWIG_fail;
4290 PyThreadState* __tstate = wxPyBeginAllowThreads();
4291 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4292 wxPyEndAllowThreads(__tstate);
4293 if (PyErr_Occurred()) SWIG_fail;
4294 }
4295 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4296 return resultobj;
4297 fail:
4298 return NULL;
4299 }
4300
4301
4302 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4303 PyObject *resultobj = 0;
4304 wxPen *arg1 = (wxPen *) 0 ;
4305 void *argp1 = 0 ;
4306 int res1 = 0 ;
4307 PyObject *swig_obj[1] ;
4308
4309 if (!args) SWIG_fail;
4310 swig_obj[0] = args;
4311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4312 if (!SWIG_IsOK(res1)) {
4313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4314 }
4315 arg1 = reinterpret_cast< wxPen * >(argp1);
4316 {
4317 PyThreadState* __tstate = wxPyBeginAllowThreads();
4318 delete arg1;
4319
4320 wxPyEndAllowThreads(__tstate);
4321 if (PyErr_Occurred()) SWIG_fail;
4322 }
4323 resultobj = SWIG_Py_Void();
4324 return resultobj;
4325 fail:
4326 return NULL;
4327 }
4328
4329
4330 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4331 PyObject *resultobj = 0;
4332 wxPen *arg1 = (wxPen *) 0 ;
4333 int result;
4334 void *argp1 = 0 ;
4335 int res1 = 0 ;
4336 PyObject *swig_obj[1] ;
4337
4338 if (!args) SWIG_fail;
4339 swig_obj[0] = args;
4340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4341 if (!SWIG_IsOK(res1)) {
4342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4343 }
4344 arg1 = reinterpret_cast< wxPen * >(argp1);
4345 {
4346 PyThreadState* __tstate = wxPyBeginAllowThreads();
4347 result = (int)(arg1)->GetCap();
4348 wxPyEndAllowThreads(__tstate);
4349 if (PyErr_Occurred()) SWIG_fail;
4350 }
4351 resultobj = SWIG_From_int(static_cast< int >(result));
4352 return resultobj;
4353 fail:
4354 return NULL;
4355 }
4356
4357
4358 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4359 PyObject *resultobj = 0;
4360 wxPen *arg1 = (wxPen *) 0 ;
4361 wxColour result;
4362 void *argp1 = 0 ;
4363 int res1 = 0 ;
4364 PyObject *swig_obj[1] ;
4365
4366 if (!args) SWIG_fail;
4367 swig_obj[0] = args;
4368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4369 if (!SWIG_IsOK(res1)) {
4370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4371 }
4372 arg1 = reinterpret_cast< wxPen * >(argp1);
4373 {
4374 PyThreadState* __tstate = wxPyBeginAllowThreads();
4375 result = (arg1)->GetColour();
4376 wxPyEndAllowThreads(__tstate);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 }
4379 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4380 return resultobj;
4381 fail:
4382 return NULL;
4383 }
4384
4385
4386 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4387 PyObject *resultobj = 0;
4388 wxPen *arg1 = (wxPen *) 0 ;
4389 int result;
4390 void *argp1 = 0 ;
4391 int res1 = 0 ;
4392 PyObject *swig_obj[1] ;
4393
4394 if (!args) SWIG_fail;
4395 swig_obj[0] = args;
4396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4397 if (!SWIG_IsOK(res1)) {
4398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4399 }
4400 arg1 = reinterpret_cast< wxPen * >(argp1);
4401 {
4402 PyThreadState* __tstate = wxPyBeginAllowThreads();
4403 result = (int)(arg1)->GetJoin();
4404 wxPyEndAllowThreads(__tstate);
4405 if (PyErr_Occurred()) SWIG_fail;
4406 }
4407 resultobj = SWIG_From_int(static_cast< int >(result));
4408 return resultobj;
4409 fail:
4410 return NULL;
4411 }
4412
4413
4414 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4415 PyObject *resultobj = 0;
4416 wxPen *arg1 = (wxPen *) 0 ;
4417 int result;
4418 void *argp1 = 0 ;
4419 int res1 = 0 ;
4420 PyObject *swig_obj[1] ;
4421
4422 if (!args) SWIG_fail;
4423 swig_obj[0] = args;
4424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4425 if (!SWIG_IsOK(res1)) {
4426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4427 }
4428 arg1 = reinterpret_cast< wxPen * >(argp1);
4429 {
4430 PyThreadState* __tstate = wxPyBeginAllowThreads();
4431 result = (int)(arg1)->GetStyle();
4432 wxPyEndAllowThreads(__tstate);
4433 if (PyErr_Occurred()) SWIG_fail;
4434 }
4435 resultobj = SWIG_From_int(static_cast< int >(result));
4436 return resultobj;
4437 fail:
4438 return NULL;
4439 }
4440
4441
4442 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4443 PyObject *resultobj = 0;
4444 wxPen *arg1 = (wxPen *) 0 ;
4445 int result;
4446 void *argp1 = 0 ;
4447 int res1 = 0 ;
4448 PyObject *swig_obj[1] ;
4449
4450 if (!args) SWIG_fail;
4451 swig_obj[0] = args;
4452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4453 if (!SWIG_IsOK(res1)) {
4454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4455 }
4456 arg1 = reinterpret_cast< wxPen * >(argp1);
4457 {
4458 PyThreadState* __tstate = wxPyBeginAllowThreads();
4459 result = (int)(arg1)->GetWidth();
4460 wxPyEndAllowThreads(__tstate);
4461 if (PyErr_Occurred()) SWIG_fail;
4462 }
4463 resultobj = SWIG_From_int(static_cast< int >(result));
4464 return resultobj;
4465 fail:
4466 return NULL;
4467 }
4468
4469
4470 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4471 PyObject *resultobj = 0;
4472 wxPen *arg1 = (wxPen *) 0 ;
4473 bool result;
4474 void *argp1 = 0 ;
4475 int res1 = 0 ;
4476 PyObject *swig_obj[1] ;
4477
4478 if (!args) SWIG_fail;
4479 swig_obj[0] = args;
4480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4481 if (!SWIG_IsOK(res1)) {
4482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4483 }
4484 arg1 = reinterpret_cast< wxPen * >(argp1);
4485 {
4486 PyThreadState* __tstate = wxPyBeginAllowThreads();
4487 result = (bool)(arg1)->Ok();
4488 wxPyEndAllowThreads(__tstate);
4489 if (PyErr_Occurred()) SWIG_fail;
4490 }
4491 {
4492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4493 }
4494 return resultobj;
4495 fail:
4496 return NULL;
4497 }
4498
4499
4500 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4501 PyObject *resultobj = 0;
4502 wxPen *arg1 = (wxPen *) 0 ;
4503 int arg2 ;
4504 void *argp1 = 0 ;
4505 int res1 = 0 ;
4506 int val2 ;
4507 int ecode2 = 0 ;
4508 PyObject * obj0 = 0 ;
4509 PyObject * obj1 = 0 ;
4510 char * kwnames[] = {
4511 (char *) "self",(char *) "cap_style", NULL
4512 };
4513
4514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4516 if (!SWIG_IsOK(res1)) {
4517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4518 }
4519 arg1 = reinterpret_cast< wxPen * >(argp1);
4520 ecode2 = SWIG_AsVal_int(obj1, &val2);
4521 if (!SWIG_IsOK(ecode2)) {
4522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4523 }
4524 arg2 = static_cast< int >(val2);
4525 {
4526 PyThreadState* __tstate = wxPyBeginAllowThreads();
4527 (arg1)->SetCap(arg2);
4528 wxPyEndAllowThreads(__tstate);
4529 if (PyErr_Occurred()) SWIG_fail;
4530 }
4531 resultobj = SWIG_Py_Void();
4532 return resultobj;
4533 fail:
4534 return NULL;
4535 }
4536
4537
4538 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4539 PyObject *resultobj = 0;
4540 wxPen *arg1 = (wxPen *) 0 ;
4541 wxColour *arg2 = 0 ;
4542 void *argp1 = 0 ;
4543 int res1 = 0 ;
4544 wxColour temp2 ;
4545 PyObject * obj0 = 0 ;
4546 PyObject * obj1 = 0 ;
4547 char * kwnames[] = {
4548 (char *) "self",(char *) "colour", NULL
4549 };
4550
4551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4553 if (!SWIG_IsOK(res1)) {
4554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4555 }
4556 arg1 = reinterpret_cast< wxPen * >(argp1);
4557 {
4558 arg2 = &temp2;
4559 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4560 }
4561 {
4562 PyThreadState* __tstate = wxPyBeginAllowThreads();
4563 (arg1)->SetColour(*arg2);
4564 wxPyEndAllowThreads(__tstate);
4565 if (PyErr_Occurred()) SWIG_fail;
4566 }
4567 resultobj = SWIG_Py_Void();
4568 return resultobj;
4569 fail:
4570 return NULL;
4571 }
4572
4573
4574 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4575 PyObject *resultobj = 0;
4576 wxPen *arg1 = (wxPen *) 0 ;
4577 int arg2 ;
4578 void *argp1 = 0 ;
4579 int res1 = 0 ;
4580 int val2 ;
4581 int ecode2 = 0 ;
4582 PyObject * obj0 = 0 ;
4583 PyObject * obj1 = 0 ;
4584 char * kwnames[] = {
4585 (char *) "self",(char *) "join_style", NULL
4586 };
4587
4588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4590 if (!SWIG_IsOK(res1)) {
4591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4592 }
4593 arg1 = reinterpret_cast< wxPen * >(argp1);
4594 ecode2 = SWIG_AsVal_int(obj1, &val2);
4595 if (!SWIG_IsOK(ecode2)) {
4596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4597 }
4598 arg2 = static_cast< int >(val2);
4599 {
4600 PyThreadState* __tstate = wxPyBeginAllowThreads();
4601 (arg1)->SetJoin(arg2);
4602 wxPyEndAllowThreads(__tstate);
4603 if (PyErr_Occurred()) SWIG_fail;
4604 }
4605 resultobj = SWIG_Py_Void();
4606 return resultobj;
4607 fail:
4608 return NULL;
4609 }
4610
4611
4612 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4613 PyObject *resultobj = 0;
4614 wxPen *arg1 = (wxPen *) 0 ;
4615 int arg2 ;
4616 void *argp1 = 0 ;
4617 int res1 = 0 ;
4618 int val2 ;
4619 int ecode2 = 0 ;
4620 PyObject * obj0 = 0 ;
4621 PyObject * obj1 = 0 ;
4622 char * kwnames[] = {
4623 (char *) "self",(char *) "style", NULL
4624 };
4625
4626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4628 if (!SWIG_IsOK(res1)) {
4629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4630 }
4631 arg1 = reinterpret_cast< wxPen * >(argp1);
4632 ecode2 = SWIG_AsVal_int(obj1, &val2);
4633 if (!SWIG_IsOK(ecode2)) {
4634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4635 }
4636 arg2 = static_cast< int >(val2);
4637 {
4638 PyThreadState* __tstate = wxPyBeginAllowThreads();
4639 (arg1)->SetStyle(arg2);
4640 wxPyEndAllowThreads(__tstate);
4641 if (PyErr_Occurred()) SWIG_fail;
4642 }
4643 resultobj = SWIG_Py_Void();
4644 return resultobj;
4645 fail:
4646 return NULL;
4647 }
4648
4649
4650 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4651 PyObject *resultobj = 0;
4652 wxPen *arg1 = (wxPen *) 0 ;
4653 int arg2 ;
4654 void *argp1 = 0 ;
4655 int res1 = 0 ;
4656 int val2 ;
4657 int ecode2 = 0 ;
4658 PyObject * obj0 = 0 ;
4659 PyObject * obj1 = 0 ;
4660 char * kwnames[] = {
4661 (char *) "self",(char *) "width", NULL
4662 };
4663
4664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
4665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4666 if (!SWIG_IsOK(res1)) {
4667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4668 }
4669 arg1 = reinterpret_cast< wxPen * >(argp1);
4670 ecode2 = SWIG_AsVal_int(obj1, &val2);
4671 if (!SWIG_IsOK(ecode2)) {
4672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
4673 }
4674 arg2 = static_cast< int >(val2);
4675 {
4676 PyThreadState* __tstate = wxPyBeginAllowThreads();
4677 (arg1)->SetWidth(arg2);
4678 wxPyEndAllowThreads(__tstate);
4679 if (PyErr_Occurred()) SWIG_fail;
4680 }
4681 resultobj = SWIG_Py_Void();
4682 return resultobj;
4683 fail:
4684 return NULL;
4685 }
4686
4687
4688 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4689 PyObject *resultobj = 0;
4690 wxPen *arg1 = (wxPen *) 0 ;
4691 int arg2 ;
4692 wxDash *arg3 = (wxDash *) 0 ;
4693 void *argp1 = 0 ;
4694 int res1 = 0 ;
4695 PyObject * obj0 = 0 ;
4696 PyObject * obj1 = 0 ;
4697 char * kwnames[] = {
4698 (char *) "self",(char *) "dashes", NULL
4699 };
4700
4701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
4702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4703 if (!SWIG_IsOK(res1)) {
4704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4705 }
4706 arg1 = reinterpret_cast< wxPen * >(argp1);
4707 {
4708 arg2 = PyList_Size(obj1);
4709 arg3 = (wxDash*)byte_LIST_helper(obj1);
4710 if (arg3 == NULL) SWIG_fail;
4711 }
4712 {
4713 PyThreadState* __tstate = wxPyBeginAllowThreads();
4714 (arg1)->SetDashes(arg2,arg3);
4715 wxPyEndAllowThreads(__tstate);
4716 if (PyErr_Occurred()) SWIG_fail;
4717 }
4718 resultobj = SWIG_Py_Void();
4719 {
4720 if (arg3) delete [] arg3;
4721 }
4722 return resultobj;
4723 fail:
4724 {
4725 if (arg3) delete [] arg3;
4726 }
4727 return NULL;
4728 }
4729
4730
4731 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4732 PyObject *resultobj = 0;
4733 wxPen *arg1 = (wxPen *) 0 ;
4734 PyObject *result = 0 ;
4735 void *argp1 = 0 ;
4736 int res1 = 0 ;
4737 PyObject *swig_obj[1] ;
4738
4739 if (!args) SWIG_fail;
4740 swig_obj[0] = args;
4741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4742 if (!SWIG_IsOK(res1)) {
4743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4744 }
4745 arg1 = reinterpret_cast< wxPen * >(argp1);
4746 {
4747 PyThreadState* __tstate = wxPyBeginAllowThreads();
4748 result = (PyObject *)wxPen_GetDashes(arg1);
4749 wxPyEndAllowThreads(__tstate);
4750 if (PyErr_Occurred()) SWIG_fail;
4751 }
4752 resultobj = result;
4753 return resultobj;
4754 fail:
4755 return NULL;
4756 }
4757
4758
4759 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4760 PyObject *resultobj = 0;
4761 wxPen *arg1 = (wxPen *) 0 ;
4762 PyObject *arg2 = (PyObject *) 0 ;
4763 PyObject *arg3 = (PyObject *) 0 ;
4764 void *argp1 = 0 ;
4765 int res1 = 0 ;
4766 PyObject * obj0 = 0 ;
4767 PyObject * obj1 = 0 ;
4768 PyObject * obj2 = 0 ;
4769 char * kwnames[] = {
4770 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
4771 };
4772
4773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4775 if (!SWIG_IsOK(res1)) {
4776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4777 }
4778 arg1 = reinterpret_cast< wxPen * >(argp1);
4779 arg2 = obj1;
4780 arg3 = obj2;
4781 {
4782 PyThreadState* __tstate = wxPyBeginAllowThreads();
4783 wxPen__SetDashes(arg1,arg2,arg3);
4784 wxPyEndAllowThreads(__tstate);
4785 if (PyErr_Occurred()) SWIG_fail;
4786 }
4787 resultobj = SWIG_Py_Void();
4788 return resultobj;
4789 fail:
4790 return NULL;
4791 }
4792
4793
4794 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4795 PyObject *resultobj = 0;
4796 wxPen *arg1 = (wxPen *) 0 ;
4797 wxPen *arg2 = (wxPen *) 0 ;
4798 bool result;
4799 void *argp1 = 0 ;
4800 int res1 = 0 ;
4801 void *argp2 = 0 ;
4802 int res2 = 0 ;
4803 PyObject * obj0 = 0 ;
4804 PyObject * obj1 = 0 ;
4805 char * kwnames[] = {
4806 (char *) "self",(char *) "other", NULL
4807 };
4808
4809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4811 if (!SWIG_IsOK(res1)) {
4812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
4813 }
4814 arg1 = reinterpret_cast< wxPen * >(argp1);
4815 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4816 if (!SWIG_IsOK(res2)) {
4817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
4818 }
4819 arg2 = reinterpret_cast< wxPen * >(argp2);
4820 {
4821 PyThreadState* __tstate = wxPyBeginAllowThreads();
4822 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
4823 wxPyEndAllowThreads(__tstate);
4824 if (PyErr_Occurred()) SWIG_fail;
4825 }
4826 {
4827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4828 }
4829 return resultobj;
4830 fail:
4831 return NULL;
4832 }
4833
4834
4835 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4836 PyObject *resultobj = 0;
4837 wxPen *arg1 = (wxPen *) 0 ;
4838 wxPen *arg2 = (wxPen *) 0 ;
4839 bool result;
4840 void *argp1 = 0 ;
4841 int res1 = 0 ;
4842 void *argp2 = 0 ;
4843 int res2 = 0 ;
4844 PyObject * obj0 = 0 ;
4845 PyObject * obj1 = 0 ;
4846 char * kwnames[] = {
4847 (char *) "self",(char *) "other", NULL
4848 };
4849
4850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4852 if (!SWIG_IsOK(res1)) {
4853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
4854 }
4855 arg1 = reinterpret_cast< wxPen * >(argp1);
4856 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4857 if (!SWIG_IsOK(res2)) {
4858 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
4859 }
4860 arg2 = reinterpret_cast< wxPen * >(argp2);
4861 {
4862 PyThreadState* __tstate = wxPyBeginAllowThreads();
4863 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
4864 wxPyEndAllowThreads(__tstate);
4865 if (PyErr_Occurred()) SWIG_fail;
4866 }
4867 {
4868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4869 }
4870 return resultobj;
4871 fail:
4872 return NULL;
4873 }
4874
4875
4876 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4877 PyObject *obj;
4878 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4879 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
4880 return SWIG_Py_Void();
4881 }
4882
4883 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4884 return SWIG_Python_InitShadowInstance(args);
4885 }
4886
4887 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4888 PyObject *resultobj = 0;
4889 wxColour *arg1 = 0 ;
4890 int arg2 = (int) wxSOLID ;
4891 wxBrush *result = 0 ;
4892 wxColour temp1 ;
4893 int val2 ;
4894 int ecode2 = 0 ;
4895 PyObject * obj0 = 0 ;
4896 PyObject * obj1 = 0 ;
4897 char * kwnames[] = {
4898 (char *) "colour",(char *) "style", NULL
4899 };
4900
4901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
4902 {
4903 arg1 = &temp1;
4904 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4905 }
4906 if (obj1) {
4907 ecode2 = SWIG_AsVal_int(obj1, &val2);
4908 if (!SWIG_IsOK(ecode2)) {
4909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
4910 }
4911 arg2 = static_cast< int >(val2);
4912 }
4913 {
4914 if (!wxPyCheckForApp()) SWIG_fail;
4915 PyThreadState* __tstate = wxPyBeginAllowThreads();
4916 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
4917 wxPyEndAllowThreads(__tstate);
4918 if (PyErr_Occurred()) SWIG_fail;
4919 }
4920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
4921 return resultobj;
4922 fail:
4923 return NULL;
4924 }
4925
4926
4927 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4928 PyObject *resultobj = 0;
4929 wxBitmap *arg1 = 0 ;
4930 wxBrush *result = 0 ;
4931 void *argp1 = 0 ;
4932 int res1 = 0 ;
4933 PyObject * obj0 = 0 ;
4934 char * kwnames[] = {
4935 (char *) "stippleBitmap", NULL
4936 };
4937
4938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
4939 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
4940 if (!SWIG_IsOK(res1)) {
4941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4942 }
4943 if (!argp1) {
4944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4945 }
4946 arg1 = reinterpret_cast< wxBitmap * >(argp1);
4947 {
4948 if (!wxPyCheckForApp()) SWIG_fail;
4949 PyThreadState* __tstate = wxPyBeginAllowThreads();
4950 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
4951 wxPyEndAllowThreads(__tstate);
4952 if (PyErr_Occurred()) SWIG_fail;
4953 }
4954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
4955 return resultobj;
4956 fail:
4957 return NULL;
4958 }
4959
4960
4961 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4962 PyObject *resultobj = 0;
4963 wxBrush *arg1 = (wxBrush *) 0 ;
4964 void *argp1 = 0 ;
4965 int res1 = 0 ;
4966 PyObject *swig_obj[1] ;
4967
4968 if (!args) SWIG_fail;
4969 swig_obj[0] = args;
4970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
4971 if (!SWIG_IsOK(res1)) {
4972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
4973 }
4974 arg1 = reinterpret_cast< wxBrush * >(argp1);
4975 {
4976 PyThreadState* __tstate = wxPyBeginAllowThreads();
4977 delete arg1;
4978
4979 wxPyEndAllowThreads(__tstate);
4980 if (PyErr_Occurred()) SWIG_fail;
4981 }
4982 resultobj = SWIG_Py_Void();
4983 return resultobj;
4984 fail:
4985 return NULL;
4986 }
4987
4988
4989 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4990 PyObject *resultobj = 0;
4991 wxBrush *arg1 = (wxBrush *) 0 ;
4992 wxColour *arg2 = 0 ;
4993 void *argp1 = 0 ;
4994 int res1 = 0 ;
4995 wxColour temp2 ;
4996 PyObject * obj0 = 0 ;
4997 PyObject * obj1 = 0 ;
4998 char * kwnames[] = {
4999 (char *) "self",(char *) "col", NULL
5000 };
5001
5002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5004 if (!SWIG_IsOK(res1)) {
5005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5006 }
5007 arg1 = reinterpret_cast< wxBrush * >(argp1);
5008 {
5009 arg2 = &temp2;
5010 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5011 }
5012 {
5013 PyThreadState* __tstate = wxPyBeginAllowThreads();
5014 (arg1)->SetColour((wxColour const &)*arg2);
5015 wxPyEndAllowThreads(__tstate);
5016 if (PyErr_Occurred()) SWIG_fail;
5017 }
5018 resultobj = SWIG_Py_Void();
5019 return resultobj;
5020 fail:
5021 return NULL;
5022 }
5023
5024
5025 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5026 PyObject *resultobj = 0;
5027 wxBrush *arg1 = (wxBrush *) 0 ;
5028 int arg2 ;
5029 void *argp1 = 0 ;
5030 int res1 = 0 ;
5031 int val2 ;
5032 int ecode2 = 0 ;
5033 PyObject * obj0 = 0 ;
5034 PyObject * obj1 = 0 ;
5035 char * kwnames[] = {
5036 (char *) "self",(char *) "style", NULL
5037 };
5038
5039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5041 if (!SWIG_IsOK(res1)) {
5042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5043 }
5044 arg1 = reinterpret_cast< wxBrush * >(argp1);
5045 ecode2 = SWIG_AsVal_int(obj1, &val2);
5046 if (!SWIG_IsOK(ecode2)) {
5047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5048 }
5049 arg2 = static_cast< int >(val2);
5050 {
5051 PyThreadState* __tstate = wxPyBeginAllowThreads();
5052 (arg1)->SetStyle(arg2);
5053 wxPyEndAllowThreads(__tstate);
5054 if (PyErr_Occurred()) SWIG_fail;
5055 }
5056 resultobj = SWIG_Py_Void();
5057 return resultobj;
5058 fail:
5059 return NULL;
5060 }
5061
5062
5063 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5064 PyObject *resultobj = 0;
5065 wxBrush *arg1 = (wxBrush *) 0 ;
5066 wxBitmap *arg2 = 0 ;
5067 void *argp1 = 0 ;
5068 int res1 = 0 ;
5069 void *argp2 = 0 ;
5070 int res2 = 0 ;
5071 PyObject * obj0 = 0 ;
5072 PyObject * obj1 = 0 ;
5073 char * kwnames[] = {
5074 (char *) "self",(char *) "stipple", NULL
5075 };
5076
5077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5079 if (!SWIG_IsOK(res1)) {
5080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5081 }
5082 arg1 = reinterpret_cast< wxBrush * >(argp1);
5083 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5084 if (!SWIG_IsOK(res2)) {
5085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5086 }
5087 if (!argp2) {
5088 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5089 }
5090 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5091 {
5092 PyThreadState* __tstate = wxPyBeginAllowThreads();
5093 (arg1)->SetStipple((wxBitmap const &)*arg2);
5094 wxPyEndAllowThreads(__tstate);
5095 if (PyErr_Occurred()) SWIG_fail;
5096 }
5097 resultobj = SWIG_Py_Void();
5098 return resultobj;
5099 fail:
5100 return NULL;
5101 }
5102
5103
5104 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5105 PyObject *resultobj = 0;
5106 wxBrush *arg1 = (wxBrush *) 0 ;
5107 wxColour result;
5108 void *argp1 = 0 ;
5109 int res1 = 0 ;
5110 PyObject *swig_obj[1] ;
5111
5112 if (!args) SWIG_fail;
5113 swig_obj[0] = args;
5114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5115 if (!SWIG_IsOK(res1)) {
5116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5117 }
5118 arg1 = reinterpret_cast< wxBrush * >(argp1);
5119 {
5120 PyThreadState* __tstate = wxPyBeginAllowThreads();
5121 result = ((wxBrush const *)arg1)->GetColour();
5122 wxPyEndAllowThreads(__tstate);
5123 if (PyErr_Occurred()) SWIG_fail;
5124 }
5125 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5126 return resultobj;
5127 fail:
5128 return NULL;
5129 }
5130
5131
5132 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5133 PyObject *resultobj = 0;
5134 wxBrush *arg1 = (wxBrush *) 0 ;
5135 int result;
5136 void *argp1 = 0 ;
5137 int res1 = 0 ;
5138 PyObject *swig_obj[1] ;
5139
5140 if (!args) SWIG_fail;
5141 swig_obj[0] = args;
5142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5143 if (!SWIG_IsOK(res1)) {
5144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5145 }
5146 arg1 = reinterpret_cast< wxBrush * >(argp1);
5147 {
5148 PyThreadState* __tstate = wxPyBeginAllowThreads();
5149 result = (int)((wxBrush const *)arg1)->GetStyle();
5150 wxPyEndAllowThreads(__tstate);
5151 if (PyErr_Occurred()) SWIG_fail;
5152 }
5153 resultobj = SWIG_From_int(static_cast< int >(result));
5154 return resultobj;
5155 fail:
5156 return NULL;
5157 }
5158
5159
5160 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5161 PyObject *resultobj = 0;
5162 wxBrush *arg1 = (wxBrush *) 0 ;
5163 wxBitmap *result = 0 ;
5164 void *argp1 = 0 ;
5165 int res1 = 0 ;
5166 PyObject *swig_obj[1] ;
5167
5168 if (!args) SWIG_fail;
5169 swig_obj[0] = args;
5170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5171 if (!SWIG_IsOK(res1)) {
5172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5173 }
5174 arg1 = reinterpret_cast< wxBrush * >(argp1);
5175 {
5176 PyThreadState* __tstate = wxPyBeginAllowThreads();
5177 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5178 wxPyEndAllowThreads(__tstate);
5179 if (PyErr_Occurred()) SWIG_fail;
5180 }
5181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5182 return resultobj;
5183 fail:
5184 return NULL;
5185 }
5186
5187
5188 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5189 PyObject *resultobj = 0;
5190 wxBrush *arg1 = (wxBrush *) 0 ;
5191 bool result;
5192 void *argp1 = 0 ;
5193 int res1 = 0 ;
5194 PyObject *swig_obj[1] ;
5195
5196 if (!args) SWIG_fail;
5197 swig_obj[0] = args;
5198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5199 if (!SWIG_IsOK(res1)) {
5200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5201 }
5202 arg1 = reinterpret_cast< wxBrush * >(argp1);
5203 {
5204 PyThreadState* __tstate = wxPyBeginAllowThreads();
5205 result = (bool)((wxBrush const *)arg1)->IsHatch();
5206 wxPyEndAllowThreads(__tstate);
5207 if (PyErr_Occurred()) SWIG_fail;
5208 }
5209 {
5210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5211 }
5212 return resultobj;
5213 fail:
5214 return NULL;
5215 }
5216
5217
5218 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5219 PyObject *resultobj = 0;
5220 wxBrush *arg1 = (wxBrush *) 0 ;
5221 bool result;
5222 void *argp1 = 0 ;
5223 int res1 = 0 ;
5224 PyObject *swig_obj[1] ;
5225
5226 if (!args) SWIG_fail;
5227 swig_obj[0] = args;
5228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5229 if (!SWIG_IsOK(res1)) {
5230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5231 }
5232 arg1 = reinterpret_cast< wxBrush * >(argp1);
5233 {
5234 PyThreadState* __tstate = wxPyBeginAllowThreads();
5235 result = (bool)(arg1)->Ok();
5236 wxPyEndAllowThreads(__tstate);
5237 if (PyErr_Occurred()) SWIG_fail;
5238 }
5239 {
5240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5241 }
5242 return resultobj;
5243 fail:
5244 return NULL;
5245 }
5246
5247
5248 SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5249 PyObject *resultobj = 0;
5250 wxBrush *arg1 = (wxBrush *) 0 ;
5251 short result;
5252 void *argp1 = 0 ;
5253 int res1 = 0 ;
5254 PyObject *swig_obj[1] ;
5255
5256 if (!args) SWIG_fail;
5257 swig_obj[0] = args;
5258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5259 if (!SWIG_IsOK(res1)) {
5260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5261 }
5262 arg1 = reinterpret_cast< wxBrush * >(argp1);
5263 {
5264 PyThreadState* __tstate = wxPyBeginAllowThreads();
5265 result = (short)(arg1)->MacGetTheme();
5266 wxPyEndAllowThreads(__tstate);
5267 if (PyErr_Occurred()) SWIG_fail;
5268 }
5269 resultobj = SWIG_From_short(static_cast< short >(result));
5270 return resultobj;
5271 fail:
5272 return NULL;
5273 }
5274
5275
5276 SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5277 PyObject *resultobj = 0;
5278 wxBrush *arg1 = (wxBrush *) 0 ;
5279 short arg2 ;
5280 void *argp1 = 0 ;
5281 int res1 = 0 ;
5282 short val2 ;
5283 int ecode2 = 0 ;
5284 PyObject * obj0 = 0 ;
5285 PyObject * obj1 = 0 ;
5286 char * kwnames[] = {
5287 (char *) "self",(char *) "macThemeBrush", NULL
5288 };
5289
5290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
5291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5292 if (!SWIG_IsOK(res1)) {
5293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5294 }
5295 arg1 = reinterpret_cast< wxBrush * >(argp1);
5296 ecode2 = SWIG_AsVal_short(obj1, &val2);
5297 if (!SWIG_IsOK(ecode2)) {
5298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
5299 }
5300 arg2 = static_cast< short >(val2);
5301 {
5302 PyThreadState* __tstate = wxPyBeginAllowThreads();
5303 (arg1)->MacSetTheme(arg2);
5304 wxPyEndAllowThreads(__tstate);
5305 if (PyErr_Occurred()) SWIG_fail;
5306 }
5307 resultobj = SWIG_Py_Void();
5308 return resultobj;
5309 fail:
5310 return NULL;
5311 }
5312
5313
5314 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5315 PyObject *obj;
5316 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5317 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5318 return SWIG_Py_Void();
5319 }
5320
5321 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5322 return SWIG_Python_InitShadowInstance(args);
5323 }
5324
5325 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5326 PyObject *resultobj = 0;
5327 wxString *arg1 = 0 ;
5328 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5329 wxBitmap *result = 0 ;
5330 bool temp1 = false ;
5331 int val2 ;
5332 int ecode2 = 0 ;
5333 PyObject * obj0 = 0 ;
5334 PyObject * obj1 = 0 ;
5335 char * kwnames[] = {
5336 (char *) "name",(char *) "type", NULL
5337 };
5338
5339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5340 {
5341 arg1 = wxString_in_helper(obj0);
5342 if (arg1 == NULL) SWIG_fail;
5343 temp1 = true;
5344 }
5345 if (obj1) {
5346 ecode2 = SWIG_AsVal_int(obj1, &val2);
5347 if (!SWIG_IsOK(ecode2)) {
5348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5349 }
5350 arg2 = static_cast< wxBitmapType >(val2);
5351 }
5352 {
5353 if (!wxPyCheckForApp()) SWIG_fail;
5354 PyThreadState* __tstate = wxPyBeginAllowThreads();
5355 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5356 wxPyEndAllowThreads(__tstate);
5357 if (PyErr_Occurred()) SWIG_fail;
5358 }
5359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5360 {
5361 if (temp1)
5362 delete arg1;
5363 }
5364 return resultobj;
5365 fail:
5366 {
5367 if (temp1)
5368 delete arg1;
5369 }
5370 return NULL;
5371 }
5372
5373
5374 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5375 PyObject *resultobj = 0;
5376 wxBitmap *arg1 = (wxBitmap *) 0 ;
5377 void *argp1 = 0 ;
5378 int res1 = 0 ;
5379 PyObject *swig_obj[1] ;
5380
5381 if (!args) SWIG_fail;
5382 swig_obj[0] = args;
5383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5384 if (!SWIG_IsOK(res1)) {
5385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5386 }
5387 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5388 {
5389 PyThreadState* __tstate = wxPyBeginAllowThreads();
5390 delete arg1;
5391
5392 wxPyEndAllowThreads(__tstate);
5393 if (PyErr_Occurred()) SWIG_fail;
5394 }
5395 resultobj = SWIG_Py_Void();
5396 return resultobj;
5397 fail:
5398 return NULL;
5399 }
5400
5401
5402 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5403 PyObject *resultobj = 0;
5404 int arg1 ;
5405 int arg2 ;
5406 int arg3 = (int) -1 ;
5407 wxBitmap *result = 0 ;
5408 int val1 ;
5409 int ecode1 = 0 ;
5410 int val2 ;
5411 int ecode2 = 0 ;
5412 int val3 ;
5413 int ecode3 = 0 ;
5414 PyObject * obj0 = 0 ;
5415 PyObject * obj1 = 0 ;
5416 PyObject * obj2 = 0 ;
5417 char * kwnames[] = {
5418 (char *) "width",(char *) "height",(char *) "depth", NULL
5419 };
5420
5421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5422 ecode1 = SWIG_AsVal_int(obj0, &val1);
5423 if (!SWIG_IsOK(ecode1)) {
5424 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5425 }
5426 arg1 = static_cast< int >(val1);
5427 ecode2 = SWIG_AsVal_int(obj1, &val2);
5428 if (!SWIG_IsOK(ecode2)) {
5429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5430 }
5431 arg2 = static_cast< int >(val2);
5432 if (obj2) {
5433 ecode3 = SWIG_AsVal_int(obj2, &val3);
5434 if (!SWIG_IsOK(ecode3)) {
5435 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5436 }
5437 arg3 = static_cast< int >(val3);
5438 }
5439 {
5440 if (!wxPyCheckForApp()) SWIG_fail;
5441 PyThreadState* __tstate = wxPyBeginAllowThreads();
5442 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5443 wxPyEndAllowThreads(__tstate);
5444 if (PyErr_Occurred()) SWIG_fail;
5445 }
5446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5447 return resultobj;
5448 fail:
5449 return NULL;
5450 }
5451
5452
5453 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5454 PyObject *resultobj = 0;
5455 wxIcon *arg1 = 0 ;
5456 wxBitmap *result = 0 ;
5457 void *argp1 = 0 ;
5458 int res1 = 0 ;
5459 PyObject * obj0 = 0 ;
5460 char * kwnames[] = {
5461 (char *) "icon", NULL
5462 };
5463
5464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5465 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5466 if (!SWIG_IsOK(res1)) {
5467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5468 }
5469 if (!argp1) {
5470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5471 }
5472 arg1 = reinterpret_cast< wxIcon * >(argp1);
5473 {
5474 if (!wxPyCheckForApp()) SWIG_fail;
5475 PyThreadState* __tstate = wxPyBeginAllowThreads();
5476 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5477 wxPyEndAllowThreads(__tstate);
5478 if (PyErr_Occurred()) SWIG_fail;
5479 }
5480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5481 return resultobj;
5482 fail:
5483 return NULL;
5484 }
5485
5486
5487 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5488 PyObject *resultobj = 0;
5489 wxImage *arg1 = 0 ;
5490 int arg2 = (int) -1 ;
5491 wxBitmap *result = 0 ;
5492 void *argp1 = 0 ;
5493 int res1 = 0 ;
5494 int val2 ;
5495 int ecode2 = 0 ;
5496 PyObject * obj0 = 0 ;
5497 PyObject * obj1 = 0 ;
5498 char * kwnames[] = {
5499 (char *) "image",(char *) "depth", NULL
5500 };
5501
5502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5503 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5504 if (!SWIG_IsOK(res1)) {
5505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5506 }
5507 if (!argp1) {
5508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5509 }
5510 arg1 = reinterpret_cast< wxImage * >(argp1);
5511 if (obj1) {
5512 ecode2 = SWIG_AsVal_int(obj1, &val2);
5513 if (!SWIG_IsOK(ecode2)) {
5514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5515 }
5516 arg2 = static_cast< int >(val2);
5517 }
5518 {
5519 if (!wxPyCheckForApp()) SWIG_fail;
5520 PyThreadState* __tstate = wxPyBeginAllowThreads();
5521 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5522 wxPyEndAllowThreads(__tstate);
5523 if (PyErr_Occurred()) SWIG_fail;
5524 }
5525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5526 return resultobj;
5527 fail:
5528 return NULL;
5529 }
5530
5531
5532 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5533 PyObject *resultobj = 0;
5534 PyObject *arg1 = (PyObject *) 0 ;
5535 wxBitmap *result = 0 ;
5536 PyObject * obj0 = 0 ;
5537 char * kwnames[] = {
5538 (char *) "listOfStrings", NULL
5539 };
5540
5541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5542 arg1 = obj0;
5543 {
5544 if (!wxPyCheckForApp()) SWIG_fail;
5545 PyThreadState* __tstate = wxPyBeginAllowThreads();
5546 result = (wxBitmap *)new_wxBitmap(arg1);
5547 wxPyEndAllowThreads(__tstate);
5548 if (PyErr_Occurred()) SWIG_fail;
5549 }
5550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5551 return resultobj;
5552 fail:
5553 return NULL;
5554 }
5555
5556
5557 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5558 PyObject *resultobj = 0;
5559 PyObject *arg1 = (PyObject *) 0 ;
5560 int arg2 ;
5561 int arg3 ;
5562 int arg4 = (int) 1 ;
5563 wxBitmap *result = 0 ;
5564 int val2 ;
5565 int ecode2 = 0 ;
5566 int val3 ;
5567 int ecode3 = 0 ;
5568 int val4 ;
5569 int ecode4 = 0 ;
5570 PyObject * obj0 = 0 ;
5571 PyObject * obj1 = 0 ;
5572 PyObject * obj2 = 0 ;
5573 PyObject * obj3 = 0 ;
5574 char * kwnames[] = {
5575 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5576 };
5577
5578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5579 arg1 = obj0;
5580 ecode2 = SWIG_AsVal_int(obj1, &val2);
5581 if (!SWIG_IsOK(ecode2)) {
5582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5583 }
5584 arg2 = static_cast< int >(val2);
5585 ecode3 = SWIG_AsVal_int(obj2, &val3);
5586 if (!SWIG_IsOK(ecode3)) {
5587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5588 }
5589 arg3 = static_cast< int >(val3);
5590 if (obj3) {
5591 ecode4 = SWIG_AsVal_int(obj3, &val4);
5592 if (!SWIG_IsOK(ecode4)) {
5593 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5594 }
5595 arg4 = static_cast< int >(val4);
5596 }
5597 {
5598 if (!wxPyCheckForApp()) SWIG_fail;
5599 PyThreadState* __tstate = wxPyBeginAllowThreads();
5600 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5601 wxPyEndAllowThreads(__tstate);
5602 if (PyErr_Occurred()) SWIG_fail;
5603 }
5604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5605 return resultobj;
5606 fail:
5607 return NULL;
5608 }
5609
5610
5611 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5612 PyObject *resultobj = 0;
5613 wxBitmap *arg1 = (wxBitmap *) 0 ;
5614 bool result;
5615 void *argp1 = 0 ;
5616 int res1 = 0 ;
5617 PyObject *swig_obj[1] ;
5618
5619 if (!args) SWIG_fail;
5620 swig_obj[0] = args;
5621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5622 if (!SWIG_IsOK(res1)) {
5623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5624 }
5625 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5626 {
5627 PyThreadState* __tstate = wxPyBeginAllowThreads();
5628 result = (bool)(arg1)->Ok();
5629 wxPyEndAllowThreads(__tstate);
5630 if (PyErr_Occurred()) SWIG_fail;
5631 }
5632 {
5633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5634 }
5635 return resultobj;
5636 fail:
5637 return NULL;
5638 }
5639
5640
5641 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5642 PyObject *resultobj = 0;
5643 wxBitmap *arg1 = (wxBitmap *) 0 ;
5644 int result;
5645 void *argp1 = 0 ;
5646 int res1 = 0 ;
5647 PyObject *swig_obj[1] ;
5648
5649 if (!args) SWIG_fail;
5650 swig_obj[0] = args;
5651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5652 if (!SWIG_IsOK(res1)) {
5653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5654 }
5655 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5656 {
5657 PyThreadState* __tstate = wxPyBeginAllowThreads();
5658 result = (int)(arg1)->GetWidth();
5659 wxPyEndAllowThreads(__tstate);
5660 if (PyErr_Occurred()) SWIG_fail;
5661 }
5662 resultobj = SWIG_From_int(static_cast< int >(result));
5663 return resultobj;
5664 fail:
5665 return NULL;
5666 }
5667
5668
5669 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5670 PyObject *resultobj = 0;
5671 wxBitmap *arg1 = (wxBitmap *) 0 ;
5672 int result;
5673 void *argp1 = 0 ;
5674 int res1 = 0 ;
5675 PyObject *swig_obj[1] ;
5676
5677 if (!args) SWIG_fail;
5678 swig_obj[0] = args;
5679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5680 if (!SWIG_IsOK(res1)) {
5681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
5682 }
5683 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5684 {
5685 PyThreadState* __tstate = wxPyBeginAllowThreads();
5686 result = (int)(arg1)->GetHeight();
5687 wxPyEndAllowThreads(__tstate);
5688 if (PyErr_Occurred()) SWIG_fail;
5689 }
5690 resultobj = SWIG_From_int(static_cast< int >(result));
5691 return resultobj;
5692 fail:
5693 return NULL;
5694 }
5695
5696
5697 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5698 PyObject *resultobj = 0;
5699 wxBitmap *arg1 = (wxBitmap *) 0 ;
5700 int result;
5701 void *argp1 = 0 ;
5702 int res1 = 0 ;
5703 PyObject *swig_obj[1] ;
5704
5705 if (!args) SWIG_fail;
5706 swig_obj[0] = args;
5707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5708 if (!SWIG_IsOK(res1)) {
5709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5710 }
5711 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5712 {
5713 PyThreadState* __tstate = wxPyBeginAllowThreads();
5714 result = (int)(arg1)->GetDepth();
5715 wxPyEndAllowThreads(__tstate);
5716 if (PyErr_Occurred()) SWIG_fail;
5717 }
5718 resultobj = SWIG_From_int(static_cast< int >(result));
5719 return resultobj;
5720 fail:
5721 return NULL;
5722 }
5723
5724
5725 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5726 PyObject *resultobj = 0;
5727 wxBitmap *arg1 = (wxBitmap *) 0 ;
5728 wxSize result;
5729 void *argp1 = 0 ;
5730 int res1 = 0 ;
5731 PyObject *swig_obj[1] ;
5732
5733 if (!args) SWIG_fail;
5734 swig_obj[0] = args;
5735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5736 if (!SWIG_IsOK(res1)) {
5737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
5738 }
5739 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5740 {
5741 PyThreadState* __tstate = wxPyBeginAllowThreads();
5742 result = wxBitmap_GetSize(arg1);
5743 wxPyEndAllowThreads(__tstate);
5744 if (PyErr_Occurred()) SWIG_fail;
5745 }
5746 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
5747 return resultobj;
5748 fail:
5749 return NULL;
5750 }
5751
5752
5753 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5754 PyObject *resultobj = 0;
5755 wxBitmap *arg1 = (wxBitmap *) 0 ;
5756 SwigValueWrapper<wxImage > result;
5757 void *argp1 = 0 ;
5758 int res1 = 0 ;
5759 PyObject *swig_obj[1] ;
5760
5761 if (!args) SWIG_fail;
5762 swig_obj[0] = args;
5763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5764 if (!SWIG_IsOK(res1)) {
5765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5766 }
5767 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5768 {
5769 PyThreadState* __tstate = wxPyBeginAllowThreads();
5770 result = ((wxBitmap const *)arg1)->ConvertToImage();
5771 wxPyEndAllowThreads(__tstate);
5772 if (PyErr_Occurred()) SWIG_fail;
5773 }
5774 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
5775 return resultobj;
5776 fail:
5777 return NULL;
5778 }
5779
5780
5781 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5782 PyObject *resultobj = 0;
5783 wxBitmap *arg1 = (wxBitmap *) 0 ;
5784 wxMask *result = 0 ;
5785 void *argp1 = 0 ;
5786 int res1 = 0 ;
5787 PyObject *swig_obj[1] ;
5788
5789 if (!args) SWIG_fail;
5790 swig_obj[0] = args;
5791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5792 if (!SWIG_IsOK(res1)) {
5793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5794 }
5795 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5796 {
5797 PyThreadState* __tstate = wxPyBeginAllowThreads();
5798 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
5799 wxPyEndAllowThreads(__tstate);
5800 if (PyErr_Occurred()) SWIG_fail;
5801 }
5802 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
5803 return resultobj;
5804 fail:
5805 return NULL;
5806 }
5807
5808
5809 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5810 PyObject *resultobj = 0;
5811 wxBitmap *arg1 = (wxBitmap *) 0 ;
5812 wxMask *arg2 = (wxMask *) 0 ;
5813 void *argp1 = 0 ;
5814 int res1 = 0 ;
5815 int res2 = 0 ;
5816 PyObject * obj0 = 0 ;
5817 PyObject * obj1 = 0 ;
5818 char * kwnames[] = {
5819 (char *) "self",(char *) "mask", NULL
5820 };
5821
5822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
5823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5824 if (!SWIG_IsOK(res1)) {
5825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
5826 }
5827 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5828 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
5829 if (!SWIG_IsOK(res2)) {
5830 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
5831 }
5832 {
5833 PyThreadState* __tstate = wxPyBeginAllowThreads();
5834 (arg1)->SetMask(arg2);
5835 wxPyEndAllowThreads(__tstate);
5836 if (PyErr_Occurred()) SWIG_fail;
5837 }
5838 resultobj = SWIG_Py_Void();
5839 return resultobj;
5840 fail:
5841 return NULL;
5842 }
5843
5844
5845 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5846 PyObject *resultobj = 0;
5847 wxBitmap *arg1 = (wxBitmap *) 0 ;
5848 wxColour *arg2 = 0 ;
5849 void *argp1 = 0 ;
5850 int res1 = 0 ;
5851 wxColour temp2 ;
5852 PyObject * obj0 = 0 ;
5853 PyObject * obj1 = 0 ;
5854 char * kwnames[] = {
5855 (char *) "self",(char *) "colour", NULL
5856 };
5857
5858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
5859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5860 if (!SWIG_IsOK(res1)) {
5861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
5862 }
5863 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5864 {
5865 arg2 = &temp2;
5866 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5867 }
5868 {
5869 PyThreadState* __tstate = wxPyBeginAllowThreads();
5870 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
5871 wxPyEndAllowThreads(__tstate);
5872 if (PyErr_Occurred()) SWIG_fail;
5873 }
5874 resultobj = SWIG_Py_Void();
5875 return resultobj;
5876 fail:
5877 return NULL;
5878 }
5879
5880
5881 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5882 PyObject *resultobj = 0;
5883 wxBitmap *arg1 = (wxBitmap *) 0 ;
5884 wxRect *arg2 = 0 ;
5885 SwigValueWrapper<wxBitmap > result;
5886 void *argp1 = 0 ;
5887 int res1 = 0 ;
5888 wxRect temp2 ;
5889 PyObject * obj0 = 0 ;
5890 PyObject * obj1 = 0 ;
5891 char * kwnames[] = {
5892 (char *) "self",(char *) "rect", NULL
5893 };
5894
5895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5897 if (!SWIG_IsOK(res1)) {
5898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5899 }
5900 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5901 {
5902 arg2 = &temp2;
5903 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5904 }
5905 {
5906 PyThreadState* __tstate = wxPyBeginAllowThreads();
5907 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
5908 wxPyEndAllowThreads(__tstate);
5909 if (PyErr_Occurred()) SWIG_fail;
5910 }
5911 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5912 return resultobj;
5913 fail:
5914 return NULL;
5915 }
5916
5917
5918 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5919 PyObject *resultobj = 0;
5920 wxBitmap *arg1 = (wxBitmap *) 0 ;
5921 wxString *arg2 = 0 ;
5922 wxBitmapType arg3 ;
5923 wxPalette *arg4 = (wxPalette *) NULL ;
5924 bool result;
5925 void *argp1 = 0 ;
5926 int res1 = 0 ;
5927 bool temp2 = false ;
5928 int val3 ;
5929 int ecode3 = 0 ;
5930 void *argp4 = 0 ;
5931 int res4 = 0 ;
5932 PyObject * obj0 = 0 ;
5933 PyObject * obj1 = 0 ;
5934 PyObject * obj2 = 0 ;
5935 PyObject * obj3 = 0 ;
5936 char * kwnames[] = {
5937 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
5938 };
5939
5940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5942 if (!SWIG_IsOK(res1)) {
5943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5944 }
5945 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5946 {
5947 arg2 = wxString_in_helper(obj1);
5948 if (arg2 == NULL) SWIG_fail;
5949 temp2 = true;
5950 }
5951 ecode3 = SWIG_AsVal_int(obj2, &val3);
5952 if (!SWIG_IsOK(ecode3)) {
5953 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5954 }
5955 arg3 = static_cast< wxBitmapType >(val3);
5956 if (obj3) {
5957 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
5958 if (!SWIG_IsOK(res4)) {
5959 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
5960 }
5961 arg4 = reinterpret_cast< wxPalette * >(argp4);
5962 }
5963 {
5964 PyThreadState* __tstate = wxPyBeginAllowThreads();
5965 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
5966 wxPyEndAllowThreads(__tstate);
5967 if (PyErr_Occurred()) SWIG_fail;
5968 }
5969 {
5970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5971 }
5972 {
5973 if (temp2)
5974 delete arg2;
5975 }
5976 return resultobj;
5977 fail:
5978 {
5979 if (temp2)
5980 delete arg2;
5981 }
5982 return NULL;
5983 }
5984
5985
5986 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5987 PyObject *resultobj = 0;
5988 wxBitmap *arg1 = (wxBitmap *) 0 ;
5989 wxString *arg2 = 0 ;
5990 wxBitmapType arg3 ;
5991 bool result;
5992 void *argp1 = 0 ;
5993 int res1 = 0 ;
5994 bool temp2 = false ;
5995 int val3 ;
5996 int ecode3 = 0 ;
5997 PyObject * obj0 = 0 ;
5998 PyObject * obj1 = 0 ;
5999 PyObject * obj2 = 0 ;
6000 char * kwnames[] = {
6001 (char *) "self",(char *) "name",(char *) "type", NULL
6002 };
6003
6004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6006 if (!SWIG_IsOK(res1)) {
6007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6008 }
6009 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6010 {
6011 arg2 = wxString_in_helper(obj1);
6012 if (arg2 == NULL) SWIG_fail;
6013 temp2 = true;
6014 }
6015 ecode3 = SWIG_AsVal_int(obj2, &val3);
6016 if (!SWIG_IsOK(ecode3)) {
6017 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6018 }
6019 arg3 = static_cast< wxBitmapType >(val3);
6020 {
6021 PyThreadState* __tstate = wxPyBeginAllowThreads();
6022 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6023 wxPyEndAllowThreads(__tstate);
6024 if (PyErr_Occurred()) SWIG_fail;
6025 }
6026 {
6027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6028 }
6029 {
6030 if (temp2)
6031 delete arg2;
6032 }
6033 return resultobj;
6034 fail:
6035 {
6036 if (temp2)
6037 delete arg2;
6038 }
6039 return NULL;
6040 }
6041
6042
6043 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6044 PyObject *resultobj = 0;
6045 wxBitmap *arg1 = (wxBitmap *) 0 ;
6046 wxPalette *result = 0 ;
6047 void *argp1 = 0 ;
6048 int res1 = 0 ;
6049 PyObject *swig_obj[1] ;
6050
6051 if (!args) SWIG_fail;
6052 swig_obj[0] = args;
6053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6054 if (!SWIG_IsOK(res1)) {
6055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6056 }
6057 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6058 {
6059 PyThreadState* __tstate = wxPyBeginAllowThreads();
6060 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6061 wxPyEndAllowThreads(__tstate);
6062 if (PyErr_Occurred()) SWIG_fail;
6063 }
6064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6065 return resultobj;
6066 fail:
6067 return NULL;
6068 }
6069
6070
6071 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6072 PyObject *resultobj = 0;
6073 wxBitmap *arg1 = (wxBitmap *) 0 ;
6074 wxIcon *arg2 = 0 ;
6075 bool result;
6076 void *argp1 = 0 ;
6077 int res1 = 0 ;
6078 void *argp2 = 0 ;
6079 int res2 = 0 ;
6080 PyObject * obj0 = 0 ;
6081 PyObject * obj1 = 0 ;
6082 char * kwnames[] = {
6083 (char *) "self",(char *) "icon", NULL
6084 };
6085
6086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6088 if (!SWIG_IsOK(res1)) {
6089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6090 }
6091 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6092 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6093 if (!SWIG_IsOK(res2)) {
6094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6095 }
6096 if (!argp2) {
6097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6098 }
6099 arg2 = reinterpret_cast< wxIcon * >(argp2);
6100 {
6101 PyThreadState* __tstate = wxPyBeginAllowThreads();
6102 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6103 wxPyEndAllowThreads(__tstate);
6104 if (PyErr_Occurred()) SWIG_fail;
6105 }
6106 {
6107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6108 }
6109 return resultobj;
6110 fail:
6111 return NULL;
6112 }
6113
6114
6115 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6116 PyObject *resultobj = 0;
6117 wxBitmap *arg1 = (wxBitmap *) 0 ;
6118 int arg2 ;
6119 void *argp1 = 0 ;
6120 int res1 = 0 ;
6121 int val2 ;
6122 int ecode2 = 0 ;
6123 PyObject * obj0 = 0 ;
6124 PyObject * obj1 = 0 ;
6125 char * kwnames[] = {
6126 (char *) "self",(char *) "height", NULL
6127 };
6128
6129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6131 if (!SWIG_IsOK(res1)) {
6132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6133 }
6134 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6135 ecode2 = SWIG_AsVal_int(obj1, &val2);
6136 if (!SWIG_IsOK(ecode2)) {
6137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6138 }
6139 arg2 = static_cast< int >(val2);
6140 {
6141 PyThreadState* __tstate = wxPyBeginAllowThreads();
6142 (arg1)->SetHeight(arg2);
6143 wxPyEndAllowThreads(__tstate);
6144 if (PyErr_Occurred()) SWIG_fail;
6145 }
6146 resultobj = SWIG_Py_Void();
6147 return resultobj;
6148 fail:
6149 return NULL;
6150 }
6151
6152
6153 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6154 PyObject *resultobj = 0;
6155 wxBitmap *arg1 = (wxBitmap *) 0 ;
6156 int arg2 ;
6157 void *argp1 = 0 ;
6158 int res1 = 0 ;
6159 int val2 ;
6160 int ecode2 = 0 ;
6161 PyObject * obj0 = 0 ;
6162 PyObject * obj1 = 0 ;
6163 char * kwnames[] = {
6164 (char *) "self",(char *) "width", NULL
6165 };
6166
6167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6169 if (!SWIG_IsOK(res1)) {
6170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6171 }
6172 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6173 ecode2 = SWIG_AsVal_int(obj1, &val2);
6174 if (!SWIG_IsOK(ecode2)) {
6175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6176 }
6177 arg2 = static_cast< int >(val2);
6178 {
6179 PyThreadState* __tstate = wxPyBeginAllowThreads();
6180 (arg1)->SetWidth(arg2);
6181 wxPyEndAllowThreads(__tstate);
6182 if (PyErr_Occurred()) SWIG_fail;
6183 }
6184 resultobj = SWIG_Py_Void();
6185 return resultobj;
6186 fail:
6187 return NULL;
6188 }
6189
6190
6191 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6192 PyObject *resultobj = 0;
6193 wxBitmap *arg1 = (wxBitmap *) 0 ;
6194 int arg2 ;
6195 void *argp1 = 0 ;
6196 int res1 = 0 ;
6197 int val2 ;
6198 int ecode2 = 0 ;
6199 PyObject * obj0 = 0 ;
6200 PyObject * obj1 = 0 ;
6201 char * kwnames[] = {
6202 (char *) "self",(char *) "depth", NULL
6203 };
6204
6205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6207 if (!SWIG_IsOK(res1)) {
6208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6209 }
6210 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6211 ecode2 = SWIG_AsVal_int(obj1, &val2);
6212 if (!SWIG_IsOK(ecode2)) {
6213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6214 }
6215 arg2 = static_cast< int >(val2);
6216 {
6217 PyThreadState* __tstate = wxPyBeginAllowThreads();
6218 (arg1)->SetDepth(arg2);
6219 wxPyEndAllowThreads(__tstate);
6220 if (PyErr_Occurred()) SWIG_fail;
6221 }
6222 resultobj = SWIG_Py_Void();
6223 return resultobj;
6224 fail:
6225 return NULL;
6226 }
6227
6228
6229 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6230 PyObject *resultobj = 0;
6231 wxBitmap *arg1 = (wxBitmap *) 0 ;
6232 wxSize *arg2 = 0 ;
6233 void *argp1 = 0 ;
6234 int res1 = 0 ;
6235 wxSize temp2 ;
6236 PyObject * obj0 = 0 ;
6237 PyObject * obj1 = 0 ;
6238 char * kwnames[] = {
6239 (char *) "self",(char *) "size", NULL
6240 };
6241
6242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6244 if (!SWIG_IsOK(res1)) {
6245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6246 }
6247 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6248 {
6249 arg2 = &temp2;
6250 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6251 }
6252 {
6253 PyThreadState* __tstate = wxPyBeginAllowThreads();
6254 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6255 wxPyEndAllowThreads(__tstate);
6256 if (PyErr_Occurred()) SWIG_fail;
6257 }
6258 resultobj = SWIG_Py_Void();
6259 return resultobj;
6260 fail:
6261 return NULL;
6262 }
6263
6264
6265 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6266 PyObject *resultobj = 0;
6267 wxBitmap *arg1 = (wxBitmap *) 0 ;
6268 wxBitmap *arg2 = (wxBitmap *) 0 ;
6269 bool result;
6270 void *argp1 = 0 ;
6271 int res1 = 0 ;
6272 void *argp2 = 0 ;
6273 int res2 = 0 ;
6274 PyObject * obj0 = 0 ;
6275 PyObject * obj1 = 0 ;
6276 char * kwnames[] = {
6277 (char *) "self",(char *) "other", NULL
6278 };
6279
6280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6282 if (!SWIG_IsOK(res1)) {
6283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6284 }
6285 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6286 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6287 if (!SWIG_IsOK(res2)) {
6288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6289 }
6290 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6291 {
6292 PyThreadState* __tstate = wxPyBeginAllowThreads();
6293 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6294 wxPyEndAllowThreads(__tstate);
6295 if (PyErr_Occurred()) SWIG_fail;
6296 }
6297 {
6298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6299 }
6300 return resultobj;
6301 fail:
6302 return NULL;
6303 }
6304
6305
6306 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6307 PyObject *resultobj = 0;
6308 wxBitmap *arg1 = (wxBitmap *) 0 ;
6309 wxBitmap *arg2 = (wxBitmap *) 0 ;
6310 bool result;
6311 void *argp1 = 0 ;
6312 int res1 = 0 ;
6313 void *argp2 = 0 ;
6314 int res2 = 0 ;
6315 PyObject * obj0 = 0 ;
6316 PyObject * obj1 = 0 ;
6317 char * kwnames[] = {
6318 (char *) "self",(char *) "other", NULL
6319 };
6320
6321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6323 if (!SWIG_IsOK(res1)) {
6324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6325 }
6326 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6327 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6328 if (!SWIG_IsOK(res2)) {
6329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6330 }
6331 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6332 {
6333 PyThreadState* __tstate = wxPyBeginAllowThreads();
6334 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6335 wxPyEndAllowThreads(__tstate);
6336 if (PyErr_Occurred()) SWIG_fail;
6337 }
6338 {
6339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6340 }
6341 return resultobj;
6342 fail:
6343 return NULL;
6344 }
6345
6346
6347 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6348 PyObject *obj;
6349 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6350 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6351 return SWIG_Py_Void();
6352 }
6353
6354 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6355 return SWIG_Python_InitShadowInstance(args);
6356 }
6357
6358 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6359 PyObject *resultobj = 0;
6360 wxBitmap *arg1 = 0 ;
6361 wxColour const &arg2_defvalue = wxNullColour ;
6362 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6363 wxMask *result = 0 ;
6364 void *argp1 = 0 ;
6365 int res1 = 0 ;
6366 wxColour temp2 ;
6367 PyObject * obj0 = 0 ;
6368 PyObject * obj1 = 0 ;
6369 char * kwnames[] = {
6370 (char *) "bitmap",(char *) "colour", NULL
6371 };
6372
6373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
6374 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6375 if (!SWIG_IsOK(res1)) {
6376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6377 }
6378 if (!argp1) {
6379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6380 }
6381 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6382 if (obj1) {
6383 {
6384 arg2 = &temp2;
6385 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6386 }
6387 }
6388 {
6389 if (!wxPyCheckForApp()) SWIG_fail;
6390 PyThreadState* __tstate = wxPyBeginAllowThreads();
6391 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
6392 wxPyEndAllowThreads(__tstate);
6393 if (PyErr_Occurred()) SWIG_fail;
6394 }
6395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
6396 return resultobj;
6397 fail:
6398 return NULL;
6399 }
6400
6401
6402 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6403 PyObject *resultobj = 0;
6404 wxMask *arg1 = (wxMask *) 0 ;
6405 void *argp1 = 0 ;
6406 int res1 = 0 ;
6407 PyObject *swig_obj[1] ;
6408
6409 if (!args) SWIG_fail;
6410 swig_obj[0] = args;
6411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6412 if (!SWIG_IsOK(res1)) {
6413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
6414 }
6415 arg1 = reinterpret_cast< wxMask * >(argp1);
6416 {
6417 PyThreadState* __tstate = wxPyBeginAllowThreads();
6418 delete arg1;
6419
6420 wxPyEndAllowThreads(__tstate);
6421 if (PyErr_Occurred()) SWIG_fail;
6422 }
6423 resultobj = SWIG_Py_Void();
6424 return resultobj;
6425 fail:
6426 return NULL;
6427 }
6428
6429
6430 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6431 PyObject *obj;
6432 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6433 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
6434 return SWIG_Py_Void();
6435 }
6436
6437 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6438 return SWIG_Python_InitShadowInstance(args);
6439 }
6440
6441 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6442 PyObject *resultobj = 0;
6443 wxString *arg1 = 0 ;
6444 wxBitmapType arg2 ;
6445 int arg3 = (int) -1 ;
6446 int arg4 = (int) -1 ;
6447 wxIcon *result = 0 ;
6448 bool temp1 = false ;
6449 int val2 ;
6450 int ecode2 = 0 ;
6451 int val3 ;
6452 int ecode3 = 0 ;
6453 int val4 ;
6454 int ecode4 = 0 ;
6455 PyObject * obj0 = 0 ;
6456 PyObject * obj1 = 0 ;
6457 PyObject * obj2 = 0 ;
6458 PyObject * obj3 = 0 ;
6459 char * kwnames[] = {
6460 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
6461 };
6462
6463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6464 {
6465 arg1 = wxString_in_helper(obj0);
6466 if (arg1 == NULL) SWIG_fail;
6467 temp1 = true;
6468 }
6469 ecode2 = SWIG_AsVal_int(obj1, &val2);
6470 if (!SWIG_IsOK(ecode2)) {
6471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
6472 }
6473 arg2 = static_cast< wxBitmapType >(val2);
6474 if (obj2) {
6475 ecode3 = SWIG_AsVal_int(obj2, &val3);
6476 if (!SWIG_IsOK(ecode3)) {
6477 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
6478 }
6479 arg3 = static_cast< int >(val3);
6480 }
6481 if (obj3) {
6482 ecode4 = SWIG_AsVal_int(obj3, &val4);
6483 if (!SWIG_IsOK(ecode4)) {
6484 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
6485 }
6486 arg4 = static_cast< int >(val4);
6487 }
6488 {
6489 if (!wxPyCheckForApp()) SWIG_fail;
6490 PyThreadState* __tstate = wxPyBeginAllowThreads();
6491 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
6492 wxPyEndAllowThreads(__tstate);
6493 if (PyErr_Occurred()) SWIG_fail;
6494 }
6495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
6496 {
6497 if (temp1)
6498 delete arg1;
6499 }
6500 return resultobj;
6501 fail:
6502 {
6503 if (temp1)
6504 delete arg1;
6505 }
6506 return NULL;
6507 }
6508
6509
6510 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6511 PyObject *resultobj = 0;
6512 wxIcon *arg1 = (wxIcon *) 0 ;
6513 void *argp1 = 0 ;
6514 int res1 = 0 ;
6515 PyObject *swig_obj[1] ;
6516
6517 if (!args) SWIG_fail;
6518 swig_obj[0] = args;
6519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
6520 if (!SWIG_IsOK(res1)) {
6521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
6522 }
6523 arg1 = reinterpret_cast< wxIcon * >(argp1);
6524 {
6525 PyThreadState* __tstate = wxPyBeginAllowThreads();
6526 delete arg1;
6527
6528 wxPyEndAllowThreads(__tstate);
6529 if (PyErr_Occurred()) SWIG_fail;
6530 }
6531 resultobj = SWIG_Py_Void();
6532 return resultobj;
6533 fail:
6534 return NULL;
6535 }
6536
6537
6538 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6539 PyObject *resultobj = 0;
6540 wxIcon *result = 0 ;
6541
6542 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
6543 {
6544 if (!wxPyCheckForApp()) SWIG_fail;
6545 PyThreadState* __tstate = wxPyBeginAllowThreads();
6546 result = (wxIcon *)new wxIcon();
6547 wxPyEndAllowThreads(__tstate);
6548 if (PyErr_Occurred()) SWIG_fail;
6549 }
6550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6551 return resultobj;
6552 fail:
6553 return NULL;
6554 }
6555
6556
6557 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6558 PyObject *resultobj = 0;
6559 wxIconLocation *arg1 = 0 ;
6560 wxIcon *result = 0 ;
6561 void *argp1 = 0 ;
6562 int res1 = 0 ;
6563 PyObject * obj0 = 0 ;
6564 char * kwnames[] = {
6565 (char *) "loc", NULL
6566 };
6567
6568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
6569 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
6570 if (!SWIG_IsOK(res1)) {
6571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6572 }
6573 if (!argp1) {
6574 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6575 }
6576 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6577 {
6578 if (!wxPyCheckForApp()) SWIG_fail;
6579 PyThreadState* __tstate = wxPyBeginAllowThreads();
6580 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
6581 wxPyEndAllowThreads(__tstate);
6582 if (PyErr_Occurred()) SWIG_fail;
6583 }
6584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6585 return resultobj;
6586 fail:
6587 return NULL;
6588 }
6589
6590
6591 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6592 PyObject *resultobj = 0;
6593 wxBitmap *arg1 = 0 ;
6594 wxIcon *result = 0 ;
6595 void *argp1 = 0 ;
6596 int res1 = 0 ;
6597 PyObject * obj0 = 0 ;
6598 char * kwnames[] = {
6599 (char *) "bmp", NULL
6600 };
6601
6602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
6603 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6604 if (!SWIG_IsOK(res1)) {
6605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6606 }
6607 if (!argp1) {
6608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6609 }
6610 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6611 {
6612 if (!wxPyCheckForApp()) SWIG_fail;
6613 PyThreadState* __tstate = wxPyBeginAllowThreads();
6614 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
6615 wxPyEndAllowThreads(__tstate);
6616 if (PyErr_Occurred()) SWIG_fail;
6617 }
6618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6619 return resultobj;
6620 fail:
6621 return NULL;
6622 }
6623
6624
6625 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6626 PyObject *resultobj = 0;
6627 PyObject *arg1 = (PyObject *) 0 ;
6628 wxIcon *result = 0 ;
6629 PyObject * obj0 = 0 ;
6630 char * kwnames[] = {
6631 (char *) "listOfStrings", NULL
6632 };
6633
6634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
6635 arg1 = obj0;
6636 {
6637 if (!wxPyCheckForApp()) SWIG_fail;
6638 PyThreadState* __tstate = wxPyBeginAllowThreads();
6639 result = (wxIcon *)new_wxIcon(arg1);
6640 wxPyEndAllowThreads(__tstate);
6641 if (PyErr_Occurred()) SWIG_fail;
6642 }
6643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6644 return resultobj;
6645 fail:
6646 return NULL;
6647 }
6648
6649
6650 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6651 PyObject *resultobj = 0;
6652 wxIcon *arg1 = (wxIcon *) 0 ;
6653 bool result;
6654 void *argp1 = 0 ;
6655 int res1 = 0 ;
6656 PyObject *swig_obj[1] ;
6657
6658 if (!args) SWIG_fail;
6659 swig_obj[0] = args;
6660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6661 if (!SWIG_IsOK(res1)) {
6662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
6663 }
6664 arg1 = reinterpret_cast< wxIcon * >(argp1);
6665 {
6666 PyThreadState* __tstate = wxPyBeginAllowThreads();
6667 result = (bool)(arg1)->Ok();
6668 wxPyEndAllowThreads(__tstate);
6669 if (PyErr_Occurred()) SWIG_fail;
6670 }
6671 {
6672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6673 }
6674 return resultobj;
6675 fail:
6676 return NULL;
6677 }
6678
6679
6680 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6681 PyObject *resultobj = 0;
6682 wxIcon *arg1 = (wxIcon *) 0 ;
6683 int result;
6684 void *argp1 = 0 ;
6685 int res1 = 0 ;
6686 PyObject *swig_obj[1] ;
6687
6688 if (!args) SWIG_fail;
6689 swig_obj[0] = args;
6690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6691 if (!SWIG_IsOK(res1)) {
6692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6693 }
6694 arg1 = reinterpret_cast< wxIcon * >(argp1);
6695 {
6696 PyThreadState* __tstate = wxPyBeginAllowThreads();
6697 result = (int)(arg1)->GetWidth();
6698 wxPyEndAllowThreads(__tstate);
6699 if (PyErr_Occurred()) SWIG_fail;
6700 }
6701 resultobj = SWIG_From_int(static_cast< int >(result));
6702 return resultobj;
6703 fail:
6704 return NULL;
6705 }
6706
6707
6708 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6709 PyObject *resultobj = 0;
6710 wxIcon *arg1 = (wxIcon *) 0 ;
6711 int result;
6712 void *argp1 = 0 ;
6713 int res1 = 0 ;
6714 PyObject *swig_obj[1] ;
6715
6716 if (!args) SWIG_fail;
6717 swig_obj[0] = args;
6718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6719 if (!SWIG_IsOK(res1)) {
6720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6721 }
6722 arg1 = reinterpret_cast< wxIcon * >(argp1);
6723 {
6724 PyThreadState* __tstate = wxPyBeginAllowThreads();
6725 result = (int)(arg1)->GetHeight();
6726 wxPyEndAllowThreads(__tstate);
6727 if (PyErr_Occurred()) SWIG_fail;
6728 }
6729 resultobj = SWIG_From_int(static_cast< int >(result));
6730 return resultobj;
6731 fail:
6732 return NULL;
6733 }
6734
6735
6736 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6737 PyObject *resultobj = 0;
6738 wxIcon *arg1 = (wxIcon *) 0 ;
6739 int result;
6740 void *argp1 = 0 ;
6741 int res1 = 0 ;
6742 PyObject *swig_obj[1] ;
6743
6744 if (!args) SWIG_fail;
6745 swig_obj[0] = args;
6746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6747 if (!SWIG_IsOK(res1)) {
6748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6749 }
6750 arg1 = reinterpret_cast< wxIcon * >(argp1);
6751 {
6752 PyThreadState* __tstate = wxPyBeginAllowThreads();
6753 result = (int)(arg1)->GetDepth();
6754 wxPyEndAllowThreads(__tstate);
6755 if (PyErr_Occurred()) SWIG_fail;
6756 }
6757 resultobj = SWIG_From_int(static_cast< int >(result));
6758 return resultobj;
6759 fail:
6760 return NULL;
6761 }
6762
6763
6764 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6765 PyObject *resultobj = 0;
6766 wxIcon *arg1 = (wxIcon *) 0 ;
6767 int arg2 ;
6768 void *argp1 = 0 ;
6769 int res1 = 0 ;
6770 int val2 ;
6771 int ecode2 = 0 ;
6772 PyObject * obj0 = 0 ;
6773 PyObject * obj1 = 0 ;
6774 char * kwnames[] = {
6775 (char *) "self",(char *) "w", NULL
6776 };
6777
6778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6780 if (!SWIG_IsOK(res1)) {
6781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6782 }
6783 arg1 = reinterpret_cast< wxIcon * >(argp1);
6784 ecode2 = SWIG_AsVal_int(obj1, &val2);
6785 if (!SWIG_IsOK(ecode2)) {
6786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
6787 }
6788 arg2 = static_cast< int >(val2);
6789 {
6790 PyThreadState* __tstate = wxPyBeginAllowThreads();
6791 (arg1)->SetWidth(arg2);
6792 wxPyEndAllowThreads(__tstate);
6793 if (PyErr_Occurred()) SWIG_fail;
6794 }
6795 resultobj = SWIG_Py_Void();
6796 return resultobj;
6797 fail:
6798 return NULL;
6799 }
6800
6801
6802 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6803 PyObject *resultobj = 0;
6804 wxIcon *arg1 = (wxIcon *) 0 ;
6805 int arg2 ;
6806 void *argp1 = 0 ;
6807 int res1 = 0 ;
6808 int val2 ;
6809 int ecode2 = 0 ;
6810 PyObject * obj0 = 0 ;
6811 PyObject * obj1 = 0 ;
6812 char * kwnames[] = {
6813 (char *) "self",(char *) "h", NULL
6814 };
6815
6816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6818 if (!SWIG_IsOK(res1)) {
6819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6820 }
6821 arg1 = reinterpret_cast< wxIcon * >(argp1);
6822 ecode2 = SWIG_AsVal_int(obj1, &val2);
6823 if (!SWIG_IsOK(ecode2)) {
6824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
6825 }
6826 arg2 = static_cast< int >(val2);
6827 {
6828 PyThreadState* __tstate = wxPyBeginAllowThreads();
6829 (arg1)->SetHeight(arg2);
6830 wxPyEndAllowThreads(__tstate);
6831 if (PyErr_Occurred()) SWIG_fail;
6832 }
6833 resultobj = SWIG_Py_Void();
6834 return resultobj;
6835 fail:
6836 return NULL;
6837 }
6838
6839
6840 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6841 PyObject *resultobj = 0;
6842 wxIcon *arg1 = (wxIcon *) 0 ;
6843 int arg2 ;
6844 void *argp1 = 0 ;
6845 int res1 = 0 ;
6846 int val2 ;
6847 int ecode2 = 0 ;
6848 PyObject * obj0 = 0 ;
6849 PyObject * obj1 = 0 ;
6850 char * kwnames[] = {
6851 (char *) "self",(char *) "d", NULL
6852 };
6853
6854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6856 if (!SWIG_IsOK(res1)) {
6857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6858 }
6859 arg1 = reinterpret_cast< wxIcon * >(argp1);
6860 ecode2 = SWIG_AsVal_int(obj1, &val2);
6861 if (!SWIG_IsOK(ecode2)) {
6862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
6863 }
6864 arg2 = static_cast< int >(val2);
6865 {
6866 PyThreadState* __tstate = wxPyBeginAllowThreads();
6867 (arg1)->SetDepth(arg2);
6868 wxPyEndAllowThreads(__tstate);
6869 if (PyErr_Occurred()) SWIG_fail;
6870 }
6871 resultobj = SWIG_Py_Void();
6872 return resultobj;
6873 fail:
6874 return NULL;
6875 }
6876
6877
6878 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6879 PyObject *resultobj = 0;
6880 wxIcon *arg1 = (wxIcon *) 0 ;
6881 wxBitmap *arg2 = 0 ;
6882 void *argp1 = 0 ;
6883 int res1 = 0 ;
6884 void *argp2 = 0 ;
6885 int res2 = 0 ;
6886 PyObject * obj0 = 0 ;
6887 PyObject * obj1 = 0 ;
6888 char * kwnames[] = {
6889 (char *) "self",(char *) "bmp", NULL
6890 };
6891
6892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6894 if (!SWIG_IsOK(res1)) {
6895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
6896 }
6897 arg1 = reinterpret_cast< wxIcon * >(argp1);
6898 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
6899 if (!SWIG_IsOK(res2)) {
6900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6901 }
6902 if (!argp2) {
6903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6904 }
6905 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6906 {
6907 PyThreadState* __tstate = wxPyBeginAllowThreads();
6908 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
6909 wxPyEndAllowThreads(__tstate);
6910 if (PyErr_Occurred()) SWIG_fail;
6911 }
6912 resultobj = SWIG_Py_Void();
6913 return resultobj;
6914 fail:
6915 return NULL;
6916 }
6917
6918
6919 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6920 PyObject *obj;
6921 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6922 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
6923 return SWIG_Py_Void();
6924 }
6925
6926 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6927 return SWIG_Python_InitShadowInstance(args);
6928 }
6929
6930 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6931 PyObject *resultobj = 0;
6932 wxString *arg1 = (wxString *) &wxPyEmptyString ;
6933 int arg2 = (int) 0 ;
6934 wxIconLocation *result = 0 ;
6935 bool temp1 = false ;
6936 int val2 ;
6937 int ecode2 = 0 ;
6938 PyObject * obj0 = 0 ;
6939 PyObject * obj1 = 0 ;
6940 char * kwnames[] = {
6941 (char *) "filename",(char *) "num", NULL
6942 };
6943
6944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
6945 if (obj0) {
6946 {
6947 arg1 = wxString_in_helper(obj0);
6948 if (arg1 == NULL) SWIG_fail;
6949 temp1 = true;
6950 }
6951 }
6952 if (obj1) {
6953 ecode2 = SWIG_AsVal_int(obj1, &val2);
6954 if (!SWIG_IsOK(ecode2)) {
6955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
6956 }
6957 arg2 = static_cast< int >(val2);
6958 }
6959 {
6960 PyThreadState* __tstate = wxPyBeginAllowThreads();
6961 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
6962 wxPyEndAllowThreads(__tstate);
6963 if (PyErr_Occurred()) SWIG_fail;
6964 }
6965 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
6966 {
6967 if (temp1)
6968 delete arg1;
6969 }
6970 return resultobj;
6971 fail:
6972 {
6973 if (temp1)
6974 delete arg1;
6975 }
6976 return NULL;
6977 }
6978
6979
6980 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6981 PyObject *resultobj = 0;
6982 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
6983 void *argp1 = 0 ;
6984 int res1 = 0 ;
6985 PyObject *swig_obj[1] ;
6986
6987 if (!args) SWIG_fail;
6988 swig_obj[0] = args;
6989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
6990 if (!SWIG_IsOK(res1)) {
6991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
6992 }
6993 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6994 {
6995 PyThreadState* __tstate = wxPyBeginAllowThreads();
6996 delete arg1;
6997
6998 wxPyEndAllowThreads(__tstate);
6999 if (PyErr_Occurred()) SWIG_fail;
7000 }
7001 resultobj = SWIG_Py_Void();
7002 return resultobj;
7003 fail:
7004 return NULL;
7005 }
7006
7007
7008 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7009 PyObject *resultobj = 0;
7010 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7011 bool result;
7012 void *argp1 = 0 ;
7013 int res1 = 0 ;
7014 PyObject *swig_obj[1] ;
7015
7016 if (!args) SWIG_fail;
7017 swig_obj[0] = args;
7018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7019 if (!SWIG_IsOK(res1)) {
7020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7021 }
7022 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7023 {
7024 PyThreadState* __tstate = wxPyBeginAllowThreads();
7025 result = (bool)((wxIconLocation const *)arg1)->IsOk();
7026 wxPyEndAllowThreads(__tstate);
7027 if (PyErr_Occurred()) SWIG_fail;
7028 }
7029 {
7030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7031 }
7032 return resultobj;
7033 fail:
7034 return NULL;
7035 }
7036
7037
7038 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7039 PyObject *resultobj = 0;
7040 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7041 wxString *arg2 = 0 ;
7042 void *argp1 = 0 ;
7043 int res1 = 0 ;
7044 bool temp2 = false ;
7045 PyObject * obj0 = 0 ;
7046 PyObject * obj1 = 0 ;
7047 char * kwnames[] = {
7048 (char *) "self",(char *) "filename", NULL
7049 };
7050
7051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
7052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7053 if (!SWIG_IsOK(res1)) {
7054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7055 }
7056 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7057 {
7058 arg2 = wxString_in_helper(obj1);
7059 if (arg2 == NULL) SWIG_fail;
7060 temp2 = true;
7061 }
7062 {
7063 PyThreadState* __tstate = wxPyBeginAllowThreads();
7064 (arg1)->SetFileName((wxString const &)*arg2);
7065 wxPyEndAllowThreads(__tstate);
7066 if (PyErr_Occurred()) SWIG_fail;
7067 }
7068 resultobj = SWIG_Py_Void();
7069 {
7070 if (temp2)
7071 delete arg2;
7072 }
7073 return resultobj;
7074 fail:
7075 {
7076 if (temp2)
7077 delete arg2;
7078 }
7079 return NULL;
7080 }
7081
7082
7083 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7084 PyObject *resultobj = 0;
7085 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7086 wxString *result = 0 ;
7087 void *argp1 = 0 ;
7088 int res1 = 0 ;
7089 PyObject *swig_obj[1] ;
7090
7091 if (!args) SWIG_fail;
7092 swig_obj[0] = args;
7093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7094 if (!SWIG_IsOK(res1)) {
7095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7096 }
7097 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7098 {
7099 PyThreadState* __tstate = wxPyBeginAllowThreads();
7100 {
7101 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
7102 result = (wxString *) &_result_ref;
7103 }
7104 wxPyEndAllowThreads(__tstate);
7105 if (PyErr_Occurred()) SWIG_fail;
7106 }
7107 {
7108 #if wxUSE_UNICODE
7109 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7110 #else
7111 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7112 #endif
7113 }
7114 return resultobj;
7115 fail:
7116 return NULL;
7117 }
7118
7119
7120 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7121 PyObject *resultobj = 0;
7122 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7123 int arg2 ;
7124 void *argp1 = 0 ;
7125 int res1 = 0 ;
7126 int val2 ;
7127 int ecode2 = 0 ;
7128 PyObject * obj0 = 0 ;
7129 PyObject * obj1 = 0 ;
7130 char * kwnames[] = {
7131 (char *) "self",(char *) "num", NULL
7132 };
7133
7134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
7135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7136 if (!SWIG_IsOK(res1)) {
7137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7138 }
7139 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7140 ecode2 = SWIG_AsVal_int(obj1, &val2);
7141 if (!SWIG_IsOK(ecode2)) {
7142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
7143 }
7144 arg2 = static_cast< int >(val2);
7145 {
7146 PyThreadState* __tstate = wxPyBeginAllowThreads();
7147 wxIconLocation_SetIndex(arg1,arg2);
7148 wxPyEndAllowThreads(__tstate);
7149 if (PyErr_Occurred()) SWIG_fail;
7150 }
7151 resultobj = SWIG_Py_Void();
7152 return resultobj;
7153 fail:
7154 return NULL;
7155 }
7156
7157
7158 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7159 PyObject *resultobj = 0;
7160 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7161 int result;
7162 void *argp1 = 0 ;
7163 int res1 = 0 ;
7164 PyObject *swig_obj[1] ;
7165
7166 if (!args) SWIG_fail;
7167 swig_obj[0] = args;
7168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7169 if (!SWIG_IsOK(res1)) {
7170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7171 }
7172 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7173 {
7174 PyThreadState* __tstate = wxPyBeginAllowThreads();
7175 result = (int)wxIconLocation_GetIndex(arg1);
7176 wxPyEndAllowThreads(__tstate);
7177 if (PyErr_Occurred()) SWIG_fail;
7178 }
7179 resultobj = SWIG_From_int(static_cast< int >(result));
7180 return resultobj;
7181 fail:
7182 return NULL;
7183 }
7184
7185
7186 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7187 PyObject *obj;
7188 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7189 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
7190 return SWIG_Py_Void();
7191 }
7192
7193 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7194 return SWIG_Python_InitShadowInstance(args);
7195 }
7196
7197 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7198 PyObject *resultobj = 0;
7199 wxIconBundle *result = 0 ;
7200
7201 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
7202 {
7203 PyThreadState* __tstate = wxPyBeginAllowThreads();
7204 result = (wxIconBundle *)new wxIconBundle();
7205 wxPyEndAllowThreads(__tstate);
7206 if (PyErr_Occurred()) SWIG_fail;
7207 }
7208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
7209 return resultobj;
7210 fail:
7211 return NULL;
7212 }
7213
7214
7215 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7216 PyObject *resultobj = 0;
7217 wxString *arg1 = 0 ;
7218 long arg2 ;
7219 wxIconBundle *result = 0 ;
7220 bool temp1 = false ;
7221 long val2 ;
7222 int ecode2 = 0 ;
7223 PyObject * obj0 = 0 ;
7224 PyObject * obj1 = 0 ;
7225 char * kwnames[] = {
7226 (char *) "file",(char *) "type", NULL
7227 };
7228
7229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
7230 {
7231 arg1 = wxString_in_helper(obj0);
7232 if (arg1 == NULL) SWIG_fail;
7233 temp1 = true;
7234 }
7235 ecode2 = SWIG_AsVal_long(obj1, &val2);
7236 if (!SWIG_IsOK(ecode2)) {
7237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
7238 }
7239 arg2 = static_cast< long >(val2);
7240 {
7241 PyThreadState* __tstate = wxPyBeginAllowThreads();
7242 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
7243 wxPyEndAllowThreads(__tstate);
7244 if (PyErr_Occurred()) SWIG_fail;
7245 }
7246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7247 {
7248 if (temp1)
7249 delete arg1;
7250 }
7251 return resultobj;
7252 fail:
7253 {
7254 if (temp1)
7255 delete arg1;
7256 }
7257 return NULL;
7258 }
7259
7260
7261 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7262 PyObject *resultobj = 0;
7263 wxIcon *arg1 = 0 ;
7264 wxIconBundle *result = 0 ;
7265 void *argp1 = 0 ;
7266 int res1 = 0 ;
7267 PyObject * obj0 = 0 ;
7268 char * kwnames[] = {
7269 (char *) "icon", NULL
7270 };
7271
7272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
7273 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
7274 if (!SWIG_IsOK(res1)) {
7275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7276 }
7277 if (!argp1) {
7278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7279 }
7280 arg1 = reinterpret_cast< wxIcon * >(argp1);
7281 {
7282 PyThreadState* __tstate = wxPyBeginAllowThreads();
7283 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
7284 wxPyEndAllowThreads(__tstate);
7285 if (PyErr_Occurred()) SWIG_fail;
7286 }
7287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7288 return resultobj;
7289 fail:
7290 return NULL;
7291 }
7292
7293
7294 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7295 PyObject *resultobj = 0;
7296 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7297 void *argp1 = 0 ;
7298 int res1 = 0 ;
7299 PyObject *swig_obj[1] ;
7300
7301 if (!args) SWIG_fail;
7302 swig_obj[0] = args;
7303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
7304 if (!SWIG_IsOK(res1)) {
7305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7306 }
7307 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7308 {
7309 PyThreadState* __tstate = wxPyBeginAllowThreads();
7310 delete arg1;
7311
7312 wxPyEndAllowThreads(__tstate);
7313 if (PyErr_Occurred()) SWIG_fail;
7314 }
7315 resultobj = SWIG_Py_Void();
7316 return resultobj;
7317 fail:
7318 return NULL;
7319 }
7320
7321
7322 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7323 PyObject *resultobj = 0;
7324 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7325 wxIcon *arg2 = 0 ;
7326 void *argp1 = 0 ;
7327 int res1 = 0 ;
7328 void *argp2 = 0 ;
7329 int res2 = 0 ;
7330 PyObject * obj0 = 0 ;
7331 PyObject * obj1 = 0 ;
7332 char * kwnames[] = {
7333 (char *) "self",(char *) "icon", NULL
7334 };
7335
7336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7338 if (!SWIG_IsOK(res1)) {
7339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7340 }
7341 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7342 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
7343 if (!SWIG_IsOK(res2)) {
7344 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7345 }
7346 if (!argp2) {
7347 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7348 }
7349 arg2 = reinterpret_cast< wxIcon * >(argp2);
7350 {
7351 PyThreadState* __tstate = wxPyBeginAllowThreads();
7352 (arg1)->AddIcon((wxIcon const &)*arg2);
7353 wxPyEndAllowThreads(__tstate);
7354 if (PyErr_Occurred()) SWIG_fail;
7355 }
7356 resultobj = SWIG_Py_Void();
7357 return resultobj;
7358 fail:
7359 return NULL;
7360 }
7361
7362
7363 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7364 PyObject *resultobj = 0;
7365 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7366 wxString *arg2 = 0 ;
7367 long arg3 ;
7368 void *argp1 = 0 ;
7369 int res1 = 0 ;
7370 bool temp2 = false ;
7371 long val3 ;
7372 int ecode3 = 0 ;
7373 PyObject * obj0 = 0 ;
7374 PyObject * obj1 = 0 ;
7375 PyObject * obj2 = 0 ;
7376 char * kwnames[] = {
7377 (char *) "self",(char *) "file",(char *) "type", NULL
7378 };
7379
7380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7382 if (!SWIG_IsOK(res1)) {
7383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7384 }
7385 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7386 {
7387 arg2 = wxString_in_helper(obj1);
7388 if (arg2 == NULL) SWIG_fail;
7389 temp2 = true;
7390 }
7391 ecode3 = SWIG_AsVal_long(obj2, &val3);
7392 if (!SWIG_IsOK(ecode3)) {
7393 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
7394 }
7395 arg3 = static_cast< long >(val3);
7396 {
7397 PyThreadState* __tstate = wxPyBeginAllowThreads();
7398 (arg1)->AddIcon((wxString const &)*arg2,arg3);
7399 wxPyEndAllowThreads(__tstate);
7400 if (PyErr_Occurred()) SWIG_fail;
7401 }
7402 resultobj = SWIG_Py_Void();
7403 {
7404 if (temp2)
7405 delete arg2;
7406 }
7407 return resultobj;
7408 fail:
7409 {
7410 if (temp2)
7411 delete arg2;
7412 }
7413 return NULL;
7414 }
7415
7416
7417 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7418 PyObject *resultobj = 0;
7419 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7420 wxSize *arg2 = 0 ;
7421 wxIcon *result = 0 ;
7422 void *argp1 = 0 ;
7423 int res1 = 0 ;
7424 wxSize temp2 ;
7425 PyObject * obj0 = 0 ;
7426 PyObject * obj1 = 0 ;
7427 char * kwnames[] = {
7428 (char *) "self",(char *) "size", NULL
7429 };
7430
7431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7433 if (!SWIG_IsOK(res1)) {
7434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
7435 }
7436 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7437 {
7438 arg2 = &temp2;
7439 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7440 }
7441 {
7442 PyThreadState* __tstate = wxPyBeginAllowThreads();
7443 {
7444 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
7445 result = (wxIcon *) &_result_ref;
7446 }
7447 wxPyEndAllowThreads(__tstate);
7448 if (PyErr_Occurred()) SWIG_fail;
7449 }
7450 {
7451 wxIcon* resultptr = new wxIcon(*result);
7452 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
7453 }
7454 return resultobj;
7455 fail:
7456 return NULL;
7457 }
7458
7459
7460 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7461 PyObject *obj;
7462 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7463 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
7464 return SWIG_Py_Void();
7465 }
7466
7467 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7468 return SWIG_Python_InitShadowInstance(args);
7469 }
7470
7471 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7472 PyObject *resultobj = 0;
7473 wxString *arg1 = 0 ;
7474 long arg2 ;
7475 int arg3 = (int) 0 ;
7476 int arg4 = (int) 0 ;
7477 wxCursor *result = 0 ;
7478 bool temp1 = false ;
7479 long val2 ;
7480 int ecode2 = 0 ;
7481 int val3 ;
7482 int ecode3 = 0 ;
7483 int val4 ;
7484 int ecode4 = 0 ;
7485 PyObject * obj0 = 0 ;
7486 PyObject * obj1 = 0 ;
7487 PyObject * obj2 = 0 ;
7488 PyObject * obj3 = 0 ;
7489 char * kwnames[] = {
7490 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
7491 };
7492
7493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7494 {
7495 arg1 = wxString_in_helper(obj0);
7496 if (arg1 == NULL) SWIG_fail;
7497 temp1 = true;
7498 }
7499 ecode2 = SWIG_AsVal_long(obj1, &val2);
7500 if (!SWIG_IsOK(ecode2)) {
7501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
7502 }
7503 arg2 = static_cast< long >(val2);
7504 if (obj2) {
7505 ecode3 = SWIG_AsVal_int(obj2, &val3);
7506 if (!SWIG_IsOK(ecode3)) {
7507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
7508 }
7509 arg3 = static_cast< int >(val3);
7510 }
7511 if (obj3) {
7512 ecode4 = SWIG_AsVal_int(obj3, &val4);
7513 if (!SWIG_IsOK(ecode4)) {
7514 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
7515 }
7516 arg4 = static_cast< int >(val4);
7517 }
7518 {
7519 if (!wxPyCheckForApp()) SWIG_fail;
7520 PyThreadState* __tstate = wxPyBeginAllowThreads();
7521 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
7522 wxPyEndAllowThreads(__tstate);
7523 if (PyErr_Occurred()) SWIG_fail;
7524 }
7525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
7526 {
7527 if (temp1)
7528 delete arg1;
7529 }
7530 return resultobj;
7531 fail:
7532 {
7533 if (temp1)
7534 delete arg1;
7535 }
7536 return NULL;
7537 }
7538
7539
7540 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7541 PyObject *resultobj = 0;
7542 wxCursor *arg1 = (wxCursor *) 0 ;
7543 void *argp1 = 0 ;
7544 int res1 = 0 ;
7545 PyObject *swig_obj[1] ;
7546
7547 if (!args) SWIG_fail;
7548 swig_obj[0] = args;
7549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
7550 if (!SWIG_IsOK(res1)) {
7551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
7552 }
7553 arg1 = reinterpret_cast< wxCursor * >(argp1);
7554 {
7555 PyThreadState* __tstate = wxPyBeginAllowThreads();
7556 delete arg1;
7557
7558 wxPyEndAllowThreads(__tstate);
7559 if (PyErr_Occurred()) SWIG_fail;
7560 }
7561 resultobj = SWIG_Py_Void();
7562 return resultobj;
7563 fail:
7564 return NULL;
7565 }
7566
7567
7568 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7569 PyObject *resultobj = 0;
7570 int arg1 ;
7571 wxCursor *result = 0 ;
7572 int val1 ;
7573 int ecode1 = 0 ;
7574 PyObject * obj0 = 0 ;
7575 char * kwnames[] = {
7576 (char *) "id", NULL
7577 };
7578
7579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
7580 ecode1 = SWIG_AsVal_int(obj0, &val1);
7581 if (!SWIG_IsOK(ecode1)) {
7582 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
7583 }
7584 arg1 = static_cast< int >(val1);
7585 {
7586 if (!wxPyCheckForApp()) SWIG_fail;
7587 PyThreadState* __tstate = wxPyBeginAllowThreads();
7588 result = (wxCursor *)new wxCursor(arg1);
7589 wxPyEndAllowThreads(__tstate);
7590 if (PyErr_Occurred()) SWIG_fail;
7591 }
7592 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7593 return resultobj;
7594 fail:
7595 return NULL;
7596 }
7597
7598
7599 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7600 PyObject *resultobj = 0;
7601 wxImage *arg1 = 0 ;
7602 wxCursor *result = 0 ;
7603 void *argp1 = 0 ;
7604 int res1 = 0 ;
7605 PyObject * obj0 = 0 ;
7606 char * kwnames[] = {
7607 (char *) "image", NULL
7608 };
7609
7610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
7611 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
7612 if (!SWIG_IsOK(res1)) {
7613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7614 }
7615 if (!argp1) {
7616 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7617 }
7618 arg1 = reinterpret_cast< wxImage * >(argp1);
7619 {
7620 if (!wxPyCheckForApp()) SWIG_fail;
7621 PyThreadState* __tstate = wxPyBeginAllowThreads();
7622 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
7623 wxPyEndAllowThreads(__tstate);
7624 if (PyErr_Occurred()) SWIG_fail;
7625 }
7626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7627 return resultobj;
7628 fail:
7629 return NULL;
7630 }
7631
7632
7633 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7634 PyObject *resultobj = 0;
7635 wxCursor *arg1 = (wxCursor *) 0 ;
7636 bool result;
7637 void *argp1 = 0 ;
7638 int res1 = 0 ;
7639 PyObject *swig_obj[1] ;
7640
7641 if (!args) SWIG_fail;
7642 swig_obj[0] = args;
7643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7644 if (!SWIG_IsOK(res1)) {
7645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
7646 }
7647 arg1 = reinterpret_cast< wxCursor * >(argp1);
7648 {
7649 PyThreadState* __tstate = wxPyBeginAllowThreads();
7650 result = (bool)(arg1)->Ok();
7651 wxPyEndAllowThreads(__tstate);
7652 if (PyErr_Occurred()) SWIG_fail;
7653 }
7654 {
7655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7656 }
7657 return resultobj;
7658 fail:
7659 return NULL;
7660 }
7661
7662
7663 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7664 PyObject *obj;
7665 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7666 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
7667 return SWIG_Py_Void();
7668 }
7669
7670 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7671 return SWIG_Python_InitShadowInstance(args);
7672 }
7673
7674 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7675 PyObject *resultobj = 0;
7676 int arg1 = (int) 0 ;
7677 int arg2 = (int) 0 ;
7678 int arg3 = (int) 0 ;
7679 int arg4 = (int) 0 ;
7680 wxRegion *result = 0 ;
7681 int val1 ;
7682 int ecode1 = 0 ;
7683 int val2 ;
7684 int ecode2 = 0 ;
7685 int val3 ;
7686 int ecode3 = 0 ;
7687 int val4 ;
7688 int ecode4 = 0 ;
7689 PyObject * obj0 = 0 ;
7690 PyObject * obj1 = 0 ;
7691 PyObject * obj2 = 0 ;
7692 PyObject * obj3 = 0 ;
7693 char * kwnames[] = {
7694 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7695 };
7696
7697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7698 if (obj0) {
7699 ecode1 = SWIG_AsVal_int(obj0, &val1);
7700 if (!SWIG_IsOK(ecode1)) {
7701 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
7702 }
7703 arg1 = static_cast< int >(val1);
7704 }
7705 if (obj1) {
7706 ecode2 = SWIG_AsVal_int(obj1, &val2);
7707 if (!SWIG_IsOK(ecode2)) {
7708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
7709 }
7710 arg2 = static_cast< int >(val2);
7711 }
7712 if (obj2) {
7713 ecode3 = SWIG_AsVal_int(obj2, &val3);
7714 if (!SWIG_IsOK(ecode3)) {
7715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
7716 }
7717 arg3 = static_cast< int >(val3);
7718 }
7719 if (obj3) {
7720 ecode4 = SWIG_AsVal_int(obj3, &val4);
7721 if (!SWIG_IsOK(ecode4)) {
7722 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
7723 }
7724 arg4 = static_cast< int >(val4);
7725 }
7726 {
7727 if (!wxPyCheckForApp()) SWIG_fail;
7728 PyThreadState* __tstate = wxPyBeginAllowThreads();
7729 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
7730 wxPyEndAllowThreads(__tstate);
7731 if (PyErr_Occurred()) SWIG_fail;
7732 }
7733 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
7734 return resultobj;
7735 fail:
7736 return NULL;
7737 }
7738
7739
7740 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7741 PyObject *resultobj = 0;
7742 wxBitmap *arg1 = 0 ;
7743 wxRegion *result = 0 ;
7744 void *argp1 = 0 ;
7745 int res1 = 0 ;
7746 PyObject * obj0 = 0 ;
7747 char * kwnames[] = {
7748 (char *) "bmp", NULL
7749 };
7750
7751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
7752 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7753 if (!SWIG_IsOK(res1)) {
7754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7755 }
7756 if (!argp1) {
7757 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7758 }
7759 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7760 {
7761 if (!wxPyCheckForApp()) SWIG_fail;
7762 PyThreadState* __tstate = wxPyBeginAllowThreads();
7763 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
7764 wxPyEndAllowThreads(__tstate);
7765 if (PyErr_Occurred()) SWIG_fail;
7766 }
7767 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7768 return resultobj;
7769 fail:
7770 return NULL;
7771 }
7772
7773
7774 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7775 PyObject *resultobj = 0;
7776 wxBitmap *arg1 = 0 ;
7777 wxColour *arg2 = 0 ;
7778 int arg3 = (int) 0 ;
7779 wxRegion *result = 0 ;
7780 void *argp1 = 0 ;
7781 int res1 = 0 ;
7782 wxColour temp2 ;
7783 int val3 ;
7784 int ecode3 = 0 ;
7785 PyObject * obj0 = 0 ;
7786 PyObject * obj1 = 0 ;
7787 PyObject * obj2 = 0 ;
7788 char * kwnames[] = {
7789 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
7790 };
7791
7792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7793 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7794 if (!SWIG_IsOK(res1)) {
7795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7796 }
7797 if (!argp1) {
7798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7799 }
7800 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7801 {
7802 arg2 = &temp2;
7803 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7804 }
7805 if (obj2) {
7806 ecode3 = SWIG_AsVal_int(obj2, &val3);
7807 if (!SWIG_IsOK(ecode3)) {
7808 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
7809 }
7810 arg3 = static_cast< int >(val3);
7811 }
7812 {
7813 if (!wxPyCheckForApp()) SWIG_fail;
7814 PyThreadState* __tstate = wxPyBeginAllowThreads();
7815 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
7816 wxPyEndAllowThreads(__tstate);
7817 if (PyErr_Occurred()) SWIG_fail;
7818 }
7819 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7820 return resultobj;
7821 fail:
7822 return NULL;
7823 }
7824
7825
7826 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7827 PyObject *resultobj = 0;
7828 int arg1 ;
7829 wxPoint *arg2 = (wxPoint *) 0 ;
7830 int arg3 = (int) wxWINDING_RULE ;
7831 wxRegion *result = 0 ;
7832 int val3 ;
7833 int ecode3 = 0 ;
7834 PyObject * obj0 = 0 ;
7835 PyObject * obj1 = 0 ;
7836 char * kwnames[] = {
7837 (char *) "points",(char *) "fillStyle", NULL
7838 };
7839
7840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
7841 {
7842 arg2 = wxPoint_LIST_helper(obj0, &arg1);
7843 if (arg2 == NULL) SWIG_fail;
7844 }
7845 if (obj1) {
7846 ecode3 = SWIG_AsVal_int(obj1, &val3);
7847 if (!SWIG_IsOK(ecode3)) {
7848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
7849 }
7850 arg3 = static_cast< int >(val3);
7851 }
7852 {
7853 if (!wxPyCheckForApp()) SWIG_fail;
7854 PyThreadState* __tstate = wxPyBeginAllowThreads();
7855 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
7856 wxPyEndAllowThreads(__tstate);
7857 if (PyErr_Occurred()) SWIG_fail;
7858 }
7859 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7860 {
7861 if (arg2) delete [] arg2;
7862 }
7863 return resultobj;
7864 fail:
7865 {
7866 if (arg2) delete [] arg2;
7867 }
7868 return NULL;
7869 }
7870
7871
7872 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7873 PyObject *resultobj = 0;
7874 wxRegion *arg1 = (wxRegion *) 0 ;
7875 void *argp1 = 0 ;
7876 int res1 = 0 ;
7877 PyObject *swig_obj[1] ;
7878
7879 if (!args) SWIG_fail;
7880 swig_obj[0] = args;
7881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
7882 if (!SWIG_IsOK(res1)) {
7883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
7884 }
7885 arg1 = reinterpret_cast< wxRegion * >(argp1);
7886 {
7887 PyThreadState* __tstate = wxPyBeginAllowThreads();
7888 delete arg1;
7889
7890 wxPyEndAllowThreads(__tstate);
7891 if (PyErr_Occurred()) SWIG_fail;
7892 }
7893 resultobj = SWIG_Py_Void();
7894 return resultobj;
7895 fail:
7896 return NULL;
7897 }
7898
7899
7900 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7901 PyObject *resultobj = 0;
7902 wxRegion *arg1 = (wxRegion *) 0 ;
7903 void *argp1 = 0 ;
7904 int res1 = 0 ;
7905 PyObject *swig_obj[1] ;
7906
7907 if (!args) SWIG_fail;
7908 swig_obj[0] = args;
7909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7910 if (!SWIG_IsOK(res1)) {
7911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
7912 }
7913 arg1 = reinterpret_cast< wxRegion * >(argp1);
7914 {
7915 PyThreadState* __tstate = wxPyBeginAllowThreads();
7916 (arg1)->Clear();
7917 wxPyEndAllowThreads(__tstate);
7918 if (PyErr_Occurred()) SWIG_fail;
7919 }
7920 resultobj = SWIG_Py_Void();
7921 return resultobj;
7922 fail:
7923 return NULL;
7924 }
7925
7926
7927 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7928 PyObject *resultobj = 0;
7929 wxRegion *arg1 = (wxRegion *) 0 ;
7930 int arg2 ;
7931 int arg3 ;
7932 bool result;
7933 void *argp1 = 0 ;
7934 int res1 = 0 ;
7935 int val2 ;
7936 int ecode2 = 0 ;
7937 int val3 ;
7938 int ecode3 = 0 ;
7939 PyObject * obj0 = 0 ;
7940 PyObject * obj1 = 0 ;
7941 PyObject * obj2 = 0 ;
7942 char * kwnames[] = {
7943 (char *) "self",(char *) "x",(char *) "y", NULL
7944 };
7945
7946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7948 if (!SWIG_IsOK(res1)) {
7949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
7950 }
7951 arg1 = reinterpret_cast< wxRegion * >(argp1);
7952 ecode2 = SWIG_AsVal_int(obj1, &val2);
7953 if (!SWIG_IsOK(ecode2)) {
7954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
7955 }
7956 arg2 = static_cast< int >(val2);
7957 ecode3 = SWIG_AsVal_int(obj2, &val3);
7958 if (!SWIG_IsOK(ecode3)) {
7959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
7960 }
7961 arg3 = static_cast< int >(val3);
7962 {
7963 PyThreadState* __tstate = wxPyBeginAllowThreads();
7964 result = (bool)(arg1)->Offset(arg2,arg3);
7965 wxPyEndAllowThreads(__tstate);
7966 if (PyErr_Occurred()) SWIG_fail;
7967 }
7968 {
7969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7970 }
7971 return resultobj;
7972 fail:
7973 return NULL;
7974 }
7975
7976
7977 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7978 PyObject *resultobj = 0;
7979 wxRegion *arg1 = (wxRegion *) 0 ;
7980 int arg2 ;
7981 int arg3 ;
7982 wxRegionContain result;
7983 void *argp1 = 0 ;
7984 int res1 = 0 ;
7985 int val2 ;
7986 int ecode2 = 0 ;
7987 int val3 ;
7988 int ecode3 = 0 ;
7989 PyObject * obj0 = 0 ;
7990 PyObject * obj1 = 0 ;
7991 PyObject * obj2 = 0 ;
7992 char * kwnames[] = {
7993 (char *) "self",(char *) "x",(char *) "y", NULL
7994 };
7995
7996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7998 if (!SWIG_IsOK(res1)) {
7999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
8000 }
8001 arg1 = reinterpret_cast< wxRegion * >(argp1);
8002 ecode2 = SWIG_AsVal_int(obj1, &val2);
8003 if (!SWIG_IsOK(ecode2)) {
8004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
8005 }
8006 arg2 = static_cast< int >(val2);
8007 ecode3 = SWIG_AsVal_int(obj2, &val3);
8008 if (!SWIG_IsOK(ecode3)) {
8009 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
8010 }
8011 arg3 = static_cast< int >(val3);
8012 {
8013 PyThreadState* __tstate = wxPyBeginAllowThreads();
8014 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
8015 wxPyEndAllowThreads(__tstate);
8016 if (PyErr_Occurred()) SWIG_fail;
8017 }
8018 resultobj = SWIG_From_int(static_cast< int >(result));
8019 return resultobj;
8020 fail:
8021 return NULL;
8022 }
8023
8024
8025 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8026 PyObject *resultobj = 0;
8027 wxRegion *arg1 = (wxRegion *) 0 ;
8028 wxPoint *arg2 = 0 ;
8029 wxRegionContain result;
8030 void *argp1 = 0 ;
8031 int res1 = 0 ;
8032 wxPoint temp2 ;
8033 PyObject * obj0 = 0 ;
8034 PyObject * obj1 = 0 ;
8035 char * kwnames[] = {
8036 (char *) "self",(char *) "pt", NULL
8037 };
8038
8039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
8040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8041 if (!SWIG_IsOK(res1)) {
8042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
8043 }
8044 arg1 = reinterpret_cast< wxRegion * >(argp1);
8045 {
8046 arg2 = &temp2;
8047 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8048 }
8049 {
8050 PyThreadState* __tstate = wxPyBeginAllowThreads();
8051 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
8052 wxPyEndAllowThreads(__tstate);
8053 if (PyErr_Occurred()) SWIG_fail;
8054 }
8055 resultobj = SWIG_From_int(static_cast< int >(result));
8056 return resultobj;
8057 fail:
8058 return NULL;
8059 }
8060
8061
8062 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8063 PyObject *resultobj = 0;
8064 wxRegion *arg1 = (wxRegion *) 0 ;
8065 wxRect *arg2 = 0 ;
8066 wxRegionContain result;
8067 void *argp1 = 0 ;
8068 int res1 = 0 ;
8069 wxRect temp2 ;
8070 PyObject * obj0 = 0 ;
8071 PyObject * obj1 = 0 ;
8072 char * kwnames[] = {
8073 (char *) "self",(char *) "rect", NULL
8074 };
8075
8076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
8077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8078 if (!SWIG_IsOK(res1)) {
8079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8080 }
8081 arg1 = reinterpret_cast< wxRegion * >(argp1);
8082 {
8083 arg2 = &temp2;
8084 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8085 }
8086 {
8087 PyThreadState* __tstate = wxPyBeginAllowThreads();
8088 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
8089 wxPyEndAllowThreads(__tstate);
8090 if (PyErr_Occurred()) SWIG_fail;
8091 }
8092 resultobj = SWIG_From_int(static_cast< int >(result));
8093 return resultobj;
8094 fail:
8095 return NULL;
8096 }
8097
8098
8099 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8100 PyObject *resultobj = 0;
8101 wxRegion *arg1 = (wxRegion *) 0 ;
8102 int arg2 ;
8103 int arg3 ;
8104 int arg4 ;
8105 int arg5 ;
8106 wxRegionContain result;
8107 void *argp1 = 0 ;
8108 int res1 = 0 ;
8109 int val2 ;
8110 int ecode2 = 0 ;
8111 int val3 ;
8112 int ecode3 = 0 ;
8113 int val4 ;
8114 int ecode4 = 0 ;
8115 int val5 ;
8116 int ecode5 = 0 ;
8117 PyObject * obj0 = 0 ;
8118 PyObject * obj1 = 0 ;
8119 PyObject * obj2 = 0 ;
8120 PyObject * obj3 = 0 ;
8121 PyObject * obj4 = 0 ;
8122 char * kwnames[] = {
8123 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
8124 };
8125
8126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8128 if (!SWIG_IsOK(res1)) {
8129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
8130 }
8131 arg1 = reinterpret_cast< wxRegion * >(argp1);
8132 ecode2 = SWIG_AsVal_int(obj1, &val2);
8133 if (!SWIG_IsOK(ecode2)) {
8134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
8135 }
8136 arg2 = static_cast< int >(val2);
8137 ecode3 = SWIG_AsVal_int(obj2, &val3);
8138 if (!SWIG_IsOK(ecode3)) {
8139 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
8140 }
8141 arg3 = static_cast< int >(val3);
8142 ecode4 = SWIG_AsVal_int(obj3, &val4);
8143 if (!SWIG_IsOK(ecode4)) {
8144 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
8145 }
8146 arg4 = static_cast< int >(val4);
8147 ecode5 = SWIG_AsVal_int(obj4, &val5);
8148 if (!SWIG_IsOK(ecode5)) {
8149 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
8150 }
8151 arg5 = static_cast< int >(val5);
8152 {
8153 PyThreadState* __tstate = wxPyBeginAllowThreads();
8154 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
8155 wxPyEndAllowThreads(__tstate);
8156 if (PyErr_Occurred()) SWIG_fail;
8157 }
8158 resultobj = SWIG_From_int(static_cast< int >(result));
8159 return resultobj;
8160 fail:
8161 return NULL;
8162 }
8163
8164
8165 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8166 PyObject *resultobj = 0;
8167 wxRegion *arg1 = (wxRegion *) 0 ;
8168 wxRect result;
8169 void *argp1 = 0 ;
8170 int res1 = 0 ;
8171 PyObject *swig_obj[1] ;
8172
8173 if (!args) SWIG_fail;
8174 swig_obj[0] = args;
8175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8176 if (!SWIG_IsOK(res1)) {
8177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
8178 }
8179 arg1 = reinterpret_cast< wxRegion * >(argp1);
8180 {
8181 PyThreadState* __tstate = wxPyBeginAllowThreads();
8182 result = (arg1)->GetBox();
8183 wxPyEndAllowThreads(__tstate);
8184 if (PyErr_Occurred()) SWIG_fail;
8185 }
8186 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
8187 return resultobj;
8188 fail:
8189 return NULL;
8190 }
8191
8192
8193 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8194 PyObject *resultobj = 0;
8195 wxRegion *arg1 = (wxRegion *) 0 ;
8196 int arg2 ;
8197 int arg3 ;
8198 int arg4 ;
8199 int arg5 ;
8200 bool result;
8201 void *argp1 = 0 ;
8202 int res1 = 0 ;
8203 int val2 ;
8204 int ecode2 = 0 ;
8205 int val3 ;
8206 int ecode3 = 0 ;
8207 int val4 ;
8208 int ecode4 = 0 ;
8209 int val5 ;
8210 int ecode5 = 0 ;
8211 PyObject * obj0 = 0 ;
8212 PyObject * obj1 = 0 ;
8213 PyObject * obj2 = 0 ;
8214 PyObject * obj3 = 0 ;
8215 PyObject * obj4 = 0 ;
8216 char * kwnames[] = {
8217 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8218 };
8219
8220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8222 if (!SWIG_IsOK(res1)) {
8223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
8224 }
8225 arg1 = reinterpret_cast< wxRegion * >(argp1);
8226 ecode2 = SWIG_AsVal_int(obj1, &val2);
8227 if (!SWIG_IsOK(ecode2)) {
8228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
8229 }
8230 arg2 = static_cast< int >(val2);
8231 ecode3 = SWIG_AsVal_int(obj2, &val3);
8232 if (!SWIG_IsOK(ecode3)) {
8233 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
8234 }
8235 arg3 = static_cast< int >(val3);
8236 ecode4 = SWIG_AsVal_int(obj3, &val4);
8237 if (!SWIG_IsOK(ecode4)) {
8238 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
8239 }
8240 arg4 = static_cast< int >(val4);
8241 ecode5 = SWIG_AsVal_int(obj4, &val5);
8242 if (!SWIG_IsOK(ecode5)) {
8243 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
8244 }
8245 arg5 = static_cast< int >(val5);
8246 {
8247 PyThreadState* __tstate = wxPyBeginAllowThreads();
8248 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
8249 wxPyEndAllowThreads(__tstate);
8250 if (PyErr_Occurred()) SWIG_fail;
8251 }
8252 {
8253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8254 }
8255 return resultobj;
8256 fail:
8257 return NULL;
8258 }
8259
8260
8261 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8262 PyObject *resultobj = 0;
8263 wxRegion *arg1 = (wxRegion *) 0 ;
8264 wxRect *arg2 = 0 ;
8265 bool result;
8266 void *argp1 = 0 ;
8267 int res1 = 0 ;
8268 wxRect temp2 ;
8269 PyObject * obj0 = 0 ;
8270 PyObject * obj1 = 0 ;
8271 char * kwnames[] = {
8272 (char *) "self",(char *) "rect", NULL
8273 };
8274
8275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8277 if (!SWIG_IsOK(res1)) {
8278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8279 }
8280 arg1 = reinterpret_cast< wxRegion * >(argp1);
8281 {
8282 arg2 = &temp2;
8283 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8284 }
8285 {
8286 PyThreadState* __tstate = wxPyBeginAllowThreads();
8287 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
8288 wxPyEndAllowThreads(__tstate);
8289 if (PyErr_Occurred()) SWIG_fail;
8290 }
8291 {
8292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8293 }
8294 return resultobj;
8295 fail:
8296 return NULL;
8297 }
8298
8299
8300 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8301 PyObject *resultobj = 0;
8302 wxRegion *arg1 = (wxRegion *) 0 ;
8303 wxRegion *arg2 = 0 ;
8304 bool result;
8305 void *argp1 = 0 ;
8306 int res1 = 0 ;
8307 void *argp2 = 0 ;
8308 int res2 = 0 ;
8309 PyObject * obj0 = 0 ;
8310 PyObject * obj1 = 0 ;
8311 char * kwnames[] = {
8312 (char *) "self",(char *) "region", NULL
8313 };
8314
8315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8317 if (!SWIG_IsOK(res1)) {
8318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8319 }
8320 arg1 = reinterpret_cast< wxRegion * >(argp1);
8321 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8322 if (!SWIG_IsOK(res2)) {
8323 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8324 }
8325 if (!argp2) {
8326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8327 }
8328 arg2 = reinterpret_cast< wxRegion * >(argp2);
8329 {
8330 PyThreadState* __tstate = wxPyBeginAllowThreads();
8331 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
8332 wxPyEndAllowThreads(__tstate);
8333 if (PyErr_Occurred()) SWIG_fail;
8334 }
8335 {
8336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8337 }
8338 return resultobj;
8339 fail:
8340 return NULL;
8341 }
8342
8343
8344 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8345 PyObject *resultobj = 0;
8346 wxRegion *arg1 = (wxRegion *) 0 ;
8347 bool result;
8348 void *argp1 = 0 ;
8349 int res1 = 0 ;
8350 PyObject *swig_obj[1] ;
8351
8352 if (!args) SWIG_fail;
8353 swig_obj[0] = args;
8354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8355 if (!SWIG_IsOK(res1)) {
8356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
8357 }
8358 arg1 = reinterpret_cast< wxRegion * >(argp1);
8359 {
8360 PyThreadState* __tstate = wxPyBeginAllowThreads();
8361 result = (bool)(arg1)->IsEmpty();
8362 wxPyEndAllowThreads(__tstate);
8363 if (PyErr_Occurred()) SWIG_fail;
8364 }
8365 {
8366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8367 }
8368 return resultobj;
8369 fail:
8370 return NULL;
8371 }
8372
8373
8374 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8375 PyObject *resultobj = 0;
8376 wxRegion *arg1 = (wxRegion *) 0 ;
8377 int arg2 ;
8378 int arg3 ;
8379 int arg4 ;
8380 int arg5 ;
8381 bool result;
8382 void *argp1 = 0 ;
8383 int res1 = 0 ;
8384 int val2 ;
8385 int ecode2 = 0 ;
8386 int val3 ;
8387 int ecode3 = 0 ;
8388 int val4 ;
8389 int ecode4 = 0 ;
8390 int val5 ;
8391 int ecode5 = 0 ;
8392 PyObject * obj0 = 0 ;
8393 PyObject * obj1 = 0 ;
8394 PyObject * obj2 = 0 ;
8395 PyObject * obj3 = 0 ;
8396 PyObject * obj4 = 0 ;
8397 char * kwnames[] = {
8398 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8399 };
8400
8401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8403 if (!SWIG_IsOK(res1)) {
8404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
8405 }
8406 arg1 = reinterpret_cast< wxRegion * >(argp1);
8407 ecode2 = SWIG_AsVal_int(obj1, &val2);
8408 if (!SWIG_IsOK(ecode2)) {
8409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
8410 }
8411 arg2 = static_cast< int >(val2);
8412 ecode3 = SWIG_AsVal_int(obj2, &val3);
8413 if (!SWIG_IsOK(ecode3)) {
8414 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
8415 }
8416 arg3 = static_cast< int >(val3);
8417 ecode4 = SWIG_AsVal_int(obj3, &val4);
8418 if (!SWIG_IsOK(ecode4)) {
8419 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
8420 }
8421 arg4 = static_cast< int >(val4);
8422 ecode5 = SWIG_AsVal_int(obj4, &val5);
8423 if (!SWIG_IsOK(ecode5)) {
8424 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
8425 }
8426 arg5 = static_cast< int >(val5);
8427 {
8428 PyThreadState* __tstate = wxPyBeginAllowThreads();
8429 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
8430 wxPyEndAllowThreads(__tstate);
8431 if (PyErr_Occurred()) SWIG_fail;
8432 }
8433 {
8434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8435 }
8436 return resultobj;
8437 fail:
8438 return NULL;
8439 }
8440
8441
8442 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8443 PyObject *resultobj = 0;
8444 wxRegion *arg1 = (wxRegion *) 0 ;
8445 wxRect *arg2 = 0 ;
8446 bool result;
8447 void *argp1 = 0 ;
8448 int res1 = 0 ;
8449 wxRect temp2 ;
8450 PyObject * obj0 = 0 ;
8451 PyObject * obj1 = 0 ;
8452 char * kwnames[] = {
8453 (char *) "self",(char *) "rect", NULL
8454 };
8455
8456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
8457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8458 if (!SWIG_IsOK(res1)) {
8459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8460 }
8461 arg1 = reinterpret_cast< wxRegion * >(argp1);
8462 {
8463 arg2 = &temp2;
8464 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8465 }
8466 {
8467 PyThreadState* __tstate = wxPyBeginAllowThreads();
8468 result = (bool)(arg1)->Union((wxRect const &)*arg2);
8469 wxPyEndAllowThreads(__tstate);
8470 if (PyErr_Occurred()) SWIG_fail;
8471 }
8472 {
8473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8474 }
8475 return resultobj;
8476 fail:
8477 return NULL;
8478 }
8479
8480
8481 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8482 PyObject *resultobj = 0;
8483 wxRegion *arg1 = (wxRegion *) 0 ;
8484 wxRegion *arg2 = 0 ;
8485 bool result;
8486 void *argp1 = 0 ;
8487 int res1 = 0 ;
8488 void *argp2 = 0 ;
8489 int res2 = 0 ;
8490 PyObject * obj0 = 0 ;
8491 PyObject * obj1 = 0 ;
8492 char * kwnames[] = {
8493 (char *) "self",(char *) "region", NULL
8494 };
8495
8496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8498 if (!SWIG_IsOK(res1)) {
8499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8500 }
8501 arg1 = reinterpret_cast< wxRegion * >(argp1);
8502 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8503 if (!SWIG_IsOK(res2)) {
8504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8505 }
8506 if (!argp2) {
8507 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8508 }
8509 arg2 = reinterpret_cast< wxRegion * >(argp2);
8510 {
8511 PyThreadState* __tstate = wxPyBeginAllowThreads();
8512 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
8513 wxPyEndAllowThreads(__tstate);
8514 if (PyErr_Occurred()) SWIG_fail;
8515 }
8516 {
8517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8518 }
8519 return resultobj;
8520 fail:
8521 return NULL;
8522 }
8523
8524
8525 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8526 PyObject *resultobj = 0;
8527 wxRegion *arg1 = (wxRegion *) 0 ;
8528 int arg2 ;
8529 int arg3 ;
8530 int arg4 ;
8531 int arg5 ;
8532 bool result;
8533 void *argp1 = 0 ;
8534 int res1 = 0 ;
8535 int val2 ;
8536 int ecode2 = 0 ;
8537 int val3 ;
8538 int ecode3 = 0 ;
8539 int val4 ;
8540 int ecode4 = 0 ;
8541 int val5 ;
8542 int ecode5 = 0 ;
8543 PyObject * obj0 = 0 ;
8544 PyObject * obj1 = 0 ;
8545 PyObject * obj2 = 0 ;
8546 PyObject * obj3 = 0 ;
8547 PyObject * obj4 = 0 ;
8548 char * kwnames[] = {
8549 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8550 };
8551
8552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8554 if (!SWIG_IsOK(res1)) {
8555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
8556 }
8557 arg1 = reinterpret_cast< wxRegion * >(argp1);
8558 ecode2 = SWIG_AsVal_int(obj1, &val2);
8559 if (!SWIG_IsOK(ecode2)) {
8560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
8561 }
8562 arg2 = static_cast< int >(val2);
8563 ecode3 = SWIG_AsVal_int(obj2, &val3);
8564 if (!SWIG_IsOK(ecode3)) {
8565 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
8566 }
8567 arg3 = static_cast< int >(val3);
8568 ecode4 = SWIG_AsVal_int(obj3, &val4);
8569 if (!SWIG_IsOK(ecode4)) {
8570 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
8571 }
8572 arg4 = static_cast< int >(val4);
8573 ecode5 = SWIG_AsVal_int(obj4, &val5);
8574 if (!SWIG_IsOK(ecode5)) {
8575 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
8576 }
8577 arg5 = static_cast< int >(val5);
8578 {
8579 PyThreadState* __tstate = wxPyBeginAllowThreads();
8580 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
8581 wxPyEndAllowThreads(__tstate);
8582 if (PyErr_Occurred()) SWIG_fail;
8583 }
8584 {
8585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8586 }
8587 return resultobj;
8588 fail:
8589 return NULL;
8590 }
8591
8592
8593 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8594 PyObject *resultobj = 0;
8595 wxRegion *arg1 = (wxRegion *) 0 ;
8596 wxRect *arg2 = 0 ;
8597 bool result;
8598 void *argp1 = 0 ;
8599 int res1 = 0 ;
8600 wxRect temp2 ;
8601 PyObject * obj0 = 0 ;
8602 PyObject * obj1 = 0 ;
8603 char * kwnames[] = {
8604 (char *) "self",(char *) "rect", NULL
8605 };
8606
8607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
8608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8609 if (!SWIG_IsOK(res1)) {
8610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8611 }
8612 arg1 = reinterpret_cast< wxRegion * >(argp1);
8613 {
8614 arg2 = &temp2;
8615 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8616 }
8617 {
8618 PyThreadState* __tstate = wxPyBeginAllowThreads();
8619 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
8620 wxPyEndAllowThreads(__tstate);
8621 if (PyErr_Occurred()) SWIG_fail;
8622 }
8623 {
8624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8625 }
8626 return resultobj;
8627 fail:
8628 return NULL;
8629 }
8630
8631
8632 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8633 PyObject *resultobj = 0;
8634 wxRegion *arg1 = (wxRegion *) 0 ;
8635 wxRegion *arg2 = 0 ;
8636 bool result;
8637 void *argp1 = 0 ;
8638 int res1 = 0 ;
8639 void *argp2 = 0 ;
8640 int res2 = 0 ;
8641 PyObject * obj0 = 0 ;
8642 PyObject * obj1 = 0 ;
8643 char * kwnames[] = {
8644 (char *) "self",(char *) "region", NULL
8645 };
8646
8647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8649 if (!SWIG_IsOK(res1)) {
8650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8651 }
8652 arg1 = reinterpret_cast< wxRegion * >(argp1);
8653 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8654 if (!SWIG_IsOK(res2)) {
8655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8656 }
8657 if (!argp2) {
8658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8659 }
8660 arg2 = reinterpret_cast< wxRegion * >(argp2);
8661 {
8662 PyThreadState* __tstate = wxPyBeginAllowThreads();
8663 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
8664 wxPyEndAllowThreads(__tstate);
8665 if (PyErr_Occurred()) SWIG_fail;
8666 }
8667 {
8668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8669 }
8670 return resultobj;
8671 fail:
8672 return NULL;
8673 }
8674
8675
8676 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8677 PyObject *resultobj = 0;
8678 wxRegion *arg1 = (wxRegion *) 0 ;
8679 int arg2 ;
8680 int arg3 ;
8681 int arg4 ;
8682 int arg5 ;
8683 bool result;
8684 void *argp1 = 0 ;
8685 int res1 = 0 ;
8686 int val2 ;
8687 int ecode2 = 0 ;
8688 int val3 ;
8689 int ecode3 = 0 ;
8690 int val4 ;
8691 int ecode4 = 0 ;
8692 int val5 ;
8693 int ecode5 = 0 ;
8694 PyObject * obj0 = 0 ;
8695 PyObject * obj1 = 0 ;
8696 PyObject * obj2 = 0 ;
8697 PyObject * obj3 = 0 ;
8698 PyObject * obj4 = 0 ;
8699 char * kwnames[] = {
8700 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8701 };
8702
8703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8705 if (!SWIG_IsOK(res1)) {
8706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
8707 }
8708 arg1 = reinterpret_cast< wxRegion * >(argp1);
8709 ecode2 = SWIG_AsVal_int(obj1, &val2);
8710 if (!SWIG_IsOK(ecode2)) {
8711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
8712 }
8713 arg2 = static_cast< int >(val2);
8714 ecode3 = SWIG_AsVal_int(obj2, &val3);
8715 if (!SWIG_IsOK(ecode3)) {
8716 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
8717 }
8718 arg3 = static_cast< int >(val3);
8719 ecode4 = SWIG_AsVal_int(obj3, &val4);
8720 if (!SWIG_IsOK(ecode4)) {
8721 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
8722 }
8723 arg4 = static_cast< int >(val4);
8724 ecode5 = SWIG_AsVal_int(obj4, &val5);
8725 if (!SWIG_IsOK(ecode5)) {
8726 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
8727 }
8728 arg5 = static_cast< int >(val5);
8729 {
8730 PyThreadState* __tstate = wxPyBeginAllowThreads();
8731 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
8732 wxPyEndAllowThreads(__tstate);
8733 if (PyErr_Occurred()) SWIG_fail;
8734 }
8735 {
8736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8737 }
8738 return resultobj;
8739 fail:
8740 return NULL;
8741 }
8742
8743
8744 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8745 PyObject *resultobj = 0;
8746 wxRegion *arg1 = (wxRegion *) 0 ;
8747 wxRect *arg2 = 0 ;
8748 bool result;
8749 void *argp1 = 0 ;
8750 int res1 = 0 ;
8751 wxRect temp2 ;
8752 PyObject * obj0 = 0 ;
8753 PyObject * obj1 = 0 ;
8754 char * kwnames[] = {
8755 (char *) "self",(char *) "rect", NULL
8756 };
8757
8758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
8759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8760 if (!SWIG_IsOK(res1)) {
8761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8762 }
8763 arg1 = reinterpret_cast< wxRegion * >(argp1);
8764 {
8765 arg2 = &temp2;
8766 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8767 }
8768 {
8769 PyThreadState* __tstate = wxPyBeginAllowThreads();
8770 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
8771 wxPyEndAllowThreads(__tstate);
8772 if (PyErr_Occurred()) SWIG_fail;
8773 }
8774 {
8775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8776 }
8777 return resultobj;
8778 fail:
8779 return NULL;
8780 }
8781
8782
8783 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8784 PyObject *resultobj = 0;
8785 wxRegion *arg1 = (wxRegion *) 0 ;
8786 wxRegion *arg2 = 0 ;
8787 bool result;
8788 void *argp1 = 0 ;
8789 int res1 = 0 ;
8790 void *argp2 = 0 ;
8791 int res2 = 0 ;
8792 PyObject * obj0 = 0 ;
8793 PyObject * obj1 = 0 ;
8794 char * kwnames[] = {
8795 (char *) "self",(char *) "region", NULL
8796 };
8797
8798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8800 if (!SWIG_IsOK(res1)) {
8801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8802 }
8803 arg1 = reinterpret_cast< wxRegion * >(argp1);
8804 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8805 if (!SWIG_IsOK(res2)) {
8806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8807 }
8808 if (!argp2) {
8809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8810 }
8811 arg2 = reinterpret_cast< wxRegion * >(argp2);
8812 {
8813 PyThreadState* __tstate = wxPyBeginAllowThreads();
8814 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
8815 wxPyEndAllowThreads(__tstate);
8816 if (PyErr_Occurred()) SWIG_fail;
8817 }
8818 {
8819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8820 }
8821 return resultobj;
8822 fail:
8823 return NULL;
8824 }
8825
8826
8827 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8828 PyObject *resultobj = 0;
8829 wxRegion *arg1 = (wxRegion *) 0 ;
8830 SwigValueWrapper<wxBitmap > result;
8831 void *argp1 = 0 ;
8832 int res1 = 0 ;
8833 PyObject *swig_obj[1] ;
8834
8835 if (!args) SWIG_fail;
8836 swig_obj[0] = args;
8837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8838 if (!SWIG_IsOK(res1)) {
8839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8840 }
8841 arg1 = reinterpret_cast< wxRegion * >(argp1);
8842 {
8843 PyThreadState* __tstate = wxPyBeginAllowThreads();
8844 result = (arg1)->ConvertToBitmap();
8845 wxPyEndAllowThreads(__tstate);
8846 if (PyErr_Occurred()) SWIG_fail;
8847 }
8848 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8849 return resultobj;
8850 fail:
8851 return NULL;
8852 }
8853
8854
8855 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8856 PyObject *resultobj = 0;
8857 wxRegion *arg1 = (wxRegion *) 0 ;
8858 wxBitmap *arg2 = 0 ;
8859 bool result;
8860 void *argp1 = 0 ;
8861 int res1 = 0 ;
8862 void *argp2 = 0 ;
8863 int res2 = 0 ;
8864 PyObject * obj0 = 0 ;
8865 PyObject * obj1 = 0 ;
8866 char * kwnames[] = {
8867 (char *) "self",(char *) "bmp", NULL
8868 };
8869
8870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8872 if (!SWIG_IsOK(res1)) {
8873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8874 }
8875 arg1 = reinterpret_cast< wxRegion * >(argp1);
8876 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8877 if (!SWIG_IsOK(res2)) {
8878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8879 }
8880 if (!argp2) {
8881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8882 }
8883 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8884 {
8885 PyThreadState* __tstate = wxPyBeginAllowThreads();
8886 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
8887 wxPyEndAllowThreads(__tstate);
8888 if (PyErr_Occurred()) SWIG_fail;
8889 }
8890 {
8891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8892 }
8893 return resultobj;
8894 fail:
8895 return NULL;
8896 }
8897
8898
8899 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8900 PyObject *resultobj = 0;
8901 wxRegion *arg1 = (wxRegion *) 0 ;
8902 wxBitmap *arg2 = 0 ;
8903 wxColour *arg3 = 0 ;
8904 int arg4 = (int) 0 ;
8905 bool result;
8906 void *argp1 = 0 ;
8907 int res1 = 0 ;
8908 void *argp2 = 0 ;
8909 int res2 = 0 ;
8910 wxColour temp3 ;
8911 int val4 ;
8912 int ecode4 = 0 ;
8913 PyObject * obj0 = 0 ;
8914 PyObject * obj1 = 0 ;
8915 PyObject * obj2 = 0 ;
8916 PyObject * obj3 = 0 ;
8917 char * kwnames[] = {
8918 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
8919 };
8920
8921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8923 if (!SWIG_IsOK(res1)) {
8924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
8925 }
8926 arg1 = reinterpret_cast< wxRegion * >(argp1);
8927 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8928 if (!SWIG_IsOK(res2)) {
8929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8930 }
8931 if (!argp2) {
8932 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8933 }
8934 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8935 {
8936 arg3 = &temp3;
8937 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
8938 }
8939 if (obj3) {
8940 ecode4 = SWIG_AsVal_int(obj3, &val4);
8941 if (!SWIG_IsOK(ecode4)) {
8942 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
8943 }
8944 arg4 = static_cast< int >(val4);
8945 }
8946 {
8947 PyThreadState* __tstate = wxPyBeginAllowThreads();
8948 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
8949 wxPyEndAllowThreads(__tstate);
8950 if (PyErr_Occurred()) SWIG_fail;
8951 }
8952 {
8953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8954 }
8955 return resultobj;
8956 fail:
8957 return NULL;
8958 }
8959
8960
8961 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8962 PyObject *obj;
8963 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8964 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
8965 return SWIG_Py_Void();
8966 }
8967
8968 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8969 return SWIG_Python_InitShadowInstance(args);
8970 }
8971
8972 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8973 PyObject *resultobj = 0;
8974 wxRegion *arg1 = 0 ;
8975 wxRegionIterator *result = 0 ;
8976 void *argp1 = 0 ;
8977 int res1 = 0 ;
8978 PyObject * obj0 = 0 ;
8979 char * kwnames[] = {
8980 (char *) "region", NULL
8981 };
8982
8983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
8984 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
8985 if (!SWIG_IsOK(res1)) {
8986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
8987 }
8988 if (!argp1) {
8989 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
8990 }
8991 arg1 = reinterpret_cast< wxRegion * >(argp1);
8992 {
8993 if (!wxPyCheckForApp()) SWIG_fail;
8994 PyThreadState* __tstate = wxPyBeginAllowThreads();
8995 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
8996 wxPyEndAllowThreads(__tstate);
8997 if (PyErr_Occurred()) SWIG_fail;
8998 }
8999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
9000 return resultobj;
9001 fail:
9002 return NULL;
9003 }
9004
9005
9006 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9007 PyObject *resultobj = 0;
9008 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9009 void *argp1 = 0 ;
9010 int res1 = 0 ;
9011 PyObject *swig_obj[1] ;
9012
9013 if (!args) SWIG_fail;
9014 swig_obj[0] = args;
9015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
9016 if (!SWIG_IsOK(res1)) {
9017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9018 }
9019 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9020 {
9021 PyThreadState* __tstate = wxPyBeginAllowThreads();
9022 delete arg1;
9023
9024 wxPyEndAllowThreads(__tstate);
9025 if (PyErr_Occurred()) SWIG_fail;
9026 }
9027 resultobj = SWIG_Py_Void();
9028 return resultobj;
9029 fail:
9030 return NULL;
9031 }
9032
9033
9034 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9035 PyObject *resultobj = 0;
9036 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9037 int result;
9038 void *argp1 = 0 ;
9039 int res1 = 0 ;
9040 PyObject *swig_obj[1] ;
9041
9042 if (!args) SWIG_fail;
9043 swig_obj[0] = args;
9044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9045 if (!SWIG_IsOK(res1)) {
9046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9047 }
9048 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9049 {
9050 PyThreadState* __tstate = wxPyBeginAllowThreads();
9051 result = (int)(arg1)->GetX();
9052 wxPyEndAllowThreads(__tstate);
9053 if (PyErr_Occurred()) SWIG_fail;
9054 }
9055 resultobj = SWIG_From_int(static_cast< int >(result));
9056 return resultobj;
9057 fail:
9058 return NULL;
9059 }
9060
9061
9062 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9063 PyObject *resultobj = 0;
9064 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9065 int result;
9066 void *argp1 = 0 ;
9067 int res1 = 0 ;
9068 PyObject *swig_obj[1] ;
9069
9070 if (!args) SWIG_fail;
9071 swig_obj[0] = args;
9072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9073 if (!SWIG_IsOK(res1)) {
9074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9075 }
9076 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9077 {
9078 PyThreadState* __tstate = wxPyBeginAllowThreads();
9079 result = (int)(arg1)->GetY();
9080 wxPyEndAllowThreads(__tstate);
9081 if (PyErr_Occurred()) SWIG_fail;
9082 }
9083 resultobj = SWIG_From_int(static_cast< int >(result));
9084 return resultobj;
9085 fail:
9086 return NULL;
9087 }
9088
9089
9090 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9091 PyObject *resultobj = 0;
9092 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9093 int result;
9094 void *argp1 = 0 ;
9095 int res1 = 0 ;
9096 PyObject *swig_obj[1] ;
9097
9098 if (!args) SWIG_fail;
9099 swig_obj[0] = args;
9100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9101 if (!SWIG_IsOK(res1)) {
9102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9103 }
9104 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9105 {
9106 PyThreadState* __tstate = wxPyBeginAllowThreads();
9107 result = (int)(arg1)->GetW();
9108 wxPyEndAllowThreads(__tstate);
9109 if (PyErr_Occurred()) SWIG_fail;
9110 }
9111 resultobj = SWIG_From_int(static_cast< int >(result));
9112 return resultobj;
9113 fail:
9114 return NULL;
9115 }
9116
9117
9118 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9119 PyObject *resultobj = 0;
9120 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9121 int result;
9122 void *argp1 = 0 ;
9123 int res1 = 0 ;
9124 PyObject *swig_obj[1] ;
9125
9126 if (!args) SWIG_fail;
9127 swig_obj[0] = args;
9128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9129 if (!SWIG_IsOK(res1)) {
9130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9131 }
9132 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9133 {
9134 PyThreadState* __tstate = wxPyBeginAllowThreads();
9135 result = (int)(arg1)->GetWidth();
9136 wxPyEndAllowThreads(__tstate);
9137 if (PyErr_Occurred()) SWIG_fail;
9138 }
9139 resultobj = SWIG_From_int(static_cast< int >(result));
9140 return resultobj;
9141 fail:
9142 return NULL;
9143 }
9144
9145
9146 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9147 PyObject *resultobj = 0;
9148 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9149 int result;
9150 void *argp1 = 0 ;
9151 int res1 = 0 ;
9152 PyObject *swig_obj[1] ;
9153
9154 if (!args) SWIG_fail;
9155 swig_obj[0] = args;
9156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9157 if (!SWIG_IsOK(res1)) {
9158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9159 }
9160 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9161 {
9162 PyThreadState* __tstate = wxPyBeginAllowThreads();
9163 result = (int)(arg1)->GetH();
9164 wxPyEndAllowThreads(__tstate);
9165 if (PyErr_Occurred()) SWIG_fail;
9166 }
9167 resultobj = SWIG_From_int(static_cast< int >(result));
9168 return resultobj;
9169 fail:
9170 return NULL;
9171 }
9172
9173
9174 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9175 PyObject *resultobj = 0;
9176 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9177 int result;
9178 void *argp1 = 0 ;
9179 int res1 = 0 ;
9180 PyObject *swig_obj[1] ;
9181
9182 if (!args) SWIG_fail;
9183 swig_obj[0] = args;
9184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9185 if (!SWIG_IsOK(res1)) {
9186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9187 }
9188 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9189 {
9190 PyThreadState* __tstate = wxPyBeginAllowThreads();
9191 result = (int)(arg1)->GetHeight();
9192 wxPyEndAllowThreads(__tstate);
9193 if (PyErr_Occurred()) SWIG_fail;
9194 }
9195 resultobj = SWIG_From_int(static_cast< int >(result));
9196 return resultobj;
9197 fail:
9198 return NULL;
9199 }
9200
9201
9202 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9203 PyObject *resultobj = 0;
9204 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9205 wxRect result;
9206 void *argp1 = 0 ;
9207 int res1 = 0 ;
9208 PyObject *swig_obj[1] ;
9209
9210 if (!args) SWIG_fail;
9211 swig_obj[0] = args;
9212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9213 if (!SWIG_IsOK(res1)) {
9214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9215 }
9216 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9217 {
9218 PyThreadState* __tstate = wxPyBeginAllowThreads();
9219 result = (arg1)->GetRect();
9220 wxPyEndAllowThreads(__tstate);
9221 if (PyErr_Occurred()) SWIG_fail;
9222 }
9223 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
9224 return resultobj;
9225 fail:
9226 return NULL;
9227 }
9228
9229
9230 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9231 PyObject *resultobj = 0;
9232 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9233 bool result;
9234 void *argp1 = 0 ;
9235 int res1 = 0 ;
9236 PyObject *swig_obj[1] ;
9237
9238 if (!args) SWIG_fail;
9239 swig_obj[0] = args;
9240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9241 if (!SWIG_IsOK(res1)) {
9242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9243 }
9244 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9245 {
9246 PyThreadState* __tstate = wxPyBeginAllowThreads();
9247 result = (bool)(arg1)->HaveRects();
9248 wxPyEndAllowThreads(__tstate);
9249 if (PyErr_Occurred()) SWIG_fail;
9250 }
9251 {
9252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9253 }
9254 return resultobj;
9255 fail:
9256 return NULL;
9257 }
9258
9259
9260 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9261 PyObject *resultobj = 0;
9262 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9263 void *argp1 = 0 ;
9264 int res1 = 0 ;
9265 PyObject *swig_obj[1] ;
9266
9267 if (!args) SWIG_fail;
9268 swig_obj[0] = args;
9269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9270 if (!SWIG_IsOK(res1)) {
9271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9272 }
9273 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9274 {
9275 PyThreadState* __tstate = wxPyBeginAllowThreads();
9276 (arg1)->Reset();
9277 wxPyEndAllowThreads(__tstate);
9278 if (PyErr_Occurred()) SWIG_fail;
9279 }
9280 resultobj = SWIG_Py_Void();
9281 return resultobj;
9282 fail:
9283 return NULL;
9284 }
9285
9286
9287 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9288 PyObject *resultobj = 0;
9289 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9290 void *argp1 = 0 ;
9291 int res1 = 0 ;
9292 PyObject *swig_obj[1] ;
9293
9294 if (!args) SWIG_fail;
9295 swig_obj[0] = args;
9296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9297 if (!SWIG_IsOK(res1)) {
9298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9299 }
9300 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9301 {
9302 PyThreadState* __tstate = wxPyBeginAllowThreads();
9303 wxRegionIterator_Next(arg1);
9304 wxPyEndAllowThreads(__tstate);
9305 if (PyErr_Occurred()) SWIG_fail;
9306 }
9307 resultobj = SWIG_Py_Void();
9308 return resultobj;
9309 fail:
9310 return NULL;
9311 }
9312
9313
9314 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9315 PyObject *resultobj = 0;
9316 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9317 bool result;
9318 void *argp1 = 0 ;
9319 int res1 = 0 ;
9320 PyObject *swig_obj[1] ;
9321
9322 if (!args) SWIG_fail;
9323 swig_obj[0] = args;
9324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9325 if (!SWIG_IsOK(res1)) {
9326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9327 }
9328 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9329 {
9330 PyThreadState* __tstate = wxPyBeginAllowThreads();
9331 result = (bool)wxRegionIterator___nonzero__(arg1);
9332 wxPyEndAllowThreads(__tstate);
9333 if (PyErr_Occurred()) SWIG_fail;
9334 }
9335 {
9336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9337 }
9338 return resultobj;
9339 fail:
9340 return NULL;
9341 }
9342
9343
9344 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9345 PyObject *obj;
9346 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9347 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
9348 return SWIG_Py_Void();
9349 }
9350
9351 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9352 return SWIG_Python_InitShadowInstance(args);
9353 }
9354
9355 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9356 PyObject *resultobj = 0;
9357 wxNativeFontInfo *result = 0 ;
9358
9359 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
9360 {
9361 PyThreadState* __tstate = wxPyBeginAllowThreads();
9362 result = (wxNativeFontInfo *)new wxNativeFontInfo();
9363 wxPyEndAllowThreads(__tstate);
9364 if (PyErr_Occurred()) SWIG_fail;
9365 }
9366 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
9367 return resultobj;
9368 fail:
9369 return NULL;
9370 }
9371
9372
9373 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9374 PyObject *resultobj = 0;
9375 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9376 void *argp1 = 0 ;
9377 int res1 = 0 ;
9378 PyObject *swig_obj[1] ;
9379
9380 if (!args) SWIG_fail;
9381 swig_obj[0] = args;
9382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
9383 if (!SWIG_IsOK(res1)) {
9384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9385 }
9386 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9387 {
9388 PyThreadState* __tstate = wxPyBeginAllowThreads();
9389 delete arg1;
9390
9391 wxPyEndAllowThreads(__tstate);
9392 if (PyErr_Occurred()) SWIG_fail;
9393 }
9394 resultobj = SWIG_Py_Void();
9395 return resultobj;
9396 fail:
9397 return NULL;
9398 }
9399
9400
9401 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9402 PyObject *resultobj = 0;
9403 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9404 void *argp1 = 0 ;
9405 int res1 = 0 ;
9406 PyObject *swig_obj[1] ;
9407
9408 if (!args) SWIG_fail;
9409 swig_obj[0] = args;
9410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9411 if (!SWIG_IsOK(res1)) {
9412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9413 }
9414 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9415 {
9416 PyThreadState* __tstate = wxPyBeginAllowThreads();
9417 (arg1)->Init();
9418 wxPyEndAllowThreads(__tstate);
9419 if (PyErr_Occurred()) SWIG_fail;
9420 }
9421 resultobj = SWIG_Py_Void();
9422 return resultobj;
9423 fail:
9424 return NULL;
9425 }
9426
9427
9428 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9429 PyObject *resultobj = 0;
9430 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9431 wxFont *arg2 = 0 ;
9432 void *argp1 = 0 ;
9433 int res1 = 0 ;
9434 void *argp2 = 0 ;
9435 int res2 = 0 ;
9436 PyObject * obj0 = 0 ;
9437 PyObject * obj1 = 0 ;
9438 char * kwnames[] = {
9439 (char *) "self",(char *) "font", NULL
9440 };
9441
9442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
9443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9444 if (!SWIG_IsOK(res1)) {
9445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9446 }
9447 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9448 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
9449 if (!SWIG_IsOK(res2)) {
9450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9451 }
9452 if (!argp2) {
9453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9454 }
9455 arg2 = reinterpret_cast< wxFont * >(argp2);
9456 {
9457 PyThreadState* __tstate = wxPyBeginAllowThreads();
9458 (arg1)->InitFromFont((wxFont const &)*arg2);
9459 wxPyEndAllowThreads(__tstate);
9460 if (PyErr_Occurred()) SWIG_fail;
9461 }
9462 resultobj = SWIG_Py_Void();
9463 return resultobj;
9464 fail:
9465 return NULL;
9466 }
9467
9468
9469 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9470 PyObject *resultobj = 0;
9471 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9472 int result;
9473 void *argp1 = 0 ;
9474 int res1 = 0 ;
9475 PyObject *swig_obj[1] ;
9476
9477 if (!args) SWIG_fail;
9478 swig_obj[0] = args;
9479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9480 if (!SWIG_IsOK(res1)) {
9481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9482 }
9483 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9484 {
9485 PyThreadState* __tstate = wxPyBeginAllowThreads();
9486 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
9487 wxPyEndAllowThreads(__tstate);
9488 if (PyErr_Occurred()) SWIG_fail;
9489 }
9490 resultobj = SWIG_From_int(static_cast< int >(result));
9491 return resultobj;
9492 fail:
9493 return NULL;
9494 }
9495
9496
9497 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9498 PyObject *resultobj = 0;
9499 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9500 wxFontStyle result;
9501 void *argp1 = 0 ;
9502 int res1 = 0 ;
9503 PyObject *swig_obj[1] ;
9504
9505 if (!args) SWIG_fail;
9506 swig_obj[0] = args;
9507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9508 if (!SWIG_IsOK(res1)) {
9509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9510 }
9511 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9512 {
9513 PyThreadState* __tstate = wxPyBeginAllowThreads();
9514 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
9515 wxPyEndAllowThreads(__tstate);
9516 if (PyErr_Occurred()) SWIG_fail;
9517 }
9518 resultobj = SWIG_From_int(static_cast< int >(result));
9519 return resultobj;
9520 fail:
9521 return NULL;
9522 }
9523
9524
9525 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9526 PyObject *resultobj = 0;
9527 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9528 wxFontWeight result;
9529 void *argp1 = 0 ;
9530 int res1 = 0 ;
9531 PyObject *swig_obj[1] ;
9532
9533 if (!args) SWIG_fail;
9534 swig_obj[0] = args;
9535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9536 if (!SWIG_IsOK(res1)) {
9537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9538 }
9539 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9540 {
9541 PyThreadState* __tstate = wxPyBeginAllowThreads();
9542 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
9543 wxPyEndAllowThreads(__tstate);
9544 if (PyErr_Occurred()) SWIG_fail;
9545 }
9546 resultobj = SWIG_From_int(static_cast< int >(result));
9547 return resultobj;
9548 fail:
9549 return NULL;
9550 }
9551
9552
9553 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9554 PyObject *resultobj = 0;
9555 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9556 bool result;
9557 void *argp1 = 0 ;
9558 int res1 = 0 ;
9559 PyObject *swig_obj[1] ;
9560
9561 if (!args) SWIG_fail;
9562 swig_obj[0] = args;
9563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9564 if (!SWIG_IsOK(res1)) {
9565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9566 }
9567 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9568 {
9569 PyThreadState* __tstate = wxPyBeginAllowThreads();
9570 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
9571 wxPyEndAllowThreads(__tstate);
9572 if (PyErr_Occurred()) SWIG_fail;
9573 }
9574 {
9575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9576 }
9577 return resultobj;
9578 fail:
9579 return NULL;
9580 }
9581
9582
9583 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9584 PyObject *resultobj = 0;
9585 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9586 wxString result;
9587 void *argp1 = 0 ;
9588 int res1 = 0 ;
9589 PyObject *swig_obj[1] ;
9590
9591 if (!args) SWIG_fail;
9592 swig_obj[0] = args;
9593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9594 if (!SWIG_IsOK(res1)) {
9595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9596 }
9597 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9598 {
9599 PyThreadState* __tstate = wxPyBeginAllowThreads();
9600 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
9601 wxPyEndAllowThreads(__tstate);
9602 if (PyErr_Occurred()) SWIG_fail;
9603 }
9604 {
9605 #if wxUSE_UNICODE
9606 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9607 #else
9608 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9609 #endif
9610 }
9611 return resultobj;
9612 fail:
9613 return NULL;
9614 }
9615
9616
9617 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9618 PyObject *resultobj = 0;
9619 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9620 wxFontFamily result;
9621 void *argp1 = 0 ;
9622 int res1 = 0 ;
9623 PyObject *swig_obj[1] ;
9624
9625 if (!args) SWIG_fail;
9626 swig_obj[0] = args;
9627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9628 if (!SWIG_IsOK(res1)) {
9629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9630 }
9631 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9632 {
9633 PyThreadState* __tstate = wxPyBeginAllowThreads();
9634 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
9635 wxPyEndAllowThreads(__tstate);
9636 if (PyErr_Occurred()) SWIG_fail;
9637 }
9638 resultobj = SWIG_From_int(static_cast< int >(result));
9639 return resultobj;
9640 fail:
9641 return NULL;
9642 }
9643
9644
9645 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9646 PyObject *resultobj = 0;
9647 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9648 wxFontEncoding result;
9649 void *argp1 = 0 ;
9650 int res1 = 0 ;
9651 PyObject *swig_obj[1] ;
9652
9653 if (!args) SWIG_fail;
9654 swig_obj[0] = args;
9655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9656 if (!SWIG_IsOK(res1)) {
9657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9658 }
9659 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9660 {
9661 PyThreadState* __tstate = wxPyBeginAllowThreads();
9662 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
9663 wxPyEndAllowThreads(__tstate);
9664 if (PyErr_Occurred()) SWIG_fail;
9665 }
9666 resultobj = SWIG_From_int(static_cast< int >(result));
9667 return resultobj;
9668 fail:
9669 return NULL;
9670 }
9671
9672
9673 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9674 PyObject *resultobj = 0;
9675 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9676 int arg2 ;
9677 void *argp1 = 0 ;
9678 int res1 = 0 ;
9679 int val2 ;
9680 int ecode2 = 0 ;
9681 PyObject * obj0 = 0 ;
9682 PyObject * obj1 = 0 ;
9683 char * kwnames[] = {
9684 (char *) "self",(char *) "pointsize", NULL
9685 };
9686
9687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
9688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9689 if (!SWIG_IsOK(res1)) {
9690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9691 }
9692 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9693 ecode2 = SWIG_AsVal_int(obj1, &val2);
9694 if (!SWIG_IsOK(ecode2)) {
9695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
9696 }
9697 arg2 = static_cast< int >(val2);
9698 {
9699 PyThreadState* __tstate = wxPyBeginAllowThreads();
9700 (arg1)->SetPointSize(arg2);
9701 wxPyEndAllowThreads(__tstate);
9702 if (PyErr_Occurred()) SWIG_fail;
9703 }
9704 resultobj = SWIG_Py_Void();
9705 return resultobj;
9706 fail:
9707 return NULL;
9708 }
9709
9710
9711 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9712 PyObject *resultobj = 0;
9713 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9714 wxFontStyle arg2 ;
9715 void *argp1 = 0 ;
9716 int res1 = 0 ;
9717 int val2 ;
9718 int ecode2 = 0 ;
9719 PyObject * obj0 = 0 ;
9720 PyObject * obj1 = 0 ;
9721 char * kwnames[] = {
9722 (char *) "self",(char *) "style", NULL
9723 };
9724
9725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9727 if (!SWIG_IsOK(res1)) {
9728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9729 }
9730 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9731 ecode2 = SWIG_AsVal_int(obj1, &val2);
9732 if (!SWIG_IsOK(ecode2)) {
9733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
9734 }
9735 arg2 = static_cast< wxFontStyle >(val2);
9736 {
9737 PyThreadState* __tstate = wxPyBeginAllowThreads();
9738 (arg1)->SetStyle(arg2);
9739 wxPyEndAllowThreads(__tstate);
9740 if (PyErr_Occurred()) SWIG_fail;
9741 }
9742 resultobj = SWIG_Py_Void();
9743 return resultobj;
9744 fail:
9745 return NULL;
9746 }
9747
9748
9749 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9750 PyObject *resultobj = 0;
9751 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9752 wxFontWeight arg2 ;
9753 void *argp1 = 0 ;
9754 int res1 = 0 ;
9755 int val2 ;
9756 int ecode2 = 0 ;
9757 PyObject * obj0 = 0 ;
9758 PyObject * obj1 = 0 ;
9759 char * kwnames[] = {
9760 (char *) "self",(char *) "weight", NULL
9761 };
9762
9763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
9764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9765 if (!SWIG_IsOK(res1)) {
9766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9767 }
9768 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9769 ecode2 = SWIG_AsVal_int(obj1, &val2);
9770 if (!SWIG_IsOK(ecode2)) {
9771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
9772 }
9773 arg2 = static_cast< wxFontWeight >(val2);
9774 {
9775 PyThreadState* __tstate = wxPyBeginAllowThreads();
9776 (arg1)->SetWeight(arg2);
9777 wxPyEndAllowThreads(__tstate);
9778 if (PyErr_Occurred()) SWIG_fail;
9779 }
9780 resultobj = SWIG_Py_Void();
9781 return resultobj;
9782 fail:
9783 return NULL;
9784 }
9785
9786
9787 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9788 PyObject *resultobj = 0;
9789 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9790 bool arg2 ;
9791 void *argp1 = 0 ;
9792 int res1 = 0 ;
9793 bool val2 ;
9794 int ecode2 = 0 ;
9795 PyObject * obj0 = 0 ;
9796 PyObject * obj1 = 0 ;
9797 char * kwnames[] = {
9798 (char *) "self",(char *) "underlined", NULL
9799 };
9800
9801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
9802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9803 if (!SWIG_IsOK(res1)) {
9804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9805 }
9806 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9807 ecode2 = SWIG_AsVal_bool(obj1, &val2);
9808 if (!SWIG_IsOK(ecode2)) {
9809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
9810 }
9811 arg2 = static_cast< bool >(val2);
9812 {
9813 PyThreadState* __tstate = wxPyBeginAllowThreads();
9814 (arg1)->SetUnderlined(arg2);
9815 wxPyEndAllowThreads(__tstate);
9816 if (PyErr_Occurred()) SWIG_fail;
9817 }
9818 resultobj = SWIG_Py_Void();
9819 return resultobj;
9820 fail:
9821 return NULL;
9822 }
9823
9824
9825 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9826 PyObject *resultobj = 0;
9827 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9828 wxString arg2 ;
9829 bool result;
9830 void *argp1 = 0 ;
9831 int res1 = 0 ;
9832 PyObject * obj0 = 0 ;
9833 PyObject * obj1 = 0 ;
9834 char * kwnames[] = {
9835 (char *) "self",(char *) "facename", NULL
9836 };
9837
9838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
9839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9840 if (!SWIG_IsOK(res1)) {
9841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9842 }
9843 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9844 {
9845 wxString* sptr = wxString_in_helper(obj1);
9846 if (sptr == NULL) SWIG_fail;
9847 arg2 = *sptr;
9848 delete sptr;
9849 }
9850 {
9851 PyThreadState* __tstate = wxPyBeginAllowThreads();
9852 result = (bool)(arg1)->SetFaceName(arg2);
9853 wxPyEndAllowThreads(__tstate);
9854 if (PyErr_Occurred()) SWIG_fail;
9855 }
9856 {
9857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9858 }
9859 return resultobj;
9860 fail:
9861 return NULL;
9862 }
9863
9864
9865 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9866 PyObject *resultobj = 0;
9867 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9868 wxFontFamily arg2 ;
9869 void *argp1 = 0 ;
9870 int res1 = 0 ;
9871 int val2 ;
9872 int ecode2 = 0 ;
9873 PyObject * obj0 = 0 ;
9874 PyObject * obj1 = 0 ;
9875 char * kwnames[] = {
9876 (char *) "self",(char *) "family", NULL
9877 };
9878
9879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
9880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9881 if (!SWIG_IsOK(res1)) {
9882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9883 }
9884 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9885 ecode2 = SWIG_AsVal_int(obj1, &val2);
9886 if (!SWIG_IsOK(ecode2)) {
9887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
9888 }
9889 arg2 = static_cast< wxFontFamily >(val2);
9890 {
9891 PyThreadState* __tstate = wxPyBeginAllowThreads();
9892 (arg1)->SetFamily(arg2);
9893 wxPyEndAllowThreads(__tstate);
9894 if (PyErr_Occurred()) SWIG_fail;
9895 }
9896 resultobj = SWIG_Py_Void();
9897 return resultobj;
9898 fail:
9899 return NULL;
9900 }
9901
9902
9903 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9904 PyObject *resultobj = 0;
9905 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9906 wxFontEncoding arg2 ;
9907 void *argp1 = 0 ;
9908 int res1 = 0 ;
9909 int val2 ;
9910 int ecode2 = 0 ;
9911 PyObject * obj0 = 0 ;
9912 PyObject * obj1 = 0 ;
9913 char * kwnames[] = {
9914 (char *) "self",(char *) "encoding", NULL
9915 };
9916
9917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
9918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9919 if (!SWIG_IsOK(res1)) {
9920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9921 }
9922 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9923 ecode2 = SWIG_AsVal_int(obj1, &val2);
9924 if (!SWIG_IsOK(ecode2)) {
9925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
9926 }
9927 arg2 = static_cast< wxFontEncoding >(val2);
9928 {
9929 PyThreadState* __tstate = wxPyBeginAllowThreads();
9930 (arg1)->SetEncoding(arg2);
9931 wxPyEndAllowThreads(__tstate);
9932 if (PyErr_Occurred()) SWIG_fail;
9933 }
9934 resultobj = SWIG_Py_Void();
9935 return resultobj;
9936 fail:
9937 return NULL;
9938 }
9939
9940
9941 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9942 PyObject *resultobj = 0;
9943 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9944 wxString *arg2 = 0 ;
9945 bool result;
9946 void *argp1 = 0 ;
9947 int res1 = 0 ;
9948 bool temp2 = false ;
9949 PyObject * obj0 = 0 ;
9950 PyObject * obj1 = 0 ;
9951 char * kwnames[] = {
9952 (char *) "self",(char *) "s", NULL
9953 };
9954
9955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
9956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9957 if (!SWIG_IsOK(res1)) {
9958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9959 }
9960 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9961 {
9962 arg2 = wxString_in_helper(obj1);
9963 if (arg2 == NULL) SWIG_fail;
9964 temp2 = true;
9965 }
9966 {
9967 PyThreadState* __tstate = wxPyBeginAllowThreads();
9968 result = (bool)(arg1)->FromString((wxString const &)*arg2);
9969 wxPyEndAllowThreads(__tstate);
9970 if (PyErr_Occurred()) SWIG_fail;
9971 }
9972 {
9973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9974 }
9975 {
9976 if (temp2)
9977 delete arg2;
9978 }
9979 return resultobj;
9980 fail:
9981 {
9982 if (temp2)
9983 delete arg2;
9984 }
9985 return NULL;
9986 }
9987
9988
9989 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9990 PyObject *resultobj = 0;
9991 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9992 wxString result;
9993 void *argp1 = 0 ;
9994 int res1 = 0 ;
9995 PyObject *swig_obj[1] ;
9996
9997 if (!args) SWIG_fail;
9998 swig_obj[0] = args;
9999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10000 if (!SWIG_IsOK(res1)) {
10001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10002 }
10003 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10004 {
10005 PyThreadState* __tstate = wxPyBeginAllowThreads();
10006 result = ((wxNativeFontInfo const *)arg1)->ToString();
10007 wxPyEndAllowThreads(__tstate);
10008 if (PyErr_Occurred()) SWIG_fail;
10009 }
10010 {
10011 #if wxUSE_UNICODE
10012 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10013 #else
10014 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10015 #endif
10016 }
10017 return resultobj;
10018 fail:
10019 return NULL;
10020 }
10021
10022
10023 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10024 PyObject *resultobj = 0;
10025 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10026 wxString result;
10027 void *argp1 = 0 ;
10028 int res1 = 0 ;
10029 PyObject *swig_obj[1] ;
10030
10031 if (!args) SWIG_fail;
10032 swig_obj[0] = args;
10033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10034 if (!SWIG_IsOK(res1)) {
10035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10036 }
10037 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10038 {
10039 PyThreadState* __tstate = wxPyBeginAllowThreads();
10040 result = wxNativeFontInfo___str__(arg1);
10041 wxPyEndAllowThreads(__tstate);
10042 if (PyErr_Occurred()) SWIG_fail;
10043 }
10044 {
10045 #if wxUSE_UNICODE
10046 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10047 #else
10048 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10049 #endif
10050 }
10051 return resultobj;
10052 fail:
10053 return NULL;
10054 }
10055
10056
10057 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10058 PyObject *resultobj = 0;
10059 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10060 wxString *arg2 = 0 ;
10061 bool result;
10062 void *argp1 = 0 ;
10063 int res1 = 0 ;
10064 bool temp2 = false ;
10065 PyObject * obj0 = 0 ;
10066 PyObject * obj1 = 0 ;
10067 char * kwnames[] = {
10068 (char *) "self",(char *) "s", NULL
10069 };
10070
10071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
10072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10073 if (!SWIG_IsOK(res1)) {
10074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10075 }
10076 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10077 {
10078 arg2 = wxString_in_helper(obj1);
10079 if (arg2 == NULL) SWIG_fail;
10080 temp2 = true;
10081 }
10082 {
10083 PyThreadState* __tstate = wxPyBeginAllowThreads();
10084 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
10085 wxPyEndAllowThreads(__tstate);
10086 if (PyErr_Occurred()) SWIG_fail;
10087 }
10088 {
10089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10090 }
10091 {
10092 if (temp2)
10093 delete arg2;
10094 }
10095 return resultobj;
10096 fail:
10097 {
10098 if (temp2)
10099 delete arg2;
10100 }
10101 return NULL;
10102 }
10103
10104
10105 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10106 PyObject *resultobj = 0;
10107 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10108 wxString result;
10109 void *argp1 = 0 ;
10110 int res1 = 0 ;
10111 PyObject *swig_obj[1] ;
10112
10113 if (!args) SWIG_fail;
10114 swig_obj[0] = args;
10115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10116 if (!SWIG_IsOK(res1)) {
10117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10118 }
10119 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10120 {
10121 PyThreadState* __tstate = wxPyBeginAllowThreads();
10122 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
10123 wxPyEndAllowThreads(__tstate);
10124 if (PyErr_Occurred()) SWIG_fail;
10125 }
10126 {
10127 #if wxUSE_UNICODE
10128 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10129 #else
10130 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10131 #endif
10132 }
10133 return resultobj;
10134 fail:
10135 return NULL;
10136 }
10137
10138
10139 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10140 PyObject *obj;
10141 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10142 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
10143 return SWIG_Py_Void();
10144 }
10145
10146 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10147 return SWIG_Python_InitShadowInstance(args);
10148 }
10149
10150 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10151 PyObject *resultobj = 0;
10152 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10153 wxString *arg2 = (wxString *) 0 ;
10154 void *argp1 = 0 ;
10155 int res1 = 0 ;
10156 bool temp2 = false ;
10157 PyObject *swig_obj[2] ;
10158
10159 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
10160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10161 if (!SWIG_IsOK(res1)) {
10162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10163 }
10164 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10165 {
10166 arg2 = wxString_in_helper(swig_obj[1]);
10167 if (arg2 == NULL) SWIG_fail;
10168 temp2 = true;
10169 }
10170 if (arg1) (arg1)->facename = *arg2;
10171
10172 resultobj = SWIG_Py_Void();
10173 {
10174 if (temp2)
10175 delete arg2;
10176 }
10177 return resultobj;
10178 fail:
10179 {
10180 if (temp2)
10181 delete arg2;
10182 }
10183 return NULL;
10184 }
10185
10186
10187 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10188 PyObject *resultobj = 0;
10189 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10190 wxString *result = 0 ;
10191 void *argp1 = 0 ;
10192 int res1 = 0 ;
10193 PyObject *swig_obj[1] ;
10194
10195 if (!args) SWIG_fail;
10196 swig_obj[0] = args;
10197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10198 if (!SWIG_IsOK(res1)) {
10199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10200 }
10201 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10202 result = (wxString *)& ((arg1)->facename);
10203 {
10204 #if wxUSE_UNICODE
10205 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10206 #else
10207 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10208 #endif
10209 }
10210 return resultobj;
10211 fail:
10212 return NULL;
10213 }
10214
10215
10216 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10217 PyObject *resultobj = 0;
10218 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10219 wxFontEncoding arg2 ;
10220 void *argp1 = 0 ;
10221 int res1 = 0 ;
10222 int val2 ;
10223 int ecode2 = 0 ;
10224 PyObject *swig_obj[2] ;
10225
10226 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
10227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10228 if (!SWIG_IsOK(res1)) {
10229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10230 }
10231 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10232 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10233 if (!SWIG_IsOK(ecode2)) {
10234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10235 }
10236 arg2 = static_cast< wxFontEncoding >(val2);
10237 if (arg1) (arg1)->encoding = arg2;
10238
10239 resultobj = SWIG_Py_Void();
10240 return resultobj;
10241 fail:
10242 return NULL;
10243 }
10244
10245
10246 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10247 PyObject *resultobj = 0;
10248 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10249 wxFontEncoding result;
10250 void *argp1 = 0 ;
10251 int res1 = 0 ;
10252 PyObject *swig_obj[1] ;
10253
10254 if (!args) SWIG_fail;
10255 swig_obj[0] = args;
10256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10257 if (!SWIG_IsOK(res1)) {
10258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10259 }
10260 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10261 result = (wxFontEncoding) ((arg1)->encoding);
10262 resultobj = SWIG_From_int(static_cast< int >(result));
10263 return resultobj;
10264 fail:
10265 return NULL;
10266 }
10267
10268
10269 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10270 PyObject *resultobj = 0;
10271 wxNativeEncodingInfo *result = 0 ;
10272
10273 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
10274 {
10275 PyThreadState* __tstate = wxPyBeginAllowThreads();
10276 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
10277 wxPyEndAllowThreads(__tstate);
10278 if (PyErr_Occurred()) SWIG_fail;
10279 }
10280 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
10281 return resultobj;
10282 fail:
10283 return NULL;
10284 }
10285
10286
10287 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10288 PyObject *resultobj = 0;
10289 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10290 void *argp1 = 0 ;
10291 int res1 = 0 ;
10292 PyObject *swig_obj[1] ;
10293
10294 if (!args) SWIG_fail;
10295 swig_obj[0] = args;
10296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
10297 if (!SWIG_IsOK(res1)) {
10298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10299 }
10300 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10301 {
10302 PyThreadState* __tstate = wxPyBeginAllowThreads();
10303 delete arg1;
10304
10305 wxPyEndAllowThreads(__tstate);
10306 if (PyErr_Occurred()) SWIG_fail;
10307 }
10308 resultobj = SWIG_Py_Void();
10309 return resultobj;
10310 fail:
10311 return NULL;
10312 }
10313
10314
10315 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10316 PyObject *resultobj = 0;
10317 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10318 wxString *arg2 = 0 ;
10319 bool result;
10320 void *argp1 = 0 ;
10321 int res1 = 0 ;
10322 bool temp2 = false ;
10323 PyObject * obj0 = 0 ;
10324 PyObject * obj1 = 0 ;
10325 char * kwnames[] = {
10326 (char *) "self",(char *) "s", NULL
10327 };
10328
10329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10331 if (!SWIG_IsOK(res1)) {
10332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10333 }
10334 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10335 {
10336 arg2 = wxString_in_helper(obj1);
10337 if (arg2 == NULL) SWIG_fail;
10338 temp2 = true;
10339 }
10340 {
10341 PyThreadState* __tstate = wxPyBeginAllowThreads();
10342 result = (bool)(arg1)->FromString((wxString const &)*arg2);
10343 wxPyEndAllowThreads(__tstate);
10344 if (PyErr_Occurred()) SWIG_fail;
10345 }
10346 {
10347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10348 }
10349 {
10350 if (temp2)
10351 delete arg2;
10352 }
10353 return resultobj;
10354 fail:
10355 {
10356 if (temp2)
10357 delete arg2;
10358 }
10359 return NULL;
10360 }
10361
10362
10363 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10364 PyObject *resultobj = 0;
10365 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10366 wxString result;
10367 void *argp1 = 0 ;
10368 int res1 = 0 ;
10369 PyObject *swig_obj[1] ;
10370
10371 if (!args) SWIG_fail;
10372 swig_obj[0] = args;
10373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10374 if (!SWIG_IsOK(res1)) {
10375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
10376 }
10377 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10378 {
10379 PyThreadState* __tstate = wxPyBeginAllowThreads();
10380 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
10381 wxPyEndAllowThreads(__tstate);
10382 if (PyErr_Occurred()) SWIG_fail;
10383 }
10384 {
10385 #if wxUSE_UNICODE
10386 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10387 #else
10388 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10389 #endif
10390 }
10391 return resultobj;
10392 fail:
10393 return NULL;
10394 }
10395
10396
10397 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10398 PyObject *obj;
10399 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10400 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
10401 return SWIG_Py_Void();
10402 }
10403
10404 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10405 return SWIG_Python_InitShadowInstance(args);
10406 }
10407
10408 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10409 PyObject *resultobj = 0;
10410 wxFontEncoding arg1 ;
10411 wxNativeEncodingInfo *result = 0 ;
10412 int val1 ;
10413 int ecode1 = 0 ;
10414 PyObject * obj0 = 0 ;
10415 char * kwnames[] = {
10416 (char *) "encoding", NULL
10417 };
10418
10419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
10420 ecode1 = SWIG_AsVal_int(obj0, &val1);
10421 if (!SWIG_IsOK(ecode1)) {
10422 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10423 }
10424 arg1 = static_cast< wxFontEncoding >(val1);
10425 {
10426 PyThreadState* __tstate = wxPyBeginAllowThreads();
10427 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
10428 wxPyEndAllowThreads(__tstate);
10429 if (PyErr_Occurred()) SWIG_fail;
10430 }
10431 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10432 return resultobj;
10433 fail:
10434 return NULL;
10435 }
10436
10437
10438 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10439 PyObject *resultobj = 0;
10440 wxNativeEncodingInfo *arg1 = 0 ;
10441 bool result;
10442 void *argp1 = 0 ;
10443 int res1 = 0 ;
10444 PyObject * obj0 = 0 ;
10445 char * kwnames[] = {
10446 (char *) "info", NULL
10447 };
10448
10449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
10450 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
10451 if (!SWIG_IsOK(res1)) {
10452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10453 }
10454 if (!argp1) {
10455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10456 }
10457 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10458 {
10459 PyThreadState* __tstate = wxPyBeginAllowThreads();
10460 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
10461 wxPyEndAllowThreads(__tstate);
10462 if (PyErr_Occurred()) SWIG_fail;
10463 }
10464 {
10465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10466 }
10467 return resultobj;
10468 fail:
10469 return NULL;
10470 }
10471
10472
10473 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10474 PyObject *resultobj = 0;
10475 wxFontMapper *result = 0 ;
10476
10477 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
10478 {
10479 PyThreadState* __tstate = wxPyBeginAllowThreads();
10480 result = (wxFontMapper *)new wxFontMapper();
10481 wxPyEndAllowThreads(__tstate);
10482 if (PyErr_Occurred()) SWIG_fail;
10483 }
10484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
10485 return resultobj;
10486 fail:
10487 return NULL;
10488 }
10489
10490
10491 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10492 PyObject *resultobj = 0;
10493 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10494 void *argp1 = 0 ;
10495 int res1 = 0 ;
10496 PyObject *swig_obj[1] ;
10497
10498 if (!args) SWIG_fail;
10499 swig_obj[0] = args;
10500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
10501 if (!SWIG_IsOK(res1)) {
10502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10503 }
10504 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10505 {
10506 PyThreadState* __tstate = wxPyBeginAllowThreads();
10507 delete arg1;
10508
10509 wxPyEndAllowThreads(__tstate);
10510 if (PyErr_Occurred()) SWIG_fail;
10511 }
10512 resultobj = SWIG_Py_Void();
10513 return resultobj;
10514 fail:
10515 return NULL;
10516 }
10517
10518
10519 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10520 PyObject *resultobj = 0;
10521 wxFontMapper *result = 0 ;
10522
10523 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
10524 {
10525 PyThreadState* __tstate = wxPyBeginAllowThreads();
10526 result = (wxFontMapper *)wxFontMapper::Get();
10527 wxPyEndAllowThreads(__tstate);
10528 if (PyErr_Occurred()) SWIG_fail;
10529 }
10530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10531 return resultobj;
10532 fail:
10533 return NULL;
10534 }
10535
10536
10537 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10538 PyObject *resultobj = 0;
10539 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10540 wxFontMapper *result = 0 ;
10541 void *argp1 = 0 ;
10542 int res1 = 0 ;
10543 PyObject * obj0 = 0 ;
10544 char * kwnames[] = {
10545 (char *) "mapper", NULL
10546 };
10547
10548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
10549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10550 if (!SWIG_IsOK(res1)) {
10551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10552 }
10553 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10554 {
10555 PyThreadState* __tstate = wxPyBeginAllowThreads();
10556 result = (wxFontMapper *)wxFontMapper::Set(arg1);
10557 wxPyEndAllowThreads(__tstate);
10558 if (PyErr_Occurred()) SWIG_fail;
10559 }
10560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10561 return resultobj;
10562 fail:
10563 return NULL;
10564 }
10565
10566
10567 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10568 PyObject *resultobj = 0;
10569 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10570 wxString *arg2 = 0 ;
10571 bool arg3 = (bool) true ;
10572 wxFontEncoding result;
10573 void *argp1 = 0 ;
10574 int res1 = 0 ;
10575 bool temp2 = false ;
10576 bool val3 ;
10577 int ecode3 = 0 ;
10578 PyObject * obj0 = 0 ;
10579 PyObject * obj1 = 0 ;
10580 PyObject * obj2 = 0 ;
10581 char * kwnames[] = {
10582 (char *) "self",(char *) "charset",(char *) "interactive", NULL
10583 };
10584
10585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10587 if (!SWIG_IsOK(res1)) {
10588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10589 }
10590 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10591 {
10592 arg2 = wxString_in_helper(obj1);
10593 if (arg2 == NULL) SWIG_fail;
10594 temp2 = true;
10595 }
10596 if (obj2) {
10597 ecode3 = SWIG_AsVal_bool(obj2, &val3);
10598 if (!SWIG_IsOK(ecode3)) {
10599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
10600 }
10601 arg3 = static_cast< bool >(val3);
10602 }
10603 {
10604 PyThreadState* __tstate = wxPyBeginAllowThreads();
10605 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
10606 wxPyEndAllowThreads(__tstate);
10607 if (PyErr_Occurred()) SWIG_fail;
10608 }
10609 resultobj = SWIG_From_int(static_cast< int >(result));
10610 {
10611 if (temp2)
10612 delete arg2;
10613 }
10614 return resultobj;
10615 fail:
10616 {
10617 if (temp2)
10618 delete arg2;
10619 }
10620 return NULL;
10621 }
10622
10623
10624 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10625 PyObject *resultobj = 0;
10626 size_t result;
10627
10628 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
10629 {
10630 PyThreadState* __tstate = wxPyBeginAllowThreads();
10631 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
10632 wxPyEndAllowThreads(__tstate);
10633 if (PyErr_Occurred()) SWIG_fail;
10634 }
10635 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
10636 return resultobj;
10637 fail:
10638 return NULL;
10639 }
10640
10641
10642 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10643 PyObject *resultobj = 0;
10644 size_t arg1 ;
10645 wxFontEncoding result;
10646 size_t val1 ;
10647 int ecode1 = 0 ;
10648 PyObject * obj0 = 0 ;
10649 char * kwnames[] = {
10650 (char *) "n", NULL
10651 };
10652
10653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
10654 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
10655 if (!SWIG_IsOK(ecode1)) {
10656 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
10657 }
10658 arg1 = static_cast< size_t >(val1);
10659 {
10660 PyThreadState* __tstate = wxPyBeginAllowThreads();
10661 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
10662 wxPyEndAllowThreads(__tstate);
10663 if (PyErr_Occurred()) SWIG_fail;
10664 }
10665 resultobj = SWIG_From_int(static_cast< int >(result));
10666 return resultobj;
10667 fail:
10668 return NULL;
10669 }
10670
10671
10672 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10673 PyObject *resultobj = 0;
10674 wxFontEncoding arg1 ;
10675 wxString result;
10676 int val1 ;
10677 int ecode1 = 0 ;
10678 PyObject * obj0 = 0 ;
10679 char * kwnames[] = {
10680 (char *) "encoding", NULL
10681 };
10682
10683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
10684 ecode1 = SWIG_AsVal_int(obj0, &val1);
10685 if (!SWIG_IsOK(ecode1)) {
10686 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10687 }
10688 arg1 = static_cast< wxFontEncoding >(val1);
10689 {
10690 PyThreadState* __tstate = wxPyBeginAllowThreads();
10691 result = wxFontMapper::GetEncodingName(arg1);
10692 wxPyEndAllowThreads(__tstate);
10693 if (PyErr_Occurred()) SWIG_fail;
10694 }
10695 {
10696 #if wxUSE_UNICODE
10697 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10698 #else
10699 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10700 #endif
10701 }
10702 return resultobj;
10703 fail:
10704 return NULL;
10705 }
10706
10707
10708 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10709 PyObject *resultobj = 0;
10710 wxFontEncoding arg1 ;
10711 wxString result;
10712 int val1 ;
10713 int ecode1 = 0 ;
10714 PyObject * obj0 = 0 ;
10715 char * kwnames[] = {
10716 (char *) "encoding", NULL
10717 };
10718
10719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
10720 ecode1 = SWIG_AsVal_int(obj0, &val1);
10721 if (!SWIG_IsOK(ecode1)) {
10722 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10723 }
10724 arg1 = static_cast< wxFontEncoding >(val1);
10725 {
10726 PyThreadState* __tstate = wxPyBeginAllowThreads();
10727 result = wxFontMapper::GetEncodingDescription(arg1);
10728 wxPyEndAllowThreads(__tstate);
10729 if (PyErr_Occurred()) SWIG_fail;
10730 }
10731 {
10732 #if wxUSE_UNICODE
10733 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10734 #else
10735 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10736 #endif
10737 }
10738 return resultobj;
10739 fail:
10740 return NULL;
10741 }
10742
10743
10744 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10745 PyObject *resultobj = 0;
10746 wxString *arg1 = 0 ;
10747 wxFontEncoding result;
10748 bool temp1 = false ;
10749 PyObject * obj0 = 0 ;
10750 char * kwnames[] = {
10751 (char *) "name", NULL
10752 };
10753
10754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
10755 {
10756 arg1 = wxString_in_helper(obj0);
10757 if (arg1 == NULL) SWIG_fail;
10758 temp1 = true;
10759 }
10760 {
10761 PyThreadState* __tstate = wxPyBeginAllowThreads();
10762 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
10763 wxPyEndAllowThreads(__tstate);
10764 if (PyErr_Occurred()) SWIG_fail;
10765 }
10766 resultobj = SWIG_From_int(static_cast< int >(result));
10767 {
10768 if (temp1)
10769 delete arg1;
10770 }
10771 return resultobj;
10772 fail:
10773 {
10774 if (temp1)
10775 delete arg1;
10776 }
10777 return NULL;
10778 }
10779
10780
10781 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10782 PyObject *resultobj = 0;
10783 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10784 wxString *arg2 = 0 ;
10785 void *argp1 = 0 ;
10786 int res1 = 0 ;
10787 bool temp2 = false ;
10788 PyObject * obj0 = 0 ;
10789 PyObject * obj1 = 0 ;
10790 char * kwnames[] = {
10791 (char *) "self",(char *) "prefix", NULL
10792 };
10793
10794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
10795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10796 if (!SWIG_IsOK(res1)) {
10797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10798 }
10799 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10800 {
10801 arg2 = wxString_in_helper(obj1);
10802 if (arg2 == NULL) SWIG_fail;
10803 temp2 = true;
10804 }
10805 {
10806 PyThreadState* __tstate = wxPyBeginAllowThreads();
10807 (arg1)->SetConfigPath((wxString const &)*arg2);
10808 wxPyEndAllowThreads(__tstate);
10809 if (PyErr_Occurred()) SWIG_fail;
10810 }
10811 resultobj = SWIG_Py_Void();
10812 {
10813 if (temp2)
10814 delete arg2;
10815 }
10816 return resultobj;
10817 fail:
10818 {
10819 if (temp2)
10820 delete arg2;
10821 }
10822 return NULL;
10823 }
10824
10825
10826 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10827 PyObject *resultobj = 0;
10828 wxString result;
10829
10830 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
10831 {
10832 PyThreadState* __tstate = wxPyBeginAllowThreads();
10833 result = wxFontMapper::GetDefaultConfigPath();
10834 wxPyEndAllowThreads(__tstate);
10835 if (PyErr_Occurred()) SWIG_fail;
10836 }
10837 {
10838 #if wxUSE_UNICODE
10839 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10840 #else
10841 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10842 #endif
10843 }
10844 return resultobj;
10845 fail:
10846 return NULL;
10847 }
10848
10849
10850 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10851 PyObject *resultobj = 0;
10852 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10853 wxFontEncoding arg2 ;
10854 wxString const &arg3_defvalue = wxPyEmptyString ;
10855 wxString *arg3 = (wxString *) &arg3_defvalue ;
10856 bool arg4 = (bool) true ;
10857 PyObject *result = 0 ;
10858 void *argp1 = 0 ;
10859 int res1 = 0 ;
10860 int val2 ;
10861 int ecode2 = 0 ;
10862 bool temp3 = false ;
10863 bool val4 ;
10864 int ecode4 = 0 ;
10865 PyObject * obj0 = 0 ;
10866 PyObject * obj1 = 0 ;
10867 PyObject * obj2 = 0 ;
10868 PyObject * obj3 = 0 ;
10869 char * kwnames[] = {
10870 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
10871 };
10872
10873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10875 if (!SWIG_IsOK(res1)) {
10876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10877 }
10878 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10879 ecode2 = SWIG_AsVal_int(obj1, &val2);
10880 if (!SWIG_IsOK(ecode2)) {
10881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10882 }
10883 arg2 = static_cast< wxFontEncoding >(val2);
10884 if (obj2) {
10885 {
10886 arg3 = wxString_in_helper(obj2);
10887 if (arg3 == NULL) SWIG_fail;
10888 temp3 = true;
10889 }
10890 }
10891 if (obj3) {
10892 ecode4 = SWIG_AsVal_bool(obj3, &val4);
10893 if (!SWIG_IsOK(ecode4)) {
10894 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
10895 }
10896 arg4 = static_cast< bool >(val4);
10897 }
10898 {
10899 PyThreadState* __tstate = wxPyBeginAllowThreads();
10900 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
10901 wxPyEndAllowThreads(__tstate);
10902 if (PyErr_Occurred()) SWIG_fail;
10903 }
10904 resultobj = result;
10905 {
10906 if (temp3)
10907 delete arg3;
10908 }
10909 return resultobj;
10910 fail:
10911 {
10912 if (temp3)
10913 delete arg3;
10914 }
10915 return NULL;
10916 }
10917
10918
10919 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10920 PyObject *resultobj = 0;
10921 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10922 wxFontEncoding arg2 ;
10923 wxString const &arg3_defvalue = wxPyEmptyString ;
10924 wxString *arg3 = (wxString *) &arg3_defvalue ;
10925 bool result;
10926 void *argp1 = 0 ;
10927 int res1 = 0 ;
10928 int val2 ;
10929 int ecode2 = 0 ;
10930 bool temp3 = false ;
10931 PyObject * obj0 = 0 ;
10932 PyObject * obj1 = 0 ;
10933 PyObject * obj2 = 0 ;
10934 char * kwnames[] = {
10935 (char *) "self",(char *) "encoding",(char *) "facename", NULL
10936 };
10937
10938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10940 if (!SWIG_IsOK(res1)) {
10941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10942 }
10943 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10944 ecode2 = SWIG_AsVal_int(obj1, &val2);
10945 if (!SWIG_IsOK(ecode2)) {
10946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10947 }
10948 arg2 = static_cast< wxFontEncoding >(val2);
10949 if (obj2) {
10950 {
10951 arg3 = wxString_in_helper(obj2);
10952 if (arg3 == NULL) SWIG_fail;
10953 temp3 = true;
10954 }
10955 }
10956 {
10957 PyThreadState* __tstate = wxPyBeginAllowThreads();
10958 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
10959 wxPyEndAllowThreads(__tstate);
10960 if (PyErr_Occurred()) SWIG_fail;
10961 }
10962 {
10963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10964 }
10965 {
10966 if (temp3)
10967 delete arg3;
10968 }
10969 return resultobj;
10970 fail:
10971 {
10972 if (temp3)
10973 delete arg3;
10974 }
10975 return NULL;
10976 }
10977
10978
10979 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10980 PyObject *resultobj = 0;
10981 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10982 wxWindow *arg2 = (wxWindow *) 0 ;
10983 void *argp1 = 0 ;
10984 int res1 = 0 ;
10985 void *argp2 = 0 ;
10986 int res2 = 0 ;
10987 PyObject * obj0 = 0 ;
10988 PyObject * obj1 = 0 ;
10989 char * kwnames[] = {
10990 (char *) "self",(char *) "parent", NULL
10991 };
10992
10993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
10994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10995 if (!SWIG_IsOK(res1)) {
10996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10997 }
10998 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10999 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11000 if (!SWIG_IsOK(res2)) {
11001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
11002 }
11003 arg2 = reinterpret_cast< wxWindow * >(argp2);
11004 {
11005 PyThreadState* __tstate = wxPyBeginAllowThreads();
11006 (arg1)->SetDialogParent(arg2);
11007 wxPyEndAllowThreads(__tstate);
11008 if (PyErr_Occurred()) SWIG_fail;
11009 }
11010 resultobj = SWIG_Py_Void();
11011 return resultobj;
11012 fail:
11013 return NULL;
11014 }
11015
11016
11017 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11018 PyObject *resultobj = 0;
11019 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11020 wxString *arg2 = 0 ;
11021 void *argp1 = 0 ;
11022 int res1 = 0 ;
11023 bool temp2 = false ;
11024 PyObject * obj0 = 0 ;
11025 PyObject * obj1 = 0 ;
11026 char * kwnames[] = {
11027 (char *) "self",(char *) "title", NULL
11028 };
11029
11030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
11031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11032 if (!SWIG_IsOK(res1)) {
11033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11034 }
11035 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11036 {
11037 arg2 = wxString_in_helper(obj1);
11038 if (arg2 == NULL) SWIG_fail;
11039 temp2 = true;
11040 }
11041 {
11042 PyThreadState* __tstate = wxPyBeginAllowThreads();
11043 (arg1)->SetDialogTitle((wxString const &)*arg2);
11044 wxPyEndAllowThreads(__tstate);
11045 if (PyErr_Occurred()) SWIG_fail;
11046 }
11047 resultobj = SWIG_Py_Void();
11048 {
11049 if (temp2)
11050 delete arg2;
11051 }
11052 return resultobj;
11053 fail:
11054 {
11055 if (temp2)
11056 delete arg2;
11057 }
11058 return NULL;
11059 }
11060
11061
11062 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11063 PyObject *obj;
11064 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11065 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
11066 return SWIG_Py_Void();
11067 }
11068
11069 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11070 return SWIG_Python_InitShadowInstance(args);
11071 }
11072
11073 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11074 PyObject *resultobj = 0;
11075 int arg1 ;
11076 int arg2 ;
11077 int arg3 ;
11078 int arg4 ;
11079 bool arg5 = (bool) false ;
11080 wxString const &arg6_defvalue = wxPyEmptyString ;
11081 wxString *arg6 = (wxString *) &arg6_defvalue ;
11082 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11083 wxFont *result = 0 ;
11084 int val1 ;
11085 int ecode1 = 0 ;
11086 int val2 ;
11087 int ecode2 = 0 ;
11088 int val3 ;
11089 int ecode3 = 0 ;
11090 int val4 ;
11091 int ecode4 = 0 ;
11092 bool val5 ;
11093 int ecode5 = 0 ;
11094 bool temp6 = false ;
11095 int val7 ;
11096 int ecode7 = 0 ;
11097 PyObject * obj0 = 0 ;
11098 PyObject * obj1 = 0 ;
11099 PyObject * obj2 = 0 ;
11100 PyObject * obj3 = 0 ;
11101 PyObject * obj4 = 0 ;
11102 PyObject * obj5 = 0 ;
11103 PyObject * obj6 = 0 ;
11104 char * kwnames[] = {
11105 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11106 };
11107
11108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11109 ecode1 = SWIG_AsVal_int(obj0, &val1);
11110 if (!SWIG_IsOK(ecode1)) {
11111 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11112 }
11113 arg1 = static_cast< int >(val1);
11114 ecode2 = SWIG_AsVal_int(obj1, &val2);
11115 if (!SWIG_IsOK(ecode2)) {
11116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11117 }
11118 arg2 = static_cast< int >(val2);
11119 ecode3 = SWIG_AsVal_int(obj2, &val3);
11120 if (!SWIG_IsOK(ecode3)) {
11121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11122 }
11123 arg3 = static_cast< int >(val3);
11124 ecode4 = SWIG_AsVal_int(obj3, &val4);
11125 if (!SWIG_IsOK(ecode4)) {
11126 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11127 }
11128 arg4 = static_cast< int >(val4);
11129 if (obj4) {
11130 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11131 if (!SWIG_IsOK(ecode5)) {
11132 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11133 }
11134 arg5 = static_cast< bool >(val5);
11135 }
11136 if (obj5) {
11137 {
11138 arg6 = wxString_in_helper(obj5);
11139 if (arg6 == NULL) SWIG_fail;
11140 temp6 = true;
11141 }
11142 }
11143 if (obj6) {
11144 ecode7 = SWIG_AsVal_int(obj6, &val7);
11145 if (!SWIG_IsOK(ecode7)) {
11146 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11147 }
11148 arg7 = static_cast< wxFontEncoding >(val7);
11149 }
11150 {
11151 if (!wxPyCheckForApp()) SWIG_fail;
11152 PyThreadState* __tstate = wxPyBeginAllowThreads();
11153 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11154 wxPyEndAllowThreads(__tstate);
11155 if (PyErr_Occurred()) SWIG_fail;
11156 }
11157 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
11158 {
11159 if (temp6)
11160 delete arg6;
11161 }
11162 return resultobj;
11163 fail:
11164 {
11165 if (temp6)
11166 delete arg6;
11167 }
11168 return NULL;
11169 }
11170
11171
11172 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11173 PyObject *resultobj = 0;
11174 wxFont *arg1 = (wxFont *) 0 ;
11175 void *argp1 = 0 ;
11176 int res1 = 0 ;
11177 PyObject *swig_obj[1] ;
11178
11179 if (!args) SWIG_fail;
11180 swig_obj[0] = args;
11181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
11182 if (!SWIG_IsOK(res1)) {
11183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11184 }
11185 arg1 = reinterpret_cast< wxFont * >(argp1);
11186 {
11187 PyThreadState* __tstate = wxPyBeginAllowThreads();
11188 delete arg1;
11189
11190 wxPyEndAllowThreads(__tstate);
11191 if (PyErr_Occurred()) SWIG_fail;
11192 }
11193 resultobj = SWIG_Py_Void();
11194 return resultobj;
11195 fail:
11196 return NULL;
11197 }
11198
11199
11200 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11201 PyObject *resultobj = 0;
11202 wxNativeFontInfo *arg1 = 0 ;
11203 wxFont *result = 0 ;
11204 void *argp1 = 0 ;
11205 int res1 = 0 ;
11206 PyObject * obj0 = 0 ;
11207 char * kwnames[] = {
11208 (char *) "info", NULL
11209 };
11210
11211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
11212 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
11213 if (!SWIG_IsOK(res1)) {
11214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11215 }
11216 if (!argp1) {
11217 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11218 }
11219 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11220 {
11221 if (!wxPyCheckForApp()) SWIG_fail;
11222 PyThreadState* __tstate = wxPyBeginAllowThreads();
11223 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
11224 wxPyEndAllowThreads(__tstate);
11225 if (PyErr_Occurred()) SWIG_fail;
11226 }
11227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11228 return resultobj;
11229 fail:
11230 return NULL;
11231 }
11232
11233
11234 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11235 PyObject *resultobj = 0;
11236 wxString *arg1 = 0 ;
11237 wxFont *result = 0 ;
11238 bool temp1 = false ;
11239 PyObject * obj0 = 0 ;
11240 char * kwnames[] = {
11241 (char *) "info", NULL
11242 };
11243
11244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
11245 {
11246 arg1 = wxString_in_helper(obj0);
11247 if (arg1 == NULL) SWIG_fail;
11248 temp1 = true;
11249 }
11250 {
11251 if (!wxPyCheckForApp()) SWIG_fail;
11252 PyThreadState* __tstate = wxPyBeginAllowThreads();
11253 result = (wxFont *)new_wxFont((wxString const &)*arg1);
11254 wxPyEndAllowThreads(__tstate);
11255 if (PyErr_Occurred()) SWIG_fail;
11256 }
11257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11258 {
11259 if (temp1)
11260 delete arg1;
11261 }
11262 return resultobj;
11263 fail:
11264 {
11265 if (temp1)
11266 delete arg1;
11267 }
11268 return NULL;
11269 }
11270
11271
11272 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11273 PyObject *resultobj = 0;
11274 int arg1 ;
11275 wxFontFamily arg2 ;
11276 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11277 wxString const &arg4_defvalue = wxPyEmptyString ;
11278 wxString *arg4 = (wxString *) &arg4_defvalue ;
11279 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11280 wxFont *result = 0 ;
11281 int val1 ;
11282 int ecode1 = 0 ;
11283 int val2 ;
11284 int ecode2 = 0 ;
11285 int val3 ;
11286 int ecode3 = 0 ;
11287 bool temp4 = false ;
11288 int val5 ;
11289 int ecode5 = 0 ;
11290 PyObject * obj0 = 0 ;
11291 PyObject * obj1 = 0 ;
11292 PyObject * obj2 = 0 ;
11293 PyObject * obj3 = 0 ;
11294 PyObject * obj4 = 0 ;
11295 char * kwnames[] = {
11296 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11297 };
11298
11299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11300 ecode1 = SWIG_AsVal_int(obj0, &val1);
11301 if (!SWIG_IsOK(ecode1)) {
11302 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11303 }
11304 arg1 = static_cast< int >(val1);
11305 ecode2 = SWIG_AsVal_int(obj1, &val2);
11306 if (!SWIG_IsOK(ecode2)) {
11307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
11308 }
11309 arg2 = static_cast< wxFontFamily >(val2);
11310 if (obj2) {
11311 ecode3 = SWIG_AsVal_int(obj2, &val3);
11312 if (!SWIG_IsOK(ecode3)) {
11313 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
11314 }
11315 arg3 = static_cast< int >(val3);
11316 }
11317 if (obj3) {
11318 {
11319 arg4 = wxString_in_helper(obj3);
11320 if (arg4 == NULL) SWIG_fail;
11321 temp4 = true;
11322 }
11323 }
11324 if (obj4) {
11325 ecode5 = SWIG_AsVal_int(obj4, &val5);
11326 if (!SWIG_IsOK(ecode5)) {
11327 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11328 }
11329 arg5 = static_cast< wxFontEncoding >(val5);
11330 }
11331 {
11332 if (!wxPyCheckForApp()) SWIG_fail;
11333 PyThreadState* __tstate = wxPyBeginAllowThreads();
11334 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11335 wxPyEndAllowThreads(__tstate);
11336 if (PyErr_Occurred()) SWIG_fail;
11337 }
11338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11339 {
11340 if (temp4)
11341 delete arg4;
11342 }
11343 return resultobj;
11344 fail:
11345 {
11346 if (temp4)
11347 delete arg4;
11348 }
11349 return NULL;
11350 }
11351
11352
11353 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11354 PyObject *resultobj = 0;
11355 wxSize *arg1 = 0 ;
11356 int arg2 ;
11357 int arg3 ;
11358 int arg4 ;
11359 bool arg5 = (bool) false ;
11360 wxString const &arg6_defvalue = wxEmptyString ;
11361 wxString *arg6 = (wxString *) &arg6_defvalue ;
11362 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11363 wxFont *result = 0 ;
11364 wxSize temp1 ;
11365 int val2 ;
11366 int ecode2 = 0 ;
11367 int val3 ;
11368 int ecode3 = 0 ;
11369 int val4 ;
11370 int ecode4 = 0 ;
11371 bool val5 ;
11372 int ecode5 = 0 ;
11373 bool temp6 = false ;
11374 int val7 ;
11375 int ecode7 = 0 ;
11376 PyObject * obj0 = 0 ;
11377 PyObject * obj1 = 0 ;
11378 PyObject * obj2 = 0 ;
11379 PyObject * obj3 = 0 ;
11380 PyObject * obj4 = 0 ;
11381 PyObject * obj5 = 0 ;
11382 PyObject * obj6 = 0 ;
11383 char * kwnames[] = {
11384 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
11385 };
11386
11387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11388 {
11389 arg1 = &temp1;
11390 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11391 }
11392 ecode2 = SWIG_AsVal_int(obj1, &val2);
11393 if (!SWIG_IsOK(ecode2)) {
11394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
11395 }
11396 arg2 = static_cast< int >(val2);
11397 ecode3 = SWIG_AsVal_int(obj2, &val3);
11398 if (!SWIG_IsOK(ecode3)) {
11399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11400 }
11401 arg3 = static_cast< int >(val3);
11402 ecode4 = SWIG_AsVal_int(obj3, &val4);
11403 if (!SWIG_IsOK(ecode4)) {
11404 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
11405 }
11406 arg4 = static_cast< int >(val4);
11407 if (obj4) {
11408 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11409 if (!SWIG_IsOK(ecode5)) {
11410 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
11411 }
11412 arg5 = static_cast< bool >(val5);
11413 }
11414 if (obj5) {
11415 {
11416 arg6 = wxString_in_helper(obj5);
11417 if (arg6 == NULL) SWIG_fail;
11418 temp6 = true;
11419 }
11420 }
11421 if (obj6) {
11422 ecode7 = SWIG_AsVal_int(obj6, &val7);
11423 if (!SWIG_IsOK(ecode7)) {
11424 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11425 }
11426 arg7 = static_cast< wxFontEncoding >(val7);
11427 }
11428 {
11429 if (!wxPyCheckForApp()) SWIG_fail;
11430 PyThreadState* __tstate = wxPyBeginAllowThreads();
11431 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11432 wxPyEndAllowThreads(__tstate);
11433 if (PyErr_Occurred()) SWIG_fail;
11434 }
11435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11436 {
11437 if (temp6)
11438 delete arg6;
11439 }
11440 return resultobj;
11441 fail:
11442 {
11443 if (temp6)
11444 delete arg6;
11445 }
11446 return NULL;
11447 }
11448
11449
11450 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11451 PyObject *resultobj = 0;
11452 wxSize *arg1 = 0 ;
11453 wxFontFamily arg2 ;
11454 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11455 wxString const &arg4_defvalue = wxEmptyString ;
11456 wxString *arg4 = (wxString *) &arg4_defvalue ;
11457 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11458 wxFont *result = 0 ;
11459 wxSize temp1 ;
11460 int val2 ;
11461 int ecode2 = 0 ;
11462 int val3 ;
11463 int ecode3 = 0 ;
11464 bool temp4 = false ;
11465 int val5 ;
11466 int ecode5 = 0 ;
11467 PyObject * obj0 = 0 ;
11468 PyObject * obj1 = 0 ;
11469 PyObject * obj2 = 0 ;
11470 PyObject * obj3 = 0 ;
11471 PyObject * obj4 = 0 ;
11472 char * kwnames[] = {
11473 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11474 };
11475
11476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11477 {
11478 arg1 = &temp1;
11479 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11480 }
11481 ecode2 = SWIG_AsVal_int(obj1, &val2);
11482 if (!SWIG_IsOK(ecode2)) {
11483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
11484 }
11485 arg2 = static_cast< wxFontFamily >(val2);
11486 if (obj2) {
11487 ecode3 = SWIG_AsVal_int(obj2, &val3);
11488 if (!SWIG_IsOK(ecode3)) {
11489 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11490 }
11491 arg3 = static_cast< int >(val3);
11492 }
11493 if (obj3) {
11494 {
11495 arg4 = wxString_in_helper(obj3);
11496 if (arg4 == NULL) SWIG_fail;
11497 temp4 = true;
11498 }
11499 }
11500 if (obj4) {
11501 ecode5 = SWIG_AsVal_int(obj4, &val5);
11502 if (!SWIG_IsOK(ecode5)) {
11503 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11504 }
11505 arg5 = static_cast< wxFontEncoding >(val5);
11506 }
11507 {
11508 if (!wxPyCheckForApp()) SWIG_fail;
11509 PyThreadState* __tstate = wxPyBeginAllowThreads();
11510 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11511 wxPyEndAllowThreads(__tstate);
11512 if (PyErr_Occurred()) SWIG_fail;
11513 }
11514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11515 {
11516 if (temp4)
11517 delete arg4;
11518 }
11519 return resultobj;
11520 fail:
11521 {
11522 if (temp4)
11523 delete arg4;
11524 }
11525 return NULL;
11526 }
11527
11528
11529 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11530 PyObject *resultobj = 0;
11531 wxFont *arg1 = (wxFont *) 0 ;
11532 bool result;
11533 void *argp1 = 0 ;
11534 int res1 = 0 ;
11535 PyObject *swig_obj[1] ;
11536
11537 if (!args) SWIG_fail;
11538 swig_obj[0] = args;
11539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11540 if (!SWIG_IsOK(res1)) {
11541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
11542 }
11543 arg1 = reinterpret_cast< wxFont * >(argp1);
11544 {
11545 PyThreadState* __tstate = wxPyBeginAllowThreads();
11546 result = (bool)((wxFont const *)arg1)->Ok();
11547 wxPyEndAllowThreads(__tstate);
11548 if (PyErr_Occurred()) SWIG_fail;
11549 }
11550 {
11551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11552 }
11553 return resultobj;
11554 fail:
11555 return NULL;
11556 }
11557
11558
11559 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11560 PyObject *resultobj = 0;
11561 wxFont *arg1 = (wxFont *) 0 ;
11562 wxFont *arg2 = (wxFont *) 0 ;
11563 bool result;
11564 void *argp1 = 0 ;
11565 int res1 = 0 ;
11566 void *argp2 = 0 ;
11567 int res2 = 0 ;
11568 PyObject * obj0 = 0 ;
11569 PyObject * obj1 = 0 ;
11570 char * kwnames[] = {
11571 (char *) "self",(char *) "other", NULL
11572 };
11573
11574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
11575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11576 if (!SWIG_IsOK(res1)) {
11577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
11578 }
11579 arg1 = reinterpret_cast< wxFont * >(argp1);
11580 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11581 if (!SWIG_IsOK(res2)) {
11582 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
11583 }
11584 arg2 = reinterpret_cast< wxFont * >(argp2);
11585 {
11586 PyThreadState* __tstate = wxPyBeginAllowThreads();
11587 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
11588 wxPyEndAllowThreads(__tstate);
11589 if (PyErr_Occurred()) SWIG_fail;
11590 }
11591 {
11592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11593 }
11594 return resultobj;
11595 fail:
11596 return NULL;
11597 }
11598
11599
11600 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11601 PyObject *resultobj = 0;
11602 wxFont *arg1 = (wxFont *) 0 ;
11603 wxFont *arg2 = (wxFont *) 0 ;
11604 bool result;
11605 void *argp1 = 0 ;
11606 int res1 = 0 ;
11607 void *argp2 = 0 ;
11608 int res2 = 0 ;
11609 PyObject * obj0 = 0 ;
11610 PyObject * obj1 = 0 ;
11611 char * kwnames[] = {
11612 (char *) "self",(char *) "other", NULL
11613 };
11614
11615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
11616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11617 if (!SWIG_IsOK(res1)) {
11618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
11619 }
11620 arg1 = reinterpret_cast< wxFont * >(argp1);
11621 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11622 if (!SWIG_IsOK(res2)) {
11623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
11624 }
11625 arg2 = reinterpret_cast< wxFont * >(argp2);
11626 {
11627 PyThreadState* __tstate = wxPyBeginAllowThreads();
11628 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
11629 wxPyEndAllowThreads(__tstate);
11630 if (PyErr_Occurred()) SWIG_fail;
11631 }
11632 {
11633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11634 }
11635 return resultobj;
11636 fail:
11637 return NULL;
11638 }
11639
11640
11641 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11642 PyObject *resultobj = 0;
11643 wxFont *arg1 = (wxFont *) 0 ;
11644 int result;
11645 void *argp1 = 0 ;
11646 int res1 = 0 ;
11647 PyObject *swig_obj[1] ;
11648
11649 if (!args) SWIG_fail;
11650 swig_obj[0] = args;
11651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11652 if (!SWIG_IsOK(res1)) {
11653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11654 }
11655 arg1 = reinterpret_cast< wxFont * >(argp1);
11656 {
11657 PyThreadState* __tstate = wxPyBeginAllowThreads();
11658 result = (int)((wxFont const *)arg1)->GetPointSize();
11659 wxPyEndAllowThreads(__tstate);
11660 if (PyErr_Occurred()) SWIG_fail;
11661 }
11662 resultobj = SWIG_From_int(static_cast< int >(result));
11663 return resultobj;
11664 fail:
11665 return NULL;
11666 }
11667
11668
11669 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11670 PyObject *resultobj = 0;
11671 wxFont *arg1 = (wxFont *) 0 ;
11672 wxSize result;
11673 void *argp1 = 0 ;
11674 int res1 = 0 ;
11675 PyObject *swig_obj[1] ;
11676
11677 if (!args) SWIG_fail;
11678 swig_obj[0] = args;
11679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11680 if (!SWIG_IsOK(res1)) {
11681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11682 }
11683 arg1 = reinterpret_cast< wxFont * >(argp1);
11684 {
11685 PyThreadState* __tstate = wxPyBeginAllowThreads();
11686 result = ((wxFont const *)arg1)->GetPixelSize();
11687 wxPyEndAllowThreads(__tstate);
11688 if (PyErr_Occurred()) SWIG_fail;
11689 }
11690 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
11691 return resultobj;
11692 fail:
11693 return NULL;
11694 }
11695
11696
11697 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11698 PyObject *resultobj = 0;
11699 wxFont *arg1 = (wxFont *) 0 ;
11700 bool result;
11701 void *argp1 = 0 ;
11702 int res1 = 0 ;
11703 PyObject *swig_obj[1] ;
11704
11705 if (!args) SWIG_fail;
11706 swig_obj[0] = args;
11707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11708 if (!SWIG_IsOK(res1)) {
11709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
11710 }
11711 arg1 = reinterpret_cast< wxFont * >(argp1);
11712 {
11713 PyThreadState* __tstate = wxPyBeginAllowThreads();
11714 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
11715 wxPyEndAllowThreads(__tstate);
11716 if (PyErr_Occurred()) SWIG_fail;
11717 }
11718 {
11719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11720 }
11721 return resultobj;
11722 fail:
11723 return NULL;
11724 }
11725
11726
11727 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11728 PyObject *resultobj = 0;
11729 wxFont *arg1 = (wxFont *) 0 ;
11730 int result;
11731 void *argp1 = 0 ;
11732 int res1 = 0 ;
11733 PyObject *swig_obj[1] ;
11734
11735 if (!args) SWIG_fail;
11736 swig_obj[0] = args;
11737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11738 if (!SWIG_IsOK(res1)) {
11739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
11740 }
11741 arg1 = reinterpret_cast< wxFont * >(argp1);
11742 {
11743 PyThreadState* __tstate = wxPyBeginAllowThreads();
11744 result = (int)((wxFont const *)arg1)->GetFamily();
11745 wxPyEndAllowThreads(__tstate);
11746 if (PyErr_Occurred()) SWIG_fail;
11747 }
11748 resultobj = SWIG_From_int(static_cast< int >(result));
11749 return resultobj;
11750 fail:
11751 return NULL;
11752 }
11753
11754
11755 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11756 PyObject *resultobj = 0;
11757 wxFont *arg1 = (wxFont *) 0 ;
11758 int result;
11759 void *argp1 = 0 ;
11760 int res1 = 0 ;
11761 PyObject *swig_obj[1] ;
11762
11763 if (!args) SWIG_fail;
11764 swig_obj[0] = args;
11765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11766 if (!SWIG_IsOK(res1)) {
11767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
11768 }
11769 arg1 = reinterpret_cast< wxFont * >(argp1);
11770 {
11771 PyThreadState* __tstate = wxPyBeginAllowThreads();
11772 result = (int)((wxFont const *)arg1)->GetStyle();
11773 wxPyEndAllowThreads(__tstate);
11774 if (PyErr_Occurred()) SWIG_fail;
11775 }
11776 resultobj = SWIG_From_int(static_cast< int >(result));
11777 return resultobj;
11778 fail:
11779 return NULL;
11780 }
11781
11782
11783 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11784 PyObject *resultobj = 0;
11785 wxFont *arg1 = (wxFont *) 0 ;
11786 int result;
11787 void *argp1 = 0 ;
11788 int res1 = 0 ;
11789 PyObject *swig_obj[1] ;
11790
11791 if (!args) SWIG_fail;
11792 swig_obj[0] = args;
11793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11794 if (!SWIG_IsOK(res1)) {
11795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
11796 }
11797 arg1 = reinterpret_cast< wxFont * >(argp1);
11798 {
11799 PyThreadState* __tstate = wxPyBeginAllowThreads();
11800 result = (int)((wxFont const *)arg1)->GetWeight();
11801 wxPyEndAllowThreads(__tstate);
11802 if (PyErr_Occurred()) SWIG_fail;
11803 }
11804 resultobj = SWIG_From_int(static_cast< int >(result));
11805 return resultobj;
11806 fail:
11807 return NULL;
11808 }
11809
11810
11811 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11812 PyObject *resultobj = 0;
11813 wxFont *arg1 = (wxFont *) 0 ;
11814 bool result;
11815 void *argp1 = 0 ;
11816 int res1 = 0 ;
11817 PyObject *swig_obj[1] ;
11818
11819 if (!args) SWIG_fail;
11820 swig_obj[0] = args;
11821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11822 if (!SWIG_IsOK(res1)) {
11823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
11824 }
11825 arg1 = reinterpret_cast< wxFont * >(argp1);
11826 {
11827 PyThreadState* __tstate = wxPyBeginAllowThreads();
11828 result = (bool)((wxFont const *)arg1)->GetUnderlined();
11829 wxPyEndAllowThreads(__tstate);
11830 if (PyErr_Occurred()) SWIG_fail;
11831 }
11832 {
11833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11834 }
11835 return resultobj;
11836 fail:
11837 return NULL;
11838 }
11839
11840
11841 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11842 PyObject *resultobj = 0;
11843 wxFont *arg1 = (wxFont *) 0 ;
11844 wxString result;
11845 void *argp1 = 0 ;
11846 int res1 = 0 ;
11847 PyObject *swig_obj[1] ;
11848
11849 if (!args) SWIG_fail;
11850 swig_obj[0] = args;
11851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11852 if (!SWIG_IsOK(res1)) {
11853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
11854 }
11855 arg1 = reinterpret_cast< wxFont * >(argp1);
11856 {
11857 PyThreadState* __tstate = wxPyBeginAllowThreads();
11858 result = ((wxFont const *)arg1)->GetFaceName();
11859 wxPyEndAllowThreads(__tstate);
11860 if (PyErr_Occurred()) SWIG_fail;
11861 }
11862 {
11863 #if wxUSE_UNICODE
11864 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11865 #else
11866 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11867 #endif
11868 }
11869 return resultobj;
11870 fail:
11871 return NULL;
11872 }
11873
11874
11875 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11876 PyObject *resultobj = 0;
11877 wxFont *arg1 = (wxFont *) 0 ;
11878 wxFontEncoding result;
11879 void *argp1 = 0 ;
11880 int res1 = 0 ;
11881 PyObject *swig_obj[1] ;
11882
11883 if (!args) SWIG_fail;
11884 swig_obj[0] = args;
11885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11886 if (!SWIG_IsOK(res1)) {
11887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
11888 }
11889 arg1 = reinterpret_cast< wxFont * >(argp1);
11890 {
11891 PyThreadState* __tstate = wxPyBeginAllowThreads();
11892 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
11893 wxPyEndAllowThreads(__tstate);
11894 if (PyErr_Occurred()) SWIG_fail;
11895 }
11896 resultobj = SWIG_From_int(static_cast< int >(result));
11897 return resultobj;
11898 fail:
11899 return NULL;
11900 }
11901
11902
11903 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11904 PyObject *resultobj = 0;
11905 wxFont *arg1 = (wxFont *) 0 ;
11906 wxNativeFontInfo *result = 0 ;
11907 void *argp1 = 0 ;
11908 int res1 = 0 ;
11909 PyObject *swig_obj[1] ;
11910
11911 if (!args) SWIG_fail;
11912 swig_obj[0] = args;
11913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11914 if (!SWIG_IsOK(res1)) {
11915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
11916 }
11917 arg1 = reinterpret_cast< wxFont * >(argp1);
11918 {
11919 PyThreadState* __tstate = wxPyBeginAllowThreads();
11920 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
11921 wxPyEndAllowThreads(__tstate);
11922 if (PyErr_Occurred()) SWIG_fail;
11923 }
11924 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11925 return resultobj;
11926 fail:
11927 return NULL;
11928 }
11929
11930
11931 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11932 PyObject *resultobj = 0;
11933 wxFont *arg1 = (wxFont *) 0 ;
11934 bool result;
11935 void *argp1 = 0 ;
11936 int res1 = 0 ;
11937 PyObject *swig_obj[1] ;
11938
11939 if (!args) SWIG_fail;
11940 swig_obj[0] = args;
11941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11942 if (!SWIG_IsOK(res1)) {
11943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
11944 }
11945 arg1 = reinterpret_cast< wxFont * >(argp1);
11946 {
11947 PyThreadState* __tstate = wxPyBeginAllowThreads();
11948 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
11949 wxPyEndAllowThreads(__tstate);
11950 if (PyErr_Occurred()) SWIG_fail;
11951 }
11952 {
11953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11954 }
11955 return resultobj;
11956 fail:
11957 return NULL;
11958 }
11959
11960
11961 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11962 PyObject *resultobj = 0;
11963 wxFont *arg1 = (wxFont *) 0 ;
11964 wxString result;
11965 void *argp1 = 0 ;
11966 int res1 = 0 ;
11967 PyObject *swig_obj[1] ;
11968
11969 if (!args) SWIG_fail;
11970 swig_obj[0] = args;
11971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11972 if (!SWIG_IsOK(res1)) {
11973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
11974 }
11975 arg1 = reinterpret_cast< wxFont * >(argp1);
11976 {
11977 PyThreadState* __tstate = wxPyBeginAllowThreads();
11978 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
11979 wxPyEndAllowThreads(__tstate);
11980 if (PyErr_Occurred()) SWIG_fail;
11981 }
11982 {
11983 #if wxUSE_UNICODE
11984 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11985 #else
11986 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11987 #endif
11988 }
11989 return resultobj;
11990 fail:
11991 return NULL;
11992 }
11993
11994
11995 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11996 PyObject *resultobj = 0;
11997 wxFont *arg1 = (wxFont *) 0 ;
11998 wxString result;
11999 void *argp1 = 0 ;
12000 int res1 = 0 ;
12001 PyObject *swig_obj[1] ;
12002
12003 if (!args) SWIG_fail;
12004 swig_obj[0] = args;
12005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12006 if (!SWIG_IsOK(res1)) {
12007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12008 }
12009 arg1 = reinterpret_cast< wxFont * >(argp1);
12010 {
12011 PyThreadState* __tstate = wxPyBeginAllowThreads();
12012 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
12013 wxPyEndAllowThreads(__tstate);
12014 if (PyErr_Occurred()) SWIG_fail;
12015 }
12016 {
12017 #if wxUSE_UNICODE
12018 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12019 #else
12020 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12021 #endif
12022 }
12023 return resultobj;
12024 fail:
12025 return NULL;
12026 }
12027
12028
12029 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12030 PyObject *resultobj = 0;
12031 wxFont *arg1 = (wxFont *) 0 ;
12032 int arg2 ;
12033 void *argp1 = 0 ;
12034 int res1 = 0 ;
12035 int val2 ;
12036 int ecode2 = 0 ;
12037 PyObject * obj0 = 0 ;
12038 PyObject * obj1 = 0 ;
12039 char * kwnames[] = {
12040 (char *) "self",(char *) "pointSize", NULL
12041 };
12042
12043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12045 if (!SWIG_IsOK(res1)) {
12046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
12047 }
12048 arg1 = reinterpret_cast< wxFont * >(argp1);
12049 ecode2 = SWIG_AsVal_int(obj1, &val2);
12050 if (!SWIG_IsOK(ecode2)) {
12051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12052 }
12053 arg2 = static_cast< int >(val2);
12054 {
12055 PyThreadState* __tstate = wxPyBeginAllowThreads();
12056 (arg1)->SetPointSize(arg2);
12057 wxPyEndAllowThreads(__tstate);
12058 if (PyErr_Occurred()) SWIG_fail;
12059 }
12060 resultobj = SWIG_Py_Void();
12061 return resultobj;
12062 fail:
12063 return NULL;
12064 }
12065
12066
12067 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12068 PyObject *resultobj = 0;
12069 wxFont *arg1 = (wxFont *) 0 ;
12070 wxSize *arg2 = 0 ;
12071 void *argp1 = 0 ;
12072 int res1 = 0 ;
12073 wxSize temp2 ;
12074 PyObject * obj0 = 0 ;
12075 PyObject * obj1 = 0 ;
12076 char * kwnames[] = {
12077 (char *) "self",(char *) "pixelSize", NULL
12078 };
12079
12080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12082 if (!SWIG_IsOK(res1)) {
12083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12084 }
12085 arg1 = reinterpret_cast< wxFont * >(argp1);
12086 {
12087 arg2 = &temp2;
12088 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12089 }
12090 {
12091 PyThreadState* __tstate = wxPyBeginAllowThreads();
12092 (arg1)->SetPixelSize((wxSize const &)*arg2);
12093 wxPyEndAllowThreads(__tstate);
12094 if (PyErr_Occurred()) SWIG_fail;
12095 }
12096 resultobj = SWIG_Py_Void();
12097 return resultobj;
12098 fail:
12099 return NULL;
12100 }
12101
12102
12103 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12104 PyObject *resultobj = 0;
12105 wxFont *arg1 = (wxFont *) 0 ;
12106 int arg2 ;
12107 void *argp1 = 0 ;
12108 int res1 = 0 ;
12109 int val2 ;
12110 int ecode2 = 0 ;
12111 PyObject * obj0 = 0 ;
12112 PyObject * obj1 = 0 ;
12113 char * kwnames[] = {
12114 (char *) "self",(char *) "family", NULL
12115 };
12116
12117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12119 if (!SWIG_IsOK(res1)) {
12120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12121 }
12122 arg1 = reinterpret_cast< wxFont * >(argp1);
12123 ecode2 = SWIG_AsVal_int(obj1, &val2);
12124 if (!SWIG_IsOK(ecode2)) {
12125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12126 }
12127 arg2 = static_cast< int >(val2);
12128 {
12129 PyThreadState* __tstate = wxPyBeginAllowThreads();
12130 (arg1)->SetFamily(arg2);
12131 wxPyEndAllowThreads(__tstate);
12132 if (PyErr_Occurred()) SWIG_fail;
12133 }
12134 resultobj = SWIG_Py_Void();
12135 return resultobj;
12136 fail:
12137 return NULL;
12138 }
12139
12140
12141 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12142 PyObject *resultobj = 0;
12143 wxFont *arg1 = (wxFont *) 0 ;
12144 int arg2 ;
12145 void *argp1 = 0 ;
12146 int res1 = 0 ;
12147 int val2 ;
12148 int ecode2 = 0 ;
12149 PyObject * obj0 = 0 ;
12150 PyObject * obj1 = 0 ;
12151 char * kwnames[] = {
12152 (char *) "self",(char *) "style", NULL
12153 };
12154
12155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12157 if (!SWIG_IsOK(res1)) {
12158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12159 }
12160 arg1 = reinterpret_cast< wxFont * >(argp1);
12161 ecode2 = SWIG_AsVal_int(obj1, &val2);
12162 if (!SWIG_IsOK(ecode2)) {
12163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12164 }
12165 arg2 = static_cast< int >(val2);
12166 {
12167 PyThreadState* __tstate = wxPyBeginAllowThreads();
12168 (arg1)->SetStyle(arg2);
12169 wxPyEndAllowThreads(__tstate);
12170 if (PyErr_Occurred()) SWIG_fail;
12171 }
12172 resultobj = SWIG_Py_Void();
12173 return resultobj;
12174 fail:
12175 return NULL;
12176 }
12177
12178
12179 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12180 PyObject *resultobj = 0;
12181 wxFont *arg1 = (wxFont *) 0 ;
12182 int arg2 ;
12183 void *argp1 = 0 ;
12184 int res1 = 0 ;
12185 int val2 ;
12186 int ecode2 = 0 ;
12187 PyObject * obj0 = 0 ;
12188 PyObject * obj1 = 0 ;
12189 char * kwnames[] = {
12190 (char *) "self",(char *) "weight", NULL
12191 };
12192
12193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12195 if (!SWIG_IsOK(res1)) {
12196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12197 }
12198 arg1 = reinterpret_cast< wxFont * >(argp1);
12199 ecode2 = SWIG_AsVal_int(obj1, &val2);
12200 if (!SWIG_IsOK(ecode2)) {
12201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12202 }
12203 arg2 = static_cast< int >(val2);
12204 {
12205 PyThreadState* __tstate = wxPyBeginAllowThreads();
12206 (arg1)->SetWeight(arg2);
12207 wxPyEndAllowThreads(__tstate);
12208 if (PyErr_Occurred()) SWIG_fail;
12209 }
12210 resultobj = SWIG_Py_Void();
12211 return resultobj;
12212 fail:
12213 return NULL;
12214 }
12215
12216
12217 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12218 PyObject *resultobj = 0;
12219 wxFont *arg1 = (wxFont *) 0 ;
12220 wxString *arg2 = 0 ;
12221 bool result;
12222 void *argp1 = 0 ;
12223 int res1 = 0 ;
12224 bool temp2 = false ;
12225 PyObject * obj0 = 0 ;
12226 PyObject * obj1 = 0 ;
12227 char * kwnames[] = {
12228 (char *) "self",(char *) "faceName", NULL
12229 };
12230
12231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12233 if (!SWIG_IsOK(res1)) {
12234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
12235 }
12236 arg1 = reinterpret_cast< wxFont * >(argp1);
12237 {
12238 arg2 = wxString_in_helper(obj1);
12239 if (arg2 == NULL) SWIG_fail;
12240 temp2 = true;
12241 }
12242 {
12243 PyThreadState* __tstate = wxPyBeginAllowThreads();
12244 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
12245 wxPyEndAllowThreads(__tstate);
12246 if (PyErr_Occurred()) SWIG_fail;
12247 }
12248 {
12249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12250 }
12251 {
12252 if (temp2)
12253 delete arg2;
12254 }
12255 return resultobj;
12256 fail:
12257 {
12258 if (temp2)
12259 delete arg2;
12260 }
12261 return NULL;
12262 }
12263
12264
12265 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12266 PyObject *resultobj = 0;
12267 wxFont *arg1 = (wxFont *) 0 ;
12268 bool arg2 ;
12269 void *argp1 = 0 ;
12270 int res1 = 0 ;
12271 bool val2 ;
12272 int ecode2 = 0 ;
12273 PyObject * obj0 = 0 ;
12274 PyObject * obj1 = 0 ;
12275 char * kwnames[] = {
12276 (char *) "self",(char *) "underlined", NULL
12277 };
12278
12279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12281 if (!SWIG_IsOK(res1)) {
12282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12283 }
12284 arg1 = reinterpret_cast< wxFont * >(argp1);
12285 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12286 if (!SWIG_IsOK(ecode2)) {
12287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12288 }
12289 arg2 = static_cast< bool >(val2);
12290 {
12291 PyThreadState* __tstate = wxPyBeginAllowThreads();
12292 (arg1)->SetUnderlined(arg2);
12293 wxPyEndAllowThreads(__tstate);
12294 if (PyErr_Occurred()) SWIG_fail;
12295 }
12296 resultobj = SWIG_Py_Void();
12297 return resultobj;
12298 fail:
12299 return NULL;
12300 }
12301
12302
12303 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12304 PyObject *resultobj = 0;
12305 wxFont *arg1 = (wxFont *) 0 ;
12306 wxFontEncoding arg2 ;
12307 void *argp1 = 0 ;
12308 int res1 = 0 ;
12309 int val2 ;
12310 int ecode2 = 0 ;
12311 PyObject * obj0 = 0 ;
12312 PyObject * obj1 = 0 ;
12313 char * kwnames[] = {
12314 (char *) "self",(char *) "encoding", NULL
12315 };
12316
12317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12319 if (!SWIG_IsOK(res1)) {
12320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
12321 }
12322 arg1 = reinterpret_cast< wxFont * >(argp1);
12323 ecode2 = SWIG_AsVal_int(obj1, &val2);
12324 if (!SWIG_IsOK(ecode2)) {
12325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12326 }
12327 arg2 = static_cast< wxFontEncoding >(val2);
12328 {
12329 PyThreadState* __tstate = wxPyBeginAllowThreads();
12330 (arg1)->SetEncoding(arg2);
12331 wxPyEndAllowThreads(__tstate);
12332 if (PyErr_Occurred()) SWIG_fail;
12333 }
12334 resultobj = SWIG_Py_Void();
12335 return resultobj;
12336 fail:
12337 return NULL;
12338 }
12339
12340
12341 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12342 PyObject *resultobj = 0;
12343 wxFont *arg1 = (wxFont *) 0 ;
12344 wxNativeFontInfo *arg2 = 0 ;
12345 void *argp1 = 0 ;
12346 int res1 = 0 ;
12347 void *argp2 = 0 ;
12348 int res2 = 0 ;
12349 PyObject * obj0 = 0 ;
12350 PyObject * obj1 = 0 ;
12351 char * kwnames[] = {
12352 (char *) "self",(char *) "info", NULL
12353 };
12354
12355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
12356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12357 if (!SWIG_IsOK(res1)) {
12358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
12359 }
12360 arg1 = reinterpret_cast< wxFont * >(argp1);
12361 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
12362 if (!SWIG_IsOK(res2)) {
12363 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12364 }
12365 if (!argp2) {
12366 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12367 }
12368 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
12369 {
12370 PyThreadState* __tstate = wxPyBeginAllowThreads();
12371 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
12372 wxPyEndAllowThreads(__tstate);
12373 if (PyErr_Occurred()) SWIG_fail;
12374 }
12375 resultobj = SWIG_Py_Void();
12376 return resultobj;
12377 fail:
12378 return NULL;
12379 }
12380
12381
12382 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12383 PyObject *resultobj = 0;
12384 wxFont *arg1 = (wxFont *) 0 ;
12385 wxString *arg2 = 0 ;
12386 bool result;
12387 void *argp1 = 0 ;
12388 int res1 = 0 ;
12389 bool temp2 = false ;
12390 PyObject * obj0 = 0 ;
12391 PyObject * obj1 = 0 ;
12392 char * kwnames[] = {
12393 (char *) "self",(char *) "info", NULL
12394 };
12395
12396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
12397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12398 if (!SWIG_IsOK(res1)) {
12399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
12400 }
12401 arg1 = reinterpret_cast< wxFont * >(argp1);
12402 {
12403 arg2 = wxString_in_helper(obj1);
12404 if (arg2 == NULL) SWIG_fail;
12405 temp2 = true;
12406 }
12407 {
12408 PyThreadState* __tstate = wxPyBeginAllowThreads();
12409 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
12410 wxPyEndAllowThreads(__tstate);
12411 if (PyErr_Occurred()) SWIG_fail;
12412 }
12413 {
12414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12415 }
12416 {
12417 if (temp2)
12418 delete arg2;
12419 }
12420 return resultobj;
12421 fail:
12422 {
12423 if (temp2)
12424 delete arg2;
12425 }
12426 return NULL;
12427 }
12428
12429
12430 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12431 PyObject *resultobj = 0;
12432 wxFont *arg1 = (wxFont *) 0 ;
12433 wxString *arg2 = 0 ;
12434 bool result;
12435 void *argp1 = 0 ;
12436 int res1 = 0 ;
12437 bool temp2 = false ;
12438 PyObject * obj0 = 0 ;
12439 PyObject * obj1 = 0 ;
12440 char * kwnames[] = {
12441 (char *) "self",(char *) "info", NULL
12442 };
12443
12444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
12445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12446 if (!SWIG_IsOK(res1)) {
12447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
12448 }
12449 arg1 = reinterpret_cast< wxFont * >(argp1);
12450 {
12451 arg2 = wxString_in_helper(obj1);
12452 if (arg2 == NULL) SWIG_fail;
12453 temp2 = true;
12454 }
12455 {
12456 PyThreadState* __tstate = wxPyBeginAllowThreads();
12457 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
12458 wxPyEndAllowThreads(__tstate);
12459 if (PyErr_Occurred()) SWIG_fail;
12460 }
12461 {
12462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12463 }
12464 {
12465 if (temp2)
12466 delete arg2;
12467 }
12468 return resultobj;
12469 fail:
12470 {
12471 if (temp2)
12472 delete arg2;
12473 }
12474 return NULL;
12475 }
12476
12477
12478 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12479 PyObject *resultobj = 0;
12480 wxFont *arg1 = (wxFont *) 0 ;
12481 wxString result;
12482 void *argp1 = 0 ;
12483 int res1 = 0 ;
12484 PyObject *swig_obj[1] ;
12485
12486 if (!args) SWIG_fail;
12487 swig_obj[0] = args;
12488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12489 if (!SWIG_IsOK(res1)) {
12490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
12491 }
12492 arg1 = reinterpret_cast< wxFont * >(argp1);
12493 {
12494 PyThreadState* __tstate = wxPyBeginAllowThreads();
12495 result = ((wxFont const *)arg1)->GetFamilyString();
12496 wxPyEndAllowThreads(__tstate);
12497 if (PyErr_Occurred()) SWIG_fail;
12498 }
12499 {
12500 #if wxUSE_UNICODE
12501 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12502 #else
12503 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12504 #endif
12505 }
12506 return resultobj;
12507 fail:
12508 return NULL;
12509 }
12510
12511
12512 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12513 PyObject *resultobj = 0;
12514 wxFont *arg1 = (wxFont *) 0 ;
12515 wxString result;
12516 void *argp1 = 0 ;
12517 int res1 = 0 ;
12518 PyObject *swig_obj[1] ;
12519
12520 if (!args) SWIG_fail;
12521 swig_obj[0] = args;
12522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12523 if (!SWIG_IsOK(res1)) {
12524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
12525 }
12526 arg1 = reinterpret_cast< wxFont * >(argp1);
12527 {
12528 PyThreadState* __tstate = wxPyBeginAllowThreads();
12529 result = ((wxFont const *)arg1)->GetStyleString();
12530 wxPyEndAllowThreads(__tstate);
12531 if (PyErr_Occurred()) SWIG_fail;
12532 }
12533 {
12534 #if wxUSE_UNICODE
12535 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12536 #else
12537 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12538 #endif
12539 }
12540 return resultobj;
12541 fail:
12542 return NULL;
12543 }
12544
12545
12546 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12547 PyObject *resultobj = 0;
12548 wxFont *arg1 = (wxFont *) 0 ;
12549 wxString result;
12550 void *argp1 = 0 ;
12551 int res1 = 0 ;
12552 PyObject *swig_obj[1] ;
12553
12554 if (!args) SWIG_fail;
12555 swig_obj[0] = args;
12556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12557 if (!SWIG_IsOK(res1)) {
12558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
12559 }
12560 arg1 = reinterpret_cast< wxFont * >(argp1);
12561 {
12562 PyThreadState* __tstate = wxPyBeginAllowThreads();
12563 result = ((wxFont const *)arg1)->GetWeightString();
12564 wxPyEndAllowThreads(__tstate);
12565 if (PyErr_Occurred()) SWIG_fail;
12566 }
12567 {
12568 #if wxUSE_UNICODE
12569 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12570 #else
12571 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12572 #endif
12573 }
12574 return resultobj;
12575 fail:
12576 return NULL;
12577 }
12578
12579
12580 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12581 PyObject *resultobj = 0;
12582 wxFont *arg1 = (wxFont *) 0 ;
12583 bool arg2 = (bool) true ;
12584 void *argp1 = 0 ;
12585 int res1 = 0 ;
12586 bool val2 ;
12587 int ecode2 = 0 ;
12588 PyObject * obj0 = 0 ;
12589 PyObject * obj1 = 0 ;
12590 char * kwnames[] = {
12591 (char *) "self",(char *) "no", NULL
12592 };
12593
12594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
12595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12596 if (!SWIG_IsOK(res1)) {
12597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
12598 }
12599 arg1 = reinterpret_cast< wxFont * >(argp1);
12600 if (obj1) {
12601 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12602 if (!SWIG_IsOK(ecode2)) {
12603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
12604 }
12605 arg2 = static_cast< bool >(val2);
12606 }
12607 {
12608 PyThreadState* __tstate = wxPyBeginAllowThreads();
12609 (arg1)->SetNoAntiAliasing(arg2);
12610 wxPyEndAllowThreads(__tstate);
12611 if (PyErr_Occurred()) SWIG_fail;
12612 }
12613 resultobj = SWIG_Py_Void();
12614 return resultobj;
12615 fail:
12616 return NULL;
12617 }
12618
12619
12620 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12621 PyObject *resultobj = 0;
12622 wxFont *arg1 = (wxFont *) 0 ;
12623 bool result;
12624 void *argp1 = 0 ;
12625 int res1 = 0 ;
12626 PyObject *swig_obj[1] ;
12627
12628 if (!args) SWIG_fail;
12629 swig_obj[0] = args;
12630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12631 if (!SWIG_IsOK(res1)) {
12632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
12633 }
12634 arg1 = reinterpret_cast< wxFont * >(argp1);
12635 {
12636 PyThreadState* __tstate = wxPyBeginAllowThreads();
12637 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
12638 wxPyEndAllowThreads(__tstate);
12639 if (PyErr_Occurred()) SWIG_fail;
12640 }
12641 {
12642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12643 }
12644 return resultobj;
12645 fail:
12646 return NULL;
12647 }
12648
12649
12650 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12651 PyObject *resultobj = 0;
12652 wxFontEncoding result;
12653
12654 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
12655 {
12656 if (!wxPyCheckForApp()) SWIG_fail;
12657 PyThreadState* __tstate = wxPyBeginAllowThreads();
12658 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
12659 wxPyEndAllowThreads(__tstate);
12660 if (PyErr_Occurred()) SWIG_fail;
12661 }
12662 resultobj = SWIG_From_int(static_cast< int >(result));
12663 return resultobj;
12664 fail:
12665 return NULL;
12666 }
12667
12668
12669 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12670 PyObject *resultobj = 0;
12671 wxFontEncoding arg1 ;
12672 int val1 ;
12673 int ecode1 = 0 ;
12674 PyObject * obj0 = 0 ;
12675 char * kwnames[] = {
12676 (char *) "encoding", NULL
12677 };
12678
12679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
12680 ecode1 = SWIG_AsVal_int(obj0, &val1);
12681 if (!SWIG_IsOK(ecode1)) {
12682 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12683 }
12684 arg1 = static_cast< wxFontEncoding >(val1);
12685 {
12686 if (!wxPyCheckForApp()) SWIG_fail;
12687 PyThreadState* __tstate = wxPyBeginAllowThreads();
12688 wxFont::SetDefaultEncoding(arg1);
12689 wxPyEndAllowThreads(__tstate);
12690 if (PyErr_Occurred()) SWIG_fail;
12691 }
12692 resultobj = SWIG_Py_Void();
12693 return resultobj;
12694 fail:
12695 return NULL;
12696 }
12697
12698
12699 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12700 PyObject *obj;
12701 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12702 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
12703 return SWIG_Py_Void();
12704 }
12705
12706 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12707 return SWIG_Python_InitShadowInstance(args);
12708 }
12709
12710 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12711 PyObject *resultobj = 0;
12712 wxPyFontEnumerator *result = 0 ;
12713
12714 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
12715 {
12716 if (!wxPyCheckForApp()) SWIG_fail;
12717 PyThreadState* __tstate = wxPyBeginAllowThreads();
12718 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
12719 wxPyEndAllowThreads(__tstate);
12720 if (PyErr_Occurred()) SWIG_fail;
12721 }
12722 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
12723 return resultobj;
12724 fail:
12725 return NULL;
12726 }
12727
12728
12729 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12730 PyObject *resultobj = 0;
12731 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12732 void *argp1 = 0 ;
12733 int res1 = 0 ;
12734 PyObject *swig_obj[1] ;
12735
12736 if (!args) SWIG_fail;
12737 swig_obj[0] = args;
12738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
12739 if (!SWIG_IsOK(res1)) {
12740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12741 }
12742 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12743 {
12744 PyThreadState* __tstate = wxPyBeginAllowThreads();
12745 delete arg1;
12746
12747 wxPyEndAllowThreads(__tstate);
12748 if (PyErr_Occurred()) SWIG_fail;
12749 }
12750 resultobj = SWIG_Py_Void();
12751 return resultobj;
12752 fail:
12753 return NULL;
12754 }
12755
12756
12757 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12758 PyObject *resultobj = 0;
12759 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12760 PyObject *arg2 = (PyObject *) 0 ;
12761 PyObject *arg3 = (PyObject *) 0 ;
12762 bool arg4 ;
12763 void *argp1 = 0 ;
12764 int res1 = 0 ;
12765 bool val4 ;
12766 int ecode4 = 0 ;
12767 PyObject * obj0 = 0 ;
12768 PyObject * obj1 = 0 ;
12769 PyObject * obj2 = 0 ;
12770 PyObject * obj3 = 0 ;
12771 char * kwnames[] = {
12772 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
12773 };
12774
12775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12777 if (!SWIG_IsOK(res1)) {
12778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12779 }
12780 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12781 arg2 = obj1;
12782 arg3 = obj2;
12783 ecode4 = SWIG_AsVal_bool(obj3, &val4);
12784 if (!SWIG_IsOK(ecode4)) {
12785 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
12786 }
12787 arg4 = static_cast< bool >(val4);
12788 {
12789 PyThreadState* __tstate = wxPyBeginAllowThreads();
12790 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
12791 wxPyEndAllowThreads(__tstate);
12792 if (PyErr_Occurred()) SWIG_fail;
12793 }
12794 resultobj = SWIG_Py_Void();
12795 return resultobj;
12796 fail:
12797 return NULL;
12798 }
12799
12800
12801 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12802 PyObject *resultobj = 0;
12803 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12804 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
12805 bool arg3 = (bool) false ;
12806 bool result;
12807 void *argp1 = 0 ;
12808 int res1 = 0 ;
12809 int val2 ;
12810 int ecode2 = 0 ;
12811 bool val3 ;
12812 int ecode3 = 0 ;
12813 PyObject * obj0 = 0 ;
12814 PyObject * obj1 = 0 ;
12815 PyObject * obj2 = 0 ;
12816 char * kwnames[] = {
12817 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
12818 };
12819
12820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12822 if (!SWIG_IsOK(res1)) {
12823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12824 }
12825 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12826 if (obj1) {
12827 ecode2 = SWIG_AsVal_int(obj1, &val2);
12828 if (!SWIG_IsOK(ecode2)) {
12829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12830 }
12831 arg2 = static_cast< wxFontEncoding >(val2);
12832 }
12833 if (obj2) {
12834 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12835 if (!SWIG_IsOK(ecode3)) {
12836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
12837 }
12838 arg3 = static_cast< bool >(val3);
12839 }
12840 {
12841 PyThreadState* __tstate = wxPyBeginAllowThreads();
12842 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
12843 wxPyEndAllowThreads(__tstate);
12844 if (PyErr_Occurred()) SWIG_fail;
12845 }
12846 {
12847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12848 }
12849 return resultobj;
12850 fail:
12851 return NULL;
12852 }
12853
12854
12855 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12856 PyObject *resultobj = 0;
12857 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12858 wxString const &arg2_defvalue = wxPyEmptyString ;
12859 wxString *arg2 = (wxString *) &arg2_defvalue ;
12860 bool result;
12861 void *argp1 = 0 ;
12862 int res1 = 0 ;
12863 bool temp2 = false ;
12864 PyObject * obj0 = 0 ;
12865 PyObject * obj1 = 0 ;
12866 char * kwnames[] = {
12867 (char *) "self",(char *) "facename", NULL
12868 };
12869
12870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
12871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12872 if (!SWIG_IsOK(res1)) {
12873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12874 }
12875 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12876 if (obj1) {
12877 {
12878 arg2 = wxString_in_helper(obj1);
12879 if (arg2 == NULL) SWIG_fail;
12880 temp2 = true;
12881 }
12882 }
12883 {
12884 PyThreadState* __tstate = wxPyBeginAllowThreads();
12885 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
12886 wxPyEndAllowThreads(__tstate);
12887 if (PyErr_Occurred()) SWIG_fail;
12888 }
12889 {
12890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12891 }
12892 {
12893 if (temp2)
12894 delete arg2;
12895 }
12896 return resultobj;
12897 fail:
12898 {
12899 if (temp2)
12900 delete arg2;
12901 }
12902 return NULL;
12903 }
12904
12905
12906 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12907 PyObject *resultobj = 0;
12908 PyObject *result = 0 ;
12909
12910 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
12911 {
12912 PyThreadState* __tstate = wxPyBeginAllowThreads();
12913 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
12914 wxPyEndAllowThreads(__tstate);
12915 if (PyErr_Occurred()) SWIG_fail;
12916 }
12917 resultobj = result;
12918 return resultobj;
12919 fail:
12920 return NULL;
12921 }
12922
12923
12924 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12925 PyObject *resultobj = 0;
12926 PyObject *result = 0 ;
12927
12928 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
12929 {
12930 PyThreadState* __tstate = wxPyBeginAllowThreads();
12931 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
12932 wxPyEndAllowThreads(__tstate);
12933 if (PyErr_Occurred()) SWIG_fail;
12934 }
12935 resultobj = result;
12936 return resultobj;
12937 fail:
12938 return NULL;
12939 }
12940
12941
12942 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12943 PyObject *resultobj = 0;
12944 wxString *arg1 = 0 ;
12945 bool result;
12946 bool temp1 = false ;
12947 PyObject * obj0 = 0 ;
12948 char * kwnames[] = {
12949 (char *) "str", NULL
12950 };
12951
12952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
12953 {
12954 arg1 = wxString_in_helper(obj0);
12955 if (arg1 == NULL) SWIG_fail;
12956 temp1 = true;
12957 }
12958 {
12959 PyThreadState* __tstate = wxPyBeginAllowThreads();
12960 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
12961 wxPyEndAllowThreads(__tstate);
12962 if (PyErr_Occurred()) SWIG_fail;
12963 }
12964 {
12965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12966 }
12967 {
12968 if (temp1)
12969 delete arg1;
12970 }
12971 return resultobj;
12972 fail:
12973 {
12974 if (temp1)
12975 delete arg1;
12976 }
12977 return NULL;
12978 }
12979
12980
12981 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12982 PyObject *obj;
12983 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12984 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
12985 return SWIG_Py_Void();
12986 }
12987
12988 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12989 return SWIG_Python_InitShadowInstance(args);
12990 }
12991
12992 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12993 PyObject *resultobj = 0;
12994 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
12995 int arg2 ;
12996 void *argp1 = 0 ;
12997 int res1 = 0 ;
12998 int val2 ;
12999 int ecode2 = 0 ;
13000 PyObject *swig_obj[2] ;
13001
13002 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
13003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13004 if (!SWIG_IsOK(res1)) {
13005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13006 }
13007 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13008 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13009 if (!SWIG_IsOK(ecode2)) {
13010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
13011 }
13012 arg2 = static_cast< int >(val2);
13013 if (arg1) (arg1)->Language = arg2;
13014
13015 resultobj = SWIG_Py_Void();
13016 return resultobj;
13017 fail:
13018 return NULL;
13019 }
13020
13021
13022 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13023 PyObject *resultobj = 0;
13024 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13025 int result;
13026 void *argp1 = 0 ;
13027 int res1 = 0 ;
13028 PyObject *swig_obj[1] ;
13029
13030 if (!args) SWIG_fail;
13031 swig_obj[0] = args;
13032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13033 if (!SWIG_IsOK(res1)) {
13034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13035 }
13036 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13037 result = (int) ((arg1)->Language);
13038 resultobj = SWIG_From_int(static_cast< int >(result));
13039 return resultobj;
13040 fail:
13041 return NULL;
13042 }
13043
13044
13045 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13046 PyObject *resultobj = 0;
13047 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13048 wxString *arg2 = (wxString *) 0 ;
13049 void *argp1 = 0 ;
13050 int res1 = 0 ;
13051 bool temp2 = false ;
13052 PyObject *swig_obj[2] ;
13053
13054 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
13055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13056 if (!SWIG_IsOK(res1)) {
13057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13058 }
13059 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13060 {
13061 arg2 = wxString_in_helper(swig_obj[1]);
13062 if (arg2 == NULL) SWIG_fail;
13063 temp2 = true;
13064 }
13065 if (arg1) (arg1)->CanonicalName = *arg2;
13066
13067 resultobj = SWIG_Py_Void();
13068 {
13069 if (temp2)
13070 delete arg2;
13071 }
13072 return resultobj;
13073 fail:
13074 {
13075 if (temp2)
13076 delete arg2;
13077 }
13078 return NULL;
13079 }
13080
13081
13082 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13083 PyObject *resultobj = 0;
13084 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13085 wxString *result = 0 ;
13086 void *argp1 = 0 ;
13087 int res1 = 0 ;
13088 PyObject *swig_obj[1] ;
13089
13090 if (!args) SWIG_fail;
13091 swig_obj[0] = args;
13092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13093 if (!SWIG_IsOK(res1)) {
13094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13095 }
13096 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13097 result = (wxString *)& ((arg1)->CanonicalName);
13098 {
13099 #if wxUSE_UNICODE
13100 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13101 #else
13102 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13103 #endif
13104 }
13105 return resultobj;
13106 fail:
13107 return NULL;
13108 }
13109
13110
13111 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13112 PyObject *resultobj = 0;
13113 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13114 wxString *arg2 = (wxString *) 0 ;
13115 void *argp1 = 0 ;
13116 int res1 = 0 ;
13117 bool temp2 = false ;
13118 PyObject *swig_obj[2] ;
13119
13120 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
13121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13122 if (!SWIG_IsOK(res1)) {
13123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13124 }
13125 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13126 {
13127 arg2 = wxString_in_helper(swig_obj[1]);
13128 if (arg2 == NULL) SWIG_fail;
13129 temp2 = true;
13130 }
13131 if (arg1) (arg1)->Description = *arg2;
13132
13133 resultobj = SWIG_Py_Void();
13134 {
13135 if (temp2)
13136 delete arg2;
13137 }
13138 return resultobj;
13139 fail:
13140 {
13141 if (temp2)
13142 delete arg2;
13143 }
13144 return NULL;
13145 }
13146
13147
13148 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13149 PyObject *resultobj = 0;
13150 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13151 wxString *result = 0 ;
13152 void *argp1 = 0 ;
13153 int res1 = 0 ;
13154 PyObject *swig_obj[1] ;
13155
13156 if (!args) SWIG_fail;
13157 swig_obj[0] = args;
13158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13159 if (!SWIG_IsOK(res1)) {
13160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13161 }
13162 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13163 result = (wxString *)& ((arg1)->Description);
13164 {
13165 #if wxUSE_UNICODE
13166 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13167 #else
13168 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13169 #endif
13170 }
13171 return resultobj;
13172 fail:
13173 return NULL;
13174 }
13175
13176
13177 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13178 PyObject *obj;
13179 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13180 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
13181 return SWIG_Py_Void();
13182 }
13183
13184 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13185 PyObject *resultobj = 0;
13186 int arg1 = (int) -1 ;
13187 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13188 wxLocale *result = 0 ;
13189 int val1 ;
13190 int ecode1 = 0 ;
13191 int val2 ;
13192 int ecode2 = 0 ;
13193 PyObject * obj0 = 0 ;
13194 PyObject * obj1 = 0 ;
13195 char * kwnames[] = {
13196 (char *) "language",(char *) "flags", NULL
13197 };
13198
13199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
13200 if (obj0) {
13201 ecode1 = SWIG_AsVal_int(obj0, &val1);
13202 if (!SWIG_IsOK(ecode1)) {
13203 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13204 }
13205 arg1 = static_cast< int >(val1);
13206 }
13207 if (obj1) {
13208 ecode2 = SWIG_AsVal_int(obj1, &val2);
13209 if (!SWIG_IsOK(ecode2)) {
13210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13211 }
13212 arg2 = static_cast< int >(val2);
13213 }
13214 {
13215 PyThreadState* __tstate = wxPyBeginAllowThreads();
13216 result = (wxLocale *)new_wxLocale(arg1,arg2);
13217 wxPyEndAllowThreads(__tstate);
13218 if (PyErr_Occurred()) SWIG_fail;
13219 }
13220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
13221 return resultobj;
13222 fail:
13223 return NULL;
13224 }
13225
13226
13227 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13228 PyObject *resultobj = 0;
13229 wxLocale *arg1 = (wxLocale *) 0 ;
13230 void *argp1 = 0 ;
13231 int res1 = 0 ;
13232 PyObject *swig_obj[1] ;
13233
13234 if (!args) SWIG_fail;
13235 swig_obj[0] = args;
13236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
13237 if (!SWIG_IsOK(res1)) {
13238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13239 }
13240 arg1 = reinterpret_cast< wxLocale * >(argp1);
13241 {
13242 PyThreadState* __tstate = wxPyBeginAllowThreads();
13243 delete arg1;
13244
13245 wxPyEndAllowThreads(__tstate);
13246 if (PyErr_Occurred()) SWIG_fail;
13247 }
13248 resultobj = SWIG_Py_Void();
13249 return resultobj;
13250 fail:
13251 return NULL;
13252 }
13253
13254
13255 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13256 PyObject *resultobj = 0;
13257 wxLocale *arg1 = (wxLocale *) 0 ;
13258 wxString *arg2 = 0 ;
13259 wxString const &arg3_defvalue = wxPyEmptyString ;
13260 wxString *arg3 = (wxString *) &arg3_defvalue ;
13261 wxString const &arg4_defvalue = wxPyEmptyString ;
13262 wxString *arg4 = (wxString *) &arg4_defvalue ;
13263 bool arg5 = (bool) true ;
13264 bool arg6 = (bool) false ;
13265 bool result;
13266 void *argp1 = 0 ;
13267 int res1 = 0 ;
13268 bool temp2 = false ;
13269 bool temp3 = false ;
13270 bool temp4 = false ;
13271 bool val5 ;
13272 int ecode5 = 0 ;
13273 bool val6 ;
13274 int ecode6 = 0 ;
13275 PyObject * obj0 = 0 ;
13276 PyObject * obj1 = 0 ;
13277 PyObject * obj2 = 0 ;
13278 PyObject * obj3 = 0 ;
13279 PyObject * obj4 = 0 ;
13280 PyObject * obj5 = 0 ;
13281 char * kwnames[] = {
13282 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13283 };
13284
13285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13287 if (!SWIG_IsOK(res1)) {
13288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13289 }
13290 arg1 = reinterpret_cast< wxLocale * >(argp1);
13291 {
13292 arg2 = wxString_in_helper(obj1);
13293 if (arg2 == NULL) SWIG_fail;
13294 temp2 = true;
13295 }
13296 if (obj2) {
13297 {
13298 arg3 = wxString_in_helper(obj2);
13299 if (arg3 == NULL) SWIG_fail;
13300 temp3 = true;
13301 }
13302 }
13303 if (obj3) {
13304 {
13305 arg4 = wxString_in_helper(obj3);
13306 if (arg4 == NULL) SWIG_fail;
13307 temp4 = true;
13308 }
13309 }
13310 if (obj4) {
13311 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13312 if (!SWIG_IsOK(ecode5)) {
13313 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
13314 }
13315 arg5 = static_cast< bool >(val5);
13316 }
13317 if (obj5) {
13318 ecode6 = SWIG_AsVal_bool(obj5, &val6);
13319 if (!SWIG_IsOK(ecode6)) {
13320 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
13321 }
13322 arg6 = static_cast< bool >(val6);
13323 }
13324 {
13325 PyThreadState* __tstate = wxPyBeginAllowThreads();
13326 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
13327 wxPyEndAllowThreads(__tstate);
13328 if (PyErr_Occurred()) SWIG_fail;
13329 }
13330 {
13331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13332 }
13333 {
13334 if (temp2)
13335 delete arg2;
13336 }
13337 {
13338 if (temp3)
13339 delete arg3;
13340 }
13341 {
13342 if (temp4)
13343 delete arg4;
13344 }
13345 return resultobj;
13346 fail:
13347 {
13348 if (temp2)
13349 delete arg2;
13350 }
13351 {
13352 if (temp3)
13353 delete arg3;
13354 }
13355 {
13356 if (temp4)
13357 delete arg4;
13358 }
13359 return NULL;
13360 }
13361
13362
13363 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13364 PyObject *resultobj = 0;
13365 wxLocale *arg1 = (wxLocale *) 0 ;
13366 int arg2 = (int) wxLANGUAGE_DEFAULT ;
13367 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13368 bool result;
13369 void *argp1 = 0 ;
13370 int res1 = 0 ;
13371 int val2 ;
13372 int ecode2 = 0 ;
13373 int val3 ;
13374 int ecode3 = 0 ;
13375 PyObject * obj0 = 0 ;
13376 PyObject * obj1 = 0 ;
13377 PyObject * obj2 = 0 ;
13378 char * kwnames[] = {
13379 (char *) "self",(char *) "language",(char *) "flags", NULL
13380 };
13381
13382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13384 if (!SWIG_IsOK(res1)) {
13385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
13386 }
13387 arg1 = reinterpret_cast< wxLocale * >(argp1);
13388 if (obj1) {
13389 ecode2 = SWIG_AsVal_int(obj1, &val2);
13390 if (!SWIG_IsOK(ecode2)) {
13391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
13392 }
13393 arg2 = static_cast< int >(val2);
13394 }
13395 if (obj2) {
13396 ecode3 = SWIG_AsVal_int(obj2, &val3);
13397 if (!SWIG_IsOK(ecode3)) {
13398 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
13399 }
13400 arg3 = static_cast< int >(val3);
13401 }
13402 {
13403 PyThreadState* __tstate = wxPyBeginAllowThreads();
13404 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
13405 wxPyEndAllowThreads(__tstate);
13406 if (PyErr_Occurred()) SWIG_fail;
13407 }
13408 {
13409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13410 }
13411 return resultobj;
13412 fail:
13413 return NULL;
13414 }
13415
13416
13417 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13418 PyObject *resultobj = 0;
13419 int result;
13420
13421 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
13422 {
13423 PyThreadState* __tstate = wxPyBeginAllowThreads();
13424 result = (int)wxLocale::GetSystemLanguage();
13425 wxPyEndAllowThreads(__tstate);
13426 if (PyErr_Occurred()) SWIG_fail;
13427 }
13428 resultobj = SWIG_From_int(static_cast< int >(result));
13429 return resultobj;
13430 fail:
13431 return NULL;
13432 }
13433
13434
13435 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13436 PyObject *resultobj = 0;
13437 wxFontEncoding result;
13438
13439 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
13440 {
13441 PyThreadState* __tstate = wxPyBeginAllowThreads();
13442 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
13443 wxPyEndAllowThreads(__tstate);
13444 if (PyErr_Occurred()) SWIG_fail;
13445 }
13446 resultobj = SWIG_From_int(static_cast< int >(result));
13447 return resultobj;
13448 fail:
13449 return NULL;
13450 }
13451
13452
13453 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13454 PyObject *resultobj = 0;
13455 wxString result;
13456
13457 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
13458 {
13459 PyThreadState* __tstate = wxPyBeginAllowThreads();
13460 result = wxLocale::GetSystemEncodingName();
13461 wxPyEndAllowThreads(__tstate);
13462 if (PyErr_Occurred()) SWIG_fail;
13463 }
13464 {
13465 #if wxUSE_UNICODE
13466 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13467 #else
13468 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13469 #endif
13470 }
13471 return resultobj;
13472 fail:
13473 return NULL;
13474 }
13475
13476
13477 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13478 PyObject *resultobj = 0;
13479 wxLocale *arg1 = (wxLocale *) 0 ;
13480 bool result;
13481 void *argp1 = 0 ;
13482 int res1 = 0 ;
13483 PyObject *swig_obj[1] ;
13484
13485 if (!args) SWIG_fail;
13486 swig_obj[0] = args;
13487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13488 if (!SWIG_IsOK(res1)) {
13489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
13490 }
13491 arg1 = reinterpret_cast< wxLocale * >(argp1);
13492 {
13493 PyThreadState* __tstate = wxPyBeginAllowThreads();
13494 result = (bool)((wxLocale const *)arg1)->IsOk();
13495 wxPyEndAllowThreads(__tstate);
13496 if (PyErr_Occurred()) SWIG_fail;
13497 }
13498 {
13499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13500 }
13501 return resultobj;
13502 fail:
13503 return NULL;
13504 }
13505
13506
13507 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13508 PyObject *resultobj = 0;
13509 wxLocale *arg1 = (wxLocale *) 0 ;
13510 wxString result;
13511 void *argp1 = 0 ;
13512 int res1 = 0 ;
13513 PyObject *swig_obj[1] ;
13514
13515 if (!args) SWIG_fail;
13516 swig_obj[0] = args;
13517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13518 if (!SWIG_IsOK(res1)) {
13519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
13520 }
13521 arg1 = reinterpret_cast< wxLocale * >(argp1);
13522 {
13523 PyThreadState* __tstate = wxPyBeginAllowThreads();
13524 result = ((wxLocale const *)arg1)->GetLocale();
13525 wxPyEndAllowThreads(__tstate);
13526 if (PyErr_Occurred()) SWIG_fail;
13527 }
13528 {
13529 #if wxUSE_UNICODE
13530 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13531 #else
13532 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13533 #endif
13534 }
13535 return resultobj;
13536 fail:
13537 return NULL;
13538 }
13539
13540
13541 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13542 PyObject *resultobj = 0;
13543 wxLocale *arg1 = (wxLocale *) 0 ;
13544 int result;
13545 void *argp1 = 0 ;
13546 int res1 = 0 ;
13547 PyObject *swig_obj[1] ;
13548
13549 if (!args) SWIG_fail;
13550 swig_obj[0] = args;
13551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13552 if (!SWIG_IsOK(res1)) {
13553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
13554 }
13555 arg1 = reinterpret_cast< wxLocale * >(argp1);
13556 {
13557 PyThreadState* __tstate = wxPyBeginAllowThreads();
13558 result = (int)((wxLocale const *)arg1)->GetLanguage();
13559 wxPyEndAllowThreads(__tstate);
13560 if (PyErr_Occurred()) SWIG_fail;
13561 }
13562 resultobj = SWIG_From_int(static_cast< int >(result));
13563 return resultobj;
13564 fail:
13565 return NULL;
13566 }
13567
13568
13569 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13570 PyObject *resultobj = 0;
13571 wxLocale *arg1 = (wxLocale *) 0 ;
13572 wxString result;
13573 void *argp1 = 0 ;
13574 int res1 = 0 ;
13575 PyObject *swig_obj[1] ;
13576
13577 if (!args) SWIG_fail;
13578 swig_obj[0] = args;
13579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13580 if (!SWIG_IsOK(res1)) {
13581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13582 }
13583 arg1 = reinterpret_cast< wxLocale * >(argp1);
13584 {
13585 PyThreadState* __tstate = wxPyBeginAllowThreads();
13586 result = ((wxLocale const *)arg1)->GetSysName();
13587 wxPyEndAllowThreads(__tstate);
13588 if (PyErr_Occurred()) SWIG_fail;
13589 }
13590 {
13591 #if wxUSE_UNICODE
13592 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13593 #else
13594 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13595 #endif
13596 }
13597 return resultobj;
13598 fail:
13599 return NULL;
13600 }
13601
13602
13603 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13604 PyObject *resultobj = 0;
13605 wxLocale *arg1 = (wxLocale *) 0 ;
13606 wxString result;
13607 void *argp1 = 0 ;
13608 int res1 = 0 ;
13609 PyObject *swig_obj[1] ;
13610
13611 if (!args) SWIG_fail;
13612 swig_obj[0] = args;
13613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13614 if (!SWIG_IsOK(res1)) {
13615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13616 }
13617 arg1 = reinterpret_cast< wxLocale * >(argp1);
13618 {
13619 PyThreadState* __tstate = wxPyBeginAllowThreads();
13620 result = ((wxLocale const *)arg1)->GetCanonicalName();
13621 wxPyEndAllowThreads(__tstate);
13622 if (PyErr_Occurred()) SWIG_fail;
13623 }
13624 {
13625 #if wxUSE_UNICODE
13626 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13627 #else
13628 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13629 #endif
13630 }
13631 return resultobj;
13632 fail:
13633 return NULL;
13634 }
13635
13636
13637 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13638 PyObject *resultobj = 0;
13639 wxString *arg1 = 0 ;
13640 bool temp1 = false ;
13641 PyObject * obj0 = 0 ;
13642 char * kwnames[] = {
13643 (char *) "prefix", NULL
13644 };
13645
13646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
13647 {
13648 arg1 = wxString_in_helper(obj0);
13649 if (arg1 == NULL) SWIG_fail;
13650 temp1 = true;
13651 }
13652 {
13653 PyThreadState* __tstate = wxPyBeginAllowThreads();
13654 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
13655 wxPyEndAllowThreads(__tstate);
13656 if (PyErr_Occurred()) SWIG_fail;
13657 }
13658 resultobj = SWIG_Py_Void();
13659 {
13660 if (temp1)
13661 delete arg1;
13662 }
13663 return resultobj;
13664 fail:
13665 {
13666 if (temp1)
13667 delete arg1;
13668 }
13669 return NULL;
13670 }
13671
13672
13673 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13674 PyObject *resultobj = 0;
13675 wxLocale *arg1 = (wxLocale *) 0 ;
13676 wxString *arg2 = 0 ;
13677 bool result;
13678 void *argp1 = 0 ;
13679 int res1 = 0 ;
13680 bool temp2 = false ;
13681 PyObject * obj0 = 0 ;
13682 PyObject * obj1 = 0 ;
13683 char * kwnames[] = {
13684 (char *) "self",(char *) "szDomain", NULL
13685 };
13686
13687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
13688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13689 if (!SWIG_IsOK(res1)) {
13690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
13691 }
13692 arg1 = reinterpret_cast< wxLocale * >(argp1);
13693 {
13694 arg2 = wxString_in_helper(obj1);
13695 if (arg2 == NULL) SWIG_fail;
13696 temp2 = true;
13697 }
13698 {
13699 PyThreadState* __tstate = wxPyBeginAllowThreads();
13700 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
13701 wxPyEndAllowThreads(__tstate);
13702 if (PyErr_Occurred()) SWIG_fail;
13703 }
13704 {
13705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13706 }
13707 {
13708 if (temp2)
13709 delete arg2;
13710 }
13711 return resultobj;
13712 fail:
13713 {
13714 if (temp2)
13715 delete arg2;
13716 }
13717 return NULL;
13718 }
13719
13720
13721 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13722 PyObject *resultobj = 0;
13723 wxLocale *arg1 = (wxLocale *) 0 ;
13724 wxString *arg2 = 0 ;
13725 bool result;
13726 void *argp1 = 0 ;
13727 int res1 = 0 ;
13728 bool temp2 = false ;
13729 PyObject * obj0 = 0 ;
13730 PyObject * obj1 = 0 ;
13731 char * kwnames[] = {
13732 (char *) "self",(char *) "szDomain", NULL
13733 };
13734
13735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
13736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13737 if (!SWIG_IsOK(res1)) {
13738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
13739 }
13740 arg1 = reinterpret_cast< wxLocale * >(argp1);
13741 {
13742 arg2 = wxString_in_helper(obj1);
13743 if (arg2 == NULL) SWIG_fail;
13744 temp2 = true;
13745 }
13746 {
13747 PyThreadState* __tstate = wxPyBeginAllowThreads();
13748 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
13749 wxPyEndAllowThreads(__tstate);
13750 if (PyErr_Occurred()) SWIG_fail;
13751 }
13752 {
13753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13754 }
13755 {
13756 if (temp2)
13757 delete arg2;
13758 }
13759 return resultobj;
13760 fail:
13761 {
13762 if (temp2)
13763 delete arg2;
13764 }
13765 return NULL;
13766 }
13767
13768
13769 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13770 PyObject *resultobj = 0;
13771 int arg1 ;
13772 wxLanguageInfo *result = 0 ;
13773 int val1 ;
13774 int ecode1 = 0 ;
13775 PyObject * obj0 = 0 ;
13776 char * kwnames[] = {
13777 (char *) "lang", NULL
13778 };
13779
13780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
13781 ecode1 = SWIG_AsVal_int(obj0, &val1);
13782 if (!SWIG_IsOK(ecode1)) {
13783 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
13784 }
13785 arg1 = static_cast< int >(val1);
13786 {
13787 PyThreadState* __tstate = wxPyBeginAllowThreads();
13788 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
13789 wxPyEndAllowThreads(__tstate);
13790 if (PyErr_Occurred()) SWIG_fail;
13791 }
13792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13793 return resultobj;
13794 fail:
13795 return NULL;
13796 }
13797
13798
13799 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13800 PyObject *resultobj = 0;
13801 int arg1 ;
13802 wxString result;
13803 int val1 ;
13804 int ecode1 = 0 ;
13805 PyObject * obj0 = 0 ;
13806 char * kwnames[] = {
13807 (char *) "lang", NULL
13808 };
13809
13810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
13811 ecode1 = SWIG_AsVal_int(obj0, &val1);
13812 if (!SWIG_IsOK(ecode1)) {
13813 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
13814 }
13815 arg1 = static_cast< int >(val1);
13816 {
13817 PyThreadState* __tstate = wxPyBeginAllowThreads();
13818 result = wxLocale::GetLanguageName(arg1);
13819 wxPyEndAllowThreads(__tstate);
13820 if (PyErr_Occurred()) SWIG_fail;
13821 }
13822 {
13823 #if wxUSE_UNICODE
13824 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13825 #else
13826 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13827 #endif
13828 }
13829 return resultobj;
13830 fail:
13831 return NULL;
13832 }
13833
13834
13835 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13836 PyObject *resultobj = 0;
13837 wxString *arg1 = 0 ;
13838 wxLanguageInfo *result = 0 ;
13839 bool temp1 = false ;
13840 PyObject * obj0 = 0 ;
13841 char * kwnames[] = {
13842 (char *) "locale", NULL
13843 };
13844
13845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
13846 {
13847 arg1 = wxString_in_helper(obj0);
13848 if (arg1 == NULL) SWIG_fail;
13849 temp1 = true;
13850 }
13851 {
13852 PyThreadState* __tstate = wxPyBeginAllowThreads();
13853 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
13854 wxPyEndAllowThreads(__tstate);
13855 if (PyErr_Occurred()) SWIG_fail;
13856 }
13857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13858 {
13859 if (temp1)
13860 delete arg1;
13861 }
13862 return resultobj;
13863 fail:
13864 {
13865 if (temp1)
13866 delete arg1;
13867 }
13868 return NULL;
13869 }
13870
13871
13872 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13873 PyObject *resultobj = 0;
13874 wxLanguageInfo *arg1 = 0 ;
13875 void *argp1 = 0 ;
13876 int res1 = 0 ;
13877 PyObject * obj0 = 0 ;
13878 char * kwnames[] = {
13879 (char *) "info", NULL
13880 };
13881
13882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
13883 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
13884 if (!SWIG_IsOK(res1)) {
13885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13886 }
13887 if (!argp1) {
13888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13889 }
13890 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13891 {
13892 PyThreadState* __tstate = wxPyBeginAllowThreads();
13893 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
13894 wxPyEndAllowThreads(__tstate);
13895 if (PyErr_Occurred()) SWIG_fail;
13896 }
13897 resultobj = SWIG_Py_Void();
13898 return resultobj;
13899 fail:
13900 return NULL;
13901 }
13902
13903
13904 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13905 PyObject *resultobj = 0;
13906 wxLocale *arg1 = (wxLocale *) 0 ;
13907 wxString *arg2 = 0 ;
13908 wxString const &arg3_defvalue = wxPyEmptyString ;
13909 wxString *arg3 = (wxString *) &arg3_defvalue ;
13910 wxString result;
13911 void *argp1 = 0 ;
13912 int res1 = 0 ;
13913 bool temp2 = false ;
13914 bool temp3 = false ;
13915 PyObject * obj0 = 0 ;
13916 PyObject * obj1 = 0 ;
13917 PyObject * obj2 = 0 ;
13918 char * kwnames[] = {
13919 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
13920 };
13921
13922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13924 if (!SWIG_IsOK(res1)) {
13925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
13926 }
13927 arg1 = reinterpret_cast< wxLocale * >(argp1);
13928 {
13929 arg2 = wxString_in_helper(obj1);
13930 if (arg2 == NULL) SWIG_fail;
13931 temp2 = true;
13932 }
13933 if (obj2) {
13934 {
13935 arg3 = wxString_in_helper(obj2);
13936 if (arg3 == NULL) SWIG_fail;
13937 temp3 = true;
13938 }
13939 }
13940 {
13941 PyThreadState* __tstate = wxPyBeginAllowThreads();
13942 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
13943 wxPyEndAllowThreads(__tstate);
13944 if (PyErr_Occurred()) SWIG_fail;
13945 }
13946 {
13947 #if wxUSE_UNICODE
13948 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13949 #else
13950 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13951 #endif
13952 }
13953 {
13954 if (temp2)
13955 delete arg2;
13956 }
13957 {
13958 if (temp3)
13959 delete arg3;
13960 }
13961 return resultobj;
13962 fail:
13963 {
13964 if (temp2)
13965 delete arg2;
13966 }
13967 {
13968 if (temp3)
13969 delete arg3;
13970 }
13971 return NULL;
13972 }
13973
13974
13975 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13976 PyObject *resultobj = 0;
13977 wxLocale *arg1 = (wxLocale *) 0 ;
13978 wxString *result = 0 ;
13979 void *argp1 = 0 ;
13980 int res1 = 0 ;
13981 PyObject *swig_obj[1] ;
13982
13983 if (!args) SWIG_fail;
13984 swig_obj[0] = args;
13985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13986 if (!SWIG_IsOK(res1)) {
13987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13988 }
13989 arg1 = reinterpret_cast< wxLocale * >(argp1);
13990 {
13991 PyThreadState* __tstate = wxPyBeginAllowThreads();
13992 {
13993 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
13994 result = (wxString *) &_result_ref;
13995 }
13996 wxPyEndAllowThreads(__tstate);
13997 if (PyErr_Occurred()) SWIG_fail;
13998 }
13999 {
14000 #if wxUSE_UNICODE
14001 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14002 #else
14003 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14004 #endif
14005 }
14006 return resultobj;
14007 fail:
14008 return NULL;
14009 }
14010
14011
14012 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14013 PyObject *obj;
14014 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14015 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
14016 return SWIG_Py_Void();
14017 }
14018
14019 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14020 return SWIG_Python_InitShadowInstance(args);
14021 }
14022
14023 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14024 PyObject *resultobj = 0;
14025 wxLocale *result = 0 ;
14026
14027 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
14028 {
14029 PyThreadState* __tstate = wxPyBeginAllowThreads();
14030 result = (wxLocale *)wxGetLocale();
14031 wxPyEndAllowThreads(__tstate);
14032 if (PyErr_Occurred()) SWIG_fail;
14033 }
14034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
14035 return resultobj;
14036 fail:
14037 return NULL;
14038 }
14039
14040
14041 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14042 PyObject *resultobj = 0;
14043 wxString *arg1 = 0 ;
14044 wxString result;
14045 bool temp1 = false ;
14046
14047 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14048 {
14049 arg1 = wxString_in_helper(swig_obj[0]);
14050 if (arg1 == NULL) SWIG_fail;
14051 temp1 = true;
14052 }
14053 {
14054 PyThreadState* __tstate = wxPyBeginAllowThreads();
14055 result = wxGetTranslation((wxString const &)*arg1);
14056 wxPyEndAllowThreads(__tstate);
14057 if (PyErr_Occurred()) SWIG_fail;
14058 }
14059 {
14060 #if wxUSE_UNICODE
14061 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14062 #else
14063 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14064 #endif
14065 }
14066 {
14067 if (temp1)
14068 delete arg1;
14069 }
14070 return resultobj;
14071 fail:
14072 {
14073 if (temp1)
14074 delete arg1;
14075 }
14076 return NULL;
14077 }
14078
14079
14080 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14081 PyObject *resultobj = 0;
14082 wxString *arg1 = 0 ;
14083 wxString *arg2 = 0 ;
14084 size_t arg3 ;
14085 wxString result;
14086 bool temp1 = false ;
14087 bool temp2 = false ;
14088 size_t val3 ;
14089 int ecode3 = 0 ;
14090
14091 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14092 {
14093 arg1 = wxString_in_helper(swig_obj[0]);
14094 if (arg1 == NULL) SWIG_fail;
14095 temp1 = true;
14096 }
14097 {
14098 arg2 = wxString_in_helper(swig_obj[1]);
14099 if (arg2 == NULL) SWIG_fail;
14100 temp2 = true;
14101 }
14102 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
14103 if (!SWIG_IsOK(ecode3)) {
14104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14105 }
14106 arg3 = static_cast< size_t >(val3);
14107 {
14108 PyThreadState* __tstate = wxPyBeginAllowThreads();
14109 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
14110 wxPyEndAllowThreads(__tstate);
14111 if (PyErr_Occurred()) SWIG_fail;
14112 }
14113 {
14114 #if wxUSE_UNICODE
14115 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14116 #else
14117 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14118 #endif
14119 }
14120 {
14121 if (temp1)
14122 delete arg1;
14123 }
14124 {
14125 if (temp2)
14126 delete arg2;
14127 }
14128 return resultobj;
14129 fail:
14130 {
14131 if (temp1)
14132 delete arg1;
14133 }
14134 {
14135 if (temp2)
14136 delete arg2;
14137 }
14138 return NULL;
14139 }
14140
14141
14142 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
14143 int argc;
14144 PyObject *argv[4];
14145
14146 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail;
14147 --argc;
14148 if (argc == 1) {
14149 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
14150 }
14151 if (argc == 3) {
14152 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
14153 }
14154
14155 fail:
14156 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
14157 return NULL;
14158 }
14159
14160
14161 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14162 PyObject *resultobj = 0;
14163 wxEncodingConverter *result = 0 ;
14164
14165 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
14166 {
14167 PyThreadState* __tstate = wxPyBeginAllowThreads();
14168 result = (wxEncodingConverter *)new wxEncodingConverter();
14169 wxPyEndAllowThreads(__tstate);
14170 if (PyErr_Occurred()) SWIG_fail;
14171 }
14172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
14173 return resultobj;
14174 fail:
14175 return NULL;
14176 }
14177
14178
14179 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14180 PyObject *resultobj = 0;
14181 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14182 void *argp1 = 0 ;
14183 int res1 = 0 ;
14184 PyObject *swig_obj[1] ;
14185
14186 if (!args) SWIG_fail;
14187 swig_obj[0] = args;
14188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
14189 if (!SWIG_IsOK(res1)) {
14190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14191 }
14192 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14193 {
14194 PyThreadState* __tstate = wxPyBeginAllowThreads();
14195 delete arg1;
14196
14197 wxPyEndAllowThreads(__tstate);
14198 if (PyErr_Occurred()) SWIG_fail;
14199 }
14200 resultobj = SWIG_Py_Void();
14201 return resultobj;
14202 fail:
14203 return NULL;
14204 }
14205
14206
14207 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14208 PyObject *resultobj = 0;
14209 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14210 wxFontEncoding arg2 ;
14211 wxFontEncoding arg3 ;
14212 int arg4 = (int) wxCONVERT_STRICT ;
14213 bool result;
14214 void *argp1 = 0 ;
14215 int res1 = 0 ;
14216 int val2 ;
14217 int ecode2 = 0 ;
14218 int val3 ;
14219 int ecode3 = 0 ;
14220 int val4 ;
14221 int ecode4 = 0 ;
14222 PyObject * obj0 = 0 ;
14223 PyObject * obj1 = 0 ;
14224 PyObject * obj2 = 0 ;
14225 PyObject * obj3 = 0 ;
14226 char * kwnames[] = {
14227 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14228 };
14229
14230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14232 if (!SWIG_IsOK(res1)) {
14233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14234 }
14235 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14236 ecode2 = SWIG_AsVal_int(obj1, &val2);
14237 if (!SWIG_IsOK(ecode2)) {
14238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14239 }
14240 arg2 = static_cast< wxFontEncoding >(val2);
14241 ecode3 = SWIG_AsVal_int(obj2, &val3);
14242 if (!SWIG_IsOK(ecode3)) {
14243 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14244 }
14245 arg3 = static_cast< wxFontEncoding >(val3);
14246 if (obj3) {
14247 ecode4 = SWIG_AsVal_int(obj3, &val4);
14248 if (!SWIG_IsOK(ecode4)) {
14249 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14250 }
14251 arg4 = static_cast< int >(val4);
14252 }
14253 {
14254 PyThreadState* __tstate = wxPyBeginAllowThreads();
14255 result = (bool)(arg1)->Init(arg2,arg3,arg4);
14256 wxPyEndAllowThreads(__tstate);
14257 if (PyErr_Occurred()) SWIG_fail;
14258 }
14259 {
14260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14261 }
14262 return resultobj;
14263 fail:
14264 return NULL;
14265 }
14266
14267
14268 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14269 PyObject *resultobj = 0;
14270 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14271 wxString *arg2 = 0 ;
14272 wxString result;
14273 void *argp1 = 0 ;
14274 int res1 = 0 ;
14275 bool temp2 = false ;
14276 PyObject * obj0 = 0 ;
14277 PyObject * obj1 = 0 ;
14278 char * kwnames[] = {
14279 (char *) "self",(char *) "input", NULL
14280 };
14281
14282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
14283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14284 if (!SWIG_IsOK(res1)) {
14285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14286 }
14287 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14288 {
14289 arg2 = wxString_in_helper(obj1);
14290 if (arg2 == NULL) SWIG_fail;
14291 temp2 = true;
14292 }
14293 {
14294 PyThreadState* __tstate = wxPyBeginAllowThreads();
14295 result = (arg1)->Convert((wxString const &)*arg2);
14296 wxPyEndAllowThreads(__tstate);
14297 if (PyErr_Occurred()) SWIG_fail;
14298 }
14299 {
14300 #if wxUSE_UNICODE
14301 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14302 #else
14303 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14304 #endif
14305 }
14306 {
14307 if (temp2)
14308 delete arg2;
14309 }
14310 return resultobj;
14311 fail:
14312 {
14313 if (temp2)
14314 delete arg2;
14315 }
14316 return NULL;
14317 }
14318
14319
14320 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14321 PyObject *resultobj = 0;
14322 wxFontEncoding arg1 ;
14323 int arg2 = (int) wxPLATFORM_CURRENT ;
14324 wxFontEncodingArray result;
14325 int val1 ;
14326 int ecode1 = 0 ;
14327 int val2 ;
14328 int ecode2 = 0 ;
14329 PyObject * obj0 = 0 ;
14330 PyObject * obj1 = 0 ;
14331 char * kwnames[] = {
14332 (char *) "enc",(char *) "platform", NULL
14333 };
14334
14335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
14336 ecode1 = SWIG_AsVal_int(obj0, &val1);
14337 if (!SWIG_IsOK(ecode1)) {
14338 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14339 }
14340 arg1 = static_cast< wxFontEncoding >(val1);
14341 if (obj1) {
14342 ecode2 = SWIG_AsVal_int(obj1, &val2);
14343 if (!SWIG_IsOK(ecode2)) {
14344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
14345 }
14346 arg2 = static_cast< int >(val2);
14347 }
14348 {
14349 PyThreadState* __tstate = wxPyBeginAllowThreads();
14350 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
14351 wxPyEndAllowThreads(__tstate);
14352 if (PyErr_Occurred()) SWIG_fail;
14353 }
14354 {
14355 resultobj = PyList_New(0);
14356 for (size_t i=0; i < (&result)->GetCount(); i++) {
14357 PyObject* number = PyInt_FromLong((&result)->Item(i));
14358 PyList_Append(resultobj, number);
14359 Py_DECREF(number);
14360 }
14361 }
14362 return resultobj;
14363 fail:
14364 return NULL;
14365 }
14366
14367
14368 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14369 PyObject *resultobj = 0;
14370 wxFontEncoding arg1 ;
14371 wxFontEncodingArray result;
14372 int val1 ;
14373 int ecode1 = 0 ;
14374 PyObject * obj0 = 0 ;
14375 char * kwnames[] = {
14376 (char *) "enc", NULL
14377 };
14378
14379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
14380 ecode1 = SWIG_AsVal_int(obj0, &val1);
14381 if (!SWIG_IsOK(ecode1)) {
14382 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14383 }
14384 arg1 = static_cast< wxFontEncoding >(val1);
14385 {
14386 PyThreadState* __tstate = wxPyBeginAllowThreads();
14387 result = wxEncodingConverter::GetAllEquivalents(arg1);
14388 wxPyEndAllowThreads(__tstate);
14389 if (PyErr_Occurred()) SWIG_fail;
14390 }
14391 {
14392 resultobj = PyList_New(0);
14393 for (size_t i=0; i < (&result)->GetCount(); i++) {
14394 PyObject* number = PyInt_FromLong((&result)->Item(i));
14395 PyList_Append(resultobj, number);
14396 Py_DECREF(number);
14397 }
14398 }
14399 return resultobj;
14400 fail:
14401 return NULL;
14402 }
14403
14404
14405 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14406 PyObject *resultobj = 0;
14407 wxFontEncoding arg1 ;
14408 wxFontEncoding arg2 ;
14409 bool result;
14410 int val1 ;
14411 int ecode1 = 0 ;
14412 int val2 ;
14413 int ecode2 = 0 ;
14414 PyObject * obj0 = 0 ;
14415 PyObject * obj1 = 0 ;
14416 char * kwnames[] = {
14417 (char *) "encIn",(char *) "encOut", NULL
14418 };
14419
14420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
14421 ecode1 = SWIG_AsVal_int(obj0, &val1);
14422 if (!SWIG_IsOK(ecode1)) {
14423 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14424 }
14425 arg1 = static_cast< wxFontEncoding >(val1);
14426 ecode2 = SWIG_AsVal_int(obj1, &val2);
14427 if (!SWIG_IsOK(ecode2)) {
14428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14429 }
14430 arg2 = static_cast< wxFontEncoding >(val2);
14431 {
14432 PyThreadState* __tstate = wxPyBeginAllowThreads();
14433 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
14434 wxPyEndAllowThreads(__tstate);
14435 if (PyErr_Occurred()) SWIG_fail;
14436 }
14437 {
14438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14439 }
14440 return resultobj;
14441 fail:
14442 return NULL;
14443 }
14444
14445
14446 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14447 PyObject *obj;
14448 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14449 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
14450 return SWIG_Py_Void();
14451 }
14452
14453 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14454 return SWIG_Python_InitShadowInstance(args);
14455 }
14456
14457 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14458 PyObject *resultobj = 0;
14459 wxDC *arg1 = (wxDC *) 0 ;
14460 void *argp1 = 0 ;
14461 int res1 = 0 ;
14462 PyObject *swig_obj[1] ;
14463
14464 if (!args) SWIG_fail;
14465 swig_obj[0] = args;
14466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
14467 if (!SWIG_IsOK(res1)) {
14468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
14469 }
14470 arg1 = reinterpret_cast< wxDC * >(argp1);
14471 {
14472 PyThreadState* __tstate = wxPyBeginAllowThreads();
14473 delete arg1;
14474
14475 wxPyEndAllowThreads(__tstate);
14476 if (PyErr_Occurred()) SWIG_fail;
14477 }
14478 resultobj = SWIG_Py_Void();
14479 return resultobj;
14480 fail:
14481 return NULL;
14482 }
14483
14484
14485 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14486 PyObject *resultobj = 0;
14487 wxDC *arg1 = (wxDC *) 0 ;
14488 int arg2 ;
14489 int arg3 ;
14490 wxColour *arg4 = 0 ;
14491 int arg5 = (int) wxFLOOD_SURFACE ;
14492 bool result;
14493 void *argp1 = 0 ;
14494 int res1 = 0 ;
14495 int val2 ;
14496 int ecode2 = 0 ;
14497 int val3 ;
14498 int ecode3 = 0 ;
14499 wxColour temp4 ;
14500 int val5 ;
14501 int ecode5 = 0 ;
14502 PyObject * obj0 = 0 ;
14503 PyObject * obj1 = 0 ;
14504 PyObject * obj2 = 0 ;
14505 PyObject * obj3 = 0 ;
14506 PyObject * obj4 = 0 ;
14507 char * kwnames[] = {
14508 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
14509 };
14510
14511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14513 if (!SWIG_IsOK(res1)) {
14514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
14515 }
14516 arg1 = reinterpret_cast< wxDC * >(argp1);
14517 ecode2 = SWIG_AsVal_int(obj1, &val2);
14518 if (!SWIG_IsOK(ecode2)) {
14519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
14520 }
14521 arg2 = static_cast< int >(val2);
14522 ecode3 = SWIG_AsVal_int(obj2, &val3);
14523 if (!SWIG_IsOK(ecode3)) {
14524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
14525 }
14526 arg3 = static_cast< int >(val3);
14527 {
14528 arg4 = &temp4;
14529 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14530 }
14531 if (obj4) {
14532 ecode5 = SWIG_AsVal_int(obj4, &val5);
14533 if (!SWIG_IsOK(ecode5)) {
14534 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
14535 }
14536 arg5 = static_cast< int >(val5);
14537 }
14538 {
14539 PyThreadState* __tstate = wxPyBeginAllowThreads();
14540 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
14541 wxPyEndAllowThreads(__tstate);
14542 if (PyErr_Occurred()) SWIG_fail;
14543 }
14544 {
14545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14546 }
14547 return resultobj;
14548 fail:
14549 return NULL;
14550 }
14551
14552
14553 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14554 PyObject *resultobj = 0;
14555 wxDC *arg1 = (wxDC *) 0 ;
14556 wxPoint *arg2 = 0 ;
14557 wxColour *arg3 = 0 ;
14558 int arg4 = (int) wxFLOOD_SURFACE ;
14559 bool result;
14560 void *argp1 = 0 ;
14561 int res1 = 0 ;
14562 wxPoint temp2 ;
14563 wxColour temp3 ;
14564 int val4 ;
14565 int ecode4 = 0 ;
14566 PyObject * obj0 = 0 ;
14567 PyObject * obj1 = 0 ;
14568 PyObject * obj2 = 0 ;
14569 PyObject * obj3 = 0 ;
14570 char * kwnames[] = {
14571 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
14572 };
14573
14574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14576 if (!SWIG_IsOK(res1)) {
14577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14578 }
14579 arg1 = reinterpret_cast< wxDC * >(argp1);
14580 {
14581 arg2 = &temp2;
14582 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14583 }
14584 {
14585 arg3 = &temp3;
14586 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14587 }
14588 if (obj3) {
14589 ecode4 = SWIG_AsVal_int(obj3, &val4);
14590 if (!SWIG_IsOK(ecode4)) {
14591 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
14592 }
14593 arg4 = static_cast< int >(val4);
14594 }
14595 {
14596 PyThreadState* __tstate = wxPyBeginAllowThreads();
14597 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
14598 wxPyEndAllowThreads(__tstate);
14599 if (PyErr_Occurred()) SWIG_fail;
14600 }
14601 {
14602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14603 }
14604 return resultobj;
14605 fail:
14606 return NULL;
14607 }
14608
14609
14610 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14611 PyObject *resultobj = 0;
14612 wxDC *arg1 = (wxDC *) 0 ;
14613 wxRect *arg2 = 0 ;
14614 wxColour *arg3 = 0 ;
14615 wxColour *arg4 = 0 ;
14616 wxPoint *arg5 = 0 ;
14617 void *argp1 = 0 ;
14618 int res1 = 0 ;
14619 wxRect temp2 ;
14620 wxColour temp3 ;
14621 wxColour temp4 ;
14622 wxPoint temp5 ;
14623 PyObject * obj0 = 0 ;
14624 PyObject * obj1 = 0 ;
14625 PyObject * obj2 = 0 ;
14626 PyObject * obj3 = 0 ;
14627 PyObject * obj4 = 0 ;
14628 char * kwnames[] = {
14629 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
14630 };
14631
14632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14634 if (!SWIG_IsOK(res1)) {
14635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
14636 }
14637 arg1 = reinterpret_cast< wxDC * >(argp1);
14638 {
14639 arg2 = &temp2;
14640 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14641 }
14642 {
14643 arg3 = &temp3;
14644 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14645 }
14646 {
14647 arg4 = &temp4;
14648 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14649 }
14650 {
14651 arg5 = &temp5;
14652 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14653 }
14654 {
14655 PyThreadState* __tstate = wxPyBeginAllowThreads();
14656 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
14657 wxPyEndAllowThreads(__tstate);
14658 if (PyErr_Occurred()) SWIG_fail;
14659 }
14660 resultobj = SWIG_Py_Void();
14661 return resultobj;
14662 fail:
14663 return NULL;
14664 }
14665
14666
14667 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14668 PyObject *resultobj = 0;
14669 wxDC *arg1 = (wxDC *) 0 ;
14670 wxRect *arg2 = 0 ;
14671 wxColour *arg3 = 0 ;
14672 wxColour *arg4 = 0 ;
14673 wxDirection arg5 = (wxDirection) wxEAST ;
14674 void *argp1 = 0 ;
14675 int res1 = 0 ;
14676 wxRect temp2 ;
14677 wxColour temp3 ;
14678 wxColour temp4 ;
14679 int val5 ;
14680 int ecode5 = 0 ;
14681 PyObject * obj0 = 0 ;
14682 PyObject * obj1 = 0 ;
14683 PyObject * obj2 = 0 ;
14684 PyObject * obj3 = 0 ;
14685 PyObject * obj4 = 0 ;
14686 char * kwnames[] = {
14687 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
14688 };
14689
14690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14692 if (!SWIG_IsOK(res1)) {
14693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
14694 }
14695 arg1 = reinterpret_cast< wxDC * >(argp1);
14696 {
14697 arg2 = &temp2;
14698 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14699 }
14700 {
14701 arg3 = &temp3;
14702 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14703 }
14704 {
14705 arg4 = &temp4;
14706 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14707 }
14708 if (obj4) {
14709 ecode5 = SWIG_AsVal_int(obj4, &val5);
14710 if (!SWIG_IsOK(ecode5)) {
14711 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
14712 }
14713 arg5 = static_cast< wxDirection >(val5);
14714 }
14715 {
14716 PyThreadState* __tstate = wxPyBeginAllowThreads();
14717 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
14718 wxPyEndAllowThreads(__tstate);
14719 if (PyErr_Occurred()) SWIG_fail;
14720 }
14721 resultobj = SWIG_Py_Void();
14722 return resultobj;
14723 fail:
14724 return NULL;
14725 }
14726
14727
14728 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14729 PyObject *resultobj = 0;
14730 wxDC *arg1 = (wxDC *) 0 ;
14731 int arg2 ;
14732 int arg3 ;
14733 wxColour result;
14734 void *argp1 = 0 ;
14735 int res1 = 0 ;
14736 int val2 ;
14737 int ecode2 = 0 ;
14738 int val3 ;
14739 int ecode3 = 0 ;
14740 PyObject * obj0 = 0 ;
14741 PyObject * obj1 = 0 ;
14742 PyObject * obj2 = 0 ;
14743 char * kwnames[] = {
14744 (char *) "self",(char *) "x",(char *) "y", NULL
14745 };
14746
14747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14749 if (!SWIG_IsOK(res1)) {
14750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
14751 }
14752 arg1 = reinterpret_cast< wxDC * >(argp1);
14753 ecode2 = SWIG_AsVal_int(obj1, &val2);
14754 if (!SWIG_IsOK(ecode2)) {
14755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
14756 }
14757 arg2 = static_cast< int >(val2);
14758 ecode3 = SWIG_AsVal_int(obj2, &val3);
14759 if (!SWIG_IsOK(ecode3)) {
14760 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
14761 }
14762 arg3 = static_cast< int >(val3);
14763 {
14764 PyThreadState* __tstate = wxPyBeginAllowThreads();
14765 result = wxDC_GetPixel(arg1,arg2,arg3);
14766 wxPyEndAllowThreads(__tstate);
14767 if (PyErr_Occurred()) SWIG_fail;
14768 }
14769 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14770 return resultobj;
14771 fail:
14772 return NULL;
14773 }
14774
14775
14776 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14777 PyObject *resultobj = 0;
14778 wxDC *arg1 = (wxDC *) 0 ;
14779 wxPoint *arg2 = 0 ;
14780 wxColour result;
14781 void *argp1 = 0 ;
14782 int res1 = 0 ;
14783 wxPoint temp2 ;
14784 PyObject * obj0 = 0 ;
14785 PyObject * obj1 = 0 ;
14786 char * kwnames[] = {
14787 (char *) "self",(char *) "pt", NULL
14788 };
14789
14790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14792 if (!SWIG_IsOK(res1)) {
14793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14794 }
14795 arg1 = reinterpret_cast< wxDC * >(argp1);
14796 {
14797 arg2 = &temp2;
14798 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14799 }
14800 {
14801 PyThreadState* __tstate = wxPyBeginAllowThreads();
14802 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
14803 wxPyEndAllowThreads(__tstate);
14804 if (PyErr_Occurred()) SWIG_fail;
14805 }
14806 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14807 return resultobj;
14808 fail:
14809 return NULL;
14810 }
14811
14812
14813 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14814 PyObject *resultobj = 0;
14815 wxDC *arg1 = (wxDC *) 0 ;
14816 int arg2 ;
14817 int arg3 ;
14818 int arg4 ;
14819 int arg5 ;
14820 void *argp1 = 0 ;
14821 int res1 = 0 ;
14822 int val2 ;
14823 int ecode2 = 0 ;
14824 int val3 ;
14825 int ecode3 = 0 ;
14826 int val4 ;
14827 int ecode4 = 0 ;
14828 int val5 ;
14829 int ecode5 = 0 ;
14830 PyObject * obj0 = 0 ;
14831 PyObject * obj1 = 0 ;
14832 PyObject * obj2 = 0 ;
14833 PyObject * obj3 = 0 ;
14834 PyObject * obj4 = 0 ;
14835 char * kwnames[] = {
14836 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
14837 };
14838
14839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14841 if (!SWIG_IsOK(res1)) {
14842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
14843 }
14844 arg1 = reinterpret_cast< wxDC * >(argp1);
14845 ecode2 = SWIG_AsVal_int(obj1, &val2);
14846 if (!SWIG_IsOK(ecode2)) {
14847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
14848 }
14849 arg2 = static_cast< int >(val2);
14850 ecode3 = SWIG_AsVal_int(obj2, &val3);
14851 if (!SWIG_IsOK(ecode3)) {
14852 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
14853 }
14854 arg3 = static_cast< int >(val3);
14855 ecode4 = SWIG_AsVal_int(obj3, &val4);
14856 if (!SWIG_IsOK(ecode4)) {
14857 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
14858 }
14859 arg4 = static_cast< int >(val4);
14860 ecode5 = SWIG_AsVal_int(obj4, &val5);
14861 if (!SWIG_IsOK(ecode5)) {
14862 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
14863 }
14864 arg5 = static_cast< int >(val5);
14865 {
14866 PyThreadState* __tstate = wxPyBeginAllowThreads();
14867 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
14868 wxPyEndAllowThreads(__tstate);
14869 if (PyErr_Occurred()) SWIG_fail;
14870 }
14871 resultobj = SWIG_Py_Void();
14872 return resultobj;
14873 fail:
14874 return NULL;
14875 }
14876
14877
14878 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14879 PyObject *resultobj = 0;
14880 wxDC *arg1 = (wxDC *) 0 ;
14881 wxPoint *arg2 = 0 ;
14882 wxPoint *arg3 = 0 ;
14883 void *argp1 = 0 ;
14884 int res1 = 0 ;
14885 wxPoint temp2 ;
14886 wxPoint temp3 ;
14887 PyObject * obj0 = 0 ;
14888 PyObject * obj1 = 0 ;
14889 PyObject * obj2 = 0 ;
14890 char * kwnames[] = {
14891 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
14892 };
14893
14894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14896 if (!SWIG_IsOK(res1)) {
14897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
14898 }
14899 arg1 = reinterpret_cast< wxDC * >(argp1);
14900 {
14901 arg2 = &temp2;
14902 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14903 }
14904 {
14905 arg3 = &temp3;
14906 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14907 }
14908 {
14909 PyThreadState* __tstate = wxPyBeginAllowThreads();
14910 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
14911 wxPyEndAllowThreads(__tstate);
14912 if (PyErr_Occurred()) SWIG_fail;
14913 }
14914 resultobj = SWIG_Py_Void();
14915 return resultobj;
14916 fail:
14917 return NULL;
14918 }
14919
14920
14921 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14922 PyObject *resultobj = 0;
14923 wxDC *arg1 = (wxDC *) 0 ;
14924 int arg2 ;
14925 int arg3 ;
14926 void *argp1 = 0 ;
14927 int res1 = 0 ;
14928 int val2 ;
14929 int ecode2 = 0 ;
14930 int val3 ;
14931 int ecode3 = 0 ;
14932 PyObject * obj0 = 0 ;
14933 PyObject * obj1 = 0 ;
14934 PyObject * obj2 = 0 ;
14935 char * kwnames[] = {
14936 (char *) "self",(char *) "x",(char *) "y", NULL
14937 };
14938
14939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14941 if (!SWIG_IsOK(res1)) {
14942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
14943 }
14944 arg1 = reinterpret_cast< wxDC * >(argp1);
14945 ecode2 = SWIG_AsVal_int(obj1, &val2);
14946 if (!SWIG_IsOK(ecode2)) {
14947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
14948 }
14949 arg2 = static_cast< int >(val2);
14950 ecode3 = SWIG_AsVal_int(obj2, &val3);
14951 if (!SWIG_IsOK(ecode3)) {
14952 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
14953 }
14954 arg3 = static_cast< int >(val3);
14955 {
14956 PyThreadState* __tstate = wxPyBeginAllowThreads();
14957 (arg1)->CrossHair(arg2,arg3);
14958 wxPyEndAllowThreads(__tstate);
14959 if (PyErr_Occurred()) SWIG_fail;
14960 }
14961 resultobj = SWIG_Py_Void();
14962 return resultobj;
14963 fail:
14964 return NULL;
14965 }
14966
14967
14968 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14969 PyObject *resultobj = 0;
14970 wxDC *arg1 = (wxDC *) 0 ;
14971 wxPoint *arg2 = 0 ;
14972 void *argp1 = 0 ;
14973 int res1 = 0 ;
14974 wxPoint temp2 ;
14975 PyObject * obj0 = 0 ;
14976 PyObject * obj1 = 0 ;
14977 char * kwnames[] = {
14978 (char *) "self",(char *) "pt", NULL
14979 };
14980
14981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14983 if (!SWIG_IsOK(res1)) {
14984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14985 }
14986 arg1 = reinterpret_cast< wxDC * >(argp1);
14987 {
14988 arg2 = &temp2;
14989 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14990 }
14991 {
14992 PyThreadState* __tstate = wxPyBeginAllowThreads();
14993 (arg1)->CrossHair((wxPoint const &)*arg2);
14994 wxPyEndAllowThreads(__tstate);
14995 if (PyErr_Occurred()) SWIG_fail;
14996 }
14997 resultobj = SWIG_Py_Void();
14998 return resultobj;
14999 fail:
15000 return NULL;
15001 }
15002
15003
15004 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15005 PyObject *resultobj = 0;
15006 wxDC *arg1 = (wxDC *) 0 ;
15007 int arg2 ;
15008 int arg3 ;
15009 int arg4 ;
15010 int arg5 ;
15011 int arg6 ;
15012 int arg7 ;
15013 void *argp1 = 0 ;
15014 int res1 = 0 ;
15015 int val2 ;
15016 int ecode2 = 0 ;
15017 int val3 ;
15018 int ecode3 = 0 ;
15019 int val4 ;
15020 int ecode4 = 0 ;
15021 int val5 ;
15022 int ecode5 = 0 ;
15023 int val6 ;
15024 int ecode6 = 0 ;
15025 int val7 ;
15026 int ecode7 = 0 ;
15027 PyObject * obj0 = 0 ;
15028 PyObject * obj1 = 0 ;
15029 PyObject * obj2 = 0 ;
15030 PyObject * obj3 = 0 ;
15031 PyObject * obj4 = 0 ;
15032 PyObject * obj5 = 0 ;
15033 PyObject * obj6 = 0 ;
15034 char * kwnames[] = {
15035 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
15036 };
15037
15038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15040 if (!SWIG_IsOK(res1)) {
15041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
15042 }
15043 arg1 = reinterpret_cast< wxDC * >(argp1);
15044 ecode2 = SWIG_AsVal_int(obj1, &val2);
15045 if (!SWIG_IsOK(ecode2)) {
15046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
15047 }
15048 arg2 = static_cast< int >(val2);
15049 ecode3 = SWIG_AsVal_int(obj2, &val3);
15050 if (!SWIG_IsOK(ecode3)) {
15051 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
15052 }
15053 arg3 = static_cast< int >(val3);
15054 ecode4 = SWIG_AsVal_int(obj3, &val4);
15055 if (!SWIG_IsOK(ecode4)) {
15056 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
15057 }
15058 arg4 = static_cast< int >(val4);
15059 ecode5 = SWIG_AsVal_int(obj4, &val5);
15060 if (!SWIG_IsOK(ecode5)) {
15061 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
15062 }
15063 arg5 = static_cast< int >(val5);
15064 ecode6 = SWIG_AsVal_int(obj5, &val6);
15065 if (!SWIG_IsOK(ecode6)) {
15066 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
15067 }
15068 arg6 = static_cast< int >(val6);
15069 ecode7 = SWIG_AsVal_int(obj6, &val7);
15070 if (!SWIG_IsOK(ecode7)) {
15071 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
15072 }
15073 arg7 = static_cast< int >(val7);
15074 {
15075 PyThreadState* __tstate = wxPyBeginAllowThreads();
15076 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
15077 wxPyEndAllowThreads(__tstate);
15078 if (PyErr_Occurred()) SWIG_fail;
15079 }
15080 resultobj = SWIG_Py_Void();
15081 return resultobj;
15082 fail:
15083 return NULL;
15084 }
15085
15086
15087 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15088 PyObject *resultobj = 0;
15089 wxDC *arg1 = (wxDC *) 0 ;
15090 wxPoint *arg2 = 0 ;
15091 wxPoint *arg3 = 0 ;
15092 wxPoint *arg4 = 0 ;
15093 void *argp1 = 0 ;
15094 int res1 = 0 ;
15095 wxPoint temp2 ;
15096 wxPoint temp3 ;
15097 wxPoint temp4 ;
15098 PyObject * obj0 = 0 ;
15099 PyObject * obj1 = 0 ;
15100 PyObject * obj2 = 0 ;
15101 PyObject * obj3 = 0 ;
15102 char * kwnames[] = {
15103 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15104 };
15105
15106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15108 if (!SWIG_IsOK(res1)) {
15109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15110 }
15111 arg1 = reinterpret_cast< wxDC * >(argp1);
15112 {
15113 arg2 = &temp2;
15114 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15115 }
15116 {
15117 arg3 = &temp3;
15118 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15119 }
15120 {
15121 arg4 = &temp4;
15122 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15123 }
15124 {
15125 PyThreadState* __tstate = wxPyBeginAllowThreads();
15126 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
15127 wxPyEndAllowThreads(__tstate);
15128 if (PyErr_Occurred()) SWIG_fail;
15129 }
15130 resultobj = SWIG_Py_Void();
15131 return resultobj;
15132 fail:
15133 return NULL;
15134 }
15135
15136
15137 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15138 PyObject *resultobj = 0;
15139 wxDC *arg1 = (wxDC *) 0 ;
15140 int arg2 ;
15141 int arg3 ;
15142 int arg4 ;
15143 int arg5 ;
15144 void *argp1 = 0 ;
15145 int res1 = 0 ;
15146 int val2 ;
15147 int ecode2 = 0 ;
15148 int val3 ;
15149 int ecode3 = 0 ;
15150 int val4 ;
15151 int ecode4 = 0 ;
15152 int val5 ;
15153 int ecode5 = 0 ;
15154 PyObject * obj0 = 0 ;
15155 PyObject * obj1 = 0 ;
15156 PyObject * obj2 = 0 ;
15157 PyObject * obj3 = 0 ;
15158 PyObject * obj4 = 0 ;
15159 char * kwnames[] = {
15160 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15161 };
15162
15163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15165 if (!SWIG_IsOK(res1)) {
15166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15167 }
15168 arg1 = reinterpret_cast< wxDC * >(argp1);
15169 ecode2 = SWIG_AsVal_int(obj1, &val2);
15170 if (!SWIG_IsOK(ecode2)) {
15171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15172 }
15173 arg2 = static_cast< int >(val2);
15174 ecode3 = SWIG_AsVal_int(obj2, &val3);
15175 if (!SWIG_IsOK(ecode3)) {
15176 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15177 }
15178 arg3 = static_cast< int >(val3);
15179 ecode4 = SWIG_AsVal_int(obj3, &val4);
15180 if (!SWIG_IsOK(ecode4)) {
15181 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15182 }
15183 arg4 = static_cast< int >(val4);
15184 ecode5 = SWIG_AsVal_int(obj4, &val5);
15185 if (!SWIG_IsOK(ecode5)) {
15186 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15187 }
15188 arg5 = static_cast< int >(val5);
15189 {
15190 PyThreadState* __tstate = wxPyBeginAllowThreads();
15191 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
15192 wxPyEndAllowThreads(__tstate);
15193 if (PyErr_Occurred()) SWIG_fail;
15194 }
15195 resultobj = SWIG_Py_Void();
15196 return resultobj;
15197 fail:
15198 return NULL;
15199 }
15200
15201
15202 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15203 PyObject *resultobj = 0;
15204 wxDC *arg1 = (wxDC *) 0 ;
15205 wxRect *arg2 = 0 ;
15206 void *argp1 = 0 ;
15207 int res1 = 0 ;
15208 wxRect temp2 ;
15209 PyObject * obj0 = 0 ;
15210 PyObject * obj1 = 0 ;
15211 char * kwnames[] = {
15212 (char *) "self",(char *) "rect", NULL
15213 };
15214
15215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
15216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15217 if (!SWIG_IsOK(res1)) {
15218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15219 }
15220 arg1 = reinterpret_cast< wxDC * >(argp1);
15221 {
15222 arg2 = &temp2;
15223 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15224 }
15225 {
15226 PyThreadState* __tstate = wxPyBeginAllowThreads();
15227 (arg1)->DrawCheckMark((wxRect const &)*arg2);
15228 wxPyEndAllowThreads(__tstate);
15229 if (PyErr_Occurred()) SWIG_fail;
15230 }
15231 resultobj = SWIG_Py_Void();
15232 return resultobj;
15233 fail:
15234 return NULL;
15235 }
15236
15237
15238 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15239 PyObject *resultobj = 0;
15240 wxDC *arg1 = (wxDC *) 0 ;
15241 int arg2 ;
15242 int arg3 ;
15243 int arg4 ;
15244 int arg5 ;
15245 double arg6 ;
15246 double arg7 ;
15247 void *argp1 = 0 ;
15248 int res1 = 0 ;
15249 int val2 ;
15250 int ecode2 = 0 ;
15251 int val3 ;
15252 int ecode3 = 0 ;
15253 int val4 ;
15254 int ecode4 = 0 ;
15255 int val5 ;
15256 int ecode5 = 0 ;
15257 double val6 ;
15258 int ecode6 = 0 ;
15259 double val7 ;
15260 int ecode7 = 0 ;
15261 PyObject * obj0 = 0 ;
15262 PyObject * obj1 = 0 ;
15263 PyObject * obj2 = 0 ;
15264 PyObject * obj3 = 0 ;
15265 PyObject * obj4 = 0 ;
15266 PyObject * obj5 = 0 ;
15267 PyObject * obj6 = 0 ;
15268 char * kwnames[] = {
15269 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15270 };
15271
15272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15274 if (!SWIG_IsOK(res1)) {
15275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15276 }
15277 arg1 = reinterpret_cast< wxDC * >(argp1);
15278 ecode2 = SWIG_AsVal_int(obj1, &val2);
15279 if (!SWIG_IsOK(ecode2)) {
15280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15281 }
15282 arg2 = static_cast< int >(val2);
15283 ecode3 = SWIG_AsVal_int(obj2, &val3);
15284 if (!SWIG_IsOK(ecode3)) {
15285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15286 }
15287 arg3 = static_cast< int >(val3);
15288 ecode4 = SWIG_AsVal_int(obj3, &val4);
15289 if (!SWIG_IsOK(ecode4)) {
15290 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15291 }
15292 arg4 = static_cast< int >(val4);
15293 ecode5 = SWIG_AsVal_int(obj4, &val5);
15294 if (!SWIG_IsOK(ecode5)) {
15295 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15296 }
15297 arg5 = static_cast< int >(val5);
15298 ecode6 = SWIG_AsVal_double(obj5, &val6);
15299 if (!SWIG_IsOK(ecode6)) {
15300 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15301 }
15302 arg6 = static_cast< double >(val6);
15303 ecode7 = SWIG_AsVal_double(obj6, &val7);
15304 if (!SWIG_IsOK(ecode7)) {
15305 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15306 }
15307 arg7 = static_cast< double >(val7);
15308 {
15309 PyThreadState* __tstate = wxPyBeginAllowThreads();
15310 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
15311 wxPyEndAllowThreads(__tstate);
15312 if (PyErr_Occurred()) SWIG_fail;
15313 }
15314 resultobj = SWIG_Py_Void();
15315 return resultobj;
15316 fail:
15317 return NULL;
15318 }
15319
15320
15321 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15322 PyObject *resultobj = 0;
15323 wxDC *arg1 = (wxDC *) 0 ;
15324 wxPoint *arg2 = 0 ;
15325 wxSize *arg3 = 0 ;
15326 double arg4 ;
15327 double arg5 ;
15328 void *argp1 = 0 ;
15329 int res1 = 0 ;
15330 wxPoint temp2 ;
15331 wxSize temp3 ;
15332 double val4 ;
15333 int ecode4 = 0 ;
15334 double val5 ;
15335 int ecode5 = 0 ;
15336 PyObject * obj0 = 0 ;
15337 PyObject * obj1 = 0 ;
15338 PyObject * obj2 = 0 ;
15339 PyObject * obj3 = 0 ;
15340 PyObject * obj4 = 0 ;
15341 char * kwnames[] = {
15342 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
15343 };
15344
15345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15347 if (!SWIG_IsOK(res1)) {
15348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15349 }
15350 arg1 = reinterpret_cast< wxDC * >(argp1);
15351 {
15352 arg2 = &temp2;
15353 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15354 }
15355 {
15356 arg3 = &temp3;
15357 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15358 }
15359 ecode4 = SWIG_AsVal_double(obj3, &val4);
15360 if (!SWIG_IsOK(ecode4)) {
15361 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
15362 }
15363 arg4 = static_cast< double >(val4);
15364 ecode5 = SWIG_AsVal_double(obj4, &val5);
15365 if (!SWIG_IsOK(ecode5)) {
15366 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
15367 }
15368 arg5 = static_cast< double >(val5);
15369 {
15370 PyThreadState* __tstate = wxPyBeginAllowThreads();
15371 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
15372 wxPyEndAllowThreads(__tstate);
15373 if (PyErr_Occurred()) SWIG_fail;
15374 }
15375 resultobj = SWIG_Py_Void();
15376 return resultobj;
15377 fail:
15378 return NULL;
15379 }
15380
15381
15382 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15383 PyObject *resultobj = 0;
15384 wxDC *arg1 = (wxDC *) 0 ;
15385 int arg2 ;
15386 int arg3 ;
15387 void *argp1 = 0 ;
15388 int res1 = 0 ;
15389 int val2 ;
15390 int ecode2 = 0 ;
15391 int val3 ;
15392 int ecode3 = 0 ;
15393 PyObject * obj0 = 0 ;
15394 PyObject * obj1 = 0 ;
15395 PyObject * obj2 = 0 ;
15396 char * kwnames[] = {
15397 (char *) "self",(char *) "x",(char *) "y", NULL
15398 };
15399
15400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15402 if (!SWIG_IsOK(res1)) {
15403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15404 }
15405 arg1 = reinterpret_cast< wxDC * >(argp1);
15406 ecode2 = SWIG_AsVal_int(obj1, &val2);
15407 if (!SWIG_IsOK(ecode2)) {
15408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
15409 }
15410 arg2 = static_cast< int >(val2);
15411 ecode3 = SWIG_AsVal_int(obj2, &val3);
15412 if (!SWIG_IsOK(ecode3)) {
15413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
15414 }
15415 arg3 = static_cast< int >(val3);
15416 {
15417 PyThreadState* __tstate = wxPyBeginAllowThreads();
15418 (arg1)->DrawPoint(arg2,arg3);
15419 wxPyEndAllowThreads(__tstate);
15420 if (PyErr_Occurred()) SWIG_fail;
15421 }
15422 resultobj = SWIG_Py_Void();
15423 return resultobj;
15424 fail:
15425 return NULL;
15426 }
15427
15428
15429 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15430 PyObject *resultobj = 0;
15431 wxDC *arg1 = (wxDC *) 0 ;
15432 wxPoint *arg2 = 0 ;
15433 void *argp1 = 0 ;
15434 int res1 = 0 ;
15435 wxPoint temp2 ;
15436 PyObject * obj0 = 0 ;
15437 PyObject * obj1 = 0 ;
15438 char * kwnames[] = {
15439 (char *) "self",(char *) "pt", NULL
15440 };
15441
15442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15444 if (!SWIG_IsOK(res1)) {
15445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15446 }
15447 arg1 = reinterpret_cast< wxDC * >(argp1);
15448 {
15449 arg2 = &temp2;
15450 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15451 }
15452 {
15453 PyThreadState* __tstate = wxPyBeginAllowThreads();
15454 (arg1)->DrawPoint((wxPoint const &)*arg2);
15455 wxPyEndAllowThreads(__tstate);
15456 if (PyErr_Occurred()) SWIG_fail;
15457 }
15458 resultobj = SWIG_Py_Void();
15459 return resultobj;
15460 fail:
15461 return NULL;
15462 }
15463
15464
15465 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15466 PyObject *resultobj = 0;
15467 wxDC *arg1 = (wxDC *) 0 ;
15468 int arg2 ;
15469 int arg3 ;
15470 int arg4 ;
15471 int arg5 ;
15472 void *argp1 = 0 ;
15473 int res1 = 0 ;
15474 int val2 ;
15475 int ecode2 = 0 ;
15476 int val3 ;
15477 int ecode3 = 0 ;
15478 int val4 ;
15479 int ecode4 = 0 ;
15480 int val5 ;
15481 int ecode5 = 0 ;
15482 PyObject * obj0 = 0 ;
15483 PyObject * obj1 = 0 ;
15484 PyObject * obj2 = 0 ;
15485 PyObject * obj3 = 0 ;
15486 PyObject * obj4 = 0 ;
15487 char * kwnames[] = {
15488 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15489 };
15490
15491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15493 if (!SWIG_IsOK(res1)) {
15494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15495 }
15496 arg1 = reinterpret_cast< wxDC * >(argp1);
15497 ecode2 = SWIG_AsVal_int(obj1, &val2);
15498 if (!SWIG_IsOK(ecode2)) {
15499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
15500 }
15501 arg2 = static_cast< int >(val2);
15502 ecode3 = SWIG_AsVal_int(obj2, &val3);
15503 if (!SWIG_IsOK(ecode3)) {
15504 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
15505 }
15506 arg3 = static_cast< int >(val3);
15507 ecode4 = SWIG_AsVal_int(obj3, &val4);
15508 if (!SWIG_IsOK(ecode4)) {
15509 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
15510 }
15511 arg4 = static_cast< int >(val4);
15512 ecode5 = SWIG_AsVal_int(obj4, &val5);
15513 if (!SWIG_IsOK(ecode5)) {
15514 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
15515 }
15516 arg5 = static_cast< int >(val5);
15517 {
15518 PyThreadState* __tstate = wxPyBeginAllowThreads();
15519 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
15520 wxPyEndAllowThreads(__tstate);
15521 if (PyErr_Occurred()) SWIG_fail;
15522 }
15523 resultobj = SWIG_Py_Void();
15524 return resultobj;
15525 fail:
15526 return NULL;
15527 }
15528
15529
15530 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15531 PyObject *resultobj = 0;
15532 wxDC *arg1 = (wxDC *) 0 ;
15533 wxRect *arg2 = 0 ;
15534 void *argp1 = 0 ;
15535 int res1 = 0 ;
15536 wxRect temp2 ;
15537 PyObject * obj0 = 0 ;
15538 PyObject * obj1 = 0 ;
15539 char * kwnames[] = {
15540 (char *) "self",(char *) "rect", NULL
15541 };
15542
15543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
15544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15545 if (!SWIG_IsOK(res1)) {
15546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15547 }
15548 arg1 = reinterpret_cast< wxDC * >(argp1);
15549 {
15550 arg2 = &temp2;
15551 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15552 }
15553 {
15554 PyThreadState* __tstate = wxPyBeginAllowThreads();
15555 (arg1)->DrawRectangle((wxRect const &)*arg2);
15556 wxPyEndAllowThreads(__tstate);
15557 if (PyErr_Occurred()) SWIG_fail;
15558 }
15559 resultobj = SWIG_Py_Void();
15560 return resultobj;
15561 fail:
15562 return NULL;
15563 }
15564
15565
15566 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15567 PyObject *resultobj = 0;
15568 wxDC *arg1 = (wxDC *) 0 ;
15569 wxPoint *arg2 = 0 ;
15570 wxSize *arg3 = 0 ;
15571 void *argp1 = 0 ;
15572 int res1 = 0 ;
15573 wxPoint temp2 ;
15574 wxSize temp3 ;
15575 PyObject * obj0 = 0 ;
15576 PyObject * obj1 = 0 ;
15577 PyObject * obj2 = 0 ;
15578 char * kwnames[] = {
15579 (char *) "self",(char *) "pt",(char *) "sz", NULL
15580 };
15581
15582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15584 if (!SWIG_IsOK(res1)) {
15585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15586 }
15587 arg1 = reinterpret_cast< wxDC * >(argp1);
15588 {
15589 arg2 = &temp2;
15590 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15591 }
15592 {
15593 arg3 = &temp3;
15594 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15595 }
15596 {
15597 PyThreadState* __tstate = wxPyBeginAllowThreads();
15598 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
15599 wxPyEndAllowThreads(__tstate);
15600 if (PyErr_Occurred()) SWIG_fail;
15601 }
15602 resultobj = SWIG_Py_Void();
15603 return resultobj;
15604 fail:
15605 return NULL;
15606 }
15607
15608
15609 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15610 PyObject *resultobj = 0;
15611 wxDC *arg1 = (wxDC *) 0 ;
15612 int arg2 ;
15613 int arg3 ;
15614 int arg4 ;
15615 int arg5 ;
15616 double arg6 ;
15617 void *argp1 = 0 ;
15618 int res1 = 0 ;
15619 int val2 ;
15620 int ecode2 = 0 ;
15621 int val3 ;
15622 int ecode3 = 0 ;
15623 int val4 ;
15624 int ecode4 = 0 ;
15625 int val5 ;
15626 int ecode5 = 0 ;
15627 double val6 ;
15628 int ecode6 = 0 ;
15629 PyObject * obj0 = 0 ;
15630 PyObject * obj1 = 0 ;
15631 PyObject * obj2 = 0 ;
15632 PyObject * obj3 = 0 ;
15633 PyObject * obj4 = 0 ;
15634 PyObject * obj5 = 0 ;
15635 char * kwnames[] = {
15636 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
15637 };
15638
15639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15641 if (!SWIG_IsOK(res1)) {
15642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15643 }
15644 arg1 = reinterpret_cast< wxDC * >(argp1);
15645 ecode2 = SWIG_AsVal_int(obj1, &val2);
15646 if (!SWIG_IsOK(ecode2)) {
15647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
15648 }
15649 arg2 = static_cast< int >(val2);
15650 ecode3 = SWIG_AsVal_int(obj2, &val3);
15651 if (!SWIG_IsOK(ecode3)) {
15652 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
15653 }
15654 arg3 = static_cast< int >(val3);
15655 ecode4 = SWIG_AsVal_int(obj3, &val4);
15656 if (!SWIG_IsOK(ecode4)) {
15657 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
15658 }
15659 arg4 = static_cast< int >(val4);
15660 ecode5 = SWIG_AsVal_int(obj4, &val5);
15661 if (!SWIG_IsOK(ecode5)) {
15662 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
15663 }
15664 arg5 = static_cast< int >(val5);
15665 ecode6 = SWIG_AsVal_double(obj5, &val6);
15666 if (!SWIG_IsOK(ecode6)) {
15667 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
15668 }
15669 arg6 = static_cast< double >(val6);
15670 {
15671 PyThreadState* __tstate = wxPyBeginAllowThreads();
15672 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
15673 wxPyEndAllowThreads(__tstate);
15674 if (PyErr_Occurred()) SWIG_fail;
15675 }
15676 resultobj = SWIG_Py_Void();
15677 return resultobj;
15678 fail:
15679 return NULL;
15680 }
15681
15682
15683 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15684 PyObject *resultobj = 0;
15685 wxDC *arg1 = (wxDC *) 0 ;
15686 wxRect *arg2 = 0 ;
15687 double arg3 ;
15688 void *argp1 = 0 ;
15689 int res1 = 0 ;
15690 wxRect temp2 ;
15691 double val3 ;
15692 int ecode3 = 0 ;
15693 PyObject * obj0 = 0 ;
15694 PyObject * obj1 = 0 ;
15695 PyObject * obj2 = 0 ;
15696 char * kwnames[] = {
15697 (char *) "self",(char *) "r",(char *) "radius", NULL
15698 };
15699
15700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15702 if (!SWIG_IsOK(res1)) {
15703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15704 }
15705 arg1 = reinterpret_cast< wxDC * >(argp1);
15706 {
15707 arg2 = &temp2;
15708 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15709 }
15710 ecode3 = SWIG_AsVal_double(obj2, &val3);
15711 if (!SWIG_IsOK(ecode3)) {
15712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
15713 }
15714 arg3 = static_cast< double >(val3);
15715 {
15716 PyThreadState* __tstate = wxPyBeginAllowThreads();
15717 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
15718 wxPyEndAllowThreads(__tstate);
15719 if (PyErr_Occurred()) SWIG_fail;
15720 }
15721 resultobj = SWIG_Py_Void();
15722 return resultobj;
15723 fail:
15724 return NULL;
15725 }
15726
15727
15728 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15729 PyObject *resultobj = 0;
15730 wxDC *arg1 = (wxDC *) 0 ;
15731 wxPoint *arg2 = 0 ;
15732 wxSize *arg3 = 0 ;
15733 double arg4 ;
15734 void *argp1 = 0 ;
15735 int res1 = 0 ;
15736 wxPoint temp2 ;
15737 wxSize temp3 ;
15738 double val4 ;
15739 int ecode4 = 0 ;
15740 PyObject * obj0 = 0 ;
15741 PyObject * obj1 = 0 ;
15742 PyObject * obj2 = 0 ;
15743 PyObject * obj3 = 0 ;
15744 char * kwnames[] = {
15745 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
15746 };
15747
15748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15750 if (!SWIG_IsOK(res1)) {
15751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15752 }
15753 arg1 = reinterpret_cast< wxDC * >(argp1);
15754 {
15755 arg2 = &temp2;
15756 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15757 }
15758 {
15759 arg3 = &temp3;
15760 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15761 }
15762 ecode4 = SWIG_AsVal_double(obj3, &val4);
15763 if (!SWIG_IsOK(ecode4)) {
15764 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
15765 }
15766 arg4 = static_cast< double >(val4);
15767 {
15768 PyThreadState* __tstate = wxPyBeginAllowThreads();
15769 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
15770 wxPyEndAllowThreads(__tstate);
15771 if (PyErr_Occurred()) SWIG_fail;
15772 }
15773 resultobj = SWIG_Py_Void();
15774 return resultobj;
15775 fail:
15776 return NULL;
15777 }
15778
15779
15780 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15781 PyObject *resultobj = 0;
15782 wxDC *arg1 = (wxDC *) 0 ;
15783 int arg2 ;
15784 int arg3 ;
15785 int arg4 ;
15786 void *argp1 = 0 ;
15787 int res1 = 0 ;
15788 int val2 ;
15789 int ecode2 = 0 ;
15790 int val3 ;
15791 int ecode3 = 0 ;
15792 int val4 ;
15793 int ecode4 = 0 ;
15794 PyObject * obj0 = 0 ;
15795 PyObject * obj1 = 0 ;
15796 PyObject * obj2 = 0 ;
15797 PyObject * obj3 = 0 ;
15798 char * kwnames[] = {
15799 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
15800 };
15801
15802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15804 if (!SWIG_IsOK(res1)) {
15805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
15806 }
15807 arg1 = reinterpret_cast< wxDC * >(argp1);
15808 ecode2 = SWIG_AsVal_int(obj1, &val2);
15809 if (!SWIG_IsOK(ecode2)) {
15810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
15811 }
15812 arg2 = static_cast< int >(val2);
15813 ecode3 = SWIG_AsVal_int(obj2, &val3);
15814 if (!SWIG_IsOK(ecode3)) {
15815 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
15816 }
15817 arg3 = static_cast< int >(val3);
15818 ecode4 = SWIG_AsVal_int(obj3, &val4);
15819 if (!SWIG_IsOK(ecode4)) {
15820 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
15821 }
15822 arg4 = static_cast< int >(val4);
15823 {
15824 PyThreadState* __tstate = wxPyBeginAllowThreads();
15825 (arg1)->DrawCircle(arg2,arg3,arg4);
15826 wxPyEndAllowThreads(__tstate);
15827 if (PyErr_Occurred()) SWIG_fail;
15828 }
15829 resultobj = SWIG_Py_Void();
15830 return resultobj;
15831 fail:
15832 return NULL;
15833 }
15834
15835
15836 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15837 PyObject *resultobj = 0;
15838 wxDC *arg1 = (wxDC *) 0 ;
15839 wxPoint *arg2 = 0 ;
15840 int arg3 ;
15841 void *argp1 = 0 ;
15842 int res1 = 0 ;
15843 wxPoint temp2 ;
15844 int val3 ;
15845 int ecode3 = 0 ;
15846 PyObject * obj0 = 0 ;
15847 PyObject * obj1 = 0 ;
15848 PyObject * obj2 = 0 ;
15849 char * kwnames[] = {
15850 (char *) "self",(char *) "pt",(char *) "radius", NULL
15851 };
15852
15853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15855 if (!SWIG_IsOK(res1)) {
15856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15857 }
15858 arg1 = reinterpret_cast< wxDC * >(argp1);
15859 {
15860 arg2 = &temp2;
15861 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15862 }
15863 ecode3 = SWIG_AsVal_int(obj2, &val3);
15864 if (!SWIG_IsOK(ecode3)) {
15865 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
15866 }
15867 arg3 = static_cast< int >(val3);
15868 {
15869 PyThreadState* __tstate = wxPyBeginAllowThreads();
15870 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
15871 wxPyEndAllowThreads(__tstate);
15872 if (PyErr_Occurred()) SWIG_fail;
15873 }
15874 resultobj = SWIG_Py_Void();
15875 return resultobj;
15876 fail:
15877 return NULL;
15878 }
15879
15880
15881 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15882 PyObject *resultobj = 0;
15883 wxDC *arg1 = (wxDC *) 0 ;
15884 int arg2 ;
15885 int arg3 ;
15886 int arg4 ;
15887 int arg5 ;
15888 void *argp1 = 0 ;
15889 int res1 = 0 ;
15890 int val2 ;
15891 int ecode2 = 0 ;
15892 int val3 ;
15893 int ecode3 = 0 ;
15894 int val4 ;
15895 int ecode4 = 0 ;
15896 int val5 ;
15897 int ecode5 = 0 ;
15898 PyObject * obj0 = 0 ;
15899 PyObject * obj1 = 0 ;
15900 PyObject * obj2 = 0 ;
15901 PyObject * obj3 = 0 ;
15902 PyObject * obj4 = 0 ;
15903 char * kwnames[] = {
15904 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15905 };
15906
15907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15909 if (!SWIG_IsOK(res1)) {
15910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
15911 }
15912 arg1 = reinterpret_cast< wxDC * >(argp1);
15913 ecode2 = SWIG_AsVal_int(obj1, &val2);
15914 if (!SWIG_IsOK(ecode2)) {
15915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
15916 }
15917 arg2 = static_cast< int >(val2);
15918 ecode3 = SWIG_AsVal_int(obj2, &val3);
15919 if (!SWIG_IsOK(ecode3)) {
15920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
15921 }
15922 arg3 = static_cast< int >(val3);
15923 ecode4 = SWIG_AsVal_int(obj3, &val4);
15924 if (!SWIG_IsOK(ecode4)) {
15925 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
15926 }
15927 arg4 = static_cast< int >(val4);
15928 ecode5 = SWIG_AsVal_int(obj4, &val5);
15929 if (!SWIG_IsOK(ecode5)) {
15930 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
15931 }
15932 arg5 = static_cast< int >(val5);
15933 {
15934 PyThreadState* __tstate = wxPyBeginAllowThreads();
15935 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
15936 wxPyEndAllowThreads(__tstate);
15937 if (PyErr_Occurred()) SWIG_fail;
15938 }
15939 resultobj = SWIG_Py_Void();
15940 return resultobj;
15941 fail:
15942 return NULL;
15943 }
15944
15945
15946 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15947 PyObject *resultobj = 0;
15948 wxDC *arg1 = (wxDC *) 0 ;
15949 wxRect *arg2 = 0 ;
15950 void *argp1 = 0 ;
15951 int res1 = 0 ;
15952 wxRect temp2 ;
15953 PyObject * obj0 = 0 ;
15954 PyObject * obj1 = 0 ;
15955 char * kwnames[] = {
15956 (char *) "self",(char *) "rect", NULL
15957 };
15958
15959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
15960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15961 if (!SWIG_IsOK(res1)) {
15962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
15963 }
15964 arg1 = reinterpret_cast< wxDC * >(argp1);
15965 {
15966 arg2 = &temp2;
15967 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15968 }
15969 {
15970 PyThreadState* __tstate = wxPyBeginAllowThreads();
15971 (arg1)->DrawEllipse((wxRect const &)*arg2);
15972 wxPyEndAllowThreads(__tstate);
15973 if (PyErr_Occurred()) SWIG_fail;
15974 }
15975 resultobj = SWIG_Py_Void();
15976 return resultobj;
15977 fail:
15978 return NULL;
15979 }
15980
15981
15982 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15983 PyObject *resultobj = 0;
15984 wxDC *arg1 = (wxDC *) 0 ;
15985 wxPoint *arg2 = 0 ;
15986 wxSize *arg3 = 0 ;
15987 void *argp1 = 0 ;
15988 int res1 = 0 ;
15989 wxPoint temp2 ;
15990 wxSize temp3 ;
15991 PyObject * obj0 = 0 ;
15992 PyObject * obj1 = 0 ;
15993 PyObject * obj2 = 0 ;
15994 char * kwnames[] = {
15995 (char *) "self",(char *) "pt",(char *) "sz", NULL
15996 };
15997
15998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16000 if (!SWIG_IsOK(res1)) {
16001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16002 }
16003 arg1 = reinterpret_cast< wxDC * >(argp1);
16004 {
16005 arg2 = &temp2;
16006 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16007 }
16008 {
16009 arg3 = &temp3;
16010 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16011 }
16012 {
16013 PyThreadState* __tstate = wxPyBeginAllowThreads();
16014 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
16015 wxPyEndAllowThreads(__tstate);
16016 if (PyErr_Occurred()) SWIG_fail;
16017 }
16018 resultobj = SWIG_Py_Void();
16019 return resultobj;
16020 fail:
16021 return NULL;
16022 }
16023
16024
16025 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16026 PyObject *resultobj = 0;
16027 wxDC *arg1 = (wxDC *) 0 ;
16028 wxIcon *arg2 = 0 ;
16029 int arg3 ;
16030 int arg4 ;
16031 void *argp1 = 0 ;
16032 int res1 = 0 ;
16033 void *argp2 = 0 ;
16034 int res2 = 0 ;
16035 int val3 ;
16036 int ecode3 = 0 ;
16037 int val4 ;
16038 int ecode4 = 0 ;
16039 PyObject * obj0 = 0 ;
16040 PyObject * obj1 = 0 ;
16041 PyObject * obj2 = 0 ;
16042 PyObject * obj3 = 0 ;
16043 char * kwnames[] = {
16044 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
16045 };
16046
16047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16049 if (!SWIG_IsOK(res1)) {
16050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
16051 }
16052 arg1 = reinterpret_cast< wxDC * >(argp1);
16053 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16054 if (!SWIG_IsOK(res2)) {
16055 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16056 }
16057 if (!argp2) {
16058 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16059 }
16060 arg2 = reinterpret_cast< wxIcon * >(argp2);
16061 ecode3 = SWIG_AsVal_int(obj2, &val3);
16062 if (!SWIG_IsOK(ecode3)) {
16063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
16064 }
16065 arg3 = static_cast< int >(val3);
16066 ecode4 = SWIG_AsVal_int(obj3, &val4);
16067 if (!SWIG_IsOK(ecode4)) {
16068 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
16069 }
16070 arg4 = static_cast< int >(val4);
16071 {
16072 PyThreadState* __tstate = wxPyBeginAllowThreads();
16073 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
16074 wxPyEndAllowThreads(__tstate);
16075 if (PyErr_Occurred()) SWIG_fail;
16076 }
16077 resultobj = SWIG_Py_Void();
16078 return resultobj;
16079 fail:
16080 return NULL;
16081 }
16082
16083
16084 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16085 PyObject *resultobj = 0;
16086 wxDC *arg1 = (wxDC *) 0 ;
16087 wxIcon *arg2 = 0 ;
16088 wxPoint *arg3 = 0 ;
16089 void *argp1 = 0 ;
16090 int res1 = 0 ;
16091 void *argp2 = 0 ;
16092 int res2 = 0 ;
16093 wxPoint temp3 ;
16094 PyObject * obj0 = 0 ;
16095 PyObject * obj1 = 0 ;
16096 PyObject * obj2 = 0 ;
16097 char * kwnames[] = {
16098 (char *) "self",(char *) "icon",(char *) "pt", NULL
16099 };
16100
16101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16103 if (!SWIG_IsOK(res1)) {
16104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16105 }
16106 arg1 = reinterpret_cast< wxDC * >(argp1);
16107 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16108 if (!SWIG_IsOK(res2)) {
16109 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16110 }
16111 if (!argp2) {
16112 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16113 }
16114 arg2 = reinterpret_cast< wxIcon * >(argp2);
16115 {
16116 arg3 = &temp3;
16117 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16118 }
16119 {
16120 PyThreadState* __tstate = wxPyBeginAllowThreads();
16121 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
16122 wxPyEndAllowThreads(__tstate);
16123 if (PyErr_Occurred()) SWIG_fail;
16124 }
16125 resultobj = SWIG_Py_Void();
16126 return resultobj;
16127 fail:
16128 return NULL;
16129 }
16130
16131
16132 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16133 PyObject *resultobj = 0;
16134 wxDC *arg1 = (wxDC *) 0 ;
16135 wxBitmap *arg2 = 0 ;
16136 int arg3 ;
16137 int arg4 ;
16138 bool arg5 = (bool) false ;
16139 void *argp1 = 0 ;
16140 int res1 = 0 ;
16141 void *argp2 = 0 ;
16142 int res2 = 0 ;
16143 int val3 ;
16144 int ecode3 = 0 ;
16145 int val4 ;
16146 int ecode4 = 0 ;
16147 bool val5 ;
16148 int ecode5 = 0 ;
16149 PyObject * obj0 = 0 ;
16150 PyObject * obj1 = 0 ;
16151 PyObject * obj2 = 0 ;
16152 PyObject * obj3 = 0 ;
16153 PyObject * obj4 = 0 ;
16154 char * kwnames[] = {
16155 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16156 };
16157
16158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16160 if (!SWIG_IsOK(res1)) {
16161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16162 }
16163 arg1 = reinterpret_cast< wxDC * >(argp1);
16164 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16165 if (!SWIG_IsOK(res2)) {
16166 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16167 }
16168 if (!argp2) {
16169 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16170 }
16171 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16172 ecode3 = SWIG_AsVal_int(obj2, &val3);
16173 if (!SWIG_IsOK(ecode3)) {
16174 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16175 }
16176 arg3 = static_cast< int >(val3);
16177 ecode4 = SWIG_AsVal_int(obj3, &val4);
16178 if (!SWIG_IsOK(ecode4)) {
16179 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16180 }
16181 arg4 = static_cast< int >(val4);
16182 if (obj4) {
16183 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16184 if (!SWIG_IsOK(ecode5)) {
16185 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16186 }
16187 arg5 = static_cast< bool >(val5);
16188 }
16189 {
16190 PyThreadState* __tstate = wxPyBeginAllowThreads();
16191 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
16192 wxPyEndAllowThreads(__tstate);
16193 if (PyErr_Occurred()) SWIG_fail;
16194 }
16195 resultobj = SWIG_Py_Void();
16196 return resultobj;
16197 fail:
16198 return NULL;
16199 }
16200
16201
16202 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16203 PyObject *resultobj = 0;
16204 wxDC *arg1 = (wxDC *) 0 ;
16205 wxBitmap *arg2 = 0 ;
16206 wxPoint *arg3 = 0 ;
16207 bool arg4 = (bool) false ;
16208 void *argp1 = 0 ;
16209 int res1 = 0 ;
16210 void *argp2 = 0 ;
16211 int res2 = 0 ;
16212 wxPoint temp3 ;
16213 bool val4 ;
16214 int ecode4 = 0 ;
16215 PyObject * obj0 = 0 ;
16216 PyObject * obj1 = 0 ;
16217 PyObject * obj2 = 0 ;
16218 PyObject * obj3 = 0 ;
16219 char * kwnames[] = {
16220 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16221 };
16222
16223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16225 if (!SWIG_IsOK(res1)) {
16226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16227 }
16228 arg1 = reinterpret_cast< wxDC * >(argp1);
16229 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16230 if (!SWIG_IsOK(res2)) {
16231 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16232 }
16233 if (!argp2) {
16234 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16235 }
16236 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16237 {
16238 arg3 = &temp3;
16239 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16240 }
16241 if (obj3) {
16242 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16243 if (!SWIG_IsOK(ecode4)) {
16244 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16245 }
16246 arg4 = static_cast< bool >(val4);
16247 }
16248 {
16249 PyThreadState* __tstate = wxPyBeginAllowThreads();
16250 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
16251 wxPyEndAllowThreads(__tstate);
16252 if (PyErr_Occurred()) SWIG_fail;
16253 }
16254 resultobj = SWIG_Py_Void();
16255 return resultobj;
16256 fail:
16257 return NULL;
16258 }
16259
16260
16261 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16262 PyObject *resultobj = 0;
16263 wxDC *arg1 = (wxDC *) 0 ;
16264 wxString *arg2 = 0 ;
16265 int arg3 ;
16266 int arg4 ;
16267 void *argp1 = 0 ;
16268 int res1 = 0 ;
16269 bool temp2 = false ;
16270 int val3 ;
16271 int ecode3 = 0 ;
16272 int val4 ;
16273 int ecode4 = 0 ;
16274 PyObject * obj0 = 0 ;
16275 PyObject * obj1 = 0 ;
16276 PyObject * obj2 = 0 ;
16277 PyObject * obj3 = 0 ;
16278 char * kwnames[] = {
16279 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16280 };
16281
16282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16284 if (!SWIG_IsOK(res1)) {
16285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16286 }
16287 arg1 = reinterpret_cast< wxDC * >(argp1);
16288 {
16289 arg2 = wxString_in_helper(obj1);
16290 if (arg2 == NULL) SWIG_fail;
16291 temp2 = true;
16292 }
16293 ecode3 = SWIG_AsVal_int(obj2, &val3);
16294 if (!SWIG_IsOK(ecode3)) {
16295 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16296 }
16297 arg3 = static_cast< int >(val3);
16298 ecode4 = SWIG_AsVal_int(obj3, &val4);
16299 if (!SWIG_IsOK(ecode4)) {
16300 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16301 }
16302 arg4 = static_cast< int >(val4);
16303 {
16304 PyThreadState* __tstate = wxPyBeginAllowThreads();
16305 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
16306 wxPyEndAllowThreads(__tstate);
16307 if (PyErr_Occurred()) SWIG_fail;
16308 }
16309 resultobj = SWIG_Py_Void();
16310 {
16311 if (temp2)
16312 delete arg2;
16313 }
16314 return resultobj;
16315 fail:
16316 {
16317 if (temp2)
16318 delete arg2;
16319 }
16320 return NULL;
16321 }
16322
16323
16324 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16325 PyObject *resultobj = 0;
16326 wxDC *arg1 = (wxDC *) 0 ;
16327 wxString *arg2 = 0 ;
16328 wxPoint *arg3 = 0 ;
16329 void *argp1 = 0 ;
16330 int res1 = 0 ;
16331 bool temp2 = false ;
16332 wxPoint temp3 ;
16333 PyObject * obj0 = 0 ;
16334 PyObject * obj1 = 0 ;
16335 PyObject * obj2 = 0 ;
16336 char * kwnames[] = {
16337 (char *) "self",(char *) "text",(char *) "pt", NULL
16338 };
16339
16340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16342 if (!SWIG_IsOK(res1)) {
16343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16344 }
16345 arg1 = reinterpret_cast< wxDC * >(argp1);
16346 {
16347 arg2 = wxString_in_helper(obj1);
16348 if (arg2 == NULL) SWIG_fail;
16349 temp2 = true;
16350 }
16351 {
16352 arg3 = &temp3;
16353 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16354 }
16355 {
16356 PyThreadState* __tstate = wxPyBeginAllowThreads();
16357 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
16358 wxPyEndAllowThreads(__tstate);
16359 if (PyErr_Occurred()) SWIG_fail;
16360 }
16361 resultobj = SWIG_Py_Void();
16362 {
16363 if (temp2)
16364 delete arg2;
16365 }
16366 return resultobj;
16367 fail:
16368 {
16369 if (temp2)
16370 delete arg2;
16371 }
16372 return NULL;
16373 }
16374
16375
16376 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16377 PyObject *resultobj = 0;
16378 wxDC *arg1 = (wxDC *) 0 ;
16379 wxString *arg2 = 0 ;
16380 int arg3 ;
16381 int arg4 ;
16382 double arg5 ;
16383 void *argp1 = 0 ;
16384 int res1 = 0 ;
16385 bool temp2 = false ;
16386 int val3 ;
16387 int ecode3 = 0 ;
16388 int val4 ;
16389 int ecode4 = 0 ;
16390 double val5 ;
16391 int ecode5 = 0 ;
16392 PyObject * obj0 = 0 ;
16393 PyObject * obj1 = 0 ;
16394 PyObject * obj2 = 0 ;
16395 PyObject * obj3 = 0 ;
16396 PyObject * obj4 = 0 ;
16397 char * kwnames[] = {
16398 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
16399 };
16400
16401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16403 if (!SWIG_IsOK(res1)) {
16404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
16405 }
16406 arg1 = reinterpret_cast< wxDC * >(argp1);
16407 {
16408 arg2 = wxString_in_helper(obj1);
16409 if (arg2 == NULL) SWIG_fail;
16410 temp2 = true;
16411 }
16412 ecode3 = SWIG_AsVal_int(obj2, &val3);
16413 if (!SWIG_IsOK(ecode3)) {
16414 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
16415 }
16416 arg3 = static_cast< int >(val3);
16417 ecode4 = SWIG_AsVal_int(obj3, &val4);
16418 if (!SWIG_IsOK(ecode4)) {
16419 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
16420 }
16421 arg4 = static_cast< int >(val4);
16422 ecode5 = SWIG_AsVal_double(obj4, &val5);
16423 if (!SWIG_IsOK(ecode5)) {
16424 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
16425 }
16426 arg5 = static_cast< double >(val5);
16427 {
16428 PyThreadState* __tstate = wxPyBeginAllowThreads();
16429 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
16430 wxPyEndAllowThreads(__tstate);
16431 if (PyErr_Occurred()) SWIG_fail;
16432 }
16433 resultobj = SWIG_Py_Void();
16434 {
16435 if (temp2)
16436 delete arg2;
16437 }
16438 return resultobj;
16439 fail:
16440 {
16441 if (temp2)
16442 delete arg2;
16443 }
16444 return NULL;
16445 }
16446
16447
16448 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16449 PyObject *resultobj = 0;
16450 wxDC *arg1 = (wxDC *) 0 ;
16451 wxString *arg2 = 0 ;
16452 wxPoint *arg3 = 0 ;
16453 double arg4 ;
16454 void *argp1 = 0 ;
16455 int res1 = 0 ;
16456 bool temp2 = false ;
16457 wxPoint temp3 ;
16458 double val4 ;
16459 int ecode4 = 0 ;
16460 PyObject * obj0 = 0 ;
16461 PyObject * obj1 = 0 ;
16462 PyObject * obj2 = 0 ;
16463 PyObject * obj3 = 0 ;
16464 char * kwnames[] = {
16465 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
16466 };
16467
16468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16470 if (!SWIG_IsOK(res1)) {
16471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16472 }
16473 arg1 = reinterpret_cast< wxDC * >(argp1);
16474 {
16475 arg2 = wxString_in_helper(obj1);
16476 if (arg2 == NULL) SWIG_fail;
16477 temp2 = true;
16478 }
16479 {
16480 arg3 = &temp3;
16481 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16482 }
16483 ecode4 = SWIG_AsVal_double(obj3, &val4);
16484 if (!SWIG_IsOK(ecode4)) {
16485 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
16486 }
16487 arg4 = static_cast< double >(val4);
16488 {
16489 PyThreadState* __tstate = wxPyBeginAllowThreads();
16490 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
16491 wxPyEndAllowThreads(__tstate);
16492 if (PyErr_Occurred()) SWIG_fail;
16493 }
16494 resultobj = SWIG_Py_Void();
16495 {
16496 if (temp2)
16497 delete arg2;
16498 }
16499 return resultobj;
16500 fail:
16501 {
16502 if (temp2)
16503 delete arg2;
16504 }
16505 return NULL;
16506 }
16507
16508
16509 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16510 PyObject *resultobj = 0;
16511 wxDC *arg1 = (wxDC *) 0 ;
16512 int arg2 ;
16513 int arg3 ;
16514 int arg4 ;
16515 int arg5 ;
16516 wxDC *arg6 = (wxDC *) 0 ;
16517 int arg7 ;
16518 int arg8 ;
16519 int arg9 = (int) wxCOPY ;
16520 bool arg10 = (bool) false ;
16521 int arg11 = (int) -1 ;
16522 int arg12 = (int) -1 ;
16523 bool result;
16524 void *argp1 = 0 ;
16525 int res1 = 0 ;
16526 int val2 ;
16527 int ecode2 = 0 ;
16528 int val3 ;
16529 int ecode3 = 0 ;
16530 int val4 ;
16531 int ecode4 = 0 ;
16532 int val5 ;
16533 int ecode5 = 0 ;
16534 void *argp6 = 0 ;
16535 int res6 = 0 ;
16536 int val7 ;
16537 int ecode7 = 0 ;
16538 int val8 ;
16539 int ecode8 = 0 ;
16540 int val9 ;
16541 int ecode9 = 0 ;
16542 bool val10 ;
16543 int ecode10 = 0 ;
16544 int val11 ;
16545 int ecode11 = 0 ;
16546 int val12 ;
16547 int ecode12 = 0 ;
16548 PyObject * obj0 = 0 ;
16549 PyObject * obj1 = 0 ;
16550 PyObject * obj2 = 0 ;
16551 PyObject * obj3 = 0 ;
16552 PyObject * obj4 = 0 ;
16553 PyObject * obj5 = 0 ;
16554 PyObject * obj6 = 0 ;
16555 PyObject * obj7 = 0 ;
16556 PyObject * obj8 = 0 ;
16557 PyObject * obj9 = 0 ;
16558 PyObject * obj10 = 0 ;
16559 PyObject * obj11 = 0 ;
16560 char * kwnames[] = {
16561 (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
16562 };
16563
16564 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;
16565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16566 if (!SWIG_IsOK(res1)) {
16567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
16568 }
16569 arg1 = reinterpret_cast< wxDC * >(argp1);
16570 ecode2 = SWIG_AsVal_int(obj1, &val2);
16571 if (!SWIG_IsOK(ecode2)) {
16572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
16573 }
16574 arg2 = static_cast< int >(val2);
16575 ecode3 = SWIG_AsVal_int(obj2, &val3);
16576 if (!SWIG_IsOK(ecode3)) {
16577 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
16578 }
16579 arg3 = static_cast< int >(val3);
16580 ecode4 = SWIG_AsVal_int(obj3, &val4);
16581 if (!SWIG_IsOK(ecode4)) {
16582 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
16583 }
16584 arg4 = static_cast< int >(val4);
16585 ecode5 = SWIG_AsVal_int(obj4, &val5);
16586 if (!SWIG_IsOK(ecode5)) {
16587 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
16588 }
16589 arg5 = static_cast< int >(val5);
16590 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
16591 if (!SWIG_IsOK(res6)) {
16592 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
16593 }
16594 arg6 = reinterpret_cast< wxDC * >(argp6);
16595 ecode7 = SWIG_AsVal_int(obj6, &val7);
16596 if (!SWIG_IsOK(ecode7)) {
16597 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
16598 }
16599 arg7 = static_cast< int >(val7);
16600 ecode8 = SWIG_AsVal_int(obj7, &val8);
16601 if (!SWIG_IsOK(ecode8)) {
16602 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
16603 }
16604 arg8 = static_cast< int >(val8);
16605 if (obj8) {
16606 ecode9 = SWIG_AsVal_int(obj8, &val9);
16607 if (!SWIG_IsOK(ecode9)) {
16608 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
16609 }
16610 arg9 = static_cast< int >(val9);
16611 }
16612 if (obj9) {
16613 ecode10 = SWIG_AsVal_bool(obj9, &val10);
16614 if (!SWIG_IsOK(ecode10)) {
16615 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
16616 }
16617 arg10 = static_cast< bool >(val10);
16618 }
16619 if (obj10) {
16620 ecode11 = SWIG_AsVal_int(obj10, &val11);
16621 if (!SWIG_IsOK(ecode11)) {
16622 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
16623 }
16624 arg11 = static_cast< int >(val11);
16625 }
16626 if (obj11) {
16627 ecode12 = SWIG_AsVal_int(obj11, &val12);
16628 if (!SWIG_IsOK(ecode12)) {
16629 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
16630 }
16631 arg12 = static_cast< int >(val12);
16632 }
16633 {
16634 PyThreadState* __tstate = wxPyBeginAllowThreads();
16635 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
16636 wxPyEndAllowThreads(__tstate);
16637 if (PyErr_Occurred()) SWIG_fail;
16638 }
16639 {
16640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16641 }
16642 return resultobj;
16643 fail:
16644 return NULL;
16645 }
16646
16647
16648 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16649 PyObject *resultobj = 0;
16650 wxDC *arg1 = (wxDC *) 0 ;
16651 wxPoint *arg2 = 0 ;
16652 wxSize *arg3 = 0 ;
16653 wxDC *arg4 = (wxDC *) 0 ;
16654 wxPoint *arg5 = 0 ;
16655 int arg6 = (int) wxCOPY ;
16656 bool arg7 = (bool) false ;
16657 wxPoint const &arg8_defvalue = wxDefaultPosition ;
16658 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
16659 bool result;
16660 void *argp1 = 0 ;
16661 int res1 = 0 ;
16662 wxPoint temp2 ;
16663 wxSize temp3 ;
16664 void *argp4 = 0 ;
16665 int res4 = 0 ;
16666 wxPoint temp5 ;
16667 int val6 ;
16668 int ecode6 = 0 ;
16669 bool val7 ;
16670 int ecode7 = 0 ;
16671 wxPoint temp8 ;
16672 PyObject * obj0 = 0 ;
16673 PyObject * obj1 = 0 ;
16674 PyObject * obj2 = 0 ;
16675 PyObject * obj3 = 0 ;
16676 PyObject * obj4 = 0 ;
16677 PyObject * obj5 = 0 ;
16678 PyObject * obj6 = 0 ;
16679 PyObject * obj7 = 0 ;
16680 char * kwnames[] = {
16681 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
16682 };
16683
16684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16686 if (!SWIG_IsOK(res1)) {
16687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16688 }
16689 arg1 = reinterpret_cast< wxDC * >(argp1);
16690 {
16691 arg2 = &temp2;
16692 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16693 }
16694 {
16695 arg3 = &temp3;
16696 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16697 }
16698 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
16699 if (!SWIG_IsOK(res4)) {
16700 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
16701 }
16702 arg4 = reinterpret_cast< wxDC * >(argp4);
16703 {
16704 arg5 = &temp5;
16705 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16706 }
16707 if (obj5) {
16708 ecode6 = SWIG_AsVal_int(obj5, &val6);
16709 if (!SWIG_IsOK(ecode6)) {
16710 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
16711 }
16712 arg6 = static_cast< int >(val6);
16713 }
16714 if (obj6) {
16715 ecode7 = SWIG_AsVal_bool(obj6, &val7);
16716 if (!SWIG_IsOK(ecode7)) {
16717 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
16718 }
16719 arg7 = static_cast< bool >(val7);
16720 }
16721 if (obj7) {
16722 {
16723 arg8 = &temp8;
16724 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
16725 }
16726 }
16727 {
16728 PyThreadState* __tstate = wxPyBeginAllowThreads();
16729 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
16730 wxPyEndAllowThreads(__tstate);
16731 if (PyErr_Occurred()) SWIG_fail;
16732 }
16733 {
16734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16735 }
16736 return resultobj;
16737 fail:
16738 return NULL;
16739 }
16740
16741
16742 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16743 PyObject *resultobj = 0;
16744 wxDC *arg1 = (wxDC *) 0 ;
16745 int arg2 ;
16746 int arg3 ;
16747 int arg4 ;
16748 int arg5 ;
16749 void *argp1 = 0 ;
16750 int res1 = 0 ;
16751 int val2 ;
16752 int ecode2 = 0 ;
16753 int val3 ;
16754 int ecode3 = 0 ;
16755 int val4 ;
16756 int ecode4 = 0 ;
16757 int val5 ;
16758 int ecode5 = 0 ;
16759 PyObject * obj0 = 0 ;
16760 PyObject * obj1 = 0 ;
16761 PyObject * obj2 = 0 ;
16762 PyObject * obj3 = 0 ;
16763 PyObject * obj4 = 0 ;
16764 char * kwnames[] = {
16765 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16766 };
16767
16768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16770 if (!SWIG_IsOK(res1)) {
16771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16772 }
16773 arg1 = reinterpret_cast< wxDC * >(argp1);
16774 ecode2 = SWIG_AsVal_int(obj1, &val2);
16775 if (!SWIG_IsOK(ecode2)) {
16776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
16777 }
16778 arg2 = static_cast< int >(val2);
16779 ecode3 = SWIG_AsVal_int(obj2, &val3);
16780 if (!SWIG_IsOK(ecode3)) {
16781 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
16782 }
16783 arg3 = static_cast< int >(val3);
16784 ecode4 = SWIG_AsVal_int(obj3, &val4);
16785 if (!SWIG_IsOK(ecode4)) {
16786 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
16787 }
16788 arg4 = static_cast< int >(val4);
16789 ecode5 = SWIG_AsVal_int(obj4, &val5);
16790 if (!SWIG_IsOK(ecode5)) {
16791 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
16792 }
16793 arg5 = static_cast< int >(val5);
16794 {
16795 PyThreadState* __tstate = wxPyBeginAllowThreads();
16796 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
16797 wxPyEndAllowThreads(__tstate);
16798 if (PyErr_Occurred()) SWIG_fail;
16799 }
16800 resultobj = SWIG_Py_Void();
16801 return resultobj;
16802 fail:
16803 return NULL;
16804 }
16805
16806
16807 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16808 PyObject *resultobj = 0;
16809 wxDC *arg1 = (wxDC *) 0 ;
16810 wxPoint *arg2 = 0 ;
16811 wxSize *arg3 = 0 ;
16812 void *argp1 = 0 ;
16813 int res1 = 0 ;
16814 wxPoint temp2 ;
16815 wxSize temp3 ;
16816 PyObject * obj0 = 0 ;
16817 PyObject * obj1 = 0 ;
16818 PyObject * obj2 = 0 ;
16819 char * kwnames[] = {
16820 (char *) "self",(char *) "pt",(char *) "sz", NULL
16821 };
16822
16823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16825 if (!SWIG_IsOK(res1)) {
16826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16827 }
16828 arg1 = reinterpret_cast< wxDC * >(argp1);
16829 {
16830 arg2 = &temp2;
16831 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16832 }
16833 {
16834 arg3 = &temp3;
16835 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16836 }
16837 {
16838 PyThreadState* __tstate = wxPyBeginAllowThreads();
16839 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
16840 wxPyEndAllowThreads(__tstate);
16841 if (PyErr_Occurred()) SWIG_fail;
16842 }
16843 resultobj = SWIG_Py_Void();
16844 return resultobj;
16845 fail:
16846 return NULL;
16847 }
16848
16849
16850 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16851 PyObject *resultobj = 0;
16852 wxDC *arg1 = (wxDC *) 0 ;
16853 wxRegion *arg2 = 0 ;
16854 void *argp1 = 0 ;
16855 int res1 = 0 ;
16856 void *argp2 = 0 ;
16857 int res2 = 0 ;
16858 PyObject * obj0 = 0 ;
16859 PyObject * obj1 = 0 ;
16860 char * kwnames[] = {
16861 (char *) "self",(char *) "region", NULL
16862 };
16863
16864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
16865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16866 if (!SWIG_IsOK(res1)) {
16867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16868 }
16869 arg1 = reinterpret_cast< wxDC * >(argp1);
16870 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
16871 if (!SWIG_IsOK(res2)) {
16872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16873 }
16874 if (!argp2) {
16875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16876 }
16877 arg2 = reinterpret_cast< wxRegion * >(argp2);
16878 {
16879 PyThreadState* __tstate = wxPyBeginAllowThreads();
16880 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
16881 wxPyEndAllowThreads(__tstate);
16882 if (PyErr_Occurred()) SWIG_fail;
16883 }
16884 resultobj = SWIG_Py_Void();
16885 return resultobj;
16886 fail:
16887 return NULL;
16888 }
16889
16890
16891 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16892 PyObject *resultobj = 0;
16893 wxDC *arg1 = (wxDC *) 0 ;
16894 wxRect *arg2 = 0 ;
16895 void *argp1 = 0 ;
16896 int res1 = 0 ;
16897 wxRect temp2 ;
16898 PyObject * obj0 = 0 ;
16899 PyObject * obj1 = 0 ;
16900 char * kwnames[] = {
16901 (char *) "self",(char *) "rect", NULL
16902 };
16903
16904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
16905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16906 if (!SWIG_IsOK(res1)) {
16907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
16908 }
16909 arg1 = reinterpret_cast< wxDC * >(argp1);
16910 {
16911 arg2 = &temp2;
16912 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16913 }
16914 {
16915 PyThreadState* __tstate = wxPyBeginAllowThreads();
16916 (arg1)->SetClippingRegion((wxRect const &)*arg2);
16917 wxPyEndAllowThreads(__tstate);
16918 if (PyErr_Occurred()) SWIG_fail;
16919 }
16920 resultobj = SWIG_Py_Void();
16921 return resultobj;
16922 fail:
16923 return NULL;
16924 }
16925
16926
16927 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16928 PyObject *resultobj = 0;
16929 wxDC *arg1 = (wxDC *) 0 ;
16930 int arg2 ;
16931 wxPoint *arg3 = (wxPoint *) 0 ;
16932 int arg4 = (int) 0 ;
16933 int arg5 = (int) 0 ;
16934 void *argp1 = 0 ;
16935 int res1 = 0 ;
16936 int val4 ;
16937 int ecode4 = 0 ;
16938 int val5 ;
16939 int ecode5 = 0 ;
16940 PyObject * obj0 = 0 ;
16941 PyObject * obj1 = 0 ;
16942 PyObject * obj2 = 0 ;
16943 PyObject * obj3 = 0 ;
16944 char * kwnames[] = {
16945 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
16946 };
16947
16948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16950 if (!SWIG_IsOK(res1)) {
16951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
16952 }
16953 arg1 = reinterpret_cast< wxDC * >(argp1);
16954 {
16955 arg3 = wxPoint_LIST_helper(obj1, &arg2);
16956 if (arg3 == NULL) SWIG_fail;
16957 }
16958 if (obj2) {
16959 ecode4 = SWIG_AsVal_int(obj2, &val4);
16960 if (!SWIG_IsOK(ecode4)) {
16961 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
16962 }
16963 arg4 = static_cast< int >(val4);
16964 }
16965 if (obj3) {
16966 ecode5 = SWIG_AsVal_int(obj3, &val5);
16967 if (!SWIG_IsOK(ecode5)) {
16968 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
16969 }
16970 arg5 = static_cast< int >(val5);
16971 }
16972 {
16973 PyThreadState* __tstate = wxPyBeginAllowThreads();
16974 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
16975 wxPyEndAllowThreads(__tstate);
16976 if (PyErr_Occurred()) SWIG_fail;
16977 }
16978 resultobj = SWIG_Py_Void();
16979 {
16980 if (arg3) delete [] arg3;
16981 }
16982 return resultobj;
16983 fail:
16984 {
16985 if (arg3) delete [] arg3;
16986 }
16987 return NULL;
16988 }
16989
16990
16991 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16992 PyObject *resultobj = 0;
16993 wxDC *arg1 = (wxDC *) 0 ;
16994 int arg2 ;
16995 wxPoint *arg3 = (wxPoint *) 0 ;
16996 int arg4 = (int) 0 ;
16997 int arg5 = (int) 0 ;
16998 int arg6 = (int) wxODDEVEN_RULE ;
16999 void *argp1 = 0 ;
17000 int res1 = 0 ;
17001 int val4 ;
17002 int ecode4 = 0 ;
17003 int val5 ;
17004 int ecode5 = 0 ;
17005 int val6 ;
17006 int ecode6 = 0 ;
17007 PyObject * obj0 = 0 ;
17008 PyObject * obj1 = 0 ;
17009 PyObject * obj2 = 0 ;
17010 PyObject * obj3 = 0 ;
17011 PyObject * obj4 = 0 ;
17012 char * kwnames[] = {
17013 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
17014 };
17015
17016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17018 if (!SWIG_IsOK(res1)) {
17019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
17020 }
17021 arg1 = reinterpret_cast< wxDC * >(argp1);
17022 {
17023 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17024 if (arg3 == NULL) SWIG_fail;
17025 }
17026 if (obj2) {
17027 ecode4 = SWIG_AsVal_int(obj2, &val4);
17028 if (!SWIG_IsOK(ecode4)) {
17029 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
17030 }
17031 arg4 = static_cast< int >(val4);
17032 }
17033 if (obj3) {
17034 ecode5 = SWIG_AsVal_int(obj3, &val5);
17035 if (!SWIG_IsOK(ecode5)) {
17036 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
17037 }
17038 arg5 = static_cast< int >(val5);
17039 }
17040 if (obj4) {
17041 ecode6 = SWIG_AsVal_int(obj4, &val6);
17042 if (!SWIG_IsOK(ecode6)) {
17043 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
17044 }
17045 arg6 = static_cast< int >(val6);
17046 }
17047 {
17048 PyThreadState* __tstate = wxPyBeginAllowThreads();
17049 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
17050 wxPyEndAllowThreads(__tstate);
17051 if (PyErr_Occurred()) SWIG_fail;
17052 }
17053 resultobj = SWIG_Py_Void();
17054 {
17055 if (arg3) delete [] arg3;
17056 }
17057 return resultobj;
17058 fail:
17059 {
17060 if (arg3) delete [] arg3;
17061 }
17062 return NULL;
17063 }
17064
17065
17066 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17067 PyObject *resultobj = 0;
17068 wxDC *arg1 = (wxDC *) 0 ;
17069 wxString *arg2 = 0 ;
17070 wxRect *arg3 = 0 ;
17071 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17072 int arg5 = (int) -1 ;
17073 void *argp1 = 0 ;
17074 int res1 = 0 ;
17075 bool temp2 = false ;
17076 wxRect temp3 ;
17077 int val4 ;
17078 int ecode4 = 0 ;
17079 int val5 ;
17080 int ecode5 = 0 ;
17081 PyObject * obj0 = 0 ;
17082 PyObject * obj1 = 0 ;
17083 PyObject * obj2 = 0 ;
17084 PyObject * obj3 = 0 ;
17085 PyObject * obj4 = 0 ;
17086 char * kwnames[] = {
17087 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17088 };
17089
17090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17092 if (!SWIG_IsOK(res1)) {
17093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17094 }
17095 arg1 = reinterpret_cast< wxDC * >(argp1);
17096 {
17097 arg2 = wxString_in_helper(obj1);
17098 if (arg2 == NULL) SWIG_fail;
17099 temp2 = true;
17100 }
17101 {
17102 arg3 = &temp3;
17103 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17104 }
17105 if (obj3) {
17106 ecode4 = SWIG_AsVal_int(obj3, &val4);
17107 if (!SWIG_IsOK(ecode4)) {
17108 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17109 }
17110 arg4 = static_cast< int >(val4);
17111 }
17112 if (obj4) {
17113 ecode5 = SWIG_AsVal_int(obj4, &val5);
17114 if (!SWIG_IsOK(ecode5)) {
17115 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17116 }
17117 arg5 = static_cast< int >(val5);
17118 }
17119 {
17120 PyThreadState* __tstate = wxPyBeginAllowThreads();
17121 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
17122 wxPyEndAllowThreads(__tstate);
17123 if (PyErr_Occurred()) SWIG_fail;
17124 }
17125 resultobj = SWIG_Py_Void();
17126 {
17127 if (temp2)
17128 delete arg2;
17129 }
17130 return resultobj;
17131 fail:
17132 {
17133 if (temp2)
17134 delete arg2;
17135 }
17136 return NULL;
17137 }
17138
17139
17140 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17141 PyObject *resultobj = 0;
17142 wxDC *arg1 = (wxDC *) 0 ;
17143 wxString *arg2 = 0 ;
17144 wxBitmap *arg3 = 0 ;
17145 wxRect *arg4 = 0 ;
17146 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17147 int arg6 = (int) -1 ;
17148 wxRect result;
17149 void *argp1 = 0 ;
17150 int res1 = 0 ;
17151 bool temp2 = false ;
17152 void *argp3 = 0 ;
17153 int res3 = 0 ;
17154 wxRect temp4 ;
17155 int val5 ;
17156 int ecode5 = 0 ;
17157 int val6 ;
17158 int ecode6 = 0 ;
17159 PyObject * obj0 = 0 ;
17160 PyObject * obj1 = 0 ;
17161 PyObject * obj2 = 0 ;
17162 PyObject * obj3 = 0 ;
17163 PyObject * obj4 = 0 ;
17164 PyObject * obj5 = 0 ;
17165 char * kwnames[] = {
17166 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17167 };
17168
17169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17171 if (!SWIG_IsOK(res1)) {
17172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17173 }
17174 arg1 = reinterpret_cast< wxDC * >(argp1);
17175 {
17176 arg2 = wxString_in_helper(obj1);
17177 if (arg2 == NULL) SWIG_fail;
17178 temp2 = true;
17179 }
17180 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
17181 if (!SWIG_IsOK(res3)) {
17182 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17183 }
17184 if (!argp3) {
17185 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17186 }
17187 arg3 = reinterpret_cast< wxBitmap * >(argp3);
17188 {
17189 arg4 = &temp4;
17190 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
17191 }
17192 if (obj4) {
17193 ecode5 = SWIG_AsVal_int(obj4, &val5);
17194 if (!SWIG_IsOK(ecode5)) {
17195 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17196 }
17197 arg5 = static_cast< int >(val5);
17198 }
17199 if (obj5) {
17200 ecode6 = SWIG_AsVal_int(obj5, &val6);
17201 if (!SWIG_IsOK(ecode6)) {
17202 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17203 }
17204 arg6 = static_cast< int >(val6);
17205 }
17206 {
17207 PyThreadState* __tstate = wxPyBeginAllowThreads();
17208 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
17209 wxPyEndAllowThreads(__tstate);
17210 if (PyErr_Occurred()) SWIG_fail;
17211 }
17212 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17213 {
17214 if (temp2)
17215 delete arg2;
17216 }
17217 return resultobj;
17218 fail:
17219 {
17220 if (temp2)
17221 delete arg2;
17222 }
17223 return NULL;
17224 }
17225
17226
17227 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17228 PyObject *resultobj = 0;
17229 wxDC *arg1 = (wxDC *) 0 ;
17230 int arg2 ;
17231 wxPoint *arg3 = (wxPoint *) 0 ;
17232 void *argp1 = 0 ;
17233 int res1 = 0 ;
17234 PyObject * obj0 = 0 ;
17235 PyObject * obj1 = 0 ;
17236 char * kwnames[] = {
17237 (char *) "self",(char *) "points", NULL
17238 };
17239
17240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
17241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17242 if (!SWIG_IsOK(res1)) {
17243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17244 }
17245 arg1 = reinterpret_cast< wxDC * >(argp1);
17246 {
17247 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17248 if (arg3 == NULL) SWIG_fail;
17249 }
17250 {
17251 PyThreadState* __tstate = wxPyBeginAllowThreads();
17252 (arg1)->DrawSpline(arg2,arg3);
17253 wxPyEndAllowThreads(__tstate);
17254 if (PyErr_Occurred()) SWIG_fail;
17255 }
17256 resultobj = SWIG_Py_Void();
17257 {
17258 if (arg3) delete [] arg3;
17259 }
17260 return resultobj;
17261 fail:
17262 {
17263 if (arg3) delete [] arg3;
17264 }
17265 return NULL;
17266 }
17267
17268
17269 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17270 PyObject *resultobj = 0;
17271 wxDC *arg1 = (wxDC *) 0 ;
17272 void *argp1 = 0 ;
17273 int res1 = 0 ;
17274 PyObject *swig_obj[1] ;
17275
17276 if (!args) SWIG_fail;
17277 swig_obj[0] = args;
17278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17279 if (!SWIG_IsOK(res1)) {
17280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17281 }
17282 arg1 = reinterpret_cast< wxDC * >(argp1);
17283 {
17284 PyThreadState* __tstate = wxPyBeginAllowThreads();
17285 (arg1)->Clear();
17286 wxPyEndAllowThreads(__tstate);
17287 if (PyErr_Occurred()) SWIG_fail;
17288 }
17289 resultobj = SWIG_Py_Void();
17290 return resultobj;
17291 fail:
17292 return NULL;
17293 }
17294
17295
17296 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17297 PyObject *resultobj = 0;
17298 wxDC *arg1 = (wxDC *) 0 ;
17299 wxString *arg2 = 0 ;
17300 bool result;
17301 void *argp1 = 0 ;
17302 int res1 = 0 ;
17303 bool temp2 = false ;
17304 PyObject * obj0 = 0 ;
17305 PyObject * obj1 = 0 ;
17306 char * kwnames[] = {
17307 (char *) "self",(char *) "message", NULL
17308 };
17309
17310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
17311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17312 if (!SWIG_IsOK(res1)) {
17313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17314 }
17315 arg1 = reinterpret_cast< wxDC * >(argp1);
17316 {
17317 arg2 = wxString_in_helper(obj1);
17318 if (arg2 == NULL) SWIG_fail;
17319 temp2 = true;
17320 }
17321 {
17322 PyThreadState* __tstate = wxPyBeginAllowThreads();
17323 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
17324 wxPyEndAllowThreads(__tstate);
17325 if (PyErr_Occurred()) SWIG_fail;
17326 }
17327 {
17328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17329 }
17330 {
17331 if (temp2)
17332 delete arg2;
17333 }
17334 return resultobj;
17335 fail:
17336 {
17337 if (temp2)
17338 delete arg2;
17339 }
17340 return NULL;
17341 }
17342
17343
17344 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17345 PyObject *resultobj = 0;
17346 wxDC *arg1 = (wxDC *) 0 ;
17347 void *argp1 = 0 ;
17348 int res1 = 0 ;
17349 PyObject *swig_obj[1] ;
17350
17351 if (!args) SWIG_fail;
17352 swig_obj[0] = args;
17353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17354 if (!SWIG_IsOK(res1)) {
17355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17356 }
17357 arg1 = reinterpret_cast< wxDC * >(argp1);
17358 {
17359 PyThreadState* __tstate = wxPyBeginAllowThreads();
17360 (arg1)->EndDoc();
17361 wxPyEndAllowThreads(__tstate);
17362 if (PyErr_Occurred()) SWIG_fail;
17363 }
17364 resultobj = SWIG_Py_Void();
17365 return resultobj;
17366 fail:
17367 return NULL;
17368 }
17369
17370
17371 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17372 PyObject *resultobj = 0;
17373 wxDC *arg1 = (wxDC *) 0 ;
17374 void *argp1 = 0 ;
17375 int res1 = 0 ;
17376 PyObject *swig_obj[1] ;
17377
17378 if (!args) SWIG_fail;
17379 swig_obj[0] = args;
17380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17381 if (!SWIG_IsOK(res1)) {
17382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
17383 }
17384 arg1 = reinterpret_cast< wxDC * >(argp1);
17385 {
17386 PyThreadState* __tstate = wxPyBeginAllowThreads();
17387 (arg1)->StartPage();
17388 wxPyEndAllowThreads(__tstate);
17389 if (PyErr_Occurred()) SWIG_fail;
17390 }
17391 resultobj = SWIG_Py_Void();
17392 return resultobj;
17393 fail:
17394 return NULL;
17395 }
17396
17397
17398 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17399 PyObject *resultobj = 0;
17400 wxDC *arg1 = (wxDC *) 0 ;
17401 void *argp1 = 0 ;
17402 int res1 = 0 ;
17403 PyObject *swig_obj[1] ;
17404
17405 if (!args) SWIG_fail;
17406 swig_obj[0] = args;
17407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17408 if (!SWIG_IsOK(res1)) {
17409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
17410 }
17411 arg1 = reinterpret_cast< wxDC * >(argp1);
17412 {
17413 PyThreadState* __tstate = wxPyBeginAllowThreads();
17414 (arg1)->EndPage();
17415 wxPyEndAllowThreads(__tstate);
17416 if (PyErr_Occurred()) SWIG_fail;
17417 }
17418 resultobj = SWIG_Py_Void();
17419 return resultobj;
17420 fail:
17421 return NULL;
17422 }
17423
17424
17425 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17426 PyObject *resultobj = 0;
17427 wxDC *arg1 = (wxDC *) 0 ;
17428 wxFont *arg2 = 0 ;
17429 void *argp1 = 0 ;
17430 int res1 = 0 ;
17431 void *argp2 = 0 ;
17432 int res2 = 0 ;
17433 PyObject * obj0 = 0 ;
17434 PyObject * obj1 = 0 ;
17435 char * kwnames[] = {
17436 (char *) "self",(char *) "font", NULL
17437 };
17438
17439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
17440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17441 if (!SWIG_IsOK(res1)) {
17442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
17443 }
17444 arg1 = reinterpret_cast< wxDC * >(argp1);
17445 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
17446 if (!SWIG_IsOK(res2)) {
17447 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17448 }
17449 if (!argp2) {
17450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17451 }
17452 arg2 = reinterpret_cast< wxFont * >(argp2);
17453 {
17454 PyThreadState* __tstate = wxPyBeginAllowThreads();
17455 (arg1)->SetFont((wxFont const &)*arg2);
17456 wxPyEndAllowThreads(__tstate);
17457 if (PyErr_Occurred()) SWIG_fail;
17458 }
17459 resultobj = SWIG_Py_Void();
17460 return resultobj;
17461 fail:
17462 return NULL;
17463 }
17464
17465
17466 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17467 PyObject *resultobj = 0;
17468 wxDC *arg1 = (wxDC *) 0 ;
17469 wxPen *arg2 = 0 ;
17470 void *argp1 = 0 ;
17471 int res1 = 0 ;
17472 void *argp2 = 0 ;
17473 int res2 = 0 ;
17474 PyObject * obj0 = 0 ;
17475 PyObject * obj1 = 0 ;
17476 char * kwnames[] = {
17477 (char *) "self",(char *) "pen", NULL
17478 };
17479
17480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
17481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17482 if (!SWIG_IsOK(res1)) {
17483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
17484 }
17485 arg1 = reinterpret_cast< wxDC * >(argp1);
17486 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
17487 if (!SWIG_IsOK(res2)) {
17488 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17489 }
17490 if (!argp2) {
17491 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17492 }
17493 arg2 = reinterpret_cast< wxPen * >(argp2);
17494 {
17495 PyThreadState* __tstate = wxPyBeginAllowThreads();
17496 (arg1)->SetPen((wxPen const &)*arg2);
17497 wxPyEndAllowThreads(__tstate);
17498 if (PyErr_Occurred()) SWIG_fail;
17499 }
17500 resultobj = SWIG_Py_Void();
17501 return resultobj;
17502 fail:
17503 return NULL;
17504 }
17505
17506
17507 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17508 PyObject *resultobj = 0;
17509 wxDC *arg1 = (wxDC *) 0 ;
17510 wxBrush *arg2 = 0 ;
17511 void *argp1 = 0 ;
17512 int res1 = 0 ;
17513 void *argp2 = 0 ;
17514 int res2 = 0 ;
17515 PyObject * obj0 = 0 ;
17516 PyObject * obj1 = 0 ;
17517 char * kwnames[] = {
17518 (char *) "self",(char *) "brush", NULL
17519 };
17520
17521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
17522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17523 if (!SWIG_IsOK(res1)) {
17524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
17525 }
17526 arg1 = reinterpret_cast< wxDC * >(argp1);
17527 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17528 if (!SWIG_IsOK(res2)) {
17529 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17530 }
17531 if (!argp2) {
17532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17533 }
17534 arg2 = reinterpret_cast< wxBrush * >(argp2);
17535 {
17536 PyThreadState* __tstate = wxPyBeginAllowThreads();
17537 (arg1)->SetBrush((wxBrush const &)*arg2);
17538 wxPyEndAllowThreads(__tstate);
17539 if (PyErr_Occurred()) SWIG_fail;
17540 }
17541 resultobj = SWIG_Py_Void();
17542 return resultobj;
17543 fail:
17544 return NULL;
17545 }
17546
17547
17548 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17549 PyObject *resultobj = 0;
17550 wxDC *arg1 = (wxDC *) 0 ;
17551 wxBrush *arg2 = 0 ;
17552 void *argp1 = 0 ;
17553 int res1 = 0 ;
17554 void *argp2 = 0 ;
17555 int res2 = 0 ;
17556 PyObject * obj0 = 0 ;
17557 PyObject * obj1 = 0 ;
17558 char * kwnames[] = {
17559 (char *) "self",(char *) "brush", NULL
17560 };
17561
17562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
17563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17564 if (!SWIG_IsOK(res1)) {
17565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
17566 }
17567 arg1 = reinterpret_cast< wxDC * >(argp1);
17568 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17569 if (!SWIG_IsOK(res2)) {
17570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17571 }
17572 if (!argp2) {
17573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17574 }
17575 arg2 = reinterpret_cast< wxBrush * >(argp2);
17576 {
17577 PyThreadState* __tstate = wxPyBeginAllowThreads();
17578 (arg1)->SetBackground((wxBrush const &)*arg2);
17579 wxPyEndAllowThreads(__tstate);
17580 if (PyErr_Occurred()) SWIG_fail;
17581 }
17582 resultobj = SWIG_Py_Void();
17583 return resultobj;
17584 fail:
17585 return NULL;
17586 }
17587
17588
17589 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17590 PyObject *resultobj = 0;
17591 wxDC *arg1 = (wxDC *) 0 ;
17592 int arg2 ;
17593 void *argp1 = 0 ;
17594 int res1 = 0 ;
17595 int val2 ;
17596 int ecode2 = 0 ;
17597 PyObject * obj0 = 0 ;
17598 PyObject * obj1 = 0 ;
17599 char * kwnames[] = {
17600 (char *) "self",(char *) "mode", NULL
17601 };
17602
17603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
17604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17605 if (!SWIG_IsOK(res1)) {
17606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
17607 }
17608 arg1 = reinterpret_cast< wxDC * >(argp1);
17609 ecode2 = SWIG_AsVal_int(obj1, &val2);
17610 if (!SWIG_IsOK(ecode2)) {
17611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
17612 }
17613 arg2 = static_cast< int >(val2);
17614 {
17615 PyThreadState* __tstate = wxPyBeginAllowThreads();
17616 (arg1)->SetBackgroundMode(arg2);
17617 wxPyEndAllowThreads(__tstate);
17618 if (PyErr_Occurred()) SWIG_fail;
17619 }
17620 resultobj = SWIG_Py_Void();
17621 return resultobj;
17622 fail:
17623 return NULL;
17624 }
17625
17626
17627 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17628 PyObject *resultobj = 0;
17629 wxDC *arg1 = (wxDC *) 0 ;
17630 wxPalette *arg2 = 0 ;
17631 void *argp1 = 0 ;
17632 int res1 = 0 ;
17633 void *argp2 = 0 ;
17634 int res2 = 0 ;
17635 PyObject * obj0 = 0 ;
17636 PyObject * obj1 = 0 ;
17637 char * kwnames[] = {
17638 (char *) "self",(char *) "palette", NULL
17639 };
17640
17641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
17642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17643 if (!SWIG_IsOK(res1)) {
17644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
17645 }
17646 arg1 = reinterpret_cast< wxDC * >(argp1);
17647 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
17648 if (!SWIG_IsOK(res2)) {
17649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17650 }
17651 if (!argp2) {
17652 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17653 }
17654 arg2 = reinterpret_cast< wxPalette * >(argp2);
17655 {
17656 PyThreadState* __tstate = wxPyBeginAllowThreads();
17657 (arg1)->SetPalette((wxPalette const &)*arg2);
17658 wxPyEndAllowThreads(__tstate);
17659 if (PyErr_Occurred()) SWIG_fail;
17660 }
17661 resultobj = SWIG_Py_Void();
17662 return resultobj;
17663 fail:
17664 return NULL;
17665 }
17666
17667
17668 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17669 PyObject *resultobj = 0;
17670 wxDC *arg1 = (wxDC *) 0 ;
17671 void *argp1 = 0 ;
17672 int res1 = 0 ;
17673 PyObject *swig_obj[1] ;
17674
17675 if (!args) SWIG_fail;
17676 swig_obj[0] = args;
17677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17678 if (!SWIG_IsOK(res1)) {
17679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17680 }
17681 arg1 = reinterpret_cast< wxDC * >(argp1);
17682 {
17683 PyThreadState* __tstate = wxPyBeginAllowThreads();
17684 (arg1)->DestroyClippingRegion();
17685 wxPyEndAllowThreads(__tstate);
17686 if (PyErr_Occurred()) SWIG_fail;
17687 }
17688 resultobj = SWIG_Py_Void();
17689 return resultobj;
17690 fail:
17691 return NULL;
17692 }
17693
17694
17695 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17696 PyObject *resultobj = 0;
17697 wxDC *arg1 = (wxDC *) 0 ;
17698 int *arg2 = (int *) 0 ;
17699 int *arg3 = (int *) 0 ;
17700 int *arg4 = (int *) 0 ;
17701 int *arg5 = (int *) 0 ;
17702 void *argp1 = 0 ;
17703 int res1 = 0 ;
17704 int temp2 ;
17705 int res2 = SWIG_TMPOBJ ;
17706 int temp3 ;
17707 int res3 = SWIG_TMPOBJ ;
17708 int temp4 ;
17709 int res4 = SWIG_TMPOBJ ;
17710 int temp5 ;
17711 int res5 = SWIG_TMPOBJ ;
17712 PyObject *swig_obj[1] ;
17713
17714 arg2 = &temp2;
17715 arg3 = &temp3;
17716 arg4 = &temp4;
17717 arg5 = &temp5;
17718 if (!args) SWIG_fail;
17719 swig_obj[0] = args;
17720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17721 if (!SWIG_IsOK(res1)) {
17722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
17723 }
17724 arg1 = reinterpret_cast< wxDC * >(argp1);
17725 {
17726 PyThreadState* __tstate = wxPyBeginAllowThreads();
17727 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
17728 wxPyEndAllowThreads(__tstate);
17729 if (PyErr_Occurred()) SWIG_fail;
17730 }
17731 resultobj = SWIG_Py_Void();
17732 if (SWIG_IsTmpObj(res2)) {
17733 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
17734 } else {
17735 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17736 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
17737 }
17738 if (SWIG_IsTmpObj(res3)) {
17739 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17740 } else {
17741 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17742 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17743 }
17744 if (SWIG_IsTmpObj(res4)) {
17745 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17746 } else {
17747 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17748 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17749 }
17750 if (SWIG_IsTmpObj(res5)) {
17751 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17752 } else {
17753 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17754 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17755 }
17756 return resultobj;
17757 fail:
17758 return NULL;
17759 }
17760
17761
17762 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17763 PyObject *resultobj = 0;
17764 wxDC *arg1 = (wxDC *) 0 ;
17765 wxRect result;
17766 void *argp1 = 0 ;
17767 int res1 = 0 ;
17768 PyObject *swig_obj[1] ;
17769
17770 if (!args) SWIG_fail;
17771 swig_obj[0] = args;
17772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17773 if (!SWIG_IsOK(res1)) {
17774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17775 }
17776 arg1 = reinterpret_cast< wxDC * >(argp1);
17777 {
17778 PyThreadState* __tstate = wxPyBeginAllowThreads();
17779 result = wxDC_GetClippingRect(arg1);
17780 wxPyEndAllowThreads(__tstate);
17781 if (PyErr_Occurred()) SWIG_fail;
17782 }
17783 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17784 return resultobj;
17785 fail:
17786 return NULL;
17787 }
17788
17789
17790 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17791 PyObject *resultobj = 0;
17792 wxDC *arg1 = (wxDC *) 0 ;
17793 int result;
17794 void *argp1 = 0 ;
17795 int res1 = 0 ;
17796 PyObject *swig_obj[1] ;
17797
17798 if (!args) SWIG_fail;
17799 swig_obj[0] = args;
17800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17801 if (!SWIG_IsOK(res1)) {
17802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
17803 }
17804 arg1 = reinterpret_cast< wxDC * >(argp1);
17805 {
17806 PyThreadState* __tstate = wxPyBeginAllowThreads();
17807 result = (int)((wxDC const *)arg1)->GetCharHeight();
17808 wxPyEndAllowThreads(__tstate);
17809 if (PyErr_Occurred()) SWIG_fail;
17810 }
17811 resultobj = SWIG_From_int(static_cast< int >(result));
17812 return resultobj;
17813 fail:
17814 return NULL;
17815 }
17816
17817
17818 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17819 PyObject *resultobj = 0;
17820 wxDC *arg1 = (wxDC *) 0 ;
17821 int result;
17822 void *argp1 = 0 ;
17823 int res1 = 0 ;
17824 PyObject *swig_obj[1] ;
17825
17826 if (!args) SWIG_fail;
17827 swig_obj[0] = args;
17828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17829 if (!SWIG_IsOK(res1)) {
17830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
17831 }
17832 arg1 = reinterpret_cast< wxDC * >(argp1);
17833 {
17834 PyThreadState* __tstate = wxPyBeginAllowThreads();
17835 result = (int)((wxDC const *)arg1)->GetCharWidth();
17836 wxPyEndAllowThreads(__tstate);
17837 if (PyErr_Occurred()) SWIG_fail;
17838 }
17839 resultobj = SWIG_From_int(static_cast< int >(result));
17840 return resultobj;
17841 fail:
17842 return NULL;
17843 }
17844
17845
17846 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17847 PyObject *resultobj = 0;
17848 wxDC *arg1 = (wxDC *) 0 ;
17849 wxString *arg2 = 0 ;
17850 int *arg3 = (int *) 0 ;
17851 int *arg4 = (int *) 0 ;
17852 void *argp1 = 0 ;
17853 int res1 = 0 ;
17854 bool temp2 = false ;
17855 int temp3 ;
17856 int res3 = SWIG_TMPOBJ ;
17857 int temp4 ;
17858 int res4 = SWIG_TMPOBJ ;
17859 PyObject * obj0 = 0 ;
17860 PyObject * obj1 = 0 ;
17861 char * kwnames[] = {
17862 (char *) "self",(char *) "string", NULL
17863 };
17864
17865 arg3 = &temp3;
17866 arg4 = &temp4;
17867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
17868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17869 if (!SWIG_IsOK(res1)) {
17870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17871 }
17872 arg1 = reinterpret_cast< wxDC * >(argp1);
17873 {
17874 arg2 = wxString_in_helper(obj1);
17875 if (arg2 == NULL) SWIG_fail;
17876 temp2 = true;
17877 }
17878 {
17879 PyThreadState* __tstate = wxPyBeginAllowThreads();
17880 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
17881 wxPyEndAllowThreads(__tstate);
17882 if (PyErr_Occurred()) SWIG_fail;
17883 }
17884 resultobj = SWIG_Py_Void();
17885 if (SWIG_IsTmpObj(res3)) {
17886 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17887 } else {
17888 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17889 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17890 }
17891 if (SWIG_IsTmpObj(res4)) {
17892 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17893 } else {
17894 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17895 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17896 }
17897 {
17898 if (temp2)
17899 delete arg2;
17900 }
17901 return resultobj;
17902 fail:
17903 {
17904 if (temp2)
17905 delete arg2;
17906 }
17907 return NULL;
17908 }
17909
17910
17911 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17912 PyObject *resultobj = 0;
17913 wxDC *arg1 = (wxDC *) 0 ;
17914 wxString *arg2 = 0 ;
17915 int *arg3 = (int *) 0 ;
17916 int *arg4 = (int *) 0 ;
17917 int *arg5 = (int *) 0 ;
17918 int *arg6 = (int *) 0 ;
17919 wxFont *arg7 = (wxFont *) NULL ;
17920 void *argp1 = 0 ;
17921 int res1 = 0 ;
17922 bool temp2 = false ;
17923 int temp3 ;
17924 int res3 = SWIG_TMPOBJ ;
17925 int temp4 ;
17926 int res4 = SWIG_TMPOBJ ;
17927 int temp5 ;
17928 int res5 = SWIG_TMPOBJ ;
17929 int temp6 ;
17930 int res6 = SWIG_TMPOBJ ;
17931 void *argp7 = 0 ;
17932 int res7 = 0 ;
17933 PyObject * obj0 = 0 ;
17934 PyObject * obj1 = 0 ;
17935 PyObject * obj2 = 0 ;
17936 char * kwnames[] = {
17937 (char *) "self",(char *) "string",(char *) "font", NULL
17938 };
17939
17940 arg3 = &temp3;
17941 arg4 = &temp4;
17942 arg5 = &temp5;
17943 arg6 = &temp6;
17944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17946 if (!SWIG_IsOK(res1)) {
17947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17948 }
17949 arg1 = reinterpret_cast< wxDC * >(argp1);
17950 {
17951 arg2 = wxString_in_helper(obj1);
17952 if (arg2 == NULL) SWIG_fail;
17953 temp2 = true;
17954 }
17955 if (obj2) {
17956 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
17957 if (!SWIG_IsOK(res7)) {
17958 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
17959 }
17960 arg7 = reinterpret_cast< wxFont * >(argp7);
17961 }
17962 {
17963 PyThreadState* __tstate = wxPyBeginAllowThreads();
17964 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
17965 wxPyEndAllowThreads(__tstate);
17966 if (PyErr_Occurred()) SWIG_fail;
17967 }
17968 resultobj = SWIG_Py_Void();
17969 if (SWIG_IsTmpObj(res3)) {
17970 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17971 } else {
17972 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17973 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17974 }
17975 if (SWIG_IsTmpObj(res4)) {
17976 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17977 } else {
17978 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17979 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17980 }
17981 if (SWIG_IsTmpObj(res5)) {
17982 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17983 } else {
17984 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17985 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17986 }
17987 if (SWIG_IsTmpObj(res6)) {
17988 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
17989 } else {
17990 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17991 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
17992 }
17993 {
17994 if (temp2)
17995 delete arg2;
17996 }
17997 return resultobj;
17998 fail:
17999 {
18000 if (temp2)
18001 delete arg2;
18002 }
18003 return NULL;
18004 }
18005
18006
18007 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18008 PyObject *resultobj = 0;
18009 wxDC *arg1 = (wxDC *) 0 ;
18010 wxString *arg2 = 0 ;
18011 int *arg3 = (int *) 0 ;
18012 int *arg4 = (int *) 0 ;
18013 int *arg5 = (int *) 0 ;
18014 wxFont *arg6 = (wxFont *) NULL ;
18015 void *argp1 = 0 ;
18016 int res1 = 0 ;
18017 bool temp2 = false ;
18018 int temp3 ;
18019 int res3 = SWIG_TMPOBJ ;
18020 int temp4 ;
18021 int res4 = SWIG_TMPOBJ ;
18022 int temp5 ;
18023 int res5 = SWIG_TMPOBJ ;
18024 void *argp6 = 0 ;
18025 int res6 = 0 ;
18026 PyObject * obj0 = 0 ;
18027 PyObject * obj1 = 0 ;
18028 PyObject * obj2 = 0 ;
18029 char * kwnames[] = {
18030 (char *) "self",(char *) "text",(char *) "font", NULL
18031 };
18032
18033 arg3 = &temp3;
18034 arg4 = &temp4;
18035 arg5 = &temp5;
18036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18038 if (!SWIG_IsOK(res1)) {
18039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18040 }
18041 arg1 = reinterpret_cast< wxDC * >(argp1);
18042 {
18043 arg2 = wxString_in_helper(obj1);
18044 if (arg2 == NULL) SWIG_fail;
18045 temp2 = true;
18046 }
18047 if (obj2) {
18048 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
18049 if (!SWIG_IsOK(res6)) {
18050 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
18051 }
18052 arg6 = reinterpret_cast< wxFont * >(argp6);
18053 }
18054 {
18055 PyThreadState* __tstate = wxPyBeginAllowThreads();
18056 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
18057 wxPyEndAllowThreads(__tstate);
18058 if (PyErr_Occurred()) SWIG_fail;
18059 }
18060 resultobj = SWIG_Py_Void();
18061 if (SWIG_IsTmpObj(res3)) {
18062 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18063 } else {
18064 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18065 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18066 }
18067 if (SWIG_IsTmpObj(res4)) {
18068 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18069 } else {
18070 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18071 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18072 }
18073 if (SWIG_IsTmpObj(res5)) {
18074 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18075 } else {
18076 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18077 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18078 }
18079 {
18080 if (temp2)
18081 delete arg2;
18082 }
18083 return resultobj;
18084 fail:
18085 {
18086 if (temp2)
18087 delete arg2;
18088 }
18089 return NULL;
18090 }
18091
18092
18093 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18094 PyObject *resultobj = 0;
18095 wxDC *arg1 = (wxDC *) 0 ;
18096 wxString *arg2 = 0 ;
18097 wxArrayInt result;
18098 void *argp1 = 0 ;
18099 int res1 = 0 ;
18100 bool temp2 = false ;
18101 PyObject * obj0 = 0 ;
18102 PyObject * obj1 = 0 ;
18103 char * kwnames[] = {
18104 (char *) "self",(char *) "text", NULL
18105 };
18106
18107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
18108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18109 if (!SWIG_IsOK(res1)) {
18110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18111 }
18112 arg1 = reinterpret_cast< wxDC * >(argp1);
18113 {
18114 arg2 = wxString_in_helper(obj1);
18115 if (arg2 == NULL) SWIG_fail;
18116 temp2 = true;
18117 }
18118 {
18119 PyThreadState* __tstate = wxPyBeginAllowThreads();
18120 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
18121 wxPyEndAllowThreads(__tstate);
18122 if (PyErr_Occurred()) SWIG_fail;
18123 }
18124 {
18125 resultobj = PyList_New(0);
18126 size_t idx;
18127 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
18128 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
18129 PyList_Append(resultobj, val);
18130 Py_DECREF(val);
18131 }
18132 }
18133 {
18134 if (temp2)
18135 delete arg2;
18136 }
18137 return resultobj;
18138 fail:
18139 {
18140 if (temp2)
18141 delete arg2;
18142 }
18143 return NULL;
18144 }
18145
18146
18147 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18148 PyObject *resultobj = 0;
18149 wxDC *arg1 = (wxDC *) 0 ;
18150 wxSize result;
18151 void *argp1 = 0 ;
18152 int res1 = 0 ;
18153 PyObject *swig_obj[1] ;
18154
18155 if (!args) SWIG_fail;
18156 swig_obj[0] = args;
18157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18158 if (!SWIG_IsOK(res1)) {
18159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18160 }
18161 arg1 = reinterpret_cast< wxDC * >(argp1);
18162 {
18163 PyThreadState* __tstate = wxPyBeginAllowThreads();
18164 result = (arg1)->GetSize();
18165 wxPyEndAllowThreads(__tstate);
18166 if (PyErr_Occurred()) SWIG_fail;
18167 }
18168 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18169 return resultobj;
18170 fail:
18171 return NULL;
18172 }
18173
18174
18175 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18176 PyObject *resultobj = 0;
18177 wxDC *arg1 = (wxDC *) 0 ;
18178 int *arg2 = (int *) 0 ;
18179 int *arg3 = (int *) 0 ;
18180 void *argp1 = 0 ;
18181 int res1 = 0 ;
18182 int temp2 ;
18183 int res2 = SWIG_TMPOBJ ;
18184 int temp3 ;
18185 int res3 = SWIG_TMPOBJ ;
18186 PyObject *swig_obj[1] ;
18187
18188 arg2 = &temp2;
18189 arg3 = &temp3;
18190 if (!args) SWIG_fail;
18191 swig_obj[0] = args;
18192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18193 if (!SWIG_IsOK(res1)) {
18194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18195 }
18196 arg1 = reinterpret_cast< wxDC * >(argp1);
18197 {
18198 PyThreadState* __tstate = wxPyBeginAllowThreads();
18199 (arg1)->GetSize(arg2,arg3);
18200 wxPyEndAllowThreads(__tstate);
18201 if (PyErr_Occurred()) SWIG_fail;
18202 }
18203 resultobj = SWIG_Py_Void();
18204 if (SWIG_IsTmpObj(res2)) {
18205 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18206 } else {
18207 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18208 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18209 }
18210 if (SWIG_IsTmpObj(res3)) {
18211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18212 } else {
18213 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18215 }
18216 return resultobj;
18217 fail:
18218 return NULL;
18219 }
18220
18221
18222 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18223 PyObject *resultobj = 0;
18224 wxDC *arg1 = (wxDC *) 0 ;
18225 wxSize result;
18226 void *argp1 = 0 ;
18227 int res1 = 0 ;
18228 PyObject *swig_obj[1] ;
18229
18230 if (!args) SWIG_fail;
18231 swig_obj[0] = args;
18232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18233 if (!SWIG_IsOK(res1)) {
18234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18235 }
18236 arg1 = reinterpret_cast< wxDC * >(argp1);
18237 {
18238 PyThreadState* __tstate = wxPyBeginAllowThreads();
18239 result = ((wxDC const *)arg1)->GetSizeMM();
18240 wxPyEndAllowThreads(__tstate);
18241 if (PyErr_Occurred()) SWIG_fail;
18242 }
18243 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18244 return resultobj;
18245 fail:
18246 return NULL;
18247 }
18248
18249
18250 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18251 PyObject *resultobj = 0;
18252 wxDC *arg1 = (wxDC *) 0 ;
18253 int *arg2 = (int *) 0 ;
18254 int *arg3 = (int *) 0 ;
18255 void *argp1 = 0 ;
18256 int res1 = 0 ;
18257 int temp2 ;
18258 int res2 = SWIG_TMPOBJ ;
18259 int temp3 ;
18260 int res3 = SWIG_TMPOBJ ;
18261 PyObject *swig_obj[1] ;
18262
18263 arg2 = &temp2;
18264 arg3 = &temp3;
18265 if (!args) SWIG_fail;
18266 swig_obj[0] = args;
18267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18268 if (!SWIG_IsOK(res1)) {
18269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18270 }
18271 arg1 = reinterpret_cast< wxDC * >(argp1);
18272 {
18273 PyThreadState* __tstate = wxPyBeginAllowThreads();
18274 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
18275 wxPyEndAllowThreads(__tstate);
18276 if (PyErr_Occurred()) SWIG_fail;
18277 }
18278 resultobj = SWIG_Py_Void();
18279 if (SWIG_IsTmpObj(res2)) {
18280 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18281 } else {
18282 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18283 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18284 }
18285 if (SWIG_IsTmpObj(res3)) {
18286 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18287 } else {
18288 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18289 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18290 }
18291 return resultobj;
18292 fail:
18293 return NULL;
18294 }
18295
18296
18297 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18298 PyObject *resultobj = 0;
18299 wxDC *arg1 = (wxDC *) 0 ;
18300 int arg2 ;
18301 int result;
18302 void *argp1 = 0 ;
18303 int res1 = 0 ;
18304 int val2 ;
18305 int ecode2 = 0 ;
18306 PyObject * obj0 = 0 ;
18307 PyObject * obj1 = 0 ;
18308 char * kwnames[] = {
18309 (char *) "self",(char *) "x", NULL
18310 };
18311
18312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
18313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18314 if (!SWIG_IsOK(res1)) {
18315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
18316 }
18317 arg1 = reinterpret_cast< wxDC * >(argp1);
18318 ecode2 = SWIG_AsVal_int(obj1, &val2);
18319 if (!SWIG_IsOK(ecode2)) {
18320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
18321 }
18322 arg2 = static_cast< int >(val2);
18323 {
18324 PyThreadState* __tstate = wxPyBeginAllowThreads();
18325 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
18326 wxPyEndAllowThreads(__tstate);
18327 if (PyErr_Occurred()) SWIG_fail;
18328 }
18329 resultobj = SWIG_From_int(static_cast< int >(result));
18330 return resultobj;
18331 fail:
18332 return NULL;
18333 }
18334
18335
18336 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18337 PyObject *resultobj = 0;
18338 wxDC *arg1 = (wxDC *) 0 ;
18339 int arg2 ;
18340 int result;
18341 void *argp1 = 0 ;
18342 int res1 = 0 ;
18343 int val2 ;
18344 int ecode2 = 0 ;
18345 PyObject * obj0 = 0 ;
18346 PyObject * obj1 = 0 ;
18347 char * kwnames[] = {
18348 (char *) "self",(char *) "y", NULL
18349 };
18350
18351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
18352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18353 if (!SWIG_IsOK(res1)) {
18354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
18355 }
18356 arg1 = reinterpret_cast< wxDC * >(argp1);
18357 ecode2 = SWIG_AsVal_int(obj1, &val2);
18358 if (!SWIG_IsOK(ecode2)) {
18359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
18360 }
18361 arg2 = static_cast< int >(val2);
18362 {
18363 PyThreadState* __tstate = wxPyBeginAllowThreads();
18364 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
18365 wxPyEndAllowThreads(__tstate);
18366 if (PyErr_Occurred()) SWIG_fail;
18367 }
18368 resultobj = SWIG_From_int(static_cast< int >(result));
18369 return resultobj;
18370 fail:
18371 return NULL;
18372 }
18373
18374
18375 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18376 PyObject *resultobj = 0;
18377 wxDC *arg1 = (wxDC *) 0 ;
18378 int arg2 ;
18379 int result;
18380 void *argp1 = 0 ;
18381 int res1 = 0 ;
18382 int val2 ;
18383 int ecode2 = 0 ;
18384 PyObject * obj0 = 0 ;
18385 PyObject * obj1 = 0 ;
18386 char * kwnames[] = {
18387 (char *) "self",(char *) "x", NULL
18388 };
18389
18390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18392 if (!SWIG_IsOK(res1)) {
18393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18394 }
18395 arg1 = reinterpret_cast< wxDC * >(argp1);
18396 ecode2 = SWIG_AsVal_int(obj1, &val2);
18397 if (!SWIG_IsOK(ecode2)) {
18398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
18399 }
18400 arg2 = static_cast< int >(val2);
18401 {
18402 PyThreadState* __tstate = wxPyBeginAllowThreads();
18403 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
18404 wxPyEndAllowThreads(__tstate);
18405 if (PyErr_Occurred()) SWIG_fail;
18406 }
18407 resultobj = SWIG_From_int(static_cast< int >(result));
18408 return resultobj;
18409 fail:
18410 return NULL;
18411 }
18412
18413
18414 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18415 PyObject *resultobj = 0;
18416 wxDC *arg1 = (wxDC *) 0 ;
18417 int arg2 ;
18418 int result;
18419 void *argp1 = 0 ;
18420 int res1 = 0 ;
18421 int val2 ;
18422 int ecode2 = 0 ;
18423 PyObject * obj0 = 0 ;
18424 PyObject * obj1 = 0 ;
18425 char * kwnames[] = {
18426 (char *) "self",(char *) "y", NULL
18427 };
18428
18429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18431 if (!SWIG_IsOK(res1)) {
18432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18433 }
18434 arg1 = reinterpret_cast< wxDC * >(argp1);
18435 ecode2 = SWIG_AsVal_int(obj1, &val2);
18436 if (!SWIG_IsOK(ecode2)) {
18437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
18438 }
18439 arg2 = static_cast< int >(val2);
18440 {
18441 PyThreadState* __tstate = wxPyBeginAllowThreads();
18442 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
18443 wxPyEndAllowThreads(__tstate);
18444 if (PyErr_Occurred()) SWIG_fail;
18445 }
18446 resultobj = SWIG_From_int(static_cast< int >(result));
18447 return resultobj;
18448 fail:
18449 return NULL;
18450 }
18451
18452
18453 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18454 PyObject *resultobj = 0;
18455 wxDC *arg1 = (wxDC *) 0 ;
18456 int arg2 ;
18457 int result;
18458 void *argp1 = 0 ;
18459 int res1 = 0 ;
18460 int val2 ;
18461 int ecode2 = 0 ;
18462 PyObject * obj0 = 0 ;
18463 PyObject * obj1 = 0 ;
18464 char * kwnames[] = {
18465 (char *) "self",(char *) "x", NULL
18466 };
18467
18468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
18469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18470 if (!SWIG_IsOK(res1)) {
18471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
18472 }
18473 arg1 = reinterpret_cast< wxDC * >(argp1);
18474 ecode2 = SWIG_AsVal_int(obj1, &val2);
18475 if (!SWIG_IsOK(ecode2)) {
18476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
18477 }
18478 arg2 = static_cast< int >(val2);
18479 {
18480 PyThreadState* __tstate = wxPyBeginAllowThreads();
18481 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
18482 wxPyEndAllowThreads(__tstate);
18483 if (PyErr_Occurred()) SWIG_fail;
18484 }
18485 resultobj = SWIG_From_int(static_cast< int >(result));
18486 return resultobj;
18487 fail:
18488 return NULL;
18489 }
18490
18491
18492 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18493 PyObject *resultobj = 0;
18494 wxDC *arg1 = (wxDC *) 0 ;
18495 int arg2 ;
18496 int result;
18497 void *argp1 = 0 ;
18498 int res1 = 0 ;
18499 int val2 ;
18500 int ecode2 = 0 ;
18501 PyObject * obj0 = 0 ;
18502 PyObject * obj1 = 0 ;
18503 char * kwnames[] = {
18504 (char *) "self",(char *) "y", NULL
18505 };
18506
18507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
18508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18509 if (!SWIG_IsOK(res1)) {
18510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
18511 }
18512 arg1 = reinterpret_cast< wxDC * >(argp1);
18513 ecode2 = SWIG_AsVal_int(obj1, &val2);
18514 if (!SWIG_IsOK(ecode2)) {
18515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
18516 }
18517 arg2 = static_cast< int >(val2);
18518 {
18519 PyThreadState* __tstate = wxPyBeginAllowThreads();
18520 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
18521 wxPyEndAllowThreads(__tstate);
18522 if (PyErr_Occurred()) SWIG_fail;
18523 }
18524 resultobj = SWIG_From_int(static_cast< int >(result));
18525 return resultobj;
18526 fail:
18527 return NULL;
18528 }
18529
18530
18531 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18532 PyObject *resultobj = 0;
18533 wxDC *arg1 = (wxDC *) 0 ;
18534 int arg2 ;
18535 int result;
18536 void *argp1 = 0 ;
18537 int res1 = 0 ;
18538 int val2 ;
18539 int ecode2 = 0 ;
18540 PyObject * obj0 = 0 ;
18541 PyObject * obj1 = 0 ;
18542 char * kwnames[] = {
18543 (char *) "self",(char *) "x", NULL
18544 };
18545
18546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18548 if (!SWIG_IsOK(res1)) {
18549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18550 }
18551 arg1 = reinterpret_cast< wxDC * >(argp1);
18552 ecode2 = SWIG_AsVal_int(obj1, &val2);
18553 if (!SWIG_IsOK(ecode2)) {
18554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
18555 }
18556 arg2 = static_cast< int >(val2);
18557 {
18558 PyThreadState* __tstate = wxPyBeginAllowThreads();
18559 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
18560 wxPyEndAllowThreads(__tstate);
18561 if (PyErr_Occurred()) SWIG_fail;
18562 }
18563 resultobj = SWIG_From_int(static_cast< int >(result));
18564 return resultobj;
18565 fail:
18566 return NULL;
18567 }
18568
18569
18570 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18571 PyObject *resultobj = 0;
18572 wxDC *arg1 = (wxDC *) 0 ;
18573 int arg2 ;
18574 int result;
18575 void *argp1 = 0 ;
18576 int res1 = 0 ;
18577 int val2 ;
18578 int ecode2 = 0 ;
18579 PyObject * obj0 = 0 ;
18580 PyObject * obj1 = 0 ;
18581 char * kwnames[] = {
18582 (char *) "self",(char *) "y", NULL
18583 };
18584
18585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18587 if (!SWIG_IsOK(res1)) {
18588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18589 }
18590 arg1 = reinterpret_cast< wxDC * >(argp1);
18591 ecode2 = SWIG_AsVal_int(obj1, &val2);
18592 if (!SWIG_IsOK(ecode2)) {
18593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
18594 }
18595 arg2 = static_cast< int >(val2);
18596 {
18597 PyThreadState* __tstate = wxPyBeginAllowThreads();
18598 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
18599 wxPyEndAllowThreads(__tstate);
18600 if (PyErr_Occurred()) SWIG_fail;
18601 }
18602 resultobj = SWIG_From_int(static_cast< int >(result));
18603 return resultobj;
18604 fail:
18605 return NULL;
18606 }
18607
18608
18609 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18610 PyObject *resultobj = 0;
18611 wxDC *arg1 = (wxDC *) 0 ;
18612 bool result;
18613 void *argp1 = 0 ;
18614 int res1 = 0 ;
18615 PyObject *swig_obj[1] ;
18616
18617 if (!args) SWIG_fail;
18618 swig_obj[0] = args;
18619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18620 if (!SWIG_IsOK(res1)) {
18621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
18622 }
18623 arg1 = reinterpret_cast< wxDC * >(argp1);
18624 {
18625 PyThreadState* __tstate = wxPyBeginAllowThreads();
18626 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
18627 wxPyEndAllowThreads(__tstate);
18628 if (PyErr_Occurred()) SWIG_fail;
18629 }
18630 {
18631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18632 }
18633 return resultobj;
18634 fail:
18635 return NULL;
18636 }
18637
18638
18639 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18640 PyObject *resultobj = 0;
18641 wxDC *arg1 = (wxDC *) 0 ;
18642 bool result;
18643 void *argp1 = 0 ;
18644 int res1 = 0 ;
18645 PyObject *swig_obj[1] ;
18646
18647 if (!args) SWIG_fail;
18648 swig_obj[0] = args;
18649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18650 if (!SWIG_IsOK(res1)) {
18651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
18652 }
18653 arg1 = reinterpret_cast< wxDC * >(argp1);
18654 {
18655 PyThreadState* __tstate = wxPyBeginAllowThreads();
18656 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
18657 wxPyEndAllowThreads(__tstate);
18658 if (PyErr_Occurred()) SWIG_fail;
18659 }
18660 {
18661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18662 }
18663 return resultobj;
18664 fail:
18665 return NULL;
18666 }
18667
18668
18669 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18670 PyObject *resultobj = 0;
18671 wxDC *arg1 = (wxDC *) 0 ;
18672 int result;
18673 void *argp1 = 0 ;
18674 int res1 = 0 ;
18675 PyObject *swig_obj[1] ;
18676
18677 if (!args) SWIG_fail;
18678 swig_obj[0] = args;
18679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18680 if (!SWIG_IsOK(res1)) {
18681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
18682 }
18683 arg1 = reinterpret_cast< wxDC * >(argp1);
18684 {
18685 PyThreadState* __tstate = wxPyBeginAllowThreads();
18686 result = (int)((wxDC const *)arg1)->GetDepth();
18687 wxPyEndAllowThreads(__tstate);
18688 if (PyErr_Occurred()) SWIG_fail;
18689 }
18690 resultobj = SWIG_From_int(static_cast< int >(result));
18691 return resultobj;
18692 fail:
18693 return NULL;
18694 }
18695
18696
18697 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18698 PyObject *resultobj = 0;
18699 wxDC *arg1 = (wxDC *) 0 ;
18700 wxSize result;
18701 void *argp1 = 0 ;
18702 int res1 = 0 ;
18703 PyObject *swig_obj[1] ;
18704
18705 if (!args) SWIG_fail;
18706 swig_obj[0] = args;
18707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18708 if (!SWIG_IsOK(res1)) {
18709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
18710 }
18711 arg1 = reinterpret_cast< wxDC * >(argp1);
18712 {
18713 PyThreadState* __tstate = wxPyBeginAllowThreads();
18714 result = ((wxDC const *)arg1)->GetPPI();
18715 wxPyEndAllowThreads(__tstate);
18716 if (PyErr_Occurred()) SWIG_fail;
18717 }
18718 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18719 return resultobj;
18720 fail:
18721 return NULL;
18722 }
18723
18724
18725 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18726 PyObject *resultobj = 0;
18727 wxDC *arg1 = (wxDC *) 0 ;
18728 bool result;
18729 void *argp1 = 0 ;
18730 int res1 = 0 ;
18731 PyObject *swig_obj[1] ;
18732
18733 if (!args) SWIG_fail;
18734 swig_obj[0] = args;
18735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18736 if (!SWIG_IsOK(res1)) {
18737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
18738 }
18739 arg1 = reinterpret_cast< wxDC * >(argp1);
18740 {
18741 PyThreadState* __tstate = wxPyBeginAllowThreads();
18742 result = (bool)((wxDC const *)arg1)->Ok();
18743 wxPyEndAllowThreads(__tstate);
18744 if (PyErr_Occurred()) SWIG_fail;
18745 }
18746 {
18747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18748 }
18749 return resultobj;
18750 fail:
18751 return NULL;
18752 }
18753
18754
18755 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18756 PyObject *resultobj = 0;
18757 wxDC *arg1 = (wxDC *) 0 ;
18758 int result;
18759 void *argp1 = 0 ;
18760 int res1 = 0 ;
18761 PyObject *swig_obj[1] ;
18762
18763 if (!args) SWIG_fail;
18764 swig_obj[0] = args;
18765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18766 if (!SWIG_IsOK(res1)) {
18767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
18768 }
18769 arg1 = reinterpret_cast< wxDC * >(argp1);
18770 {
18771 PyThreadState* __tstate = wxPyBeginAllowThreads();
18772 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
18773 wxPyEndAllowThreads(__tstate);
18774 if (PyErr_Occurred()) SWIG_fail;
18775 }
18776 resultobj = SWIG_From_int(static_cast< int >(result));
18777 return resultobj;
18778 fail:
18779 return NULL;
18780 }
18781
18782
18783 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18784 PyObject *resultobj = 0;
18785 wxDC *arg1 = (wxDC *) 0 ;
18786 wxBrush *result = 0 ;
18787 void *argp1 = 0 ;
18788 int res1 = 0 ;
18789 PyObject *swig_obj[1] ;
18790
18791 if (!args) SWIG_fail;
18792 swig_obj[0] = args;
18793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18794 if (!SWIG_IsOK(res1)) {
18795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18796 }
18797 arg1 = reinterpret_cast< wxDC * >(argp1);
18798 {
18799 PyThreadState* __tstate = wxPyBeginAllowThreads();
18800 {
18801 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
18802 result = (wxBrush *) &_result_ref;
18803 }
18804 wxPyEndAllowThreads(__tstate);
18805 if (PyErr_Occurred()) SWIG_fail;
18806 }
18807 {
18808 wxBrush* resultptr = new wxBrush(*result);
18809 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18810 }
18811 return resultobj;
18812 fail:
18813 return NULL;
18814 }
18815
18816
18817 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18818 PyObject *resultobj = 0;
18819 wxDC *arg1 = (wxDC *) 0 ;
18820 wxBrush *result = 0 ;
18821 void *argp1 = 0 ;
18822 int res1 = 0 ;
18823 PyObject *swig_obj[1] ;
18824
18825 if (!args) SWIG_fail;
18826 swig_obj[0] = args;
18827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18828 if (!SWIG_IsOK(res1)) {
18829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
18830 }
18831 arg1 = reinterpret_cast< wxDC * >(argp1);
18832 {
18833 PyThreadState* __tstate = wxPyBeginAllowThreads();
18834 {
18835 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
18836 result = (wxBrush *) &_result_ref;
18837 }
18838 wxPyEndAllowThreads(__tstate);
18839 if (PyErr_Occurred()) SWIG_fail;
18840 }
18841 {
18842 wxBrush* resultptr = new wxBrush(*result);
18843 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18844 }
18845 return resultobj;
18846 fail:
18847 return NULL;
18848 }
18849
18850
18851 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18852 PyObject *resultobj = 0;
18853 wxDC *arg1 = (wxDC *) 0 ;
18854 wxFont *result = 0 ;
18855 void *argp1 = 0 ;
18856 int res1 = 0 ;
18857 PyObject *swig_obj[1] ;
18858
18859 if (!args) SWIG_fail;
18860 swig_obj[0] = args;
18861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18862 if (!SWIG_IsOK(res1)) {
18863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
18864 }
18865 arg1 = reinterpret_cast< wxDC * >(argp1);
18866 {
18867 PyThreadState* __tstate = wxPyBeginAllowThreads();
18868 {
18869 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
18870 result = (wxFont *) &_result_ref;
18871 }
18872 wxPyEndAllowThreads(__tstate);
18873 if (PyErr_Occurred()) SWIG_fail;
18874 }
18875 {
18876 wxFont* resultptr = new wxFont(*result);
18877 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
18878 }
18879 return resultobj;
18880 fail:
18881 return NULL;
18882 }
18883
18884
18885 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18886 PyObject *resultobj = 0;
18887 wxDC *arg1 = (wxDC *) 0 ;
18888 wxPen *result = 0 ;
18889 void *argp1 = 0 ;
18890 int res1 = 0 ;
18891 PyObject *swig_obj[1] ;
18892
18893 if (!args) SWIG_fail;
18894 swig_obj[0] = args;
18895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18896 if (!SWIG_IsOK(res1)) {
18897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
18898 }
18899 arg1 = reinterpret_cast< wxDC * >(argp1);
18900 {
18901 PyThreadState* __tstate = wxPyBeginAllowThreads();
18902 {
18903 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
18904 result = (wxPen *) &_result_ref;
18905 }
18906 wxPyEndAllowThreads(__tstate);
18907 if (PyErr_Occurred()) SWIG_fail;
18908 }
18909 {
18910 wxPen* resultptr = new wxPen(*result);
18911 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
18912 }
18913 return resultobj;
18914 fail:
18915 return NULL;
18916 }
18917
18918
18919 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18920 PyObject *resultobj = 0;
18921 wxDC *arg1 = (wxDC *) 0 ;
18922 wxColour *result = 0 ;
18923 void *argp1 = 0 ;
18924 int res1 = 0 ;
18925 PyObject *swig_obj[1] ;
18926
18927 if (!args) SWIG_fail;
18928 swig_obj[0] = args;
18929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18930 if (!SWIG_IsOK(res1)) {
18931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18932 }
18933 arg1 = reinterpret_cast< wxDC * >(argp1);
18934 {
18935 PyThreadState* __tstate = wxPyBeginAllowThreads();
18936 {
18937 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
18938 result = (wxColour *) &_result_ref;
18939 }
18940 wxPyEndAllowThreads(__tstate);
18941 if (PyErr_Occurred()) SWIG_fail;
18942 }
18943 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18944 return resultobj;
18945 fail:
18946 return NULL;
18947 }
18948
18949
18950 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18951 PyObject *resultobj = 0;
18952 wxDC *arg1 = (wxDC *) 0 ;
18953 wxColour *result = 0 ;
18954 void *argp1 = 0 ;
18955 int res1 = 0 ;
18956 PyObject *swig_obj[1] ;
18957
18958 if (!args) SWIG_fail;
18959 swig_obj[0] = args;
18960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18961 if (!SWIG_IsOK(res1)) {
18962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
18963 }
18964 arg1 = reinterpret_cast< wxDC * >(argp1);
18965 {
18966 PyThreadState* __tstate = wxPyBeginAllowThreads();
18967 {
18968 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
18969 result = (wxColour *) &_result_ref;
18970 }
18971 wxPyEndAllowThreads(__tstate);
18972 if (PyErr_Occurred()) SWIG_fail;
18973 }
18974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18975 return resultobj;
18976 fail:
18977 return NULL;
18978 }
18979
18980
18981 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18982 PyObject *resultobj = 0;
18983 wxDC *arg1 = (wxDC *) 0 ;
18984 wxColour *arg2 = 0 ;
18985 void *argp1 = 0 ;
18986 int res1 = 0 ;
18987 wxColour temp2 ;
18988 PyObject * obj0 = 0 ;
18989 PyObject * obj1 = 0 ;
18990 char * kwnames[] = {
18991 (char *) "self",(char *) "colour", NULL
18992 };
18993
18994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
18995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18996 if (!SWIG_IsOK(res1)) {
18997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
18998 }
18999 arg1 = reinterpret_cast< wxDC * >(argp1);
19000 {
19001 arg2 = &temp2;
19002 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19003 }
19004 {
19005 PyThreadState* __tstate = wxPyBeginAllowThreads();
19006 (arg1)->SetTextForeground((wxColour const &)*arg2);
19007 wxPyEndAllowThreads(__tstate);
19008 if (PyErr_Occurred()) SWIG_fail;
19009 }
19010 resultobj = SWIG_Py_Void();
19011 return resultobj;
19012 fail:
19013 return NULL;
19014 }
19015
19016
19017 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19018 PyObject *resultobj = 0;
19019 wxDC *arg1 = (wxDC *) 0 ;
19020 wxColour *arg2 = 0 ;
19021 void *argp1 = 0 ;
19022 int res1 = 0 ;
19023 wxColour temp2 ;
19024 PyObject * obj0 = 0 ;
19025 PyObject * obj1 = 0 ;
19026 char * kwnames[] = {
19027 (char *) "self",(char *) "colour", NULL
19028 };
19029
19030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
19031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19032 if (!SWIG_IsOK(res1)) {
19033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
19034 }
19035 arg1 = reinterpret_cast< wxDC * >(argp1);
19036 {
19037 arg2 = &temp2;
19038 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19039 }
19040 {
19041 PyThreadState* __tstate = wxPyBeginAllowThreads();
19042 (arg1)->SetTextBackground((wxColour const &)*arg2);
19043 wxPyEndAllowThreads(__tstate);
19044 if (PyErr_Occurred()) SWIG_fail;
19045 }
19046 resultobj = SWIG_Py_Void();
19047 return resultobj;
19048 fail:
19049 return NULL;
19050 }
19051
19052
19053 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19054 PyObject *resultobj = 0;
19055 wxDC *arg1 = (wxDC *) 0 ;
19056 int result;
19057 void *argp1 = 0 ;
19058 int res1 = 0 ;
19059 PyObject *swig_obj[1] ;
19060
19061 if (!args) SWIG_fail;
19062 swig_obj[0] = args;
19063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19064 if (!SWIG_IsOK(res1)) {
19065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19066 }
19067 arg1 = reinterpret_cast< wxDC * >(argp1);
19068 {
19069 PyThreadState* __tstate = wxPyBeginAllowThreads();
19070 result = (int)((wxDC const *)arg1)->GetMapMode();
19071 wxPyEndAllowThreads(__tstate);
19072 if (PyErr_Occurred()) SWIG_fail;
19073 }
19074 resultobj = SWIG_From_int(static_cast< int >(result));
19075 return resultobj;
19076 fail:
19077 return NULL;
19078 }
19079
19080
19081 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19082 PyObject *resultobj = 0;
19083 wxDC *arg1 = (wxDC *) 0 ;
19084 int arg2 ;
19085 void *argp1 = 0 ;
19086 int res1 = 0 ;
19087 int val2 ;
19088 int ecode2 = 0 ;
19089 PyObject * obj0 = 0 ;
19090 PyObject * obj1 = 0 ;
19091 char * kwnames[] = {
19092 (char *) "self",(char *) "mode", NULL
19093 };
19094
19095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
19096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19097 if (!SWIG_IsOK(res1)) {
19098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19099 }
19100 arg1 = reinterpret_cast< wxDC * >(argp1);
19101 ecode2 = SWIG_AsVal_int(obj1, &val2);
19102 if (!SWIG_IsOK(ecode2)) {
19103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19104 }
19105 arg2 = static_cast< int >(val2);
19106 {
19107 PyThreadState* __tstate = wxPyBeginAllowThreads();
19108 (arg1)->SetMapMode(arg2);
19109 wxPyEndAllowThreads(__tstate);
19110 if (PyErr_Occurred()) SWIG_fail;
19111 }
19112 resultobj = SWIG_Py_Void();
19113 return resultobj;
19114 fail:
19115 return NULL;
19116 }
19117
19118
19119 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19120 PyObject *resultobj = 0;
19121 wxDC *arg1 = (wxDC *) 0 ;
19122 double *arg2 = (double *) 0 ;
19123 double *arg3 = (double *) 0 ;
19124 void *argp1 = 0 ;
19125 int res1 = 0 ;
19126 double temp2 ;
19127 int res2 = SWIG_TMPOBJ ;
19128 double temp3 ;
19129 int res3 = SWIG_TMPOBJ ;
19130 PyObject *swig_obj[1] ;
19131
19132 arg2 = &temp2;
19133 arg3 = &temp3;
19134 if (!args) SWIG_fail;
19135 swig_obj[0] = args;
19136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19137 if (!SWIG_IsOK(res1)) {
19138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19139 }
19140 arg1 = reinterpret_cast< wxDC * >(argp1);
19141 {
19142 PyThreadState* __tstate = wxPyBeginAllowThreads();
19143 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
19144 wxPyEndAllowThreads(__tstate);
19145 if (PyErr_Occurred()) SWIG_fail;
19146 }
19147 resultobj = SWIG_Py_Void();
19148 if (SWIG_IsTmpObj(res2)) {
19149 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19150 } else {
19151 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19152 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19153 }
19154 if (SWIG_IsTmpObj(res3)) {
19155 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19156 } else {
19157 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19158 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19159 }
19160 return resultobj;
19161 fail:
19162 return NULL;
19163 }
19164
19165
19166 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19167 PyObject *resultobj = 0;
19168 wxDC *arg1 = (wxDC *) 0 ;
19169 double arg2 ;
19170 double arg3 ;
19171 void *argp1 = 0 ;
19172 int res1 = 0 ;
19173 double val2 ;
19174 int ecode2 = 0 ;
19175 double val3 ;
19176 int ecode3 = 0 ;
19177 PyObject * obj0 = 0 ;
19178 PyObject * obj1 = 0 ;
19179 PyObject * obj2 = 0 ;
19180 char * kwnames[] = {
19181 (char *) "self",(char *) "x",(char *) "y", NULL
19182 };
19183
19184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19186 if (!SWIG_IsOK(res1)) {
19187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19188 }
19189 arg1 = reinterpret_cast< wxDC * >(argp1);
19190 ecode2 = SWIG_AsVal_double(obj1, &val2);
19191 if (!SWIG_IsOK(ecode2)) {
19192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19193 }
19194 arg2 = static_cast< double >(val2);
19195 ecode3 = SWIG_AsVal_double(obj2, &val3);
19196 if (!SWIG_IsOK(ecode3)) {
19197 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19198 }
19199 arg3 = static_cast< double >(val3);
19200 {
19201 PyThreadState* __tstate = wxPyBeginAllowThreads();
19202 (arg1)->SetUserScale(arg2,arg3);
19203 wxPyEndAllowThreads(__tstate);
19204 if (PyErr_Occurred()) SWIG_fail;
19205 }
19206 resultobj = SWIG_Py_Void();
19207 return resultobj;
19208 fail:
19209 return NULL;
19210 }
19211
19212
19213 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19214 PyObject *resultobj = 0;
19215 wxDC *arg1 = (wxDC *) 0 ;
19216 double *arg2 = (double *) 0 ;
19217 double *arg3 = (double *) 0 ;
19218 void *argp1 = 0 ;
19219 int res1 = 0 ;
19220 double temp2 ;
19221 int res2 = SWIG_TMPOBJ ;
19222 double temp3 ;
19223 int res3 = SWIG_TMPOBJ ;
19224 PyObject *swig_obj[1] ;
19225
19226 arg2 = &temp2;
19227 arg3 = &temp3;
19228 if (!args) SWIG_fail;
19229 swig_obj[0] = args;
19230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19231 if (!SWIG_IsOK(res1)) {
19232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19233 }
19234 arg1 = reinterpret_cast< wxDC * >(argp1);
19235 {
19236 PyThreadState* __tstate = wxPyBeginAllowThreads();
19237 (arg1)->GetLogicalScale(arg2,arg3);
19238 wxPyEndAllowThreads(__tstate);
19239 if (PyErr_Occurred()) SWIG_fail;
19240 }
19241 resultobj = SWIG_Py_Void();
19242 if (SWIG_IsTmpObj(res2)) {
19243 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19244 } else {
19245 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19246 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19247 }
19248 if (SWIG_IsTmpObj(res3)) {
19249 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19250 } else {
19251 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19252 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19253 }
19254 return resultobj;
19255 fail:
19256 return NULL;
19257 }
19258
19259
19260 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19261 PyObject *resultobj = 0;
19262 wxDC *arg1 = (wxDC *) 0 ;
19263 double arg2 ;
19264 double arg3 ;
19265 void *argp1 = 0 ;
19266 int res1 = 0 ;
19267 double val2 ;
19268 int ecode2 = 0 ;
19269 double val3 ;
19270 int ecode3 = 0 ;
19271 PyObject * obj0 = 0 ;
19272 PyObject * obj1 = 0 ;
19273 PyObject * obj2 = 0 ;
19274 char * kwnames[] = {
19275 (char *) "self",(char *) "x",(char *) "y", NULL
19276 };
19277
19278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19280 if (!SWIG_IsOK(res1)) {
19281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19282 }
19283 arg1 = reinterpret_cast< wxDC * >(argp1);
19284 ecode2 = SWIG_AsVal_double(obj1, &val2);
19285 if (!SWIG_IsOK(ecode2)) {
19286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19287 }
19288 arg2 = static_cast< double >(val2);
19289 ecode3 = SWIG_AsVal_double(obj2, &val3);
19290 if (!SWIG_IsOK(ecode3)) {
19291 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19292 }
19293 arg3 = static_cast< double >(val3);
19294 {
19295 PyThreadState* __tstate = wxPyBeginAllowThreads();
19296 (arg1)->SetLogicalScale(arg2,arg3);
19297 wxPyEndAllowThreads(__tstate);
19298 if (PyErr_Occurred()) SWIG_fail;
19299 }
19300 resultobj = SWIG_Py_Void();
19301 return resultobj;
19302 fail:
19303 return NULL;
19304 }
19305
19306
19307 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19308 PyObject *resultobj = 0;
19309 wxDC *arg1 = (wxDC *) 0 ;
19310 wxPoint result;
19311 void *argp1 = 0 ;
19312 int res1 = 0 ;
19313 PyObject *swig_obj[1] ;
19314
19315 if (!args) SWIG_fail;
19316 swig_obj[0] = args;
19317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19318 if (!SWIG_IsOK(res1)) {
19319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19320 }
19321 arg1 = reinterpret_cast< wxDC * >(argp1);
19322 {
19323 PyThreadState* __tstate = wxPyBeginAllowThreads();
19324 result = ((wxDC const *)arg1)->GetLogicalOrigin();
19325 wxPyEndAllowThreads(__tstate);
19326 if (PyErr_Occurred()) SWIG_fail;
19327 }
19328 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19329 return resultobj;
19330 fail:
19331 return NULL;
19332 }
19333
19334
19335 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19336 PyObject *resultobj = 0;
19337 wxDC *arg1 = (wxDC *) 0 ;
19338 int *arg2 = (int *) 0 ;
19339 int *arg3 = (int *) 0 ;
19340 void *argp1 = 0 ;
19341 int res1 = 0 ;
19342 int temp2 ;
19343 int res2 = SWIG_TMPOBJ ;
19344 int temp3 ;
19345 int res3 = SWIG_TMPOBJ ;
19346 PyObject *swig_obj[1] ;
19347
19348 arg2 = &temp2;
19349 arg3 = &temp3;
19350 if (!args) SWIG_fail;
19351 swig_obj[0] = args;
19352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19353 if (!SWIG_IsOK(res1)) {
19354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19355 }
19356 arg1 = reinterpret_cast< wxDC * >(argp1);
19357 {
19358 PyThreadState* __tstate = wxPyBeginAllowThreads();
19359 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
19360 wxPyEndAllowThreads(__tstate);
19361 if (PyErr_Occurred()) SWIG_fail;
19362 }
19363 resultobj = SWIG_Py_Void();
19364 if (SWIG_IsTmpObj(res2)) {
19365 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19366 } else {
19367 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19368 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19369 }
19370 if (SWIG_IsTmpObj(res3)) {
19371 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19372 } else {
19373 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19374 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19375 }
19376 return resultobj;
19377 fail:
19378 return NULL;
19379 }
19380
19381
19382 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19383 PyObject *resultobj = 0;
19384 wxDC *arg1 = (wxDC *) 0 ;
19385 int arg2 ;
19386 int arg3 ;
19387 void *argp1 = 0 ;
19388 int res1 = 0 ;
19389 int val2 ;
19390 int ecode2 = 0 ;
19391 int val3 ;
19392 int ecode3 = 0 ;
19393 PyObject * obj0 = 0 ;
19394 PyObject * obj1 = 0 ;
19395 PyObject * obj2 = 0 ;
19396 char * kwnames[] = {
19397 (char *) "self",(char *) "x",(char *) "y", NULL
19398 };
19399
19400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19402 if (!SWIG_IsOK(res1)) {
19403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19404 }
19405 arg1 = reinterpret_cast< wxDC * >(argp1);
19406 ecode2 = SWIG_AsVal_int(obj1, &val2);
19407 if (!SWIG_IsOK(ecode2)) {
19408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
19409 }
19410 arg2 = static_cast< int >(val2);
19411 ecode3 = SWIG_AsVal_int(obj2, &val3);
19412 if (!SWIG_IsOK(ecode3)) {
19413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
19414 }
19415 arg3 = static_cast< int >(val3);
19416 {
19417 PyThreadState* __tstate = wxPyBeginAllowThreads();
19418 (arg1)->SetLogicalOrigin(arg2,arg3);
19419 wxPyEndAllowThreads(__tstate);
19420 if (PyErr_Occurred()) SWIG_fail;
19421 }
19422 resultobj = SWIG_Py_Void();
19423 return resultobj;
19424 fail:
19425 return NULL;
19426 }
19427
19428
19429 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19430 PyObject *resultobj = 0;
19431 wxDC *arg1 = (wxDC *) 0 ;
19432 wxPoint *arg2 = 0 ;
19433 void *argp1 = 0 ;
19434 int res1 = 0 ;
19435 wxPoint temp2 ;
19436 PyObject * obj0 = 0 ;
19437 PyObject * obj1 = 0 ;
19438 char * kwnames[] = {
19439 (char *) "self",(char *) "point", NULL
19440 };
19441
19442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19444 if (!SWIG_IsOK(res1)) {
19445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19446 }
19447 arg1 = reinterpret_cast< wxDC * >(argp1);
19448 {
19449 arg2 = &temp2;
19450 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19451 }
19452 {
19453 PyThreadState* __tstate = wxPyBeginAllowThreads();
19454 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
19455 wxPyEndAllowThreads(__tstate);
19456 if (PyErr_Occurred()) SWIG_fail;
19457 }
19458 resultobj = SWIG_Py_Void();
19459 return resultobj;
19460 fail:
19461 return NULL;
19462 }
19463
19464
19465 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19466 PyObject *resultobj = 0;
19467 wxDC *arg1 = (wxDC *) 0 ;
19468 wxPoint result;
19469 void *argp1 = 0 ;
19470 int res1 = 0 ;
19471 PyObject *swig_obj[1] ;
19472
19473 if (!args) SWIG_fail;
19474 swig_obj[0] = args;
19475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19476 if (!SWIG_IsOK(res1)) {
19477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19478 }
19479 arg1 = reinterpret_cast< wxDC * >(argp1);
19480 {
19481 PyThreadState* __tstate = wxPyBeginAllowThreads();
19482 result = ((wxDC const *)arg1)->GetDeviceOrigin();
19483 wxPyEndAllowThreads(__tstate);
19484 if (PyErr_Occurred()) SWIG_fail;
19485 }
19486 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19487 return resultobj;
19488 fail:
19489 return NULL;
19490 }
19491
19492
19493 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19494 PyObject *resultobj = 0;
19495 wxDC *arg1 = (wxDC *) 0 ;
19496 int *arg2 = (int *) 0 ;
19497 int *arg3 = (int *) 0 ;
19498 void *argp1 = 0 ;
19499 int res1 = 0 ;
19500 int temp2 ;
19501 int res2 = SWIG_TMPOBJ ;
19502 int temp3 ;
19503 int res3 = SWIG_TMPOBJ ;
19504 PyObject *swig_obj[1] ;
19505
19506 arg2 = &temp2;
19507 arg3 = &temp3;
19508 if (!args) SWIG_fail;
19509 swig_obj[0] = args;
19510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19511 if (!SWIG_IsOK(res1)) {
19512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19513 }
19514 arg1 = reinterpret_cast< wxDC * >(argp1);
19515 {
19516 PyThreadState* __tstate = wxPyBeginAllowThreads();
19517 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
19518 wxPyEndAllowThreads(__tstate);
19519 if (PyErr_Occurred()) SWIG_fail;
19520 }
19521 resultobj = SWIG_Py_Void();
19522 if (SWIG_IsTmpObj(res2)) {
19523 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19524 } else {
19525 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19526 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19527 }
19528 if (SWIG_IsTmpObj(res3)) {
19529 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19530 } else {
19531 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19532 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19533 }
19534 return resultobj;
19535 fail:
19536 return NULL;
19537 }
19538
19539
19540 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19541 PyObject *resultobj = 0;
19542 wxDC *arg1 = (wxDC *) 0 ;
19543 int arg2 ;
19544 int arg3 ;
19545 void *argp1 = 0 ;
19546 int res1 = 0 ;
19547 int val2 ;
19548 int ecode2 = 0 ;
19549 int val3 ;
19550 int ecode3 = 0 ;
19551 PyObject * obj0 = 0 ;
19552 PyObject * obj1 = 0 ;
19553 PyObject * obj2 = 0 ;
19554 char * kwnames[] = {
19555 (char *) "self",(char *) "x",(char *) "y", NULL
19556 };
19557
19558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19560 if (!SWIG_IsOK(res1)) {
19561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19562 }
19563 arg1 = reinterpret_cast< wxDC * >(argp1);
19564 ecode2 = SWIG_AsVal_int(obj1, &val2);
19565 if (!SWIG_IsOK(ecode2)) {
19566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
19567 }
19568 arg2 = static_cast< int >(val2);
19569 ecode3 = SWIG_AsVal_int(obj2, &val3);
19570 if (!SWIG_IsOK(ecode3)) {
19571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
19572 }
19573 arg3 = static_cast< int >(val3);
19574 {
19575 PyThreadState* __tstate = wxPyBeginAllowThreads();
19576 (arg1)->SetDeviceOrigin(arg2,arg3);
19577 wxPyEndAllowThreads(__tstate);
19578 if (PyErr_Occurred()) SWIG_fail;
19579 }
19580 resultobj = SWIG_Py_Void();
19581 return resultobj;
19582 fail:
19583 return NULL;
19584 }
19585
19586
19587 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19588 PyObject *resultobj = 0;
19589 wxDC *arg1 = (wxDC *) 0 ;
19590 wxPoint *arg2 = 0 ;
19591 void *argp1 = 0 ;
19592 int res1 = 0 ;
19593 wxPoint temp2 ;
19594 PyObject * obj0 = 0 ;
19595 PyObject * obj1 = 0 ;
19596 char * kwnames[] = {
19597 (char *) "self",(char *) "point", NULL
19598 };
19599
19600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19602 if (!SWIG_IsOK(res1)) {
19603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19604 }
19605 arg1 = reinterpret_cast< wxDC * >(argp1);
19606 {
19607 arg2 = &temp2;
19608 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19609 }
19610 {
19611 PyThreadState* __tstate = wxPyBeginAllowThreads();
19612 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
19613 wxPyEndAllowThreads(__tstate);
19614 if (PyErr_Occurred()) SWIG_fail;
19615 }
19616 resultobj = SWIG_Py_Void();
19617 return resultobj;
19618 fail:
19619 return NULL;
19620 }
19621
19622
19623 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19624 PyObject *resultobj = 0;
19625 wxDC *arg1 = (wxDC *) 0 ;
19626 bool arg2 ;
19627 bool arg3 ;
19628 void *argp1 = 0 ;
19629 int res1 = 0 ;
19630 bool val2 ;
19631 int ecode2 = 0 ;
19632 bool val3 ;
19633 int ecode3 = 0 ;
19634 PyObject * obj0 = 0 ;
19635 PyObject * obj1 = 0 ;
19636 PyObject * obj2 = 0 ;
19637 char * kwnames[] = {
19638 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
19639 };
19640
19641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19643 if (!SWIG_IsOK(res1)) {
19644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
19645 }
19646 arg1 = reinterpret_cast< wxDC * >(argp1);
19647 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19648 if (!SWIG_IsOK(ecode2)) {
19649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
19650 }
19651 arg2 = static_cast< bool >(val2);
19652 ecode3 = SWIG_AsVal_bool(obj2, &val3);
19653 if (!SWIG_IsOK(ecode3)) {
19654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
19655 }
19656 arg3 = static_cast< bool >(val3);
19657 {
19658 PyThreadState* __tstate = wxPyBeginAllowThreads();
19659 (arg1)->SetAxisOrientation(arg2,arg3);
19660 wxPyEndAllowThreads(__tstate);
19661 if (PyErr_Occurred()) SWIG_fail;
19662 }
19663 resultobj = SWIG_Py_Void();
19664 return resultobj;
19665 fail:
19666 return NULL;
19667 }
19668
19669
19670 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19671 PyObject *resultobj = 0;
19672 wxDC *arg1 = (wxDC *) 0 ;
19673 int result;
19674 void *argp1 = 0 ;
19675 int res1 = 0 ;
19676 PyObject *swig_obj[1] ;
19677
19678 if (!args) SWIG_fail;
19679 swig_obj[0] = args;
19680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19681 if (!SWIG_IsOK(res1)) {
19682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
19683 }
19684 arg1 = reinterpret_cast< wxDC * >(argp1);
19685 {
19686 PyThreadState* __tstate = wxPyBeginAllowThreads();
19687 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
19688 wxPyEndAllowThreads(__tstate);
19689 if (PyErr_Occurred()) SWIG_fail;
19690 }
19691 resultobj = SWIG_From_int(static_cast< int >(result));
19692 return resultobj;
19693 fail:
19694 return NULL;
19695 }
19696
19697
19698 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19699 PyObject *resultobj = 0;
19700 wxDC *arg1 = (wxDC *) 0 ;
19701 int arg2 ;
19702 void *argp1 = 0 ;
19703 int res1 = 0 ;
19704 int val2 ;
19705 int ecode2 = 0 ;
19706 PyObject * obj0 = 0 ;
19707 PyObject * obj1 = 0 ;
19708 char * kwnames[] = {
19709 (char *) "self",(char *) "function", NULL
19710 };
19711
19712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
19713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19714 if (!SWIG_IsOK(res1)) {
19715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
19716 }
19717 arg1 = reinterpret_cast< wxDC * >(argp1);
19718 ecode2 = SWIG_AsVal_int(obj1, &val2);
19719 if (!SWIG_IsOK(ecode2)) {
19720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
19721 }
19722 arg2 = static_cast< int >(val2);
19723 {
19724 PyThreadState* __tstate = wxPyBeginAllowThreads();
19725 (arg1)->SetLogicalFunction(arg2);
19726 wxPyEndAllowThreads(__tstate);
19727 if (PyErr_Occurred()) SWIG_fail;
19728 }
19729 resultobj = SWIG_Py_Void();
19730 return resultobj;
19731 fail:
19732 return NULL;
19733 }
19734
19735
19736 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19737 PyObject *resultobj = 0;
19738 wxDC *arg1 = (wxDC *) 0 ;
19739 void *argp1 = 0 ;
19740 int res1 = 0 ;
19741 PyObject *swig_obj[1] ;
19742
19743 if (!args) SWIG_fail;
19744 swig_obj[0] = args;
19745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19746 if (!SWIG_IsOK(res1)) {
19747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19748 }
19749 arg1 = reinterpret_cast< wxDC * >(argp1);
19750 {
19751 PyThreadState* __tstate = wxPyBeginAllowThreads();
19752 (arg1)->ComputeScaleAndOrigin();
19753 wxPyEndAllowThreads(__tstate);
19754 if (PyErr_Occurred()) SWIG_fail;
19755 }
19756 resultobj = SWIG_Py_Void();
19757 return resultobj;
19758 fail:
19759 return NULL;
19760 }
19761
19762
19763 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19764 PyObject *resultobj = 0;
19765 wxDC *arg1 = (wxDC *) 0 ;
19766 int arg2 ;
19767 int arg3 ;
19768 void *argp1 = 0 ;
19769 int res1 = 0 ;
19770 int val2 ;
19771 int ecode2 = 0 ;
19772 int val3 ;
19773 int ecode3 = 0 ;
19774 PyObject * obj0 = 0 ;
19775 PyObject * obj1 = 0 ;
19776 PyObject * obj2 = 0 ;
19777 char * kwnames[] = {
19778 (char *) "self",(char *) "x",(char *) "y", NULL
19779 };
19780
19781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19783 if (!SWIG_IsOK(res1)) {
19784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19785 }
19786 arg1 = reinterpret_cast< wxDC * >(argp1);
19787 ecode2 = SWIG_AsVal_int(obj1, &val2);
19788 if (!SWIG_IsOK(ecode2)) {
19789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
19790 }
19791 arg2 = static_cast< int >(val2);
19792 ecode3 = SWIG_AsVal_int(obj2, &val3);
19793 if (!SWIG_IsOK(ecode3)) {
19794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
19795 }
19796 arg3 = static_cast< int >(val3);
19797 {
19798 PyThreadState* __tstate = wxPyBeginAllowThreads();
19799 (arg1)->CalcBoundingBox(arg2,arg3);
19800 wxPyEndAllowThreads(__tstate);
19801 if (PyErr_Occurred()) SWIG_fail;
19802 }
19803 resultobj = SWIG_Py_Void();
19804 return resultobj;
19805 fail:
19806 return NULL;
19807 }
19808
19809
19810 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19811 PyObject *resultobj = 0;
19812 wxDC *arg1 = (wxDC *) 0 ;
19813 wxPoint *arg2 = 0 ;
19814 void *argp1 = 0 ;
19815 int res1 = 0 ;
19816 wxPoint temp2 ;
19817 PyObject * obj0 = 0 ;
19818 PyObject * obj1 = 0 ;
19819 char * kwnames[] = {
19820 (char *) "self",(char *) "point", NULL
19821 };
19822
19823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19825 if (!SWIG_IsOK(res1)) {
19826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19827 }
19828 arg1 = reinterpret_cast< wxDC * >(argp1);
19829 {
19830 arg2 = &temp2;
19831 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19832 }
19833 {
19834 PyThreadState* __tstate = wxPyBeginAllowThreads();
19835 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
19836 wxPyEndAllowThreads(__tstate);
19837 if (PyErr_Occurred()) SWIG_fail;
19838 }
19839 resultobj = SWIG_Py_Void();
19840 return resultobj;
19841 fail:
19842 return NULL;
19843 }
19844
19845
19846 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19847 PyObject *resultobj = 0;
19848 wxDC *arg1 = (wxDC *) 0 ;
19849 void *argp1 = 0 ;
19850 int res1 = 0 ;
19851 PyObject *swig_obj[1] ;
19852
19853 if (!args) SWIG_fail;
19854 swig_obj[0] = args;
19855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19856 if (!SWIG_IsOK(res1)) {
19857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19858 }
19859 arg1 = reinterpret_cast< wxDC * >(argp1);
19860 {
19861 PyThreadState* __tstate = wxPyBeginAllowThreads();
19862 (arg1)->ResetBoundingBox();
19863 wxPyEndAllowThreads(__tstate);
19864 if (PyErr_Occurred()) SWIG_fail;
19865 }
19866 resultobj = SWIG_Py_Void();
19867 return resultobj;
19868 fail:
19869 return NULL;
19870 }
19871
19872
19873 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19874 PyObject *resultobj = 0;
19875 wxDC *arg1 = (wxDC *) 0 ;
19876 int result;
19877 void *argp1 = 0 ;
19878 int res1 = 0 ;
19879 PyObject *swig_obj[1] ;
19880
19881 if (!args) SWIG_fail;
19882 swig_obj[0] = args;
19883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19884 if (!SWIG_IsOK(res1)) {
19885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
19886 }
19887 arg1 = reinterpret_cast< wxDC * >(argp1);
19888 {
19889 PyThreadState* __tstate = wxPyBeginAllowThreads();
19890 result = (int)((wxDC const *)arg1)->MinX();
19891 wxPyEndAllowThreads(__tstate);
19892 if (PyErr_Occurred()) SWIG_fail;
19893 }
19894 resultobj = SWIG_From_int(static_cast< int >(result));
19895 return resultobj;
19896 fail:
19897 return NULL;
19898 }
19899
19900
19901 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19902 PyObject *resultobj = 0;
19903 wxDC *arg1 = (wxDC *) 0 ;
19904 int result;
19905 void *argp1 = 0 ;
19906 int res1 = 0 ;
19907 PyObject *swig_obj[1] ;
19908
19909 if (!args) SWIG_fail;
19910 swig_obj[0] = args;
19911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19912 if (!SWIG_IsOK(res1)) {
19913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
19914 }
19915 arg1 = reinterpret_cast< wxDC * >(argp1);
19916 {
19917 PyThreadState* __tstate = wxPyBeginAllowThreads();
19918 result = (int)((wxDC const *)arg1)->MaxX();
19919 wxPyEndAllowThreads(__tstate);
19920 if (PyErr_Occurred()) SWIG_fail;
19921 }
19922 resultobj = SWIG_From_int(static_cast< int >(result));
19923 return resultobj;
19924 fail:
19925 return NULL;
19926 }
19927
19928
19929 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19930 PyObject *resultobj = 0;
19931 wxDC *arg1 = (wxDC *) 0 ;
19932 int result;
19933 void *argp1 = 0 ;
19934 int res1 = 0 ;
19935 PyObject *swig_obj[1] ;
19936
19937 if (!args) SWIG_fail;
19938 swig_obj[0] = args;
19939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19940 if (!SWIG_IsOK(res1)) {
19941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
19942 }
19943 arg1 = reinterpret_cast< wxDC * >(argp1);
19944 {
19945 PyThreadState* __tstate = wxPyBeginAllowThreads();
19946 result = (int)((wxDC const *)arg1)->MinY();
19947 wxPyEndAllowThreads(__tstate);
19948 if (PyErr_Occurred()) SWIG_fail;
19949 }
19950 resultobj = SWIG_From_int(static_cast< int >(result));
19951 return resultobj;
19952 fail:
19953 return NULL;
19954 }
19955
19956
19957 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19958 PyObject *resultobj = 0;
19959 wxDC *arg1 = (wxDC *) 0 ;
19960 int result;
19961 void *argp1 = 0 ;
19962 int res1 = 0 ;
19963 PyObject *swig_obj[1] ;
19964
19965 if (!args) SWIG_fail;
19966 swig_obj[0] = args;
19967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19968 if (!SWIG_IsOK(res1)) {
19969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
19970 }
19971 arg1 = reinterpret_cast< wxDC * >(argp1);
19972 {
19973 PyThreadState* __tstate = wxPyBeginAllowThreads();
19974 result = (int)((wxDC const *)arg1)->MaxY();
19975 wxPyEndAllowThreads(__tstate);
19976 if (PyErr_Occurred()) SWIG_fail;
19977 }
19978 resultobj = SWIG_From_int(static_cast< int >(result));
19979 return resultobj;
19980 fail:
19981 return NULL;
19982 }
19983
19984
19985 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19986 PyObject *resultobj = 0;
19987 wxDC *arg1 = (wxDC *) 0 ;
19988 int *arg2 = (int *) 0 ;
19989 int *arg3 = (int *) 0 ;
19990 int *arg4 = (int *) 0 ;
19991 int *arg5 = (int *) 0 ;
19992 void *argp1 = 0 ;
19993 int res1 = 0 ;
19994 int temp2 ;
19995 int res2 = SWIG_TMPOBJ ;
19996 int temp3 ;
19997 int res3 = SWIG_TMPOBJ ;
19998 int temp4 ;
19999 int res4 = SWIG_TMPOBJ ;
20000 int temp5 ;
20001 int res5 = SWIG_TMPOBJ ;
20002 PyObject *swig_obj[1] ;
20003
20004 arg2 = &temp2;
20005 arg3 = &temp3;
20006 arg4 = &temp4;
20007 arg5 = &temp5;
20008 if (!args) SWIG_fail;
20009 swig_obj[0] = args;
20010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20011 if (!SWIG_IsOK(res1)) {
20012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20013 }
20014 arg1 = reinterpret_cast< wxDC * >(argp1);
20015 {
20016 PyThreadState* __tstate = wxPyBeginAllowThreads();
20017 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
20018 wxPyEndAllowThreads(__tstate);
20019 if (PyErr_Occurred()) SWIG_fail;
20020 }
20021 resultobj = SWIG_Py_Void();
20022 if (SWIG_IsTmpObj(res2)) {
20023 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20024 } else {
20025 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20026 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20027 }
20028 if (SWIG_IsTmpObj(res3)) {
20029 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20030 } else {
20031 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20032 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20033 }
20034 if (SWIG_IsTmpObj(res4)) {
20035 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20036 } else {
20037 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20038 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20039 }
20040 if (SWIG_IsTmpObj(res5)) {
20041 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20042 } else {
20043 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20044 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20045 }
20046 return resultobj;
20047 fail:
20048 return NULL;
20049 }
20050
20051
20052 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20053 PyObject *resultobj = 0;
20054 wxDC *arg1 = (wxDC *) 0 ;
20055 PyObject *arg2 = (PyObject *) 0 ;
20056 PyObject *arg3 = (PyObject *) 0 ;
20057 PyObject *arg4 = (PyObject *) 0 ;
20058 PyObject *result = 0 ;
20059 void *argp1 = 0 ;
20060 int res1 = 0 ;
20061 PyObject * obj0 = 0 ;
20062 PyObject * obj1 = 0 ;
20063 PyObject * obj2 = 0 ;
20064 PyObject * obj3 = 0 ;
20065 char * kwnames[] = {
20066 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20067 };
20068
20069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20071 if (!SWIG_IsOK(res1)) {
20072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
20073 }
20074 arg1 = reinterpret_cast< wxDC * >(argp1);
20075 arg2 = obj1;
20076 arg3 = obj2;
20077 arg4 = obj3;
20078 {
20079 PyThreadState* __tstate = wxPyBeginAllowThreads();
20080 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
20081 wxPyEndAllowThreads(__tstate);
20082 if (PyErr_Occurred()) SWIG_fail;
20083 }
20084 resultobj = result;
20085 return resultobj;
20086 fail:
20087 return NULL;
20088 }
20089
20090
20091 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20092 PyObject *resultobj = 0;
20093 wxDC *arg1 = (wxDC *) 0 ;
20094 PyObject *arg2 = (PyObject *) 0 ;
20095 PyObject *arg3 = (PyObject *) 0 ;
20096 PyObject *arg4 = (PyObject *) 0 ;
20097 PyObject *result = 0 ;
20098 void *argp1 = 0 ;
20099 int res1 = 0 ;
20100 PyObject * obj0 = 0 ;
20101 PyObject * obj1 = 0 ;
20102 PyObject * obj2 = 0 ;
20103 PyObject * obj3 = 0 ;
20104 char * kwnames[] = {
20105 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20106 };
20107
20108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20110 if (!SWIG_IsOK(res1)) {
20111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20112 }
20113 arg1 = reinterpret_cast< wxDC * >(argp1);
20114 arg2 = obj1;
20115 arg3 = obj2;
20116 arg4 = obj3;
20117 {
20118 PyThreadState* __tstate = wxPyBeginAllowThreads();
20119 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
20120 wxPyEndAllowThreads(__tstate);
20121 if (PyErr_Occurred()) SWIG_fail;
20122 }
20123 resultobj = result;
20124 return resultobj;
20125 fail:
20126 return NULL;
20127 }
20128
20129
20130 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20131 PyObject *resultobj = 0;
20132 wxDC *arg1 = (wxDC *) 0 ;
20133 PyObject *arg2 = (PyObject *) 0 ;
20134 PyObject *arg3 = (PyObject *) 0 ;
20135 PyObject *arg4 = (PyObject *) 0 ;
20136 PyObject *result = 0 ;
20137 void *argp1 = 0 ;
20138 int res1 = 0 ;
20139 PyObject * obj0 = 0 ;
20140 PyObject * obj1 = 0 ;
20141 PyObject * obj2 = 0 ;
20142 PyObject * obj3 = 0 ;
20143 char * kwnames[] = {
20144 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20145 };
20146
20147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20149 if (!SWIG_IsOK(res1)) {
20150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20151 }
20152 arg1 = reinterpret_cast< wxDC * >(argp1);
20153 arg2 = obj1;
20154 arg3 = obj2;
20155 arg4 = obj3;
20156 {
20157 PyThreadState* __tstate = wxPyBeginAllowThreads();
20158 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
20159 wxPyEndAllowThreads(__tstate);
20160 if (PyErr_Occurred()) SWIG_fail;
20161 }
20162 resultobj = result;
20163 return resultobj;
20164 fail:
20165 return NULL;
20166 }
20167
20168
20169 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20170 PyObject *resultobj = 0;
20171 wxDC *arg1 = (wxDC *) 0 ;
20172 PyObject *arg2 = (PyObject *) 0 ;
20173 PyObject *arg3 = (PyObject *) 0 ;
20174 PyObject *arg4 = (PyObject *) 0 ;
20175 PyObject *result = 0 ;
20176 void *argp1 = 0 ;
20177 int res1 = 0 ;
20178 PyObject * obj0 = 0 ;
20179 PyObject * obj1 = 0 ;
20180 PyObject * obj2 = 0 ;
20181 PyObject * obj3 = 0 ;
20182 char * kwnames[] = {
20183 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20184 };
20185
20186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20188 if (!SWIG_IsOK(res1)) {
20189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20190 }
20191 arg1 = reinterpret_cast< wxDC * >(argp1);
20192 arg2 = obj1;
20193 arg3 = obj2;
20194 arg4 = obj3;
20195 {
20196 PyThreadState* __tstate = wxPyBeginAllowThreads();
20197 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
20198 wxPyEndAllowThreads(__tstate);
20199 if (PyErr_Occurred()) SWIG_fail;
20200 }
20201 resultobj = result;
20202 return resultobj;
20203 fail:
20204 return NULL;
20205 }
20206
20207
20208 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20209 PyObject *resultobj = 0;
20210 wxDC *arg1 = (wxDC *) 0 ;
20211 PyObject *arg2 = (PyObject *) 0 ;
20212 PyObject *arg3 = (PyObject *) 0 ;
20213 PyObject *arg4 = (PyObject *) 0 ;
20214 PyObject *result = 0 ;
20215 void *argp1 = 0 ;
20216 int res1 = 0 ;
20217 PyObject * obj0 = 0 ;
20218 PyObject * obj1 = 0 ;
20219 PyObject * obj2 = 0 ;
20220 PyObject * obj3 = 0 ;
20221 char * kwnames[] = {
20222 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20223 };
20224
20225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20227 if (!SWIG_IsOK(res1)) {
20228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20229 }
20230 arg1 = reinterpret_cast< wxDC * >(argp1);
20231 arg2 = obj1;
20232 arg3 = obj2;
20233 arg4 = obj3;
20234 {
20235 PyThreadState* __tstate = wxPyBeginAllowThreads();
20236 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
20237 wxPyEndAllowThreads(__tstate);
20238 if (PyErr_Occurred()) SWIG_fail;
20239 }
20240 resultobj = result;
20241 return resultobj;
20242 fail:
20243 return NULL;
20244 }
20245
20246
20247 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20248 PyObject *resultobj = 0;
20249 wxDC *arg1 = (wxDC *) 0 ;
20250 PyObject *arg2 = (PyObject *) 0 ;
20251 PyObject *arg3 = (PyObject *) 0 ;
20252 PyObject *arg4 = (PyObject *) 0 ;
20253 PyObject *arg5 = (PyObject *) 0 ;
20254 PyObject *result = 0 ;
20255 void *argp1 = 0 ;
20256 int res1 = 0 ;
20257 PyObject * obj0 = 0 ;
20258 PyObject * obj1 = 0 ;
20259 PyObject * obj2 = 0 ;
20260 PyObject * obj3 = 0 ;
20261 PyObject * obj4 = 0 ;
20262 char * kwnames[] = {
20263 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20264 };
20265
20266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20268 if (!SWIG_IsOK(res1)) {
20269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20270 }
20271 arg1 = reinterpret_cast< wxDC * >(argp1);
20272 arg2 = obj1;
20273 arg3 = obj2;
20274 arg4 = obj3;
20275 arg5 = obj4;
20276 {
20277 PyThreadState* __tstate = wxPyBeginAllowThreads();
20278 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
20279 wxPyEndAllowThreads(__tstate);
20280 if (PyErr_Occurred()) SWIG_fail;
20281 }
20282 resultobj = result;
20283 return resultobj;
20284 fail:
20285 return NULL;
20286 }
20287
20288
20289 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20290 PyObject *obj;
20291 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20292 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
20293 return SWIG_Py_Void();
20294 }
20295
20296 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20297 PyObject *resultobj = 0;
20298 wxMemoryDC *result = 0 ;
20299
20300 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
20301 {
20302 if (!wxPyCheckForApp()) SWIG_fail;
20303 PyThreadState* __tstate = wxPyBeginAllowThreads();
20304 result = (wxMemoryDC *)new wxMemoryDC();
20305 wxPyEndAllowThreads(__tstate);
20306 if (PyErr_Occurred()) SWIG_fail;
20307 }
20308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
20309 return resultobj;
20310 fail:
20311 return NULL;
20312 }
20313
20314
20315 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20316 PyObject *resultobj = 0;
20317 wxDC *arg1 = (wxDC *) 0 ;
20318 wxMemoryDC *result = 0 ;
20319 void *argp1 = 0 ;
20320 int res1 = 0 ;
20321 PyObject * obj0 = 0 ;
20322 char * kwnames[] = {
20323 (char *) "oldDC", NULL
20324 };
20325
20326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
20327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20328 if (!SWIG_IsOK(res1)) {
20329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
20330 }
20331 arg1 = reinterpret_cast< wxDC * >(argp1);
20332 {
20333 if (!wxPyCheckForApp()) SWIG_fail;
20334 PyThreadState* __tstate = wxPyBeginAllowThreads();
20335 result = (wxMemoryDC *)new wxMemoryDC(arg1);
20336 wxPyEndAllowThreads(__tstate);
20337 if (PyErr_Occurred()) SWIG_fail;
20338 }
20339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
20340 return resultobj;
20341 fail:
20342 return NULL;
20343 }
20344
20345
20346 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20347 PyObject *resultobj = 0;
20348 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
20349 wxBitmap *arg2 = 0 ;
20350 void *argp1 = 0 ;
20351 int res1 = 0 ;
20352 void *argp2 = 0 ;
20353 int res2 = 0 ;
20354 PyObject * obj0 = 0 ;
20355 PyObject * obj1 = 0 ;
20356 char * kwnames[] = {
20357 (char *) "self",(char *) "bitmap", NULL
20358 };
20359
20360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
20361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
20362 if (!SWIG_IsOK(res1)) {
20363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
20364 }
20365 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
20366 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20367 if (!SWIG_IsOK(res2)) {
20368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20369 }
20370 if (!argp2) {
20371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20372 }
20373 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20374 {
20375 PyThreadState* __tstate = wxPyBeginAllowThreads();
20376 (arg1)->SelectObject((wxBitmap const &)*arg2);
20377 wxPyEndAllowThreads(__tstate);
20378 if (PyErr_Occurred()) SWIG_fail;
20379 }
20380 resultobj = SWIG_Py_Void();
20381 return resultobj;
20382 fail:
20383 return NULL;
20384 }
20385
20386
20387 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20388 PyObject *obj;
20389 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20390 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
20391 return SWIG_Py_Void();
20392 }
20393
20394 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20395 return SWIG_Python_InitShadowInstance(args);
20396 }
20397
20398 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20399 PyObject *resultobj = 0;
20400 wxDC *arg1 = (wxDC *) 0 ;
20401 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20402 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20403 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20404 wxBufferedDC *result = 0 ;
20405 void *argp1 = 0 ;
20406 int res1 = 0 ;
20407 void *argp2 = 0 ;
20408 int res2 = 0 ;
20409 int val3 ;
20410 int ecode3 = 0 ;
20411
20412 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
20413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20414 if (!SWIG_IsOK(res1)) {
20415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20416 }
20417 arg1 = reinterpret_cast< wxDC * >(argp1);
20418 if (swig_obj[1]) {
20419 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20420 if (!SWIG_IsOK(res2)) {
20421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20422 }
20423 if (!argp2) {
20424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20425 }
20426 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20427 }
20428 if (swig_obj[2]) {
20429 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20430 if (!SWIG_IsOK(ecode3)) {
20431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20432 }
20433 arg3 = static_cast< int >(val3);
20434 }
20435 {
20436 if (!wxPyCheckForApp()) SWIG_fail;
20437 PyThreadState* __tstate = wxPyBeginAllowThreads();
20438 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
20439 wxPyEndAllowThreads(__tstate);
20440 if (PyErr_Occurred()) SWIG_fail;
20441 }
20442 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20443 return resultobj;
20444 fail:
20445 return NULL;
20446 }
20447
20448
20449 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20450 PyObject *resultobj = 0;
20451 wxDC *arg1 = (wxDC *) 0 ;
20452 wxSize *arg2 = 0 ;
20453 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20454 wxBufferedDC *result = 0 ;
20455 void *argp1 = 0 ;
20456 int res1 = 0 ;
20457 wxSize temp2 ;
20458 int val3 ;
20459 int ecode3 = 0 ;
20460
20461 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
20462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20463 if (!SWIG_IsOK(res1)) {
20464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20465 }
20466 arg1 = reinterpret_cast< wxDC * >(argp1);
20467 {
20468 arg2 = &temp2;
20469 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
20470 }
20471 if (swig_obj[2]) {
20472 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20473 if (!SWIG_IsOK(ecode3)) {
20474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20475 }
20476 arg3 = static_cast< int >(val3);
20477 }
20478 {
20479 if (!wxPyCheckForApp()) SWIG_fail;
20480 PyThreadState* __tstate = wxPyBeginAllowThreads();
20481 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
20482 wxPyEndAllowThreads(__tstate);
20483 if (PyErr_Occurred()) SWIG_fail;
20484 }
20485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20486 return resultobj;
20487 fail:
20488 return NULL;
20489 }
20490
20491
20492 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
20493 int argc;
20494 PyObject *argv[4];
20495
20496 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
20497 --argc;
20498 if ((argc >= 1) && (argc <= 3)) {
20499 int _v = 0;
20500 if (argc > 1) {
20501 {
20502 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
20503 _v = SWIG_CheckState(res);
20504 }
20505 if (!_v) goto check_1;
20506 }
20507 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
20508 }
20509 check_1:
20510
20511 if ((argc >= 2) && (argc <= 3)) {
20512 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
20513 }
20514
20515 fail:
20516 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
20517 return NULL;
20518 }
20519
20520
20521 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20522 PyObject *resultobj = 0;
20523 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20524 void *argp1 = 0 ;
20525 int res1 = 0 ;
20526 PyObject *swig_obj[1] ;
20527
20528 if (!args) SWIG_fail;
20529 swig_obj[0] = args;
20530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
20531 if (!SWIG_IsOK(res1)) {
20532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20533 }
20534 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20535 {
20536 PyThreadState* __tstate = wxPyBeginAllowThreads();
20537 delete arg1;
20538
20539 wxPyEndAllowThreads(__tstate);
20540 if (PyErr_Occurred()) SWIG_fail;
20541 }
20542 resultobj = SWIG_Py_Void();
20543 return resultobj;
20544 fail:
20545 return NULL;
20546 }
20547
20548
20549 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20550 PyObject *resultobj = 0;
20551 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20552 void *argp1 = 0 ;
20553 int res1 = 0 ;
20554 PyObject *swig_obj[1] ;
20555
20556 if (!args) SWIG_fail;
20557 swig_obj[0] = args;
20558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
20559 if (!SWIG_IsOK(res1)) {
20560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20561 }
20562 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20563 {
20564 PyThreadState* __tstate = wxPyBeginAllowThreads();
20565 (arg1)->UnMask();
20566 wxPyEndAllowThreads(__tstate);
20567 if (PyErr_Occurred()) SWIG_fail;
20568 }
20569 resultobj = SWIG_Py_Void();
20570 return resultobj;
20571 fail:
20572 return NULL;
20573 }
20574
20575
20576 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20577 PyObject *obj;
20578 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20579 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
20580 return SWIG_Py_Void();
20581 }
20582
20583 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20584 return SWIG_Python_InitShadowInstance(args);
20585 }
20586
20587 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20588 PyObject *resultobj = 0;
20589 wxWindow *arg1 = (wxWindow *) 0 ;
20590 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20591 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20592 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20593 wxBufferedPaintDC *result = 0 ;
20594 void *argp1 = 0 ;
20595 int res1 = 0 ;
20596 void *argp2 = 0 ;
20597 int res2 = 0 ;
20598 int val3 ;
20599 int ecode3 = 0 ;
20600 PyObject * obj0 = 0 ;
20601 PyObject * obj1 = 0 ;
20602 PyObject * obj2 = 0 ;
20603 char * kwnames[] = {
20604 (char *) "window",(char *) "buffer",(char *) "style", NULL
20605 };
20606
20607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20609 if (!SWIG_IsOK(res1)) {
20610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20611 }
20612 arg1 = reinterpret_cast< wxWindow * >(argp1);
20613 if (obj1) {
20614 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20615 if (!SWIG_IsOK(res2)) {
20616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20617 }
20618 if (!argp2) {
20619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20620 }
20621 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20622 }
20623 if (obj2) {
20624 ecode3 = SWIG_AsVal_int(obj2, &val3);
20625 if (!SWIG_IsOK(ecode3)) {
20626 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
20627 }
20628 arg3 = static_cast< int >(val3);
20629 }
20630 {
20631 if (!wxPyCheckForApp()) SWIG_fail;
20632 PyThreadState* __tstate = wxPyBeginAllowThreads();
20633 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
20634 wxPyEndAllowThreads(__tstate);
20635 if (PyErr_Occurred()) SWIG_fail;
20636 }
20637 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
20638 return resultobj;
20639 fail:
20640 return NULL;
20641 }
20642
20643
20644 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20645 PyObject *obj;
20646 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20647 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
20648 return SWIG_Py_Void();
20649 }
20650
20651 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20652 return SWIG_Python_InitShadowInstance(args);
20653 }
20654
20655 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20656 PyObject *resultobj = 0;
20657 wxScreenDC *result = 0 ;
20658
20659 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
20660 {
20661 if (!wxPyCheckForApp()) SWIG_fail;
20662 PyThreadState* __tstate = wxPyBeginAllowThreads();
20663 result = (wxScreenDC *)new wxScreenDC();
20664 wxPyEndAllowThreads(__tstate);
20665 if (PyErr_Occurred()) SWIG_fail;
20666 }
20667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
20668 return resultobj;
20669 fail:
20670 return NULL;
20671 }
20672
20673
20674 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20675 PyObject *resultobj = 0;
20676 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20677 wxWindow *arg2 = (wxWindow *) 0 ;
20678 bool result;
20679 void *argp1 = 0 ;
20680 int res1 = 0 ;
20681 void *argp2 = 0 ;
20682 int res2 = 0 ;
20683 PyObject * obj0 = 0 ;
20684 PyObject * obj1 = 0 ;
20685 char * kwnames[] = {
20686 (char *) "self",(char *) "window", NULL
20687 };
20688
20689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
20690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20691 if (!SWIG_IsOK(res1)) {
20692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20693 }
20694 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20695 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20696 if (!SWIG_IsOK(res2)) {
20697 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
20698 }
20699 arg2 = reinterpret_cast< wxWindow * >(argp2);
20700 {
20701 PyThreadState* __tstate = wxPyBeginAllowThreads();
20702 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20703 wxPyEndAllowThreads(__tstate);
20704 if (PyErr_Occurred()) SWIG_fail;
20705 }
20706 {
20707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20708 }
20709 return resultobj;
20710 fail:
20711 return NULL;
20712 }
20713
20714
20715 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20716 PyObject *resultobj = 0;
20717 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20718 wxRect *arg2 = (wxRect *) NULL ;
20719 bool result;
20720 void *argp1 = 0 ;
20721 int res1 = 0 ;
20722 void *argp2 = 0 ;
20723 int res2 = 0 ;
20724 PyObject * obj0 = 0 ;
20725 PyObject * obj1 = 0 ;
20726 char * kwnames[] = {
20727 (char *) "self",(char *) "rect", NULL
20728 };
20729
20730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
20731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20732 if (!SWIG_IsOK(res1)) {
20733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20734 }
20735 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20736 if (obj1) {
20737 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20738 if (!SWIG_IsOK(res2)) {
20739 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
20740 }
20741 arg2 = reinterpret_cast< wxRect * >(argp2);
20742 }
20743 {
20744 PyThreadState* __tstate = wxPyBeginAllowThreads();
20745 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20746 wxPyEndAllowThreads(__tstate);
20747 if (PyErr_Occurred()) SWIG_fail;
20748 }
20749 {
20750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20751 }
20752 return resultobj;
20753 fail:
20754 return NULL;
20755 }
20756
20757
20758 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20759 PyObject *resultobj = 0;
20760 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20761 bool result;
20762 void *argp1 = 0 ;
20763 int res1 = 0 ;
20764 PyObject *swig_obj[1] ;
20765
20766 if (!args) SWIG_fail;
20767 swig_obj[0] = args;
20768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20769 if (!SWIG_IsOK(res1)) {
20770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20771 }
20772 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20773 {
20774 PyThreadState* __tstate = wxPyBeginAllowThreads();
20775 result = (bool)(arg1)->EndDrawingOnTop();
20776 wxPyEndAllowThreads(__tstate);
20777 if (PyErr_Occurred()) SWIG_fail;
20778 }
20779 {
20780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20781 }
20782 return resultobj;
20783 fail:
20784 return NULL;
20785 }
20786
20787
20788 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20789 PyObject *obj;
20790 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20791 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
20792 return SWIG_Py_Void();
20793 }
20794
20795 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20796 return SWIG_Python_InitShadowInstance(args);
20797 }
20798
20799 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20800 PyObject *resultobj = 0;
20801 wxWindow *arg1 = (wxWindow *) 0 ;
20802 wxClientDC *result = 0 ;
20803 void *argp1 = 0 ;
20804 int res1 = 0 ;
20805 PyObject * obj0 = 0 ;
20806 char * kwnames[] = {
20807 (char *) "win", NULL
20808 };
20809
20810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
20811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20812 if (!SWIG_IsOK(res1)) {
20813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20814 }
20815 arg1 = reinterpret_cast< wxWindow * >(argp1);
20816 {
20817 if (!wxPyCheckForApp()) SWIG_fail;
20818 PyThreadState* __tstate = wxPyBeginAllowThreads();
20819 result = (wxClientDC *)new wxClientDC(arg1);
20820 wxPyEndAllowThreads(__tstate);
20821 if (PyErr_Occurred()) SWIG_fail;
20822 }
20823 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
20824 return resultobj;
20825 fail:
20826 return NULL;
20827 }
20828
20829
20830 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20831 PyObject *obj;
20832 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20833 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
20834 return SWIG_Py_Void();
20835 }
20836
20837 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20838 return SWIG_Python_InitShadowInstance(args);
20839 }
20840
20841 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20842 PyObject *resultobj = 0;
20843 wxWindow *arg1 = (wxWindow *) 0 ;
20844 wxPaintDC *result = 0 ;
20845 void *argp1 = 0 ;
20846 int res1 = 0 ;
20847 PyObject * obj0 = 0 ;
20848 char * kwnames[] = {
20849 (char *) "win", NULL
20850 };
20851
20852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
20853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20854 if (!SWIG_IsOK(res1)) {
20855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20856 }
20857 arg1 = reinterpret_cast< wxWindow * >(argp1);
20858 {
20859 if (!wxPyCheckForApp()) SWIG_fail;
20860 PyThreadState* __tstate = wxPyBeginAllowThreads();
20861 result = (wxPaintDC *)new wxPaintDC(arg1);
20862 wxPyEndAllowThreads(__tstate);
20863 if (PyErr_Occurred()) SWIG_fail;
20864 }
20865 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
20866 return resultobj;
20867 fail:
20868 return NULL;
20869 }
20870
20871
20872 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20873 PyObject *obj;
20874 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20875 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
20876 return SWIG_Py_Void();
20877 }
20878
20879 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20880 return SWIG_Python_InitShadowInstance(args);
20881 }
20882
20883 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20884 PyObject *resultobj = 0;
20885 wxWindow *arg1 = (wxWindow *) 0 ;
20886 wxWindowDC *result = 0 ;
20887 void *argp1 = 0 ;
20888 int res1 = 0 ;
20889 PyObject * obj0 = 0 ;
20890 char * kwnames[] = {
20891 (char *) "win", NULL
20892 };
20893
20894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
20895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20896 if (!SWIG_IsOK(res1)) {
20897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20898 }
20899 arg1 = reinterpret_cast< wxWindow * >(argp1);
20900 {
20901 if (!wxPyCheckForApp()) SWIG_fail;
20902 PyThreadState* __tstate = wxPyBeginAllowThreads();
20903 result = (wxWindowDC *)new wxWindowDC(arg1);
20904 wxPyEndAllowThreads(__tstate);
20905 if (PyErr_Occurred()) SWIG_fail;
20906 }
20907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
20908 return resultobj;
20909 fail:
20910 return NULL;
20911 }
20912
20913
20914 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20915 PyObject *obj;
20916 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20917 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
20918 return SWIG_Py_Void();
20919 }
20920
20921 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20922 return SWIG_Python_InitShadowInstance(args);
20923 }
20924
20925 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20926 PyObject *resultobj = 0;
20927 wxDC *arg1 = 0 ;
20928 bool arg2 ;
20929 wxMirrorDC *result = 0 ;
20930 void *argp1 = 0 ;
20931 int res1 = 0 ;
20932 bool val2 ;
20933 int ecode2 = 0 ;
20934 PyObject * obj0 = 0 ;
20935 PyObject * obj1 = 0 ;
20936 char * kwnames[] = {
20937 (char *) "dc",(char *) "mirror", NULL
20938 };
20939
20940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
20941 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
20942 if (!SWIG_IsOK(res1)) {
20943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20944 }
20945 if (!argp1) {
20946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20947 }
20948 arg1 = reinterpret_cast< wxDC * >(argp1);
20949 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20950 if (!SWIG_IsOK(ecode2)) {
20951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
20952 }
20953 arg2 = static_cast< bool >(val2);
20954 {
20955 if (!wxPyCheckForApp()) SWIG_fail;
20956 PyThreadState* __tstate = wxPyBeginAllowThreads();
20957 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
20958 wxPyEndAllowThreads(__tstate);
20959 if (PyErr_Occurred()) SWIG_fail;
20960 }
20961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
20962 return resultobj;
20963 fail:
20964 return NULL;
20965 }
20966
20967
20968 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20969 PyObject *obj;
20970 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20971 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
20972 return SWIG_Py_Void();
20973 }
20974
20975 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20976 return SWIG_Python_InitShadowInstance(args);
20977 }
20978
20979 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20980 PyObject *resultobj = 0;
20981 wxPrintData *arg1 = 0 ;
20982 wxPostScriptDC *result = 0 ;
20983 void *argp1 = 0 ;
20984 int res1 = 0 ;
20985 PyObject * obj0 = 0 ;
20986 char * kwnames[] = {
20987 (char *) "printData", NULL
20988 };
20989
20990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
20991 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
20992 if (!SWIG_IsOK(res1)) {
20993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
20994 }
20995 if (!argp1) {
20996 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
20997 }
20998 arg1 = reinterpret_cast< wxPrintData * >(argp1);
20999 {
21000 if (!wxPyCheckForApp()) SWIG_fail;
21001 PyThreadState* __tstate = wxPyBeginAllowThreads();
21002 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
21003 wxPyEndAllowThreads(__tstate);
21004 if (PyErr_Occurred()) SWIG_fail;
21005 }
21006 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
21007 return resultobj;
21008 fail:
21009 return NULL;
21010 }
21011
21012
21013 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21014 PyObject *resultobj = 0;
21015 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21016 wxPrintData *result = 0 ;
21017 void *argp1 = 0 ;
21018 int res1 = 0 ;
21019 PyObject *swig_obj[1] ;
21020
21021 if (!args) SWIG_fail;
21022 swig_obj[0] = args;
21023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21024 if (!SWIG_IsOK(res1)) {
21025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21026 }
21027 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21028 {
21029 PyThreadState* __tstate = wxPyBeginAllowThreads();
21030 {
21031 wxPrintData &_result_ref = (arg1)->GetPrintData();
21032 result = (wxPrintData *) &_result_ref;
21033 }
21034 wxPyEndAllowThreads(__tstate);
21035 if (PyErr_Occurred()) SWIG_fail;
21036 }
21037 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
21038 return resultobj;
21039 fail:
21040 return NULL;
21041 }
21042
21043
21044 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21045 PyObject *resultobj = 0;
21046 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21047 wxPrintData *arg2 = 0 ;
21048 void *argp1 = 0 ;
21049 int res1 = 0 ;
21050 void *argp2 = 0 ;
21051 int res2 = 0 ;
21052 PyObject * obj0 = 0 ;
21053 PyObject * obj1 = 0 ;
21054 char * kwnames[] = {
21055 (char *) "self",(char *) "data", NULL
21056 };
21057
21058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
21059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21060 if (!SWIG_IsOK(res1)) {
21061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21062 }
21063 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21064 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
21065 if (!SWIG_IsOK(res2)) {
21066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21067 }
21068 if (!argp2) {
21069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21070 }
21071 arg2 = reinterpret_cast< wxPrintData * >(argp2);
21072 {
21073 PyThreadState* __tstate = wxPyBeginAllowThreads();
21074 (arg1)->SetPrintData((wxPrintData const &)*arg2);
21075 wxPyEndAllowThreads(__tstate);
21076 if (PyErr_Occurred()) SWIG_fail;
21077 }
21078 resultobj = SWIG_Py_Void();
21079 return resultobj;
21080 fail:
21081 return NULL;
21082 }
21083
21084
21085 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21086 PyObject *resultobj = 0;
21087 int arg1 ;
21088 int val1 ;
21089 int ecode1 = 0 ;
21090 PyObject * obj0 = 0 ;
21091 char * kwnames[] = {
21092 (char *) "ppi", NULL
21093 };
21094
21095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
21096 ecode1 = SWIG_AsVal_int(obj0, &val1);
21097 if (!SWIG_IsOK(ecode1)) {
21098 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21099 }
21100 arg1 = static_cast< int >(val1);
21101 {
21102 PyThreadState* __tstate = wxPyBeginAllowThreads();
21103 wxPostScriptDC::SetResolution(arg1);
21104 wxPyEndAllowThreads(__tstate);
21105 if (PyErr_Occurred()) SWIG_fail;
21106 }
21107 resultobj = SWIG_Py_Void();
21108 return resultobj;
21109 fail:
21110 return NULL;
21111 }
21112
21113
21114 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21115 PyObject *resultobj = 0;
21116 int result;
21117
21118 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
21119 {
21120 PyThreadState* __tstate = wxPyBeginAllowThreads();
21121 result = (int)wxPostScriptDC::GetResolution();
21122 wxPyEndAllowThreads(__tstate);
21123 if (PyErr_Occurred()) SWIG_fail;
21124 }
21125 resultobj = SWIG_From_int(static_cast< int >(result));
21126 return resultobj;
21127 fail:
21128 return NULL;
21129 }
21130
21131
21132 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21133 PyObject *obj;
21134 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21135 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
21136 return SWIG_Py_Void();
21137 }
21138
21139 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21140 return SWIG_Python_InitShadowInstance(args);
21141 }
21142
21143 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21144 PyObject *resultobj = 0;
21145 wxString const &arg1_defvalue = wxPyEmptyString ;
21146 wxString *arg1 = (wxString *) &arg1_defvalue ;
21147 wxMetaFile *result = 0 ;
21148 bool temp1 = false ;
21149 PyObject * obj0 = 0 ;
21150 char * kwnames[] = {
21151 (char *) "filename", NULL
21152 };
21153
21154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
21155 if (obj0) {
21156 {
21157 arg1 = wxString_in_helper(obj0);
21158 if (arg1 == NULL) SWIG_fail;
21159 temp1 = true;
21160 }
21161 }
21162 {
21163 if (!wxPyCheckForApp()) SWIG_fail;
21164 PyThreadState* __tstate = wxPyBeginAllowThreads();
21165 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
21166 wxPyEndAllowThreads(__tstate);
21167 if (PyErr_Occurred()) SWIG_fail;
21168 }
21169 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
21170 {
21171 if (temp1)
21172 delete arg1;
21173 }
21174 return resultobj;
21175 fail:
21176 {
21177 if (temp1)
21178 delete arg1;
21179 }
21180 return NULL;
21181 }
21182
21183
21184 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21185 PyObject *resultobj = 0;
21186 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21187 void *argp1 = 0 ;
21188 int res1 = 0 ;
21189 PyObject *swig_obj[1] ;
21190
21191 if (!args) SWIG_fail;
21192 swig_obj[0] = args;
21193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
21194 if (!SWIG_IsOK(res1)) {
21195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21196 }
21197 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21198 {
21199 PyThreadState* __tstate = wxPyBeginAllowThreads();
21200 delete arg1;
21201
21202 wxPyEndAllowThreads(__tstate);
21203 if (PyErr_Occurred()) SWIG_fail;
21204 }
21205 resultobj = SWIG_Py_Void();
21206 return resultobj;
21207 fail:
21208 return NULL;
21209 }
21210
21211
21212 SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21213 PyObject *resultobj = 0;
21214 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21215 bool result;
21216 void *argp1 = 0 ;
21217 int res1 = 0 ;
21218 PyObject *swig_obj[1] ;
21219
21220 if (!args) SWIG_fail;
21221 swig_obj[0] = args;
21222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21223 if (!SWIG_IsOK(res1)) {
21224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21225 }
21226 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21227 {
21228 PyThreadState* __tstate = wxPyBeginAllowThreads();
21229 result = (bool)(arg1)->Ok();
21230 wxPyEndAllowThreads(__tstate);
21231 if (PyErr_Occurred()) SWIG_fail;
21232 }
21233 {
21234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21235 }
21236 return resultobj;
21237 fail:
21238 return NULL;
21239 }
21240
21241
21242 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21243 PyObject *resultobj = 0;
21244 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21245 int arg2 = (int) 0 ;
21246 int arg3 = (int) 0 ;
21247 bool result;
21248 void *argp1 = 0 ;
21249 int res1 = 0 ;
21250 int val2 ;
21251 int ecode2 = 0 ;
21252 int val3 ;
21253 int ecode3 = 0 ;
21254 PyObject * obj0 = 0 ;
21255 PyObject * obj1 = 0 ;
21256 PyObject * obj2 = 0 ;
21257 char * kwnames[] = {
21258 (char *) "self",(char *) "width",(char *) "height", NULL
21259 };
21260
21261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21263 if (!SWIG_IsOK(res1)) {
21264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21265 }
21266 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21267 if (obj1) {
21268 ecode2 = SWIG_AsVal_int(obj1, &val2);
21269 if (!SWIG_IsOK(ecode2)) {
21270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
21271 }
21272 arg2 = static_cast< int >(val2);
21273 }
21274 if (obj2) {
21275 ecode3 = SWIG_AsVal_int(obj2, &val3);
21276 if (!SWIG_IsOK(ecode3)) {
21277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
21278 }
21279 arg3 = static_cast< int >(val3);
21280 }
21281 {
21282 PyThreadState* __tstate = wxPyBeginAllowThreads();
21283 result = (bool)(arg1)->SetClipboard(arg2,arg3);
21284 wxPyEndAllowThreads(__tstate);
21285 if (PyErr_Occurred()) SWIG_fail;
21286 }
21287 {
21288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21289 }
21290 return resultobj;
21291 fail:
21292 return NULL;
21293 }
21294
21295
21296 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21297 PyObject *resultobj = 0;
21298 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21299 wxSize result;
21300 void *argp1 = 0 ;
21301 int res1 = 0 ;
21302 PyObject *swig_obj[1] ;
21303
21304 if (!args) SWIG_fail;
21305 swig_obj[0] = args;
21306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21307 if (!SWIG_IsOK(res1)) {
21308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21309 }
21310 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21311 {
21312 PyThreadState* __tstate = wxPyBeginAllowThreads();
21313 result = (arg1)->GetSize();
21314 wxPyEndAllowThreads(__tstate);
21315 if (PyErr_Occurred()) SWIG_fail;
21316 }
21317 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21318 return resultobj;
21319 fail:
21320 return NULL;
21321 }
21322
21323
21324 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21325 PyObject *resultobj = 0;
21326 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21327 int result;
21328 void *argp1 = 0 ;
21329 int res1 = 0 ;
21330 PyObject *swig_obj[1] ;
21331
21332 if (!args) SWIG_fail;
21333 swig_obj[0] = args;
21334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21335 if (!SWIG_IsOK(res1)) {
21336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21337 }
21338 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21339 {
21340 PyThreadState* __tstate = wxPyBeginAllowThreads();
21341 result = (int)(arg1)->GetWidth();
21342 wxPyEndAllowThreads(__tstate);
21343 if (PyErr_Occurred()) SWIG_fail;
21344 }
21345 resultobj = SWIG_From_int(static_cast< int >(result));
21346 return resultobj;
21347 fail:
21348 return NULL;
21349 }
21350
21351
21352 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21353 PyObject *resultobj = 0;
21354 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21355 int result;
21356 void *argp1 = 0 ;
21357 int res1 = 0 ;
21358 PyObject *swig_obj[1] ;
21359
21360 if (!args) SWIG_fail;
21361 swig_obj[0] = args;
21362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21363 if (!SWIG_IsOK(res1)) {
21364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21365 }
21366 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21367 {
21368 PyThreadState* __tstate = wxPyBeginAllowThreads();
21369 result = (int)(arg1)->GetHeight();
21370 wxPyEndAllowThreads(__tstate);
21371 if (PyErr_Occurred()) SWIG_fail;
21372 }
21373 resultobj = SWIG_From_int(static_cast< int >(result));
21374 return resultobj;
21375 fail:
21376 return NULL;
21377 }
21378
21379
21380 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21381 PyObject *obj;
21382 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21383 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
21384 return SWIG_Py_Void();
21385 }
21386
21387 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21388 return SWIG_Python_InitShadowInstance(args);
21389 }
21390
21391 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21392 PyObject *resultobj = 0;
21393 wxString const &arg1_defvalue = wxPyEmptyString ;
21394 wxString *arg1 = (wxString *) &arg1_defvalue ;
21395 int arg2 = (int) 0 ;
21396 int arg3 = (int) 0 ;
21397 wxString const &arg4_defvalue = wxPyEmptyString ;
21398 wxString *arg4 = (wxString *) &arg4_defvalue ;
21399 wxMetaFileDC *result = 0 ;
21400 bool temp1 = false ;
21401 int val2 ;
21402 int ecode2 = 0 ;
21403 int val3 ;
21404 int ecode3 = 0 ;
21405 bool temp4 = false ;
21406 PyObject * obj0 = 0 ;
21407 PyObject * obj1 = 0 ;
21408 PyObject * obj2 = 0 ;
21409 PyObject * obj3 = 0 ;
21410 char * kwnames[] = {
21411 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
21412 };
21413
21414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21415 if (obj0) {
21416 {
21417 arg1 = wxString_in_helper(obj0);
21418 if (arg1 == NULL) SWIG_fail;
21419 temp1 = true;
21420 }
21421 }
21422 if (obj1) {
21423 ecode2 = SWIG_AsVal_int(obj1, &val2);
21424 if (!SWIG_IsOK(ecode2)) {
21425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
21426 }
21427 arg2 = static_cast< int >(val2);
21428 }
21429 if (obj2) {
21430 ecode3 = SWIG_AsVal_int(obj2, &val3);
21431 if (!SWIG_IsOK(ecode3)) {
21432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
21433 }
21434 arg3 = static_cast< int >(val3);
21435 }
21436 if (obj3) {
21437 {
21438 arg4 = wxString_in_helper(obj3);
21439 if (arg4 == NULL) SWIG_fail;
21440 temp4 = true;
21441 }
21442 }
21443 {
21444 if (!wxPyCheckForApp()) SWIG_fail;
21445 PyThreadState* __tstate = wxPyBeginAllowThreads();
21446 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
21447 wxPyEndAllowThreads(__tstate);
21448 if (PyErr_Occurred()) SWIG_fail;
21449 }
21450 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
21451 {
21452 if (temp1)
21453 delete arg1;
21454 }
21455 {
21456 if (temp4)
21457 delete arg4;
21458 }
21459 return resultobj;
21460 fail:
21461 {
21462 if (temp1)
21463 delete arg1;
21464 }
21465 {
21466 if (temp4)
21467 delete arg4;
21468 }
21469 return NULL;
21470 }
21471
21472
21473 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21474 PyObject *resultobj = 0;
21475 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
21476 wxMetaFile *result = 0 ;
21477 void *argp1 = 0 ;
21478 int res1 = 0 ;
21479 PyObject *swig_obj[1] ;
21480
21481 if (!args) SWIG_fail;
21482 swig_obj[0] = args;
21483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
21484 if (!SWIG_IsOK(res1)) {
21485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
21486 }
21487 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
21488 {
21489 PyThreadState* __tstate = wxPyBeginAllowThreads();
21490 result = (wxMetaFile *)(arg1)->Close();
21491 wxPyEndAllowThreads(__tstate);
21492 if (PyErr_Occurred()) SWIG_fail;
21493 }
21494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
21495 return resultobj;
21496 fail:
21497 return NULL;
21498 }
21499
21500
21501 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21502 PyObject *obj;
21503 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21504 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
21505 return SWIG_Py_Void();
21506 }
21507
21508 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21509 return SWIG_Python_InitShadowInstance(args);
21510 }
21511
21512 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21513 PyObject *resultobj = 0;
21514 wxPrintData *arg1 = 0 ;
21515 wxPrinterDC *result = 0 ;
21516 void *argp1 = 0 ;
21517 int res1 = 0 ;
21518 PyObject * obj0 = 0 ;
21519 char * kwnames[] = {
21520 (char *) "printData", NULL
21521 };
21522
21523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
21524 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21525 if (!SWIG_IsOK(res1)) {
21526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21527 }
21528 if (!argp1) {
21529 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21530 }
21531 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21532 {
21533 if (!wxPyCheckForApp()) SWIG_fail;
21534 PyThreadState* __tstate = wxPyBeginAllowThreads();
21535 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
21536 wxPyEndAllowThreads(__tstate);
21537 if (PyErr_Occurred()) SWIG_fail;
21538 }
21539 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
21540 return resultobj;
21541 fail:
21542 return NULL;
21543 }
21544
21545
21546 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21547 PyObject *obj;
21548 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21549 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
21550 return SWIG_Py_Void();
21551 }
21552
21553 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21554 return SWIG_Python_InitShadowInstance(args);
21555 }
21556
21557 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21558 PyObject *resultobj = 0;
21559 int arg1 ;
21560 int arg2 ;
21561 int arg3 = (int) true ;
21562 int arg4 = (int) 1 ;
21563 wxImageList *result = 0 ;
21564 int val1 ;
21565 int ecode1 = 0 ;
21566 int val2 ;
21567 int ecode2 = 0 ;
21568 int val3 ;
21569 int ecode3 = 0 ;
21570 int val4 ;
21571 int ecode4 = 0 ;
21572 PyObject * obj0 = 0 ;
21573 PyObject * obj1 = 0 ;
21574 PyObject * obj2 = 0 ;
21575 PyObject * obj3 = 0 ;
21576 char * kwnames[] = {
21577 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
21578 };
21579
21580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21581 ecode1 = SWIG_AsVal_int(obj0, &val1);
21582 if (!SWIG_IsOK(ecode1)) {
21583 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
21584 }
21585 arg1 = static_cast< int >(val1);
21586 ecode2 = SWIG_AsVal_int(obj1, &val2);
21587 if (!SWIG_IsOK(ecode2)) {
21588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
21589 }
21590 arg2 = static_cast< int >(val2);
21591 if (obj2) {
21592 ecode3 = SWIG_AsVal_int(obj2, &val3);
21593 if (!SWIG_IsOK(ecode3)) {
21594 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
21595 }
21596 arg3 = static_cast< int >(val3);
21597 }
21598 if (obj3) {
21599 ecode4 = SWIG_AsVal_int(obj3, &val4);
21600 if (!SWIG_IsOK(ecode4)) {
21601 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
21602 }
21603 arg4 = static_cast< int >(val4);
21604 }
21605 {
21606 if (!wxPyCheckForApp()) SWIG_fail;
21607 PyThreadState* __tstate = wxPyBeginAllowThreads();
21608 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
21609 wxPyEndAllowThreads(__tstate);
21610 if (PyErr_Occurred()) SWIG_fail;
21611 }
21612 {
21613 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
21614 }
21615 return resultobj;
21616 fail:
21617 return NULL;
21618 }
21619
21620
21621 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21622 PyObject *resultobj = 0;
21623 wxImageList *arg1 = (wxImageList *) 0 ;
21624 void *argp1 = 0 ;
21625 int res1 = 0 ;
21626 PyObject *swig_obj[1] ;
21627
21628 if (!args) SWIG_fail;
21629 swig_obj[0] = args;
21630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
21631 if (!SWIG_IsOK(res1)) {
21632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
21633 }
21634 arg1 = reinterpret_cast< wxImageList * >(argp1);
21635 {
21636 PyThreadState* __tstate = wxPyBeginAllowThreads();
21637 delete arg1;
21638
21639 wxPyEndAllowThreads(__tstate);
21640 if (PyErr_Occurred()) SWIG_fail;
21641 }
21642 resultobj = SWIG_Py_Void();
21643 return resultobj;
21644 fail:
21645 return NULL;
21646 }
21647
21648
21649 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21650 PyObject *resultobj = 0;
21651 wxImageList *arg1 = (wxImageList *) 0 ;
21652 wxBitmap *arg2 = 0 ;
21653 wxBitmap const &arg3_defvalue = wxNullBitmap ;
21654 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
21655 int result;
21656 void *argp1 = 0 ;
21657 int res1 = 0 ;
21658 void *argp2 = 0 ;
21659 int res2 = 0 ;
21660 void *argp3 = 0 ;
21661 int res3 = 0 ;
21662 PyObject * obj0 = 0 ;
21663 PyObject * obj1 = 0 ;
21664 PyObject * obj2 = 0 ;
21665 char * kwnames[] = {
21666 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
21667 };
21668
21669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21671 if (!SWIG_IsOK(res1)) {
21672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
21673 }
21674 arg1 = reinterpret_cast< wxImageList * >(argp1);
21675 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21676 if (!SWIG_IsOK(res2)) {
21677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21678 }
21679 if (!argp2) {
21680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21681 }
21682 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21683 if (obj2) {
21684 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21685 if (!SWIG_IsOK(res3)) {
21686 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21687 }
21688 if (!argp3) {
21689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21690 }
21691 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21692 }
21693 {
21694 PyThreadState* __tstate = wxPyBeginAllowThreads();
21695 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
21696 wxPyEndAllowThreads(__tstate);
21697 if (PyErr_Occurred()) SWIG_fail;
21698 }
21699 resultobj = SWIG_From_int(static_cast< int >(result));
21700 return resultobj;
21701 fail:
21702 return NULL;
21703 }
21704
21705
21706 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21707 PyObject *resultobj = 0;
21708 wxImageList *arg1 = (wxImageList *) 0 ;
21709 wxBitmap *arg2 = 0 ;
21710 wxColour *arg3 = 0 ;
21711 int result;
21712 void *argp1 = 0 ;
21713 int res1 = 0 ;
21714 void *argp2 = 0 ;
21715 int res2 = 0 ;
21716 wxColour temp3 ;
21717 PyObject * obj0 = 0 ;
21718 PyObject * obj1 = 0 ;
21719 PyObject * obj2 = 0 ;
21720 char * kwnames[] = {
21721 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
21722 };
21723
21724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21726 if (!SWIG_IsOK(res1)) {
21727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
21728 }
21729 arg1 = reinterpret_cast< wxImageList * >(argp1);
21730 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21731 if (!SWIG_IsOK(res2)) {
21732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21733 }
21734 if (!argp2) {
21735 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21736 }
21737 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21738 {
21739 arg3 = &temp3;
21740 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
21741 }
21742 {
21743 PyThreadState* __tstate = wxPyBeginAllowThreads();
21744 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
21745 wxPyEndAllowThreads(__tstate);
21746 if (PyErr_Occurred()) SWIG_fail;
21747 }
21748 resultobj = SWIG_From_int(static_cast< int >(result));
21749 return resultobj;
21750 fail:
21751 return NULL;
21752 }
21753
21754
21755 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21756 PyObject *resultobj = 0;
21757 wxImageList *arg1 = (wxImageList *) 0 ;
21758 wxIcon *arg2 = 0 ;
21759 int result;
21760 void *argp1 = 0 ;
21761 int res1 = 0 ;
21762 void *argp2 = 0 ;
21763 int res2 = 0 ;
21764 PyObject * obj0 = 0 ;
21765 PyObject * obj1 = 0 ;
21766 char * kwnames[] = {
21767 (char *) "self",(char *) "icon", NULL
21768 };
21769
21770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21772 if (!SWIG_IsOK(res1)) {
21773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
21774 }
21775 arg1 = reinterpret_cast< wxImageList * >(argp1);
21776 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
21777 if (!SWIG_IsOK(res2)) {
21778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21779 }
21780 if (!argp2) {
21781 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21782 }
21783 arg2 = reinterpret_cast< wxIcon * >(argp2);
21784 {
21785 PyThreadState* __tstate = wxPyBeginAllowThreads();
21786 result = (int)(arg1)->Add((wxIcon const &)*arg2);
21787 wxPyEndAllowThreads(__tstate);
21788 if (PyErr_Occurred()) SWIG_fail;
21789 }
21790 resultobj = SWIG_From_int(static_cast< int >(result));
21791 return resultobj;
21792 fail:
21793 return NULL;
21794 }
21795
21796
21797 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21798 PyObject *resultobj = 0;
21799 wxImageList *arg1 = (wxImageList *) 0 ;
21800 int arg2 ;
21801 SwigValueWrapper<wxBitmap > result;
21802 void *argp1 = 0 ;
21803 int res1 = 0 ;
21804 int val2 ;
21805 int ecode2 = 0 ;
21806 PyObject * obj0 = 0 ;
21807 PyObject * obj1 = 0 ;
21808 char * kwnames[] = {
21809 (char *) "self",(char *) "index", NULL
21810 };
21811
21812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
21813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21814 if (!SWIG_IsOK(res1)) {
21815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
21816 }
21817 arg1 = reinterpret_cast< wxImageList * >(argp1);
21818 ecode2 = SWIG_AsVal_int(obj1, &val2);
21819 if (!SWIG_IsOK(ecode2)) {
21820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
21821 }
21822 arg2 = static_cast< int >(val2);
21823 {
21824 PyThreadState* __tstate = wxPyBeginAllowThreads();
21825 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
21826 wxPyEndAllowThreads(__tstate);
21827 if (PyErr_Occurred()) SWIG_fail;
21828 }
21829 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
21830 return resultobj;
21831 fail:
21832 return NULL;
21833 }
21834
21835
21836 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21837 PyObject *resultobj = 0;
21838 wxImageList *arg1 = (wxImageList *) 0 ;
21839 int arg2 ;
21840 wxIcon result;
21841 void *argp1 = 0 ;
21842 int res1 = 0 ;
21843 int val2 ;
21844 int ecode2 = 0 ;
21845 PyObject * obj0 = 0 ;
21846 PyObject * obj1 = 0 ;
21847 char * kwnames[] = {
21848 (char *) "self",(char *) "index", NULL
21849 };
21850
21851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21853 if (!SWIG_IsOK(res1)) {
21854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
21855 }
21856 arg1 = reinterpret_cast< wxImageList * >(argp1);
21857 ecode2 = SWIG_AsVal_int(obj1, &val2);
21858 if (!SWIG_IsOK(ecode2)) {
21859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
21860 }
21861 arg2 = static_cast< int >(val2);
21862 {
21863 PyThreadState* __tstate = wxPyBeginAllowThreads();
21864 result = ((wxImageList const *)arg1)->GetIcon(arg2);
21865 wxPyEndAllowThreads(__tstate);
21866 if (PyErr_Occurred()) SWIG_fail;
21867 }
21868 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
21869 return resultobj;
21870 fail:
21871 return NULL;
21872 }
21873
21874
21875 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21876 PyObject *resultobj = 0;
21877 wxImageList *arg1 = (wxImageList *) 0 ;
21878 int arg2 ;
21879 wxBitmap *arg3 = 0 ;
21880 wxBitmap const &arg4_defvalue = wxNullBitmap ;
21881 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
21882 bool result;
21883 void *argp1 = 0 ;
21884 int res1 = 0 ;
21885 int val2 ;
21886 int ecode2 = 0 ;
21887 void *argp3 = 0 ;
21888 int res3 = 0 ;
21889 void *argp4 = 0 ;
21890 int res4 = 0 ;
21891 PyObject * obj0 = 0 ;
21892 PyObject * obj1 = 0 ;
21893 PyObject * obj2 = 0 ;
21894 PyObject * obj3 = 0 ;
21895 char * kwnames[] = {
21896 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
21897 };
21898
21899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21901 if (!SWIG_IsOK(res1)) {
21902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
21903 }
21904 arg1 = reinterpret_cast< wxImageList * >(argp1);
21905 ecode2 = SWIG_AsVal_int(obj1, &val2);
21906 if (!SWIG_IsOK(ecode2)) {
21907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
21908 }
21909 arg2 = static_cast< int >(val2);
21910 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21911 if (!SWIG_IsOK(res3)) {
21912 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21913 }
21914 if (!argp3) {
21915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21916 }
21917 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21918 if (obj3) {
21919 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
21920 if (!SWIG_IsOK(res4)) {
21921 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
21922 }
21923 if (!argp4) {
21924 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
21925 }
21926 arg4 = reinterpret_cast< wxBitmap * >(argp4);
21927 }
21928 {
21929 PyThreadState* __tstate = wxPyBeginAllowThreads();
21930 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
21931 wxPyEndAllowThreads(__tstate);
21932 if (PyErr_Occurred()) SWIG_fail;
21933 }
21934 {
21935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21936 }
21937 return resultobj;
21938 fail:
21939 return NULL;
21940 }
21941
21942
21943 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21944 PyObject *resultobj = 0;
21945 wxImageList *arg1 = (wxImageList *) 0 ;
21946 int arg2 ;
21947 wxDC *arg3 = 0 ;
21948 int arg4 ;
21949 int arg5 ;
21950 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
21951 bool arg7 = (bool) (bool)false ;
21952 bool result;
21953 void *argp1 = 0 ;
21954 int res1 = 0 ;
21955 int val2 ;
21956 int ecode2 = 0 ;
21957 void *argp3 = 0 ;
21958 int res3 = 0 ;
21959 int val4 ;
21960 int ecode4 = 0 ;
21961 int val5 ;
21962 int ecode5 = 0 ;
21963 int val6 ;
21964 int ecode6 = 0 ;
21965 bool val7 ;
21966 int ecode7 = 0 ;
21967 PyObject * obj0 = 0 ;
21968 PyObject * obj1 = 0 ;
21969 PyObject * obj2 = 0 ;
21970 PyObject * obj3 = 0 ;
21971 PyObject * obj4 = 0 ;
21972 PyObject * obj5 = 0 ;
21973 PyObject * obj6 = 0 ;
21974 char * kwnames[] = {
21975 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
21976 };
21977
21978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21980 if (!SWIG_IsOK(res1)) {
21981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
21982 }
21983 arg1 = reinterpret_cast< wxImageList * >(argp1);
21984 ecode2 = SWIG_AsVal_int(obj1, &val2);
21985 if (!SWIG_IsOK(ecode2)) {
21986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
21987 }
21988 arg2 = static_cast< int >(val2);
21989 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
21990 if (!SWIG_IsOK(res3)) {
21991 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21992 }
21993 if (!argp3) {
21994 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21995 }
21996 arg3 = reinterpret_cast< wxDC * >(argp3);
21997 ecode4 = SWIG_AsVal_int(obj3, &val4);
21998 if (!SWIG_IsOK(ecode4)) {
21999 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
22000 }
22001 arg4 = static_cast< int >(val4);
22002 ecode5 = SWIG_AsVal_int(obj4, &val5);
22003 if (!SWIG_IsOK(ecode5)) {
22004 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
22005 }
22006 arg5 = static_cast< int >(val5);
22007 if (obj5) {
22008 ecode6 = SWIG_AsVal_int(obj5, &val6);
22009 if (!SWIG_IsOK(ecode6)) {
22010 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
22011 }
22012 arg6 = static_cast< int >(val6);
22013 }
22014 if (obj6) {
22015 ecode7 = SWIG_AsVal_bool(obj6, &val7);
22016 if (!SWIG_IsOK(ecode7)) {
22017 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
22018 }
22019 arg7 = static_cast< bool >(val7);
22020 }
22021 {
22022 PyThreadState* __tstate = wxPyBeginAllowThreads();
22023 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
22024 wxPyEndAllowThreads(__tstate);
22025 if (PyErr_Occurred()) SWIG_fail;
22026 }
22027 {
22028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22029 }
22030 return resultobj;
22031 fail:
22032 return NULL;
22033 }
22034
22035
22036 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22037 PyObject *resultobj = 0;
22038 wxImageList *arg1 = (wxImageList *) 0 ;
22039 int result;
22040 void *argp1 = 0 ;
22041 int res1 = 0 ;
22042 PyObject *swig_obj[1] ;
22043
22044 if (!args) SWIG_fail;
22045 swig_obj[0] = args;
22046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22047 if (!SWIG_IsOK(res1)) {
22048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
22049 }
22050 arg1 = reinterpret_cast< wxImageList * >(argp1);
22051 {
22052 PyThreadState* __tstate = wxPyBeginAllowThreads();
22053 result = (int)(arg1)->GetImageCount();
22054 wxPyEndAllowThreads(__tstate);
22055 if (PyErr_Occurred()) SWIG_fail;
22056 }
22057 resultobj = SWIG_From_int(static_cast< int >(result));
22058 return resultobj;
22059 fail:
22060 return NULL;
22061 }
22062
22063
22064 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22065 PyObject *resultobj = 0;
22066 wxImageList *arg1 = (wxImageList *) 0 ;
22067 int arg2 ;
22068 bool result;
22069 void *argp1 = 0 ;
22070 int res1 = 0 ;
22071 int val2 ;
22072 int ecode2 = 0 ;
22073 PyObject * obj0 = 0 ;
22074 PyObject * obj1 = 0 ;
22075 char * kwnames[] = {
22076 (char *) "self",(char *) "index", NULL
22077 };
22078
22079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
22080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22081 if (!SWIG_IsOK(res1)) {
22082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
22083 }
22084 arg1 = reinterpret_cast< wxImageList * >(argp1);
22085 ecode2 = SWIG_AsVal_int(obj1, &val2);
22086 if (!SWIG_IsOK(ecode2)) {
22087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
22088 }
22089 arg2 = static_cast< int >(val2);
22090 {
22091 PyThreadState* __tstate = wxPyBeginAllowThreads();
22092 result = (bool)(arg1)->Remove(arg2);
22093 wxPyEndAllowThreads(__tstate);
22094 if (PyErr_Occurred()) SWIG_fail;
22095 }
22096 {
22097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22098 }
22099 return resultobj;
22100 fail:
22101 return NULL;
22102 }
22103
22104
22105 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22106 PyObject *resultobj = 0;
22107 wxImageList *arg1 = (wxImageList *) 0 ;
22108 bool result;
22109 void *argp1 = 0 ;
22110 int res1 = 0 ;
22111 PyObject *swig_obj[1] ;
22112
22113 if (!args) SWIG_fail;
22114 swig_obj[0] = args;
22115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22116 if (!SWIG_IsOK(res1)) {
22117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
22118 }
22119 arg1 = reinterpret_cast< wxImageList * >(argp1);
22120 {
22121 PyThreadState* __tstate = wxPyBeginAllowThreads();
22122 result = (bool)(arg1)->RemoveAll();
22123 wxPyEndAllowThreads(__tstate);
22124 if (PyErr_Occurred()) SWIG_fail;
22125 }
22126 {
22127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22128 }
22129 return resultobj;
22130 fail:
22131 return NULL;
22132 }
22133
22134
22135 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22136 PyObject *resultobj = 0;
22137 wxImageList *arg1 = (wxImageList *) 0 ;
22138 int arg2 ;
22139 int *arg3 = 0 ;
22140 int *arg4 = 0 ;
22141 void *argp1 = 0 ;
22142 int res1 = 0 ;
22143 int val2 ;
22144 int ecode2 = 0 ;
22145 int temp3 ;
22146 int res3 = SWIG_TMPOBJ ;
22147 int temp4 ;
22148 int res4 = SWIG_TMPOBJ ;
22149 PyObject * obj0 = 0 ;
22150 PyObject * obj1 = 0 ;
22151 char * kwnames[] = {
22152 (char *) "self",(char *) "index", NULL
22153 };
22154
22155 arg3 = &temp3;
22156 arg4 = &temp4;
22157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
22158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22159 if (!SWIG_IsOK(res1)) {
22160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
22161 }
22162 arg1 = reinterpret_cast< wxImageList * >(argp1);
22163 ecode2 = SWIG_AsVal_int(obj1, &val2);
22164 if (!SWIG_IsOK(ecode2)) {
22165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
22166 }
22167 arg2 = static_cast< int >(val2);
22168 {
22169 PyThreadState* __tstate = wxPyBeginAllowThreads();
22170 (arg1)->GetSize(arg2,*arg3,*arg4);
22171 wxPyEndAllowThreads(__tstate);
22172 if (PyErr_Occurred()) SWIG_fail;
22173 }
22174 resultobj = SWIG_Py_Void();
22175 if (SWIG_IsTmpObj(res3)) {
22176 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22177 } else {
22178 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22179 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22180 }
22181 if (SWIG_IsTmpObj(res4)) {
22182 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22183 } else {
22184 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22185 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22186 }
22187 return resultobj;
22188 fail:
22189 return NULL;
22190 }
22191
22192
22193 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22194 PyObject *obj;
22195 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22196 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
22197 return SWIG_Py_Void();
22198 }
22199
22200 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22201 return SWIG_Python_InitShadowInstance(args);
22202 }
22203
22204 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22205 PyObject *resultobj = 0;
22206 wxStockGDI *result = 0 ;
22207
22208 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
22209 {
22210 PyThreadState* __tstate = wxPyBeginAllowThreads();
22211 result = (wxStockGDI *)new wxStockGDI();
22212 wxPyEndAllowThreads(__tstate);
22213 if (PyErr_Occurred()) SWIG_fail;
22214 }
22215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
22216 return resultobj;
22217 fail:
22218 return NULL;
22219 }
22220
22221
22222 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22223 PyObject *resultobj = 0;
22224 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22225 void *argp1 = 0 ;
22226 int res1 = 0 ;
22227 PyObject *swig_obj[1] ;
22228
22229 if (!args) SWIG_fail;
22230 swig_obj[0] = args;
22231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
22232 if (!SWIG_IsOK(res1)) {
22233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22234 }
22235 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22236 {
22237 PyThreadState* __tstate = wxPyBeginAllowThreads();
22238 delete arg1;
22239
22240 wxPyEndAllowThreads(__tstate);
22241 if (PyErr_Occurred()) SWIG_fail;
22242 }
22243 resultobj = SWIG_Py_Void();
22244 return resultobj;
22245 fail:
22246 return NULL;
22247 }
22248
22249
22250 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22251 PyObject *resultobj = 0;
22252
22253 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
22254 {
22255 PyThreadState* __tstate = wxPyBeginAllowThreads();
22256 wxStockGDI::DeleteAll();
22257 wxPyEndAllowThreads(__tstate);
22258 if (PyErr_Occurred()) SWIG_fail;
22259 }
22260 resultobj = SWIG_Py_Void();
22261 return resultobj;
22262 fail:
22263 return NULL;
22264 }
22265
22266
22267 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22268 PyObject *resultobj = 0;
22269 wxStockGDI *result = 0 ;
22270
22271 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
22272 {
22273 PyThreadState* __tstate = wxPyBeginAllowThreads();
22274 {
22275 wxStockGDI &_result_ref = wxStockGDI::instance();
22276 result = (wxStockGDI *) &_result_ref;
22277 }
22278 wxPyEndAllowThreads(__tstate);
22279 if (PyErr_Occurred()) SWIG_fail;
22280 }
22281 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
22282 return resultobj;
22283 fail:
22284 return NULL;
22285 }
22286
22287
22288 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22289 PyObject *resultobj = 0;
22290 wxStockGDI::Item arg1 ;
22291 wxBrush *result = 0 ;
22292 int val1 ;
22293 int ecode1 = 0 ;
22294 PyObject * obj0 = 0 ;
22295 char * kwnames[] = {
22296 (char *) "item", NULL
22297 };
22298
22299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
22300 ecode1 = SWIG_AsVal_int(obj0, &val1);
22301 if (!SWIG_IsOK(ecode1)) {
22302 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22303 }
22304 arg1 = static_cast< wxStockGDI::Item >(val1);
22305 {
22306 PyThreadState* __tstate = wxPyBeginAllowThreads();
22307 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
22308 wxPyEndAllowThreads(__tstate);
22309 if (PyErr_Occurred()) SWIG_fail;
22310 }
22311 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22312 return resultobj;
22313 fail:
22314 return NULL;
22315 }
22316
22317
22318 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22319 PyObject *resultobj = 0;
22320 wxStockGDI::Item arg1 ;
22321 wxColour *result = 0 ;
22322 int val1 ;
22323 int ecode1 = 0 ;
22324 PyObject * obj0 = 0 ;
22325 char * kwnames[] = {
22326 (char *) "item", NULL
22327 };
22328
22329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
22330 ecode1 = SWIG_AsVal_int(obj0, &val1);
22331 if (!SWIG_IsOK(ecode1)) {
22332 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22333 }
22334 arg1 = static_cast< wxStockGDI::Item >(val1);
22335 {
22336 PyThreadState* __tstate = wxPyBeginAllowThreads();
22337 result = (wxColour *)wxStockGDI::GetColour(arg1);
22338 wxPyEndAllowThreads(__tstate);
22339 if (PyErr_Occurred()) SWIG_fail;
22340 }
22341 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22342 return resultobj;
22343 fail:
22344 return NULL;
22345 }
22346
22347
22348 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22349 PyObject *resultobj = 0;
22350 wxStockGDI::Item arg1 ;
22351 wxCursor *result = 0 ;
22352 int val1 ;
22353 int ecode1 = 0 ;
22354 PyObject * obj0 = 0 ;
22355 char * kwnames[] = {
22356 (char *) "item", NULL
22357 };
22358
22359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
22360 ecode1 = SWIG_AsVal_int(obj0, &val1);
22361 if (!SWIG_IsOK(ecode1)) {
22362 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22363 }
22364 arg1 = static_cast< wxStockGDI::Item >(val1);
22365 {
22366 PyThreadState* __tstate = wxPyBeginAllowThreads();
22367 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
22368 wxPyEndAllowThreads(__tstate);
22369 if (PyErr_Occurred()) SWIG_fail;
22370 }
22371 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
22372 return resultobj;
22373 fail:
22374 return NULL;
22375 }
22376
22377
22378 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22379 PyObject *resultobj = 0;
22380 wxStockGDI::Item arg1 ;
22381 wxPen *result = 0 ;
22382 int val1 ;
22383 int ecode1 = 0 ;
22384 PyObject * obj0 = 0 ;
22385 char * kwnames[] = {
22386 (char *) "item", NULL
22387 };
22388
22389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
22390 ecode1 = SWIG_AsVal_int(obj0, &val1);
22391 if (!SWIG_IsOK(ecode1)) {
22392 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22393 }
22394 arg1 = static_cast< wxStockGDI::Item >(val1);
22395 {
22396 PyThreadState* __tstate = wxPyBeginAllowThreads();
22397 result = (wxPen *)wxStockGDI::GetPen(arg1);
22398 wxPyEndAllowThreads(__tstate);
22399 if (PyErr_Occurred()) SWIG_fail;
22400 }
22401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22402 return resultobj;
22403 fail:
22404 return NULL;
22405 }
22406
22407
22408 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22409 PyObject *resultobj = 0;
22410 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22411 wxStockGDI::Item arg2 ;
22412 wxFont *result = 0 ;
22413 void *argp1 = 0 ;
22414 int res1 = 0 ;
22415 int val2 ;
22416 int ecode2 = 0 ;
22417 PyObject * obj0 = 0 ;
22418 PyObject * obj1 = 0 ;
22419 char * kwnames[] = {
22420 (char *) "self",(char *) "item", NULL
22421 };
22422
22423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
22424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
22425 if (!SWIG_IsOK(res1)) {
22426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22427 }
22428 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22429 ecode2 = SWIG_AsVal_int(obj1, &val2);
22430 if (!SWIG_IsOK(ecode2)) {
22431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
22432 }
22433 arg2 = static_cast< wxStockGDI::Item >(val2);
22434 {
22435 PyThreadState* __tstate = wxPyBeginAllowThreads();
22436 result = (wxFont *)(arg1)->GetFont(arg2);
22437 wxPyEndAllowThreads(__tstate);
22438 if (PyErr_Occurred()) SWIG_fail;
22439 }
22440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22441 return resultobj;
22442 fail:
22443 return NULL;
22444 }
22445
22446
22447 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22448 PyObject *obj;
22449 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22450 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
22451 return SWIG_Py_Void();
22452 }
22453
22454 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22455 return SWIG_Python_InitShadowInstance(args);
22456 }
22457
22458 SWIGINTERN int NullBitmap_set(PyObject *) {
22459 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
22460 return 1;
22461 }
22462
22463
22464 SWIGINTERN PyObject *NullBitmap_get(void) {
22465 PyObject *pyobj = 0;
22466
22467 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
22468 return pyobj;
22469 }
22470
22471
22472 SWIGINTERN int NullIcon_set(PyObject *) {
22473 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
22474 return 1;
22475 }
22476
22477
22478 SWIGINTERN PyObject *NullIcon_get(void) {
22479 PyObject *pyobj = 0;
22480
22481 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
22482 return pyobj;
22483 }
22484
22485
22486 SWIGINTERN int NullCursor_set(PyObject *) {
22487 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
22488 return 1;
22489 }
22490
22491
22492 SWIGINTERN PyObject *NullCursor_get(void) {
22493 PyObject *pyobj = 0;
22494
22495 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
22496 return pyobj;
22497 }
22498
22499
22500 SWIGINTERN int NullPen_set(PyObject *) {
22501 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
22502 return 1;
22503 }
22504
22505
22506 SWIGINTERN PyObject *NullPen_get(void) {
22507 PyObject *pyobj = 0;
22508
22509 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
22510 return pyobj;
22511 }
22512
22513
22514 SWIGINTERN int NullBrush_set(PyObject *) {
22515 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
22516 return 1;
22517 }
22518
22519
22520 SWIGINTERN PyObject *NullBrush_get(void) {
22521 PyObject *pyobj = 0;
22522
22523 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
22524 return pyobj;
22525 }
22526
22527
22528 SWIGINTERN int NullPalette_set(PyObject *) {
22529 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
22530 return 1;
22531 }
22532
22533
22534 SWIGINTERN PyObject *NullPalette_get(void) {
22535 PyObject *pyobj = 0;
22536
22537 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
22538 return pyobj;
22539 }
22540
22541
22542 SWIGINTERN int NullFont_set(PyObject *) {
22543 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
22544 return 1;
22545 }
22546
22547
22548 SWIGINTERN PyObject *NullFont_get(void) {
22549 PyObject *pyobj = 0;
22550
22551 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
22552 return pyobj;
22553 }
22554
22555
22556 SWIGINTERN int NullColour_set(PyObject *) {
22557 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
22558 return 1;
22559 }
22560
22561
22562 SWIGINTERN PyObject *NullColour_get(void) {
22563 PyObject *pyobj = 0;
22564
22565 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
22566 return pyobj;
22567 }
22568
22569
22570 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22571 PyObject *resultobj = 0;
22572 wxGDIObjListBase *result = 0 ;
22573
22574 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
22575 {
22576 PyThreadState* __tstate = wxPyBeginAllowThreads();
22577 result = (wxGDIObjListBase *)new wxGDIObjListBase();
22578 wxPyEndAllowThreads(__tstate);
22579 if (PyErr_Occurred()) SWIG_fail;
22580 }
22581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
22582 return resultobj;
22583 fail:
22584 return NULL;
22585 }
22586
22587
22588 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22589 PyObject *resultobj = 0;
22590 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
22591 void *argp1 = 0 ;
22592 int res1 = 0 ;
22593 PyObject *swig_obj[1] ;
22594
22595 if (!args) SWIG_fail;
22596 swig_obj[0] = args;
22597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
22598 if (!SWIG_IsOK(res1)) {
22599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
22600 }
22601 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
22602 {
22603 PyThreadState* __tstate = wxPyBeginAllowThreads();
22604 delete arg1;
22605
22606 wxPyEndAllowThreads(__tstate);
22607 if (PyErr_Occurred()) SWIG_fail;
22608 }
22609 resultobj = SWIG_Py_Void();
22610 return resultobj;
22611 fail:
22612 return NULL;
22613 }
22614
22615
22616 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22617 PyObject *obj;
22618 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22619 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
22620 return SWIG_Py_Void();
22621 }
22622
22623 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22624 return SWIG_Python_InitShadowInstance(args);
22625 }
22626
22627 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22628 PyObject *resultobj = 0;
22629 wxPenList *arg1 = (wxPenList *) 0 ;
22630 wxColour *arg2 = 0 ;
22631 int arg3 ;
22632 int arg4 ;
22633 wxPen *result = 0 ;
22634 void *argp1 = 0 ;
22635 int res1 = 0 ;
22636 wxColour temp2 ;
22637 int val3 ;
22638 int ecode3 = 0 ;
22639 int val4 ;
22640 int ecode4 = 0 ;
22641 PyObject * obj0 = 0 ;
22642 PyObject * obj1 = 0 ;
22643 PyObject * obj2 = 0 ;
22644 PyObject * obj3 = 0 ;
22645 char * kwnames[] = {
22646 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
22647 };
22648
22649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22651 if (!SWIG_IsOK(res1)) {
22652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22653 }
22654 arg1 = reinterpret_cast< wxPenList * >(argp1);
22655 {
22656 arg2 = &temp2;
22657 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22658 }
22659 ecode3 = SWIG_AsVal_int(obj2, &val3);
22660 if (!SWIG_IsOK(ecode3)) {
22661 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
22662 }
22663 arg3 = static_cast< int >(val3);
22664 ecode4 = SWIG_AsVal_int(obj3, &val4);
22665 if (!SWIG_IsOK(ecode4)) {
22666 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
22667 }
22668 arg4 = static_cast< int >(val4);
22669 {
22670 PyThreadState* __tstate = wxPyBeginAllowThreads();
22671 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
22672 wxPyEndAllowThreads(__tstate);
22673 if (PyErr_Occurred()) SWIG_fail;
22674 }
22675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22676 return resultobj;
22677 fail:
22678 return NULL;
22679 }
22680
22681
22682 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22683 PyObject *resultobj = 0;
22684 wxPenList *arg1 = (wxPenList *) 0 ;
22685 wxPen *arg2 = (wxPen *) 0 ;
22686 void *argp1 = 0 ;
22687 int res1 = 0 ;
22688 void *argp2 = 0 ;
22689 int res2 = 0 ;
22690 PyObject * obj0 = 0 ;
22691 PyObject * obj1 = 0 ;
22692 char * kwnames[] = {
22693 (char *) "self",(char *) "pen", NULL
22694 };
22695
22696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
22697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22698 if (!SWIG_IsOK(res1)) {
22699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
22700 }
22701 arg1 = reinterpret_cast< wxPenList * >(argp1);
22702 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22703 if (!SWIG_IsOK(res2)) {
22704 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
22705 }
22706 arg2 = reinterpret_cast< wxPen * >(argp2);
22707 {
22708 PyThreadState* __tstate = wxPyBeginAllowThreads();
22709 (arg1)->AddPen(arg2);
22710 wxPyEndAllowThreads(__tstate);
22711 if (PyErr_Occurred()) SWIG_fail;
22712 }
22713 resultobj = SWIG_Py_Void();
22714 return resultobj;
22715 fail:
22716 return NULL;
22717 }
22718
22719
22720 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22721 PyObject *resultobj = 0;
22722 wxPenList *arg1 = (wxPenList *) 0 ;
22723 wxPen *arg2 = (wxPen *) 0 ;
22724 void *argp1 = 0 ;
22725 int res1 = 0 ;
22726 void *argp2 = 0 ;
22727 int res2 = 0 ;
22728 PyObject * obj0 = 0 ;
22729 PyObject * obj1 = 0 ;
22730 char * kwnames[] = {
22731 (char *) "self",(char *) "pen", NULL
22732 };
22733
22734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
22735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22736 if (!SWIG_IsOK(res1)) {
22737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22738 }
22739 arg1 = reinterpret_cast< wxPenList * >(argp1);
22740 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22741 if (!SWIG_IsOK(res2)) {
22742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
22743 }
22744 arg2 = reinterpret_cast< wxPen * >(argp2);
22745 {
22746 PyThreadState* __tstate = wxPyBeginAllowThreads();
22747 (arg1)->RemovePen(arg2);
22748 wxPyEndAllowThreads(__tstate);
22749 if (PyErr_Occurred()) SWIG_fail;
22750 }
22751 resultobj = SWIG_Py_Void();
22752 return resultobj;
22753 fail:
22754 return NULL;
22755 }
22756
22757
22758 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22759 PyObject *obj;
22760 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22761 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
22762 return SWIG_Py_Void();
22763 }
22764
22765 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22766 PyObject *resultobj = 0;
22767 wxBrushList *arg1 = (wxBrushList *) 0 ;
22768 wxColour *arg2 = 0 ;
22769 int arg3 = (int) wxSOLID ;
22770 wxBrush *result = 0 ;
22771 void *argp1 = 0 ;
22772 int res1 = 0 ;
22773 wxColour temp2 ;
22774 int val3 ;
22775 int ecode3 = 0 ;
22776 PyObject * obj0 = 0 ;
22777 PyObject * obj1 = 0 ;
22778 PyObject * obj2 = 0 ;
22779 char * kwnames[] = {
22780 (char *) "self",(char *) "colour",(char *) "style", NULL
22781 };
22782
22783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22785 if (!SWIG_IsOK(res1)) {
22786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22787 }
22788 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22789 {
22790 arg2 = &temp2;
22791 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22792 }
22793 if (obj2) {
22794 ecode3 = SWIG_AsVal_int(obj2, &val3);
22795 if (!SWIG_IsOK(ecode3)) {
22796 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
22797 }
22798 arg3 = static_cast< int >(val3);
22799 }
22800 {
22801 PyThreadState* __tstate = wxPyBeginAllowThreads();
22802 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
22803 wxPyEndAllowThreads(__tstate);
22804 if (PyErr_Occurred()) SWIG_fail;
22805 }
22806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22807 return resultobj;
22808 fail:
22809 return NULL;
22810 }
22811
22812
22813 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22814 PyObject *resultobj = 0;
22815 wxBrushList *arg1 = (wxBrushList *) 0 ;
22816 wxBrush *arg2 = (wxBrush *) 0 ;
22817 void *argp1 = 0 ;
22818 int res1 = 0 ;
22819 void *argp2 = 0 ;
22820 int res2 = 0 ;
22821 PyObject * obj0 = 0 ;
22822 PyObject * obj1 = 0 ;
22823 char * kwnames[] = {
22824 (char *) "self",(char *) "brush", NULL
22825 };
22826
22827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22829 if (!SWIG_IsOK(res1)) {
22830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22831 }
22832 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22833 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22834 if (!SWIG_IsOK(res2)) {
22835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22836 }
22837 arg2 = reinterpret_cast< wxBrush * >(argp2);
22838 {
22839 PyThreadState* __tstate = wxPyBeginAllowThreads();
22840 (arg1)->AddBrush(arg2);
22841 wxPyEndAllowThreads(__tstate);
22842 if (PyErr_Occurred()) SWIG_fail;
22843 }
22844 resultobj = SWIG_Py_Void();
22845 return resultobj;
22846 fail:
22847 return NULL;
22848 }
22849
22850
22851 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22852 PyObject *resultobj = 0;
22853 wxBrushList *arg1 = (wxBrushList *) 0 ;
22854 wxBrush *arg2 = (wxBrush *) 0 ;
22855 void *argp1 = 0 ;
22856 int res1 = 0 ;
22857 void *argp2 = 0 ;
22858 int res2 = 0 ;
22859 PyObject * obj0 = 0 ;
22860 PyObject * obj1 = 0 ;
22861 char * kwnames[] = {
22862 (char *) "self",(char *) "brush", NULL
22863 };
22864
22865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22867 if (!SWIG_IsOK(res1)) {
22868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22869 }
22870 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22871 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22872 if (!SWIG_IsOK(res2)) {
22873 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22874 }
22875 arg2 = reinterpret_cast< wxBrush * >(argp2);
22876 {
22877 PyThreadState* __tstate = wxPyBeginAllowThreads();
22878 (arg1)->RemoveBrush(arg2);
22879 wxPyEndAllowThreads(__tstate);
22880 if (PyErr_Occurred()) SWIG_fail;
22881 }
22882 resultobj = SWIG_Py_Void();
22883 return resultobj;
22884 fail:
22885 return NULL;
22886 }
22887
22888
22889 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22890 PyObject *obj;
22891 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22892 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
22893 return SWIG_Py_Void();
22894 }
22895
22896 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22897 PyObject *resultobj = 0;
22898 wxFontList *arg1 = (wxFontList *) 0 ;
22899 int arg2 ;
22900 int arg3 ;
22901 int arg4 ;
22902 int arg5 ;
22903 bool arg6 = (bool) false ;
22904 wxString const &arg7_defvalue = wxPyEmptyString ;
22905 wxString *arg7 = (wxString *) &arg7_defvalue ;
22906 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
22907 wxFont *result = 0 ;
22908 void *argp1 = 0 ;
22909 int res1 = 0 ;
22910 int val2 ;
22911 int ecode2 = 0 ;
22912 int val3 ;
22913 int ecode3 = 0 ;
22914 int val4 ;
22915 int ecode4 = 0 ;
22916 int val5 ;
22917 int ecode5 = 0 ;
22918 bool val6 ;
22919 int ecode6 = 0 ;
22920 bool temp7 = false ;
22921 int val8 ;
22922 int ecode8 = 0 ;
22923 PyObject * obj0 = 0 ;
22924 PyObject * obj1 = 0 ;
22925 PyObject * obj2 = 0 ;
22926 PyObject * obj3 = 0 ;
22927 PyObject * obj4 = 0 ;
22928 PyObject * obj5 = 0 ;
22929 PyObject * obj6 = 0 ;
22930 PyObject * obj7 = 0 ;
22931 char * kwnames[] = {
22932 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
22933 };
22934
22935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
22936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
22937 if (!SWIG_IsOK(res1)) {
22938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
22939 }
22940 arg1 = reinterpret_cast< wxFontList * >(argp1);
22941 ecode2 = SWIG_AsVal_int(obj1, &val2);
22942 if (!SWIG_IsOK(ecode2)) {
22943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
22944 }
22945 arg2 = static_cast< int >(val2);
22946 ecode3 = SWIG_AsVal_int(obj2, &val3);
22947 if (!SWIG_IsOK(ecode3)) {
22948 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
22949 }
22950 arg3 = static_cast< int >(val3);
22951 ecode4 = SWIG_AsVal_int(obj3, &val4);
22952 if (!SWIG_IsOK(ecode4)) {
22953 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
22954 }
22955 arg4 = static_cast< int >(val4);
22956 ecode5 = SWIG_AsVal_int(obj4, &val5);
22957 if (!SWIG_IsOK(ecode5)) {
22958 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
22959 }
22960 arg5 = static_cast< int >(val5);
22961 if (obj5) {
22962 ecode6 = SWIG_AsVal_bool(obj5, &val6);
22963 if (!SWIG_IsOK(ecode6)) {
22964 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
22965 }
22966 arg6 = static_cast< bool >(val6);
22967 }
22968 if (obj6) {
22969 {
22970 arg7 = wxString_in_helper(obj6);
22971 if (arg7 == NULL) SWIG_fail;
22972 temp7 = true;
22973 }
22974 }
22975 if (obj7) {
22976 ecode8 = SWIG_AsVal_int(obj7, &val8);
22977 if (!SWIG_IsOK(ecode8)) {
22978 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
22979 }
22980 arg8 = static_cast< wxFontEncoding >(val8);
22981 }
22982 {
22983 PyThreadState* __tstate = wxPyBeginAllowThreads();
22984 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
22985 wxPyEndAllowThreads(__tstate);
22986 if (PyErr_Occurred()) SWIG_fail;
22987 }
22988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22989 {
22990 if (temp7)
22991 delete arg7;
22992 }
22993 return resultobj;
22994 fail:
22995 {
22996 if (temp7)
22997 delete arg7;
22998 }
22999 return NULL;
23000 }
23001
23002
23003 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23004 PyObject *resultobj = 0;
23005 wxFontList *arg1 = (wxFontList *) 0 ;
23006 wxFont *arg2 = (wxFont *) 0 ;
23007 void *argp1 = 0 ;
23008 int res1 = 0 ;
23009 void *argp2 = 0 ;
23010 int res2 = 0 ;
23011 PyObject * obj0 = 0 ;
23012 PyObject * obj1 = 0 ;
23013 char * kwnames[] = {
23014 (char *) "self",(char *) "font", NULL
23015 };
23016
23017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
23018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23019 if (!SWIG_IsOK(res1)) {
23020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23021 }
23022 arg1 = reinterpret_cast< wxFontList * >(argp1);
23023 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23024 if (!SWIG_IsOK(res2)) {
23025 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
23026 }
23027 arg2 = reinterpret_cast< wxFont * >(argp2);
23028 {
23029 PyThreadState* __tstate = wxPyBeginAllowThreads();
23030 (arg1)->AddFont(arg2);
23031 wxPyEndAllowThreads(__tstate);
23032 if (PyErr_Occurred()) SWIG_fail;
23033 }
23034 resultobj = SWIG_Py_Void();
23035 return resultobj;
23036 fail:
23037 return NULL;
23038 }
23039
23040
23041 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23042 PyObject *resultobj = 0;
23043 wxFontList *arg1 = (wxFontList *) 0 ;
23044 wxFont *arg2 = (wxFont *) 0 ;
23045 void *argp1 = 0 ;
23046 int res1 = 0 ;
23047 void *argp2 = 0 ;
23048 int res2 = 0 ;
23049 PyObject * obj0 = 0 ;
23050 PyObject * obj1 = 0 ;
23051 char * kwnames[] = {
23052 (char *) "self",(char *) "font", NULL
23053 };
23054
23055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
23056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23057 if (!SWIG_IsOK(res1)) {
23058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23059 }
23060 arg1 = reinterpret_cast< wxFontList * >(argp1);
23061 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23062 if (!SWIG_IsOK(res2)) {
23063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
23064 }
23065 arg2 = reinterpret_cast< wxFont * >(argp2);
23066 {
23067 PyThreadState* __tstate = wxPyBeginAllowThreads();
23068 (arg1)->RemoveFont(arg2);
23069 wxPyEndAllowThreads(__tstate);
23070 if (PyErr_Occurred()) SWIG_fail;
23071 }
23072 resultobj = SWIG_Py_Void();
23073 return resultobj;
23074 fail:
23075 return NULL;
23076 }
23077
23078
23079 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23080 PyObject *obj;
23081 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23082 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
23083 return SWIG_Py_Void();
23084 }
23085
23086 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23087 PyObject *resultobj = 0;
23088 wxColourDatabase *result = 0 ;
23089
23090 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
23091 {
23092 if (!wxPyCheckForApp()) SWIG_fail;
23093 PyThreadState* __tstate = wxPyBeginAllowThreads();
23094 result = (wxColourDatabase *)new wxColourDatabase();
23095 wxPyEndAllowThreads(__tstate);
23096 if (PyErr_Occurred()) SWIG_fail;
23097 }
23098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
23099 return resultobj;
23100 fail:
23101 return NULL;
23102 }
23103
23104
23105 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23106 PyObject *resultobj = 0;
23107 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23108 void *argp1 = 0 ;
23109 int res1 = 0 ;
23110 PyObject *swig_obj[1] ;
23111
23112 if (!args) SWIG_fail;
23113 swig_obj[0] = args;
23114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
23115 if (!SWIG_IsOK(res1)) {
23116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23117 }
23118 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23119 {
23120 PyThreadState* __tstate = wxPyBeginAllowThreads();
23121 delete arg1;
23122
23123 wxPyEndAllowThreads(__tstate);
23124 if (PyErr_Occurred()) SWIG_fail;
23125 }
23126 resultobj = SWIG_Py_Void();
23127 return resultobj;
23128 fail:
23129 return NULL;
23130 }
23131
23132
23133 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23134 PyObject *resultobj = 0;
23135 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23136 wxString *arg2 = 0 ;
23137 wxColour result;
23138 void *argp1 = 0 ;
23139 int res1 = 0 ;
23140 bool temp2 = false ;
23141 PyObject * obj0 = 0 ;
23142 PyObject * obj1 = 0 ;
23143 char * kwnames[] = {
23144 (char *) "self",(char *) "name", NULL
23145 };
23146
23147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
23148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23149 if (!SWIG_IsOK(res1)) {
23150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23151 }
23152 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23153 {
23154 arg2 = wxString_in_helper(obj1);
23155 if (arg2 == NULL) SWIG_fail;
23156 temp2 = true;
23157 }
23158 {
23159 PyThreadState* __tstate = wxPyBeginAllowThreads();
23160 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
23161 wxPyEndAllowThreads(__tstate);
23162 if (PyErr_Occurred()) SWIG_fail;
23163 }
23164 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23165 {
23166 if (temp2)
23167 delete arg2;
23168 }
23169 return resultobj;
23170 fail:
23171 {
23172 if (temp2)
23173 delete arg2;
23174 }
23175 return NULL;
23176 }
23177
23178
23179 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23180 PyObject *resultobj = 0;
23181 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23182 wxColour *arg2 = 0 ;
23183 wxString result;
23184 void *argp1 = 0 ;
23185 int res1 = 0 ;
23186 wxColour temp2 ;
23187 PyObject * obj0 = 0 ;
23188 PyObject * obj1 = 0 ;
23189 char * kwnames[] = {
23190 (char *) "self",(char *) "colour", NULL
23191 };
23192
23193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
23194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23195 if (!SWIG_IsOK(res1)) {
23196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23197 }
23198 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23199 {
23200 arg2 = &temp2;
23201 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23202 }
23203 {
23204 PyThreadState* __tstate = wxPyBeginAllowThreads();
23205 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
23206 wxPyEndAllowThreads(__tstate);
23207 if (PyErr_Occurred()) SWIG_fail;
23208 }
23209 {
23210 #if wxUSE_UNICODE
23211 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23212 #else
23213 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23214 #endif
23215 }
23216 return resultobj;
23217 fail:
23218 return NULL;
23219 }
23220
23221
23222 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23223 PyObject *resultobj = 0;
23224 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23225 wxString *arg2 = 0 ;
23226 wxColour *arg3 = 0 ;
23227 void *argp1 = 0 ;
23228 int res1 = 0 ;
23229 bool temp2 = false ;
23230 wxColour temp3 ;
23231 PyObject * obj0 = 0 ;
23232 PyObject * obj1 = 0 ;
23233 PyObject * obj2 = 0 ;
23234 char * kwnames[] = {
23235 (char *) "self",(char *) "name",(char *) "colour", NULL
23236 };
23237
23238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23240 if (!SWIG_IsOK(res1)) {
23241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23242 }
23243 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23244 {
23245 arg2 = wxString_in_helper(obj1);
23246 if (arg2 == NULL) SWIG_fail;
23247 temp2 = true;
23248 }
23249 {
23250 arg3 = &temp3;
23251 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23252 }
23253 {
23254 PyThreadState* __tstate = wxPyBeginAllowThreads();
23255 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
23256 wxPyEndAllowThreads(__tstate);
23257 if (PyErr_Occurred()) SWIG_fail;
23258 }
23259 resultobj = SWIG_Py_Void();
23260 {
23261 if (temp2)
23262 delete arg2;
23263 }
23264 return resultobj;
23265 fail:
23266 {
23267 if (temp2)
23268 delete arg2;
23269 }
23270 return NULL;
23271 }
23272
23273
23274 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23275 PyObject *resultobj = 0;
23276 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23277 wxString *arg2 = 0 ;
23278 int arg3 ;
23279 int arg4 ;
23280 int arg5 ;
23281 void *argp1 = 0 ;
23282 int res1 = 0 ;
23283 bool temp2 = false ;
23284 int val3 ;
23285 int ecode3 = 0 ;
23286 int val4 ;
23287 int ecode4 = 0 ;
23288 int val5 ;
23289 int ecode5 = 0 ;
23290 PyObject * obj0 = 0 ;
23291 PyObject * obj1 = 0 ;
23292 PyObject * obj2 = 0 ;
23293 PyObject * obj3 = 0 ;
23294 PyObject * obj4 = 0 ;
23295 char * kwnames[] = {
23296 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
23297 };
23298
23299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23301 if (!SWIG_IsOK(res1)) {
23302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23303 }
23304 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23305 {
23306 arg2 = wxString_in_helper(obj1);
23307 if (arg2 == NULL) SWIG_fail;
23308 temp2 = true;
23309 }
23310 ecode3 = SWIG_AsVal_int(obj2, &val3);
23311 if (!SWIG_IsOK(ecode3)) {
23312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
23313 }
23314 arg3 = static_cast< int >(val3);
23315 ecode4 = SWIG_AsVal_int(obj3, &val4);
23316 if (!SWIG_IsOK(ecode4)) {
23317 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
23318 }
23319 arg4 = static_cast< int >(val4);
23320 ecode5 = SWIG_AsVal_int(obj4, &val5);
23321 if (!SWIG_IsOK(ecode5)) {
23322 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
23323 }
23324 arg5 = static_cast< int >(val5);
23325 {
23326 PyThreadState* __tstate = wxPyBeginAllowThreads();
23327 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
23328 wxPyEndAllowThreads(__tstate);
23329 if (PyErr_Occurred()) SWIG_fail;
23330 }
23331 resultobj = SWIG_Py_Void();
23332 {
23333 if (temp2)
23334 delete arg2;
23335 }
23336 return resultobj;
23337 fail:
23338 {
23339 if (temp2)
23340 delete arg2;
23341 }
23342 return NULL;
23343 }
23344
23345
23346 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23347 PyObject *obj;
23348 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23349 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
23350 return SWIG_Py_Void();
23351 }
23352
23353 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23354 return SWIG_Python_InitShadowInstance(args);
23355 }
23356
23357 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23358 PyObject *resultobj = 0;
23359 wxFontList *result = 0 ;
23360
23361 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
23362 {
23363 PyThreadState* __tstate = wxPyBeginAllowThreads();
23364 result = (wxFontList *)_wxPyInitTheFontList();
23365 wxPyEndAllowThreads(__tstate);
23366 if (PyErr_Occurred()) SWIG_fail;
23367 }
23368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
23369 return resultobj;
23370 fail:
23371 return NULL;
23372 }
23373
23374
23375 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23376 PyObject *resultobj = 0;
23377 wxPenList *result = 0 ;
23378
23379 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
23380 {
23381 PyThreadState* __tstate = wxPyBeginAllowThreads();
23382 result = (wxPenList *)_wxPyInitThePenList();
23383 wxPyEndAllowThreads(__tstate);
23384 if (PyErr_Occurred()) SWIG_fail;
23385 }
23386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
23387 return resultobj;
23388 fail:
23389 return NULL;
23390 }
23391
23392
23393 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23394 PyObject *resultobj = 0;
23395 wxBrushList *result = 0 ;
23396
23397 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
23398 {
23399 PyThreadState* __tstate = wxPyBeginAllowThreads();
23400 result = (wxBrushList *)_wxPyInitTheBrushList();
23401 wxPyEndAllowThreads(__tstate);
23402 if (PyErr_Occurred()) SWIG_fail;
23403 }
23404 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
23405 return resultobj;
23406 fail:
23407 return NULL;
23408 }
23409
23410
23411 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23412 PyObject *resultobj = 0;
23413 wxColourDatabase *result = 0 ;
23414
23415 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
23416 {
23417 PyThreadState* __tstate = wxPyBeginAllowThreads();
23418 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
23419 wxPyEndAllowThreads(__tstate);
23420 if (PyErr_Occurred()) SWIG_fail;
23421 }
23422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23423 return resultobj;
23424 fail:
23425 return NULL;
23426 }
23427
23428
23429 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23430 PyObject *resultobj = 0;
23431 wxEffects *result = 0 ;
23432
23433 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
23434 {
23435 PyThreadState* __tstate = wxPyBeginAllowThreads();
23436 result = (wxEffects *)new wxEffects();
23437 wxPyEndAllowThreads(__tstate);
23438 if (PyErr_Occurred()) SWIG_fail;
23439 }
23440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
23441 return resultobj;
23442 fail:
23443 return NULL;
23444 }
23445
23446
23447 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23448 PyObject *resultobj = 0;
23449 wxEffects *arg1 = (wxEffects *) 0 ;
23450 wxColour result;
23451 void *argp1 = 0 ;
23452 int res1 = 0 ;
23453 PyObject *swig_obj[1] ;
23454
23455 if (!args) SWIG_fail;
23456 swig_obj[0] = args;
23457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23458 if (!SWIG_IsOK(res1)) {
23459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23460 }
23461 arg1 = reinterpret_cast< wxEffects * >(argp1);
23462 {
23463 PyThreadState* __tstate = wxPyBeginAllowThreads();
23464 result = ((wxEffects const *)arg1)->GetHighlightColour();
23465 wxPyEndAllowThreads(__tstate);
23466 if (PyErr_Occurred()) SWIG_fail;
23467 }
23468 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23469 return resultobj;
23470 fail:
23471 return NULL;
23472 }
23473
23474
23475 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23476 PyObject *resultobj = 0;
23477 wxEffects *arg1 = (wxEffects *) 0 ;
23478 wxColour result;
23479 void *argp1 = 0 ;
23480 int res1 = 0 ;
23481 PyObject *swig_obj[1] ;
23482
23483 if (!args) SWIG_fail;
23484 swig_obj[0] = args;
23485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23486 if (!SWIG_IsOK(res1)) {
23487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23488 }
23489 arg1 = reinterpret_cast< wxEffects * >(argp1);
23490 {
23491 PyThreadState* __tstate = wxPyBeginAllowThreads();
23492 result = ((wxEffects const *)arg1)->GetLightShadow();
23493 wxPyEndAllowThreads(__tstate);
23494 if (PyErr_Occurred()) SWIG_fail;
23495 }
23496 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23497 return resultobj;
23498 fail:
23499 return NULL;
23500 }
23501
23502
23503 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23504 PyObject *resultobj = 0;
23505 wxEffects *arg1 = (wxEffects *) 0 ;
23506 wxColour result;
23507 void *argp1 = 0 ;
23508 int res1 = 0 ;
23509 PyObject *swig_obj[1] ;
23510
23511 if (!args) SWIG_fail;
23512 swig_obj[0] = args;
23513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23514 if (!SWIG_IsOK(res1)) {
23515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23516 }
23517 arg1 = reinterpret_cast< wxEffects * >(argp1);
23518 {
23519 PyThreadState* __tstate = wxPyBeginAllowThreads();
23520 result = ((wxEffects const *)arg1)->GetFaceColour();
23521 wxPyEndAllowThreads(__tstate);
23522 if (PyErr_Occurred()) SWIG_fail;
23523 }
23524 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23525 return resultobj;
23526 fail:
23527 return NULL;
23528 }
23529
23530
23531 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23532 PyObject *resultobj = 0;
23533 wxEffects *arg1 = (wxEffects *) 0 ;
23534 wxColour result;
23535 void *argp1 = 0 ;
23536 int res1 = 0 ;
23537 PyObject *swig_obj[1] ;
23538
23539 if (!args) SWIG_fail;
23540 swig_obj[0] = args;
23541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23542 if (!SWIG_IsOK(res1)) {
23543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23544 }
23545 arg1 = reinterpret_cast< wxEffects * >(argp1);
23546 {
23547 PyThreadState* __tstate = wxPyBeginAllowThreads();
23548 result = ((wxEffects const *)arg1)->GetMediumShadow();
23549 wxPyEndAllowThreads(__tstate);
23550 if (PyErr_Occurred()) SWIG_fail;
23551 }
23552 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23553 return resultobj;
23554 fail:
23555 return NULL;
23556 }
23557
23558
23559 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23560 PyObject *resultobj = 0;
23561 wxEffects *arg1 = (wxEffects *) 0 ;
23562 wxColour result;
23563 void *argp1 = 0 ;
23564 int res1 = 0 ;
23565 PyObject *swig_obj[1] ;
23566
23567 if (!args) SWIG_fail;
23568 swig_obj[0] = args;
23569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23570 if (!SWIG_IsOK(res1)) {
23571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23572 }
23573 arg1 = reinterpret_cast< wxEffects * >(argp1);
23574 {
23575 PyThreadState* __tstate = wxPyBeginAllowThreads();
23576 result = ((wxEffects const *)arg1)->GetDarkShadow();
23577 wxPyEndAllowThreads(__tstate);
23578 if (PyErr_Occurred()) SWIG_fail;
23579 }
23580 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23581 return resultobj;
23582 fail:
23583 return NULL;
23584 }
23585
23586
23587 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23588 PyObject *resultobj = 0;
23589 wxEffects *arg1 = (wxEffects *) 0 ;
23590 wxColour *arg2 = 0 ;
23591 void *argp1 = 0 ;
23592 int res1 = 0 ;
23593 wxColour temp2 ;
23594 PyObject * obj0 = 0 ;
23595 PyObject * obj1 = 0 ;
23596 char * kwnames[] = {
23597 (char *) "self",(char *) "c", NULL
23598 };
23599
23600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
23601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23602 if (!SWIG_IsOK(res1)) {
23603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23604 }
23605 arg1 = reinterpret_cast< wxEffects * >(argp1);
23606 {
23607 arg2 = &temp2;
23608 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23609 }
23610 {
23611 PyThreadState* __tstate = wxPyBeginAllowThreads();
23612 (arg1)->SetHighlightColour((wxColour const &)*arg2);
23613 wxPyEndAllowThreads(__tstate);
23614 if (PyErr_Occurred()) SWIG_fail;
23615 }
23616 resultobj = SWIG_Py_Void();
23617 return resultobj;
23618 fail:
23619 return NULL;
23620 }
23621
23622
23623 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23624 PyObject *resultobj = 0;
23625 wxEffects *arg1 = (wxEffects *) 0 ;
23626 wxColour *arg2 = 0 ;
23627 void *argp1 = 0 ;
23628 int res1 = 0 ;
23629 wxColour temp2 ;
23630 PyObject * obj0 = 0 ;
23631 PyObject * obj1 = 0 ;
23632 char * kwnames[] = {
23633 (char *) "self",(char *) "c", NULL
23634 };
23635
23636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23638 if (!SWIG_IsOK(res1)) {
23639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23640 }
23641 arg1 = reinterpret_cast< wxEffects * >(argp1);
23642 {
23643 arg2 = &temp2;
23644 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23645 }
23646 {
23647 PyThreadState* __tstate = wxPyBeginAllowThreads();
23648 (arg1)->SetLightShadow((wxColour const &)*arg2);
23649 wxPyEndAllowThreads(__tstate);
23650 if (PyErr_Occurred()) SWIG_fail;
23651 }
23652 resultobj = SWIG_Py_Void();
23653 return resultobj;
23654 fail:
23655 return NULL;
23656 }
23657
23658
23659 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23660 PyObject *resultobj = 0;
23661 wxEffects *arg1 = (wxEffects *) 0 ;
23662 wxColour *arg2 = 0 ;
23663 void *argp1 = 0 ;
23664 int res1 = 0 ;
23665 wxColour temp2 ;
23666 PyObject * obj0 = 0 ;
23667 PyObject * obj1 = 0 ;
23668 char * kwnames[] = {
23669 (char *) "self",(char *) "c", NULL
23670 };
23671
23672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
23673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23674 if (!SWIG_IsOK(res1)) {
23675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23676 }
23677 arg1 = reinterpret_cast< wxEffects * >(argp1);
23678 {
23679 arg2 = &temp2;
23680 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23681 }
23682 {
23683 PyThreadState* __tstate = wxPyBeginAllowThreads();
23684 (arg1)->SetFaceColour((wxColour const &)*arg2);
23685 wxPyEndAllowThreads(__tstate);
23686 if (PyErr_Occurred()) SWIG_fail;
23687 }
23688 resultobj = SWIG_Py_Void();
23689 return resultobj;
23690 fail:
23691 return NULL;
23692 }
23693
23694
23695 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23696 PyObject *resultobj = 0;
23697 wxEffects *arg1 = (wxEffects *) 0 ;
23698 wxColour *arg2 = 0 ;
23699 void *argp1 = 0 ;
23700 int res1 = 0 ;
23701 wxColour temp2 ;
23702 PyObject * obj0 = 0 ;
23703 PyObject * obj1 = 0 ;
23704 char * kwnames[] = {
23705 (char *) "self",(char *) "c", NULL
23706 };
23707
23708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23710 if (!SWIG_IsOK(res1)) {
23711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23712 }
23713 arg1 = reinterpret_cast< wxEffects * >(argp1);
23714 {
23715 arg2 = &temp2;
23716 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23717 }
23718 {
23719 PyThreadState* __tstate = wxPyBeginAllowThreads();
23720 (arg1)->SetMediumShadow((wxColour const &)*arg2);
23721 wxPyEndAllowThreads(__tstate);
23722 if (PyErr_Occurred()) SWIG_fail;
23723 }
23724 resultobj = SWIG_Py_Void();
23725 return resultobj;
23726 fail:
23727 return NULL;
23728 }
23729
23730
23731 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23732 PyObject *resultobj = 0;
23733 wxEffects *arg1 = (wxEffects *) 0 ;
23734 wxColour *arg2 = 0 ;
23735 void *argp1 = 0 ;
23736 int res1 = 0 ;
23737 wxColour temp2 ;
23738 PyObject * obj0 = 0 ;
23739 PyObject * obj1 = 0 ;
23740 char * kwnames[] = {
23741 (char *) "self",(char *) "c", NULL
23742 };
23743
23744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23746 if (!SWIG_IsOK(res1)) {
23747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23748 }
23749 arg1 = reinterpret_cast< wxEffects * >(argp1);
23750 {
23751 arg2 = &temp2;
23752 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23753 }
23754 {
23755 PyThreadState* __tstate = wxPyBeginAllowThreads();
23756 (arg1)->SetDarkShadow((wxColour const &)*arg2);
23757 wxPyEndAllowThreads(__tstate);
23758 if (PyErr_Occurred()) SWIG_fail;
23759 }
23760 resultobj = SWIG_Py_Void();
23761 return resultobj;
23762 fail:
23763 return NULL;
23764 }
23765
23766
23767 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23768 PyObject *resultobj = 0;
23769 wxEffects *arg1 = (wxEffects *) 0 ;
23770 wxColour *arg2 = 0 ;
23771 wxColour *arg3 = 0 ;
23772 wxColour *arg4 = 0 ;
23773 wxColour *arg5 = 0 ;
23774 wxColour *arg6 = 0 ;
23775 void *argp1 = 0 ;
23776 int res1 = 0 ;
23777 wxColour temp2 ;
23778 wxColour temp3 ;
23779 wxColour temp4 ;
23780 wxColour temp5 ;
23781 wxColour temp6 ;
23782 PyObject * obj0 = 0 ;
23783 PyObject * obj1 = 0 ;
23784 PyObject * obj2 = 0 ;
23785 PyObject * obj3 = 0 ;
23786 PyObject * obj4 = 0 ;
23787 PyObject * obj5 = 0 ;
23788 char * kwnames[] = {
23789 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
23790 };
23791
23792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
23793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23794 if (!SWIG_IsOK(res1)) {
23795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
23796 }
23797 arg1 = reinterpret_cast< wxEffects * >(argp1);
23798 {
23799 arg2 = &temp2;
23800 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23801 }
23802 {
23803 arg3 = &temp3;
23804 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23805 }
23806 {
23807 arg4 = &temp4;
23808 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
23809 }
23810 {
23811 arg5 = &temp5;
23812 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
23813 }
23814 {
23815 arg6 = &temp6;
23816 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
23817 }
23818 {
23819 PyThreadState* __tstate = wxPyBeginAllowThreads();
23820 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
23821 wxPyEndAllowThreads(__tstate);
23822 if (PyErr_Occurred()) SWIG_fail;
23823 }
23824 resultobj = SWIG_Py_Void();
23825 return resultobj;
23826 fail:
23827 return NULL;
23828 }
23829
23830
23831 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23832 PyObject *resultobj = 0;
23833 wxEffects *arg1 = (wxEffects *) 0 ;
23834 wxDC *arg2 = 0 ;
23835 wxRect *arg3 = 0 ;
23836 int arg4 = (int) 1 ;
23837 void *argp1 = 0 ;
23838 int res1 = 0 ;
23839 void *argp2 = 0 ;
23840 int res2 = 0 ;
23841 wxRect temp3 ;
23842 int val4 ;
23843 int ecode4 = 0 ;
23844 PyObject * obj0 = 0 ;
23845 PyObject * obj1 = 0 ;
23846 PyObject * obj2 = 0 ;
23847 PyObject * obj3 = 0 ;
23848 char * kwnames[] = {
23849 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
23850 };
23851
23852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23854 if (!SWIG_IsOK(res1)) {
23855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
23856 }
23857 arg1 = reinterpret_cast< wxEffects * >(argp1);
23858 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
23859 if (!SWIG_IsOK(res2)) {
23860 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23861 }
23862 if (!argp2) {
23863 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23864 }
23865 arg2 = reinterpret_cast< wxDC * >(argp2);
23866 {
23867 arg3 = &temp3;
23868 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
23869 }
23870 if (obj3) {
23871 ecode4 = SWIG_AsVal_int(obj3, &val4);
23872 if (!SWIG_IsOK(ecode4)) {
23873 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
23874 }
23875 arg4 = static_cast< int >(val4);
23876 }
23877 {
23878 PyThreadState* __tstate = wxPyBeginAllowThreads();
23879 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
23880 wxPyEndAllowThreads(__tstate);
23881 if (PyErr_Occurred()) SWIG_fail;
23882 }
23883 resultobj = SWIG_Py_Void();
23884 return resultobj;
23885 fail:
23886 return NULL;
23887 }
23888
23889
23890 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23891 PyObject *resultobj = 0;
23892 wxEffects *arg1 = (wxEffects *) 0 ;
23893 wxRect *arg2 = 0 ;
23894 wxDC *arg3 = 0 ;
23895 wxBitmap *arg4 = 0 ;
23896 bool result;
23897 void *argp1 = 0 ;
23898 int res1 = 0 ;
23899 wxRect temp2 ;
23900 void *argp3 = 0 ;
23901 int res3 = 0 ;
23902 void *argp4 = 0 ;
23903 int res4 = 0 ;
23904 PyObject * obj0 = 0 ;
23905 PyObject * obj1 = 0 ;
23906 PyObject * obj2 = 0 ;
23907 PyObject * obj3 = 0 ;
23908 char * kwnames[] = {
23909 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
23910 };
23911
23912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23914 if (!SWIG_IsOK(res1)) {
23915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
23916 }
23917 arg1 = reinterpret_cast< wxEffects * >(argp1);
23918 {
23919 arg2 = &temp2;
23920 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
23921 }
23922 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
23923 if (!SWIG_IsOK(res3)) {
23924 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23925 }
23926 if (!argp3) {
23927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23928 }
23929 arg3 = reinterpret_cast< wxDC * >(argp3);
23930 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
23931 if (!SWIG_IsOK(res4)) {
23932 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23933 }
23934 if (!argp4) {
23935 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23936 }
23937 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23938 {
23939 PyThreadState* __tstate = wxPyBeginAllowThreads();
23940 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
23941 wxPyEndAllowThreads(__tstate);
23942 if (PyErr_Occurred()) SWIG_fail;
23943 }
23944 {
23945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23946 }
23947 return resultobj;
23948 fail:
23949 return NULL;
23950 }
23951
23952
23953 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23954 PyObject *obj;
23955 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23956 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
23957 return SWIG_Py_Void();
23958 }
23959
23960 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23961 return SWIG_Python_InitShadowInstance(args);
23962 }
23963
23964 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23965 PyObject *resultobj = 0;
23966 int arg1 ;
23967 int arg2 ;
23968 bool arg3 ;
23969 wxSplitterRenderParams *result = 0 ;
23970 int val1 ;
23971 int ecode1 = 0 ;
23972 int val2 ;
23973 int ecode2 = 0 ;
23974 bool val3 ;
23975 int ecode3 = 0 ;
23976 PyObject * obj0 = 0 ;
23977 PyObject * obj1 = 0 ;
23978 PyObject * obj2 = 0 ;
23979 char * kwnames[] = {
23980 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
23981 };
23982
23983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23984 ecode1 = SWIG_AsVal_int(obj0, &val1);
23985 if (!SWIG_IsOK(ecode1)) {
23986 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
23987 }
23988 arg1 = static_cast< int >(val1);
23989 ecode2 = SWIG_AsVal_int(obj1, &val2);
23990 if (!SWIG_IsOK(ecode2)) {
23991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
23992 }
23993 arg2 = static_cast< int >(val2);
23994 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23995 if (!SWIG_IsOK(ecode3)) {
23996 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
23997 }
23998 arg3 = static_cast< bool >(val3);
23999 {
24000 PyThreadState* __tstate = wxPyBeginAllowThreads();
24001 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
24002 wxPyEndAllowThreads(__tstate);
24003 if (PyErr_Occurred()) SWIG_fail;
24004 }
24005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
24006 return resultobj;
24007 fail:
24008 return NULL;
24009 }
24010
24011
24012 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24013 PyObject *resultobj = 0;
24014 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24015 void *argp1 = 0 ;
24016 int res1 = 0 ;
24017 PyObject *swig_obj[1] ;
24018
24019 if (!args) SWIG_fail;
24020 swig_obj[0] = args;
24021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
24022 if (!SWIG_IsOK(res1)) {
24023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24024 }
24025 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24026 {
24027 PyThreadState* __tstate = wxPyBeginAllowThreads();
24028 delete arg1;
24029
24030 wxPyEndAllowThreads(__tstate);
24031 if (PyErr_Occurred()) SWIG_fail;
24032 }
24033 resultobj = SWIG_Py_Void();
24034 return resultobj;
24035 fail:
24036 return NULL;
24037 }
24038
24039
24040 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24041 PyObject *resultobj = 0;
24042 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24043 int result;
24044 void *argp1 = 0 ;
24045 int res1 = 0 ;
24046 PyObject *swig_obj[1] ;
24047
24048 if (!args) SWIG_fail;
24049 swig_obj[0] = args;
24050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24051 if (!SWIG_IsOK(res1)) {
24052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24053 }
24054 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24055 result = (int)(int) ((arg1)->widthSash);
24056 resultobj = SWIG_From_int(static_cast< int >(result));
24057 return resultobj;
24058 fail:
24059 return NULL;
24060 }
24061
24062
24063 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24064 PyObject *resultobj = 0;
24065 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24066 int result;
24067 void *argp1 = 0 ;
24068 int res1 = 0 ;
24069 PyObject *swig_obj[1] ;
24070
24071 if (!args) SWIG_fail;
24072 swig_obj[0] = args;
24073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24074 if (!SWIG_IsOK(res1)) {
24075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24076 }
24077 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24078 result = (int)(int) ((arg1)->border);
24079 resultobj = SWIG_From_int(static_cast< int >(result));
24080 return resultobj;
24081 fail:
24082 return NULL;
24083 }
24084
24085
24086 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24087 PyObject *resultobj = 0;
24088 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24089 bool result;
24090 void *argp1 = 0 ;
24091 int res1 = 0 ;
24092 PyObject *swig_obj[1] ;
24093
24094 if (!args) SWIG_fail;
24095 swig_obj[0] = args;
24096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24097 if (!SWIG_IsOK(res1)) {
24098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24099 }
24100 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24101 result = (bool)(bool) ((arg1)->isHotSensitive);
24102 resultobj = SWIG_From_bool(static_cast< bool >(result));
24103 return resultobj;
24104 fail:
24105 return NULL;
24106 }
24107
24108
24109 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24110 PyObject *obj;
24111 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24112 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
24113 return SWIG_Py_Void();
24114 }
24115
24116 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24117 return SWIG_Python_InitShadowInstance(args);
24118 }
24119
24120 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24121 PyObject *resultobj = 0;
24122 int arg1 ;
24123 int arg2 ;
24124 wxRendererVersion *result = 0 ;
24125 int val1 ;
24126 int ecode1 = 0 ;
24127 int val2 ;
24128 int ecode2 = 0 ;
24129 PyObject * obj0 = 0 ;
24130 PyObject * obj1 = 0 ;
24131 char * kwnames[] = {
24132 (char *) "version_",(char *) "age_", NULL
24133 };
24134
24135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
24136 ecode1 = SWIG_AsVal_int(obj0, &val1);
24137 if (!SWIG_IsOK(ecode1)) {
24138 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
24139 }
24140 arg1 = static_cast< int >(val1);
24141 ecode2 = SWIG_AsVal_int(obj1, &val2);
24142 if (!SWIG_IsOK(ecode2)) {
24143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
24144 }
24145 arg2 = static_cast< int >(val2);
24146 {
24147 PyThreadState* __tstate = wxPyBeginAllowThreads();
24148 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
24149 wxPyEndAllowThreads(__tstate);
24150 if (PyErr_Occurred()) SWIG_fail;
24151 }
24152 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
24153 return resultobj;
24154 fail:
24155 return NULL;
24156 }
24157
24158
24159 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24160 PyObject *resultobj = 0;
24161 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24162 void *argp1 = 0 ;
24163 int res1 = 0 ;
24164 PyObject *swig_obj[1] ;
24165
24166 if (!args) SWIG_fail;
24167 swig_obj[0] = args;
24168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
24169 if (!SWIG_IsOK(res1)) {
24170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24171 }
24172 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24173 {
24174 PyThreadState* __tstate = wxPyBeginAllowThreads();
24175 delete arg1;
24176
24177 wxPyEndAllowThreads(__tstate);
24178 if (PyErr_Occurred()) SWIG_fail;
24179 }
24180 resultobj = SWIG_Py_Void();
24181 return resultobj;
24182 fail:
24183 return NULL;
24184 }
24185
24186
24187 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24188 PyObject *resultobj = 0;
24189 wxRendererVersion *arg1 = 0 ;
24190 bool result;
24191 void *argp1 = 0 ;
24192 int res1 = 0 ;
24193 PyObject * obj0 = 0 ;
24194 char * kwnames[] = {
24195 (char *) "ver", NULL
24196 };
24197
24198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
24199 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
24200 if (!SWIG_IsOK(res1)) {
24201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24202 }
24203 if (!argp1) {
24204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24205 }
24206 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24207 {
24208 PyThreadState* __tstate = wxPyBeginAllowThreads();
24209 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
24210 wxPyEndAllowThreads(__tstate);
24211 if (PyErr_Occurred()) SWIG_fail;
24212 }
24213 {
24214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24215 }
24216 return resultobj;
24217 fail:
24218 return NULL;
24219 }
24220
24221
24222 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24223 PyObject *resultobj = 0;
24224 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24225 int result;
24226 void *argp1 = 0 ;
24227 int res1 = 0 ;
24228 PyObject *swig_obj[1] ;
24229
24230 if (!args) SWIG_fail;
24231 swig_obj[0] = args;
24232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24233 if (!SWIG_IsOK(res1)) {
24234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24235 }
24236 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24237 result = (int)(int) ((arg1)->version);
24238 resultobj = SWIG_From_int(static_cast< int >(result));
24239 return resultobj;
24240 fail:
24241 return NULL;
24242 }
24243
24244
24245 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24246 PyObject *resultobj = 0;
24247 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24248 int result;
24249 void *argp1 = 0 ;
24250 int res1 = 0 ;
24251 PyObject *swig_obj[1] ;
24252
24253 if (!args) SWIG_fail;
24254 swig_obj[0] = args;
24255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24256 if (!SWIG_IsOK(res1)) {
24257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24258 }
24259 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24260 result = (int)(int) ((arg1)->age);
24261 resultobj = SWIG_From_int(static_cast< int >(result));
24262 return resultobj;
24263 fail:
24264 return NULL;
24265 }
24266
24267
24268 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24269 PyObject *obj;
24270 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24271 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
24272 return SWIG_Py_Void();
24273 }
24274
24275 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24276 return SWIG_Python_InitShadowInstance(args);
24277 }
24278
24279 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24280 PyObject *resultobj = 0;
24281 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24282 wxWindow *arg2 = (wxWindow *) 0 ;
24283 wxDC *arg3 = 0 ;
24284 wxRect *arg4 = 0 ;
24285 int arg5 = (int) 0 ;
24286 void *argp1 = 0 ;
24287 int res1 = 0 ;
24288 void *argp2 = 0 ;
24289 int res2 = 0 ;
24290 void *argp3 = 0 ;
24291 int res3 = 0 ;
24292 wxRect temp4 ;
24293 int val5 ;
24294 int ecode5 = 0 ;
24295 PyObject * obj0 = 0 ;
24296 PyObject * obj1 = 0 ;
24297 PyObject * obj2 = 0 ;
24298 PyObject * obj3 = 0 ;
24299 PyObject * obj4 = 0 ;
24300 char * kwnames[] = {
24301 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24302 };
24303
24304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24306 if (!SWIG_IsOK(res1)) {
24307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24308 }
24309 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24310 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24311 if (!SWIG_IsOK(res2)) {
24312 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24313 }
24314 arg2 = reinterpret_cast< wxWindow * >(argp2);
24315 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24316 if (!SWIG_IsOK(res3)) {
24317 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24318 }
24319 if (!argp3) {
24320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24321 }
24322 arg3 = reinterpret_cast< wxDC * >(argp3);
24323 {
24324 arg4 = &temp4;
24325 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24326 }
24327 if (obj4) {
24328 ecode5 = SWIG_AsVal_int(obj4, &val5);
24329 if (!SWIG_IsOK(ecode5)) {
24330 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
24331 }
24332 arg5 = static_cast< int >(val5);
24333 }
24334 {
24335 PyThreadState* __tstate = wxPyBeginAllowThreads();
24336 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24337 wxPyEndAllowThreads(__tstate);
24338 if (PyErr_Occurred()) SWIG_fail;
24339 }
24340 resultobj = SWIG_Py_Void();
24341 return resultobj;
24342 fail:
24343 return NULL;
24344 }
24345
24346
24347 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24348 PyObject *resultobj = 0;
24349 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24350 wxWindow *arg2 = (wxWindow *) 0 ;
24351 wxDC *arg3 = 0 ;
24352 wxRect *arg4 = 0 ;
24353 int arg5 = (int) 0 ;
24354 void *argp1 = 0 ;
24355 int res1 = 0 ;
24356 void *argp2 = 0 ;
24357 int res2 = 0 ;
24358 void *argp3 = 0 ;
24359 int res3 = 0 ;
24360 wxRect temp4 ;
24361 int val5 ;
24362 int ecode5 = 0 ;
24363 PyObject * obj0 = 0 ;
24364 PyObject * obj1 = 0 ;
24365 PyObject * obj2 = 0 ;
24366 PyObject * obj3 = 0 ;
24367 PyObject * obj4 = 0 ;
24368 char * kwnames[] = {
24369 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24370 };
24371
24372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24374 if (!SWIG_IsOK(res1)) {
24375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24376 }
24377 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24378 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24379 if (!SWIG_IsOK(res2)) {
24380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24381 }
24382 arg2 = reinterpret_cast< wxWindow * >(argp2);
24383 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24384 if (!SWIG_IsOK(res3)) {
24385 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24386 }
24387 if (!argp3) {
24388 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24389 }
24390 arg3 = reinterpret_cast< wxDC * >(argp3);
24391 {
24392 arg4 = &temp4;
24393 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24394 }
24395 if (obj4) {
24396 ecode5 = SWIG_AsVal_int(obj4, &val5);
24397 if (!SWIG_IsOK(ecode5)) {
24398 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
24399 }
24400 arg5 = static_cast< int >(val5);
24401 }
24402 {
24403 PyThreadState* __tstate = wxPyBeginAllowThreads();
24404 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24405 wxPyEndAllowThreads(__tstate);
24406 if (PyErr_Occurred()) SWIG_fail;
24407 }
24408 resultobj = SWIG_Py_Void();
24409 return resultobj;
24410 fail:
24411 return NULL;
24412 }
24413
24414
24415 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24416 PyObject *resultobj = 0;
24417 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24418 wxWindow *arg2 = (wxWindow *) 0 ;
24419 wxDC *arg3 = 0 ;
24420 wxRect *arg4 = 0 ;
24421 int arg5 = (int) 0 ;
24422 void *argp1 = 0 ;
24423 int res1 = 0 ;
24424 void *argp2 = 0 ;
24425 int res2 = 0 ;
24426 void *argp3 = 0 ;
24427 int res3 = 0 ;
24428 wxRect temp4 ;
24429 int val5 ;
24430 int ecode5 = 0 ;
24431 PyObject * obj0 = 0 ;
24432 PyObject * obj1 = 0 ;
24433 PyObject * obj2 = 0 ;
24434 PyObject * obj3 = 0 ;
24435 PyObject * obj4 = 0 ;
24436 char * kwnames[] = {
24437 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24438 };
24439
24440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24442 if (!SWIG_IsOK(res1)) {
24443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24444 }
24445 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24446 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24447 if (!SWIG_IsOK(res2)) {
24448 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
24449 }
24450 arg2 = reinterpret_cast< wxWindow * >(argp2);
24451 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24452 if (!SWIG_IsOK(res3)) {
24453 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24454 }
24455 if (!argp3) {
24456 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24457 }
24458 arg3 = reinterpret_cast< wxDC * >(argp3);
24459 {
24460 arg4 = &temp4;
24461 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24462 }
24463 if (obj4) {
24464 ecode5 = SWIG_AsVal_int(obj4, &val5);
24465 if (!SWIG_IsOK(ecode5)) {
24466 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
24467 }
24468 arg5 = static_cast< int >(val5);
24469 }
24470 {
24471 PyThreadState* __tstate = wxPyBeginAllowThreads();
24472 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
24473 wxPyEndAllowThreads(__tstate);
24474 if (PyErr_Occurred()) SWIG_fail;
24475 }
24476 resultobj = SWIG_Py_Void();
24477 return resultobj;
24478 fail:
24479 return NULL;
24480 }
24481
24482
24483 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24484 PyObject *resultobj = 0;
24485 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24486 wxWindow *arg2 = (wxWindow *) 0 ;
24487 wxDC *arg3 = 0 ;
24488 wxSize *arg4 = 0 ;
24489 int arg5 ;
24490 wxOrientation arg6 ;
24491 int arg7 = (int) 0 ;
24492 void *argp1 = 0 ;
24493 int res1 = 0 ;
24494 void *argp2 = 0 ;
24495 int res2 = 0 ;
24496 void *argp3 = 0 ;
24497 int res3 = 0 ;
24498 wxSize temp4 ;
24499 int val5 ;
24500 int ecode5 = 0 ;
24501 int val6 ;
24502 int ecode6 = 0 ;
24503 int val7 ;
24504 int ecode7 = 0 ;
24505 PyObject * obj0 = 0 ;
24506 PyObject * obj1 = 0 ;
24507 PyObject * obj2 = 0 ;
24508 PyObject * obj3 = 0 ;
24509 PyObject * obj4 = 0 ;
24510 PyObject * obj5 = 0 ;
24511 PyObject * obj6 = 0 ;
24512 char * kwnames[] = {
24513 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
24514 };
24515
24516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24518 if (!SWIG_IsOK(res1)) {
24519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24520 }
24521 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24522 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24523 if (!SWIG_IsOK(res2)) {
24524 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
24525 }
24526 arg2 = reinterpret_cast< wxWindow * >(argp2);
24527 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24528 if (!SWIG_IsOK(res3)) {
24529 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24530 }
24531 if (!argp3) {
24532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24533 }
24534 arg3 = reinterpret_cast< wxDC * >(argp3);
24535 {
24536 arg4 = &temp4;
24537 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24538 }
24539 ecode5 = SWIG_AsVal_int(obj4, &val5);
24540 if (!SWIG_IsOK(ecode5)) {
24541 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
24542 }
24543 arg5 = static_cast< int >(val5);
24544 ecode6 = SWIG_AsVal_int(obj5, &val6);
24545 if (!SWIG_IsOK(ecode6)) {
24546 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
24547 }
24548 arg6 = static_cast< wxOrientation >(val6);
24549 if (obj6) {
24550 ecode7 = SWIG_AsVal_int(obj6, &val7);
24551 if (!SWIG_IsOK(ecode7)) {
24552 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
24553 }
24554 arg7 = static_cast< int >(val7);
24555 }
24556 {
24557 PyThreadState* __tstate = wxPyBeginAllowThreads();
24558 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
24559 wxPyEndAllowThreads(__tstate);
24560 if (PyErr_Occurred()) SWIG_fail;
24561 }
24562 resultobj = SWIG_Py_Void();
24563 return resultobj;
24564 fail:
24565 return NULL;
24566 }
24567
24568
24569 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24570 PyObject *resultobj = 0;
24571 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24572 wxWindow *arg2 = (wxWindow *) 0 ;
24573 wxDC *arg3 = 0 ;
24574 wxRect *arg4 = 0 ;
24575 int arg5 = (int) 0 ;
24576 void *argp1 = 0 ;
24577 int res1 = 0 ;
24578 void *argp2 = 0 ;
24579 int res2 = 0 ;
24580 void *argp3 = 0 ;
24581 int res3 = 0 ;
24582 wxRect temp4 ;
24583 int val5 ;
24584 int ecode5 = 0 ;
24585 PyObject * obj0 = 0 ;
24586 PyObject * obj1 = 0 ;
24587 PyObject * obj2 = 0 ;
24588 PyObject * obj3 = 0 ;
24589 PyObject * obj4 = 0 ;
24590 char * kwnames[] = {
24591 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24592 };
24593
24594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24596 if (!SWIG_IsOK(res1)) {
24597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24598 }
24599 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24600 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24601 if (!SWIG_IsOK(res2)) {
24602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24603 }
24604 arg2 = reinterpret_cast< wxWindow * >(argp2);
24605 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24606 if (!SWIG_IsOK(res3)) {
24607 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24608 }
24609 if (!argp3) {
24610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24611 }
24612 arg3 = reinterpret_cast< wxDC * >(argp3);
24613 {
24614 arg4 = &temp4;
24615 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24616 }
24617 if (obj4) {
24618 ecode5 = SWIG_AsVal_int(obj4, &val5);
24619 if (!SWIG_IsOK(ecode5)) {
24620 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
24621 }
24622 arg5 = static_cast< int >(val5);
24623 }
24624 {
24625 PyThreadState* __tstate = wxPyBeginAllowThreads();
24626 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24627 wxPyEndAllowThreads(__tstate);
24628 if (PyErr_Occurred()) SWIG_fail;
24629 }
24630 resultobj = SWIG_Py_Void();
24631 return resultobj;
24632 fail:
24633 return NULL;
24634 }
24635
24636
24637 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24638 PyObject *resultobj = 0;
24639 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24640 wxWindow *arg2 = (wxWindow *) 0 ;
24641 wxDC *arg3 = 0 ;
24642 wxRect *arg4 = 0 ;
24643 int arg5 = (int) 0 ;
24644 void *argp1 = 0 ;
24645 int res1 = 0 ;
24646 void *argp2 = 0 ;
24647 int res2 = 0 ;
24648 void *argp3 = 0 ;
24649 int res3 = 0 ;
24650 wxRect temp4 ;
24651 int val5 ;
24652 int ecode5 = 0 ;
24653 PyObject * obj0 = 0 ;
24654 PyObject * obj1 = 0 ;
24655 PyObject * obj2 = 0 ;
24656 PyObject * obj3 = 0 ;
24657 PyObject * obj4 = 0 ;
24658 char * kwnames[] = {
24659 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24660 };
24661
24662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24664 if (!SWIG_IsOK(res1)) {
24665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24666 }
24667 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24668 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24669 if (!SWIG_IsOK(res2)) {
24670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
24671 }
24672 arg2 = reinterpret_cast< wxWindow * >(argp2);
24673 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24674 if (!SWIG_IsOK(res3)) {
24675 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24676 }
24677 if (!argp3) {
24678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24679 }
24680 arg3 = reinterpret_cast< wxDC * >(argp3);
24681 {
24682 arg4 = &temp4;
24683 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24684 }
24685 if (obj4) {
24686 ecode5 = SWIG_AsVal_int(obj4, &val5);
24687 if (!SWIG_IsOK(ecode5)) {
24688 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
24689 }
24690 arg5 = static_cast< int >(val5);
24691 }
24692 {
24693 PyThreadState* __tstate = wxPyBeginAllowThreads();
24694 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
24695 wxPyEndAllowThreads(__tstate);
24696 if (PyErr_Occurred()) SWIG_fail;
24697 }
24698 resultobj = SWIG_Py_Void();
24699 return resultobj;
24700 fail:
24701 return NULL;
24702 }
24703
24704
24705 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24706 PyObject *resultobj = 0;
24707 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24708 wxWindow *arg2 = (wxWindow *) 0 ;
24709 wxDC *arg3 = 0 ;
24710 wxRect *arg4 = 0 ;
24711 int arg5 = (int) 0 ;
24712 void *argp1 = 0 ;
24713 int res1 = 0 ;
24714 void *argp2 = 0 ;
24715 int res2 = 0 ;
24716 void *argp3 = 0 ;
24717 int res3 = 0 ;
24718 wxRect temp4 ;
24719 int val5 ;
24720 int ecode5 = 0 ;
24721 PyObject * obj0 = 0 ;
24722 PyObject * obj1 = 0 ;
24723 PyObject * obj2 = 0 ;
24724 PyObject * obj3 = 0 ;
24725 PyObject * obj4 = 0 ;
24726 char * kwnames[] = {
24727 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24728 };
24729
24730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24732 if (!SWIG_IsOK(res1)) {
24733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24734 }
24735 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24736 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24737 if (!SWIG_IsOK(res2)) {
24738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
24739 }
24740 arg2 = reinterpret_cast< wxWindow * >(argp2);
24741 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24742 if (!SWIG_IsOK(res3)) {
24743 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
24744 }
24745 if (!argp3) {
24746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
24747 }
24748 arg3 = reinterpret_cast< wxDC * >(argp3);
24749 {
24750 arg4 = &temp4;
24751 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24752 }
24753 if (obj4) {
24754 ecode5 = SWIG_AsVal_int(obj4, &val5);
24755 if (!SWIG_IsOK(ecode5)) {
24756 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
24757 }
24758 arg5 = static_cast< int >(val5);
24759 }
24760 {
24761 PyThreadState* __tstate = wxPyBeginAllowThreads();
24762 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
24763 wxPyEndAllowThreads(__tstate);
24764 if (PyErr_Occurred()) SWIG_fail;
24765 }
24766 resultobj = SWIG_Py_Void();
24767 return resultobj;
24768 fail:
24769 return NULL;
24770 }
24771
24772
24773 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24774 PyObject *resultobj = 0;
24775 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24776 wxWindow *arg2 = (wxWindow *) 0 ;
24777 wxDC *arg3 = 0 ;
24778 wxRect *arg4 = 0 ;
24779 int arg5 = (int) 0 ;
24780 void *argp1 = 0 ;
24781 int res1 = 0 ;
24782 void *argp2 = 0 ;
24783 int res2 = 0 ;
24784 void *argp3 = 0 ;
24785 int res3 = 0 ;
24786 wxRect temp4 ;
24787 int val5 ;
24788 int ecode5 = 0 ;
24789 PyObject * obj0 = 0 ;
24790 PyObject * obj1 = 0 ;
24791 PyObject * obj2 = 0 ;
24792 PyObject * obj3 = 0 ;
24793 PyObject * obj4 = 0 ;
24794 char * kwnames[] = {
24795 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24796 };
24797
24798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24800 if (!SWIG_IsOK(res1)) {
24801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24802 }
24803 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24804 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24805 if (!SWIG_IsOK(res2)) {
24806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24807 }
24808 arg2 = reinterpret_cast< wxWindow * >(argp2);
24809 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24810 if (!SWIG_IsOK(res3)) {
24811 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
24812 }
24813 if (!argp3) {
24814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
24815 }
24816 arg3 = reinterpret_cast< wxDC * >(argp3);
24817 {
24818 arg4 = &temp4;
24819 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24820 }
24821 if (obj4) {
24822 ecode5 = SWIG_AsVal_int(obj4, &val5);
24823 if (!SWIG_IsOK(ecode5)) {
24824 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
24825 }
24826 arg5 = static_cast< int >(val5);
24827 }
24828 {
24829 PyThreadState* __tstate = wxPyBeginAllowThreads();
24830 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24831 wxPyEndAllowThreads(__tstate);
24832 if (PyErr_Occurred()) SWIG_fail;
24833 }
24834 resultobj = SWIG_Py_Void();
24835 return resultobj;
24836 fail:
24837 return NULL;
24838 }
24839
24840
24841 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24842 PyObject *resultobj = 0;
24843 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24844 wxWindow *arg2 = (wxWindow *) 0 ;
24845 wxDC *arg3 = 0 ;
24846 wxRect *arg4 = 0 ;
24847 int arg5 = (int) 0 ;
24848 void *argp1 = 0 ;
24849 int res1 = 0 ;
24850 void *argp2 = 0 ;
24851 int res2 = 0 ;
24852 void *argp3 = 0 ;
24853 int res3 = 0 ;
24854 wxRect temp4 ;
24855 int val5 ;
24856 int ecode5 = 0 ;
24857 PyObject * obj0 = 0 ;
24858 PyObject * obj1 = 0 ;
24859 PyObject * obj2 = 0 ;
24860 PyObject * obj3 = 0 ;
24861 PyObject * obj4 = 0 ;
24862 char * kwnames[] = {
24863 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24864 };
24865
24866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24868 if (!SWIG_IsOK(res1)) {
24869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24870 }
24871 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24872 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24873 if (!SWIG_IsOK(res2)) {
24874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
24875 }
24876 arg2 = reinterpret_cast< wxWindow * >(argp2);
24877 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24878 if (!SWIG_IsOK(res3)) {
24879 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
24880 }
24881 if (!argp3) {
24882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
24883 }
24884 arg3 = reinterpret_cast< wxDC * >(argp3);
24885 {
24886 arg4 = &temp4;
24887 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24888 }
24889 if (obj4) {
24890 ecode5 = SWIG_AsVal_int(obj4, &val5);
24891 if (!SWIG_IsOK(ecode5)) {
24892 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
24893 }
24894 arg5 = static_cast< int >(val5);
24895 }
24896 {
24897 PyThreadState* __tstate = wxPyBeginAllowThreads();
24898 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
24899 wxPyEndAllowThreads(__tstate);
24900 if (PyErr_Occurred()) SWIG_fail;
24901 }
24902 resultobj = SWIG_Py_Void();
24903 return resultobj;
24904 fail:
24905 return NULL;
24906 }
24907
24908
24909 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24910 PyObject *resultobj = 0;
24911 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24912 wxWindow *arg2 = (wxWindow *) 0 ;
24913 SwigValueWrapper<wxSplitterRenderParams > result;
24914 void *argp1 = 0 ;
24915 int res1 = 0 ;
24916 void *argp2 = 0 ;
24917 int res2 = 0 ;
24918 PyObject * obj0 = 0 ;
24919 PyObject * obj1 = 0 ;
24920 char * kwnames[] = {
24921 (char *) "self",(char *) "win", NULL
24922 };
24923
24924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
24925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24926 if (!SWIG_IsOK(res1)) {
24927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24928 }
24929 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24930 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24931 if (!SWIG_IsOK(res2)) {
24932 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
24933 }
24934 arg2 = reinterpret_cast< wxWindow * >(argp2);
24935 {
24936 PyThreadState* __tstate = wxPyBeginAllowThreads();
24937 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
24938 wxPyEndAllowThreads(__tstate);
24939 if (PyErr_Occurred()) SWIG_fail;
24940 }
24941 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
24942 return resultobj;
24943 fail:
24944 return NULL;
24945 }
24946
24947
24948 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24949 PyObject *resultobj = 0;
24950 wxRendererNative *result = 0 ;
24951
24952 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
24953 {
24954 if (!wxPyCheckForApp()) SWIG_fail;
24955 PyThreadState* __tstate = wxPyBeginAllowThreads();
24956 {
24957 wxRendererNative &_result_ref = wxRendererNative::Get();
24958 result = (wxRendererNative *) &_result_ref;
24959 }
24960 wxPyEndAllowThreads(__tstate);
24961 if (PyErr_Occurred()) SWIG_fail;
24962 }
24963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24964 return resultobj;
24965 fail:
24966 return NULL;
24967 }
24968
24969
24970 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24971 PyObject *resultobj = 0;
24972 wxRendererNative *result = 0 ;
24973
24974 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
24975 {
24976 if (!wxPyCheckForApp()) SWIG_fail;
24977 PyThreadState* __tstate = wxPyBeginAllowThreads();
24978 {
24979 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
24980 result = (wxRendererNative *) &_result_ref;
24981 }
24982 wxPyEndAllowThreads(__tstate);
24983 if (PyErr_Occurred()) SWIG_fail;
24984 }
24985 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24986 return resultobj;
24987 fail:
24988 return NULL;
24989 }
24990
24991
24992 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24993 PyObject *resultobj = 0;
24994 wxRendererNative *result = 0 ;
24995
24996 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
24997 {
24998 if (!wxPyCheckForApp()) SWIG_fail;
24999 PyThreadState* __tstate = wxPyBeginAllowThreads();
25000 {
25001 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
25002 result = (wxRendererNative *) &_result_ref;
25003 }
25004 wxPyEndAllowThreads(__tstate);
25005 if (PyErr_Occurred()) SWIG_fail;
25006 }
25007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25008 return resultobj;
25009 fail:
25010 return NULL;
25011 }
25012
25013
25014 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25015 PyObject *resultobj = 0;
25016 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25017 wxRendererNative *result = 0 ;
25018 void *argp1 = 0 ;
25019 int res1 = 0 ;
25020 PyObject * obj0 = 0 ;
25021 char * kwnames[] = {
25022 (char *) "renderer", NULL
25023 };
25024
25025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
25026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25027 if (!SWIG_IsOK(res1)) {
25028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25029 }
25030 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25031 {
25032 if (!wxPyCheckForApp()) SWIG_fail;
25033 PyThreadState* __tstate = wxPyBeginAllowThreads();
25034 result = (wxRendererNative *)wxRendererNative::Set(arg1);
25035 wxPyEndAllowThreads(__tstate);
25036 if (PyErr_Occurred()) SWIG_fail;
25037 }
25038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25039 return resultobj;
25040 fail:
25041 return NULL;
25042 }
25043
25044
25045 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25046 PyObject *resultobj = 0;
25047 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25048 SwigValueWrapper<wxRendererVersion > result;
25049 void *argp1 = 0 ;
25050 int res1 = 0 ;
25051 PyObject *swig_obj[1] ;
25052
25053 if (!args) SWIG_fail;
25054 swig_obj[0] = args;
25055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25056 if (!SWIG_IsOK(res1)) {
25057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
25058 }
25059 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25060 {
25061 PyThreadState* __tstate = wxPyBeginAllowThreads();
25062 result = ((wxRendererNative const *)arg1)->GetVersion();
25063 wxPyEndAllowThreads(__tstate);
25064 if (PyErr_Occurred()) SWIG_fail;
25065 }
25066 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
25067 return resultobj;
25068 fail:
25069 return NULL;
25070 }
25071
25072
25073 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25074 PyObject *obj;
25075 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25076 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
25077 return SWIG_Py_Void();
25078 }
25079
25080 static PyMethodDef SwigMethods[] = {
25081 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
25082 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
25083 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
25084 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
25085 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
25086 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
25087 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
25088 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25089 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
25090 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
25091 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
25092 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
25093 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
25094 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25095 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25096 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
25097 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
25098 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
25099 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25100 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25101 { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL},
25102 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
25103 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
25104 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
25105 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
25106 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
25107 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
25108 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25109 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
25110 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
25111 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
25112 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
25113 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
25114 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
25115 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
25116 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
25117 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
25118 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
25119 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
25120 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
25121 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
25122 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25123 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
25124 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25125 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25126 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
25127 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
25128 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
25129 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25130 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25131 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
25132 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
25133 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
25134 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25135 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
25136 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25137 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25138 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
25139 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
25140 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
25141 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
25142 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
25143 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
25144 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
25145 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
25146 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
25147 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
25148 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25149 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
25150 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25151 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25152 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
25153 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
25154 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
25155 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
25156 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
25157 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
25158 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
25159 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
25160 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
25161 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
25162 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
25163 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
25164 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25165 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
25166 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
25167 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
25168 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25169 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25170 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25171 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25172 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25173 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25174 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25175 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
25176 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
25177 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
25178 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
25179 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
25180 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
25181 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
25182 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
25183 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
25184 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
25185 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25186 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
25187 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
25188 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
25189 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
25190 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
25191 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25192 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25193 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25194 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25195 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
25196 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
25197 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
25198 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
25199 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
25200 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
25201 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
25202 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
25203 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
25204 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
25205 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
25206 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
25207 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
25208 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25209 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
25210 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25211 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
25212 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25213 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
25214 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
25215 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
25216 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
25217 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25218 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
25219 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
25220 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
25221 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
25222 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
25223 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25224 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25225 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
25226 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
25227 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
25228 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
25229 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
25230 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25231 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
25232 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
25233 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
25234 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
25235 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
25236 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25237 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
25238 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
25239 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
25240 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25241 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
25242 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
25243 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25244 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
25245 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
25246 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25247 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
25248 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25249 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25250 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
25251 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
25252 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
25253 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
25254 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
25255 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
25256 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
25257 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
25258 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
25259 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
25260 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
25261 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
25262 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
25263 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
25264 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
25265 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
25266 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
25267 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
25268 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
25269 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
25270 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
25271 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
25272 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
25273 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
25274 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
25275 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
25276 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
25277 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
25278 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25279 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25280 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
25281 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
25282 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
25283 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
25284 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25285 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
25286 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
25287 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
25288 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
25289 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
25290 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
25291 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
25292 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
25293 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
25294 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
25295 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
25296 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
25297 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
25298 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
25299 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
25300 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
25301 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
25302 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25303 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25304 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
25305 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
25306 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
25307 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25308 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25309 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
25310 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25311 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
25312 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
25313 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
25314 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
25315 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
25316 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25317 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
25318 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
25319 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
25320 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
25321 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
25322 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
25323 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
25324 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25325 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
25326 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
25327 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25328 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25329 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
25330 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25331 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25332 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
25333 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
25334 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
25335 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
25336 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
25337 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
25338 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
25339 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
25340 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
25341 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
25342 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
25343 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
25344 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
25345 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25346 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25347 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
25348 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25349 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
25350 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
25351 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
25352 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25353 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25354 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
25355 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
25356 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
25357 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
25358 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
25359 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
25360 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
25361 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
25362 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25363 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
25364 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
25365 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
25366 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
25367 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25368 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
25369 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
25370 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
25371 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
25372 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
25373 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
25374 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
25375 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
25376 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
25377 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
25378 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
25379 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
25380 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
25381 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
25382 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
25383 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
25384 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
25385 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
25386 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
25387 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
25388 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
25389 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
25390 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
25391 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
25392 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
25393 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
25394 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
25395 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
25396 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
25397 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25398 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
25399 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25400 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
25401 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
25402 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
25403 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
25404 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
25405 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
25406 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
25407 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
25408 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
25409 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
25410 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
25411 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
25412 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
25413 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
25414 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
25415 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
25416 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
25417 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
25418 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25419 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
25420 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
25421 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
25422 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25423 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
25424 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
25425 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
25426 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25427 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
25428 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25429 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
25430 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
25431 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
25432 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25433 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25434 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25435 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
25436 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
25437 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25438 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
25439 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
25440 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25441 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
25442 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
25443 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
25444 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
25445 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25446 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25447 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25448 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25449 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25450 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
25451 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25452 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
25453 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25454 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
25455 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25456 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25457 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25458 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25459 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
25460 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
25461 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
25462 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
25463 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
25464 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
25465 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
25466 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
25467 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
25468 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
25469 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
25470 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
25471 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
25472 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25473 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
25474 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
25475 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
25476 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
25477 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
25478 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
25479 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
25480 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
25481 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25482 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25483 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25484 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
25485 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
25486 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
25487 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
25488 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
25489 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
25490 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
25491 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
25492 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
25493 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
25494 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
25495 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
25496 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
25497 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
25498 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
25499 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
25500 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
25501 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
25502 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
25503 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
25504 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
25505 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
25506 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
25507 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
25508 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
25509 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
25510 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
25511 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
25512 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
25513 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
25514 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
25515 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
25516 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
25517 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
25518 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
25519 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
25520 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25521 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
25522 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
25523 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
25524 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25525 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
25526 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
25527 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
25528 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
25529 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
25530 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25531 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
25532 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
25533 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
25534 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
25535 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
25536 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
25537 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
25538 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
25539 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
25540 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
25541 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
25542 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
25543 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
25544 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
25545 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
25546 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
25547 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
25548 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
25549 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
25550 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
25551 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
25552 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
25553 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
25554 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
25555 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
25556 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
25557 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
25558 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
25559 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
25560 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
25561 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
25562 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
25563 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
25564 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
25565 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
25566 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
25567 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
25568 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
25569 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
25570 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
25571 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
25572 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
25573 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
25574 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
25575 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
25576 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
25577 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
25578 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
25579 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
25580 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
25581 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
25582 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
25583 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
25584 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
25585 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
25586 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
25587 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
25588 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
25589 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
25590 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
25591 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
25592 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
25593 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
25594 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
25595 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
25596 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
25597 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
25598 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
25599 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
25600 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
25601 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
25602 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25603 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25604 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25605 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
25606 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
25607 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
25608 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
25609 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
25610 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25611 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
25612 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
25613 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
25614 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
25615 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
25616 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
25617 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25618 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25619 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25620 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
25621 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
25622 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
25623 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
25624 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
25625 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
25626 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
25627 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
25628 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
25629 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
25630 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
25631 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
25632 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25633 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25634 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25635 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
25636 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
25637 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
25638 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
25639 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
25640 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
25641 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
25642 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
25643 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
25644 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
25645 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
25646 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
25647 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
25648 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
25649 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
25650 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
25651 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
25652 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
25653 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
25654 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
25655 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
25656 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
25657 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
25658 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
25659 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25660 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
25661 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25662 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25663 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25664 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
25665 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25666 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
25667 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
25668 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
25669 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
25670 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
25671 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
25672 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
25673 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
25674 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
25675 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
25676 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
25677 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
25678 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
25679 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
25680 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
25681 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
25682 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
25683 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
25684 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
25685 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
25686 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
25687 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
25688 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
25689 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
25690 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
25691 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
25692 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
25693 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
25694 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
25695 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25696 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
25697 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
25698 { NULL, NULL, 0, NULL }
25699 };
25700
25701
25702 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
25703
25704 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
25705 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
25706 }
25707 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
25708 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
25709 }
25710 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
25711 return (void *)((wxGDIObject *) ((wxIcon *) x));
25712 }
25713 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
25714 return (void *)((wxGDIObject *) ((wxPalette *) x));
25715 }
25716 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
25717 return (void *)((wxGDIObject *) ((wxPen *) x));
25718 }
25719 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
25720 return (void *)((wxGDIObject *) ((wxFont *) x));
25721 }
25722 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
25723 return (void *)((wxGDIObject *) ((wxCursor *) x));
25724 }
25725 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
25726 return (void *)((wxGDIObject *) ((wxBitmap *) x));
25727 }
25728 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
25729 return (void *)((wxGDIObject *) ((wxRegion *) x));
25730 }
25731 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
25732 return (void *)((wxGDIObject *) ((wxBrush *) x));
25733 }
25734 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
25735 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
25736 }
25737 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
25738 return (void *)((wxDC *) ((wxScreenDC *) x));
25739 }
25740 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
25741 return (void *)((wxDC *) ((wxMirrorDC *) x));
25742 }
25743 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
25744 return (void *)((wxDC *) ((wxMemoryDC *) x));
25745 }
25746 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
25747 return (void *)((wxDC *) ((wxWindowDC *) x));
25748 }
25749 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
25750 return (void *)((wxDC *) ((wxMetaFileDC *) x));
25751 }
25752 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
25753 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
25754 }
25755 static void *_p_wxClientDCTo_p_wxDC(void *x) {
25756 return (void *)((wxDC *) ((wxClientDC *) x));
25757 }
25758 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
25759 return (void *)((wxDC *) ((wxPaintDC *) x));
25760 }
25761 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
25762 return (void *)((wxDC *) ((wxPostScriptDC *) x));
25763 }
25764 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
25765 return (void *)((wxDC *) ((wxPrinterDC *) x));
25766 }
25767 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
25768 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
25769 }
25770 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
25771 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
25772 }
25773 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
25774 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
25775 }
25776 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
25777 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
25778 }
25779 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
25780 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
25781 }
25782 static void *_p_wxPenTo_p_wxObject(void *x) {
25783 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
25784 }
25785 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
25786 return (void *)((wxObject *) ((wxRegionIterator *) x));
25787 }
25788 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
25789 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
25790 }
25791 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
25792 return (void *)((wxObject *) ((wxSizerItem *) x));
25793 }
25794 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
25795 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
25796 }
25797 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
25798 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
25799 }
25800 static void *_p_wxIconTo_p_wxObject(void *x) {
25801 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
25802 }
25803 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
25804 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
25805 }
25806 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
25807 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
25808 }
25809 static void *_p_wxSizerTo_p_wxObject(void *x) {
25810 return (void *)((wxObject *) ((wxSizer *) x));
25811 }
25812 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
25813 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
25814 }
25815 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
25816 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
25817 }
25818 static void *_p_wxEventTo_p_wxObject(void *x) {
25819 return (void *)((wxObject *) ((wxEvent *) x));
25820 }
25821 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
25822 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
25823 }
25824 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
25825 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
25826 }
25827 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
25828 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
25829 }
25830 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
25831 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
25832 }
25833 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
25834 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
25835 }
25836 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
25837 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
25838 }
25839 static void *_p_wxDCTo_p_wxObject(void *x) {
25840 return (void *)((wxObject *) ((wxDC *) x));
25841 }
25842 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
25843 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
25844 }
25845 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
25846 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
25847 }
25848 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
25849 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
25850 }
25851 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
25852 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
25853 }
25854 static void *_p_wxControlTo_p_wxObject(void *x) {
25855 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
25856 }
25857 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
25858 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
25859 }
25860 static void *_p_wxClientDCTo_p_wxObject(void *x) {
25861 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
25862 }
25863 static void *_p_wxFSFileTo_p_wxObject(void *x) {
25864 return (void *)((wxObject *) ((wxFSFile *) x));
25865 }
25866 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
25867 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
25868 }
25869 static void *_p_wxRegionTo_p_wxObject(void *x) {
25870 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
25871 }
25872 static void *_p_wxPySizerTo_p_wxObject(void *x) {
25873 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
25874 }
25875 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
25876 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
25877 }
25878 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
25879 return (void *)((wxObject *) ((wxGDIObject *) x));
25880 }
25881 static void *_p_wxEffectsTo_p_wxObject(void *x) {
25882 return (void *)((wxObject *) ((wxEffects *) x));
25883 }
25884 static void *_p_wxPyEventTo_p_wxObject(void *x) {
25885 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
25886 }
25887 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
25888 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
25889 }
25890 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
25891 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
25892 }
25893 static void *_p_wxShowEventTo_p_wxObject(void *x) {
25894 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
25895 }
25896 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
25897 return (void *)((wxObject *) ((wxMenuItem *) x));
25898 }
25899 static void *_p_wxDateEventTo_p_wxObject(void *x) {
25900 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
25901 }
25902 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
25903 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
25904 }
25905 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
25906 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
25907 }
25908 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
25909 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
25910 }
25911 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
25912 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
25913 }
25914 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
25915 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
25916 }
25917 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
25918 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
25919 }
25920 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
25921 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
25922 }
25923 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
25924 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
25925 }
25926 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
25927 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
25928 }
25929 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
25930 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
25931 }
25932 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
25933 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
25934 }
25935 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
25936 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
25937 }
25938 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
25939 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
25940 }
25941 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
25942 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
25943 }
25944 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
25945 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
25946 }
25947 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
25948 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
25949 }
25950 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
25951 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
25952 }
25953 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
25954 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
25955 }
25956 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
25957 return (void *)((wxObject *) ((wxImageHandler *) x));
25958 }
25959 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
25960 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
25961 }
25962 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
25963 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
25964 }
25965 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
25966 return (void *)((wxObject *) ((wxEvtHandler *) x));
25967 }
25968 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
25969 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
25970 }
25971 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
25972 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
25973 }
25974 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
25975 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
25976 }
25977 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
25978 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
25979 }
25980 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
25981 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
25982 }
25983 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
25984 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
25985 }
25986 static void *_p_wxImageTo_p_wxObject(void *x) {
25987 return (void *)((wxObject *) ((wxImage *) x));
25988 }
25989 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
25990 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
25991 }
25992 static void *_p_wxPaletteTo_p_wxObject(void *x) {
25993 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
25994 }
25995 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
25996 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
25997 }
25998 static void *_p_wxImageListTo_p_wxObject(void *x) {
25999 return (void *)((wxObject *) ((wxImageList *) x));
26000 }
26001 static void *_p_wxCursorTo_p_wxObject(void *x) {
26002 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
26003 }
26004 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
26005 return (void *)((wxObject *) ((wxEncodingConverter *) x));
26006 }
26007 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
26008 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
26009 }
26010 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
26011 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
26012 }
26013 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
26014 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
26015 }
26016 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
26017 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
26018 }
26019 static void *_p_wxWindowTo_p_wxObject(void *x) {
26020 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
26021 }
26022 static void *_p_wxMenuTo_p_wxObject(void *x) {
26023 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
26024 }
26025 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
26026 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
26027 }
26028 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
26029 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
26030 }
26031 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
26032 return (void *)((wxObject *) ((wxFileSystem *) x));
26033 }
26034 static void *_p_wxBitmapTo_p_wxObject(void *x) {
26035 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
26036 }
26037 static void *_p_wxMaskTo_p_wxObject(void *x) {
26038 return (void *)((wxObject *) ((wxMask *) x));
26039 }
26040 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
26041 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
26042 }
26043 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
26044 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
26045 }
26046 static void *_p_wxPyAppTo_p_wxObject(void *x) {
26047 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
26048 }
26049 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
26050 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
26051 }
26052 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
26053 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
26054 }
26055 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
26056 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
26057 }
26058 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
26059 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
26060 }
26061 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
26062 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
26063 }
26064 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
26065 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
26066 }
26067 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
26068 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
26069 }
26070 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
26071 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
26072 }
26073 static void *_p_wxFontTo_p_wxObject(void *x) {
26074 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
26075 }
26076 static void *_p_wxBrushTo_p_wxObject(void *x) {
26077 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
26078 }
26079 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
26080 return (void *)((wxObject *) ((wxMetaFile *) x));
26081 }
26082 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
26083 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
26084 }
26085 static void *_p_wxColourTo_p_wxObject(void *x) {
26086 return (void *)((wxObject *) ((wxColour *) x));
26087 }
26088 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
26089 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
26090 }
26091 static void *_p_wxValidatorTo_p_wxObject(void *x) {
26092 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
26093 }
26094 static void *_p_wxControlTo_p_wxWindow(void *x) {
26095 return (void *)((wxWindow *) ((wxControl *) x));
26096 }
26097 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
26098 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
26099 }
26100 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
26101 return (void *)((wxWindow *) ((wxMenuBar *) x));
26102 }
26103 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
26104 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
26105 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};
26106 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
26107 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
26108 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
26109 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
26110 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
26111 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
26112 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
26113 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
26114 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
26115 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
26116 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
26117 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
26118 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
26119 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
26120 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
26121 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
26122 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
26123 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
26124 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
26125 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
26126 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
26127 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
26128 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
26129 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
26130 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
26131 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
26132 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
26133 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
26134 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
26135 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
26136 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
26137 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
26138 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
26139 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
26140 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
26141 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
26142 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
26143 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
26144 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
26145 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
26146 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
26147 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
26148 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
26149 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
26150 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
26151 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
26152 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
26153 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
26154 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
26155 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
26156 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
26157 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
26158 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
26159 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
26160 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
26161 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
26162 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
26163 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
26164 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
26165 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
26166 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
26167 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
26168 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
26169 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
26170 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
26171 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
26172 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
26173 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
26174 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
26175 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
26176 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
26177 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
26178 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
26179 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
26180 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
26181 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
26182 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
26183 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
26184 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
26185 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
26186 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
26187 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
26188 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
26189 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
26190 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
26191 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
26192 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
26193 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
26194 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
26195 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
26196 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
26197 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
26198 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
26199 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
26200 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
26201 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
26202 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
26203 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
26204 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
26205 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
26206 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
26207 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
26208 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
26209 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
26210 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
26211 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
26212 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
26213 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
26214 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
26215 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
26216 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
26217 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
26218 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
26219 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
26220 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
26221 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
26222 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
26223 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
26224 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
26225 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
26226 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
26227 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
26228 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
26229 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
26230 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
26231 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
26232 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
26233 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
26234 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
26235 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
26236 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
26237 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
26238 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
26239 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
26240 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
26241
26242 static swig_type_info *swig_type_initial[] = {
26243 &_swigt__p_char,
26244 &_swigt__p_double,
26245 &_swigt__p_form_ops_t,
26246 &_swigt__p_int,
26247 &_swigt__p_unsigned_char,
26248 &_swigt__p_unsigned_int,
26249 &_swigt__p_unsigned_long,
26250 &_swigt__p_wxANIHandler,
26251 &_swigt__p_wxAcceleratorTable,
26252 &_swigt__p_wxActivateEvent,
26253 &_swigt__p_wxBMPHandler,
26254 &_swigt__p_wxBitmap,
26255 &_swigt__p_wxBoxSizer,
26256 &_swigt__p_wxBrush,
26257 &_swigt__p_wxBrushList,
26258 &_swigt__p_wxBufferedDC,
26259 &_swigt__p_wxBufferedPaintDC,
26260 &_swigt__p_wxCURHandler,
26261 &_swigt__p_wxChildFocusEvent,
26262 &_swigt__p_wxClientDC,
26263 &_swigt__p_wxClipboardTextEvent,
26264 &_swigt__p_wxCloseEvent,
26265 &_swigt__p_wxColour,
26266 &_swigt__p_wxColourDatabase,
26267 &_swigt__p_wxCommandEvent,
26268 &_swigt__p_wxContextMenuEvent,
26269 &_swigt__p_wxControl,
26270 &_swigt__p_wxControlWithItems,
26271 &_swigt__p_wxCursor,
26272 &_swigt__p_wxDC,
26273 &_swigt__p_wxDash,
26274 &_swigt__p_wxDateEvent,
26275 &_swigt__p_wxDisplayChangedEvent,
26276 &_swigt__p_wxDropFilesEvent,
26277 &_swigt__p_wxDuplexMode,
26278 &_swigt__p_wxEffects,
26279 &_swigt__p_wxEncodingConverter,
26280 &_swigt__p_wxEraseEvent,
26281 &_swigt__p_wxEvent,
26282 &_swigt__p_wxEvtHandler,
26283 &_swigt__p_wxFSFile,
26284 &_swigt__p_wxFileSystem,
26285 &_swigt__p_wxFlexGridSizer,
26286 &_swigt__p_wxFocusEvent,
26287 &_swigt__p_wxFont,
26288 &_swigt__p_wxFontList,
26289 &_swigt__p_wxFontMapper,
26290 &_swigt__p_wxGBSizerItem,
26291 &_swigt__p_wxGDIObjListBase,
26292 &_swigt__p_wxGDIObject,
26293 &_swigt__p_wxGIFHandler,
26294 &_swigt__p_wxGridBagSizer,
26295 &_swigt__p_wxGridSizer,
26296 &_swigt__p_wxICOHandler,
26297 &_swigt__p_wxIcon,
26298 &_swigt__p_wxIconBundle,
26299 &_swigt__p_wxIconLocation,
26300 &_swigt__p_wxIconizeEvent,
26301 &_swigt__p_wxIdleEvent,
26302 &_swigt__p_wxImage,
26303 &_swigt__p_wxImageHandler,
26304 &_swigt__p_wxImageList,
26305 &_swigt__p_wxIndividualLayoutConstraint,
26306 &_swigt__p_wxInitDialogEvent,
26307 &_swigt__p_wxJPEGHandler,
26308 &_swigt__p_wxKeyEvent,
26309 &_swigt__p_wxLanguageInfo,
26310 &_swigt__p_wxLayoutConstraints,
26311 &_swigt__p_wxLocale,
26312 &_swigt__p_wxMask,
26313 &_swigt__p_wxMaximizeEvent,
26314 &_swigt__p_wxMemoryDC,
26315 &_swigt__p_wxMenu,
26316 &_swigt__p_wxMenuBar,
26317 &_swigt__p_wxMenuEvent,
26318 &_swigt__p_wxMenuItem,
26319 &_swigt__p_wxMetaFile,
26320 &_swigt__p_wxMetaFileDC,
26321 &_swigt__p_wxMirrorDC,
26322 &_swigt__p_wxMouseCaptureChangedEvent,
26323 &_swigt__p_wxMouseEvent,
26324 &_swigt__p_wxMoveEvent,
26325 &_swigt__p_wxNativeEncodingInfo,
26326 &_swigt__p_wxNativeFontInfo,
26327 &_swigt__p_wxNavigationKeyEvent,
26328 &_swigt__p_wxNcPaintEvent,
26329 &_swigt__p_wxNotifyEvent,
26330 &_swigt__p_wxObject,
26331 &_swigt__p_wxPCXHandler,
26332 &_swigt__p_wxPNGHandler,
26333 &_swigt__p_wxPNMHandler,
26334 &_swigt__p_wxPaintDC,
26335 &_swigt__p_wxPaintEvent,
26336 &_swigt__p_wxPalette,
26337 &_swigt__p_wxPaletteChangedEvent,
26338 &_swigt__p_wxPaperSize,
26339 &_swigt__p_wxPen,
26340 &_swigt__p_wxPenList,
26341 &_swigt__p_wxPoint,
26342 &_swigt__p_wxPostScriptDC,
26343 &_swigt__p_wxPrintData,
26344 &_swigt__p_wxPrinterDC,
26345 &_swigt__p_wxPyApp,
26346 &_swigt__p_wxPyCommandEvent,
26347 &_swigt__p_wxPyEvent,
26348 &_swigt__p_wxPyFontEnumerator,
26349 &_swigt__p_wxPyImageHandler,
26350 &_swigt__p_wxPySizer,
26351 &_swigt__p_wxPyValidator,
26352 &_swigt__p_wxQueryNewPaletteEvent,
26353 &_swigt__p_wxRect,
26354 &_swigt__p_wxRegion,
26355 &_swigt__p_wxRegionIterator,
26356 &_swigt__p_wxRendererNative,
26357 &_swigt__p_wxRendererVersion,
26358 &_swigt__p_wxScreenDC,
26359 &_swigt__p_wxScrollEvent,
26360 &_swigt__p_wxScrollWinEvent,
26361 &_swigt__p_wxSetCursorEvent,
26362 &_swigt__p_wxShowEvent,
26363 &_swigt__p_wxSize,
26364 &_swigt__p_wxSizeEvent,
26365 &_swigt__p_wxSizer,
26366 &_swigt__p_wxSizerItem,
26367 &_swigt__p_wxSplitterRenderParams,
26368 &_swigt__p_wxStaticBoxSizer,
26369 &_swigt__p_wxStdDialogButtonSizer,
26370 &_swigt__p_wxStockGDI,
26371 &_swigt__p_wxString,
26372 &_swigt__p_wxSysColourChangedEvent,
26373 &_swigt__p_wxTIFFHandler,
26374 &_swigt__p_wxUpdateUIEvent,
26375 &_swigt__p_wxValidator,
26376 &_swigt__p_wxWindow,
26377 &_swigt__p_wxWindowCreateEvent,
26378 &_swigt__p_wxWindowDC,
26379 &_swigt__p_wxWindowDestroyEvent,
26380 &_swigt__p_wxXPMHandler,
26381 };
26382
26383 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
26384 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
26385 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
26386 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
26387 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
26388 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
26389 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
26390 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
26391 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
26392 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
26393 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}};
26394 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
26395 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
26396 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
26397 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
26398 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
26399 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}};
26400 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
26401 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
26402 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
26403 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
26404 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
26405 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
26406 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
26407 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}};
26408 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}};
26409 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
26410 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
26411 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
26412 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
26413 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
26414 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
26415 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
26416 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
26417 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}};
26418 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
26419 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
26420 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
26421 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
26422 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
26423 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
26424 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
26425 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
26426 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
26427 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
26428 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
26429 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
26430 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
26431 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
26432 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
26433 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
26434 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
26435 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
26436 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
26437 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
26438 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
26439 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
26440 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
26441 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26442 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26443 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26444 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26445 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
26446 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
26447 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
26448 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
26449 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
26450 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
26451 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
26452 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
26453 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
26454 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
26455 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
26456 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
26457 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26458 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26459 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26460 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
26461 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
26462 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
26463 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
26464 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
26465 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
26466 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
26467 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
26468 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
26469 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
26470 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
26471 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
26472 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
26473 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
26474 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
26475 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
26476 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
26477 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
26478 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
26479 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
26480 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
26481 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
26482 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
26483 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
26484 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
26485 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
26486 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
26487 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
26488 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
26489 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
26490 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
26491 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
26492 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
26493 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
26494 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
26495 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
26496 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
26497 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
26498 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_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_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_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_wxPNGHandler, _p_wxPNGHandlerTo_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_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_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}};
26499 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
26500 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
26501 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
26502 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
26503 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
26504 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
26505 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
26506 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
26507 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
26508 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
26509 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
26510 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
26511 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
26512 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
26513 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
26514 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
26515 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
26516 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
26517 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
26518 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
26519 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}};
26520 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
26521
26522 static swig_cast_info *swig_cast_initial[] = {
26523 _swigc__p_char,
26524 _swigc__p_double,
26525 _swigc__p_form_ops_t,
26526 _swigc__p_int,
26527 _swigc__p_unsigned_char,
26528 _swigc__p_unsigned_int,
26529 _swigc__p_unsigned_long,
26530 _swigc__p_wxANIHandler,
26531 _swigc__p_wxAcceleratorTable,
26532 _swigc__p_wxActivateEvent,
26533 _swigc__p_wxBMPHandler,
26534 _swigc__p_wxBitmap,
26535 _swigc__p_wxBoxSizer,
26536 _swigc__p_wxBrush,
26537 _swigc__p_wxBrushList,
26538 _swigc__p_wxBufferedDC,
26539 _swigc__p_wxBufferedPaintDC,
26540 _swigc__p_wxCURHandler,
26541 _swigc__p_wxChildFocusEvent,
26542 _swigc__p_wxClientDC,
26543 _swigc__p_wxClipboardTextEvent,
26544 _swigc__p_wxCloseEvent,
26545 _swigc__p_wxColour,
26546 _swigc__p_wxColourDatabase,
26547 _swigc__p_wxCommandEvent,
26548 _swigc__p_wxContextMenuEvent,
26549 _swigc__p_wxControl,
26550 _swigc__p_wxControlWithItems,
26551 _swigc__p_wxCursor,
26552 _swigc__p_wxDC,
26553 _swigc__p_wxDash,
26554 _swigc__p_wxDateEvent,
26555 _swigc__p_wxDisplayChangedEvent,
26556 _swigc__p_wxDropFilesEvent,
26557 _swigc__p_wxDuplexMode,
26558 _swigc__p_wxEffects,
26559 _swigc__p_wxEncodingConverter,
26560 _swigc__p_wxEraseEvent,
26561 _swigc__p_wxEvent,
26562 _swigc__p_wxEvtHandler,
26563 _swigc__p_wxFSFile,
26564 _swigc__p_wxFileSystem,
26565 _swigc__p_wxFlexGridSizer,
26566 _swigc__p_wxFocusEvent,
26567 _swigc__p_wxFont,
26568 _swigc__p_wxFontList,
26569 _swigc__p_wxFontMapper,
26570 _swigc__p_wxGBSizerItem,
26571 _swigc__p_wxGDIObjListBase,
26572 _swigc__p_wxGDIObject,
26573 _swigc__p_wxGIFHandler,
26574 _swigc__p_wxGridBagSizer,
26575 _swigc__p_wxGridSizer,
26576 _swigc__p_wxICOHandler,
26577 _swigc__p_wxIcon,
26578 _swigc__p_wxIconBundle,
26579 _swigc__p_wxIconLocation,
26580 _swigc__p_wxIconizeEvent,
26581 _swigc__p_wxIdleEvent,
26582 _swigc__p_wxImage,
26583 _swigc__p_wxImageHandler,
26584 _swigc__p_wxImageList,
26585 _swigc__p_wxIndividualLayoutConstraint,
26586 _swigc__p_wxInitDialogEvent,
26587 _swigc__p_wxJPEGHandler,
26588 _swigc__p_wxKeyEvent,
26589 _swigc__p_wxLanguageInfo,
26590 _swigc__p_wxLayoutConstraints,
26591 _swigc__p_wxLocale,
26592 _swigc__p_wxMask,
26593 _swigc__p_wxMaximizeEvent,
26594 _swigc__p_wxMemoryDC,
26595 _swigc__p_wxMenu,
26596 _swigc__p_wxMenuBar,
26597 _swigc__p_wxMenuEvent,
26598 _swigc__p_wxMenuItem,
26599 _swigc__p_wxMetaFile,
26600 _swigc__p_wxMetaFileDC,
26601 _swigc__p_wxMirrorDC,
26602 _swigc__p_wxMouseCaptureChangedEvent,
26603 _swigc__p_wxMouseEvent,
26604 _swigc__p_wxMoveEvent,
26605 _swigc__p_wxNativeEncodingInfo,
26606 _swigc__p_wxNativeFontInfo,
26607 _swigc__p_wxNavigationKeyEvent,
26608 _swigc__p_wxNcPaintEvent,
26609 _swigc__p_wxNotifyEvent,
26610 _swigc__p_wxObject,
26611 _swigc__p_wxPCXHandler,
26612 _swigc__p_wxPNGHandler,
26613 _swigc__p_wxPNMHandler,
26614 _swigc__p_wxPaintDC,
26615 _swigc__p_wxPaintEvent,
26616 _swigc__p_wxPalette,
26617 _swigc__p_wxPaletteChangedEvent,
26618 _swigc__p_wxPaperSize,
26619 _swigc__p_wxPen,
26620 _swigc__p_wxPenList,
26621 _swigc__p_wxPoint,
26622 _swigc__p_wxPostScriptDC,
26623 _swigc__p_wxPrintData,
26624 _swigc__p_wxPrinterDC,
26625 _swigc__p_wxPyApp,
26626 _swigc__p_wxPyCommandEvent,
26627 _swigc__p_wxPyEvent,
26628 _swigc__p_wxPyFontEnumerator,
26629 _swigc__p_wxPyImageHandler,
26630 _swigc__p_wxPySizer,
26631 _swigc__p_wxPyValidator,
26632 _swigc__p_wxQueryNewPaletteEvent,
26633 _swigc__p_wxRect,
26634 _swigc__p_wxRegion,
26635 _swigc__p_wxRegionIterator,
26636 _swigc__p_wxRendererNative,
26637 _swigc__p_wxRendererVersion,
26638 _swigc__p_wxScreenDC,
26639 _swigc__p_wxScrollEvent,
26640 _swigc__p_wxScrollWinEvent,
26641 _swigc__p_wxSetCursorEvent,
26642 _swigc__p_wxShowEvent,
26643 _swigc__p_wxSize,
26644 _swigc__p_wxSizeEvent,
26645 _swigc__p_wxSizer,
26646 _swigc__p_wxSizerItem,
26647 _swigc__p_wxSplitterRenderParams,
26648 _swigc__p_wxStaticBoxSizer,
26649 _swigc__p_wxStdDialogButtonSizer,
26650 _swigc__p_wxStockGDI,
26651 _swigc__p_wxString,
26652 _swigc__p_wxSysColourChangedEvent,
26653 _swigc__p_wxTIFFHandler,
26654 _swigc__p_wxUpdateUIEvent,
26655 _swigc__p_wxValidator,
26656 _swigc__p_wxWindow,
26657 _swigc__p_wxWindowCreateEvent,
26658 _swigc__p_wxWindowDC,
26659 _swigc__p_wxWindowDestroyEvent,
26660 _swigc__p_wxXPMHandler,
26661 };
26662
26663
26664 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
26665
26666 static swig_const_info swig_const_table[] = {
26667 {0, 0, 0, 0.0, 0, 0}};
26668
26669 #ifdef __cplusplus
26670 }
26671 #endif
26672 /* -----------------------------------------------------------------------------
26673 * Type initialization:
26674 * This problem is tough by the requirement that no dynamic
26675 * memory is used. Also, since swig_type_info structures store pointers to
26676 * swig_cast_info structures and swig_cast_info structures store pointers back
26677 * to swig_type_info structures, we need some lookup code at initialization.
26678 * The idea is that swig generates all the structures that are needed.
26679 * The runtime then collects these partially filled structures.
26680 * The SWIG_InitializeModule function takes these initial arrays out of
26681 * swig_module, and does all the lookup, filling in the swig_module.types
26682 * array with the correct data and linking the correct swig_cast_info
26683 * structures together.
26684 *
26685 * The generated swig_type_info structures are assigned staticly to an initial
26686 * array. We just loop though that array, and handle each type individually.
26687 * First we lookup if this type has been already loaded, and if so, use the
26688 * loaded structure instead of the generated one. Then we have to fill in the
26689 * cast linked list. The cast data is initially stored in something like a
26690 * two-dimensional array. Each row corresponds to a type (there are the same
26691 * number of rows as there are in the swig_type_initial array). Each entry in
26692 * a column is one of the swig_cast_info structures for that type.
26693 * The cast_initial array is actually an array of arrays, because each row has
26694 * a variable number of columns. So to actually build the cast linked list,
26695 * we find the array of casts associated with the type, and loop through it
26696 * adding the casts to the list. The one last trick we need to do is making
26697 * sure the type pointer in the swig_cast_info struct is correct.
26698 *
26699 * First off, we lookup the cast->type name to see if it is already loaded.
26700 * There are three cases to handle:
26701 * 1) If the cast->type has already been loaded AND the type we are adding
26702 * casting info to has not been loaded (it is in this module), THEN we
26703 * replace the cast->type pointer with the type pointer that has already
26704 * been loaded.
26705 * 2) If BOTH types (the one we are adding casting info to, and the
26706 * cast->type) are loaded, THEN the cast info has already been loaded by
26707 * the previous module so we just ignore it.
26708 * 3) Finally, if cast->type has not already been loaded, then we add that
26709 * swig_cast_info to the linked list (because the cast->type) pointer will
26710 * be correct.
26711 * ----------------------------------------------------------------------------- */
26712
26713 #ifdef __cplusplus
26714 extern "C" {
26715 #if 0
26716 } /* c-mode */
26717 #endif
26718 #endif
26719
26720 #if 0
26721 #define SWIGRUNTIME_DEBUG
26722 #endif
26723
26724 SWIGRUNTIME void
26725 SWIG_InitializeModule(void *clientdata) {
26726 size_t i;
26727 swig_module_info *module_head;
26728 static int init_run = 0;
26729
26730 clientdata = clientdata;
26731
26732 if (init_run) return;
26733 init_run = 1;
26734
26735 /* Initialize the swig_module */
26736 swig_module.type_initial = swig_type_initial;
26737 swig_module.cast_initial = swig_cast_initial;
26738
26739 /* Try and load any already created modules */
26740 module_head = SWIG_GetModule(clientdata);
26741 if (module_head) {
26742 swig_module.next = module_head->next;
26743 module_head->next = &swig_module;
26744 } else {
26745 /* This is the first module loaded */
26746 swig_module.next = &swig_module;
26747 SWIG_SetModule(clientdata, &swig_module);
26748 }
26749
26750 /* Now work on filling in swig_module.types */
26751 #ifdef SWIGRUNTIME_DEBUG
26752 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
26753 #endif
26754 for (i = 0; i < swig_module.size; ++i) {
26755 swig_type_info *type = 0;
26756 swig_type_info *ret;
26757 swig_cast_info *cast;
26758
26759 #ifdef SWIGRUNTIME_DEBUG
26760 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
26761 #endif
26762
26763 /* if there is another module already loaded */
26764 if (swig_module.next != &swig_module) {
26765 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
26766 }
26767 if (type) {
26768 /* Overwrite clientdata field */
26769 #ifdef SWIGRUNTIME_DEBUG
26770 printf("SWIG_InitializeModule: found type %s\n", type->name);
26771 #endif
26772 if (swig_module.type_initial[i]->clientdata) {
26773 type->clientdata = swig_module.type_initial[i]->clientdata;
26774 #ifdef SWIGRUNTIME_DEBUG
26775 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
26776 #endif
26777 }
26778 } else {
26779 type = swig_module.type_initial[i];
26780 }
26781
26782 /* Insert casting types */
26783 cast = swig_module.cast_initial[i];
26784 while (cast->type) {
26785 /* Don't need to add information already in the list */
26786 ret = 0;
26787 #ifdef SWIGRUNTIME_DEBUG
26788 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
26789 #endif
26790 if (swig_module.next != &swig_module) {
26791 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
26792 #ifdef SWIGRUNTIME_DEBUG
26793 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
26794 #endif
26795 }
26796 if (ret) {
26797 if (type == swig_module.type_initial[i]) {
26798 #ifdef SWIGRUNTIME_DEBUG
26799 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
26800 #endif
26801 cast->type = ret;
26802 ret = 0;
26803 } else {
26804 /* Check for casting already in the list */
26805 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
26806 #ifdef SWIGRUNTIME_DEBUG
26807 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
26808 #endif
26809 if (!ocast) ret = 0;
26810 }
26811 }
26812
26813 if (!ret) {
26814 #ifdef SWIGRUNTIME_DEBUG
26815 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
26816 #endif
26817 if (type->cast) {
26818 type->cast->prev = cast;
26819 cast->next = type->cast;
26820 }
26821 type->cast = cast;
26822 }
26823 cast++;
26824 }
26825 /* Set entry in modules->types array equal to the type */
26826 swig_module.types[i] = type;
26827 }
26828 swig_module.types[i] = 0;
26829
26830 #ifdef SWIGRUNTIME_DEBUG
26831 printf("**** SWIG_InitializeModule: Cast List ******\n");
26832 for (i = 0; i < swig_module.size; ++i) {
26833 int j = 0;
26834 swig_cast_info *cast = swig_module.cast_initial[i];
26835 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
26836 while (cast->type) {
26837 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
26838 cast++;
26839 ++j;
26840 }
26841 printf("---- Total casts: %d\n",j);
26842 }
26843 printf("**** SWIG_InitializeModule: Cast List ******\n");
26844 #endif
26845 }
26846
26847 /* This function will propagate the clientdata field of type to
26848 * any new swig_type_info structures that have been added into the list
26849 * of equivalent types. It is like calling
26850 * SWIG_TypeClientData(type, clientdata) a second time.
26851 */
26852 SWIGRUNTIME void
26853 SWIG_PropagateClientData(void) {
26854 size_t i;
26855 swig_cast_info *equiv;
26856 static int init_run = 0;
26857
26858 if (init_run) return;
26859 init_run = 1;
26860
26861 for (i = 0; i < swig_module.size; i++) {
26862 if (swig_module.types[i]->clientdata) {
26863 equiv = swig_module.types[i]->cast;
26864 while (equiv) {
26865 if (!equiv->converter) {
26866 if (equiv->type && !equiv->type->clientdata)
26867 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
26868 }
26869 equiv = equiv->next;
26870 }
26871 }
26872 }
26873 }
26874
26875 #ifdef __cplusplus
26876 #if 0
26877 {
26878 /* c-mode */
26879 #endif
26880 }
26881 #endif
26882
26883
26884
26885 #ifdef __cplusplus
26886 extern "C" {
26887 #endif
26888
26889 /* Python-specific SWIG API */
26890 #define SWIG_newvarlink() SWIG_Python_newvarlink()
26891 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
26892 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
26893
26894 /* -----------------------------------------------------------------------------
26895 * global variable support code.
26896 * ----------------------------------------------------------------------------- */
26897
26898 typedef struct swig_globalvar {
26899 char *name; /* Name of global variable */
26900 PyObject *(*get_attr)(void); /* Return the current value */
26901 int (*set_attr)(PyObject *); /* Set the value */
26902 struct swig_globalvar *next;
26903 } swig_globalvar;
26904
26905 typedef struct swig_varlinkobject {
26906 PyObject_HEAD
26907 swig_globalvar *vars;
26908 } swig_varlinkobject;
26909
26910 SWIGINTERN PyObject *
26911 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
26912 return PyString_FromString("<Swig global variables>");
26913 }
26914
26915 SWIGINTERN PyObject *
26916 swig_varlink_str(swig_varlinkobject *v) {
26917 PyObject *str = PyString_FromString("(");
26918 swig_globalvar *var;
26919 for (var = v->vars; var; var=var->next) {
26920 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
26921 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
26922 }
26923 PyString_ConcatAndDel(&str,PyString_FromString(")"));
26924 return str;
26925 }
26926
26927 SWIGINTERN int
26928 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
26929 PyObject *str = swig_varlink_str(v);
26930 fprintf(fp,"Swig global variables ");
26931 fprintf(fp,"%s\n", PyString_AsString(str));
26932 Py_DECREF(str);
26933 return 0;
26934 }
26935
26936 SWIGINTERN void
26937 swig_varlink_dealloc(swig_varlinkobject *v) {
26938 swig_globalvar *var = v->vars;
26939 while (var) {
26940 swig_globalvar *n = var->next;
26941 free(var->name);
26942 free(var);
26943 var = n;
26944 }
26945 }
26946
26947 SWIGINTERN PyObject *
26948 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
26949 PyObject *res = NULL;
26950 swig_globalvar *var = v->vars;
26951 while (var) {
26952 if (strcmp(var->name,n) == 0) {
26953 res = (*var->get_attr)();
26954 break;
26955 }
26956 var = var->next;
26957 }
26958 if (res == NULL && !PyErr_Occurred()) {
26959 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
26960 }
26961 return res;
26962 }
26963
26964 SWIGINTERN int
26965 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
26966 int res = 1;
26967 swig_globalvar *var = v->vars;
26968 while (var) {
26969 if (strcmp(var->name,n) == 0) {
26970 res = (*var->set_attr)(p);
26971 break;
26972 }
26973 var = var->next;
26974 }
26975 if (res == 1 && !PyErr_Occurred()) {
26976 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
26977 }
26978 return res;
26979 }
26980
26981 SWIGINTERN PyTypeObject*
26982 swig_varlink_type(void) {
26983 static char varlink__doc__[] = "Swig var link object";
26984 static PyTypeObject varlink_type;
26985 static int type_init = 0;
26986 if (!type_init) {
26987 const PyTypeObject tmp
26988 = {
26989 PyObject_HEAD_INIT(NULL)
26990 0, /* Number of items in variable part (ob_size) */
26991 (char *)"swigvarlink", /* Type name (tp_name) */
26992 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
26993 0, /* Itemsize (tp_itemsize) */
26994 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
26995 (printfunc) swig_varlink_print, /* Print (tp_print) */
26996 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
26997 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
26998 0, /* tp_compare */
26999 (reprfunc) swig_varlink_repr, /* tp_repr */
27000 0, /* tp_as_number */
27001 0, /* tp_as_sequence */
27002 0, /* tp_as_mapping */
27003 0, /* tp_hash */
27004 0, /* tp_call */
27005 (reprfunc)swig_varlink_str, /* tp_str */
27006 0, /* tp_getattro */
27007 0, /* tp_setattro */
27008 0, /* tp_as_buffer */
27009 0, /* tp_flags */
27010 varlink__doc__, /* tp_doc */
27011 0, /* tp_traverse */
27012 0, /* tp_clear */
27013 0, /* tp_richcompare */
27014 0, /* tp_weaklistoffset */
27015 #if PY_VERSION_HEX >= 0x02020000
27016 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
27017 #endif
27018 #if PY_VERSION_HEX >= 0x02030000
27019 0, /* tp_del */
27020 #endif
27021 #ifdef COUNT_ALLOCS
27022 0,0,0,0 /* tp_alloc -> tp_next */
27023 #endif
27024 };
27025 varlink_type = tmp;
27026 varlink_type.ob_type = &PyType_Type;
27027 type_init = 1;
27028 }
27029 return &varlink_type;
27030 }
27031
27032 /* Create a variable linking object for use later */
27033 SWIGINTERN PyObject *
27034 SWIG_Python_newvarlink(void) {
27035 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
27036 if (result) {
27037 result->vars = 0;
27038 }
27039 return ((PyObject*) result);
27040 }
27041
27042 SWIGINTERN void
27043 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
27044 swig_varlinkobject *v = (swig_varlinkobject *) p;
27045 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
27046 if (gv) {
27047 size_t size = strlen(name)+1;
27048 gv->name = (char *)malloc(size);
27049 if (gv->name) {
27050 strncpy(gv->name,name,size);
27051 gv->get_attr = get_attr;
27052 gv->set_attr = set_attr;
27053 gv->next = v->vars;
27054 }
27055 }
27056 v->vars = gv;
27057 }
27058
27059 SWIGINTERN PyObject *
27060 SWIG_globals() {
27061 static PyObject *_SWIG_globals = 0;
27062 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
27063 return _SWIG_globals;
27064 }
27065
27066 /* -----------------------------------------------------------------------------
27067 * constants/methods manipulation
27068 * ----------------------------------------------------------------------------- */
27069
27070 /* Install Constants */
27071 SWIGINTERN void
27072 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
27073 PyObject *obj = 0;
27074 size_t i;
27075 for (i = 0; constants[i].type; ++i) {
27076 switch(constants[i].type) {
27077 case SWIG_PY_POINTER:
27078 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
27079 break;
27080 case SWIG_PY_BINARY:
27081 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
27082 break;
27083 default:
27084 obj = 0;
27085 break;
27086 }
27087 if (obj) {
27088 PyDict_SetItemString(d, constants[i].name, obj);
27089 Py_DECREF(obj);
27090 }
27091 }
27092 }
27093
27094 /* -----------------------------------------------------------------------------*/
27095 /* Fix SwigMethods to carry the callback ptrs when needed */
27096 /* -----------------------------------------------------------------------------*/
27097
27098 SWIGINTERN void
27099 SWIG_Python_FixMethods(PyMethodDef *methods,
27100 swig_const_info *const_table,
27101 swig_type_info **types,
27102 swig_type_info **types_initial) {
27103 size_t i;
27104 for (i = 0; methods[i].ml_name; ++i) {
27105 const char *c = methods[i].ml_doc;
27106 if (c && (c = strstr(c, "swig_ptr: "))) {
27107 int j;
27108 swig_const_info *ci = 0;
27109 const char *name = c + 10;
27110 for (j = 0; const_table[j].type; ++j) {
27111 if (strncmp(const_table[j].name, name,
27112 strlen(const_table[j].name)) == 0) {
27113 ci = &(const_table[j]);
27114 break;
27115 }
27116 }
27117 if (ci) {
27118 size_t shift = (ci->ptype) - types;
27119 swig_type_info *ty = types_initial[shift];
27120 size_t ldoc = (c - methods[i].ml_doc);
27121 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
27122 char *ndoc = (char*)malloc(ldoc + lptr + 10);
27123 if (ndoc) {
27124 char *buff = ndoc;
27125 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
27126 if (ptr) {
27127 strncpy(buff, methods[i].ml_doc, ldoc);
27128 buff += ldoc;
27129 strncpy(buff, "swig_ptr: ", 10);
27130 buff += 10;
27131 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
27132 methods[i].ml_doc = ndoc;
27133 }
27134 }
27135 }
27136 }
27137 }
27138 }
27139
27140 #ifdef __cplusplus
27141 }
27142 #endif
27143
27144 /* -----------------------------------------------------------------------------*
27145 * Partial Init method
27146 * -----------------------------------------------------------------------------*/
27147
27148 #ifdef __cplusplus
27149 extern "C"
27150 #endif
27151 SWIGEXPORT void SWIG_init(void) {
27152 PyObject *m, *d;
27153
27154 /* Fix SwigMethods to carry the callback ptrs when needed */
27155 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
27156
27157 m = Py_InitModule((char *) SWIG_name, SwigMethods);
27158 d = PyModule_GetDict(m);
27159
27160 SWIG_InitializeModule(0);
27161 SWIG_InstallConstants(d,swig_const_table);
27162
27163
27164 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
27165 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
27166 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
27167 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
27168 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
27169 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
27170 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
27171 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
27172 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
27173 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
27174 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
27175 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
27176 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
27177 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
27178 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
27179 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
27180 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
27181 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
27182 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
27183 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
27184 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
27185 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
27186 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
27187 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
27188 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
27189 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
27190 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
27191 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
27192 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
27193 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
27194 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
27195 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
27196 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
27197 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
27198 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
27199 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
27200 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
27201 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
27202 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
27203 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
27204 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
27205 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
27206 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
27207 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
27208 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
27209 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
27210 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
27211 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
27212 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
27213 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
27214 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
27215 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
27216 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
27217 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
27218 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
27219 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
27220 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
27221 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
27222 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
27223 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
27224 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
27225 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
27226 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
27227 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
27228 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
27229 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
27230 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
27231 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
27232 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
27233 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
27234 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
27235 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
27236 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
27237 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
27238 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
27239 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
27240 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
27241 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
27242 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
27243 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
27244 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
27245 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
27246 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
27247 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
27248 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
27249 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
27250 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
27251 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
27252 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
27253 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
27254 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
27255 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
27256 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
27257 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
27258 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
27259 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
27260 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
27261 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
27262 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
27263 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
27264 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
27265 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
27266 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
27267 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
27268 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
27269 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
27270 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
27271 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
27272 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
27273 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
27274 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
27275 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
27276 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
27277 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
27278 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
27279 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
27280 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
27281 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
27282 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
27283 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
27284 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
27285 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
27286 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
27287 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
27288 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
27289 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
27290 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
27291 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
27292 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
27293 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
27294
27295 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
27296
27297 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
27298 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
27299 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
27300 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
27301 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
27302 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
27303 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
27304 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
27305 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
27306 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
27307 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
27308 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
27309 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
27310 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
27311 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
27312 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
27313 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
27314 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
27315 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
27316 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
27317 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
27318 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
27319 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
27320 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
27321 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
27322 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
27323 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
27324 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
27325 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
27326 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
27327 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
27328 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
27329 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
27330 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
27331 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
27332 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
27333 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
27334 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
27335 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
27336 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
27337 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
27338 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
27339 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
27340 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
27341 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
27342 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
27343 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
27344 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
27345 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
27346 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
27347 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
27348 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
27349 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
27350 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
27351 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
27352 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
27353 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
27354 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
27355 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
27356 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
27357 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
27358 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
27359 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
27360 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
27361 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
27362 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
27363 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
27364 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
27365 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
27366 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
27367 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
27368 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
27369 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
27370 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
27371 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
27372 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
27373 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
27374 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
27375 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
27376 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
27377 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
27378 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
27379 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
27380 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
27381 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
27382 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
27383 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
27384 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
27385 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
27386 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
27387 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
27388 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
27389 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
27390 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
27391 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
27392 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
27393 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
27394 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
27395 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
27396 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
27397 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
27398 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
27399 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
27400 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
27401 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
27402 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
27403 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
27404 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
27405 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
27406 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
27407 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
27408 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
27409 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
27410 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
27411 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
27412 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
27413 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
27414 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
27415 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
27416 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
27417 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
27418 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
27419 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
27420 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
27421 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
27422 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
27423 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
27424 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
27425 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
27426 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
27427 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
27428 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
27429 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
27430 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
27431 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
27432 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
27433 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
27434 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
27435 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
27436 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
27437 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
27438 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
27439 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
27440 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
27441 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
27442 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
27443 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
27444 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
27445 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
27446 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
27447 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
27448 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
27449 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
27450 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
27451 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
27452 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
27453 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
27454 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
27455 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
27456 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
27457 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
27458 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
27459 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
27460 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
27461 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
27462 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
27463 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
27464 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
27465 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
27466 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
27467 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
27468 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
27469 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
27470 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
27471 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
27472 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
27473 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
27474 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
27475 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
27476 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
27477 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
27478 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
27479 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
27480 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
27481 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
27482 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
27483 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
27484 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
27485 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
27486 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
27487 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
27488 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
27489 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
27490 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
27491 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
27492 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
27493 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
27494 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
27495 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
27496 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
27497 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
27498 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
27499 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
27500 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
27501 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
27502 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
27503 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
27504 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
27505 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
27506 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
27507 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
27508 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
27509 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
27510 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
27511 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
27512 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
27513 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
27514 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
27515 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
27516 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
27517 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
27518 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
27519 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
27520 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
27521 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
27522 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
27523 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
27524 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
27525 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
27526 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
27527 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
27528 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
27529 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
27530 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
27531 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
27532 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
27533 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
27534 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
27535 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
27536 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
27537 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
27538 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
27539 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
27540 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
27541 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
27542 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
27543 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
27544 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
27545 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
27546 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
27547 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
27548 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
27549 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
27550 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
27551 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
27552 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
27553 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
27554 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
27555 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
27556 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
27557 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
27558 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
27559 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
27560 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
27561 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
27562 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
27563 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
27564 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
27565 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
27566 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
27567 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
27568 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
27569 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
27570 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
27571 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
27572 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
27573 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
27574 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
27575 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
27576 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
27577 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
27578 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
27579 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
27580 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
27581 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
27582 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
27583 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
27584 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
27585 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
27586 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
27587 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
27588 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
27589 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
27590 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
27591 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
27592 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
27593 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
27594 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
27595 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
27596 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
27597 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
27598 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
27599 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
27600 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
27601 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
27602 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
27603 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
27604 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
27605 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
27606 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
27607 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
27608 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
27609 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
27610 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
27611
27612 // Work around a chicken/egg problem in drawlist.cpp
27613 wxPyDrawList_SetAPIPtr();
27614
27615 }
27616