]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
applied patch 1378261
[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 /* for raw pointers */
989 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995 #define swig_owntype int
996
997 /* for raw packed data */
998 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1000
1001 /* for class or struct pointers */
1002 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1004
1005 /* for C or C++ function pointers */
1006 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1008
1009 /* for C++ member pointers, ie, member methods */
1010 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1012
1013
1014 /* Runtime API */
1015
1016 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1019
1020 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024 #define SWIG_fail goto fail
1025
1026
1027 /* Runtime API implementation */
1028
1029 /* Error manipulation */
1030
1031 SWIGINTERN void
1032 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1034 PyErr_SetObject(errtype, obj);
1035 Py_DECREF(obj);
1036 SWIG_PYTHON_THREAD_END_BLOCK;
1037 }
1038
1039 SWIGINTERN void
1040 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1042 PyErr_SetString(errtype, (char *) msg);
1043 SWIG_PYTHON_THREAD_END_BLOCK;
1044 }
1045
1046 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1047
1048 /* Set a constant value */
1049
1050 SWIGINTERN void
1051 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
1054 }
1055
1056 /* Append a value to the result obj */
1057
1058 SWIGINTERN PyObject*
1059 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1060 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1061 if (!result) {
1062 result = obj;
1063 } else if (result == Py_None) {
1064 Py_DECREF(result);
1065 result = obj;
1066 } else {
1067 if (!PyList_Check(result)) {
1068 PyObject *o2 = result;
1069 result = PyList_New(1);
1070 PyList_SetItem(result, 0, o2);
1071 }
1072 PyList_Append(result,obj);
1073 Py_DECREF(obj);
1074 }
1075 return result;
1076 #else
1077 PyObject* o2;
1078 PyObject* o3;
1079 if (!result) {
1080 result = obj;
1081 } else if (result == Py_None) {
1082 Py_DECREF(result);
1083 result = obj;
1084 } else {
1085 if (!PyTuple_Check(result)) {
1086 o2 = result;
1087 result = PyTuple_New(1);
1088 PyTuple_SET_ITEM(result, 0, o2);
1089 }
1090 o3 = PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3, 0, obj);
1092 o2 = result;
1093 result = PySequence_Concat(o2, o3);
1094 Py_DECREF(o2);
1095 Py_DECREF(o3);
1096 }
1097 return result;
1098 #endif
1099 }
1100
1101 /* Unpack the argument tuple */
1102
1103 SWIGINTERN int
1104 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1105 {
1106 if (!args) {
1107 if (!min && !max) {
1108 return 1;
1109 } else {
1110 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1111 name, (min == max ? "" : "at least "), min);
1112 return 0;
1113 }
1114 }
1115 if (!PyTuple_Check(args)) {
1116 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1117 return 0;
1118 } else {
1119 register int l = PyTuple_GET_SIZE(args);
1120 if (l < min) {
1121 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1122 name, (min == max ? "" : "at least "), min, l);
1123 return 0;
1124 } else if (l > max) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at most "), max, l);
1127 return 0;
1128 } else {
1129 register int i;
1130 for (i = 0; i < l; ++i) {
1131 objs[i] = PyTuple_GET_ITEM(args, i);
1132 }
1133 for (; l < max; ++l) {
1134 objs[l] = 0;
1135 }
1136 return i + 1;
1137 }
1138 }
1139 }
1140
1141 /* A functor is a function object with one single object argument */
1142 #if PY_VERSION_HEX >= 0x02020000
1143 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1144 #else
1145 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1146 #endif
1147
1148 /*
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1151 */
1152 #ifdef __cplusplus
1153 #define SWIG_STATIC_POINTER(var) var
1154 #else
1155 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1156 #endif
1157
1158 /* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1161
1162 /* Flags for new pointer objects */
1163 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1165
1166 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1167
1168 #ifdef __cplusplus
1169 extern "C" {
1170 #if 0
1171 } /* cc-mode */
1172 #endif
1173 #endif
1174
1175 /* How to access Py_None */
1176 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1178 # ifndef SWIG_PYTHON_BUILD_NONE
1179 # define SWIG_PYTHON_BUILD_NONE
1180 # endif
1181 # endif
1182 #endif
1183
1184 #ifdef SWIG_PYTHON_BUILD_NONE
1185 # ifdef Py_None
1186 # undef Py_None
1187 # define Py_None SWIG_Py_None()
1188 # endif
1189 SWIGRUNTIMEINLINE PyObject *
1190 _SWIG_Py_None(void)
1191 {
1192 PyObject *none = Py_BuildValue("");
1193 Py_DECREF(none);
1194 return none;
1195 }
1196 SWIGRUNTIME PyObject *
1197 SWIG_Py_None(void)
1198 {
1199 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1200 return none;
1201 }
1202 #endif
1203
1204 /* The python void return value */
1205
1206 SWIGRUNTIMEINLINE PyObject *
1207 SWIG_Py_Void(void)
1208 {
1209 PyObject *none = Py_None;
1210 Py_INCREF(none);
1211 return none;
1212 }
1213
1214 /* PySwigClientData */
1215
1216 typedef struct {
1217 PyObject *klass;
1218 PyObject *newraw;
1219 PyObject *newargs;
1220 PyObject *destroy;
1221 int delargs;
1222 int implicitconv;
1223 } PySwigClientData;
1224
1225 SWIGRUNTIMEINLINE int
1226 SWIG_Python_CheckImplicit(swig_type_info *ty)
1227 {
1228 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1229 return data ? data->implicitconv : 0;
1230 }
1231
1232 SWIGRUNTIMEINLINE PyObject *
1233 SWIG_Python_ExceptionType(swig_type_info *desc) {
1234 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1235 PyObject *klass = data ? data->klass : 0;
1236 return (klass ? klass : PyExc_RuntimeError);
1237 }
1238
1239
1240 SWIGRUNTIME PySwigClientData *
1241 PySwigClientData_New(PyObject* obj)
1242 {
1243 if (!obj) {
1244 return 0;
1245 } else {
1246 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1247 /* the klass element */
1248 data->klass = obj;
1249 Py_INCREF(data->klass);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj)) {
1252 data->newraw = 0;
1253 data->newargs = obj;
1254 Py_INCREF(obj);
1255 } else {
1256 #if (PY_VERSION_HEX < 0x02020000)
1257 data->newraw = 0;
1258 #else
1259 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1260 #endif
1261 if (data->newraw) {
1262 Py_INCREF(data->newraw);
1263 data->newargs = PyTuple_New(1);
1264 PyTuple_SetItem(data->newargs, 0, obj);
1265 } else {
1266 data->newargs = obj;
1267 }
1268 Py_INCREF(data->newargs);
1269 }
1270 /* the destroy method, aka as the C++ delete method */
1271 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1273 PyErr_Clear();
1274 data->destroy = 0;
1275 }
1276 if (data->destroy) {
1277 int flags;
1278 Py_INCREF(data->destroy);
1279 flags = PyCFunction_GET_FLAGS(data->destroy);
1280 #ifdef METH_O
1281 data->delargs = !(flags & (METH_O));
1282 #else
1283 data->delargs = 0;
1284 #endif
1285 } else {
1286 data->delargs = 0;
1287 }
1288 data->implicitconv = 0;
1289 return data;
1290 }
1291 }
1292
1293 SWIGRUNTIME void
1294 PySwigClientData_Del(PySwigClientData* data)
1295 {
1296 Py_XDECREF(data->newraw);
1297 Py_XDECREF(data->newargs);
1298 Py_XDECREF(data->destroy);
1299 }
1300
1301 /* =============== PySwigObject =====================*/
1302
1303 typedef struct {
1304 PyObject_HEAD
1305 void *ptr;
1306 swig_type_info *ty;
1307 int own;
1308 PyObject *next;
1309 } PySwigObject;
1310
1311 SWIGRUNTIME PyObject *
1312 PySwigObject_long(PySwigObject *v)
1313 {
1314 return PyLong_FromVoidPtr(v->ptr);
1315 }
1316
1317 SWIGRUNTIME PyObject *
1318 PySwigObject_format(const char* fmt, PySwigObject *v)
1319 {
1320 PyObject *res = NULL;
1321 PyObject *args = PyTuple_New(1);
1322 if (args) {
1323 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1324 PyObject *ofmt = PyString_FromString(fmt);
1325 if (ofmt) {
1326 res = PyString_Format(ofmt,args);
1327 Py_DECREF(ofmt);
1328 }
1329 Py_DECREF(args);
1330 }
1331 }
1332 return res;
1333 }
1334
1335 SWIGRUNTIME PyObject *
1336 PySwigObject_oct(PySwigObject *v)
1337 {
1338 return PySwigObject_format("%o",v);
1339 }
1340
1341 SWIGRUNTIME PyObject *
1342 PySwigObject_hex(PySwigObject *v)
1343 {
1344 return PySwigObject_format("%x",v);
1345 }
1346
1347 SWIGRUNTIME PyObject *
1348 #ifdef METH_NOARGS
1349 PySwigObject_repr(PySwigObject *v)
1350 #else
1351 PySwigObject_repr(PySwigObject *v, PyObject *args)
1352 #endif
1353 {
1354 const char *name = SWIG_TypePrettyName(v->ty);
1355 PyObject *hex = PySwigObject_hex(v);
1356 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1357 Py_DECREF(hex);
1358 if (v->next) {
1359 #ifdef METH_NOARGS
1360 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1361 #else
1362 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1363 #endif
1364 PyString_ConcatAndDel(&repr,nrep);
1365 }
1366 return repr;
1367 }
1368
1369 SWIGRUNTIME int
1370 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1371 {
1372 #ifdef METH_NOARGS
1373 PyObject *repr = PySwigObject_repr(v);
1374 #else
1375 PyObject *repr = PySwigObject_repr(v, NULL);
1376 #endif
1377 if (repr) {
1378 fputs(PyString_AsString(repr), fp);
1379 Py_DECREF(repr);
1380 return 0;
1381 } else {
1382 return 1;
1383 }
1384 }
1385
1386 SWIGRUNTIME PyObject *
1387 PySwigObject_str(PySwigObject *v)
1388 {
1389 char result[SWIG_BUFFER_SIZE];
1390 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1391 PyString_FromString(result) : 0;
1392 }
1393
1394 SWIGRUNTIME int
1395 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1396 {
1397 void *i = v->ptr;
1398 void *j = w->ptr;
1399 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1400 }
1401
1402 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1403
1404 SWIGRUNTIME PyTypeObject*
1405 PySwigObject_type(void) {
1406 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1407 return type;
1408 }
1409
1410 SWIGRUNTIMEINLINE int
1411 PySwigObject_Check(PyObject *op) {
1412 return ((op)->ob_type == PySwigObject_type())
1413 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1414 }
1415
1416 SWIGRUNTIME PyObject *
1417 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1418
1419 SWIGRUNTIME void
1420 PySwigObject_dealloc(PyObject *v)
1421 {
1422 PySwigObject *sobj = (PySwigObject *) v;
1423 PyObject *next = sobj->next;
1424 if (sobj->own) {
1425 swig_type_info *ty = sobj->ty;
1426 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1427 PyObject *destroy = data ? data->destroy : 0;
1428 if (destroy) {
1429 /* destroy is always a VARARGS method */
1430 PyObject *res;
1431 if (data->delargs) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1434 res = SWIG_Python_CallFunctor(destroy, tmp);
1435 Py_DECREF(tmp);
1436 } else {
1437 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1438 PyObject *mself = PyCFunction_GET_SELF(destroy);
1439 res = ((*meth)(mself, v));
1440 }
1441 Py_XDECREF(res);
1442 } else {
1443 const char *name = SWIG_TypePrettyName(ty);
1444 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1446 #endif
1447 }
1448 }
1449 Py_XDECREF(next);
1450 PyObject_DEL(v);
1451 }
1452
1453 SWIGRUNTIME PyObject*
1454 PySwigObject_append(PyObject* v, PyObject* next)
1455 {
1456 PySwigObject *sobj = (PySwigObject *) v;
1457 #ifndef METH_O
1458 PyObject *tmp = 0;
1459 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1460 next = tmp;
1461 #endif
1462 if (!PySwigObject_Check(next)) {
1463 return NULL;
1464 }
1465 sobj->next = next;
1466 Py_INCREF(next);
1467 return SWIG_Py_Void();
1468 }
1469
1470 SWIGRUNTIME PyObject*
1471 #ifdef METH_NOARGS
1472 PySwigObject_next(PyObject* v)
1473 #else
1474 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1475 #endif
1476 {
1477 PySwigObject *sobj = (PySwigObject *) v;
1478 if (sobj->next) {
1479 Py_INCREF(sobj->next);
1480 return sobj->next;
1481 } else {
1482 return SWIG_Py_Void();
1483 }
1484 }
1485
1486 SWIGINTERN PyObject*
1487 #ifdef METH_NOARGS
1488 PySwigObject_disown(PyObject *v)
1489 #else
1490 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1491 #endif
1492 {
1493 PySwigObject *sobj = (PySwigObject *)v;
1494 sobj->own = 0;
1495 return SWIG_Py_Void();
1496 }
1497
1498 SWIGINTERN PyObject*
1499 #ifdef METH_NOARGS
1500 PySwigObject_acquire(PyObject *v)
1501 #else
1502 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1503 #endif
1504 {
1505 PySwigObject *sobj = (PySwigObject *)v;
1506 sobj->own = SWIG_POINTER_OWN;
1507 return SWIG_Py_Void();
1508 }
1509
1510 SWIGINTERN PyObject*
1511 PySwigObject_own(PyObject *v, PyObject *args)
1512 {
1513 PyObject *val = 0;
1514 #if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1516 #else
1517 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1518 #endif
1519 {
1520 return NULL;
1521 }
1522 else
1523 {
1524 PySwigObject *sobj = (PySwigObject *)v;
1525 PyObject *obj = PyBool_FromLong(sobj->own);
1526 if (val) {
1527 #ifdef METH_NOARGS
1528 if (PyObject_IsTrue(val)) {
1529 PySwigObject_acquire(v);
1530 } else {
1531 PySwigObject_disown(v);
1532 }
1533 #else
1534 if (PyObject_IsTrue(val)) {
1535 PySwigObject_acquire(v,args);
1536 } else {
1537 PySwigObject_disown(v,args);
1538 }
1539 #endif
1540 }
1541 return obj;
1542 }
1543 }
1544
1545 #ifdef METH_O
1546 static PyMethodDef
1547 swigobject_methods[] = {
1548 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1554 {0, 0, 0, 0}
1555 };
1556 #else
1557 static PyMethodDef
1558 swigobject_methods[] = {
1559 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1565 {0, 0, 0, 0}
1566 };
1567 #endif
1568
1569 #if PY_VERSION_HEX < 0x02020000
1570 SWIGINTERN PyObject *
1571 PySwigObject_getattr(PySwigObject *sobj,char *name)
1572 {
1573 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1574 }
1575 #endif
1576
1577 SWIGRUNTIME PyTypeObject*
1578 _PySwigObject_type(void) {
1579 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1580
1581 static PyNumberMethods PySwigObject_as_number = {
1582 (binaryfunc)0, /*nb_add*/
1583 (binaryfunc)0, /*nb_subtract*/
1584 (binaryfunc)0, /*nb_multiply*/
1585 (binaryfunc)0, /*nb_divide*/
1586 (binaryfunc)0, /*nb_remainder*/
1587 (binaryfunc)0, /*nb_divmod*/
1588 (ternaryfunc)0,/*nb_power*/
1589 (unaryfunc)0, /*nb_negative*/
1590 (unaryfunc)0, /*nb_positive*/
1591 (unaryfunc)0, /*nb_absolute*/
1592 (inquiry)0, /*nb_nonzero*/
1593 0, /*nb_invert*/
1594 0, /*nb_lshift*/
1595 0, /*nb_rshift*/
1596 0, /*nb_and*/
1597 0, /*nb_xor*/
1598 0, /*nb_or*/
1599 (coercion)0, /*nb_coerce*/
1600 (unaryfunc)PySwigObject_long, /*nb_int*/
1601 (unaryfunc)PySwigObject_long, /*nb_long*/
1602 (unaryfunc)0, /*nb_float*/
1603 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1604 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1605 #if PY_VERSION_HEX >= 0x02020000
1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1607 #elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1609 #endif
1610 };
1611
1612 static PyTypeObject pyswigobject_type;
1613 static int type_init = 0;
1614 if (!type_init) {
1615 const PyTypeObject tmp
1616 = {
1617 PyObject_HEAD_INIT(NULL)
1618 0, /* ob_size */
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1623 (printfunc)PySwigObject_print, /* tp_print */
1624 #if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1626 #else
1627 (getattrfunc)0, /* tp_getattr */
1628 #endif
1629 (setattrfunc)0, /* tp_setattr */
1630 (cmpfunc)PySwigObject_compare, /* tp_compare */
1631 (reprfunc)PySwigObject_repr, /* tp_repr */
1632 &PySwigObject_as_number, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc)0, /* tp_hash */
1636 (ternaryfunc)0, /* tp_call */
1637 (reprfunc)PySwigObject_str, /* tp_str */
1638 PyObject_GenericGetAttr, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT, /* tp_flags */
1642 swigobject_doc, /* tp_doc */
1643 0, /* tp_traverse */
1644 0, /* tp_clear */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
1647 #if PY_VERSION_HEX >= 0x02020000
1648 0, /* tp_iter */
1649 0, /* tp_iternext */
1650 swigobject_methods, /* tp_methods */
1651 0, /* tp_members */
1652 0, /* tp_getset */
1653 0, /* tp_base */
1654 0, /* tp_dict */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1658 0, /* tp_init */
1659 0, /* tp_alloc */
1660 0, /* tp_new */
1661 0, /* tp_free */
1662 0, /* tp_is_gc */
1663 0, /* tp_bases */
1664 0, /* tp_mro */
1665 0, /* tp_cache */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
1668 #endif
1669 #if PY_VERSION_HEX >= 0x02030000
1670 0, /* tp_del */
1671 #endif
1672 #ifdef COUNT_ALLOCS
1673 0,0,0,0 /* tp_alloc -> tp_next */
1674 #endif
1675 };
1676 pyswigobject_type = tmp;
1677 pyswigobject_type.ob_type = &PyType_Type;
1678 type_init = 1;
1679 }
1680 return &pyswigobject_type;
1681 }
1682
1683 SWIGRUNTIME PyObject *
1684 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1685 {
1686 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1687 if (sobj) {
1688 sobj->ptr = ptr;
1689 sobj->ty = ty;
1690 sobj->own = own;
1691 sobj->next = 0;
1692 }
1693 return (PyObject *)sobj;
1694 }
1695
1696 /* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1699
1700 typedef struct {
1701 PyObject_HEAD
1702 void *pack;
1703 swig_type_info *ty;
1704 size_t size;
1705 } PySwigPacked;
1706
1707 SWIGRUNTIME int
1708 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1709 {
1710 char result[SWIG_BUFFER_SIZE];
1711 fputs("<Swig Packed ", fp);
1712 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1713 fputs("at ", fp);
1714 fputs(result, fp);
1715 }
1716 fputs(v->ty->name,fp);
1717 fputs(">", fp);
1718 return 0;
1719 }
1720
1721 SWIGRUNTIME PyObject *
1722 PySwigPacked_repr(PySwigPacked *v)
1723 {
1724 char result[SWIG_BUFFER_SIZE];
1725 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1727 } else {
1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1729 }
1730 }
1731
1732 SWIGRUNTIME PyObject *
1733 PySwigPacked_str(PySwigPacked *v)
1734 {
1735 char result[SWIG_BUFFER_SIZE];
1736 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1737 return PyString_FromFormat("%s%s", result, v->ty->name);
1738 } else {
1739 return PyString_FromString(v->ty->name);
1740 }
1741 }
1742
1743 SWIGRUNTIME int
1744 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745 {
1746 size_t i = v->size;
1747 size_t j = w->size;
1748 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1749 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1750 }
1751
1752 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1753
1754 SWIGRUNTIME PyTypeObject*
1755 PySwigPacked_type(void) {
1756 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1757 return type;
1758 }
1759
1760 SWIGRUNTIMEINLINE int
1761 PySwigPacked_Check(PyObject *op) {
1762 return ((op)->ob_type == _PySwigPacked_type())
1763 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1764 }
1765
1766 SWIGRUNTIME void
1767 PySwigPacked_dealloc(PyObject *v)
1768 {
1769 if (PySwigPacked_Check(v)) {
1770 PySwigPacked *sobj = (PySwigPacked *) v;
1771 free(sobj->pack);
1772 }
1773 PyObject_DEL(v);
1774 }
1775
1776 SWIGRUNTIME PyTypeObject*
1777 _PySwigPacked_type(void) {
1778 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type;
1780 static int type_init = 0;
1781 if (!type_init) {
1782 const PyTypeObject tmp
1783 = {
1784 PyObject_HEAD_INIT(NULL)
1785 0, /* ob_size */
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1790 (printfunc)PySwigPacked_print, /* tp_print */
1791 (getattrfunc)0, /* tp_getattr */
1792 (setattrfunc)0, /* tp_setattr */
1793 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1794 (reprfunc)PySwigPacked_repr, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc)0, /* tp_hash */
1799 (ternaryfunc)0, /* tp_call */
1800 (reprfunc)PySwigPacked_str, /* tp_str */
1801 PyObject_GenericGetAttr, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT, /* tp_flags */
1805 swigpacked_doc, /* tp_doc */
1806 0, /* tp_traverse */
1807 0, /* tp_clear */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810 #if PY_VERSION_HEX >= 0x02020000
1811 0, /* tp_iter */
1812 0, /* tp_iternext */
1813 0, /* tp_methods */
1814 0, /* tp_members */
1815 0, /* tp_getset */
1816 0, /* tp_base */
1817 0, /* tp_dict */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1821 0, /* tp_init */
1822 0, /* tp_alloc */
1823 0, /* tp_new */
1824 0, /* tp_free */
1825 0, /* tp_is_gc */
1826 0, /* tp_bases */
1827 0, /* tp_mro */
1828 0, /* tp_cache */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
1831 #endif
1832 #if PY_VERSION_HEX >= 0x02030000
1833 0, /* tp_del */
1834 #endif
1835 #ifdef COUNT_ALLOCS
1836 0,0,0,0 /* tp_alloc -> tp_next */
1837 #endif
1838 };
1839 pyswigpacked_type = tmp;
1840 pyswigpacked_type.ob_type = &PyType_Type;
1841 type_init = 1;
1842 }
1843 return &pyswigpacked_type;
1844 }
1845
1846 SWIGRUNTIME PyObject *
1847 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1848 {
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
1851 void *pack = malloc(size);
1852 if (pack) {
1853 memcpy(pack, ptr, size);
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
1860 }
1861 }
1862 return (PyObject *) sobj;
1863 }
1864
1865 SWIGRUNTIME swig_type_info *
1866 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867 {
1868 if (PySwigPacked_Check(obj)) {
1869 PySwigPacked *sobj = (PySwigPacked *)obj;
1870 if (sobj->size != size) return 0;
1871 memcpy(ptr, sobj->pack, size);
1872 return sobj->ty;
1873 } else {
1874 return 0;
1875 }
1876 }
1877
1878 /* -----------------------------------------------------------------------------
1879 * pointers/data manipulation
1880 * ----------------------------------------------------------------------------- */
1881
1882 SWIGRUNTIMEINLINE PyObject *
1883 _SWIG_This(void)
1884 {
1885 return PyString_FromString("this");
1886 }
1887
1888 SWIGRUNTIME PyObject *
1889 SWIG_This(void)
1890 {
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893 }
1894
1895 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1896
1897 SWIGRUNTIME PySwigObject *
1898 SWIG_Python_GetSwigThis(PyObject *pyobj)
1899 {
1900 if (PySwigObject_Check(pyobj)) {
1901 return (PySwigObject *) pyobj;
1902 } else {
1903 PyObject *obj = 0;
1904 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj)) {
1906 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1907 } else {
1908 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1909 if (dictptr != NULL) {
1910 PyObject *dict = *dictptr;
1911 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1912 } else {
1913 #ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj)) {
1915 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1916 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1917 }
1918 #endif
1919 obj = PyObject_GetAttr(pyobj,SWIG_This());
1920 if (obj) {
1921 Py_DECREF(obj);
1922 } else {
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
1925 }
1926 }
1927 }
1928 #else
1929 obj = PyObject_GetAttr(pyobj,SWIG_This());
1930 if (obj) {
1931 Py_DECREF(obj);
1932 } else {
1933 if (PyErr_Occurred()) PyErr_Clear();
1934 return 0;
1935 }
1936 #endif
1937 if (obj && !PySwigObject_Check(obj)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj);
1941 }
1942 return (PySwigObject *)obj;
1943 }
1944 }
1945
1946 /* Acquire a pointer value */
1947
1948 SWIGRUNTIME int
1949 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1950 if (own) {
1951 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1952 if (sobj) {
1953 int oldown = sobj->own;
1954 sobj->own = own;
1955 return oldown;
1956 }
1957 }
1958 return 0;
1959 }
1960
1961 /* Convert a pointer value */
1962
1963 SWIGRUNTIME int
1964 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1965 if (!obj) return SWIG_ERROR;
1966 if (obj == Py_None) {
1967 if (ptr) *ptr = 0;
1968 return SWIG_OK;
1969 } else {
1970 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1971 while (sobj) {
1972 void *vptr = sobj->ptr;
1973 if (ty) {
1974 swig_type_info *to = sobj->ty;
1975 if (to == ty) {
1976 /* no type cast needed */
1977 if (ptr) *ptr = vptr;
1978 break;
1979 } else {
1980 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1981 if (!tc) {
1982 sobj = (PySwigObject *)sobj->next;
1983 } else {
1984 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1985 break;
1986 }
1987 }
1988 } else {
1989 if (ptr) *ptr = vptr;
1990 break;
1991 }
1992 }
1993 if (sobj) {
1994 if (own) *own = sobj->own;
1995 if (flags & SWIG_POINTER_DISOWN) {
1996 sobj->own = 0;
1997 }
1998 return SWIG_OK;
1999 } else {
2000 int res = SWIG_ERROR;
2001 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2002 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2003 if (data && !data->implicitconv) {
2004 PyObject *klass = data->klass;
2005 if (klass) {
2006 PyObject *impconv;
2007 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv = SWIG_Python_CallFunctor(klass, obj);
2009 data->implicitconv = 0;
2010 if (PyErr_Occurred()) {
2011 PyErr_Clear();
2012 impconv = 0;
2013 }
2014 if (impconv) {
2015 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2016 if (iobj) {
2017 void *vptr;
2018 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2019 if (SWIG_IsOK(res)) {
2020 if (ptr) {
2021 *ptr = vptr;
2022 /* transfer the ownership to 'ptr' */
2023 iobj->own = 0;
2024 res = SWIG_AddCast(res);
2025 res = SWIG_AddNewMask(res);
2026 } else {
2027 res = SWIG_AddCast(res);
2028 }
2029 }
2030 }
2031 Py_DECREF(impconv);
2032 }
2033 }
2034 }
2035 }
2036 return res;
2037 }
2038 }
2039 }
2040
2041 /* Convert a function ptr value */
2042
2043 SWIGRUNTIME int
2044 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2045 if (!PyCFunction_Check(obj)) {
2046 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2047 } else {
2048 void *vptr = 0;
2049
2050 /* here we get the method pointer for callbacks */
2051 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053 if (desc) {
2054 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2055 if (!desc) return SWIG_ERROR;
2056 }
2057 if (ty) {
2058 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2059 if (!tc) return SWIG_ERROR;
2060 *ptr = SWIG_TypeCast(tc,vptr);
2061 } else {
2062 *ptr = vptr;
2063 }
2064 return SWIG_OK;
2065 }
2066 }
2067
2068 /* Convert a packed value value */
2069
2070 SWIGRUNTIME int
2071 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2072 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2073 if (!to) return SWIG_ERROR;
2074 if (ty) {
2075 if (to != ty) {
2076 /* check type cast? */
2077 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2078 if (!tc) return SWIG_ERROR;
2079 }
2080 }
2081 return SWIG_OK;
2082 }
2083
2084 /* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
2087
2088 /*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091 */
2092
2093 SWIGRUNTIME PyObject*
2094 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2095 {
2096 #if (PY_VERSION_HEX >= 0x02020000)
2097 PyObject *inst = 0;
2098 PyObject *newraw = data->newraw;
2099 if (newraw) {
2100 inst = PyObject_Call(newraw, data->newargs, NULL);
2101 if (inst) {
2102 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2104 if (dictptr != NULL) {
2105 PyObject *dict = *dictptr;
2106 if (dict == NULL) {
2107 dict = PyDict_New();
2108 *dictptr = dict;
2109 PyDict_SetItem(dict, SWIG_This(), swig_this);
2110 }
2111 }
2112 #else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115 #endif
2116 }
2117 } else {
2118 PyObject *dict = PyDict_New();
2119 PyDict_SetItem(dict, SWIG_This(), swig_this);
2120 inst = PyInstance_NewRaw(data->newargs, dict);
2121 Py_DECREF(dict);
2122 }
2123 return inst;
2124 #else
2125 #if (PY_VERSION_HEX >= 0x02010000)
2126 PyObject *inst;
2127 PyObject *dict = PyDict_New();
2128 PyDict_SetItem(dict, SWIG_This(), swig_this);
2129 inst = PyInstance_NewRaw(data->newargs, dict);
2130 Py_DECREF(dict);
2131 return (PyObject *) inst;
2132 #else
2133 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2134 if (inst == NULL) {
2135 return NULL;
2136 }
2137 inst->in_class = (PyClassObject *)data->newargs;
2138 Py_INCREF(inst->in_class);
2139 inst->in_dict = PyDict_New();
2140 if (inst->in_dict == NULL) {
2141 Py_DECREF(inst);
2142 return NULL;
2143 }
2144 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst->in_weakreflist = NULL;
2146 #endif
2147 #ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst);
2149 #endif
2150 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2151 return (PyObject *) inst;
2152 #endif
2153 #endif
2154 }
2155
2156 SWIGRUNTIME void
2157 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2158 {
2159 PyObject *dict;
2160 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2162 if (dictptr != NULL) {
2163 dict = *dictptr;
2164 if (dict == NULL) {
2165 dict = PyDict_New();
2166 *dictptr = dict;
2167 }
2168 PyDict_SetItem(dict, SWIG_This(), swig_this);
2169 return;
2170 }
2171 #endif
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175 }
2176
2177
2178 SWIGINTERN PyObject *
2179 SWIG_Python_InitShadowInstance(PyObject *args) {
2180 PyObject *obj[2];
2181 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2182 return NULL;
2183 } else {
2184 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2185 if (sthis) {
2186 PySwigObject_append((PyObject*) sthis, obj[1]);
2187 } else {
2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2189 }
2190 return SWIG_Py_Void();
2191 }
2192 }
2193
2194 /* Create a new pointer object */
2195
2196 SWIGRUNTIME PyObject *
2197 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2198 if (!ptr) {
2199 return SWIG_Py_Void();
2200 } else {
2201 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2202 PyObject *robj = PySwigObject_New(ptr, type, own);
2203 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2204 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2205 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2206 if (inst) {
2207 Py_DECREF(robj);
2208 robj = inst;
2209 }
2210 }
2211 return robj;
2212 }
2213 }
2214
2215 /* Create a new packed object */
2216
2217 SWIGRUNTIMEINLINE PyObject *
2218 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2220 }
2221
2222 /* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
2225
2226 #ifdef SWIG_LINK_RUNTIME
2227 void *SWIG_ReturnGlobalTypeList(void *);
2228 #endif
2229
2230 SWIGRUNTIME swig_module_info *
2231 SWIG_Python_GetModule(void) {
2232 static void *type_pointer = (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer) {
2235 #ifdef SWIG_LINK_RUNTIME
2236 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2237 #else
2238 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2240 if (PyErr_Occurred()) {
2241 PyErr_Clear();
2242 type_pointer = (void *)0;
2243 }
2244 #endif
2245 }
2246 return (swig_module_info *) type_pointer;
2247 }
2248
2249 #if PY_MAJOR_VERSION < 2
2250 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2251 is copied out of Python/modsupport.c in python version 2.3.4 */
2252 SWIGINTERN int
2253 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2254 {
2255 PyObject *dict;
2256 if (!PyModule_Check(m)) {
2257 PyErr_SetString(PyExc_TypeError,
2258 "PyModule_AddObject() needs module as first arg");
2259 return SWIG_ERROR;
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
2264 return SWIG_ERROR;
2265 }
2266
2267 dict = PyModule_GetDict(m);
2268 if (dict == NULL) {
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2271 PyModule_GetName(m));
2272 return SWIG_ERROR;
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
2275 return SWIG_ERROR;
2276 Py_DECREF(o);
2277 return SWIG_OK;
2278 }
2279 #endif
2280
2281 SWIGRUNTIME void
2282 SWIG_Python_DestroyModule(void *vptr)
2283 {
2284 swig_module_info *swig_module = (swig_module_info *) vptr;
2285 swig_type_info **types = swig_module->types;
2286 size_t i;
2287 for (i =0; i < swig_module->size; ++i) {
2288 swig_type_info *ty = types[i];
2289 if (ty->owndata) {
2290 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2291 if (data) PySwigClientData_Del(data);
2292 }
2293 }
2294 Py_DECREF(SWIG_This());
2295 }
2296
2297 SWIGRUNTIME void
2298 SWIG_Python_SetModule(swig_module_info *swig_module) {
2299 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2300
2301 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2302 swig_empty_runtime_method_table);
2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2306 } else {
2307 Py_XDECREF(pointer);
2308 }
2309 }
2310
2311 /* The python cached type query */
2312 SWIGRUNTIME PyObject *
2313 SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
2316 }
2317
2318 SWIGRUNTIME swig_type_info *
2319 SWIG_Python_TypeQuery(const char *type)
2320 {
2321 PyObject *cache = SWIG_Python_TypeCache();
2322 PyObject *key = PyString_FromString(type);
2323 PyObject *obj = PyDict_GetItem(cache, key);
2324 swig_type_info *descriptor;
2325 if (obj) {
2326 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2327 } else {
2328 swig_module_info *swig_module = SWIG_Python_GetModule();
2329 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2330 if (descriptor) {
2331 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2332 PyDict_SetItem(cache, key, obj);
2333 Py_DECREF(obj);
2334 }
2335 }
2336 Py_DECREF(key);
2337 return descriptor;
2338 }
2339
2340 /*
2341 For backward compatibility only
2342 */
2343 #define SWIG_POINTER_EXCEPTION 0
2344 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2346
2347 SWIGRUNTIME int
2348 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2349 {
2350 if (PyErr_Occurred()) {
2351 PyObject *type = 0;
2352 PyObject *value = 0;
2353 PyObject *traceback = 0;
2354 PyErr_Fetch(&type, &value, &traceback);
2355 if (value) {
2356 PyObject *old_str = PyObject_Str(value);
2357 Py_XINCREF(type);
2358 PyErr_Clear();
2359 if (infront) {
2360 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2361 } else {
2362 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2363 }
2364 Py_DECREF(old_str);
2365 }
2366 return 1;
2367 } else {
2368 return 0;
2369 }
2370 }
2371
2372 SWIGRUNTIME int
2373 SWIG_Python_ArgFail(int argnum)
2374 {
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2377 char mesg[256];
2378 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2379 return SWIG_Python_AddErrMesg(mesg, 1);
2380 } else {
2381 return 0;
2382 }
2383 }
2384
2385 SWIGRUNTIMEINLINE const char *
2386 PySwigObject_GetDesc(PyObject *self)
2387 {
2388 PySwigObject *v = (PySwigObject *)self;
2389 swig_type_info *ty = v ? v->ty : 0;
2390 return ty ? ty->str : (char*)"";
2391 }
2392
2393 SWIGRUNTIME void
2394 SWIG_Python_TypeError(const char *type, PyObject *obj)
2395 {
2396 if (type) {
2397 #if defined(SWIG_COBJECT_TYPES)
2398 if (obj && PySwigObject_Check(obj)) {
2399 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2400 if (otype) {
2401 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2402 type, otype);
2403 return;
2404 }
2405 } else
2406 #endif
2407 {
2408 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2409 if (otype) {
2410 PyObject *str = PyObject_Str(obj);
2411 const char *cstr = str ? PyString_AsString(str) : 0;
2412 if (cstr) {
2413 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2414 type, otype, cstr);
2415 } else {
2416 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2417 type, otype);
2418 }
2419 Py_XDECREF(str);
2420 return;
2421 }
2422 }
2423 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2424 } else {
2425 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2426 }
2427 }
2428
2429
2430 /* Convert a pointer value, signal an exception on a type mismatch */
2431 SWIGRUNTIME void *
2432 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2433 void *result;
2434 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2435 PyErr_Clear();
2436 if (flags & SWIG_POINTER_EXCEPTION) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2438 SWIG_Python_ArgFail(argnum);
2439 }
2440 }
2441 return result;
2442 }
2443
2444
2445 #ifdef __cplusplus
2446 #if 0
2447 { /* cc-mode */
2448 #endif
2449 }
2450 #endif
2451
2452
2453
2454 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2455
2456 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2457
2458
2459
2460 /* -------- TYPES TABLE (BEGIN) -------- */
2461
2462 #define SWIGTYPE_p_char swig_types[0]
2463 #define SWIGTYPE_p_double swig_types[1]
2464 #define SWIGTYPE_p_form_ops_t swig_types[2]
2465 #define SWIGTYPE_p_int swig_types[3]
2466 #define SWIGTYPE_p_unsigned_char swig_types[4]
2467 #define SWIGTYPE_p_unsigned_int swig_types[5]
2468 #define SWIGTYPE_p_unsigned_long swig_types[6]
2469 #define SWIGTYPE_p_wxANIHandler swig_types[7]
2470 #define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
2471 #define SWIGTYPE_p_wxActivateEvent swig_types[9]
2472 #define SWIGTYPE_p_wxBMPHandler swig_types[10]
2473 #define SWIGTYPE_p_wxBitmap swig_types[11]
2474 #define SWIGTYPE_p_wxBoxSizer swig_types[12]
2475 #define SWIGTYPE_p_wxBrush swig_types[13]
2476 #define SWIGTYPE_p_wxBrushList swig_types[14]
2477 #define SWIGTYPE_p_wxBufferedDC swig_types[15]
2478 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[16]
2479 #define SWIGTYPE_p_wxCURHandler swig_types[17]
2480 #define SWIGTYPE_p_wxChildFocusEvent swig_types[18]
2481 #define SWIGTYPE_p_wxClientDC swig_types[19]
2482 #define SWIGTYPE_p_wxCloseEvent swig_types[20]
2483 #define SWIGTYPE_p_wxColour swig_types[21]
2484 #define SWIGTYPE_p_wxColourDatabase swig_types[22]
2485 #define SWIGTYPE_p_wxCommandEvent swig_types[23]
2486 #define SWIGTYPE_p_wxContextMenuEvent swig_types[24]
2487 #define SWIGTYPE_p_wxControl swig_types[25]
2488 #define SWIGTYPE_p_wxControlWithItems swig_types[26]
2489 #define SWIGTYPE_p_wxCursor swig_types[27]
2490 #define SWIGTYPE_p_wxDC swig_types[28]
2491 #define SWIGTYPE_p_wxDash swig_types[29]
2492 #define SWIGTYPE_p_wxDateEvent swig_types[30]
2493 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[31]
2494 #define SWIGTYPE_p_wxDropFilesEvent swig_types[32]
2495 #define SWIGTYPE_p_wxDuplexMode swig_types[33]
2496 #define SWIGTYPE_p_wxEffects swig_types[34]
2497 #define SWIGTYPE_p_wxEncodingConverter swig_types[35]
2498 #define SWIGTYPE_p_wxEraseEvent swig_types[36]
2499 #define SWIGTYPE_p_wxEvent swig_types[37]
2500 #define SWIGTYPE_p_wxEvtHandler swig_types[38]
2501 #define SWIGTYPE_p_wxFSFile swig_types[39]
2502 #define SWIGTYPE_p_wxFileSystem swig_types[40]
2503 #define SWIGTYPE_p_wxFlexGridSizer swig_types[41]
2504 #define SWIGTYPE_p_wxFocusEvent swig_types[42]
2505 #define SWIGTYPE_p_wxFont swig_types[43]
2506 #define SWIGTYPE_p_wxFontList swig_types[44]
2507 #define SWIGTYPE_p_wxFontMapper swig_types[45]
2508 #define SWIGTYPE_p_wxGBSizerItem swig_types[46]
2509 #define SWIGTYPE_p_wxGDIObject swig_types[47]
2510 #define SWIGTYPE_p_wxGIFHandler swig_types[48]
2511 #define SWIGTYPE_p_wxGridBagSizer swig_types[49]
2512 #define SWIGTYPE_p_wxGridSizer swig_types[50]
2513 #define SWIGTYPE_p_wxICOHandler swig_types[51]
2514 #define SWIGTYPE_p_wxIcon swig_types[52]
2515 #define SWIGTYPE_p_wxIconBundle swig_types[53]
2516 #define SWIGTYPE_p_wxIconLocation swig_types[54]
2517 #define SWIGTYPE_p_wxIconizeEvent swig_types[55]
2518 #define SWIGTYPE_p_wxIdleEvent swig_types[56]
2519 #define SWIGTYPE_p_wxImage swig_types[57]
2520 #define SWIGTYPE_p_wxImageHandler swig_types[58]
2521 #define SWIGTYPE_p_wxImageList swig_types[59]
2522 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[60]
2523 #define SWIGTYPE_p_wxInitDialogEvent swig_types[61]
2524 #define SWIGTYPE_p_wxJPEGHandler swig_types[62]
2525 #define SWIGTYPE_p_wxKeyEvent swig_types[63]
2526 #define SWIGTYPE_p_wxLanguageInfo swig_types[64]
2527 #define SWIGTYPE_p_wxLayoutConstraints swig_types[65]
2528 #define SWIGTYPE_p_wxLocale swig_types[66]
2529 #define SWIGTYPE_p_wxMask swig_types[67]
2530 #define SWIGTYPE_p_wxMaximizeEvent swig_types[68]
2531 #define SWIGTYPE_p_wxMemoryDC swig_types[69]
2532 #define SWIGTYPE_p_wxMenu swig_types[70]
2533 #define SWIGTYPE_p_wxMenuBar swig_types[71]
2534 #define SWIGTYPE_p_wxMenuEvent swig_types[72]
2535 #define SWIGTYPE_p_wxMenuItem swig_types[73]
2536 #define SWIGTYPE_p_wxMetaFile swig_types[74]
2537 #define SWIGTYPE_p_wxMetaFileDC swig_types[75]
2538 #define SWIGTYPE_p_wxMirrorDC swig_types[76]
2539 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[77]
2540 #define SWIGTYPE_p_wxMouseEvent swig_types[78]
2541 #define SWIGTYPE_p_wxMoveEvent swig_types[79]
2542 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[80]
2543 #define SWIGTYPE_p_wxNativeFontInfo swig_types[81]
2544 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[82]
2545 #define SWIGTYPE_p_wxNcPaintEvent swig_types[83]
2546 #define SWIGTYPE_p_wxNotifyEvent swig_types[84]
2547 #define SWIGTYPE_p_wxObject swig_types[85]
2548 #define SWIGTYPE_p_wxPCXHandler swig_types[86]
2549 #define SWIGTYPE_p_wxPNGHandler swig_types[87]
2550 #define SWIGTYPE_p_wxPNMHandler swig_types[88]
2551 #define SWIGTYPE_p_wxPaintDC swig_types[89]
2552 #define SWIGTYPE_p_wxPaintEvent swig_types[90]
2553 #define SWIGTYPE_p_wxPalette swig_types[91]
2554 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[92]
2555 #define SWIGTYPE_p_wxPaperSize swig_types[93]
2556 #define SWIGTYPE_p_wxPen swig_types[94]
2557 #define SWIGTYPE_p_wxPenList swig_types[95]
2558 #define SWIGTYPE_p_wxPoint swig_types[96]
2559 #define SWIGTYPE_p_wxPostScriptDC swig_types[97]
2560 #define SWIGTYPE_p_wxPrintData swig_types[98]
2561 #define SWIGTYPE_p_wxPrinterDC swig_types[99]
2562 #define SWIGTYPE_p_wxPyApp swig_types[100]
2563 #define SWIGTYPE_p_wxPyCommandEvent swig_types[101]
2564 #define SWIGTYPE_p_wxPyEvent swig_types[102]
2565 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[103]
2566 #define SWIGTYPE_p_wxPyImageHandler swig_types[104]
2567 #define SWIGTYPE_p_wxPySizer swig_types[105]
2568 #define SWIGTYPE_p_wxPyValidator swig_types[106]
2569 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[107]
2570 #define SWIGTYPE_p_wxRect swig_types[108]
2571 #define SWIGTYPE_p_wxRegion swig_types[109]
2572 #define SWIGTYPE_p_wxRegionIterator swig_types[110]
2573 #define SWIGTYPE_p_wxRendererNative swig_types[111]
2574 #define SWIGTYPE_p_wxRendererVersion swig_types[112]
2575 #define SWIGTYPE_p_wxScreenDC swig_types[113]
2576 #define SWIGTYPE_p_wxScrollEvent swig_types[114]
2577 #define SWIGTYPE_p_wxScrollWinEvent swig_types[115]
2578 #define SWIGTYPE_p_wxSetCursorEvent swig_types[116]
2579 #define SWIGTYPE_p_wxShowEvent swig_types[117]
2580 #define SWIGTYPE_p_wxSize swig_types[118]
2581 #define SWIGTYPE_p_wxSizeEvent swig_types[119]
2582 #define SWIGTYPE_p_wxSizer swig_types[120]
2583 #define SWIGTYPE_p_wxSizerItem swig_types[121]
2584 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[122]
2585 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[123]
2586 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[124]
2587 #define SWIGTYPE_p_wxString swig_types[125]
2588 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[126]
2589 #define SWIGTYPE_p_wxTIFFHandler swig_types[127]
2590 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[128]
2591 #define SWIGTYPE_p_wxValidator swig_types[129]
2592 #define SWIGTYPE_p_wxWindow swig_types[130]
2593 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[131]
2594 #define SWIGTYPE_p_wxWindowDC swig_types[132]
2595 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[133]
2596 #define SWIGTYPE_p_wxXPMHandler swig_types[134]
2597 static swig_type_info *swig_types[136];
2598 static swig_module_info swig_module = {swig_types, 135, 0, 0, 0, 0};
2599 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2600 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2601
2602 /* -------- TYPES TABLE (END) -------- */
2603
2604 #if (PY_VERSION_HEX <= 0x02000000)
2605 # if !defined(SWIG_PYTHON_CLASSIC)
2606 # error "This python version requires to use swig with the '-classic' option"
2607 # endif
2608 #endif
2609 #if (PY_VERSION_HEX <= 0x02020000)
2610 # error "This python version requires to use swig with the '-nomodern' option"
2611 #endif
2612 #if (PY_VERSION_HEX <= 0x02020000)
2613 # error "This python version requires to use swig with the '-nomodernargs' option"
2614 #endif
2615 #ifndef METH_O
2616 # error "This python version requires to use swig with the '-nofastunpack' option"
2617 #endif
2618
2619 /*-----------------------------------------------
2620 @(target):= _gdi_.so
2621 ------------------------------------------------*/
2622 #define SWIG_init init_gdi_
2623
2624 #define SWIG_name "_gdi_"
2625
2626 #define SWIGVERSION 0x010329
2627
2628
2629 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2630 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2631
2632
2633 #include <stdexcept>
2634
2635
2636 namespace swig {
2637 class PyObject_ptr {
2638 protected:
2639 PyObject *_obj;
2640
2641 public:
2642 PyObject_ptr() :_obj(0)
2643 {
2644 }
2645
2646 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2647 {
2648 Py_XINCREF(_obj);
2649 }
2650
2651 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2652 {
2653 if (initial_ref) Py_XINCREF(_obj);
2654 }
2655
2656 PyObject_ptr & operator=(const PyObject_ptr& item)
2657 {
2658 Py_XINCREF(item._obj);
2659 Py_XDECREF(_obj);
2660 _obj = item._obj;
2661 return *this;
2662 }
2663
2664 ~PyObject_ptr()
2665 {
2666 Py_XDECREF(_obj);
2667 }
2668
2669 operator PyObject *() const
2670 {
2671 return _obj;
2672 }
2673
2674 PyObject *operator->() const
2675 {
2676 return _obj;
2677 }
2678 };
2679 }
2680
2681
2682 namespace swig {
2683 struct PyObject_var : PyObject_ptr {
2684 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2685
2686 PyObject_var & operator = (PyObject* obj)
2687 {
2688 Py_XDECREF(_obj);
2689 _obj = obj;
2690 return *this;
2691 }
2692 };
2693 }
2694
2695
2696 #include "wx/wxPython/wxPython.h"
2697 #include "wx/wxPython/pyclasses.h"
2698
2699
2700 static const wxString wxPyEmptyString(wxEmptyString);
2701
2702 SWIGINTERN int
2703 SWIG_AsVal_long (PyObject* obj, long* val)
2704 {
2705 if (PyNumber_Check(obj)) {
2706 if (val) *val = PyInt_AsLong(obj);
2707 return SWIG_OK;
2708 }
2709 return SWIG_TypeError;
2710 }
2711
2712
2713 SWIGINTERN int
2714 SWIG_AsVal_bool (PyObject *obj, bool *val)
2715 {
2716 if (obj == Py_True) {
2717 if (val) *val = true;
2718 return SWIG_OK;
2719 } else if (obj == Py_False) {
2720 if (val) *val = false;
2721 return SWIG_OK;
2722 } else {
2723 long v = 0;
2724 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2725 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2726 return res;
2727 }
2728 }
2729
2730
2731 #include <limits.h>
2732 #ifndef LLONG_MIN
2733 # define LLONG_MIN LONG_LONG_MIN
2734 #endif
2735 #ifndef LLONG_MAX
2736 # define LLONG_MAX LONG_LONG_MAX
2737 #endif
2738 #ifndef ULLONG_MAX
2739 # define ULLONG_MAX ULONG_LONG_MAX
2740 #endif
2741
2742
2743 SWIGINTERN int
2744 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2745 {
2746 long v = 0;
2747 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2748 return SWIG_TypeError;
2749 }
2750 else if (val)
2751 *val = (unsigned long)v;
2752 return SWIG_OK;
2753 }
2754
2755
2756 SWIGINTERN int
2757 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2758 {
2759 unsigned long v;
2760 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2761 if (SWIG_IsOK(res)) {
2762 if ((v > UCHAR_MAX)) {
2763 return SWIG_OverflowError;
2764 } else {
2765 if (val) *val = static_cast< unsigned char >(v);
2766 }
2767 }
2768 return res;
2769 }
2770
2771
2772 #define SWIG_From_long PyInt_FromLong
2773
2774
2775 SWIGINTERNINLINE PyObject*
2776 SWIG_From_unsigned_SS_long (unsigned long value)
2777 {
2778 return (value > LONG_MAX) ?
2779 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2780 }
2781
2782
2783 SWIGINTERNINLINE PyObject *
2784 SWIG_From_unsigned_SS_char (unsigned char value)
2785 {
2786 return SWIG_From_unsigned_SS_long (value);
2787 }
2788
2789 SWIGINTERN PyObject *wxColour_Get(wxColour *self){
2790 PyObject* rv = PyTuple_New(3);
2791 int red = -1;
2792 int green = -1;
2793 int blue = -1;
2794 if (self->Ok()) {
2795 red = self->Red();
2796 green = self->Green();
2797 blue = self->Blue();
2798 }
2799 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2800 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2801 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2802 return rv;
2803 }
2804 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2805 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2806 }
2807
2808 SWIGINTERN int
2809 SWIG_AsVal_int (PyObject * obj, int *val)
2810 {
2811 long v;
2812 int res = SWIG_AsVal_long (obj, &v);
2813 if (SWIG_IsOK(res)) {
2814 if ((v < INT_MIN || v > INT_MAX)) {
2815 return SWIG_OverflowError;
2816 } else {
2817 if (val) *val = static_cast< int >(v);
2818 }
2819 }
2820 return res;
2821 }
2822
2823
2824 SWIGINTERNINLINE PyObject *
2825 SWIG_From_int (int value)
2826 {
2827 return SWIG_From_long (value);
2828 }
2829
2830 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2831 wxDash* dashes;
2832 int count = self->GetDashes(&dashes);
2833 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2834 PyObject* retval = PyList_New(0);
2835 for (int x=0; x<count; x++) {
2836 PyObject* pyint = PyInt_FromLong(dashes[x]);
2837 PyList_Append(retval, pyint);
2838 Py_DECREF(pyint);
2839 }
2840 wxPyEndBlockThreads(blocked);
2841 return retval;
2842 }
2843 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2844 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2845 int size = PyList_Size(pyDashes);
2846 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2847
2848 // black magic warning! The array of wxDashes needs to exist as
2849 // long as the pen does because wxPen does not copy the array. So
2850 // stick a copy in a Python string object and attach it to _self,
2851 // and then call SetDashes with a pointer to that array. Then
2852 // when the Python pen object is destroyed the array will be
2853 // cleaned up too.
2854 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2855 PyObject_SetAttrString(_self, "_dashes", strDashes);
2856
2857 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2858 delete [] dashes;
2859 Py_DECREF(strDashes);
2860 wxPyEndBlockThreads(blocked);
2861 }
2862 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2863 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2864
2865 SWIGINTERNINLINE PyObject *
2866 SWIG_From_short (short value)
2867 {
2868 return SWIG_From_long (value);
2869 }
2870
2871
2872 SWIGINTERN int
2873 SWIG_AsVal_short (PyObject * obj, short *val)
2874 {
2875 long v;
2876 int res = SWIG_AsVal_long (obj, &v);
2877 if (SWIG_IsOK(res)) {
2878 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2879 return SWIG_OverflowError;
2880 } else {
2881 if (val) *val = static_cast< short >(v);
2882 }
2883 }
2884 return res;
2885 }
2886
2887
2888 #include <wx/image.h>
2889
2890 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2891 char** cArray = NULL;
2892 int count;
2893
2894 if (!PyList_Check(listOfStrings)) {
2895 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2896 return NULL;
2897 }
2898 count = PyList_Size(listOfStrings);
2899 cArray = new char*[count];
2900
2901 for(int x=0; x<count; x++) {
2902 // TODO: Need some validation and error checking here
2903 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2904 }
2905 return cArray;
2906 }
2907
2908
2909 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2910 char** cArray = NULL;
2911 wxBitmap* bmp;
2912
2913 cArray = ConvertListOfStrings(listOfStrings);
2914 if (! cArray)
2915 return NULL;
2916 bmp = new wxBitmap(cArray);
2917 delete [] cArray;
2918 return bmp;
2919 }
2920 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2921 char* buf;
2922 int length;
2923 PyString_AsStringAndSize(bits, &buf, &length);
2924 return new wxBitmap(buf, width, height, depth);
2925 }
2926 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2927 wxSize size(self->GetWidth(), self->GetHeight());
2928 return size;
2929 }
2930 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2931 wxMask *mask = new wxMask(*self, colour);
2932 self->SetMask(mask);
2933 }
2934 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2935 self->SetWidth(size.x);
2936 self->SetHeight(size.y);
2937 }
2938 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2939 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2940 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
2941 if ( !colour.Ok() )
2942 return new wxMask(bitmap, *wxBLACK);
2943 else
2944 return new wxMask(bitmap, colour);
2945 }
2946
2947 #include <wx/iconbndl.h>
2948
2949 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
2950 wxIcon* icon = new wxIcon();
2951 icon->CopyFromBitmap(bmp);
2952 return icon;
2953 }
2954 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
2955 char** cArray = NULL;
2956 wxIcon* icon;
2957
2958 cArray = ConvertListOfStrings(listOfStrings);
2959 if (! cArray)
2960 return NULL;
2961 icon = new wxIcon(cArray);
2962 delete [] cArray;
2963 return icon;
2964 }
2965 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2966
2967
2968
2969 return new wxIconLocation(*filename);
2970
2971 }
2972 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2973
2974
2975
2976 // do nothing
2977
2978 }
2979 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
2980
2981
2982
2983 return -1;
2984
2985 }
2986 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2987 #ifdef __WXGTK__
2988 wxImage img(cursorName, type);
2989 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2990 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2991 return new wxCursor(img);
2992 #else
2993 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
2994 #endif
2995 }
2996
2997
2998 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
2999 (*self) ++;
3000 }
3001 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3002 return self->operator bool();
3003 }
3004
3005 #include <wx/fontutil.h>
3006 #include <wx/fontmap.h>
3007 #include <wx/fontenum.h>
3008
3009 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3010 return self->ToString();
3011 }
3012
3013 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3014 static wxNativeEncodingInfo info;
3015 if ( wxGetNativeFontEncoding(encoding, &info) )
3016 return &info;
3017 else
3018 return NULL;
3019 }
3020
3021
3022 SWIGINTERNINLINE PyObject *
3023 SWIG_From_size_t (size_t value)
3024 {
3025 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3026 }
3027
3028
3029 SWIGINTERNINLINE int
3030 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3031 {
3032 unsigned long v;
3033 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3034 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3035 return res;
3036 }
3037
3038 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3039 wxFontEncoding alt_enc;
3040 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3041 return PyInt_FromLong(alt_enc);
3042 else {
3043 Py_INCREF(Py_None);
3044 return Py_None;
3045 }
3046 }
3047 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3048 wxNativeFontInfo nfi;
3049 nfi.FromString(info);
3050 return new wxFont(nfi);
3051 }
3052 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3053 return wxFont::New(pointSize, family, flags, face, encoding);
3054 }
3055 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3056 return wxFontBase::New(pixelSize, family,
3057 style, weight, underlined,
3058 face, encoding);
3059 }
3060 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3061 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3062 }
3063 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3064 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3065
3066 class wxPyFontEnumerator : public wxFontEnumerator {
3067 public:
3068 wxPyFontEnumerator() {}
3069 ~wxPyFontEnumerator() {}
3070
3071 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3072 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3073
3074 PYPRIVATE;
3075 };
3076
3077 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3078 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3079
3080
3081 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
3082 wxArrayString* arr = self->GetEncodings();
3083 if (arr)
3084 return wxArrayString2PyList_helper(*arr);
3085 else
3086 return PyList_New(0);
3087 }
3088 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
3089 wxArrayString* arr = self->GetFacenames();
3090 if (arr)
3091 return wxArrayString2PyList_helper(*arr);
3092 else
3093 return PyList_New(0);
3094 }
3095
3096 #include <locale.h>
3097
3098 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3099 wxLocale* loc;
3100 if (language == -1)
3101 loc = new wxLocale();
3102 else
3103 loc = new wxLocale(language, flags);
3104 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3105 // for the floating point conversions and such to work right.
3106 #if PY_VERSION_HEX < 0x02040000
3107 setlocale(LC_NUMERIC, "C");
3108 #endif
3109 return loc;
3110 }
3111 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3112 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3113 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3114 // for the floating point conversions and such to work right.
3115 #if PY_VERSION_HEX < 0x02040000
3116 setlocale(LC_NUMERIC, "C");
3117 #endif
3118 return rc;
3119 }
3120 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3121 bool rc = self->Init(language, flags);
3122 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3123 // for the floating point conversions and such to work right.
3124 #if PY_VERSION_HEX < 0x02040000
3125 setlocale(LC_NUMERIC, "C");
3126 #endif
3127 return rc;
3128 }
3129
3130 #include "wx/wxPython/pydrawxxx.h"
3131
3132 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3133 wxColour col;
3134 self->GetPixel(x, y, &col);
3135 return col;
3136 }
3137 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3138 wxColour col;
3139 self->GetPixel(pt, &col);
3140 return col;
3141 }
3142
3143 SWIGINTERN int
3144 SWIG_AsVal_double (PyObject *obj, double* val)
3145 {
3146 if (PyNumber_Check(obj)) {
3147 if (val) *val = PyFloat_AsDouble(obj);
3148 return SWIG_OK;
3149 }
3150 return SWIG_TypeError;
3151 }
3152
3153 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3154 wxRect rv;
3155 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3156 return rv;
3157 }
3158 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3159 wxRect rect;
3160 self->GetClippingBox(rect);
3161 return rect;
3162 }
3163 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3164 wxArrayInt widths;
3165 self->GetPartialTextExtents(text, widths);
3166 return widths;
3167 }
3168
3169 #define SWIG_From_double PyFloat_FromDouble
3170
3171 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3172 self->SetLogicalOrigin(point.x, point.y);
3173 }
3174 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3175 self->SetDeviceOrigin(point.x, point.y);
3176 }
3177 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3178 self->CalcBoundingBox(point.x, point.y);
3179 }
3180 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3181 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3182 }
3183 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3184 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3185 }
3186 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3187 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3188 }
3189 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3190 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3191 }
3192 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3193 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3194 }
3195 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3196 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3197 }
3198
3199 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3200 *x1 = dc->MinX();
3201 *y1 = dc->MinY();
3202 *x2 = dc->MaxX();
3203 *y2 = dc->MaxY();
3204 }
3205
3206
3207 #include <wx/dcbuffer.h>
3208
3209
3210 #include <wx/dcps.h>
3211
3212
3213 #include <wx/metafile.h>
3214
3215
3216
3217 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3218 self->AddColour(name, wxColour(red, green, blue));
3219 }
3220
3221 #include <wx/effects.h>
3222
3223
3224 #include "wx/renderer.h"
3225
3226
3227 SWIGINTERNINLINE PyObject*
3228 SWIG_From_bool (bool value)
3229 {
3230 return PyBool_FromLong(value ? 1 : 0);
3231 }
3232
3233 #ifdef __cplusplus
3234 extern "C" {
3235 #endif
3236 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3237 PyObject *resultobj = 0;
3238 wxGDIObject *result = 0 ;
3239
3240 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3241 {
3242 if (!wxPyCheckForApp()) SWIG_fail;
3243 PyThreadState* __tstate = wxPyBeginAllowThreads();
3244 result = (wxGDIObject *)new wxGDIObject();
3245 wxPyEndAllowThreads(__tstate);
3246 if (PyErr_Occurred()) SWIG_fail;
3247 }
3248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3249 return resultobj;
3250 fail:
3251 return NULL;
3252 }
3253
3254
3255 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3256 PyObject *resultobj = 0;
3257 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3258 void *argp1 = 0 ;
3259 int res1 = 0 ;
3260 PyObject *swig_obj[1] ;
3261
3262 if (!args) SWIG_fail;
3263 swig_obj[0] = args;
3264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3265 if (!SWIG_IsOK(res1)) {
3266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3267 }
3268 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3269 {
3270 PyThreadState* __tstate = wxPyBeginAllowThreads();
3271 delete arg1;
3272
3273 wxPyEndAllowThreads(__tstate);
3274 if (PyErr_Occurred()) SWIG_fail;
3275 }
3276 resultobj = SWIG_Py_Void();
3277 return resultobj;
3278 fail:
3279 return NULL;
3280 }
3281
3282
3283 SWIGINTERN PyObject *_wrap_GDIObject_GetVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3284 PyObject *resultobj = 0;
3285 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3286 bool result;
3287 void *argp1 = 0 ;
3288 int res1 = 0 ;
3289 PyObject *swig_obj[1] ;
3290
3291 if (!args) SWIG_fail;
3292 swig_obj[0] = args;
3293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3294 if (!SWIG_IsOK(res1)) {
3295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_GetVisible" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3296 }
3297 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3298 {
3299 PyThreadState* __tstate = wxPyBeginAllowThreads();
3300 result = (bool)(arg1)->GetVisible();
3301 wxPyEndAllowThreads(__tstate);
3302 if (PyErr_Occurred()) SWIG_fail;
3303 }
3304 {
3305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3306 }
3307 return resultobj;
3308 fail:
3309 return NULL;
3310 }
3311
3312
3313 SWIGINTERN PyObject *_wrap_GDIObject_SetVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3314 PyObject *resultobj = 0;
3315 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3316 bool arg2 ;
3317 void *argp1 = 0 ;
3318 int res1 = 0 ;
3319 bool val2 ;
3320 int ecode2 = 0 ;
3321 PyObject * obj0 = 0 ;
3322 PyObject * obj1 = 0 ;
3323 char * kwnames[] = {
3324 (char *) "self",(char *) "visible", NULL
3325 };
3326
3327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) SWIG_fail;
3328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3329 if (!SWIG_IsOK(res1)) {
3330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_SetVisible" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3331 }
3332 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3333 ecode2 = SWIG_AsVal_bool(obj1, &val2);
3334 if (!SWIG_IsOK(ecode2)) {
3335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GDIObject_SetVisible" "', expected argument " "2"" of type '" "bool""'");
3336 }
3337 arg2 = static_cast< bool >(val2);
3338 {
3339 PyThreadState* __tstate = wxPyBeginAllowThreads();
3340 (arg1)->SetVisible(arg2);
3341 wxPyEndAllowThreads(__tstate);
3342 if (PyErr_Occurred()) SWIG_fail;
3343 }
3344 resultobj = SWIG_Py_Void();
3345 return resultobj;
3346 fail:
3347 return NULL;
3348 }
3349
3350
3351 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3352 PyObject *resultobj = 0;
3353 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3354 bool result;
3355 void *argp1 = 0 ;
3356 int res1 = 0 ;
3357 PyObject *swig_obj[1] ;
3358
3359 if (!args) SWIG_fail;
3360 swig_obj[0] = args;
3361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3362 if (!SWIG_IsOK(res1)) {
3363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3364 }
3365 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3366 {
3367 PyThreadState* __tstate = wxPyBeginAllowThreads();
3368 result = (bool)(arg1)->IsNull();
3369 wxPyEndAllowThreads(__tstate);
3370 if (PyErr_Occurred()) SWIG_fail;
3371 }
3372 {
3373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3374 }
3375 return resultobj;
3376 fail:
3377 return NULL;
3378 }
3379
3380
3381 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3382 PyObject *obj;
3383 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3384 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3385 return SWIG_Py_Void();
3386 }
3387
3388 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3389 return SWIG_Python_InitShadowInstance(args);
3390 }
3391
3392 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3393 PyObject *resultobj = 0;
3394 byte arg1 = (byte) 0 ;
3395 byte arg2 = (byte) 0 ;
3396 byte arg3 = (byte) 0 ;
3397 wxColour *result = 0 ;
3398 unsigned char val1 ;
3399 int ecode1 = 0 ;
3400 unsigned char val2 ;
3401 int ecode2 = 0 ;
3402 unsigned char val3 ;
3403 int ecode3 = 0 ;
3404 PyObject * obj0 = 0 ;
3405 PyObject * obj1 = 0 ;
3406 PyObject * obj2 = 0 ;
3407 char * kwnames[] = {
3408 (char *) "red",(char *) "green",(char *) "blue", NULL
3409 };
3410
3411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3412 if (obj0) {
3413 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3414 if (!SWIG_IsOK(ecode1)) {
3415 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3416 }
3417 arg1 = static_cast< byte >(val1);
3418 }
3419 if (obj1) {
3420 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3421 if (!SWIG_IsOK(ecode2)) {
3422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3423 }
3424 arg2 = static_cast< byte >(val2);
3425 }
3426 if (obj2) {
3427 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3428 if (!SWIG_IsOK(ecode3)) {
3429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3430 }
3431 arg3 = static_cast< byte >(val3);
3432 }
3433 {
3434 PyThreadState* __tstate = wxPyBeginAllowThreads();
3435 result = (wxColour *)new wxColour(arg1,arg2,arg3);
3436 wxPyEndAllowThreads(__tstate);
3437 if (PyErr_Occurred()) SWIG_fail;
3438 }
3439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3440 return resultobj;
3441 fail:
3442 return NULL;
3443 }
3444
3445
3446 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3447 PyObject *resultobj = 0;
3448 wxString *arg1 = 0 ;
3449 wxColour *result = 0 ;
3450 bool temp1 = false ;
3451 PyObject * obj0 = 0 ;
3452 char * kwnames[] = {
3453 (char *) "colorName", NULL
3454 };
3455
3456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3457 {
3458 arg1 = wxString_in_helper(obj0);
3459 if (arg1 == NULL) SWIG_fail;
3460 temp1 = true;
3461 }
3462 {
3463 if (!wxPyCheckForApp()) SWIG_fail;
3464 PyThreadState* __tstate = wxPyBeginAllowThreads();
3465 result = (wxColour *)new wxColour((wxString const &)*arg1);
3466 wxPyEndAllowThreads(__tstate);
3467 if (PyErr_Occurred()) SWIG_fail;
3468 }
3469 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3470 {
3471 if (temp1)
3472 delete arg1;
3473 }
3474 return resultobj;
3475 fail:
3476 {
3477 if (temp1)
3478 delete arg1;
3479 }
3480 return NULL;
3481 }
3482
3483
3484 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3485 PyObject *resultobj = 0;
3486 unsigned long arg1 ;
3487 wxColour *result = 0 ;
3488 unsigned long val1 ;
3489 int ecode1 = 0 ;
3490 PyObject * obj0 = 0 ;
3491 char * kwnames[] = {
3492 (char *) "colRGB", NULL
3493 };
3494
3495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3496 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3497 if (!SWIG_IsOK(ecode1)) {
3498 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3499 }
3500 arg1 = static_cast< unsigned long >(val1);
3501 {
3502 PyThreadState* __tstate = wxPyBeginAllowThreads();
3503 result = (wxColour *)new wxColour(arg1);
3504 wxPyEndAllowThreads(__tstate);
3505 if (PyErr_Occurred()) SWIG_fail;
3506 }
3507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3508 return resultobj;
3509 fail:
3510 return NULL;
3511 }
3512
3513
3514 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3515 PyObject *resultobj = 0;
3516 wxColour *arg1 = (wxColour *) 0 ;
3517 void *argp1 = 0 ;
3518 int res1 = 0 ;
3519 PyObject *swig_obj[1] ;
3520
3521 if (!args) SWIG_fail;
3522 swig_obj[0] = args;
3523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3524 if (!SWIG_IsOK(res1)) {
3525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3526 }
3527 arg1 = reinterpret_cast< wxColour * >(argp1);
3528 {
3529 PyThreadState* __tstate = wxPyBeginAllowThreads();
3530 delete arg1;
3531
3532 wxPyEndAllowThreads(__tstate);
3533 if (PyErr_Occurred()) SWIG_fail;
3534 }
3535 resultobj = SWIG_Py_Void();
3536 return resultobj;
3537 fail:
3538 return NULL;
3539 }
3540
3541
3542 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3543 PyObject *resultobj = 0;
3544 wxColour *arg1 = (wxColour *) 0 ;
3545 byte result;
3546 void *argp1 = 0 ;
3547 int res1 = 0 ;
3548 PyObject *swig_obj[1] ;
3549
3550 if (!args) SWIG_fail;
3551 swig_obj[0] = args;
3552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3553 if (!SWIG_IsOK(res1)) {
3554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3555 }
3556 arg1 = reinterpret_cast< wxColour * >(argp1);
3557 {
3558 PyThreadState* __tstate = wxPyBeginAllowThreads();
3559 result = (byte)(arg1)->Red();
3560 wxPyEndAllowThreads(__tstate);
3561 if (PyErr_Occurred()) SWIG_fail;
3562 }
3563 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3564 return resultobj;
3565 fail:
3566 return NULL;
3567 }
3568
3569
3570 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3571 PyObject *resultobj = 0;
3572 wxColour *arg1 = (wxColour *) 0 ;
3573 byte result;
3574 void *argp1 = 0 ;
3575 int res1 = 0 ;
3576 PyObject *swig_obj[1] ;
3577
3578 if (!args) SWIG_fail;
3579 swig_obj[0] = args;
3580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3581 if (!SWIG_IsOK(res1)) {
3582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3583 }
3584 arg1 = reinterpret_cast< wxColour * >(argp1);
3585 {
3586 PyThreadState* __tstate = wxPyBeginAllowThreads();
3587 result = (byte)(arg1)->Green();
3588 wxPyEndAllowThreads(__tstate);
3589 if (PyErr_Occurred()) SWIG_fail;
3590 }
3591 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3592 return resultobj;
3593 fail:
3594 return NULL;
3595 }
3596
3597
3598 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3599 PyObject *resultobj = 0;
3600 wxColour *arg1 = (wxColour *) 0 ;
3601 byte result;
3602 void *argp1 = 0 ;
3603 int res1 = 0 ;
3604 PyObject *swig_obj[1] ;
3605
3606 if (!args) SWIG_fail;
3607 swig_obj[0] = args;
3608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3609 if (!SWIG_IsOK(res1)) {
3610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3611 }
3612 arg1 = reinterpret_cast< wxColour * >(argp1);
3613 {
3614 PyThreadState* __tstate = wxPyBeginAllowThreads();
3615 result = (byte)(arg1)->Blue();
3616 wxPyEndAllowThreads(__tstate);
3617 if (PyErr_Occurred()) SWIG_fail;
3618 }
3619 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3620 return resultobj;
3621 fail:
3622 return NULL;
3623 }
3624
3625
3626 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3627 PyObject *resultobj = 0;
3628 wxColour *arg1 = (wxColour *) 0 ;
3629 bool result;
3630 void *argp1 = 0 ;
3631 int res1 = 0 ;
3632 PyObject *swig_obj[1] ;
3633
3634 if (!args) SWIG_fail;
3635 swig_obj[0] = args;
3636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3637 if (!SWIG_IsOK(res1)) {
3638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3639 }
3640 arg1 = reinterpret_cast< wxColour * >(argp1);
3641 {
3642 PyThreadState* __tstate = wxPyBeginAllowThreads();
3643 result = (bool)(arg1)->Ok();
3644 wxPyEndAllowThreads(__tstate);
3645 if (PyErr_Occurred()) SWIG_fail;
3646 }
3647 {
3648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3649 }
3650 return resultobj;
3651 fail:
3652 return NULL;
3653 }
3654
3655
3656 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3657 PyObject *resultobj = 0;
3658 wxColour *arg1 = (wxColour *) 0 ;
3659 byte arg2 ;
3660 byte arg3 ;
3661 byte arg4 ;
3662 void *argp1 = 0 ;
3663 int res1 = 0 ;
3664 unsigned char val2 ;
3665 int ecode2 = 0 ;
3666 unsigned char val3 ;
3667 int ecode3 = 0 ;
3668 unsigned char val4 ;
3669 int ecode4 = 0 ;
3670 PyObject * obj0 = 0 ;
3671 PyObject * obj1 = 0 ;
3672 PyObject * obj2 = 0 ;
3673 PyObject * obj3 = 0 ;
3674 char * kwnames[] = {
3675 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3676 };
3677
3678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3680 if (!SWIG_IsOK(res1)) {
3681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3682 }
3683 arg1 = reinterpret_cast< wxColour * >(argp1);
3684 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3685 if (!SWIG_IsOK(ecode2)) {
3686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3687 }
3688 arg2 = static_cast< byte >(val2);
3689 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3690 if (!SWIG_IsOK(ecode3)) {
3691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3692 }
3693 arg3 = static_cast< byte >(val3);
3694 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3695 if (!SWIG_IsOK(ecode4)) {
3696 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3697 }
3698 arg4 = static_cast< byte >(val4);
3699 {
3700 PyThreadState* __tstate = wxPyBeginAllowThreads();
3701 (arg1)->Set(arg2,arg3,arg4);
3702 wxPyEndAllowThreads(__tstate);
3703 if (PyErr_Occurred()) SWIG_fail;
3704 }
3705 resultobj = SWIG_Py_Void();
3706 return resultobj;
3707 fail:
3708 return NULL;
3709 }
3710
3711
3712 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3713 PyObject *resultobj = 0;
3714 wxColour *arg1 = (wxColour *) 0 ;
3715 unsigned long arg2 ;
3716 void *argp1 = 0 ;
3717 int res1 = 0 ;
3718 unsigned long val2 ;
3719 int ecode2 = 0 ;
3720 PyObject * obj0 = 0 ;
3721 PyObject * obj1 = 0 ;
3722 char * kwnames[] = {
3723 (char *) "self",(char *) "colRGB", NULL
3724 };
3725
3726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
3727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3728 if (!SWIG_IsOK(res1)) {
3729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3730 }
3731 arg1 = reinterpret_cast< wxColour * >(argp1);
3732 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
3733 if (!SWIG_IsOK(ecode2)) {
3734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3735 }
3736 arg2 = static_cast< unsigned long >(val2);
3737 {
3738 PyThreadState* __tstate = wxPyBeginAllowThreads();
3739 (arg1)->Set(arg2);
3740 wxPyEndAllowThreads(__tstate);
3741 if (PyErr_Occurred()) SWIG_fail;
3742 }
3743 resultobj = SWIG_Py_Void();
3744 return resultobj;
3745 fail:
3746 return NULL;
3747 }
3748
3749
3750 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3751 PyObject *resultobj = 0;
3752 wxColour *arg1 = (wxColour *) 0 ;
3753 wxString *arg2 = 0 ;
3754 void *argp1 = 0 ;
3755 int res1 = 0 ;
3756 bool temp2 = false ;
3757 PyObject * obj0 = 0 ;
3758 PyObject * obj1 = 0 ;
3759 char * kwnames[] = {
3760 (char *) "self",(char *) "colourName", NULL
3761 };
3762
3763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
3764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3765 if (!SWIG_IsOK(res1)) {
3766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3767 }
3768 arg1 = reinterpret_cast< wxColour * >(argp1);
3769 {
3770 arg2 = wxString_in_helper(obj1);
3771 if (arg2 == NULL) SWIG_fail;
3772 temp2 = true;
3773 }
3774 {
3775 PyThreadState* __tstate = wxPyBeginAllowThreads();
3776 (arg1)->InitFromName((wxString const &)*arg2);
3777 wxPyEndAllowThreads(__tstate);
3778 if (PyErr_Occurred()) SWIG_fail;
3779 }
3780 resultobj = SWIG_Py_Void();
3781 {
3782 if (temp2)
3783 delete arg2;
3784 }
3785 return resultobj;
3786 fail:
3787 {
3788 if (temp2)
3789 delete arg2;
3790 }
3791 return NULL;
3792 }
3793
3794
3795 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3796 PyObject *resultobj = 0;
3797 wxColour *arg1 = (wxColour *) 0 ;
3798 long result;
3799 void *argp1 = 0 ;
3800 int res1 = 0 ;
3801 PyObject *swig_obj[1] ;
3802
3803 if (!args) SWIG_fail;
3804 swig_obj[0] = args;
3805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3806 if (!SWIG_IsOK(res1)) {
3807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3808 }
3809 arg1 = reinterpret_cast< wxColour * >(argp1);
3810 {
3811 PyThreadState* __tstate = wxPyBeginAllowThreads();
3812 result = (long)((wxColour const *)arg1)->GetPixel();
3813 wxPyEndAllowThreads(__tstate);
3814 if (PyErr_Occurred()) SWIG_fail;
3815 }
3816 resultobj = SWIG_From_long(static_cast< long >(result));
3817 return resultobj;
3818 fail:
3819 return NULL;
3820 }
3821
3822
3823 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3824 PyObject *resultobj = 0;
3825 wxColour *arg1 = (wxColour *) 0 ;
3826 wxColour *arg2 = 0 ;
3827 bool result;
3828 void *argp1 = 0 ;
3829 int res1 = 0 ;
3830 wxColour temp2 ;
3831 PyObject * obj0 = 0 ;
3832 PyObject * obj1 = 0 ;
3833 char * kwnames[] = {
3834 (char *) "self",(char *) "colour", NULL
3835 };
3836
3837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3839 if (!SWIG_IsOK(res1)) {
3840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour const *""'");
3841 }
3842 arg1 = reinterpret_cast< wxColour * >(argp1);
3843 {
3844 arg2 = &temp2;
3845 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3846 }
3847 {
3848 PyThreadState* __tstate = wxPyBeginAllowThreads();
3849 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
3850 wxPyEndAllowThreads(__tstate);
3851 if (PyErr_Occurred()) SWIG_fail;
3852 }
3853 {
3854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3855 }
3856 return resultobj;
3857 fail:
3858 return NULL;
3859 }
3860
3861
3862 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3863 PyObject *resultobj = 0;
3864 wxColour *arg1 = (wxColour *) 0 ;
3865 wxColour *arg2 = 0 ;
3866 bool result;
3867 void *argp1 = 0 ;
3868 int res1 = 0 ;
3869 wxColour temp2 ;
3870 PyObject * obj0 = 0 ;
3871 PyObject * obj1 = 0 ;
3872 char * kwnames[] = {
3873 (char *) "self",(char *) "colour", NULL
3874 };
3875
3876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
3877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3878 if (!SWIG_IsOK(res1)) {
3879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour const *""'");
3880 }
3881 arg1 = reinterpret_cast< wxColour * >(argp1);
3882 {
3883 arg2 = &temp2;
3884 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3885 }
3886 {
3887 PyThreadState* __tstate = wxPyBeginAllowThreads();
3888 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
3889 wxPyEndAllowThreads(__tstate);
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 void *argp1 = 0 ;
9830 int res1 = 0 ;
9831 PyObject * obj0 = 0 ;
9832 PyObject * obj1 = 0 ;
9833 char * kwnames[] = {
9834 (char *) "self",(char *) "facename", NULL
9835 };
9836
9837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
9838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9839 if (!SWIG_IsOK(res1)) {
9840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9841 }
9842 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9843 {
9844 wxString* sptr = wxString_in_helper(obj1);
9845 if (sptr == NULL) SWIG_fail;
9846 arg2 = *sptr;
9847 delete sptr;
9848 }
9849 {
9850 PyThreadState* __tstate = wxPyBeginAllowThreads();
9851 (arg1)->SetFaceName(arg2);
9852 wxPyEndAllowThreads(__tstate);
9853 if (PyErr_Occurred()) SWIG_fail;
9854 }
9855 resultobj = SWIG_Py_Void();
9856 return resultobj;
9857 fail:
9858 return NULL;
9859 }
9860
9861
9862 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9863 PyObject *resultobj = 0;
9864 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9865 wxFontFamily arg2 ;
9866 void *argp1 = 0 ;
9867 int res1 = 0 ;
9868 int val2 ;
9869 int ecode2 = 0 ;
9870 PyObject * obj0 = 0 ;
9871 PyObject * obj1 = 0 ;
9872 char * kwnames[] = {
9873 (char *) "self",(char *) "family", NULL
9874 };
9875
9876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
9877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9878 if (!SWIG_IsOK(res1)) {
9879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9880 }
9881 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9882 ecode2 = SWIG_AsVal_int(obj1, &val2);
9883 if (!SWIG_IsOK(ecode2)) {
9884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
9885 }
9886 arg2 = static_cast< wxFontFamily >(val2);
9887 {
9888 PyThreadState* __tstate = wxPyBeginAllowThreads();
9889 (arg1)->SetFamily(arg2);
9890 wxPyEndAllowThreads(__tstate);
9891 if (PyErr_Occurred()) SWIG_fail;
9892 }
9893 resultobj = SWIG_Py_Void();
9894 return resultobj;
9895 fail:
9896 return NULL;
9897 }
9898
9899
9900 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9901 PyObject *resultobj = 0;
9902 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9903 wxFontEncoding arg2 ;
9904 void *argp1 = 0 ;
9905 int res1 = 0 ;
9906 int val2 ;
9907 int ecode2 = 0 ;
9908 PyObject * obj0 = 0 ;
9909 PyObject * obj1 = 0 ;
9910 char * kwnames[] = {
9911 (char *) "self",(char *) "encoding", NULL
9912 };
9913
9914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
9915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9916 if (!SWIG_IsOK(res1)) {
9917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9918 }
9919 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9920 ecode2 = SWIG_AsVal_int(obj1, &val2);
9921 if (!SWIG_IsOK(ecode2)) {
9922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
9923 }
9924 arg2 = static_cast< wxFontEncoding >(val2);
9925 {
9926 PyThreadState* __tstate = wxPyBeginAllowThreads();
9927 (arg1)->SetEncoding(arg2);
9928 wxPyEndAllowThreads(__tstate);
9929 if (PyErr_Occurred()) SWIG_fail;
9930 }
9931 resultobj = SWIG_Py_Void();
9932 return resultobj;
9933 fail:
9934 return NULL;
9935 }
9936
9937
9938 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9939 PyObject *resultobj = 0;
9940 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9941 wxString *arg2 = 0 ;
9942 bool result;
9943 void *argp1 = 0 ;
9944 int res1 = 0 ;
9945 bool temp2 = false ;
9946 PyObject * obj0 = 0 ;
9947 PyObject * obj1 = 0 ;
9948 char * kwnames[] = {
9949 (char *) "self",(char *) "s", NULL
9950 };
9951
9952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
9953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9954 if (!SWIG_IsOK(res1)) {
9955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9956 }
9957 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9958 {
9959 arg2 = wxString_in_helper(obj1);
9960 if (arg2 == NULL) SWIG_fail;
9961 temp2 = true;
9962 }
9963 {
9964 PyThreadState* __tstate = wxPyBeginAllowThreads();
9965 result = (bool)(arg1)->FromString((wxString const &)*arg2);
9966 wxPyEndAllowThreads(__tstate);
9967 if (PyErr_Occurred()) SWIG_fail;
9968 }
9969 {
9970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9971 }
9972 {
9973 if (temp2)
9974 delete arg2;
9975 }
9976 return resultobj;
9977 fail:
9978 {
9979 if (temp2)
9980 delete arg2;
9981 }
9982 return NULL;
9983 }
9984
9985
9986 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9987 PyObject *resultobj = 0;
9988 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9989 wxString result;
9990 void *argp1 = 0 ;
9991 int res1 = 0 ;
9992 PyObject *swig_obj[1] ;
9993
9994 if (!args) SWIG_fail;
9995 swig_obj[0] = args;
9996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9997 if (!SWIG_IsOK(res1)) {
9998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9999 }
10000 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10001 {
10002 PyThreadState* __tstate = wxPyBeginAllowThreads();
10003 result = ((wxNativeFontInfo const *)arg1)->ToString();
10004 wxPyEndAllowThreads(__tstate);
10005 if (PyErr_Occurred()) SWIG_fail;
10006 }
10007 {
10008 #if wxUSE_UNICODE
10009 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10010 #else
10011 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10012 #endif
10013 }
10014 return resultobj;
10015 fail:
10016 return NULL;
10017 }
10018
10019
10020 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10021 PyObject *resultobj = 0;
10022 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10023 wxString result;
10024 void *argp1 = 0 ;
10025 int res1 = 0 ;
10026 PyObject *swig_obj[1] ;
10027
10028 if (!args) SWIG_fail;
10029 swig_obj[0] = args;
10030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10031 if (!SWIG_IsOK(res1)) {
10032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10033 }
10034 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10035 {
10036 PyThreadState* __tstate = wxPyBeginAllowThreads();
10037 result = wxNativeFontInfo___str__(arg1);
10038 wxPyEndAllowThreads(__tstate);
10039 if (PyErr_Occurred()) SWIG_fail;
10040 }
10041 {
10042 #if wxUSE_UNICODE
10043 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10044 #else
10045 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10046 #endif
10047 }
10048 return resultobj;
10049 fail:
10050 return NULL;
10051 }
10052
10053
10054 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10055 PyObject *resultobj = 0;
10056 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10057 wxString *arg2 = 0 ;
10058 bool result;
10059 void *argp1 = 0 ;
10060 int res1 = 0 ;
10061 bool temp2 = false ;
10062 PyObject * obj0 = 0 ;
10063 PyObject * obj1 = 0 ;
10064 char * kwnames[] = {
10065 (char *) "self",(char *) "s", NULL
10066 };
10067
10068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
10069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10070 if (!SWIG_IsOK(res1)) {
10071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10072 }
10073 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10074 {
10075 arg2 = wxString_in_helper(obj1);
10076 if (arg2 == NULL) SWIG_fail;
10077 temp2 = true;
10078 }
10079 {
10080 PyThreadState* __tstate = wxPyBeginAllowThreads();
10081 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
10082 wxPyEndAllowThreads(__tstate);
10083 if (PyErr_Occurred()) SWIG_fail;
10084 }
10085 {
10086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10087 }
10088 {
10089 if (temp2)
10090 delete arg2;
10091 }
10092 return resultobj;
10093 fail:
10094 {
10095 if (temp2)
10096 delete arg2;
10097 }
10098 return NULL;
10099 }
10100
10101
10102 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10103 PyObject *resultobj = 0;
10104 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10105 wxString result;
10106 void *argp1 = 0 ;
10107 int res1 = 0 ;
10108 PyObject *swig_obj[1] ;
10109
10110 if (!args) SWIG_fail;
10111 swig_obj[0] = args;
10112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10113 if (!SWIG_IsOK(res1)) {
10114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10115 }
10116 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10117 {
10118 PyThreadState* __tstate = wxPyBeginAllowThreads();
10119 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
10120 wxPyEndAllowThreads(__tstate);
10121 if (PyErr_Occurred()) SWIG_fail;
10122 }
10123 {
10124 #if wxUSE_UNICODE
10125 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10126 #else
10127 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10128 #endif
10129 }
10130 return resultobj;
10131 fail:
10132 return NULL;
10133 }
10134
10135
10136 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10137 PyObject *obj;
10138 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10139 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
10140 return SWIG_Py_Void();
10141 }
10142
10143 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10144 return SWIG_Python_InitShadowInstance(args);
10145 }
10146
10147 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10148 PyObject *resultobj = 0;
10149 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10150 wxString *arg2 = (wxString *) 0 ;
10151 void *argp1 = 0 ;
10152 int res1 = 0 ;
10153 bool temp2 = false ;
10154 PyObject *swig_obj[2] ;
10155
10156 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
10157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10158 if (!SWIG_IsOK(res1)) {
10159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10160 }
10161 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10162 {
10163 arg2 = wxString_in_helper(swig_obj[1]);
10164 if (arg2 == NULL) SWIG_fail;
10165 temp2 = true;
10166 }
10167 if (arg1) (arg1)->facename = *arg2;
10168
10169 resultobj = SWIG_Py_Void();
10170 {
10171 if (temp2)
10172 delete arg2;
10173 }
10174 return resultobj;
10175 fail:
10176 {
10177 if (temp2)
10178 delete arg2;
10179 }
10180 return NULL;
10181 }
10182
10183
10184 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10185 PyObject *resultobj = 0;
10186 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10187 wxString *result = 0 ;
10188 void *argp1 = 0 ;
10189 int res1 = 0 ;
10190 PyObject *swig_obj[1] ;
10191
10192 if (!args) SWIG_fail;
10193 swig_obj[0] = args;
10194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10195 if (!SWIG_IsOK(res1)) {
10196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10197 }
10198 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10199 result = (wxString *)& ((arg1)->facename);
10200 {
10201 #if wxUSE_UNICODE
10202 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10203 #else
10204 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10205 #endif
10206 }
10207 return resultobj;
10208 fail:
10209 return NULL;
10210 }
10211
10212
10213 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10214 PyObject *resultobj = 0;
10215 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10216 wxFontEncoding arg2 ;
10217 void *argp1 = 0 ;
10218 int res1 = 0 ;
10219 int val2 ;
10220 int ecode2 = 0 ;
10221 PyObject *swig_obj[2] ;
10222
10223 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
10224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10225 if (!SWIG_IsOK(res1)) {
10226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10227 }
10228 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10229 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10230 if (!SWIG_IsOK(ecode2)) {
10231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10232 }
10233 arg2 = static_cast< wxFontEncoding >(val2);
10234 if (arg1) (arg1)->encoding = arg2;
10235
10236 resultobj = SWIG_Py_Void();
10237 return resultobj;
10238 fail:
10239 return NULL;
10240 }
10241
10242
10243 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10244 PyObject *resultobj = 0;
10245 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10246 wxFontEncoding result;
10247 void *argp1 = 0 ;
10248 int res1 = 0 ;
10249 PyObject *swig_obj[1] ;
10250
10251 if (!args) SWIG_fail;
10252 swig_obj[0] = args;
10253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10254 if (!SWIG_IsOK(res1)) {
10255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10256 }
10257 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10258 result = (wxFontEncoding) ((arg1)->encoding);
10259 resultobj = SWIG_From_int(static_cast< int >(result));
10260 return resultobj;
10261 fail:
10262 return NULL;
10263 }
10264
10265
10266 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10267 PyObject *resultobj = 0;
10268 wxNativeEncodingInfo *result = 0 ;
10269
10270 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
10271 {
10272 PyThreadState* __tstate = wxPyBeginAllowThreads();
10273 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
10274 wxPyEndAllowThreads(__tstate);
10275 if (PyErr_Occurred()) SWIG_fail;
10276 }
10277 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
10278 return resultobj;
10279 fail:
10280 return NULL;
10281 }
10282
10283
10284 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10285 PyObject *resultobj = 0;
10286 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10287 void *argp1 = 0 ;
10288 int res1 = 0 ;
10289 PyObject *swig_obj[1] ;
10290
10291 if (!args) SWIG_fail;
10292 swig_obj[0] = args;
10293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
10294 if (!SWIG_IsOK(res1)) {
10295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10296 }
10297 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10298 {
10299 PyThreadState* __tstate = wxPyBeginAllowThreads();
10300 delete arg1;
10301
10302 wxPyEndAllowThreads(__tstate);
10303 if (PyErr_Occurred()) SWIG_fail;
10304 }
10305 resultobj = SWIG_Py_Void();
10306 return resultobj;
10307 fail:
10308 return NULL;
10309 }
10310
10311
10312 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10313 PyObject *resultobj = 0;
10314 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10315 wxString *arg2 = 0 ;
10316 bool result;
10317 void *argp1 = 0 ;
10318 int res1 = 0 ;
10319 bool temp2 = false ;
10320 PyObject * obj0 = 0 ;
10321 PyObject * obj1 = 0 ;
10322 char * kwnames[] = {
10323 (char *) "self",(char *) "s", NULL
10324 };
10325
10326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10328 if (!SWIG_IsOK(res1)) {
10329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10330 }
10331 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10332 {
10333 arg2 = wxString_in_helper(obj1);
10334 if (arg2 == NULL) SWIG_fail;
10335 temp2 = true;
10336 }
10337 {
10338 PyThreadState* __tstate = wxPyBeginAllowThreads();
10339 result = (bool)(arg1)->FromString((wxString const &)*arg2);
10340 wxPyEndAllowThreads(__tstate);
10341 if (PyErr_Occurred()) SWIG_fail;
10342 }
10343 {
10344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10345 }
10346 {
10347 if (temp2)
10348 delete arg2;
10349 }
10350 return resultobj;
10351 fail:
10352 {
10353 if (temp2)
10354 delete arg2;
10355 }
10356 return NULL;
10357 }
10358
10359
10360 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10361 PyObject *resultobj = 0;
10362 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10363 wxString result;
10364 void *argp1 = 0 ;
10365 int res1 = 0 ;
10366 PyObject *swig_obj[1] ;
10367
10368 if (!args) SWIG_fail;
10369 swig_obj[0] = args;
10370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10371 if (!SWIG_IsOK(res1)) {
10372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
10373 }
10374 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10375 {
10376 PyThreadState* __tstate = wxPyBeginAllowThreads();
10377 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
10378 wxPyEndAllowThreads(__tstate);
10379 if (PyErr_Occurred()) SWIG_fail;
10380 }
10381 {
10382 #if wxUSE_UNICODE
10383 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10384 #else
10385 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10386 #endif
10387 }
10388 return resultobj;
10389 fail:
10390 return NULL;
10391 }
10392
10393
10394 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10395 PyObject *obj;
10396 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10397 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
10398 return SWIG_Py_Void();
10399 }
10400
10401 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10402 return SWIG_Python_InitShadowInstance(args);
10403 }
10404
10405 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10406 PyObject *resultobj = 0;
10407 wxFontEncoding arg1 ;
10408 wxNativeEncodingInfo *result = 0 ;
10409 int val1 ;
10410 int ecode1 = 0 ;
10411 PyObject * obj0 = 0 ;
10412 char * kwnames[] = {
10413 (char *) "encoding", NULL
10414 };
10415
10416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
10417 ecode1 = SWIG_AsVal_int(obj0, &val1);
10418 if (!SWIG_IsOK(ecode1)) {
10419 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10420 }
10421 arg1 = static_cast< wxFontEncoding >(val1);
10422 {
10423 PyThreadState* __tstate = wxPyBeginAllowThreads();
10424 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
10425 wxPyEndAllowThreads(__tstate);
10426 if (PyErr_Occurred()) SWIG_fail;
10427 }
10428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10429 return resultobj;
10430 fail:
10431 return NULL;
10432 }
10433
10434
10435 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10436 PyObject *resultobj = 0;
10437 wxNativeEncodingInfo *arg1 = 0 ;
10438 bool result;
10439 void *argp1 = 0 ;
10440 int res1 = 0 ;
10441 PyObject * obj0 = 0 ;
10442 char * kwnames[] = {
10443 (char *) "info", NULL
10444 };
10445
10446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
10447 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
10448 if (!SWIG_IsOK(res1)) {
10449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10450 }
10451 if (!argp1) {
10452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10453 }
10454 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10455 {
10456 PyThreadState* __tstate = wxPyBeginAllowThreads();
10457 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
10458 wxPyEndAllowThreads(__tstate);
10459 if (PyErr_Occurred()) SWIG_fail;
10460 }
10461 {
10462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10463 }
10464 return resultobj;
10465 fail:
10466 return NULL;
10467 }
10468
10469
10470 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10471 PyObject *resultobj = 0;
10472 wxFontMapper *result = 0 ;
10473
10474 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
10475 {
10476 PyThreadState* __tstate = wxPyBeginAllowThreads();
10477 result = (wxFontMapper *)new wxFontMapper();
10478 wxPyEndAllowThreads(__tstate);
10479 if (PyErr_Occurred()) SWIG_fail;
10480 }
10481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
10482 return resultobj;
10483 fail:
10484 return NULL;
10485 }
10486
10487
10488 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10489 PyObject *resultobj = 0;
10490 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10491 void *argp1 = 0 ;
10492 int res1 = 0 ;
10493 PyObject *swig_obj[1] ;
10494
10495 if (!args) SWIG_fail;
10496 swig_obj[0] = args;
10497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
10498 if (!SWIG_IsOK(res1)) {
10499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10500 }
10501 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10502 {
10503 PyThreadState* __tstate = wxPyBeginAllowThreads();
10504 delete arg1;
10505
10506 wxPyEndAllowThreads(__tstate);
10507 if (PyErr_Occurred()) SWIG_fail;
10508 }
10509 resultobj = SWIG_Py_Void();
10510 return resultobj;
10511 fail:
10512 return NULL;
10513 }
10514
10515
10516 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10517 PyObject *resultobj = 0;
10518 wxFontMapper *result = 0 ;
10519
10520 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
10521 {
10522 PyThreadState* __tstate = wxPyBeginAllowThreads();
10523 result = (wxFontMapper *)wxFontMapper::Get();
10524 wxPyEndAllowThreads(__tstate);
10525 if (PyErr_Occurred()) SWIG_fail;
10526 }
10527 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10528 return resultobj;
10529 fail:
10530 return NULL;
10531 }
10532
10533
10534 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10535 PyObject *resultobj = 0;
10536 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10537 wxFontMapper *result = 0 ;
10538 void *argp1 = 0 ;
10539 int res1 = 0 ;
10540 PyObject * obj0 = 0 ;
10541 char * kwnames[] = {
10542 (char *) "mapper", NULL
10543 };
10544
10545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
10546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10547 if (!SWIG_IsOK(res1)) {
10548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10549 }
10550 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10551 {
10552 PyThreadState* __tstate = wxPyBeginAllowThreads();
10553 result = (wxFontMapper *)wxFontMapper::Set(arg1);
10554 wxPyEndAllowThreads(__tstate);
10555 if (PyErr_Occurred()) SWIG_fail;
10556 }
10557 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10558 return resultobj;
10559 fail:
10560 return NULL;
10561 }
10562
10563
10564 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10565 PyObject *resultobj = 0;
10566 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10567 wxString *arg2 = 0 ;
10568 bool arg3 = (bool) true ;
10569 wxFontEncoding result;
10570 void *argp1 = 0 ;
10571 int res1 = 0 ;
10572 bool temp2 = false ;
10573 bool val3 ;
10574 int ecode3 = 0 ;
10575 PyObject * obj0 = 0 ;
10576 PyObject * obj1 = 0 ;
10577 PyObject * obj2 = 0 ;
10578 char * kwnames[] = {
10579 (char *) "self",(char *) "charset",(char *) "interactive", NULL
10580 };
10581
10582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10584 if (!SWIG_IsOK(res1)) {
10585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10586 }
10587 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10588 {
10589 arg2 = wxString_in_helper(obj1);
10590 if (arg2 == NULL) SWIG_fail;
10591 temp2 = true;
10592 }
10593 if (obj2) {
10594 ecode3 = SWIG_AsVal_bool(obj2, &val3);
10595 if (!SWIG_IsOK(ecode3)) {
10596 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
10597 }
10598 arg3 = static_cast< bool >(val3);
10599 }
10600 {
10601 PyThreadState* __tstate = wxPyBeginAllowThreads();
10602 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
10603 wxPyEndAllowThreads(__tstate);
10604 if (PyErr_Occurred()) SWIG_fail;
10605 }
10606 resultobj = SWIG_From_int(static_cast< int >(result));
10607 {
10608 if (temp2)
10609 delete arg2;
10610 }
10611 return resultobj;
10612 fail:
10613 {
10614 if (temp2)
10615 delete arg2;
10616 }
10617 return NULL;
10618 }
10619
10620
10621 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10622 PyObject *resultobj = 0;
10623 size_t result;
10624
10625 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
10626 {
10627 PyThreadState* __tstate = wxPyBeginAllowThreads();
10628 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
10629 wxPyEndAllowThreads(__tstate);
10630 if (PyErr_Occurred()) SWIG_fail;
10631 }
10632 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
10633 return resultobj;
10634 fail:
10635 return NULL;
10636 }
10637
10638
10639 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10640 PyObject *resultobj = 0;
10641 size_t arg1 ;
10642 wxFontEncoding result;
10643 size_t val1 ;
10644 int ecode1 = 0 ;
10645 PyObject * obj0 = 0 ;
10646 char * kwnames[] = {
10647 (char *) "n", NULL
10648 };
10649
10650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
10651 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
10652 if (!SWIG_IsOK(ecode1)) {
10653 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
10654 }
10655 arg1 = static_cast< size_t >(val1);
10656 {
10657 PyThreadState* __tstate = wxPyBeginAllowThreads();
10658 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
10659 wxPyEndAllowThreads(__tstate);
10660 if (PyErr_Occurred()) SWIG_fail;
10661 }
10662 resultobj = SWIG_From_int(static_cast< int >(result));
10663 return resultobj;
10664 fail:
10665 return NULL;
10666 }
10667
10668
10669 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10670 PyObject *resultobj = 0;
10671 wxFontEncoding arg1 ;
10672 wxString result;
10673 int val1 ;
10674 int ecode1 = 0 ;
10675 PyObject * obj0 = 0 ;
10676 char * kwnames[] = {
10677 (char *) "encoding", NULL
10678 };
10679
10680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
10681 ecode1 = SWIG_AsVal_int(obj0, &val1);
10682 if (!SWIG_IsOK(ecode1)) {
10683 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10684 }
10685 arg1 = static_cast< wxFontEncoding >(val1);
10686 {
10687 PyThreadState* __tstate = wxPyBeginAllowThreads();
10688 result = wxFontMapper::GetEncodingName(arg1);
10689 wxPyEndAllowThreads(__tstate);
10690 if (PyErr_Occurred()) SWIG_fail;
10691 }
10692 {
10693 #if wxUSE_UNICODE
10694 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10695 #else
10696 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10697 #endif
10698 }
10699 return resultobj;
10700 fail:
10701 return NULL;
10702 }
10703
10704
10705 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10706 PyObject *resultobj = 0;
10707 wxFontEncoding arg1 ;
10708 wxString result;
10709 int val1 ;
10710 int ecode1 = 0 ;
10711 PyObject * obj0 = 0 ;
10712 char * kwnames[] = {
10713 (char *) "encoding", NULL
10714 };
10715
10716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
10717 ecode1 = SWIG_AsVal_int(obj0, &val1);
10718 if (!SWIG_IsOK(ecode1)) {
10719 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10720 }
10721 arg1 = static_cast< wxFontEncoding >(val1);
10722 {
10723 PyThreadState* __tstate = wxPyBeginAllowThreads();
10724 result = wxFontMapper::GetEncodingDescription(arg1);
10725 wxPyEndAllowThreads(__tstate);
10726 if (PyErr_Occurred()) SWIG_fail;
10727 }
10728 {
10729 #if wxUSE_UNICODE
10730 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10731 #else
10732 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10733 #endif
10734 }
10735 return resultobj;
10736 fail:
10737 return NULL;
10738 }
10739
10740
10741 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10742 PyObject *resultobj = 0;
10743 wxString *arg1 = 0 ;
10744 wxFontEncoding result;
10745 bool temp1 = false ;
10746 PyObject * obj0 = 0 ;
10747 char * kwnames[] = {
10748 (char *) "name", NULL
10749 };
10750
10751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
10752 {
10753 arg1 = wxString_in_helper(obj0);
10754 if (arg1 == NULL) SWIG_fail;
10755 temp1 = true;
10756 }
10757 {
10758 PyThreadState* __tstate = wxPyBeginAllowThreads();
10759 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
10760 wxPyEndAllowThreads(__tstate);
10761 if (PyErr_Occurred()) SWIG_fail;
10762 }
10763 resultobj = SWIG_From_int(static_cast< int >(result));
10764 {
10765 if (temp1)
10766 delete arg1;
10767 }
10768 return resultobj;
10769 fail:
10770 {
10771 if (temp1)
10772 delete arg1;
10773 }
10774 return NULL;
10775 }
10776
10777
10778 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10779 PyObject *resultobj = 0;
10780 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10781 wxString *arg2 = 0 ;
10782 void *argp1 = 0 ;
10783 int res1 = 0 ;
10784 bool temp2 = false ;
10785 PyObject * obj0 = 0 ;
10786 PyObject * obj1 = 0 ;
10787 char * kwnames[] = {
10788 (char *) "self",(char *) "prefix", NULL
10789 };
10790
10791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
10792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10793 if (!SWIG_IsOK(res1)) {
10794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10795 }
10796 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10797 {
10798 arg2 = wxString_in_helper(obj1);
10799 if (arg2 == NULL) SWIG_fail;
10800 temp2 = true;
10801 }
10802 {
10803 PyThreadState* __tstate = wxPyBeginAllowThreads();
10804 (arg1)->SetConfigPath((wxString const &)*arg2);
10805 wxPyEndAllowThreads(__tstate);
10806 if (PyErr_Occurred()) SWIG_fail;
10807 }
10808 resultobj = SWIG_Py_Void();
10809 {
10810 if (temp2)
10811 delete arg2;
10812 }
10813 return resultobj;
10814 fail:
10815 {
10816 if (temp2)
10817 delete arg2;
10818 }
10819 return NULL;
10820 }
10821
10822
10823 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10824 PyObject *resultobj = 0;
10825 wxString result;
10826
10827 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
10828 {
10829 PyThreadState* __tstate = wxPyBeginAllowThreads();
10830 result = wxFontMapper::GetDefaultConfigPath();
10831 wxPyEndAllowThreads(__tstate);
10832 if (PyErr_Occurred()) SWIG_fail;
10833 }
10834 {
10835 #if wxUSE_UNICODE
10836 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10837 #else
10838 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10839 #endif
10840 }
10841 return resultobj;
10842 fail:
10843 return NULL;
10844 }
10845
10846
10847 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10848 PyObject *resultobj = 0;
10849 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10850 wxFontEncoding arg2 ;
10851 wxString const &arg3_defvalue = wxPyEmptyString ;
10852 wxString *arg3 = (wxString *) &arg3_defvalue ;
10853 bool arg4 = (bool) true ;
10854 PyObject *result = 0 ;
10855 void *argp1 = 0 ;
10856 int res1 = 0 ;
10857 int val2 ;
10858 int ecode2 = 0 ;
10859 bool temp3 = false ;
10860 bool val4 ;
10861 int ecode4 = 0 ;
10862 PyObject * obj0 = 0 ;
10863 PyObject * obj1 = 0 ;
10864 PyObject * obj2 = 0 ;
10865 PyObject * obj3 = 0 ;
10866 char * kwnames[] = {
10867 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
10868 };
10869
10870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10872 if (!SWIG_IsOK(res1)) {
10873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10874 }
10875 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10876 ecode2 = SWIG_AsVal_int(obj1, &val2);
10877 if (!SWIG_IsOK(ecode2)) {
10878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10879 }
10880 arg2 = static_cast< wxFontEncoding >(val2);
10881 if (obj2) {
10882 {
10883 arg3 = wxString_in_helper(obj2);
10884 if (arg3 == NULL) SWIG_fail;
10885 temp3 = true;
10886 }
10887 }
10888 if (obj3) {
10889 ecode4 = SWIG_AsVal_bool(obj3, &val4);
10890 if (!SWIG_IsOK(ecode4)) {
10891 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
10892 }
10893 arg4 = static_cast< bool >(val4);
10894 }
10895 {
10896 PyThreadState* __tstate = wxPyBeginAllowThreads();
10897 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
10898 wxPyEndAllowThreads(__tstate);
10899 if (PyErr_Occurred()) SWIG_fail;
10900 }
10901 resultobj = result;
10902 {
10903 if (temp3)
10904 delete arg3;
10905 }
10906 return resultobj;
10907 fail:
10908 {
10909 if (temp3)
10910 delete arg3;
10911 }
10912 return NULL;
10913 }
10914
10915
10916 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10917 PyObject *resultobj = 0;
10918 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10919 wxFontEncoding arg2 ;
10920 wxString const &arg3_defvalue = wxPyEmptyString ;
10921 wxString *arg3 = (wxString *) &arg3_defvalue ;
10922 bool result;
10923 void *argp1 = 0 ;
10924 int res1 = 0 ;
10925 int val2 ;
10926 int ecode2 = 0 ;
10927 bool temp3 = false ;
10928 PyObject * obj0 = 0 ;
10929 PyObject * obj1 = 0 ;
10930 PyObject * obj2 = 0 ;
10931 char * kwnames[] = {
10932 (char *) "self",(char *) "encoding",(char *) "facename", NULL
10933 };
10934
10935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10937 if (!SWIG_IsOK(res1)) {
10938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10939 }
10940 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10941 ecode2 = SWIG_AsVal_int(obj1, &val2);
10942 if (!SWIG_IsOK(ecode2)) {
10943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10944 }
10945 arg2 = static_cast< wxFontEncoding >(val2);
10946 if (obj2) {
10947 {
10948 arg3 = wxString_in_helper(obj2);
10949 if (arg3 == NULL) SWIG_fail;
10950 temp3 = true;
10951 }
10952 }
10953 {
10954 PyThreadState* __tstate = wxPyBeginAllowThreads();
10955 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
10956 wxPyEndAllowThreads(__tstate);
10957 if (PyErr_Occurred()) SWIG_fail;
10958 }
10959 {
10960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10961 }
10962 {
10963 if (temp3)
10964 delete arg3;
10965 }
10966 return resultobj;
10967 fail:
10968 {
10969 if (temp3)
10970 delete arg3;
10971 }
10972 return NULL;
10973 }
10974
10975
10976 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10977 PyObject *resultobj = 0;
10978 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10979 wxWindow *arg2 = (wxWindow *) 0 ;
10980 void *argp1 = 0 ;
10981 int res1 = 0 ;
10982 void *argp2 = 0 ;
10983 int res2 = 0 ;
10984 PyObject * obj0 = 0 ;
10985 PyObject * obj1 = 0 ;
10986 char * kwnames[] = {
10987 (char *) "self",(char *) "parent", NULL
10988 };
10989
10990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
10991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10992 if (!SWIG_IsOK(res1)) {
10993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10994 }
10995 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10996 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10997 if (!SWIG_IsOK(res2)) {
10998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
10999 }
11000 arg2 = reinterpret_cast< wxWindow * >(argp2);
11001 {
11002 PyThreadState* __tstate = wxPyBeginAllowThreads();
11003 (arg1)->SetDialogParent(arg2);
11004 wxPyEndAllowThreads(__tstate);
11005 if (PyErr_Occurred()) SWIG_fail;
11006 }
11007 resultobj = SWIG_Py_Void();
11008 return resultobj;
11009 fail:
11010 return NULL;
11011 }
11012
11013
11014 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11015 PyObject *resultobj = 0;
11016 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11017 wxString *arg2 = 0 ;
11018 void *argp1 = 0 ;
11019 int res1 = 0 ;
11020 bool temp2 = false ;
11021 PyObject * obj0 = 0 ;
11022 PyObject * obj1 = 0 ;
11023 char * kwnames[] = {
11024 (char *) "self",(char *) "title", NULL
11025 };
11026
11027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
11028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11029 if (!SWIG_IsOK(res1)) {
11030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11031 }
11032 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11033 {
11034 arg2 = wxString_in_helper(obj1);
11035 if (arg2 == NULL) SWIG_fail;
11036 temp2 = true;
11037 }
11038 {
11039 PyThreadState* __tstate = wxPyBeginAllowThreads();
11040 (arg1)->SetDialogTitle((wxString const &)*arg2);
11041 wxPyEndAllowThreads(__tstate);
11042 if (PyErr_Occurred()) SWIG_fail;
11043 }
11044 resultobj = SWIG_Py_Void();
11045 {
11046 if (temp2)
11047 delete arg2;
11048 }
11049 return resultobj;
11050 fail:
11051 {
11052 if (temp2)
11053 delete arg2;
11054 }
11055 return NULL;
11056 }
11057
11058
11059 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11060 PyObject *obj;
11061 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11062 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
11063 return SWIG_Py_Void();
11064 }
11065
11066 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11067 return SWIG_Python_InitShadowInstance(args);
11068 }
11069
11070 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11071 PyObject *resultobj = 0;
11072 int arg1 ;
11073 int arg2 ;
11074 int arg3 ;
11075 int arg4 ;
11076 bool arg5 = (bool) false ;
11077 wxString const &arg6_defvalue = wxPyEmptyString ;
11078 wxString *arg6 = (wxString *) &arg6_defvalue ;
11079 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11080 wxFont *result = 0 ;
11081 int val1 ;
11082 int ecode1 = 0 ;
11083 int val2 ;
11084 int ecode2 = 0 ;
11085 int val3 ;
11086 int ecode3 = 0 ;
11087 int val4 ;
11088 int ecode4 = 0 ;
11089 bool val5 ;
11090 int ecode5 = 0 ;
11091 bool temp6 = false ;
11092 int val7 ;
11093 int ecode7 = 0 ;
11094 PyObject * obj0 = 0 ;
11095 PyObject * obj1 = 0 ;
11096 PyObject * obj2 = 0 ;
11097 PyObject * obj3 = 0 ;
11098 PyObject * obj4 = 0 ;
11099 PyObject * obj5 = 0 ;
11100 PyObject * obj6 = 0 ;
11101 char * kwnames[] = {
11102 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11103 };
11104
11105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11106 ecode1 = SWIG_AsVal_int(obj0, &val1);
11107 if (!SWIG_IsOK(ecode1)) {
11108 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11109 }
11110 arg1 = static_cast< int >(val1);
11111 ecode2 = SWIG_AsVal_int(obj1, &val2);
11112 if (!SWIG_IsOK(ecode2)) {
11113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11114 }
11115 arg2 = static_cast< int >(val2);
11116 ecode3 = SWIG_AsVal_int(obj2, &val3);
11117 if (!SWIG_IsOK(ecode3)) {
11118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11119 }
11120 arg3 = static_cast< int >(val3);
11121 ecode4 = SWIG_AsVal_int(obj3, &val4);
11122 if (!SWIG_IsOK(ecode4)) {
11123 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11124 }
11125 arg4 = static_cast< int >(val4);
11126 if (obj4) {
11127 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11128 if (!SWIG_IsOK(ecode5)) {
11129 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11130 }
11131 arg5 = static_cast< bool >(val5);
11132 }
11133 if (obj5) {
11134 {
11135 arg6 = wxString_in_helper(obj5);
11136 if (arg6 == NULL) SWIG_fail;
11137 temp6 = true;
11138 }
11139 }
11140 if (obj6) {
11141 ecode7 = SWIG_AsVal_int(obj6, &val7);
11142 if (!SWIG_IsOK(ecode7)) {
11143 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11144 }
11145 arg7 = static_cast< wxFontEncoding >(val7);
11146 }
11147 {
11148 if (!wxPyCheckForApp()) SWIG_fail;
11149 PyThreadState* __tstate = wxPyBeginAllowThreads();
11150 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11151 wxPyEndAllowThreads(__tstate);
11152 if (PyErr_Occurred()) SWIG_fail;
11153 }
11154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
11155 {
11156 if (temp6)
11157 delete arg6;
11158 }
11159 return resultobj;
11160 fail:
11161 {
11162 if (temp6)
11163 delete arg6;
11164 }
11165 return NULL;
11166 }
11167
11168
11169 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11170 PyObject *resultobj = 0;
11171 wxFont *arg1 = (wxFont *) 0 ;
11172 void *argp1 = 0 ;
11173 int res1 = 0 ;
11174 PyObject *swig_obj[1] ;
11175
11176 if (!args) SWIG_fail;
11177 swig_obj[0] = args;
11178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
11179 if (!SWIG_IsOK(res1)) {
11180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11181 }
11182 arg1 = reinterpret_cast< wxFont * >(argp1);
11183 {
11184 PyThreadState* __tstate = wxPyBeginAllowThreads();
11185 delete arg1;
11186
11187 wxPyEndAllowThreads(__tstate);
11188 if (PyErr_Occurred()) SWIG_fail;
11189 }
11190 resultobj = SWIG_Py_Void();
11191 return resultobj;
11192 fail:
11193 return NULL;
11194 }
11195
11196
11197 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11198 PyObject *resultobj = 0;
11199 wxNativeFontInfo *arg1 = 0 ;
11200 wxFont *result = 0 ;
11201 void *argp1 = 0 ;
11202 int res1 = 0 ;
11203 PyObject * obj0 = 0 ;
11204 char * kwnames[] = {
11205 (char *) "info", NULL
11206 };
11207
11208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
11209 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
11210 if (!SWIG_IsOK(res1)) {
11211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11212 }
11213 if (!argp1) {
11214 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11215 }
11216 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11217 {
11218 if (!wxPyCheckForApp()) SWIG_fail;
11219 PyThreadState* __tstate = wxPyBeginAllowThreads();
11220 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
11221 wxPyEndAllowThreads(__tstate);
11222 if (PyErr_Occurred()) SWIG_fail;
11223 }
11224 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11225 return resultobj;
11226 fail:
11227 return NULL;
11228 }
11229
11230
11231 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11232 PyObject *resultobj = 0;
11233 wxString *arg1 = 0 ;
11234 wxFont *result = 0 ;
11235 bool temp1 = false ;
11236 PyObject * obj0 = 0 ;
11237 char * kwnames[] = {
11238 (char *) "info", NULL
11239 };
11240
11241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
11242 {
11243 arg1 = wxString_in_helper(obj0);
11244 if (arg1 == NULL) SWIG_fail;
11245 temp1 = true;
11246 }
11247 {
11248 if (!wxPyCheckForApp()) SWIG_fail;
11249 PyThreadState* __tstate = wxPyBeginAllowThreads();
11250 result = (wxFont *)new_wxFont((wxString const &)*arg1);
11251 wxPyEndAllowThreads(__tstate);
11252 if (PyErr_Occurred()) SWIG_fail;
11253 }
11254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11255 {
11256 if (temp1)
11257 delete arg1;
11258 }
11259 return resultobj;
11260 fail:
11261 {
11262 if (temp1)
11263 delete arg1;
11264 }
11265 return NULL;
11266 }
11267
11268
11269 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11270 PyObject *resultobj = 0;
11271 int arg1 ;
11272 wxFontFamily arg2 ;
11273 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11274 wxString const &arg4_defvalue = wxPyEmptyString ;
11275 wxString *arg4 = (wxString *) &arg4_defvalue ;
11276 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11277 wxFont *result = 0 ;
11278 int val1 ;
11279 int ecode1 = 0 ;
11280 int val2 ;
11281 int ecode2 = 0 ;
11282 int val3 ;
11283 int ecode3 = 0 ;
11284 bool temp4 = false ;
11285 int val5 ;
11286 int ecode5 = 0 ;
11287 PyObject * obj0 = 0 ;
11288 PyObject * obj1 = 0 ;
11289 PyObject * obj2 = 0 ;
11290 PyObject * obj3 = 0 ;
11291 PyObject * obj4 = 0 ;
11292 char * kwnames[] = {
11293 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11294 };
11295
11296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11297 ecode1 = SWIG_AsVal_int(obj0, &val1);
11298 if (!SWIG_IsOK(ecode1)) {
11299 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11300 }
11301 arg1 = static_cast< int >(val1);
11302 ecode2 = SWIG_AsVal_int(obj1, &val2);
11303 if (!SWIG_IsOK(ecode2)) {
11304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
11305 }
11306 arg2 = static_cast< wxFontFamily >(val2);
11307 if (obj2) {
11308 ecode3 = SWIG_AsVal_int(obj2, &val3);
11309 if (!SWIG_IsOK(ecode3)) {
11310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
11311 }
11312 arg3 = static_cast< int >(val3);
11313 }
11314 if (obj3) {
11315 {
11316 arg4 = wxString_in_helper(obj3);
11317 if (arg4 == NULL) SWIG_fail;
11318 temp4 = true;
11319 }
11320 }
11321 if (obj4) {
11322 ecode5 = SWIG_AsVal_int(obj4, &val5);
11323 if (!SWIG_IsOK(ecode5)) {
11324 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11325 }
11326 arg5 = static_cast< wxFontEncoding >(val5);
11327 }
11328 {
11329 if (!wxPyCheckForApp()) SWIG_fail;
11330 PyThreadState* __tstate = wxPyBeginAllowThreads();
11331 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11332 wxPyEndAllowThreads(__tstate);
11333 if (PyErr_Occurred()) SWIG_fail;
11334 }
11335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11336 {
11337 if (temp4)
11338 delete arg4;
11339 }
11340 return resultobj;
11341 fail:
11342 {
11343 if (temp4)
11344 delete arg4;
11345 }
11346 return NULL;
11347 }
11348
11349
11350 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11351 PyObject *resultobj = 0;
11352 wxSize *arg1 = 0 ;
11353 int arg2 ;
11354 int arg3 ;
11355 int arg4 ;
11356 bool arg5 = (bool) false ;
11357 wxString const &arg6_defvalue = wxEmptyString ;
11358 wxString *arg6 = (wxString *) &arg6_defvalue ;
11359 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11360 wxFont *result = 0 ;
11361 wxSize temp1 ;
11362 int val2 ;
11363 int ecode2 = 0 ;
11364 int val3 ;
11365 int ecode3 = 0 ;
11366 int val4 ;
11367 int ecode4 = 0 ;
11368 bool val5 ;
11369 int ecode5 = 0 ;
11370 bool temp6 = false ;
11371 int val7 ;
11372 int ecode7 = 0 ;
11373 PyObject * obj0 = 0 ;
11374 PyObject * obj1 = 0 ;
11375 PyObject * obj2 = 0 ;
11376 PyObject * obj3 = 0 ;
11377 PyObject * obj4 = 0 ;
11378 PyObject * obj5 = 0 ;
11379 PyObject * obj6 = 0 ;
11380 char * kwnames[] = {
11381 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
11382 };
11383
11384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11385 {
11386 arg1 = &temp1;
11387 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11388 }
11389 ecode2 = SWIG_AsVal_int(obj1, &val2);
11390 if (!SWIG_IsOK(ecode2)) {
11391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
11392 }
11393 arg2 = static_cast< int >(val2);
11394 ecode3 = SWIG_AsVal_int(obj2, &val3);
11395 if (!SWIG_IsOK(ecode3)) {
11396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11397 }
11398 arg3 = static_cast< int >(val3);
11399 ecode4 = SWIG_AsVal_int(obj3, &val4);
11400 if (!SWIG_IsOK(ecode4)) {
11401 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
11402 }
11403 arg4 = static_cast< int >(val4);
11404 if (obj4) {
11405 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11406 if (!SWIG_IsOK(ecode5)) {
11407 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
11408 }
11409 arg5 = static_cast< bool >(val5);
11410 }
11411 if (obj5) {
11412 {
11413 arg6 = wxString_in_helper(obj5);
11414 if (arg6 == NULL) SWIG_fail;
11415 temp6 = true;
11416 }
11417 }
11418 if (obj6) {
11419 ecode7 = SWIG_AsVal_int(obj6, &val7);
11420 if (!SWIG_IsOK(ecode7)) {
11421 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11422 }
11423 arg7 = static_cast< wxFontEncoding >(val7);
11424 }
11425 {
11426 if (!wxPyCheckForApp()) SWIG_fail;
11427 PyThreadState* __tstate = wxPyBeginAllowThreads();
11428 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11429 wxPyEndAllowThreads(__tstate);
11430 if (PyErr_Occurred()) SWIG_fail;
11431 }
11432 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11433 {
11434 if (temp6)
11435 delete arg6;
11436 }
11437 return resultobj;
11438 fail:
11439 {
11440 if (temp6)
11441 delete arg6;
11442 }
11443 return NULL;
11444 }
11445
11446
11447 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11448 PyObject *resultobj = 0;
11449 wxSize *arg1 = 0 ;
11450 wxFontFamily arg2 ;
11451 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11452 wxString const &arg4_defvalue = wxEmptyString ;
11453 wxString *arg4 = (wxString *) &arg4_defvalue ;
11454 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11455 wxFont *result = 0 ;
11456 wxSize temp1 ;
11457 int val2 ;
11458 int ecode2 = 0 ;
11459 int val3 ;
11460 int ecode3 = 0 ;
11461 bool temp4 = false ;
11462 int val5 ;
11463 int ecode5 = 0 ;
11464 PyObject * obj0 = 0 ;
11465 PyObject * obj1 = 0 ;
11466 PyObject * obj2 = 0 ;
11467 PyObject * obj3 = 0 ;
11468 PyObject * obj4 = 0 ;
11469 char * kwnames[] = {
11470 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11471 };
11472
11473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11474 {
11475 arg1 = &temp1;
11476 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11477 }
11478 ecode2 = SWIG_AsVal_int(obj1, &val2);
11479 if (!SWIG_IsOK(ecode2)) {
11480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
11481 }
11482 arg2 = static_cast< wxFontFamily >(val2);
11483 if (obj2) {
11484 ecode3 = SWIG_AsVal_int(obj2, &val3);
11485 if (!SWIG_IsOK(ecode3)) {
11486 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11487 }
11488 arg3 = static_cast< int >(val3);
11489 }
11490 if (obj3) {
11491 {
11492 arg4 = wxString_in_helper(obj3);
11493 if (arg4 == NULL) SWIG_fail;
11494 temp4 = true;
11495 }
11496 }
11497 if (obj4) {
11498 ecode5 = SWIG_AsVal_int(obj4, &val5);
11499 if (!SWIG_IsOK(ecode5)) {
11500 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11501 }
11502 arg5 = static_cast< wxFontEncoding >(val5);
11503 }
11504 {
11505 if (!wxPyCheckForApp()) SWIG_fail;
11506 PyThreadState* __tstate = wxPyBeginAllowThreads();
11507 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11508 wxPyEndAllowThreads(__tstate);
11509 if (PyErr_Occurred()) SWIG_fail;
11510 }
11511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11512 {
11513 if (temp4)
11514 delete arg4;
11515 }
11516 return resultobj;
11517 fail:
11518 {
11519 if (temp4)
11520 delete arg4;
11521 }
11522 return NULL;
11523 }
11524
11525
11526 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11527 PyObject *resultobj = 0;
11528 wxFont *arg1 = (wxFont *) 0 ;
11529 bool result;
11530 void *argp1 = 0 ;
11531 int res1 = 0 ;
11532 PyObject *swig_obj[1] ;
11533
11534 if (!args) SWIG_fail;
11535 swig_obj[0] = args;
11536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11537 if (!SWIG_IsOK(res1)) {
11538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
11539 }
11540 arg1 = reinterpret_cast< wxFont * >(argp1);
11541 {
11542 PyThreadState* __tstate = wxPyBeginAllowThreads();
11543 result = (bool)((wxFont const *)arg1)->Ok();
11544 wxPyEndAllowThreads(__tstate);
11545 if (PyErr_Occurred()) SWIG_fail;
11546 }
11547 {
11548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11549 }
11550 return resultobj;
11551 fail:
11552 return NULL;
11553 }
11554
11555
11556 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11557 PyObject *resultobj = 0;
11558 wxFont *arg1 = (wxFont *) 0 ;
11559 wxFont *arg2 = (wxFont *) 0 ;
11560 bool result;
11561 void *argp1 = 0 ;
11562 int res1 = 0 ;
11563 void *argp2 = 0 ;
11564 int res2 = 0 ;
11565 PyObject * obj0 = 0 ;
11566 PyObject * obj1 = 0 ;
11567 char * kwnames[] = {
11568 (char *) "self",(char *) "other", NULL
11569 };
11570
11571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
11572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11573 if (!SWIG_IsOK(res1)) {
11574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
11575 }
11576 arg1 = reinterpret_cast< wxFont * >(argp1);
11577 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11578 if (!SWIG_IsOK(res2)) {
11579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
11580 }
11581 arg2 = reinterpret_cast< wxFont * >(argp2);
11582 {
11583 PyThreadState* __tstate = wxPyBeginAllowThreads();
11584 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
11585 wxPyEndAllowThreads(__tstate);
11586 if (PyErr_Occurred()) SWIG_fail;
11587 }
11588 {
11589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11590 }
11591 return resultobj;
11592 fail:
11593 return NULL;
11594 }
11595
11596
11597 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11598 PyObject *resultobj = 0;
11599 wxFont *arg1 = (wxFont *) 0 ;
11600 wxFont *arg2 = (wxFont *) 0 ;
11601 bool result;
11602 void *argp1 = 0 ;
11603 int res1 = 0 ;
11604 void *argp2 = 0 ;
11605 int res2 = 0 ;
11606 PyObject * obj0 = 0 ;
11607 PyObject * obj1 = 0 ;
11608 char * kwnames[] = {
11609 (char *) "self",(char *) "other", NULL
11610 };
11611
11612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
11613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11614 if (!SWIG_IsOK(res1)) {
11615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
11616 }
11617 arg1 = reinterpret_cast< wxFont * >(argp1);
11618 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11619 if (!SWIG_IsOK(res2)) {
11620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
11621 }
11622 arg2 = reinterpret_cast< wxFont * >(argp2);
11623 {
11624 PyThreadState* __tstate = wxPyBeginAllowThreads();
11625 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
11626 wxPyEndAllowThreads(__tstate);
11627 if (PyErr_Occurred()) SWIG_fail;
11628 }
11629 {
11630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11631 }
11632 return resultobj;
11633 fail:
11634 return NULL;
11635 }
11636
11637
11638 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11639 PyObject *resultobj = 0;
11640 wxFont *arg1 = (wxFont *) 0 ;
11641 int result;
11642 void *argp1 = 0 ;
11643 int res1 = 0 ;
11644 PyObject *swig_obj[1] ;
11645
11646 if (!args) SWIG_fail;
11647 swig_obj[0] = args;
11648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11649 if (!SWIG_IsOK(res1)) {
11650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11651 }
11652 arg1 = reinterpret_cast< wxFont * >(argp1);
11653 {
11654 PyThreadState* __tstate = wxPyBeginAllowThreads();
11655 result = (int)((wxFont const *)arg1)->GetPointSize();
11656 wxPyEndAllowThreads(__tstate);
11657 if (PyErr_Occurred()) SWIG_fail;
11658 }
11659 resultobj = SWIG_From_int(static_cast< int >(result));
11660 return resultobj;
11661 fail:
11662 return NULL;
11663 }
11664
11665
11666 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11667 PyObject *resultobj = 0;
11668 wxFont *arg1 = (wxFont *) 0 ;
11669 wxSize result;
11670 void *argp1 = 0 ;
11671 int res1 = 0 ;
11672 PyObject *swig_obj[1] ;
11673
11674 if (!args) SWIG_fail;
11675 swig_obj[0] = args;
11676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11677 if (!SWIG_IsOK(res1)) {
11678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11679 }
11680 arg1 = reinterpret_cast< wxFont * >(argp1);
11681 {
11682 PyThreadState* __tstate = wxPyBeginAllowThreads();
11683 result = ((wxFont const *)arg1)->GetPixelSize();
11684 wxPyEndAllowThreads(__tstate);
11685 if (PyErr_Occurred()) SWIG_fail;
11686 }
11687 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
11688 return resultobj;
11689 fail:
11690 return NULL;
11691 }
11692
11693
11694 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11695 PyObject *resultobj = 0;
11696 wxFont *arg1 = (wxFont *) 0 ;
11697 bool result;
11698 void *argp1 = 0 ;
11699 int res1 = 0 ;
11700 PyObject *swig_obj[1] ;
11701
11702 if (!args) SWIG_fail;
11703 swig_obj[0] = args;
11704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11705 if (!SWIG_IsOK(res1)) {
11706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
11707 }
11708 arg1 = reinterpret_cast< wxFont * >(argp1);
11709 {
11710 PyThreadState* __tstate = wxPyBeginAllowThreads();
11711 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
11712 wxPyEndAllowThreads(__tstate);
11713 if (PyErr_Occurred()) SWIG_fail;
11714 }
11715 {
11716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11717 }
11718 return resultobj;
11719 fail:
11720 return NULL;
11721 }
11722
11723
11724 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11725 PyObject *resultobj = 0;
11726 wxFont *arg1 = (wxFont *) 0 ;
11727 int result;
11728 void *argp1 = 0 ;
11729 int res1 = 0 ;
11730 PyObject *swig_obj[1] ;
11731
11732 if (!args) SWIG_fail;
11733 swig_obj[0] = args;
11734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11735 if (!SWIG_IsOK(res1)) {
11736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
11737 }
11738 arg1 = reinterpret_cast< wxFont * >(argp1);
11739 {
11740 PyThreadState* __tstate = wxPyBeginAllowThreads();
11741 result = (int)((wxFont const *)arg1)->GetFamily();
11742 wxPyEndAllowThreads(__tstate);
11743 if (PyErr_Occurred()) SWIG_fail;
11744 }
11745 resultobj = SWIG_From_int(static_cast< int >(result));
11746 return resultobj;
11747 fail:
11748 return NULL;
11749 }
11750
11751
11752 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11753 PyObject *resultobj = 0;
11754 wxFont *arg1 = (wxFont *) 0 ;
11755 int result;
11756 void *argp1 = 0 ;
11757 int res1 = 0 ;
11758 PyObject *swig_obj[1] ;
11759
11760 if (!args) SWIG_fail;
11761 swig_obj[0] = args;
11762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11763 if (!SWIG_IsOK(res1)) {
11764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
11765 }
11766 arg1 = reinterpret_cast< wxFont * >(argp1);
11767 {
11768 PyThreadState* __tstate = wxPyBeginAllowThreads();
11769 result = (int)((wxFont const *)arg1)->GetStyle();
11770 wxPyEndAllowThreads(__tstate);
11771 if (PyErr_Occurred()) SWIG_fail;
11772 }
11773 resultobj = SWIG_From_int(static_cast< int >(result));
11774 return resultobj;
11775 fail:
11776 return NULL;
11777 }
11778
11779
11780 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11781 PyObject *resultobj = 0;
11782 wxFont *arg1 = (wxFont *) 0 ;
11783 int result;
11784 void *argp1 = 0 ;
11785 int res1 = 0 ;
11786 PyObject *swig_obj[1] ;
11787
11788 if (!args) SWIG_fail;
11789 swig_obj[0] = args;
11790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11791 if (!SWIG_IsOK(res1)) {
11792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
11793 }
11794 arg1 = reinterpret_cast< wxFont * >(argp1);
11795 {
11796 PyThreadState* __tstate = wxPyBeginAllowThreads();
11797 result = (int)((wxFont const *)arg1)->GetWeight();
11798 wxPyEndAllowThreads(__tstate);
11799 if (PyErr_Occurred()) SWIG_fail;
11800 }
11801 resultobj = SWIG_From_int(static_cast< int >(result));
11802 return resultobj;
11803 fail:
11804 return NULL;
11805 }
11806
11807
11808 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11809 PyObject *resultobj = 0;
11810 wxFont *arg1 = (wxFont *) 0 ;
11811 bool result;
11812 void *argp1 = 0 ;
11813 int res1 = 0 ;
11814 PyObject *swig_obj[1] ;
11815
11816 if (!args) SWIG_fail;
11817 swig_obj[0] = args;
11818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11819 if (!SWIG_IsOK(res1)) {
11820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
11821 }
11822 arg1 = reinterpret_cast< wxFont * >(argp1);
11823 {
11824 PyThreadState* __tstate = wxPyBeginAllowThreads();
11825 result = (bool)((wxFont const *)arg1)->GetUnderlined();
11826 wxPyEndAllowThreads(__tstate);
11827 if (PyErr_Occurred()) SWIG_fail;
11828 }
11829 {
11830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11831 }
11832 return resultobj;
11833 fail:
11834 return NULL;
11835 }
11836
11837
11838 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11839 PyObject *resultobj = 0;
11840 wxFont *arg1 = (wxFont *) 0 ;
11841 wxString result;
11842 void *argp1 = 0 ;
11843 int res1 = 0 ;
11844 PyObject *swig_obj[1] ;
11845
11846 if (!args) SWIG_fail;
11847 swig_obj[0] = args;
11848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11849 if (!SWIG_IsOK(res1)) {
11850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
11851 }
11852 arg1 = reinterpret_cast< wxFont * >(argp1);
11853 {
11854 PyThreadState* __tstate = wxPyBeginAllowThreads();
11855 result = ((wxFont const *)arg1)->GetFaceName();
11856 wxPyEndAllowThreads(__tstate);
11857 if (PyErr_Occurred()) SWIG_fail;
11858 }
11859 {
11860 #if wxUSE_UNICODE
11861 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11862 #else
11863 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11864 #endif
11865 }
11866 return resultobj;
11867 fail:
11868 return NULL;
11869 }
11870
11871
11872 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11873 PyObject *resultobj = 0;
11874 wxFont *arg1 = (wxFont *) 0 ;
11875 wxFontEncoding result;
11876 void *argp1 = 0 ;
11877 int res1 = 0 ;
11878 PyObject *swig_obj[1] ;
11879
11880 if (!args) SWIG_fail;
11881 swig_obj[0] = args;
11882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11883 if (!SWIG_IsOK(res1)) {
11884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
11885 }
11886 arg1 = reinterpret_cast< wxFont * >(argp1);
11887 {
11888 PyThreadState* __tstate = wxPyBeginAllowThreads();
11889 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
11890 wxPyEndAllowThreads(__tstate);
11891 if (PyErr_Occurred()) SWIG_fail;
11892 }
11893 resultobj = SWIG_From_int(static_cast< int >(result));
11894 return resultobj;
11895 fail:
11896 return NULL;
11897 }
11898
11899
11900 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11901 PyObject *resultobj = 0;
11902 wxFont *arg1 = (wxFont *) 0 ;
11903 wxNativeFontInfo *result = 0 ;
11904 void *argp1 = 0 ;
11905 int res1 = 0 ;
11906 PyObject *swig_obj[1] ;
11907
11908 if (!args) SWIG_fail;
11909 swig_obj[0] = args;
11910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11911 if (!SWIG_IsOK(res1)) {
11912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
11913 }
11914 arg1 = reinterpret_cast< wxFont * >(argp1);
11915 {
11916 PyThreadState* __tstate = wxPyBeginAllowThreads();
11917 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
11918 wxPyEndAllowThreads(__tstate);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 }
11921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11922 return resultobj;
11923 fail:
11924 return NULL;
11925 }
11926
11927
11928 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11929 PyObject *resultobj = 0;
11930 wxFont *arg1 = (wxFont *) 0 ;
11931 bool result;
11932 void *argp1 = 0 ;
11933 int res1 = 0 ;
11934 PyObject *swig_obj[1] ;
11935
11936 if (!args) SWIG_fail;
11937 swig_obj[0] = args;
11938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11939 if (!SWIG_IsOK(res1)) {
11940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
11941 }
11942 arg1 = reinterpret_cast< wxFont * >(argp1);
11943 {
11944 PyThreadState* __tstate = wxPyBeginAllowThreads();
11945 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
11946 wxPyEndAllowThreads(__tstate);
11947 if (PyErr_Occurred()) SWIG_fail;
11948 }
11949 {
11950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11951 }
11952 return resultobj;
11953 fail:
11954 return NULL;
11955 }
11956
11957
11958 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11959 PyObject *resultobj = 0;
11960 wxFont *arg1 = (wxFont *) 0 ;
11961 wxString result;
11962 void *argp1 = 0 ;
11963 int res1 = 0 ;
11964 PyObject *swig_obj[1] ;
11965
11966 if (!args) SWIG_fail;
11967 swig_obj[0] = args;
11968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11969 if (!SWIG_IsOK(res1)) {
11970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
11971 }
11972 arg1 = reinterpret_cast< wxFont * >(argp1);
11973 {
11974 PyThreadState* __tstate = wxPyBeginAllowThreads();
11975 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
11976 wxPyEndAllowThreads(__tstate);
11977 if (PyErr_Occurred()) SWIG_fail;
11978 }
11979 {
11980 #if wxUSE_UNICODE
11981 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11982 #else
11983 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11984 #endif
11985 }
11986 return resultobj;
11987 fail:
11988 return NULL;
11989 }
11990
11991
11992 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11993 PyObject *resultobj = 0;
11994 wxFont *arg1 = (wxFont *) 0 ;
11995 wxString result;
11996 void *argp1 = 0 ;
11997 int res1 = 0 ;
11998 PyObject *swig_obj[1] ;
11999
12000 if (!args) SWIG_fail;
12001 swig_obj[0] = args;
12002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12003 if (!SWIG_IsOK(res1)) {
12004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12005 }
12006 arg1 = reinterpret_cast< wxFont * >(argp1);
12007 {
12008 PyThreadState* __tstate = wxPyBeginAllowThreads();
12009 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
12010 wxPyEndAllowThreads(__tstate);
12011 if (PyErr_Occurred()) SWIG_fail;
12012 }
12013 {
12014 #if wxUSE_UNICODE
12015 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12016 #else
12017 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12018 #endif
12019 }
12020 return resultobj;
12021 fail:
12022 return NULL;
12023 }
12024
12025
12026 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12027 PyObject *resultobj = 0;
12028 wxFont *arg1 = (wxFont *) 0 ;
12029 int arg2 ;
12030 void *argp1 = 0 ;
12031 int res1 = 0 ;
12032 int val2 ;
12033 int ecode2 = 0 ;
12034 PyObject * obj0 = 0 ;
12035 PyObject * obj1 = 0 ;
12036 char * kwnames[] = {
12037 (char *) "self",(char *) "pointSize", NULL
12038 };
12039
12040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12042 if (!SWIG_IsOK(res1)) {
12043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
12044 }
12045 arg1 = reinterpret_cast< wxFont * >(argp1);
12046 ecode2 = SWIG_AsVal_int(obj1, &val2);
12047 if (!SWIG_IsOK(ecode2)) {
12048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12049 }
12050 arg2 = static_cast< int >(val2);
12051 {
12052 PyThreadState* __tstate = wxPyBeginAllowThreads();
12053 (arg1)->SetPointSize(arg2);
12054 wxPyEndAllowThreads(__tstate);
12055 if (PyErr_Occurred()) SWIG_fail;
12056 }
12057 resultobj = SWIG_Py_Void();
12058 return resultobj;
12059 fail:
12060 return NULL;
12061 }
12062
12063
12064 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12065 PyObject *resultobj = 0;
12066 wxFont *arg1 = (wxFont *) 0 ;
12067 wxSize *arg2 = 0 ;
12068 void *argp1 = 0 ;
12069 int res1 = 0 ;
12070 wxSize temp2 ;
12071 PyObject * obj0 = 0 ;
12072 PyObject * obj1 = 0 ;
12073 char * kwnames[] = {
12074 (char *) "self",(char *) "pixelSize", NULL
12075 };
12076
12077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12079 if (!SWIG_IsOK(res1)) {
12080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12081 }
12082 arg1 = reinterpret_cast< wxFont * >(argp1);
12083 {
12084 arg2 = &temp2;
12085 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12086 }
12087 {
12088 PyThreadState* __tstate = wxPyBeginAllowThreads();
12089 (arg1)->SetPixelSize((wxSize const &)*arg2);
12090 wxPyEndAllowThreads(__tstate);
12091 if (PyErr_Occurred()) SWIG_fail;
12092 }
12093 resultobj = SWIG_Py_Void();
12094 return resultobj;
12095 fail:
12096 return NULL;
12097 }
12098
12099
12100 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12101 PyObject *resultobj = 0;
12102 wxFont *arg1 = (wxFont *) 0 ;
12103 int arg2 ;
12104 void *argp1 = 0 ;
12105 int res1 = 0 ;
12106 int val2 ;
12107 int ecode2 = 0 ;
12108 PyObject * obj0 = 0 ;
12109 PyObject * obj1 = 0 ;
12110 char * kwnames[] = {
12111 (char *) "self",(char *) "family", NULL
12112 };
12113
12114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12116 if (!SWIG_IsOK(res1)) {
12117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12118 }
12119 arg1 = reinterpret_cast< wxFont * >(argp1);
12120 ecode2 = SWIG_AsVal_int(obj1, &val2);
12121 if (!SWIG_IsOK(ecode2)) {
12122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12123 }
12124 arg2 = static_cast< int >(val2);
12125 {
12126 PyThreadState* __tstate = wxPyBeginAllowThreads();
12127 (arg1)->SetFamily(arg2);
12128 wxPyEndAllowThreads(__tstate);
12129 if (PyErr_Occurred()) SWIG_fail;
12130 }
12131 resultobj = SWIG_Py_Void();
12132 return resultobj;
12133 fail:
12134 return NULL;
12135 }
12136
12137
12138 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12139 PyObject *resultobj = 0;
12140 wxFont *arg1 = (wxFont *) 0 ;
12141 int arg2 ;
12142 void *argp1 = 0 ;
12143 int res1 = 0 ;
12144 int val2 ;
12145 int ecode2 = 0 ;
12146 PyObject * obj0 = 0 ;
12147 PyObject * obj1 = 0 ;
12148 char * kwnames[] = {
12149 (char *) "self",(char *) "style", NULL
12150 };
12151
12152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12154 if (!SWIG_IsOK(res1)) {
12155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12156 }
12157 arg1 = reinterpret_cast< wxFont * >(argp1);
12158 ecode2 = SWIG_AsVal_int(obj1, &val2);
12159 if (!SWIG_IsOK(ecode2)) {
12160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12161 }
12162 arg2 = static_cast< int >(val2);
12163 {
12164 PyThreadState* __tstate = wxPyBeginAllowThreads();
12165 (arg1)->SetStyle(arg2);
12166 wxPyEndAllowThreads(__tstate);
12167 if (PyErr_Occurred()) SWIG_fail;
12168 }
12169 resultobj = SWIG_Py_Void();
12170 return resultobj;
12171 fail:
12172 return NULL;
12173 }
12174
12175
12176 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12177 PyObject *resultobj = 0;
12178 wxFont *arg1 = (wxFont *) 0 ;
12179 int arg2 ;
12180 void *argp1 = 0 ;
12181 int res1 = 0 ;
12182 int val2 ;
12183 int ecode2 = 0 ;
12184 PyObject * obj0 = 0 ;
12185 PyObject * obj1 = 0 ;
12186 char * kwnames[] = {
12187 (char *) "self",(char *) "weight", NULL
12188 };
12189
12190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12192 if (!SWIG_IsOK(res1)) {
12193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12194 }
12195 arg1 = reinterpret_cast< wxFont * >(argp1);
12196 ecode2 = SWIG_AsVal_int(obj1, &val2);
12197 if (!SWIG_IsOK(ecode2)) {
12198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12199 }
12200 arg2 = static_cast< int >(val2);
12201 {
12202 PyThreadState* __tstate = wxPyBeginAllowThreads();
12203 (arg1)->SetWeight(arg2);
12204 wxPyEndAllowThreads(__tstate);
12205 if (PyErr_Occurred()) SWIG_fail;
12206 }
12207 resultobj = SWIG_Py_Void();
12208 return resultobj;
12209 fail:
12210 return NULL;
12211 }
12212
12213
12214 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12215 PyObject *resultobj = 0;
12216 wxFont *arg1 = (wxFont *) 0 ;
12217 wxString *arg2 = 0 ;
12218 void *argp1 = 0 ;
12219 int res1 = 0 ;
12220 bool temp2 = false ;
12221 PyObject * obj0 = 0 ;
12222 PyObject * obj1 = 0 ;
12223 char * kwnames[] = {
12224 (char *) "self",(char *) "faceName", NULL
12225 };
12226
12227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12229 if (!SWIG_IsOK(res1)) {
12230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
12231 }
12232 arg1 = reinterpret_cast< wxFont * >(argp1);
12233 {
12234 arg2 = wxString_in_helper(obj1);
12235 if (arg2 == NULL) SWIG_fail;
12236 temp2 = true;
12237 }
12238 {
12239 PyThreadState* __tstate = wxPyBeginAllowThreads();
12240 (arg1)->SetFaceName((wxString const &)*arg2);
12241 wxPyEndAllowThreads(__tstate);
12242 if (PyErr_Occurred()) SWIG_fail;
12243 }
12244 resultobj = SWIG_Py_Void();
12245 {
12246 if (temp2)
12247 delete arg2;
12248 }
12249 return resultobj;
12250 fail:
12251 {
12252 if (temp2)
12253 delete arg2;
12254 }
12255 return NULL;
12256 }
12257
12258
12259 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12260 PyObject *resultobj = 0;
12261 wxFont *arg1 = (wxFont *) 0 ;
12262 bool arg2 ;
12263 void *argp1 = 0 ;
12264 int res1 = 0 ;
12265 bool val2 ;
12266 int ecode2 = 0 ;
12267 PyObject * obj0 = 0 ;
12268 PyObject * obj1 = 0 ;
12269 char * kwnames[] = {
12270 (char *) "self",(char *) "underlined", NULL
12271 };
12272
12273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12275 if (!SWIG_IsOK(res1)) {
12276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12277 }
12278 arg1 = reinterpret_cast< wxFont * >(argp1);
12279 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12280 if (!SWIG_IsOK(ecode2)) {
12281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12282 }
12283 arg2 = static_cast< bool >(val2);
12284 {
12285 PyThreadState* __tstate = wxPyBeginAllowThreads();
12286 (arg1)->SetUnderlined(arg2);
12287 wxPyEndAllowThreads(__tstate);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 }
12290 resultobj = SWIG_Py_Void();
12291 return resultobj;
12292 fail:
12293 return NULL;
12294 }
12295
12296
12297 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12298 PyObject *resultobj = 0;
12299 wxFont *arg1 = (wxFont *) 0 ;
12300 wxFontEncoding arg2 ;
12301 void *argp1 = 0 ;
12302 int res1 = 0 ;
12303 int val2 ;
12304 int ecode2 = 0 ;
12305 PyObject * obj0 = 0 ;
12306 PyObject * obj1 = 0 ;
12307 char * kwnames[] = {
12308 (char *) "self",(char *) "encoding", NULL
12309 };
12310
12311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12313 if (!SWIG_IsOK(res1)) {
12314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
12315 }
12316 arg1 = reinterpret_cast< wxFont * >(argp1);
12317 ecode2 = SWIG_AsVal_int(obj1, &val2);
12318 if (!SWIG_IsOK(ecode2)) {
12319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12320 }
12321 arg2 = static_cast< wxFontEncoding >(val2);
12322 {
12323 PyThreadState* __tstate = wxPyBeginAllowThreads();
12324 (arg1)->SetEncoding(arg2);
12325 wxPyEndAllowThreads(__tstate);
12326 if (PyErr_Occurred()) SWIG_fail;
12327 }
12328 resultobj = SWIG_Py_Void();
12329 return resultobj;
12330 fail:
12331 return NULL;
12332 }
12333
12334
12335 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12336 PyObject *resultobj = 0;
12337 wxFont *arg1 = (wxFont *) 0 ;
12338 wxNativeFontInfo *arg2 = 0 ;
12339 void *argp1 = 0 ;
12340 int res1 = 0 ;
12341 void *argp2 = 0 ;
12342 int res2 = 0 ;
12343 PyObject * obj0 = 0 ;
12344 PyObject * obj1 = 0 ;
12345 char * kwnames[] = {
12346 (char *) "self",(char *) "info", NULL
12347 };
12348
12349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
12350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12351 if (!SWIG_IsOK(res1)) {
12352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
12353 }
12354 arg1 = reinterpret_cast< wxFont * >(argp1);
12355 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
12356 if (!SWIG_IsOK(res2)) {
12357 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12358 }
12359 if (!argp2) {
12360 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12361 }
12362 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
12363 {
12364 PyThreadState* __tstate = wxPyBeginAllowThreads();
12365 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
12366 wxPyEndAllowThreads(__tstate);
12367 if (PyErr_Occurred()) SWIG_fail;
12368 }
12369 resultobj = SWIG_Py_Void();
12370 return resultobj;
12371 fail:
12372 return NULL;
12373 }
12374
12375
12376 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12377 PyObject *resultobj = 0;
12378 wxFont *arg1 = (wxFont *) 0 ;
12379 wxString *arg2 = 0 ;
12380 void *argp1 = 0 ;
12381 int res1 = 0 ;
12382 bool temp2 = false ;
12383 PyObject * obj0 = 0 ;
12384 PyObject * obj1 = 0 ;
12385 char * kwnames[] = {
12386 (char *) "self",(char *) "info", NULL
12387 };
12388
12389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
12390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12391 if (!SWIG_IsOK(res1)) {
12392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
12393 }
12394 arg1 = reinterpret_cast< wxFont * >(argp1);
12395 {
12396 arg2 = wxString_in_helper(obj1);
12397 if (arg2 == NULL) SWIG_fail;
12398 temp2 = true;
12399 }
12400 {
12401 PyThreadState* __tstate = wxPyBeginAllowThreads();
12402 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
12403 wxPyEndAllowThreads(__tstate);
12404 if (PyErr_Occurred()) SWIG_fail;
12405 }
12406 resultobj = SWIG_Py_Void();
12407 {
12408 if (temp2)
12409 delete arg2;
12410 }
12411 return resultobj;
12412 fail:
12413 {
12414 if (temp2)
12415 delete arg2;
12416 }
12417 return NULL;
12418 }
12419
12420
12421 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12422 PyObject *resultobj = 0;
12423 wxFont *arg1 = (wxFont *) 0 ;
12424 wxString *arg2 = 0 ;
12425 void *argp1 = 0 ;
12426 int res1 = 0 ;
12427 bool temp2 = false ;
12428 PyObject * obj0 = 0 ;
12429 PyObject * obj1 = 0 ;
12430 char * kwnames[] = {
12431 (char *) "self",(char *) "info", NULL
12432 };
12433
12434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
12435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12436 if (!SWIG_IsOK(res1)) {
12437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
12438 }
12439 arg1 = reinterpret_cast< wxFont * >(argp1);
12440 {
12441 arg2 = wxString_in_helper(obj1);
12442 if (arg2 == NULL) SWIG_fail;
12443 temp2 = true;
12444 }
12445 {
12446 PyThreadState* __tstate = wxPyBeginAllowThreads();
12447 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
12448 wxPyEndAllowThreads(__tstate);
12449 if (PyErr_Occurred()) SWIG_fail;
12450 }
12451 resultobj = SWIG_Py_Void();
12452 {
12453 if (temp2)
12454 delete arg2;
12455 }
12456 return resultobj;
12457 fail:
12458 {
12459 if (temp2)
12460 delete arg2;
12461 }
12462 return NULL;
12463 }
12464
12465
12466 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12467 PyObject *resultobj = 0;
12468 wxFont *arg1 = (wxFont *) 0 ;
12469 wxString result;
12470 void *argp1 = 0 ;
12471 int res1 = 0 ;
12472 PyObject *swig_obj[1] ;
12473
12474 if (!args) SWIG_fail;
12475 swig_obj[0] = args;
12476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12477 if (!SWIG_IsOK(res1)) {
12478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
12479 }
12480 arg1 = reinterpret_cast< wxFont * >(argp1);
12481 {
12482 PyThreadState* __tstate = wxPyBeginAllowThreads();
12483 result = ((wxFont const *)arg1)->GetFamilyString();
12484 wxPyEndAllowThreads(__tstate);
12485 if (PyErr_Occurred()) SWIG_fail;
12486 }
12487 {
12488 #if wxUSE_UNICODE
12489 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12490 #else
12491 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12492 #endif
12493 }
12494 return resultobj;
12495 fail:
12496 return NULL;
12497 }
12498
12499
12500 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12501 PyObject *resultobj = 0;
12502 wxFont *arg1 = (wxFont *) 0 ;
12503 wxString result;
12504 void *argp1 = 0 ;
12505 int res1 = 0 ;
12506 PyObject *swig_obj[1] ;
12507
12508 if (!args) SWIG_fail;
12509 swig_obj[0] = args;
12510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12511 if (!SWIG_IsOK(res1)) {
12512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
12513 }
12514 arg1 = reinterpret_cast< wxFont * >(argp1);
12515 {
12516 PyThreadState* __tstate = wxPyBeginAllowThreads();
12517 result = ((wxFont const *)arg1)->GetStyleString();
12518 wxPyEndAllowThreads(__tstate);
12519 if (PyErr_Occurred()) SWIG_fail;
12520 }
12521 {
12522 #if wxUSE_UNICODE
12523 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12524 #else
12525 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12526 #endif
12527 }
12528 return resultobj;
12529 fail:
12530 return NULL;
12531 }
12532
12533
12534 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12535 PyObject *resultobj = 0;
12536 wxFont *arg1 = (wxFont *) 0 ;
12537 wxString result;
12538 void *argp1 = 0 ;
12539 int res1 = 0 ;
12540 PyObject *swig_obj[1] ;
12541
12542 if (!args) SWIG_fail;
12543 swig_obj[0] = args;
12544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12545 if (!SWIG_IsOK(res1)) {
12546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
12547 }
12548 arg1 = reinterpret_cast< wxFont * >(argp1);
12549 {
12550 PyThreadState* __tstate = wxPyBeginAllowThreads();
12551 result = ((wxFont const *)arg1)->GetWeightString();
12552 wxPyEndAllowThreads(__tstate);
12553 if (PyErr_Occurred()) SWIG_fail;
12554 }
12555 {
12556 #if wxUSE_UNICODE
12557 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12558 #else
12559 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12560 #endif
12561 }
12562 return resultobj;
12563 fail:
12564 return NULL;
12565 }
12566
12567
12568 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12569 PyObject *resultobj = 0;
12570 wxFont *arg1 = (wxFont *) 0 ;
12571 bool arg2 = (bool) true ;
12572 void *argp1 = 0 ;
12573 int res1 = 0 ;
12574 bool val2 ;
12575 int ecode2 = 0 ;
12576 PyObject * obj0 = 0 ;
12577 PyObject * obj1 = 0 ;
12578 char * kwnames[] = {
12579 (char *) "self",(char *) "no", NULL
12580 };
12581
12582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
12583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12584 if (!SWIG_IsOK(res1)) {
12585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
12586 }
12587 arg1 = reinterpret_cast< wxFont * >(argp1);
12588 if (obj1) {
12589 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12590 if (!SWIG_IsOK(ecode2)) {
12591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
12592 }
12593 arg2 = static_cast< bool >(val2);
12594 }
12595 {
12596 PyThreadState* __tstate = wxPyBeginAllowThreads();
12597 (arg1)->SetNoAntiAliasing(arg2);
12598 wxPyEndAllowThreads(__tstate);
12599 if (PyErr_Occurred()) SWIG_fail;
12600 }
12601 resultobj = SWIG_Py_Void();
12602 return resultobj;
12603 fail:
12604 return NULL;
12605 }
12606
12607
12608 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12609 PyObject *resultobj = 0;
12610 wxFont *arg1 = (wxFont *) 0 ;
12611 bool result;
12612 void *argp1 = 0 ;
12613 int res1 = 0 ;
12614 PyObject *swig_obj[1] ;
12615
12616 if (!args) SWIG_fail;
12617 swig_obj[0] = args;
12618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12619 if (!SWIG_IsOK(res1)) {
12620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
12621 }
12622 arg1 = reinterpret_cast< wxFont * >(argp1);
12623 {
12624 PyThreadState* __tstate = wxPyBeginAllowThreads();
12625 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
12626 wxPyEndAllowThreads(__tstate);
12627 if (PyErr_Occurred()) SWIG_fail;
12628 }
12629 {
12630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12631 }
12632 return resultobj;
12633 fail:
12634 return NULL;
12635 }
12636
12637
12638 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12639 PyObject *resultobj = 0;
12640 wxFontEncoding result;
12641
12642 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
12643 {
12644 if (!wxPyCheckForApp()) SWIG_fail;
12645 PyThreadState* __tstate = wxPyBeginAllowThreads();
12646 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
12647 wxPyEndAllowThreads(__tstate);
12648 if (PyErr_Occurred()) SWIG_fail;
12649 }
12650 resultobj = SWIG_From_int(static_cast< int >(result));
12651 return resultobj;
12652 fail:
12653 return NULL;
12654 }
12655
12656
12657 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12658 PyObject *resultobj = 0;
12659 wxFontEncoding arg1 ;
12660 int val1 ;
12661 int ecode1 = 0 ;
12662 PyObject * obj0 = 0 ;
12663 char * kwnames[] = {
12664 (char *) "encoding", NULL
12665 };
12666
12667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
12668 ecode1 = SWIG_AsVal_int(obj0, &val1);
12669 if (!SWIG_IsOK(ecode1)) {
12670 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12671 }
12672 arg1 = static_cast< wxFontEncoding >(val1);
12673 {
12674 if (!wxPyCheckForApp()) SWIG_fail;
12675 PyThreadState* __tstate = wxPyBeginAllowThreads();
12676 wxFont::SetDefaultEncoding(arg1);
12677 wxPyEndAllowThreads(__tstate);
12678 if (PyErr_Occurred()) SWIG_fail;
12679 }
12680 resultobj = SWIG_Py_Void();
12681 return resultobj;
12682 fail:
12683 return NULL;
12684 }
12685
12686
12687 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12688 PyObject *obj;
12689 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12690 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
12691 return SWIG_Py_Void();
12692 }
12693
12694 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12695 return SWIG_Python_InitShadowInstance(args);
12696 }
12697
12698 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12699 PyObject *resultobj = 0;
12700 wxPyFontEnumerator *result = 0 ;
12701
12702 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
12703 {
12704 if (!wxPyCheckForApp()) SWIG_fail;
12705 PyThreadState* __tstate = wxPyBeginAllowThreads();
12706 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
12707 wxPyEndAllowThreads(__tstate);
12708 if (PyErr_Occurred()) SWIG_fail;
12709 }
12710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
12711 return resultobj;
12712 fail:
12713 return NULL;
12714 }
12715
12716
12717 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12718 PyObject *resultobj = 0;
12719 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12720 void *argp1 = 0 ;
12721 int res1 = 0 ;
12722 PyObject *swig_obj[1] ;
12723
12724 if (!args) SWIG_fail;
12725 swig_obj[0] = args;
12726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
12727 if (!SWIG_IsOK(res1)) {
12728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12729 }
12730 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12731 {
12732 PyThreadState* __tstate = wxPyBeginAllowThreads();
12733 delete arg1;
12734
12735 wxPyEndAllowThreads(__tstate);
12736 if (PyErr_Occurred()) SWIG_fail;
12737 }
12738 resultobj = SWIG_Py_Void();
12739 return resultobj;
12740 fail:
12741 return NULL;
12742 }
12743
12744
12745 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12746 PyObject *resultobj = 0;
12747 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12748 PyObject *arg2 = (PyObject *) 0 ;
12749 PyObject *arg3 = (PyObject *) 0 ;
12750 bool arg4 ;
12751 void *argp1 = 0 ;
12752 int res1 = 0 ;
12753 bool val4 ;
12754 int ecode4 = 0 ;
12755 PyObject * obj0 = 0 ;
12756 PyObject * obj1 = 0 ;
12757 PyObject * obj2 = 0 ;
12758 PyObject * obj3 = 0 ;
12759 char * kwnames[] = {
12760 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
12761 };
12762
12763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12765 if (!SWIG_IsOK(res1)) {
12766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12767 }
12768 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12769 arg2 = obj1;
12770 arg3 = obj2;
12771 ecode4 = SWIG_AsVal_bool(obj3, &val4);
12772 if (!SWIG_IsOK(ecode4)) {
12773 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
12774 }
12775 arg4 = static_cast< bool >(val4);
12776 {
12777 PyThreadState* __tstate = wxPyBeginAllowThreads();
12778 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
12779 wxPyEndAllowThreads(__tstate);
12780 if (PyErr_Occurred()) SWIG_fail;
12781 }
12782 resultobj = SWIG_Py_Void();
12783 return resultobj;
12784 fail:
12785 return NULL;
12786 }
12787
12788
12789 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12790 PyObject *resultobj = 0;
12791 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12792 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
12793 bool arg3 = (bool) false ;
12794 bool result;
12795 void *argp1 = 0 ;
12796 int res1 = 0 ;
12797 int val2 ;
12798 int ecode2 = 0 ;
12799 bool val3 ;
12800 int ecode3 = 0 ;
12801 PyObject * obj0 = 0 ;
12802 PyObject * obj1 = 0 ;
12803 PyObject * obj2 = 0 ;
12804 char * kwnames[] = {
12805 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
12806 };
12807
12808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12810 if (!SWIG_IsOK(res1)) {
12811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12812 }
12813 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12814 if (obj1) {
12815 ecode2 = SWIG_AsVal_int(obj1, &val2);
12816 if (!SWIG_IsOK(ecode2)) {
12817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12818 }
12819 arg2 = static_cast< wxFontEncoding >(val2);
12820 }
12821 if (obj2) {
12822 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12823 if (!SWIG_IsOK(ecode3)) {
12824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
12825 }
12826 arg3 = static_cast< bool >(val3);
12827 }
12828 {
12829 PyThreadState* __tstate = wxPyBeginAllowThreads();
12830 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
12831 wxPyEndAllowThreads(__tstate);
12832 if (PyErr_Occurred()) SWIG_fail;
12833 }
12834 {
12835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12836 }
12837 return resultobj;
12838 fail:
12839 return NULL;
12840 }
12841
12842
12843 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12844 PyObject *resultobj = 0;
12845 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12846 wxString const &arg2_defvalue = wxPyEmptyString ;
12847 wxString *arg2 = (wxString *) &arg2_defvalue ;
12848 bool result;
12849 void *argp1 = 0 ;
12850 int res1 = 0 ;
12851 bool temp2 = false ;
12852 PyObject * obj0 = 0 ;
12853 PyObject * obj1 = 0 ;
12854 char * kwnames[] = {
12855 (char *) "self",(char *) "facename", NULL
12856 };
12857
12858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
12859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12860 if (!SWIG_IsOK(res1)) {
12861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12862 }
12863 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12864 if (obj1) {
12865 {
12866 arg2 = wxString_in_helper(obj1);
12867 if (arg2 == NULL) SWIG_fail;
12868 temp2 = true;
12869 }
12870 }
12871 {
12872 PyThreadState* __tstate = wxPyBeginAllowThreads();
12873 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
12874 wxPyEndAllowThreads(__tstate);
12875 if (PyErr_Occurred()) SWIG_fail;
12876 }
12877 {
12878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12879 }
12880 {
12881 if (temp2)
12882 delete arg2;
12883 }
12884 return resultobj;
12885 fail:
12886 {
12887 if (temp2)
12888 delete arg2;
12889 }
12890 return NULL;
12891 }
12892
12893
12894 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12895 PyObject *resultobj = 0;
12896 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12897 PyObject *result = 0 ;
12898 void *argp1 = 0 ;
12899 int res1 = 0 ;
12900 PyObject *swig_obj[1] ;
12901
12902 if (!args) SWIG_fail;
12903 swig_obj[0] = args;
12904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12905 if (!SWIG_IsOK(res1)) {
12906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12907 }
12908 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12909 {
12910 PyThreadState* __tstate = wxPyBeginAllowThreads();
12911 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
12912 wxPyEndAllowThreads(__tstate);
12913 if (PyErr_Occurred()) SWIG_fail;
12914 }
12915 resultobj = result;
12916 return resultobj;
12917 fail:
12918 return NULL;
12919 }
12920
12921
12922 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12923 PyObject *resultobj = 0;
12924 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12925 PyObject *result = 0 ;
12926 void *argp1 = 0 ;
12927 int res1 = 0 ;
12928 PyObject *swig_obj[1] ;
12929
12930 if (!args) SWIG_fail;
12931 swig_obj[0] = args;
12932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12933 if (!SWIG_IsOK(res1)) {
12934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12935 }
12936 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12937 {
12938 PyThreadState* __tstate = wxPyBeginAllowThreads();
12939 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
12940 wxPyEndAllowThreads(__tstate);
12941 if (PyErr_Occurred()) SWIG_fail;
12942 }
12943 resultobj = result;
12944 return resultobj;
12945 fail:
12946 return NULL;
12947 }
12948
12949
12950 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12951 PyObject *obj;
12952 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12953 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
12954 return SWIG_Py_Void();
12955 }
12956
12957 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12958 return SWIG_Python_InitShadowInstance(args);
12959 }
12960
12961 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12962 PyObject *resultobj = 0;
12963 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
12964 int arg2 ;
12965 void *argp1 = 0 ;
12966 int res1 = 0 ;
12967 int val2 ;
12968 int ecode2 = 0 ;
12969 PyObject *swig_obj[2] ;
12970
12971 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
12972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
12973 if (!SWIG_IsOK(res1)) {
12974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
12975 }
12976 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
12977 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12978 if (!SWIG_IsOK(ecode2)) {
12979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
12980 }
12981 arg2 = static_cast< int >(val2);
12982 if (arg1) (arg1)->Language = arg2;
12983
12984 resultobj = SWIG_Py_Void();
12985 return resultobj;
12986 fail:
12987 return NULL;
12988 }
12989
12990
12991 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12992 PyObject *resultobj = 0;
12993 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
12994 int result;
12995 void *argp1 = 0 ;
12996 int res1 = 0 ;
12997 PyObject *swig_obj[1] ;
12998
12999 if (!args) SWIG_fail;
13000 swig_obj[0] = args;
13001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13002 if (!SWIG_IsOK(res1)) {
13003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13004 }
13005 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13006 result = (int) ((arg1)->Language);
13007 resultobj = SWIG_From_int(static_cast< int >(result));
13008 return resultobj;
13009 fail:
13010 return NULL;
13011 }
13012
13013
13014 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13015 PyObject *resultobj = 0;
13016 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13017 wxString *arg2 = (wxString *) 0 ;
13018 void *argp1 = 0 ;
13019 int res1 = 0 ;
13020 bool temp2 = false ;
13021 PyObject *swig_obj[2] ;
13022
13023 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
13024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13025 if (!SWIG_IsOK(res1)) {
13026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13027 }
13028 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13029 {
13030 arg2 = wxString_in_helper(swig_obj[1]);
13031 if (arg2 == NULL) SWIG_fail;
13032 temp2 = true;
13033 }
13034 if (arg1) (arg1)->CanonicalName = *arg2;
13035
13036 resultobj = SWIG_Py_Void();
13037 {
13038 if (temp2)
13039 delete arg2;
13040 }
13041 return resultobj;
13042 fail:
13043 {
13044 if (temp2)
13045 delete arg2;
13046 }
13047 return NULL;
13048 }
13049
13050
13051 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13052 PyObject *resultobj = 0;
13053 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13054 wxString *result = 0 ;
13055 void *argp1 = 0 ;
13056 int res1 = 0 ;
13057 PyObject *swig_obj[1] ;
13058
13059 if (!args) SWIG_fail;
13060 swig_obj[0] = args;
13061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13062 if (!SWIG_IsOK(res1)) {
13063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13064 }
13065 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13066 result = (wxString *)& ((arg1)->CanonicalName);
13067 {
13068 #if wxUSE_UNICODE
13069 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13070 #else
13071 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13072 #endif
13073 }
13074 return resultobj;
13075 fail:
13076 return NULL;
13077 }
13078
13079
13080 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13081 PyObject *resultobj = 0;
13082 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13083 wxString *arg2 = (wxString *) 0 ;
13084 void *argp1 = 0 ;
13085 int res1 = 0 ;
13086 bool temp2 = false ;
13087 PyObject *swig_obj[2] ;
13088
13089 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
13090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13091 if (!SWIG_IsOK(res1)) {
13092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13093 }
13094 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13095 {
13096 arg2 = wxString_in_helper(swig_obj[1]);
13097 if (arg2 == NULL) SWIG_fail;
13098 temp2 = true;
13099 }
13100 if (arg1) (arg1)->Description = *arg2;
13101
13102 resultobj = SWIG_Py_Void();
13103 {
13104 if (temp2)
13105 delete arg2;
13106 }
13107 return resultobj;
13108 fail:
13109 {
13110 if (temp2)
13111 delete arg2;
13112 }
13113 return NULL;
13114 }
13115
13116
13117 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13118 PyObject *resultobj = 0;
13119 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13120 wxString *result = 0 ;
13121 void *argp1 = 0 ;
13122 int res1 = 0 ;
13123 PyObject *swig_obj[1] ;
13124
13125 if (!args) SWIG_fail;
13126 swig_obj[0] = args;
13127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13128 if (!SWIG_IsOK(res1)) {
13129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13130 }
13131 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13132 result = (wxString *)& ((arg1)->Description);
13133 {
13134 #if wxUSE_UNICODE
13135 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13136 #else
13137 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13138 #endif
13139 }
13140 return resultobj;
13141 fail:
13142 return NULL;
13143 }
13144
13145
13146 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13147 PyObject *obj;
13148 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13149 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
13150 return SWIG_Py_Void();
13151 }
13152
13153 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13154 PyObject *resultobj = 0;
13155 int arg1 = (int) -1 ;
13156 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13157 wxLocale *result = 0 ;
13158 int val1 ;
13159 int ecode1 = 0 ;
13160 int val2 ;
13161 int ecode2 = 0 ;
13162 PyObject * obj0 = 0 ;
13163 PyObject * obj1 = 0 ;
13164 char * kwnames[] = {
13165 (char *) "language",(char *) "flags", NULL
13166 };
13167
13168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
13169 if (obj0) {
13170 ecode1 = SWIG_AsVal_int(obj0, &val1);
13171 if (!SWIG_IsOK(ecode1)) {
13172 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13173 }
13174 arg1 = static_cast< int >(val1);
13175 }
13176 if (obj1) {
13177 ecode2 = SWIG_AsVal_int(obj1, &val2);
13178 if (!SWIG_IsOK(ecode2)) {
13179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13180 }
13181 arg2 = static_cast< int >(val2);
13182 }
13183 {
13184 PyThreadState* __tstate = wxPyBeginAllowThreads();
13185 result = (wxLocale *)new_wxLocale(arg1,arg2);
13186 wxPyEndAllowThreads(__tstate);
13187 if (PyErr_Occurred()) SWIG_fail;
13188 }
13189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
13190 return resultobj;
13191 fail:
13192 return NULL;
13193 }
13194
13195
13196 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13197 PyObject *resultobj = 0;
13198 wxLocale *arg1 = (wxLocale *) 0 ;
13199 void *argp1 = 0 ;
13200 int res1 = 0 ;
13201 PyObject *swig_obj[1] ;
13202
13203 if (!args) SWIG_fail;
13204 swig_obj[0] = args;
13205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
13206 if (!SWIG_IsOK(res1)) {
13207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13208 }
13209 arg1 = reinterpret_cast< wxLocale * >(argp1);
13210 {
13211 PyThreadState* __tstate = wxPyBeginAllowThreads();
13212 delete arg1;
13213
13214 wxPyEndAllowThreads(__tstate);
13215 if (PyErr_Occurred()) SWIG_fail;
13216 }
13217 resultobj = SWIG_Py_Void();
13218 return resultobj;
13219 fail:
13220 return NULL;
13221 }
13222
13223
13224 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13225 PyObject *resultobj = 0;
13226 wxLocale *arg1 = (wxLocale *) 0 ;
13227 wxString *arg2 = 0 ;
13228 wxString const &arg3_defvalue = wxPyEmptyString ;
13229 wxString *arg3 = (wxString *) &arg3_defvalue ;
13230 wxString const &arg4_defvalue = wxPyEmptyString ;
13231 wxString *arg4 = (wxString *) &arg4_defvalue ;
13232 bool arg5 = (bool) true ;
13233 bool arg6 = (bool) false ;
13234 bool result;
13235 void *argp1 = 0 ;
13236 int res1 = 0 ;
13237 bool temp2 = false ;
13238 bool temp3 = false ;
13239 bool temp4 = false ;
13240 bool val5 ;
13241 int ecode5 = 0 ;
13242 bool val6 ;
13243 int ecode6 = 0 ;
13244 PyObject * obj0 = 0 ;
13245 PyObject * obj1 = 0 ;
13246 PyObject * obj2 = 0 ;
13247 PyObject * obj3 = 0 ;
13248 PyObject * obj4 = 0 ;
13249 PyObject * obj5 = 0 ;
13250 char * kwnames[] = {
13251 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13252 };
13253
13254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13256 if (!SWIG_IsOK(res1)) {
13257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13258 }
13259 arg1 = reinterpret_cast< wxLocale * >(argp1);
13260 {
13261 arg2 = wxString_in_helper(obj1);
13262 if (arg2 == NULL) SWIG_fail;
13263 temp2 = true;
13264 }
13265 if (obj2) {
13266 {
13267 arg3 = wxString_in_helper(obj2);
13268 if (arg3 == NULL) SWIG_fail;
13269 temp3 = true;
13270 }
13271 }
13272 if (obj3) {
13273 {
13274 arg4 = wxString_in_helper(obj3);
13275 if (arg4 == NULL) SWIG_fail;
13276 temp4 = true;
13277 }
13278 }
13279 if (obj4) {
13280 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13281 if (!SWIG_IsOK(ecode5)) {
13282 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
13283 }
13284 arg5 = static_cast< bool >(val5);
13285 }
13286 if (obj5) {
13287 ecode6 = SWIG_AsVal_bool(obj5, &val6);
13288 if (!SWIG_IsOK(ecode6)) {
13289 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
13290 }
13291 arg6 = static_cast< bool >(val6);
13292 }
13293 {
13294 PyThreadState* __tstate = wxPyBeginAllowThreads();
13295 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
13296 wxPyEndAllowThreads(__tstate);
13297 if (PyErr_Occurred()) SWIG_fail;
13298 }
13299 {
13300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13301 }
13302 {
13303 if (temp2)
13304 delete arg2;
13305 }
13306 {
13307 if (temp3)
13308 delete arg3;
13309 }
13310 {
13311 if (temp4)
13312 delete arg4;
13313 }
13314 return resultobj;
13315 fail:
13316 {
13317 if (temp2)
13318 delete arg2;
13319 }
13320 {
13321 if (temp3)
13322 delete arg3;
13323 }
13324 {
13325 if (temp4)
13326 delete arg4;
13327 }
13328 return NULL;
13329 }
13330
13331
13332 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13333 PyObject *resultobj = 0;
13334 wxLocale *arg1 = (wxLocale *) 0 ;
13335 int arg2 = (int) wxLANGUAGE_DEFAULT ;
13336 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13337 bool result;
13338 void *argp1 = 0 ;
13339 int res1 = 0 ;
13340 int val2 ;
13341 int ecode2 = 0 ;
13342 int val3 ;
13343 int ecode3 = 0 ;
13344 PyObject * obj0 = 0 ;
13345 PyObject * obj1 = 0 ;
13346 PyObject * obj2 = 0 ;
13347 char * kwnames[] = {
13348 (char *) "self",(char *) "language",(char *) "flags", NULL
13349 };
13350
13351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13353 if (!SWIG_IsOK(res1)) {
13354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
13355 }
13356 arg1 = reinterpret_cast< wxLocale * >(argp1);
13357 if (obj1) {
13358 ecode2 = SWIG_AsVal_int(obj1, &val2);
13359 if (!SWIG_IsOK(ecode2)) {
13360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
13361 }
13362 arg2 = static_cast< int >(val2);
13363 }
13364 if (obj2) {
13365 ecode3 = SWIG_AsVal_int(obj2, &val3);
13366 if (!SWIG_IsOK(ecode3)) {
13367 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
13368 }
13369 arg3 = static_cast< int >(val3);
13370 }
13371 {
13372 PyThreadState* __tstate = wxPyBeginAllowThreads();
13373 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
13374 wxPyEndAllowThreads(__tstate);
13375 if (PyErr_Occurred()) SWIG_fail;
13376 }
13377 {
13378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13379 }
13380 return resultobj;
13381 fail:
13382 return NULL;
13383 }
13384
13385
13386 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13387 PyObject *resultobj = 0;
13388 int result;
13389
13390 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
13391 {
13392 PyThreadState* __tstate = wxPyBeginAllowThreads();
13393 result = (int)wxLocale::GetSystemLanguage();
13394 wxPyEndAllowThreads(__tstate);
13395 if (PyErr_Occurred()) SWIG_fail;
13396 }
13397 resultobj = SWIG_From_int(static_cast< int >(result));
13398 return resultobj;
13399 fail:
13400 return NULL;
13401 }
13402
13403
13404 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13405 PyObject *resultobj = 0;
13406 wxFontEncoding result;
13407
13408 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
13409 {
13410 PyThreadState* __tstate = wxPyBeginAllowThreads();
13411 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
13412 wxPyEndAllowThreads(__tstate);
13413 if (PyErr_Occurred()) SWIG_fail;
13414 }
13415 resultobj = SWIG_From_int(static_cast< int >(result));
13416 return resultobj;
13417 fail:
13418 return NULL;
13419 }
13420
13421
13422 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13423 PyObject *resultobj = 0;
13424 wxString result;
13425
13426 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
13427 {
13428 PyThreadState* __tstate = wxPyBeginAllowThreads();
13429 result = wxLocale::GetSystemEncodingName();
13430 wxPyEndAllowThreads(__tstate);
13431 if (PyErr_Occurred()) SWIG_fail;
13432 }
13433 {
13434 #if wxUSE_UNICODE
13435 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13436 #else
13437 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13438 #endif
13439 }
13440 return resultobj;
13441 fail:
13442 return NULL;
13443 }
13444
13445
13446 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13447 PyObject *resultobj = 0;
13448 wxLocale *arg1 = (wxLocale *) 0 ;
13449 bool result;
13450 void *argp1 = 0 ;
13451 int res1 = 0 ;
13452 PyObject *swig_obj[1] ;
13453
13454 if (!args) SWIG_fail;
13455 swig_obj[0] = args;
13456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13457 if (!SWIG_IsOK(res1)) {
13458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
13459 }
13460 arg1 = reinterpret_cast< wxLocale * >(argp1);
13461 {
13462 PyThreadState* __tstate = wxPyBeginAllowThreads();
13463 result = (bool)((wxLocale const *)arg1)->IsOk();
13464 wxPyEndAllowThreads(__tstate);
13465 if (PyErr_Occurred()) SWIG_fail;
13466 }
13467 {
13468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13469 }
13470 return resultobj;
13471 fail:
13472 return NULL;
13473 }
13474
13475
13476 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13477 PyObject *resultobj = 0;
13478 wxLocale *arg1 = (wxLocale *) 0 ;
13479 wxString result;
13480 void *argp1 = 0 ;
13481 int res1 = 0 ;
13482 PyObject *swig_obj[1] ;
13483
13484 if (!args) SWIG_fail;
13485 swig_obj[0] = args;
13486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13487 if (!SWIG_IsOK(res1)) {
13488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
13489 }
13490 arg1 = reinterpret_cast< wxLocale * >(argp1);
13491 {
13492 PyThreadState* __tstate = wxPyBeginAllowThreads();
13493 result = ((wxLocale const *)arg1)->GetLocale();
13494 wxPyEndAllowThreads(__tstate);
13495 if (PyErr_Occurred()) SWIG_fail;
13496 }
13497 {
13498 #if wxUSE_UNICODE
13499 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13500 #else
13501 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13502 #endif
13503 }
13504 return resultobj;
13505 fail:
13506 return NULL;
13507 }
13508
13509
13510 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13511 PyObject *resultobj = 0;
13512 wxLocale *arg1 = (wxLocale *) 0 ;
13513 int result;
13514 void *argp1 = 0 ;
13515 int res1 = 0 ;
13516 PyObject *swig_obj[1] ;
13517
13518 if (!args) SWIG_fail;
13519 swig_obj[0] = args;
13520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13521 if (!SWIG_IsOK(res1)) {
13522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
13523 }
13524 arg1 = reinterpret_cast< wxLocale * >(argp1);
13525 {
13526 PyThreadState* __tstate = wxPyBeginAllowThreads();
13527 result = (int)((wxLocale const *)arg1)->GetLanguage();
13528 wxPyEndAllowThreads(__tstate);
13529 if (PyErr_Occurred()) SWIG_fail;
13530 }
13531 resultobj = SWIG_From_int(static_cast< int >(result));
13532 return resultobj;
13533 fail:
13534 return NULL;
13535 }
13536
13537
13538 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13539 PyObject *resultobj = 0;
13540 wxLocale *arg1 = (wxLocale *) 0 ;
13541 wxString result;
13542 void *argp1 = 0 ;
13543 int res1 = 0 ;
13544 PyObject *swig_obj[1] ;
13545
13546 if (!args) SWIG_fail;
13547 swig_obj[0] = args;
13548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13549 if (!SWIG_IsOK(res1)) {
13550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13551 }
13552 arg1 = reinterpret_cast< wxLocale * >(argp1);
13553 {
13554 PyThreadState* __tstate = wxPyBeginAllowThreads();
13555 result = ((wxLocale const *)arg1)->GetSysName();
13556 wxPyEndAllowThreads(__tstate);
13557 if (PyErr_Occurred()) SWIG_fail;
13558 }
13559 {
13560 #if wxUSE_UNICODE
13561 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13562 #else
13563 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13564 #endif
13565 }
13566 return resultobj;
13567 fail:
13568 return NULL;
13569 }
13570
13571
13572 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13573 PyObject *resultobj = 0;
13574 wxLocale *arg1 = (wxLocale *) 0 ;
13575 wxString result;
13576 void *argp1 = 0 ;
13577 int res1 = 0 ;
13578 PyObject *swig_obj[1] ;
13579
13580 if (!args) SWIG_fail;
13581 swig_obj[0] = args;
13582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13583 if (!SWIG_IsOK(res1)) {
13584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13585 }
13586 arg1 = reinterpret_cast< wxLocale * >(argp1);
13587 {
13588 PyThreadState* __tstate = wxPyBeginAllowThreads();
13589 result = ((wxLocale const *)arg1)->GetCanonicalName();
13590 wxPyEndAllowThreads(__tstate);
13591 if (PyErr_Occurred()) SWIG_fail;
13592 }
13593 {
13594 #if wxUSE_UNICODE
13595 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13596 #else
13597 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13598 #endif
13599 }
13600 return resultobj;
13601 fail:
13602 return NULL;
13603 }
13604
13605
13606 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13607 PyObject *resultobj = 0;
13608 wxString *arg1 = 0 ;
13609 bool temp1 = false ;
13610 PyObject * obj0 = 0 ;
13611 char * kwnames[] = {
13612 (char *) "prefix", NULL
13613 };
13614
13615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
13616 {
13617 arg1 = wxString_in_helper(obj0);
13618 if (arg1 == NULL) SWIG_fail;
13619 temp1 = true;
13620 }
13621 {
13622 PyThreadState* __tstate = wxPyBeginAllowThreads();
13623 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
13624 wxPyEndAllowThreads(__tstate);
13625 if (PyErr_Occurred()) SWIG_fail;
13626 }
13627 resultobj = SWIG_Py_Void();
13628 {
13629 if (temp1)
13630 delete arg1;
13631 }
13632 return resultobj;
13633 fail:
13634 {
13635 if (temp1)
13636 delete arg1;
13637 }
13638 return NULL;
13639 }
13640
13641
13642 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13643 PyObject *resultobj = 0;
13644 wxLocale *arg1 = (wxLocale *) 0 ;
13645 wxString *arg2 = 0 ;
13646 bool result;
13647 void *argp1 = 0 ;
13648 int res1 = 0 ;
13649 bool temp2 = false ;
13650 PyObject * obj0 = 0 ;
13651 PyObject * obj1 = 0 ;
13652 char * kwnames[] = {
13653 (char *) "self",(char *) "szDomain", NULL
13654 };
13655
13656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
13657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13658 if (!SWIG_IsOK(res1)) {
13659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
13660 }
13661 arg1 = reinterpret_cast< wxLocale * >(argp1);
13662 {
13663 arg2 = wxString_in_helper(obj1);
13664 if (arg2 == NULL) SWIG_fail;
13665 temp2 = true;
13666 }
13667 {
13668 PyThreadState* __tstate = wxPyBeginAllowThreads();
13669 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
13670 wxPyEndAllowThreads(__tstate);
13671 if (PyErr_Occurred()) SWIG_fail;
13672 }
13673 {
13674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13675 }
13676 {
13677 if (temp2)
13678 delete arg2;
13679 }
13680 return resultobj;
13681 fail:
13682 {
13683 if (temp2)
13684 delete arg2;
13685 }
13686 return NULL;
13687 }
13688
13689
13690 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13691 PyObject *resultobj = 0;
13692 wxLocale *arg1 = (wxLocale *) 0 ;
13693 wxString *arg2 = 0 ;
13694 bool result;
13695 void *argp1 = 0 ;
13696 int res1 = 0 ;
13697 bool temp2 = false ;
13698 PyObject * obj0 = 0 ;
13699 PyObject * obj1 = 0 ;
13700 char * kwnames[] = {
13701 (char *) "self",(char *) "szDomain", NULL
13702 };
13703
13704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
13705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13706 if (!SWIG_IsOK(res1)) {
13707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
13708 }
13709 arg1 = reinterpret_cast< wxLocale * >(argp1);
13710 {
13711 arg2 = wxString_in_helper(obj1);
13712 if (arg2 == NULL) SWIG_fail;
13713 temp2 = true;
13714 }
13715 {
13716 PyThreadState* __tstate = wxPyBeginAllowThreads();
13717 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
13718 wxPyEndAllowThreads(__tstate);
13719 if (PyErr_Occurred()) SWIG_fail;
13720 }
13721 {
13722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13723 }
13724 {
13725 if (temp2)
13726 delete arg2;
13727 }
13728 return resultobj;
13729 fail:
13730 {
13731 if (temp2)
13732 delete arg2;
13733 }
13734 return NULL;
13735 }
13736
13737
13738 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13739 PyObject *resultobj = 0;
13740 int arg1 ;
13741 wxLanguageInfo *result = 0 ;
13742 int val1 ;
13743 int ecode1 = 0 ;
13744 PyObject * obj0 = 0 ;
13745 char * kwnames[] = {
13746 (char *) "lang", NULL
13747 };
13748
13749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
13750 ecode1 = SWIG_AsVal_int(obj0, &val1);
13751 if (!SWIG_IsOK(ecode1)) {
13752 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
13753 }
13754 arg1 = static_cast< int >(val1);
13755 {
13756 PyThreadState* __tstate = wxPyBeginAllowThreads();
13757 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
13758 wxPyEndAllowThreads(__tstate);
13759 if (PyErr_Occurred()) SWIG_fail;
13760 }
13761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13762 return resultobj;
13763 fail:
13764 return NULL;
13765 }
13766
13767
13768 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13769 PyObject *resultobj = 0;
13770 int arg1 ;
13771 wxString result;
13772 int val1 ;
13773 int ecode1 = 0 ;
13774 PyObject * obj0 = 0 ;
13775 char * kwnames[] = {
13776 (char *) "lang", NULL
13777 };
13778
13779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
13780 ecode1 = SWIG_AsVal_int(obj0, &val1);
13781 if (!SWIG_IsOK(ecode1)) {
13782 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
13783 }
13784 arg1 = static_cast< int >(val1);
13785 {
13786 PyThreadState* __tstate = wxPyBeginAllowThreads();
13787 result = wxLocale::GetLanguageName(arg1);
13788 wxPyEndAllowThreads(__tstate);
13789 if (PyErr_Occurred()) SWIG_fail;
13790 }
13791 {
13792 #if wxUSE_UNICODE
13793 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13794 #else
13795 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13796 #endif
13797 }
13798 return resultobj;
13799 fail:
13800 return NULL;
13801 }
13802
13803
13804 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13805 PyObject *resultobj = 0;
13806 wxString *arg1 = 0 ;
13807 wxLanguageInfo *result = 0 ;
13808 bool temp1 = false ;
13809 PyObject * obj0 = 0 ;
13810 char * kwnames[] = {
13811 (char *) "locale", NULL
13812 };
13813
13814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
13815 {
13816 arg1 = wxString_in_helper(obj0);
13817 if (arg1 == NULL) SWIG_fail;
13818 temp1 = true;
13819 }
13820 {
13821 PyThreadState* __tstate = wxPyBeginAllowThreads();
13822 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
13823 wxPyEndAllowThreads(__tstate);
13824 if (PyErr_Occurred()) SWIG_fail;
13825 }
13826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13827 {
13828 if (temp1)
13829 delete arg1;
13830 }
13831 return resultobj;
13832 fail:
13833 {
13834 if (temp1)
13835 delete arg1;
13836 }
13837 return NULL;
13838 }
13839
13840
13841 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13842 PyObject *resultobj = 0;
13843 wxLanguageInfo *arg1 = 0 ;
13844 void *argp1 = 0 ;
13845 int res1 = 0 ;
13846 PyObject * obj0 = 0 ;
13847 char * kwnames[] = {
13848 (char *) "info", NULL
13849 };
13850
13851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
13852 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
13853 if (!SWIG_IsOK(res1)) {
13854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13855 }
13856 if (!argp1) {
13857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13858 }
13859 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13860 {
13861 PyThreadState* __tstate = wxPyBeginAllowThreads();
13862 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
13863 wxPyEndAllowThreads(__tstate);
13864 if (PyErr_Occurred()) SWIG_fail;
13865 }
13866 resultobj = SWIG_Py_Void();
13867 return resultobj;
13868 fail:
13869 return NULL;
13870 }
13871
13872
13873 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13874 PyObject *resultobj = 0;
13875 wxLocale *arg1 = (wxLocale *) 0 ;
13876 wxString *arg2 = 0 ;
13877 wxString const &arg3_defvalue = wxPyEmptyString ;
13878 wxString *arg3 = (wxString *) &arg3_defvalue ;
13879 wxString result;
13880 void *argp1 = 0 ;
13881 int res1 = 0 ;
13882 bool temp2 = false ;
13883 bool temp3 = false ;
13884 PyObject * obj0 = 0 ;
13885 PyObject * obj1 = 0 ;
13886 PyObject * obj2 = 0 ;
13887 char * kwnames[] = {
13888 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
13889 };
13890
13891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13893 if (!SWIG_IsOK(res1)) {
13894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
13895 }
13896 arg1 = reinterpret_cast< wxLocale * >(argp1);
13897 {
13898 arg2 = wxString_in_helper(obj1);
13899 if (arg2 == NULL) SWIG_fail;
13900 temp2 = true;
13901 }
13902 if (obj2) {
13903 {
13904 arg3 = wxString_in_helper(obj2);
13905 if (arg3 == NULL) SWIG_fail;
13906 temp3 = true;
13907 }
13908 }
13909 {
13910 PyThreadState* __tstate = wxPyBeginAllowThreads();
13911 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
13912 wxPyEndAllowThreads(__tstate);
13913 if (PyErr_Occurred()) SWIG_fail;
13914 }
13915 {
13916 #if wxUSE_UNICODE
13917 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13918 #else
13919 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13920 #endif
13921 }
13922 {
13923 if (temp2)
13924 delete arg2;
13925 }
13926 {
13927 if (temp3)
13928 delete arg3;
13929 }
13930 return resultobj;
13931 fail:
13932 {
13933 if (temp2)
13934 delete arg2;
13935 }
13936 {
13937 if (temp3)
13938 delete arg3;
13939 }
13940 return NULL;
13941 }
13942
13943
13944 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13945 PyObject *resultobj = 0;
13946 wxLocale *arg1 = (wxLocale *) 0 ;
13947 wxString *result = 0 ;
13948 void *argp1 = 0 ;
13949 int res1 = 0 ;
13950 PyObject *swig_obj[1] ;
13951
13952 if (!args) SWIG_fail;
13953 swig_obj[0] = args;
13954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13955 if (!SWIG_IsOK(res1)) {
13956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13957 }
13958 arg1 = reinterpret_cast< wxLocale * >(argp1);
13959 {
13960 PyThreadState* __tstate = wxPyBeginAllowThreads();
13961 {
13962 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
13963 result = (wxString *) &_result_ref;
13964 }
13965 wxPyEndAllowThreads(__tstate);
13966 if (PyErr_Occurred()) SWIG_fail;
13967 }
13968 {
13969 #if wxUSE_UNICODE
13970 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13971 #else
13972 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13973 #endif
13974 }
13975 return resultobj;
13976 fail:
13977 return NULL;
13978 }
13979
13980
13981 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13982 PyObject *obj;
13983 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13984 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
13985 return SWIG_Py_Void();
13986 }
13987
13988 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13989 return SWIG_Python_InitShadowInstance(args);
13990 }
13991
13992 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13993 PyObject *resultobj = 0;
13994 wxLocale *result = 0 ;
13995
13996 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
13997 {
13998 PyThreadState* __tstate = wxPyBeginAllowThreads();
13999 result = (wxLocale *)wxGetLocale();
14000 wxPyEndAllowThreads(__tstate);
14001 if (PyErr_Occurred()) SWIG_fail;
14002 }
14003 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
14004 return resultobj;
14005 fail:
14006 return NULL;
14007 }
14008
14009
14010 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14011 PyObject *resultobj = 0;
14012 wxString *arg1 = 0 ;
14013 wxString result;
14014 bool temp1 = false ;
14015
14016 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14017 {
14018 arg1 = wxString_in_helper(swig_obj[0]);
14019 if (arg1 == NULL) SWIG_fail;
14020 temp1 = true;
14021 }
14022 {
14023 PyThreadState* __tstate = wxPyBeginAllowThreads();
14024 result = wxGetTranslation((wxString const &)*arg1);
14025 wxPyEndAllowThreads(__tstate);
14026 if (PyErr_Occurred()) SWIG_fail;
14027 }
14028 {
14029 #if wxUSE_UNICODE
14030 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14031 #else
14032 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14033 #endif
14034 }
14035 {
14036 if (temp1)
14037 delete arg1;
14038 }
14039 return resultobj;
14040 fail:
14041 {
14042 if (temp1)
14043 delete arg1;
14044 }
14045 return NULL;
14046 }
14047
14048
14049 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14050 PyObject *resultobj = 0;
14051 wxString *arg1 = 0 ;
14052 wxString *arg2 = 0 ;
14053 size_t arg3 ;
14054 wxString result;
14055 bool temp1 = false ;
14056 bool temp2 = false ;
14057 size_t val3 ;
14058 int ecode3 = 0 ;
14059
14060 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14061 {
14062 arg1 = wxString_in_helper(swig_obj[0]);
14063 if (arg1 == NULL) SWIG_fail;
14064 temp1 = true;
14065 }
14066 {
14067 arg2 = wxString_in_helper(swig_obj[1]);
14068 if (arg2 == NULL) SWIG_fail;
14069 temp2 = true;
14070 }
14071 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
14072 if (!SWIG_IsOK(ecode3)) {
14073 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14074 }
14075 arg3 = static_cast< size_t >(val3);
14076 {
14077 PyThreadState* __tstate = wxPyBeginAllowThreads();
14078 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
14079 wxPyEndAllowThreads(__tstate);
14080 if (PyErr_Occurred()) SWIG_fail;
14081 }
14082 {
14083 #if wxUSE_UNICODE
14084 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14085 #else
14086 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14087 #endif
14088 }
14089 {
14090 if (temp1)
14091 delete arg1;
14092 }
14093 {
14094 if (temp2)
14095 delete arg2;
14096 }
14097 return resultobj;
14098 fail:
14099 {
14100 if (temp1)
14101 delete arg1;
14102 }
14103 {
14104 if (temp2)
14105 delete arg2;
14106 }
14107 return NULL;
14108 }
14109
14110
14111 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
14112 int argc;
14113 PyObject *argv[4];
14114
14115 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail;
14116 --argc;
14117 if (argc == 1) {
14118 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
14119 }
14120 if (argc == 3) {
14121 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
14122 }
14123
14124 fail:
14125 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
14126 return NULL;
14127 }
14128
14129
14130 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14131 PyObject *resultobj = 0;
14132 wxEncodingConverter *result = 0 ;
14133
14134 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
14135 {
14136 PyThreadState* __tstate = wxPyBeginAllowThreads();
14137 result = (wxEncodingConverter *)new wxEncodingConverter();
14138 wxPyEndAllowThreads(__tstate);
14139 if (PyErr_Occurred()) SWIG_fail;
14140 }
14141 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
14142 return resultobj;
14143 fail:
14144 return NULL;
14145 }
14146
14147
14148 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14149 PyObject *resultobj = 0;
14150 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14151 void *argp1 = 0 ;
14152 int res1 = 0 ;
14153 PyObject *swig_obj[1] ;
14154
14155 if (!args) SWIG_fail;
14156 swig_obj[0] = args;
14157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
14158 if (!SWIG_IsOK(res1)) {
14159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14160 }
14161 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14162 {
14163 PyThreadState* __tstate = wxPyBeginAllowThreads();
14164 delete arg1;
14165
14166 wxPyEndAllowThreads(__tstate);
14167 if (PyErr_Occurred()) SWIG_fail;
14168 }
14169 resultobj = SWIG_Py_Void();
14170 return resultobj;
14171 fail:
14172 return NULL;
14173 }
14174
14175
14176 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14177 PyObject *resultobj = 0;
14178 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14179 wxFontEncoding arg2 ;
14180 wxFontEncoding arg3 ;
14181 int arg4 = (int) wxCONVERT_STRICT ;
14182 bool result;
14183 void *argp1 = 0 ;
14184 int res1 = 0 ;
14185 int val2 ;
14186 int ecode2 = 0 ;
14187 int val3 ;
14188 int ecode3 = 0 ;
14189 int val4 ;
14190 int ecode4 = 0 ;
14191 PyObject * obj0 = 0 ;
14192 PyObject * obj1 = 0 ;
14193 PyObject * obj2 = 0 ;
14194 PyObject * obj3 = 0 ;
14195 char * kwnames[] = {
14196 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14197 };
14198
14199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14201 if (!SWIG_IsOK(res1)) {
14202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14203 }
14204 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14205 ecode2 = SWIG_AsVal_int(obj1, &val2);
14206 if (!SWIG_IsOK(ecode2)) {
14207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14208 }
14209 arg2 = static_cast< wxFontEncoding >(val2);
14210 ecode3 = SWIG_AsVal_int(obj2, &val3);
14211 if (!SWIG_IsOK(ecode3)) {
14212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14213 }
14214 arg3 = static_cast< wxFontEncoding >(val3);
14215 if (obj3) {
14216 ecode4 = SWIG_AsVal_int(obj3, &val4);
14217 if (!SWIG_IsOK(ecode4)) {
14218 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14219 }
14220 arg4 = static_cast< int >(val4);
14221 }
14222 {
14223 PyThreadState* __tstate = wxPyBeginAllowThreads();
14224 result = (bool)(arg1)->Init(arg2,arg3,arg4);
14225 wxPyEndAllowThreads(__tstate);
14226 if (PyErr_Occurred()) SWIG_fail;
14227 }
14228 {
14229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14230 }
14231 return resultobj;
14232 fail:
14233 return NULL;
14234 }
14235
14236
14237 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14238 PyObject *resultobj = 0;
14239 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14240 wxString *arg2 = 0 ;
14241 wxString result;
14242 void *argp1 = 0 ;
14243 int res1 = 0 ;
14244 bool temp2 = false ;
14245 PyObject * obj0 = 0 ;
14246 PyObject * obj1 = 0 ;
14247 char * kwnames[] = {
14248 (char *) "self",(char *) "input", NULL
14249 };
14250
14251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
14252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14253 if (!SWIG_IsOK(res1)) {
14254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14255 }
14256 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14257 {
14258 arg2 = wxString_in_helper(obj1);
14259 if (arg2 == NULL) SWIG_fail;
14260 temp2 = true;
14261 }
14262 {
14263 PyThreadState* __tstate = wxPyBeginAllowThreads();
14264 result = (arg1)->Convert((wxString const &)*arg2);
14265 wxPyEndAllowThreads(__tstate);
14266 if (PyErr_Occurred()) SWIG_fail;
14267 }
14268 {
14269 #if wxUSE_UNICODE
14270 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14271 #else
14272 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14273 #endif
14274 }
14275 {
14276 if (temp2)
14277 delete arg2;
14278 }
14279 return resultobj;
14280 fail:
14281 {
14282 if (temp2)
14283 delete arg2;
14284 }
14285 return NULL;
14286 }
14287
14288
14289 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14290 PyObject *resultobj = 0;
14291 wxFontEncoding arg1 ;
14292 int arg2 = (int) wxPLATFORM_CURRENT ;
14293 wxFontEncodingArray result;
14294 int val1 ;
14295 int ecode1 = 0 ;
14296 int val2 ;
14297 int ecode2 = 0 ;
14298 PyObject * obj0 = 0 ;
14299 PyObject * obj1 = 0 ;
14300 char * kwnames[] = {
14301 (char *) "enc",(char *) "platform", NULL
14302 };
14303
14304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
14305 ecode1 = SWIG_AsVal_int(obj0, &val1);
14306 if (!SWIG_IsOK(ecode1)) {
14307 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14308 }
14309 arg1 = static_cast< wxFontEncoding >(val1);
14310 if (obj1) {
14311 ecode2 = SWIG_AsVal_int(obj1, &val2);
14312 if (!SWIG_IsOK(ecode2)) {
14313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
14314 }
14315 arg2 = static_cast< int >(val2);
14316 }
14317 {
14318 PyThreadState* __tstate = wxPyBeginAllowThreads();
14319 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
14320 wxPyEndAllowThreads(__tstate);
14321 if (PyErr_Occurred()) SWIG_fail;
14322 }
14323 {
14324 resultobj = PyList_New(0);
14325 for (size_t i=0; i < (&result)->GetCount(); i++) {
14326 PyObject* number = PyInt_FromLong((&result)->Item(i));
14327 PyList_Append(resultobj, number);
14328 Py_DECREF(number);
14329 }
14330 }
14331 return resultobj;
14332 fail:
14333 return NULL;
14334 }
14335
14336
14337 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14338 PyObject *resultobj = 0;
14339 wxFontEncoding arg1 ;
14340 wxFontEncodingArray result;
14341 int val1 ;
14342 int ecode1 = 0 ;
14343 PyObject * obj0 = 0 ;
14344 char * kwnames[] = {
14345 (char *) "enc", NULL
14346 };
14347
14348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
14349 ecode1 = SWIG_AsVal_int(obj0, &val1);
14350 if (!SWIG_IsOK(ecode1)) {
14351 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14352 }
14353 arg1 = static_cast< wxFontEncoding >(val1);
14354 {
14355 PyThreadState* __tstate = wxPyBeginAllowThreads();
14356 result = wxEncodingConverter::GetAllEquivalents(arg1);
14357 wxPyEndAllowThreads(__tstate);
14358 if (PyErr_Occurred()) SWIG_fail;
14359 }
14360 {
14361 resultobj = PyList_New(0);
14362 for (size_t i=0; i < (&result)->GetCount(); i++) {
14363 PyObject* number = PyInt_FromLong((&result)->Item(i));
14364 PyList_Append(resultobj, number);
14365 Py_DECREF(number);
14366 }
14367 }
14368 return resultobj;
14369 fail:
14370 return NULL;
14371 }
14372
14373
14374 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14375 PyObject *resultobj = 0;
14376 wxFontEncoding arg1 ;
14377 wxFontEncoding arg2 ;
14378 bool result;
14379 int val1 ;
14380 int ecode1 = 0 ;
14381 int val2 ;
14382 int ecode2 = 0 ;
14383 PyObject * obj0 = 0 ;
14384 PyObject * obj1 = 0 ;
14385 char * kwnames[] = {
14386 (char *) "encIn",(char *) "encOut", NULL
14387 };
14388
14389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
14390 ecode1 = SWIG_AsVal_int(obj0, &val1);
14391 if (!SWIG_IsOK(ecode1)) {
14392 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14393 }
14394 arg1 = static_cast< wxFontEncoding >(val1);
14395 ecode2 = SWIG_AsVal_int(obj1, &val2);
14396 if (!SWIG_IsOK(ecode2)) {
14397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14398 }
14399 arg2 = static_cast< wxFontEncoding >(val2);
14400 {
14401 PyThreadState* __tstate = wxPyBeginAllowThreads();
14402 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
14403 wxPyEndAllowThreads(__tstate);
14404 if (PyErr_Occurred()) SWIG_fail;
14405 }
14406 {
14407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14408 }
14409 return resultobj;
14410 fail:
14411 return NULL;
14412 }
14413
14414
14415 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14416 PyObject *obj;
14417 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14418 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
14419 return SWIG_Py_Void();
14420 }
14421
14422 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14423 return SWIG_Python_InitShadowInstance(args);
14424 }
14425
14426 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14427 PyObject *resultobj = 0;
14428 wxDC *arg1 = (wxDC *) 0 ;
14429 void *argp1 = 0 ;
14430 int res1 = 0 ;
14431 PyObject *swig_obj[1] ;
14432
14433 if (!args) SWIG_fail;
14434 swig_obj[0] = args;
14435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
14436 if (!SWIG_IsOK(res1)) {
14437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
14438 }
14439 arg1 = reinterpret_cast< wxDC * >(argp1);
14440 {
14441 PyThreadState* __tstate = wxPyBeginAllowThreads();
14442 delete arg1;
14443
14444 wxPyEndAllowThreads(__tstate);
14445 if (PyErr_Occurred()) SWIG_fail;
14446 }
14447 resultobj = SWIG_Py_Void();
14448 return resultobj;
14449 fail:
14450 return NULL;
14451 }
14452
14453
14454 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14455 PyObject *resultobj = 0;
14456 wxDC *arg1 = (wxDC *) 0 ;
14457 int arg2 ;
14458 int arg3 ;
14459 wxColour *arg4 = 0 ;
14460 int arg5 = (int) wxFLOOD_SURFACE ;
14461 bool result;
14462 void *argp1 = 0 ;
14463 int res1 = 0 ;
14464 int val2 ;
14465 int ecode2 = 0 ;
14466 int val3 ;
14467 int ecode3 = 0 ;
14468 wxColour temp4 ;
14469 int val5 ;
14470 int ecode5 = 0 ;
14471 PyObject * obj0 = 0 ;
14472 PyObject * obj1 = 0 ;
14473 PyObject * obj2 = 0 ;
14474 PyObject * obj3 = 0 ;
14475 PyObject * obj4 = 0 ;
14476 char * kwnames[] = {
14477 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
14478 };
14479
14480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14482 if (!SWIG_IsOK(res1)) {
14483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
14484 }
14485 arg1 = reinterpret_cast< wxDC * >(argp1);
14486 ecode2 = SWIG_AsVal_int(obj1, &val2);
14487 if (!SWIG_IsOK(ecode2)) {
14488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
14489 }
14490 arg2 = static_cast< int >(val2);
14491 ecode3 = SWIG_AsVal_int(obj2, &val3);
14492 if (!SWIG_IsOK(ecode3)) {
14493 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
14494 }
14495 arg3 = static_cast< int >(val3);
14496 {
14497 arg4 = &temp4;
14498 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14499 }
14500 if (obj4) {
14501 ecode5 = SWIG_AsVal_int(obj4, &val5);
14502 if (!SWIG_IsOK(ecode5)) {
14503 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
14504 }
14505 arg5 = static_cast< int >(val5);
14506 }
14507 {
14508 PyThreadState* __tstate = wxPyBeginAllowThreads();
14509 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
14510 wxPyEndAllowThreads(__tstate);
14511 if (PyErr_Occurred()) SWIG_fail;
14512 }
14513 {
14514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14515 }
14516 return resultobj;
14517 fail:
14518 return NULL;
14519 }
14520
14521
14522 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14523 PyObject *resultobj = 0;
14524 wxDC *arg1 = (wxDC *) 0 ;
14525 wxPoint *arg2 = 0 ;
14526 wxColour *arg3 = 0 ;
14527 int arg4 = (int) wxFLOOD_SURFACE ;
14528 bool result;
14529 void *argp1 = 0 ;
14530 int res1 = 0 ;
14531 wxPoint temp2 ;
14532 wxColour temp3 ;
14533 int val4 ;
14534 int ecode4 = 0 ;
14535 PyObject * obj0 = 0 ;
14536 PyObject * obj1 = 0 ;
14537 PyObject * obj2 = 0 ;
14538 PyObject * obj3 = 0 ;
14539 char * kwnames[] = {
14540 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
14541 };
14542
14543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14545 if (!SWIG_IsOK(res1)) {
14546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14547 }
14548 arg1 = reinterpret_cast< wxDC * >(argp1);
14549 {
14550 arg2 = &temp2;
14551 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14552 }
14553 {
14554 arg3 = &temp3;
14555 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14556 }
14557 if (obj3) {
14558 ecode4 = SWIG_AsVal_int(obj3, &val4);
14559 if (!SWIG_IsOK(ecode4)) {
14560 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
14561 }
14562 arg4 = static_cast< int >(val4);
14563 }
14564 {
14565 PyThreadState* __tstate = wxPyBeginAllowThreads();
14566 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
14567 wxPyEndAllowThreads(__tstate);
14568 if (PyErr_Occurred()) SWIG_fail;
14569 }
14570 {
14571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14572 }
14573 return resultobj;
14574 fail:
14575 return NULL;
14576 }
14577
14578
14579 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14580 PyObject *resultobj = 0;
14581 wxDC *arg1 = (wxDC *) 0 ;
14582 wxRect *arg2 = 0 ;
14583 wxColour *arg3 = 0 ;
14584 wxColour *arg4 = 0 ;
14585 wxPoint *arg5 = 0 ;
14586 void *argp1 = 0 ;
14587 int res1 = 0 ;
14588 wxRect temp2 ;
14589 wxColour temp3 ;
14590 wxColour temp4 ;
14591 wxPoint temp5 ;
14592 PyObject * obj0 = 0 ;
14593 PyObject * obj1 = 0 ;
14594 PyObject * obj2 = 0 ;
14595 PyObject * obj3 = 0 ;
14596 PyObject * obj4 = 0 ;
14597 char * kwnames[] = {
14598 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
14599 };
14600
14601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14603 if (!SWIG_IsOK(res1)) {
14604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
14605 }
14606 arg1 = reinterpret_cast< wxDC * >(argp1);
14607 {
14608 arg2 = &temp2;
14609 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14610 }
14611 {
14612 arg3 = &temp3;
14613 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14614 }
14615 {
14616 arg4 = &temp4;
14617 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14618 }
14619 {
14620 arg5 = &temp5;
14621 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14622 }
14623 {
14624 PyThreadState* __tstate = wxPyBeginAllowThreads();
14625 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
14626 wxPyEndAllowThreads(__tstate);
14627 if (PyErr_Occurred()) SWIG_fail;
14628 }
14629 resultobj = SWIG_Py_Void();
14630 return resultobj;
14631 fail:
14632 return NULL;
14633 }
14634
14635
14636 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14637 PyObject *resultobj = 0;
14638 wxDC *arg1 = (wxDC *) 0 ;
14639 wxRect *arg2 = 0 ;
14640 wxColour *arg3 = 0 ;
14641 wxColour *arg4 = 0 ;
14642 wxDirection arg5 = (wxDirection) wxEAST ;
14643 void *argp1 = 0 ;
14644 int res1 = 0 ;
14645 wxRect temp2 ;
14646 wxColour temp3 ;
14647 wxColour temp4 ;
14648 int val5 ;
14649 int ecode5 = 0 ;
14650 PyObject * obj0 = 0 ;
14651 PyObject * obj1 = 0 ;
14652 PyObject * obj2 = 0 ;
14653 PyObject * obj3 = 0 ;
14654 PyObject * obj4 = 0 ;
14655 char * kwnames[] = {
14656 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
14657 };
14658
14659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14661 if (!SWIG_IsOK(res1)) {
14662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
14663 }
14664 arg1 = reinterpret_cast< wxDC * >(argp1);
14665 {
14666 arg2 = &temp2;
14667 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14668 }
14669 {
14670 arg3 = &temp3;
14671 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14672 }
14673 {
14674 arg4 = &temp4;
14675 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14676 }
14677 if (obj4) {
14678 ecode5 = SWIG_AsVal_int(obj4, &val5);
14679 if (!SWIG_IsOK(ecode5)) {
14680 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
14681 }
14682 arg5 = static_cast< wxDirection >(val5);
14683 }
14684 {
14685 PyThreadState* __tstate = wxPyBeginAllowThreads();
14686 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
14687 wxPyEndAllowThreads(__tstate);
14688 if (PyErr_Occurred()) SWIG_fail;
14689 }
14690 resultobj = SWIG_Py_Void();
14691 return resultobj;
14692 fail:
14693 return NULL;
14694 }
14695
14696
14697 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14698 PyObject *resultobj = 0;
14699 wxDC *arg1 = (wxDC *) 0 ;
14700 int arg2 ;
14701 int arg3 ;
14702 wxColour result;
14703 void *argp1 = 0 ;
14704 int res1 = 0 ;
14705 int val2 ;
14706 int ecode2 = 0 ;
14707 int val3 ;
14708 int ecode3 = 0 ;
14709 PyObject * obj0 = 0 ;
14710 PyObject * obj1 = 0 ;
14711 PyObject * obj2 = 0 ;
14712 char * kwnames[] = {
14713 (char *) "self",(char *) "x",(char *) "y", NULL
14714 };
14715
14716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14718 if (!SWIG_IsOK(res1)) {
14719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
14720 }
14721 arg1 = reinterpret_cast< wxDC * >(argp1);
14722 ecode2 = SWIG_AsVal_int(obj1, &val2);
14723 if (!SWIG_IsOK(ecode2)) {
14724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
14725 }
14726 arg2 = static_cast< int >(val2);
14727 ecode3 = SWIG_AsVal_int(obj2, &val3);
14728 if (!SWIG_IsOK(ecode3)) {
14729 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
14730 }
14731 arg3 = static_cast< int >(val3);
14732 {
14733 PyThreadState* __tstate = wxPyBeginAllowThreads();
14734 result = wxDC_GetPixel(arg1,arg2,arg3);
14735 wxPyEndAllowThreads(__tstate);
14736 if (PyErr_Occurred()) SWIG_fail;
14737 }
14738 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14739 return resultobj;
14740 fail:
14741 return NULL;
14742 }
14743
14744
14745 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14746 PyObject *resultobj = 0;
14747 wxDC *arg1 = (wxDC *) 0 ;
14748 wxPoint *arg2 = 0 ;
14749 wxColour result;
14750 void *argp1 = 0 ;
14751 int res1 = 0 ;
14752 wxPoint temp2 ;
14753 PyObject * obj0 = 0 ;
14754 PyObject * obj1 = 0 ;
14755 char * kwnames[] = {
14756 (char *) "self",(char *) "pt", NULL
14757 };
14758
14759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14761 if (!SWIG_IsOK(res1)) {
14762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14763 }
14764 arg1 = reinterpret_cast< wxDC * >(argp1);
14765 {
14766 arg2 = &temp2;
14767 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14768 }
14769 {
14770 PyThreadState* __tstate = wxPyBeginAllowThreads();
14771 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
14772 wxPyEndAllowThreads(__tstate);
14773 if (PyErr_Occurred()) SWIG_fail;
14774 }
14775 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14776 return resultobj;
14777 fail:
14778 return NULL;
14779 }
14780
14781
14782 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14783 PyObject *resultobj = 0;
14784 wxDC *arg1 = (wxDC *) 0 ;
14785 int arg2 ;
14786 int arg3 ;
14787 int arg4 ;
14788 int arg5 ;
14789 void *argp1 = 0 ;
14790 int res1 = 0 ;
14791 int val2 ;
14792 int ecode2 = 0 ;
14793 int val3 ;
14794 int ecode3 = 0 ;
14795 int val4 ;
14796 int ecode4 = 0 ;
14797 int val5 ;
14798 int ecode5 = 0 ;
14799 PyObject * obj0 = 0 ;
14800 PyObject * obj1 = 0 ;
14801 PyObject * obj2 = 0 ;
14802 PyObject * obj3 = 0 ;
14803 PyObject * obj4 = 0 ;
14804 char * kwnames[] = {
14805 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
14806 };
14807
14808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14810 if (!SWIG_IsOK(res1)) {
14811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
14812 }
14813 arg1 = reinterpret_cast< wxDC * >(argp1);
14814 ecode2 = SWIG_AsVal_int(obj1, &val2);
14815 if (!SWIG_IsOK(ecode2)) {
14816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
14817 }
14818 arg2 = static_cast< int >(val2);
14819 ecode3 = SWIG_AsVal_int(obj2, &val3);
14820 if (!SWIG_IsOK(ecode3)) {
14821 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
14822 }
14823 arg3 = static_cast< int >(val3);
14824 ecode4 = SWIG_AsVal_int(obj3, &val4);
14825 if (!SWIG_IsOK(ecode4)) {
14826 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
14827 }
14828 arg4 = static_cast< int >(val4);
14829 ecode5 = SWIG_AsVal_int(obj4, &val5);
14830 if (!SWIG_IsOK(ecode5)) {
14831 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
14832 }
14833 arg5 = static_cast< int >(val5);
14834 {
14835 PyThreadState* __tstate = wxPyBeginAllowThreads();
14836 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
14837 wxPyEndAllowThreads(__tstate);
14838 if (PyErr_Occurred()) SWIG_fail;
14839 }
14840 resultobj = SWIG_Py_Void();
14841 return resultobj;
14842 fail:
14843 return NULL;
14844 }
14845
14846
14847 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14848 PyObject *resultobj = 0;
14849 wxDC *arg1 = (wxDC *) 0 ;
14850 wxPoint *arg2 = 0 ;
14851 wxPoint *arg3 = 0 ;
14852 void *argp1 = 0 ;
14853 int res1 = 0 ;
14854 wxPoint temp2 ;
14855 wxPoint temp3 ;
14856 PyObject * obj0 = 0 ;
14857 PyObject * obj1 = 0 ;
14858 PyObject * obj2 = 0 ;
14859 char * kwnames[] = {
14860 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
14861 };
14862
14863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14865 if (!SWIG_IsOK(res1)) {
14866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
14867 }
14868 arg1 = reinterpret_cast< wxDC * >(argp1);
14869 {
14870 arg2 = &temp2;
14871 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14872 }
14873 {
14874 arg3 = &temp3;
14875 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14876 }
14877 {
14878 PyThreadState* __tstate = wxPyBeginAllowThreads();
14879 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
14880 wxPyEndAllowThreads(__tstate);
14881 if (PyErr_Occurred()) SWIG_fail;
14882 }
14883 resultobj = SWIG_Py_Void();
14884 return resultobj;
14885 fail:
14886 return NULL;
14887 }
14888
14889
14890 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14891 PyObject *resultobj = 0;
14892 wxDC *arg1 = (wxDC *) 0 ;
14893 int arg2 ;
14894 int arg3 ;
14895 void *argp1 = 0 ;
14896 int res1 = 0 ;
14897 int val2 ;
14898 int ecode2 = 0 ;
14899 int val3 ;
14900 int ecode3 = 0 ;
14901 PyObject * obj0 = 0 ;
14902 PyObject * obj1 = 0 ;
14903 PyObject * obj2 = 0 ;
14904 char * kwnames[] = {
14905 (char *) "self",(char *) "x",(char *) "y", NULL
14906 };
14907
14908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14910 if (!SWIG_IsOK(res1)) {
14911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
14912 }
14913 arg1 = reinterpret_cast< wxDC * >(argp1);
14914 ecode2 = SWIG_AsVal_int(obj1, &val2);
14915 if (!SWIG_IsOK(ecode2)) {
14916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
14917 }
14918 arg2 = static_cast< int >(val2);
14919 ecode3 = SWIG_AsVal_int(obj2, &val3);
14920 if (!SWIG_IsOK(ecode3)) {
14921 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
14922 }
14923 arg3 = static_cast< int >(val3);
14924 {
14925 PyThreadState* __tstate = wxPyBeginAllowThreads();
14926 (arg1)->CrossHair(arg2,arg3);
14927 wxPyEndAllowThreads(__tstate);
14928 if (PyErr_Occurred()) SWIG_fail;
14929 }
14930 resultobj = SWIG_Py_Void();
14931 return resultobj;
14932 fail:
14933 return NULL;
14934 }
14935
14936
14937 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14938 PyObject *resultobj = 0;
14939 wxDC *arg1 = (wxDC *) 0 ;
14940 wxPoint *arg2 = 0 ;
14941 void *argp1 = 0 ;
14942 int res1 = 0 ;
14943 wxPoint temp2 ;
14944 PyObject * obj0 = 0 ;
14945 PyObject * obj1 = 0 ;
14946 char * kwnames[] = {
14947 (char *) "self",(char *) "pt", NULL
14948 };
14949
14950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14952 if (!SWIG_IsOK(res1)) {
14953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14954 }
14955 arg1 = reinterpret_cast< wxDC * >(argp1);
14956 {
14957 arg2 = &temp2;
14958 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14959 }
14960 {
14961 PyThreadState* __tstate = wxPyBeginAllowThreads();
14962 (arg1)->CrossHair((wxPoint const &)*arg2);
14963 wxPyEndAllowThreads(__tstate);
14964 if (PyErr_Occurred()) SWIG_fail;
14965 }
14966 resultobj = SWIG_Py_Void();
14967 return resultobj;
14968 fail:
14969 return NULL;
14970 }
14971
14972
14973 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14974 PyObject *resultobj = 0;
14975 wxDC *arg1 = (wxDC *) 0 ;
14976 int arg2 ;
14977 int arg3 ;
14978 int arg4 ;
14979 int arg5 ;
14980 int arg6 ;
14981 int arg7 ;
14982 void *argp1 = 0 ;
14983 int res1 = 0 ;
14984 int val2 ;
14985 int ecode2 = 0 ;
14986 int val3 ;
14987 int ecode3 = 0 ;
14988 int val4 ;
14989 int ecode4 = 0 ;
14990 int val5 ;
14991 int ecode5 = 0 ;
14992 int val6 ;
14993 int ecode6 = 0 ;
14994 int val7 ;
14995 int ecode7 = 0 ;
14996 PyObject * obj0 = 0 ;
14997 PyObject * obj1 = 0 ;
14998 PyObject * obj2 = 0 ;
14999 PyObject * obj3 = 0 ;
15000 PyObject * obj4 = 0 ;
15001 PyObject * obj5 = 0 ;
15002 PyObject * obj6 = 0 ;
15003 char * kwnames[] = {
15004 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
15005 };
15006
15007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15009 if (!SWIG_IsOK(res1)) {
15010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
15011 }
15012 arg1 = reinterpret_cast< wxDC * >(argp1);
15013 ecode2 = SWIG_AsVal_int(obj1, &val2);
15014 if (!SWIG_IsOK(ecode2)) {
15015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
15016 }
15017 arg2 = static_cast< int >(val2);
15018 ecode3 = SWIG_AsVal_int(obj2, &val3);
15019 if (!SWIG_IsOK(ecode3)) {
15020 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
15021 }
15022 arg3 = static_cast< int >(val3);
15023 ecode4 = SWIG_AsVal_int(obj3, &val4);
15024 if (!SWIG_IsOK(ecode4)) {
15025 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
15026 }
15027 arg4 = static_cast< int >(val4);
15028 ecode5 = SWIG_AsVal_int(obj4, &val5);
15029 if (!SWIG_IsOK(ecode5)) {
15030 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
15031 }
15032 arg5 = static_cast< int >(val5);
15033 ecode6 = SWIG_AsVal_int(obj5, &val6);
15034 if (!SWIG_IsOK(ecode6)) {
15035 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
15036 }
15037 arg6 = static_cast< int >(val6);
15038 ecode7 = SWIG_AsVal_int(obj6, &val7);
15039 if (!SWIG_IsOK(ecode7)) {
15040 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
15041 }
15042 arg7 = static_cast< int >(val7);
15043 {
15044 PyThreadState* __tstate = wxPyBeginAllowThreads();
15045 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
15046 wxPyEndAllowThreads(__tstate);
15047 if (PyErr_Occurred()) SWIG_fail;
15048 }
15049 resultobj = SWIG_Py_Void();
15050 return resultobj;
15051 fail:
15052 return NULL;
15053 }
15054
15055
15056 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15057 PyObject *resultobj = 0;
15058 wxDC *arg1 = (wxDC *) 0 ;
15059 wxPoint *arg2 = 0 ;
15060 wxPoint *arg3 = 0 ;
15061 wxPoint *arg4 = 0 ;
15062 void *argp1 = 0 ;
15063 int res1 = 0 ;
15064 wxPoint temp2 ;
15065 wxPoint temp3 ;
15066 wxPoint temp4 ;
15067 PyObject * obj0 = 0 ;
15068 PyObject * obj1 = 0 ;
15069 PyObject * obj2 = 0 ;
15070 PyObject * obj3 = 0 ;
15071 char * kwnames[] = {
15072 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15073 };
15074
15075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15077 if (!SWIG_IsOK(res1)) {
15078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15079 }
15080 arg1 = reinterpret_cast< wxDC * >(argp1);
15081 {
15082 arg2 = &temp2;
15083 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15084 }
15085 {
15086 arg3 = &temp3;
15087 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15088 }
15089 {
15090 arg4 = &temp4;
15091 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15092 }
15093 {
15094 PyThreadState* __tstate = wxPyBeginAllowThreads();
15095 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
15096 wxPyEndAllowThreads(__tstate);
15097 if (PyErr_Occurred()) SWIG_fail;
15098 }
15099 resultobj = SWIG_Py_Void();
15100 return resultobj;
15101 fail:
15102 return NULL;
15103 }
15104
15105
15106 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15107 PyObject *resultobj = 0;
15108 wxDC *arg1 = (wxDC *) 0 ;
15109 int arg2 ;
15110 int arg3 ;
15111 int arg4 ;
15112 int arg5 ;
15113 void *argp1 = 0 ;
15114 int res1 = 0 ;
15115 int val2 ;
15116 int ecode2 = 0 ;
15117 int val3 ;
15118 int ecode3 = 0 ;
15119 int val4 ;
15120 int ecode4 = 0 ;
15121 int val5 ;
15122 int ecode5 = 0 ;
15123 PyObject * obj0 = 0 ;
15124 PyObject * obj1 = 0 ;
15125 PyObject * obj2 = 0 ;
15126 PyObject * obj3 = 0 ;
15127 PyObject * obj4 = 0 ;
15128 char * kwnames[] = {
15129 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15130 };
15131
15132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15134 if (!SWIG_IsOK(res1)) {
15135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15136 }
15137 arg1 = reinterpret_cast< wxDC * >(argp1);
15138 ecode2 = SWIG_AsVal_int(obj1, &val2);
15139 if (!SWIG_IsOK(ecode2)) {
15140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15141 }
15142 arg2 = static_cast< int >(val2);
15143 ecode3 = SWIG_AsVal_int(obj2, &val3);
15144 if (!SWIG_IsOK(ecode3)) {
15145 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15146 }
15147 arg3 = static_cast< int >(val3);
15148 ecode4 = SWIG_AsVal_int(obj3, &val4);
15149 if (!SWIG_IsOK(ecode4)) {
15150 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15151 }
15152 arg4 = static_cast< int >(val4);
15153 ecode5 = SWIG_AsVal_int(obj4, &val5);
15154 if (!SWIG_IsOK(ecode5)) {
15155 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15156 }
15157 arg5 = static_cast< int >(val5);
15158 {
15159 PyThreadState* __tstate = wxPyBeginAllowThreads();
15160 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
15161 wxPyEndAllowThreads(__tstate);
15162 if (PyErr_Occurred()) SWIG_fail;
15163 }
15164 resultobj = SWIG_Py_Void();
15165 return resultobj;
15166 fail:
15167 return NULL;
15168 }
15169
15170
15171 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15172 PyObject *resultobj = 0;
15173 wxDC *arg1 = (wxDC *) 0 ;
15174 wxRect *arg2 = 0 ;
15175 void *argp1 = 0 ;
15176 int res1 = 0 ;
15177 wxRect temp2 ;
15178 PyObject * obj0 = 0 ;
15179 PyObject * obj1 = 0 ;
15180 char * kwnames[] = {
15181 (char *) "self",(char *) "rect", NULL
15182 };
15183
15184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
15185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15186 if (!SWIG_IsOK(res1)) {
15187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15188 }
15189 arg1 = reinterpret_cast< wxDC * >(argp1);
15190 {
15191 arg2 = &temp2;
15192 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15193 }
15194 {
15195 PyThreadState* __tstate = wxPyBeginAllowThreads();
15196 (arg1)->DrawCheckMark((wxRect const &)*arg2);
15197 wxPyEndAllowThreads(__tstate);
15198 if (PyErr_Occurred()) SWIG_fail;
15199 }
15200 resultobj = SWIG_Py_Void();
15201 return resultobj;
15202 fail:
15203 return NULL;
15204 }
15205
15206
15207 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15208 PyObject *resultobj = 0;
15209 wxDC *arg1 = (wxDC *) 0 ;
15210 int arg2 ;
15211 int arg3 ;
15212 int arg4 ;
15213 int arg5 ;
15214 double arg6 ;
15215 double arg7 ;
15216 void *argp1 = 0 ;
15217 int res1 = 0 ;
15218 int val2 ;
15219 int ecode2 = 0 ;
15220 int val3 ;
15221 int ecode3 = 0 ;
15222 int val4 ;
15223 int ecode4 = 0 ;
15224 int val5 ;
15225 int ecode5 = 0 ;
15226 double val6 ;
15227 int ecode6 = 0 ;
15228 double val7 ;
15229 int ecode7 = 0 ;
15230 PyObject * obj0 = 0 ;
15231 PyObject * obj1 = 0 ;
15232 PyObject * obj2 = 0 ;
15233 PyObject * obj3 = 0 ;
15234 PyObject * obj4 = 0 ;
15235 PyObject * obj5 = 0 ;
15236 PyObject * obj6 = 0 ;
15237 char * kwnames[] = {
15238 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15239 };
15240
15241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15243 if (!SWIG_IsOK(res1)) {
15244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15245 }
15246 arg1 = reinterpret_cast< wxDC * >(argp1);
15247 ecode2 = SWIG_AsVal_int(obj1, &val2);
15248 if (!SWIG_IsOK(ecode2)) {
15249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15250 }
15251 arg2 = static_cast< int >(val2);
15252 ecode3 = SWIG_AsVal_int(obj2, &val3);
15253 if (!SWIG_IsOK(ecode3)) {
15254 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15255 }
15256 arg3 = static_cast< int >(val3);
15257 ecode4 = SWIG_AsVal_int(obj3, &val4);
15258 if (!SWIG_IsOK(ecode4)) {
15259 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15260 }
15261 arg4 = static_cast< int >(val4);
15262 ecode5 = SWIG_AsVal_int(obj4, &val5);
15263 if (!SWIG_IsOK(ecode5)) {
15264 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15265 }
15266 arg5 = static_cast< int >(val5);
15267 ecode6 = SWIG_AsVal_double(obj5, &val6);
15268 if (!SWIG_IsOK(ecode6)) {
15269 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15270 }
15271 arg6 = static_cast< double >(val6);
15272 ecode7 = SWIG_AsVal_double(obj6, &val7);
15273 if (!SWIG_IsOK(ecode7)) {
15274 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15275 }
15276 arg7 = static_cast< double >(val7);
15277 {
15278 PyThreadState* __tstate = wxPyBeginAllowThreads();
15279 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
15280 wxPyEndAllowThreads(__tstate);
15281 if (PyErr_Occurred()) SWIG_fail;
15282 }
15283 resultobj = SWIG_Py_Void();
15284 return resultobj;
15285 fail:
15286 return NULL;
15287 }
15288
15289
15290 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15291 PyObject *resultobj = 0;
15292 wxDC *arg1 = (wxDC *) 0 ;
15293 wxPoint *arg2 = 0 ;
15294 wxSize *arg3 = 0 ;
15295 double arg4 ;
15296 double arg5 ;
15297 void *argp1 = 0 ;
15298 int res1 = 0 ;
15299 wxPoint temp2 ;
15300 wxSize temp3 ;
15301 double val4 ;
15302 int ecode4 = 0 ;
15303 double val5 ;
15304 int ecode5 = 0 ;
15305 PyObject * obj0 = 0 ;
15306 PyObject * obj1 = 0 ;
15307 PyObject * obj2 = 0 ;
15308 PyObject * obj3 = 0 ;
15309 PyObject * obj4 = 0 ;
15310 char * kwnames[] = {
15311 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
15312 };
15313
15314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15316 if (!SWIG_IsOK(res1)) {
15317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15318 }
15319 arg1 = reinterpret_cast< wxDC * >(argp1);
15320 {
15321 arg2 = &temp2;
15322 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15323 }
15324 {
15325 arg3 = &temp3;
15326 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15327 }
15328 ecode4 = SWIG_AsVal_double(obj3, &val4);
15329 if (!SWIG_IsOK(ecode4)) {
15330 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
15331 }
15332 arg4 = static_cast< double >(val4);
15333 ecode5 = SWIG_AsVal_double(obj4, &val5);
15334 if (!SWIG_IsOK(ecode5)) {
15335 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
15336 }
15337 arg5 = static_cast< double >(val5);
15338 {
15339 PyThreadState* __tstate = wxPyBeginAllowThreads();
15340 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
15341 wxPyEndAllowThreads(__tstate);
15342 if (PyErr_Occurred()) SWIG_fail;
15343 }
15344 resultobj = SWIG_Py_Void();
15345 return resultobj;
15346 fail:
15347 return NULL;
15348 }
15349
15350
15351 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15352 PyObject *resultobj = 0;
15353 wxDC *arg1 = (wxDC *) 0 ;
15354 int arg2 ;
15355 int arg3 ;
15356 void *argp1 = 0 ;
15357 int res1 = 0 ;
15358 int val2 ;
15359 int ecode2 = 0 ;
15360 int val3 ;
15361 int ecode3 = 0 ;
15362 PyObject * obj0 = 0 ;
15363 PyObject * obj1 = 0 ;
15364 PyObject * obj2 = 0 ;
15365 char * kwnames[] = {
15366 (char *) "self",(char *) "x",(char *) "y", NULL
15367 };
15368
15369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15371 if (!SWIG_IsOK(res1)) {
15372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15373 }
15374 arg1 = reinterpret_cast< wxDC * >(argp1);
15375 ecode2 = SWIG_AsVal_int(obj1, &val2);
15376 if (!SWIG_IsOK(ecode2)) {
15377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
15378 }
15379 arg2 = static_cast< int >(val2);
15380 ecode3 = SWIG_AsVal_int(obj2, &val3);
15381 if (!SWIG_IsOK(ecode3)) {
15382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
15383 }
15384 arg3 = static_cast< int >(val3);
15385 {
15386 PyThreadState* __tstate = wxPyBeginAllowThreads();
15387 (arg1)->DrawPoint(arg2,arg3);
15388 wxPyEndAllowThreads(__tstate);
15389 if (PyErr_Occurred()) SWIG_fail;
15390 }
15391 resultobj = SWIG_Py_Void();
15392 return resultobj;
15393 fail:
15394 return NULL;
15395 }
15396
15397
15398 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15399 PyObject *resultobj = 0;
15400 wxDC *arg1 = (wxDC *) 0 ;
15401 wxPoint *arg2 = 0 ;
15402 void *argp1 = 0 ;
15403 int res1 = 0 ;
15404 wxPoint temp2 ;
15405 PyObject * obj0 = 0 ;
15406 PyObject * obj1 = 0 ;
15407 char * kwnames[] = {
15408 (char *) "self",(char *) "pt", NULL
15409 };
15410
15411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15413 if (!SWIG_IsOK(res1)) {
15414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15415 }
15416 arg1 = reinterpret_cast< wxDC * >(argp1);
15417 {
15418 arg2 = &temp2;
15419 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15420 }
15421 {
15422 PyThreadState* __tstate = wxPyBeginAllowThreads();
15423 (arg1)->DrawPoint((wxPoint const &)*arg2);
15424 wxPyEndAllowThreads(__tstate);
15425 if (PyErr_Occurred()) SWIG_fail;
15426 }
15427 resultobj = SWIG_Py_Void();
15428 return resultobj;
15429 fail:
15430 return NULL;
15431 }
15432
15433
15434 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15435 PyObject *resultobj = 0;
15436 wxDC *arg1 = (wxDC *) 0 ;
15437 int arg2 ;
15438 int arg3 ;
15439 int arg4 ;
15440 int arg5 ;
15441 void *argp1 = 0 ;
15442 int res1 = 0 ;
15443 int val2 ;
15444 int ecode2 = 0 ;
15445 int val3 ;
15446 int ecode3 = 0 ;
15447 int val4 ;
15448 int ecode4 = 0 ;
15449 int val5 ;
15450 int ecode5 = 0 ;
15451 PyObject * obj0 = 0 ;
15452 PyObject * obj1 = 0 ;
15453 PyObject * obj2 = 0 ;
15454 PyObject * obj3 = 0 ;
15455 PyObject * obj4 = 0 ;
15456 char * kwnames[] = {
15457 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15458 };
15459
15460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15462 if (!SWIG_IsOK(res1)) {
15463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15464 }
15465 arg1 = reinterpret_cast< wxDC * >(argp1);
15466 ecode2 = SWIG_AsVal_int(obj1, &val2);
15467 if (!SWIG_IsOK(ecode2)) {
15468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
15469 }
15470 arg2 = static_cast< int >(val2);
15471 ecode3 = SWIG_AsVal_int(obj2, &val3);
15472 if (!SWIG_IsOK(ecode3)) {
15473 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
15474 }
15475 arg3 = static_cast< int >(val3);
15476 ecode4 = SWIG_AsVal_int(obj3, &val4);
15477 if (!SWIG_IsOK(ecode4)) {
15478 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
15479 }
15480 arg4 = static_cast< int >(val4);
15481 ecode5 = SWIG_AsVal_int(obj4, &val5);
15482 if (!SWIG_IsOK(ecode5)) {
15483 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
15484 }
15485 arg5 = static_cast< int >(val5);
15486 {
15487 PyThreadState* __tstate = wxPyBeginAllowThreads();
15488 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
15489 wxPyEndAllowThreads(__tstate);
15490 if (PyErr_Occurred()) SWIG_fail;
15491 }
15492 resultobj = SWIG_Py_Void();
15493 return resultobj;
15494 fail:
15495 return NULL;
15496 }
15497
15498
15499 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15500 PyObject *resultobj = 0;
15501 wxDC *arg1 = (wxDC *) 0 ;
15502 wxRect *arg2 = 0 ;
15503 void *argp1 = 0 ;
15504 int res1 = 0 ;
15505 wxRect temp2 ;
15506 PyObject * obj0 = 0 ;
15507 PyObject * obj1 = 0 ;
15508 char * kwnames[] = {
15509 (char *) "self",(char *) "rect", NULL
15510 };
15511
15512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
15513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15514 if (!SWIG_IsOK(res1)) {
15515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15516 }
15517 arg1 = reinterpret_cast< wxDC * >(argp1);
15518 {
15519 arg2 = &temp2;
15520 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15521 }
15522 {
15523 PyThreadState* __tstate = wxPyBeginAllowThreads();
15524 (arg1)->DrawRectangle((wxRect const &)*arg2);
15525 wxPyEndAllowThreads(__tstate);
15526 if (PyErr_Occurred()) SWIG_fail;
15527 }
15528 resultobj = SWIG_Py_Void();
15529 return resultobj;
15530 fail:
15531 return NULL;
15532 }
15533
15534
15535 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15536 PyObject *resultobj = 0;
15537 wxDC *arg1 = (wxDC *) 0 ;
15538 wxPoint *arg2 = 0 ;
15539 wxSize *arg3 = 0 ;
15540 void *argp1 = 0 ;
15541 int res1 = 0 ;
15542 wxPoint temp2 ;
15543 wxSize temp3 ;
15544 PyObject * obj0 = 0 ;
15545 PyObject * obj1 = 0 ;
15546 PyObject * obj2 = 0 ;
15547 char * kwnames[] = {
15548 (char *) "self",(char *) "pt",(char *) "sz", NULL
15549 };
15550
15551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15553 if (!SWIG_IsOK(res1)) {
15554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15555 }
15556 arg1 = reinterpret_cast< wxDC * >(argp1);
15557 {
15558 arg2 = &temp2;
15559 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15560 }
15561 {
15562 arg3 = &temp3;
15563 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15564 }
15565 {
15566 PyThreadState* __tstate = wxPyBeginAllowThreads();
15567 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
15568 wxPyEndAllowThreads(__tstate);
15569 if (PyErr_Occurred()) SWIG_fail;
15570 }
15571 resultobj = SWIG_Py_Void();
15572 return resultobj;
15573 fail:
15574 return NULL;
15575 }
15576
15577
15578 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15579 PyObject *resultobj = 0;
15580 wxDC *arg1 = (wxDC *) 0 ;
15581 int arg2 ;
15582 int arg3 ;
15583 int arg4 ;
15584 int arg5 ;
15585 double arg6 ;
15586 void *argp1 = 0 ;
15587 int res1 = 0 ;
15588 int val2 ;
15589 int ecode2 = 0 ;
15590 int val3 ;
15591 int ecode3 = 0 ;
15592 int val4 ;
15593 int ecode4 = 0 ;
15594 int val5 ;
15595 int ecode5 = 0 ;
15596 double val6 ;
15597 int ecode6 = 0 ;
15598 PyObject * obj0 = 0 ;
15599 PyObject * obj1 = 0 ;
15600 PyObject * obj2 = 0 ;
15601 PyObject * obj3 = 0 ;
15602 PyObject * obj4 = 0 ;
15603 PyObject * obj5 = 0 ;
15604 char * kwnames[] = {
15605 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
15606 };
15607
15608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15610 if (!SWIG_IsOK(res1)) {
15611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15612 }
15613 arg1 = reinterpret_cast< wxDC * >(argp1);
15614 ecode2 = SWIG_AsVal_int(obj1, &val2);
15615 if (!SWIG_IsOK(ecode2)) {
15616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
15617 }
15618 arg2 = static_cast< int >(val2);
15619 ecode3 = SWIG_AsVal_int(obj2, &val3);
15620 if (!SWIG_IsOK(ecode3)) {
15621 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
15622 }
15623 arg3 = static_cast< int >(val3);
15624 ecode4 = SWIG_AsVal_int(obj3, &val4);
15625 if (!SWIG_IsOK(ecode4)) {
15626 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
15627 }
15628 arg4 = static_cast< int >(val4);
15629 ecode5 = SWIG_AsVal_int(obj4, &val5);
15630 if (!SWIG_IsOK(ecode5)) {
15631 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
15632 }
15633 arg5 = static_cast< int >(val5);
15634 ecode6 = SWIG_AsVal_double(obj5, &val6);
15635 if (!SWIG_IsOK(ecode6)) {
15636 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
15637 }
15638 arg6 = static_cast< double >(val6);
15639 {
15640 PyThreadState* __tstate = wxPyBeginAllowThreads();
15641 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
15642 wxPyEndAllowThreads(__tstate);
15643 if (PyErr_Occurred()) SWIG_fail;
15644 }
15645 resultobj = SWIG_Py_Void();
15646 return resultobj;
15647 fail:
15648 return NULL;
15649 }
15650
15651
15652 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15653 PyObject *resultobj = 0;
15654 wxDC *arg1 = (wxDC *) 0 ;
15655 wxRect *arg2 = 0 ;
15656 double arg3 ;
15657 void *argp1 = 0 ;
15658 int res1 = 0 ;
15659 wxRect temp2 ;
15660 double val3 ;
15661 int ecode3 = 0 ;
15662 PyObject * obj0 = 0 ;
15663 PyObject * obj1 = 0 ;
15664 PyObject * obj2 = 0 ;
15665 char * kwnames[] = {
15666 (char *) "self",(char *) "r",(char *) "radius", NULL
15667 };
15668
15669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15671 if (!SWIG_IsOK(res1)) {
15672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15673 }
15674 arg1 = reinterpret_cast< wxDC * >(argp1);
15675 {
15676 arg2 = &temp2;
15677 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15678 }
15679 ecode3 = SWIG_AsVal_double(obj2, &val3);
15680 if (!SWIG_IsOK(ecode3)) {
15681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
15682 }
15683 arg3 = static_cast< double >(val3);
15684 {
15685 PyThreadState* __tstate = wxPyBeginAllowThreads();
15686 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
15687 wxPyEndAllowThreads(__tstate);
15688 if (PyErr_Occurred()) SWIG_fail;
15689 }
15690 resultobj = SWIG_Py_Void();
15691 return resultobj;
15692 fail:
15693 return NULL;
15694 }
15695
15696
15697 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15698 PyObject *resultobj = 0;
15699 wxDC *arg1 = (wxDC *) 0 ;
15700 wxPoint *arg2 = 0 ;
15701 wxSize *arg3 = 0 ;
15702 double arg4 ;
15703 void *argp1 = 0 ;
15704 int res1 = 0 ;
15705 wxPoint temp2 ;
15706 wxSize temp3 ;
15707 double val4 ;
15708 int ecode4 = 0 ;
15709 PyObject * obj0 = 0 ;
15710 PyObject * obj1 = 0 ;
15711 PyObject * obj2 = 0 ;
15712 PyObject * obj3 = 0 ;
15713 char * kwnames[] = {
15714 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
15715 };
15716
15717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15719 if (!SWIG_IsOK(res1)) {
15720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15721 }
15722 arg1 = reinterpret_cast< wxDC * >(argp1);
15723 {
15724 arg2 = &temp2;
15725 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15726 }
15727 {
15728 arg3 = &temp3;
15729 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15730 }
15731 ecode4 = SWIG_AsVal_double(obj3, &val4);
15732 if (!SWIG_IsOK(ecode4)) {
15733 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
15734 }
15735 arg4 = static_cast< double >(val4);
15736 {
15737 PyThreadState* __tstate = wxPyBeginAllowThreads();
15738 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
15739 wxPyEndAllowThreads(__tstate);
15740 if (PyErr_Occurred()) SWIG_fail;
15741 }
15742 resultobj = SWIG_Py_Void();
15743 return resultobj;
15744 fail:
15745 return NULL;
15746 }
15747
15748
15749 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15750 PyObject *resultobj = 0;
15751 wxDC *arg1 = (wxDC *) 0 ;
15752 int arg2 ;
15753 int arg3 ;
15754 int arg4 ;
15755 void *argp1 = 0 ;
15756 int res1 = 0 ;
15757 int val2 ;
15758 int ecode2 = 0 ;
15759 int val3 ;
15760 int ecode3 = 0 ;
15761 int val4 ;
15762 int ecode4 = 0 ;
15763 PyObject * obj0 = 0 ;
15764 PyObject * obj1 = 0 ;
15765 PyObject * obj2 = 0 ;
15766 PyObject * obj3 = 0 ;
15767 char * kwnames[] = {
15768 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
15769 };
15770
15771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15773 if (!SWIG_IsOK(res1)) {
15774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
15775 }
15776 arg1 = reinterpret_cast< wxDC * >(argp1);
15777 ecode2 = SWIG_AsVal_int(obj1, &val2);
15778 if (!SWIG_IsOK(ecode2)) {
15779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
15780 }
15781 arg2 = static_cast< int >(val2);
15782 ecode3 = SWIG_AsVal_int(obj2, &val3);
15783 if (!SWIG_IsOK(ecode3)) {
15784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
15785 }
15786 arg3 = static_cast< int >(val3);
15787 ecode4 = SWIG_AsVal_int(obj3, &val4);
15788 if (!SWIG_IsOK(ecode4)) {
15789 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
15790 }
15791 arg4 = static_cast< int >(val4);
15792 {
15793 PyThreadState* __tstate = wxPyBeginAllowThreads();
15794 (arg1)->DrawCircle(arg2,arg3,arg4);
15795 wxPyEndAllowThreads(__tstate);
15796 if (PyErr_Occurred()) SWIG_fail;
15797 }
15798 resultobj = SWIG_Py_Void();
15799 return resultobj;
15800 fail:
15801 return NULL;
15802 }
15803
15804
15805 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15806 PyObject *resultobj = 0;
15807 wxDC *arg1 = (wxDC *) 0 ;
15808 wxPoint *arg2 = 0 ;
15809 int arg3 ;
15810 void *argp1 = 0 ;
15811 int res1 = 0 ;
15812 wxPoint temp2 ;
15813 int val3 ;
15814 int ecode3 = 0 ;
15815 PyObject * obj0 = 0 ;
15816 PyObject * obj1 = 0 ;
15817 PyObject * obj2 = 0 ;
15818 char * kwnames[] = {
15819 (char *) "self",(char *) "pt",(char *) "radius", NULL
15820 };
15821
15822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15824 if (!SWIG_IsOK(res1)) {
15825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15826 }
15827 arg1 = reinterpret_cast< wxDC * >(argp1);
15828 {
15829 arg2 = &temp2;
15830 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15831 }
15832 ecode3 = SWIG_AsVal_int(obj2, &val3);
15833 if (!SWIG_IsOK(ecode3)) {
15834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
15835 }
15836 arg3 = static_cast< int >(val3);
15837 {
15838 PyThreadState* __tstate = wxPyBeginAllowThreads();
15839 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
15840 wxPyEndAllowThreads(__tstate);
15841 if (PyErr_Occurred()) SWIG_fail;
15842 }
15843 resultobj = SWIG_Py_Void();
15844 return resultobj;
15845 fail:
15846 return NULL;
15847 }
15848
15849
15850 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15851 PyObject *resultobj = 0;
15852 wxDC *arg1 = (wxDC *) 0 ;
15853 int arg2 ;
15854 int arg3 ;
15855 int arg4 ;
15856 int arg5 ;
15857 void *argp1 = 0 ;
15858 int res1 = 0 ;
15859 int val2 ;
15860 int ecode2 = 0 ;
15861 int val3 ;
15862 int ecode3 = 0 ;
15863 int val4 ;
15864 int ecode4 = 0 ;
15865 int val5 ;
15866 int ecode5 = 0 ;
15867 PyObject * obj0 = 0 ;
15868 PyObject * obj1 = 0 ;
15869 PyObject * obj2 = 0 ;
15870 PyObject * obj3 = 0 ;
15871 PyObject * obj4 = 0 ;
15872 char * kwnames[] = {
15873 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15874 };
15875
15876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15878 if (!SWIG_IsOK(res1)) {
15879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
15880 }
15881 arg1 = reinterpret_cast< wxDC * >(argp1);
15882 ecode2 = SWIG_AsVal_int(obj1, &val2);
15883 if (!SWIG_IsOK(ecode2)) {
15884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
15885 }
15886 arg2 = static_cast< int >(val2);
15887 ecode3 = SWIG_AsVal_int(obj2, &val3);
15888 if (!SWIG_IsOK(ecode3)) {
15889 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
15890 }
15891 arg3 = static_cast< int >(val3);
15892 ecode4 = SWIG_AsVal_int(obj3, &val4);
15893 if (!SWIG_IsOK(ecode4)) {
15894 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
15895 }
15896 arg4 = static_cast< int >(val4);
15897 ecode5 = SWIG_AsVal_int(obj4, &val5);
15898 if (!SWIG_IsOK(ecode5)) {
15899 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
15900 }
15901 arg5 = static_cast< int >(val5);
15902 {
15903 PyThreadState* __tstate = wxPyBeginAllowThreads();
15904 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
15905 wxPyEndAllowThreads(__tstate);
15906 if (PyErr_Occurred()) SWIG_fail;
15907 }
15908 resultobj = SWIG_Py_Void();
15909 return resultobj;
15910 fail:
15911 return NULL;
15912 }
15913
15914
15915 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15916 PyObject *resultobj = 0;
15917 wxDC *arg1 = (wxDC *) 0 ;
15918 wxRect *arg2 = 0 ;
15919 void *argp1 = 0 ;
15920 int res1 = 0 ;
15921 wxRect temp2 ;
15922 PyObject * obj0 = 0 ;
15923 PyObject * obj1 = 0 ;
15924 char * kwnames[] = {
15925 (char *) "self",(char *) "rect", NULL
15926 };
15927
15928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
15929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15930 if (!SWIG_IsOK(res1)) {
15931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
15932 }
15933 arg1 = reinterpret_cast< wxDC * >(argp1);
15934 {
15935 arg2 = &temp2;
15936 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15937 }
15938 {
15939 PyThreadState* __tstate = wxPyBeginAllowThreads();
15940 (arg1)->DrawEllipse((wxRect const &)*arg2);
15941 wxPyEndAllowThreads(__tstate);
15942 if (PyErr_Occurred()) SWIG_fail;
15943 }
15944 resultobj = SWIG_Py_Void();
15945 return resultobj;
15946 fail:
15947 return NULL;
15948 }
15949
15950
15951 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15952 PyObject *resultobj = 0;
15953 wxDC *arg1 = (wxDC *) 0 ;
15954 wxPoint *arg2 = 0 ;
15955 wxSize *arg3 = 0 ;
15956 void *argp1 = 0 ;
15957 int res1 = 0 ;
15958 wxPoint temp2 ;
15959 wxSize temp3 ;
15960 PyObject * obj0 = 0 ;
15961 PyObject * obj1 = 0 ;
15962 PyObject * obj2 = 0 ;
15963 char * kwnames[] = {
15964 (char *) "self",(char *) "pt",(char *) "sz", NULL
15965 };
15966
15967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15969 if (!SWIG_IsOK(res1)) {
15970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15971 }
15972 arg1 = reinterpret_cast< wxDC * >(argp1);
15973 {
15974 arg2 = &temp2;
15975 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15976 }
15977 {
15978 arg3 = &temp3;
15979 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15980 }
15981 {
15982 PyThreadState* __tstate = wxPyBeginAllowThreads();
15983 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
15984 wxPyEndAllowThreads(__tstate);
15985 if (PyErr_Occurred()) SWIG_fail;
15986 }
15987 resultobj = SWIG_Py_Void();
15988 return resultobj;
15989 fail:
15990 return NULL;
15991 }
15992
15993
15994 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15995 PyObject *resultobj = 0;
15996 wxDC *arg1 = (wxDC *) 0 ;
15997 wxIcon *arg2 = 0 ;
15998 int arg3 ;
15999 int arg4 ;
16000 void *argp1 = 0 ;
16001 int res1 = 0 ;
16002 void *argp2 = 0 ;
16003 int res2 = 0 ;
16004 int val3 ;
16005 int ecode3 = 0 ;
16006 int val4 ;
16007 int ecode4 = 0 ;
16008 PyObject * obj0 = 0 ;
16009 PyObject * obj1 = 0 ;
16010 PyObject * obj2 = 0 ;
16011 PyObject * obj3 = 0 ;
16012 char * kwnames[] = {
16013 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
16014 };
16015
16016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16018 if (!SWIG_IsOK(res1)) {
16019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
16020 }
16021 arg1 = reinterpret_cast< wxDC * >(argp1);
16022 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16023 if (!SWIG_IsOK(res2)) {
16024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16025 }
16026 if (!argp2) {
16027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16028 }
16029 arg2 = reinterpret_cast< wxIcon * >(argp2);
16030 ecode3 = SWIG_AsVal_int(obj2, &val3);
16031 if (!SWIG_IsOK(ecode3)) {
16032 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
16033 }
16034 arg3 = static_cast< int >(val3);
16035 ecode4 = SWIG_AsVal_int(obj3, &val4);
16036 if (!SWIG_IsOK(ecode4)) {
16037 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
16038 }
16039 arg4 = static_cast< int >(val4);
16040 {
16041 PyThreadState* __tstate = wxPyBeginAllowThreads();
16042 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
16043 wxPyEndAllowThreads(__tstate);
16044 if (PyErr_Occurred()) SWIG_fail;
16045 }
16046 resultobj = SWIG_Py_Void();
16047 return resultobj;
16048 fail:
16049 return NULL;
16050 }
16051
16052
16053 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16054 PyObject *resultobj = 0;
16055 wxDC *arg1 = (wxDC *) 0 ;
16056 wxIcon *arg2 = 0 ;
16057 wxPoint *arg3 = 0 ;
16058 void *argp1 = 0 ;
16059 int res1 = 0 ;
16060 void *argp2 = 0 ;
16061 int res2 = 0 ;
16062 wxPoint temp3 ;
16063 PyObject * obj0 = 0 ;
16064 PyObject * obj1 = 0 ;
16065 PyObject * obj2 = 0 ;
16066 char * kwnames[] = {
16067 (char *) "self",(char *) "icon",(char *) "pt", NULL
16068 };
16069
16070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16072 if (!SWIG_IsOK(res1)) {
16073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16074 }
16075 arg1 = reinterpret_cast< wxDC * >(argp1);
16076 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16077 if (!SWIG_IsOK(res2)) {
16078 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16079 }
16080 if (!argp2) {
16081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16082 }
16083 arg2 = reinterpret_cast< wxIcon * >(argp2);
16084 {
16085 arg3 = &temp3;
16086 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16087 }
16088 {
16089 PyThreadState* __tstate = wxPyBeginAllowThreads();
16090 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
16091 wxPyEndAllowThreads(__tstate);
16092 if (PyErr_Occurred()) SWIG_fail;
16093 }
16094 resultobj = SWIG_Py_Void();
16095 return resultobj;
16096 fail:
16097 return NULL;
16098 }
16099
16100
16101 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16102 PyObject *resultobj = 0;
16103 wxDC *arg1 = (wxDC *) 0 ;
16104 wxBitmap *arg2 = 0 ;
16105 int arg3 ;
16106 int arg4 ;
16107 bool arg5 = (bool) false ;
16108 void *argp1 = 0 ;
16109 int res1 = 0 ;
16110 void *argp2 = 0 ;
16111 int res2 = 0 ;
16112 int val3 ;
16113 int ecode3 = 0 ;
16114 int val4 ;
16115 int ecode4 = 0 ;
16116 bool val5 ;
16117 int ecode5 = 0 ;
16118 PyObject * obj0 = 0 ;
16119 PyObject * obj1 = 0 ;
16120 PyObject * obj2 = 0 ;
16121 PyObject * obj3 = 0 ;
16122 PyObject * obj4 = 0 ;
16123 char * kwnames[] = {
16124 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16125 };
16126
16127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16129 if (!SWIG_IsOK(res1)) {
16130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16131 }
16132 arg1 = reinterpret_cast< wxDC * >(argp1);
16133 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16134 if (!SWIG_IsOK(res2)) {
16135 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16136 }
16137 if (!argp2) {
16138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16139 }
16140 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16141 ecode3 = SWIG_AsVal_int(obj2, &val3);
16142 if (!SWIG_IsOK(ecode3)) {
16143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16144 }
16145 arg3 = static_cast< int >(val3);
16146 ecode4 = SWIG_AsVal_int(obj3, &val4);
16147 if (!SWIG_IsOK(ecode4)) {
16148 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16149 }
16150 arg4 = static_cast< int >(val4);
16151 if (obj4) {
16152 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16153 if (!SWIG_IsOK(ecode5)) {
16154 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16155 }
16156 arg5 = static_cast< bool >(val5);
16157 }
16158 {
16159 PyThreadState* __tstate = wxPyBeginAllowThreads();
16160 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
16161 wxPyEndAllowThreads(__tstate);
16162 if (PyErr_Occurred()) SWIG_fail;
16163 }
16164 resultobj = SWIG_Py_Void();
16165 return resultobj;
16166 fail:
16167 return NULL;
16168 }
16169
16170
16171 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16172 PyObject *resultobj = 0;
16173 wxDC *arg1 = (wxDC *) 0 ;
16174 wxBitmap *arg2 = 0 ;
16175 wxPoint *arg3 = 0 ;
16176 bool arg4 = (bool) false ;
16177 void *argp1 = 0 ;
16178 int res1 = 0 ;
16179 void *argp2 = 0 ;
16180 int res2 = 0 ;
16181 wxPoint temp3 ;
16182 bool val4 ;
16183 int ecode4 = 0 ;
16184 PyObject * obj0 = 0 ;
16185 PyObject * obj1 = 0 ;
16186 PyObject * obj2 = 0 ;
16187 PyObject * obj3 = 0 ;
16188 char * kwnames[] = {
16189 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16190 };
16191
16192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16194 if (!SWIG_IsOK(res1)) {
16195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16196 }
16197 arg1 = reinterpret_cast< wxDC * >(argp1);
16198 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16199 if (!SWIG_IsOK(res2)) {
16200 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16201 }
16202 if (!argp2) {
16203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16204 }
16205 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16206 {
16207 arg3 = &temp3;
16208 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16209 }
16210 if (obj3) {
16211 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16212 if (!SWIG_IsOK(ecode4)) {
16213 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16214 }
16215 arg4 = static_cast< bool >(val4);
16216 }
16217 {
16218 PyThreadState* __tstate = wxPyBeginAllowThreads();
16219 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
16220 wxPyEndAllowThreads(__tstate);
16221 if (PyErr_Occurred()) SWIG_fail;
16222 }
16223 resultobj = SWIG_Py_Void();
16224 return resultobj;
16225 fail:
16226 return NULL;
16227 }
16228
16229
16230 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16231 PyObject *resultobj = 0;
16232 wxDC *arg1 = (wxDC *) 0 ;
16233 wxString *arg2 = 0 ;
16234 int arg3 ;
16235 int arg4 ;
16236 void *argp1 = 0 ;
16237 int res1 = 0 ;
16238 bool temp2 = false ;
16239 int val3 ;
16240 int ecode3 = 0 ;
16241 int val4 ;
16242 int ecode4 = 0 ;
16243 PyObject * obj0 = 0 ;
16244 PyObject * obj1 = 0 ;
16245 PyObject * obj2 = 0 ;
16246 PyObject * obj3 = 0 ;
16247 char * kwnames[] = {
16248 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16249 };
16250
16251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16253 if (!SWIG_IsOK(res1)) {
16254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16255 }
16256 arg1 = reinterpret_cast< wxDC * >(argp1);
16257 {
16258 arg2 = wxString_in_helper(obj1);
16259 if (arg2 == NULL) SWIG_fail;
16260 temp2 = true;
16261 }
16262 ecode3 = SWIG_AsVal_int(obj2, &val3);
16263 if (!SWIG_IsOK(ecode3)) {
16264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16265 }
16266 arg3 = static_cast< int >(val3);
16267 ecode4 = SWIG_AsVal_int(obj3, &val4);
16268 if (!SWIG_IsOK(ecode4)) {
16269 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16270 }
16271 arg4 = static_cast< int >(val4);
16272 {
16273 PyThreadState* __tstate = wxPyBeginAllowThreads();
16274 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
16275 wxPyEndAllowThreads(__tstate);
16276 if (PyErr_Occurred()) SWIG_fail;
16277 }
16278 resultobj = SWIG_Py_Void();
16279 {
16280 if (temp2)
16281 delete arg2;
16282 }
16283 return resultobj;
16284 fail:
16285 {
16286 if (temp2)
16287 delete arg2;
16288 }
16289 return NULL;
16290 }
16291
16292
16293 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16294 PyObject *resultobj = 0;
16295 wxDC *arg1 = (wxDC *) 0 ;
16296 wxString *arg2 = 0 ;
16297 wxPoint *arg3 = 0 ;
16298 void *argp1 = 0 ;
16299 int res1 = 0 ;
16300 bool temp2 = false ;
16301 wxPoint temp3 ;
16302 PyObject * obj0 = 0 ;
16303 PyObject * obj1 = 0 ;
16304 PyObject * obj2 = 0 ;
16305 char * kwnames[] = {
16306 (char *) "self",(char *) "text",(char *) "pt", NULL
16307 };
16308
16309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16311 if (!SWIG_IsOK(res1)) {
16312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16313 }
16314 arg1 = reinterpret_cast< wxDC * >(argp1);
16315 {
16316 arg2 = wxString_in_helper(obj1);
16317 if (arg2 == NULL) SWIG_fail;
16318 temp2 = true;
16319 }
16320 {
16321 arg3 = &temp3;
16322 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16323 }
16324 {
16325 PyThreadState* __tstate = wxPyBeginAllowThreads();
16326 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
16327 wxPyEndAllowThreads(__tstate);
16328 if (PyErr_Occurred()) SWIG_fail;
16329 }
16330 resultobj = SWIG_Py_Void();
16331 {
16332 if (temp2)
16333 delete arg2;
16334 }
16335 return resultobj;
16336 fail:
16337 {
16338 if (temp2)
16339 delete arg2;
16340 }
16341 return NULL;
16342 }
16343
16344
16345 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16346 PyObject *resultobj = 0;
16347 wxDC *arg1 = (wxDC *) 0 ;
16348 wxString *arg2 = 0 ;
16349 int arg3 ;
16350 int arg4 ;
16351 double arg5 ;
16352 void *argp1 = 0 ;
16353 int res1 = 0 ;
16354 bool temp2 = false ;
16355 int val3 ;
16356 int ecode3 = 0 ;
16357 int val4 ;
16358 int ecode4 = 0 ;
16359 double val5 ;
16360 int ecode5 = 0 ;
16361 PyObject * obj0 = 0 ;
16362 PyObject * obj1 = 0 ;
16363 PyObject * obj2 = 0 ;
16364 PyObject * obj3 = 0 ;
16365 PyObject * obj4 = 0 ;
16366 char * kwnames[] = {
16367 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
16368 };
16369
16370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16372 if (!SWIG_IsOK(res1)) {
16373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
16374 }
16375 arg1 = reinterpret_cast< wxDC * >(argp1);
16376 {
16377 arg2 = wxString_in_helper(obj1);
16378 if (arg2 == NULL) SWIG_fail;
16379 temp2 = true;
16380 }
16381 ecode3 = SWIG_AsVal_int(obj2, &val3);
16382 if (!SWIG_IsOK(ecode3)) {
16383 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
16384 }
16385 arg3 = static_cast< int >(val3);
16386 ecode4 = SWIG_AsVal_int(obj3, &val4);
16387 if (!SWIG_IsOK(ecode4)) {
16388 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
16389 }
16390 arg4 = static_cast< int >(val4);
16391 ecode5 = SWIG_AsVal_double(obj4, &val5);
16392 if (!SWIG_IsOK(ecode5)) {
16393 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
16394 }
16395 arg5 = static_cast< double >(val5);
16396 {
16397 PyThreadState* __tstate = wxPyBeginAllowThreads();
16398 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
16399 wxPyEndAllowThreads(__tstate);
16400 if (PyErr_Occurred()) SWIG_fail;
16401 }
16402 resultobj = SWIG_Py_Void();
16403 {
16404 if (temp2)
16405 delete arg2;
16406 }
16407 return resultobj;
16408 fail:
16409 {
16410 if (temp2)
16411 delete arg2;
16412 }
16413 return NULL;
16414 }
16415
16416
16417 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16418 PyObject *resultobj = 0;
16419 wxDC *arg1 = (wxDC *) 0 ;
16420 wxString *arg2 = 0 ;
16421 wxPoint *arg3 = 0 ;
16422 double arg4 ;
16423 void *argp1 = 0 ;
16424 int res1 = 0 ;
16425 bool temp2 = false ;
16426 wxPoint temp3 ;
16427 double val4 ;
16428 int ecode4 = 0 ;
16429 PyObject * obj0 = 0 ;
16430 PyObject * obj1 = 0 ;
16431 PyObject * obj2 = 0 ;
16432 PyObject * obj3 = 0 ;
16433 char * kwnames[] = {
16434 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
16435 };
16436
16437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16439 if (!SWIG_IsOK(res1)) {
16440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16441 }
16442 arg1 = reinterpret_cast< wxDC * >(argp1);
16443 {
16444 arg2 = wxString_in_helper(obj1);
16445 if (arg2 == NULL) SWIG_fail;
16446 temp2 = true;
16447 }
16448 {
16449 arg3 = &temp3;
16450 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16451 }
16452 ecode4 = SWIG_AsVal_double(obj3, &val4);
16453 if (!SWIG_IsOK(ecode4)) {
16454 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
16455 }
16456 arg4 = static_cast< double >(val4);
16457 {
16458 PyThreadState* __tstate = wxPyBeginAllowThreads();
16459 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
16460 wxPyEndAllowThreads(__tstate);
16461 if (PyErr_Occurred()) SWIG_fail;
16462 }
16463 resultobj = SWIG_Py_Void();
16464 {
16465 if (temp2)
16466 delete arg2;
16467 }
16468 return resultobj;
16469 fail:
16470 {
16471 if (temp2)
16472 delete arg2;
16473 }
16474 return NULL;
16475 }
16476
16477
16478 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16479 PyObject *resultobj = 0;
16480 wxDC *arg1 = (wxDC *) 0 ;
16481 int arg2 ;
16482 int arg3 ;
16483 int arg4 ;
16484 int arg5 ;
16485 wxDC *arg6 = (wxDC *) 0 ;
16486 int arg7 ;
16487 int arg8 ;
16488 int arg9 = (int) wxCOPY ;
16489 bool arg10 = (bool) false ;
16490 int arg11 = (int) -1 ;
16491 int arg12 = (int) -1 ;
16492 bool result;
16493 void *argp1 = 0 ;
16494 int res1 = 0 ;
16495 int val2 ;
16496 int ecode2 = 0 ;
16497 int val3 ;
16498 int ecode3 = 0 ;
16499 int val4 ;
16500 int ecode4 = 0 ;
16501 int val5 ;
16502 int ecode5 = 0 ;
16503 void *argp6 = 0 ;
16504 int res6 = 0 ;
16505 int val7 ;
16506 int ecode7 = 0 ;
16507 int val8 ;
16508 int ecode8 = 0 ;
16509 int val9 ;
16510 int ecode9 = 0 ;
16511 bool val10 ;
16512 int ecode10 = 0 ;
16513 int val11 ;
16514 int ecode11 = 0 ;
16515 int val12 ;
16516 int ecode12 = 0 ;
16517 PyObject * obj0 = 0 ;
16518 PyObject * obj1 = 0 ;
16519 PyObject * obj2 = 0 ;
16520 PyObject * obj3 = 0 ;
16521 PyObject * obj4 = 0 ;
16522 PyObject * obj5 = 0 ;
16523 PyObject * obj6 = 0 ;
16524 PyObject * obj7 = 0 ;
16525 PyObject * obj8 = 0 ;
16526 PyObject * obj9 = 0 ;
16527 PyObject * obj10 = 0 ;
16528 PyObject * obj11 = 0 ;
16529 char * kwnames[] = {
16530 (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
16531 };
16532
16533 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;
16534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16535 if (!SWIG_IsOK(res1)) {
16536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
16537 }
16538 arg1 = reinterpret_cast< wxDC * >(argp1);
16539 ecode2 = SWIG_AsVal_int(obj1, &val2);
16540 if (!SWIG_IsOK(ecode2)) {
16541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
16542 }
16543 arg2 = static_cast< int >(val2);
16544 ecode3 = SWIG_AsVal_int(obj2, &val3);
16545 if (!SWIG_IsOK(ecode3)) {
16546 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
16547 }
16548 arg3 = static_cast< int >(val3);
16549 ecode4 = SWIG_AsVal_int(obj3, &val4);
16550 if (!SWIG_IsOK(ecode4)) {
16551 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
16552 }
16553 arg4 = static_cast< int >(val4);
16554 ecode5 = SWIG_AsVal_int(obj4, &val5);
16555 if (!SWIG_IsOK(ecode5)) {
16556 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
16557 }
16558 arg5 = static_cast< int >(val5);
16559 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
16560 if (!SWIG_IsOK(res6)) {
16561 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
16562 }
16563 arg6 = reinterpret_cast< wxDC * >(argp6);
16564 ecode7 = SWIG_AsVal_int(obj6, &val7);
16565 if (!SWIG_IsOK(ecode7)) {
16566 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
16567 }
16568 arg7 = static_cast< int >(val7);
16569 ecode8 = SWIG_AsVal_int(obj7, &val8);
16570 if (!SWIG_IsOK(ecode8)) {
16571 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
16572 }
16573 arg8 = static_cast< int >(val8);
16574 if (obj8) {
16575 ecode9 = SWIG_AsVal_int(obj8, &val9);
16576 if (!SWIG_IsOK(ecode9)) {
16577 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
16578 }
16579 arg9 = static_cast< int >(val9);
16580 }
16581 if (obj9) {
16582 ecode10 = SWIG_AsVal_bool(obj9, &val10);
16583 if (!SWIG_IsOK(ecode10)) {
16584 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
16585 }
16586 arg10 = static_cast< bool >(val10);
16587 }
16588 if (obj10) {
16589 ecode11 = SWIG_AsVal_int(obj10, &val11);
16590 if (!SWIG_IsOK(ecode11)) {
16591 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
16592 }
16593 arg11 = static_cast< int >(val11);
16594 }
16595 if (obj11) {
16596 ecode12 = SWIG_AsVal_int(obj11, &val12);
16597 if (!SWIG_IsOK(ecode12)) {
16598 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
16599 }
16600 arg12 = static_cast< int >(val12);
16601 }
16602 {
16603 PyThreadState* __tstate = wxPyBeginAllowThreads();
16604 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
16605 wxPyEndAllowThreads(__tstate);
16606 if (PyErr_Occurred()) SWIG_fail;
16607 }
16608 {
16609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16610 }
16611 return resultobj;
16612 fail:
16613 return NULL;
16614 }
16615
16616
16617 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16618 PyObject *resultobj = 0;
16619 wxDC *arg1 = (wxDC *) 0 ;
16620 wxPoint *arg2 = 0 ;
16621 wxSize *arg3 = 0 ;
16622 wxDC *arg4 = (wxDC *) 0 ;
16623 wxPoint *arg5 = 0 ;
16624 int arg6 = (int) wxCOPY ;
16625 bool arg7 = (bool) false ;
16626 wxPoint const &arg8_defvalue = wxDefaultPosition ;
16627 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
16628 bool result;
16629 void *argp1 = 0 ;
16630 int res1 = 0 ;
16631 wxPoint temp2 ;
16632 wxSize temp3 ;
16633 void *argp4 = 0 ;
16634 int res4 = 0 ;
16635 wxPoint temp5 ;
16636 int val6 ;
16637 int ecode6 = 0 ;
16638 bool val7 ;
16639 int ecode7 = 0 ;
16640 wxPoint temp8 ;
16641 PyObject * obj0 = 0 ;
16642 PyObject * obj1 = 0 ;
16643 PyObject * obj2 = 0 ;
16644 PyObject * obj3 = 0 ;
16645 PyObject * obj4 = 0 ;
16646 PyObject * obj5 = 0 ;
16647 PyObject * obj6 = 0 ;
16648 PyObject * obj7 = 0 ;
16649 char * kwnames[] = {
16650 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
16651 };
16652
16653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16655 if (!SWIG_IsOK(res1)) {
16656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16657 }
16658 arg1 = reinterpret_cast< wxDC * >(argp1);
16659 {
16660 arg2 = &temp2;
16661 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16662 }
16663 {
16664 arg3 = &temp3;
16665 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16666 }
16667 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
16668 if (!SWIG_IsOK(res4)) {
16669 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
16670 }
16671 arg4 = reinterpret_cast< wxDC * >(argp4);
16672 {
16673 arg5 = &temp5;
16674 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16675 }
16676 if (obj5) {
16677 ecode6 = SWIG_AsVal_int(obj5, &val6);
16678 if (!SWIG_IsOK(ecode6)) {
16679 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
16680 }
16681 arg6 = static_cast< int >(val6);
16682 }
16683 if (obj6) {
16684 ecode7 = SWIG_AsVal_bool(obj6, &val7);
16685 if (!SWIG_IsOK(ecode7)) {
16686 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
16687 }
16688 arg7 = static_cast< bool >(val7);
16689 }
16690 if (obj7) {
16691 {
16692 arg8 = &temp8;
16693 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
16694 }
16695 }
16696 {
16697 PyThreadState* __tstate = wxPyBeginAllowThreads();
16698 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
16699 wxPyEndAllowThreads(__tstate);
16700 if (PyErr_Occurred()) SWIG_fail;
16701 }
16702 {
16703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16704 }
16705 return resultobj;
16706 fail:
16707 return NULL;
16708 }
16709
16710
16711 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16712 PyObject *resultobj = 0;
16713 wxDC *arg1 = (wxDC *) 0 ;
16714 int arg2 ;
16715 int arg3 ;
16716 int arg4 ;
16717 int arg5 ;
16718 void *argp1 = 0 ;
16719 int res1 = 0 ;
16720 int val2 ;
16721 int ecode2 = 0 ;
16722 int val3 ;
16723 int ecode3 = 0 ;
16724 int val4 ;
16725 int ecode4 = 0 ;
16726 int val5 ;
16727 int ecode5 = 0 ;
16728 PyObject * obj0 = 0 ;
16729 PyObject * obj1 = 0 ;
16730 PyObject * obj2 = 0 ;
16731 PyObject * obj3 = 0 ;
16732 PyObject * obj4 = 0 ;
16733 char * kwnames[] = {
16734 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16735 };
16736
16737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16739 if (!SWIG_IsOK(res1)) {
16740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16741 }
16742 arg1 = reinterpret_cast< wxDC * >(argp1);
16743 ecode2 = SWIG_AsVal_int(obj1, &val2);
16744 if (!SWIG_IsOK(ecode2)) {
16745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
16746 }
16747 arg2 = static_cast< int >(val2);
16748 ecode3 = SWIG_AsVal_int(obj2, &val3);
16749 if (!SWIG_IsOK(ecode3)) {
16750 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
16751 }
16752 arg3 = static_cast< int >(val3);
16753 ecode4 = SWIG_AsVal_int(obj3, &val4);
16754 if (!SWIG_IsOK(ecode4)) {
16755 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
16756 }
16757 arg4 = static_cast< int >(val4);
16758 ecode5 = SWIG_AsVal_int(obj4, &val5);
16759 if (!SWIG_IsOK(ecode5)) {
16760 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
16761 }
16762 arg5 = static_cast< int >(val5);
16763 {
16764 PyThreadState* __tstate = wxPyBeginAllowThreads();
16765 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
16766 wxPyEndAllowThreads(__tstate);
16767 if (PyErr_Occurred()) SWIG_fail;
16768 }
16769 resultobj = SWIG_Py_Void();
16770 return resultobj;
16771 fail:
16772 return NULL;
16773 }
16774
16775
16776 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16777 PyObject *resultobj = 0;
16778 wxDC *arg1 = (wxDC *) 0 ;
16779 wxPoint *arg2 = 0 ;
16780 wxSize *arg3 = 0 ;
16781 void *argp1 = 0 ;
16782 int res1 = 0 ;
16783 wxPoint temp2 ;
16784 wxSize temp3 ;
16785 PyObject * obj0 = 0 ;
16786 PyObject * obj1 = 0 ;
16787 PyObject * obj2 = 0 ;
16788 char * kwnames[] = {
16789 (char *) "self",(char *) "pt",(char *) "sz", NULL
16790 };
16791
16792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16794 if (!SWIG_IsOK(res1)) {
16795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16796 }
16797 arg1 = reinterpret_cast< wxDC * >(argp1);
16798 {
16799 arg2 = &temp2;
16800 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16801 }
16802 {
16803 arg3 = &temp3;
16804 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16805 }
16806 {
16807 PyThreadState* __tstate = wxPyBeginAllowThreads();
16808 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
16809 wxPyEndAllowThreads(__tstate);
16810 if (PyErr_Occurred()) SWIG_fail;
16811 }
16812 resultobj = SWIG_Py_Void();
16813 return resultobj;
16814 fail:
16815 return NULL;
16816 }
16817
16818
16819 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16820 PyObject *resultobj = 0;
16821 wxDC *arg1 = (wxDC *) 0 ;
16822 wxRegion *arg2 = 0 ;
16823 void *argp1 = 0 ;
16824 int res1 = 0 ;
16825 void *argp2 = 0 ;
16826 int res2 = 0 ;
16827 PyObject * obj0 = 0 ;
16828 PyObject * obj1 = 0 ;
16829 char * kwnames[] = {
16830 (char *) "self",(char *) "region", NULL
16831 };
16832
16833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
16834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16835 if (!SWIG_IsOK(res1)) {
16836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16837 }
16838 arg1 = reinterpret_cast< wxDC * >(argp1);
16839 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
16840 if (!SWIG_IsOK(res2)) {
16841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16842 }
16843 if (!argp2) {
16844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16845 }
16846 arg2 = reinterpret_cast< wxRegion * >(argp2);
16847 {
16848 PyThreadState* __tstate = wxPyBeginAllowThreads();
16849 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
16850 wxPyEndAllowThreads(__tstate);
16851 if (PyErr_Occurred()) SWIG_fail;
16852 }
16853 resultobj = SWIG_Py_Void();
16854 return resultobj;
16855 fail:
16856 return NULL;
16857 }
16858
16859
16860 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16861 PyObject *resultobj = 0;
16862 wxDC *arg1 = (wxDC *) 0 ;
16863 wxRect *arg2 = 0 ;
16864 void *argp1 = 0 ;
16865 int res1 = 0 ;
16866 wxRect temp2 ;
16867 PyObject * obj0 = 0 ;
16868 PyObject * obj1 = 0 ;
16869 char * kwnames[] = {
16870 (char *) "self",(char *) "rect", NULL
16871 };
16872
16873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
16874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16875 if (!SWIG_IsOK(res1)) {
16876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
16877 }
16878 arg1 = reinterpret_cast< wxDC * >(argp1);
16879 {
16880 arg2 = &temp2;
16881 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16882 }
16883 {
16884 PyThreadState* __tstate = wxPyBeginAllowThreads();
16885 (arg1)->SetClippingRegion((wxRect const &)*arg2);
16886 wxPyEndAllowThreads(__tstate);
16887 if (PyErr_Occurred()) SWIG_fail;
16888 }
16889 resultobj = SWIG_Py_Void();
16890 return resultobj;
16891 fail:
16892 return NULL;
16893 }
16894
16895
16896 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16897 PyObject *resultobj = 0;
16898 wxDC *arg1 = (wxDC *) 0 ;
16899 int arg2 ;
16900 wxPoint *arg3 = (wxPoint *) 0 ;
16901 int arg4 = (int) 0 ;
16902 int arg5 = (int) 0 ;
16903 void *argp1 = 0 ;
16904 int res1 = 0 ;
16905 int val4 ;
16906 int ecode4 = 0 ;
16907 int val5 ;
16908 int ecode5 = 0 ;
16909 PyObject * obj0 = 0 ;
16910 PyObject * obj1 = 0 ;
16911 PyObject * obj2 = 0 ;
16912 PyObject * obj3 = 0 ;
16913 char * kwnames[] = {
16914 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
16915 };
16916
16917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16919 if (!SWIG_IsOK(res1)) {
16920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
16921 }
16922 arg1 = reinterpret_cast< wxDC * >(argp1);
16923 {
16924 arg3 = wxPoint_LIST_helper(obj1, &arg2);
16925 if (arg3 == NULL) SWIG_fail;
16926 }
16927 if (obj2) {
16928 ecode4 = SWIG_AsVal_int(obj2, &val4);
16929 if (!SWIG_IsOK(ecode4)) {
16930 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
16931 }
16932 arg4 = static_cast< int >(val4);
16933 }
16934 if (obj3) {
16935 ecode5 = SWIG_AsVal_int(obj3, &val5);
16936 if (!SWIG_IsOK(ecode5)) {
16937 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
16938 }
16939 arg5 = static_cast< int >(val5);
16940 }
16941 {
16942 PyThreadState* __tstate = wxPyBeginAllowThreads();
16943 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
16944 wxPyEndAllowThreads(__tstate);
16945 if (PyErr_Occurred()) SWIG_fail;
16946 }
16947 resultobj = SWIG_Py_Void();
16948 {
16949 if (arg3) delete [] arg3;
16950 }
16951 return resultobj;
16952 fail:
16953 {
16954 if (arg3) delete [] arg3;
16955 }
16956 return NULL;
16957 }
16958
16959
16960 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16961 PyObject *resultobj = 0;
16962 wxDC *arg1 = (wxDC *) 0 ;
16963 int arg2 ;
16964 wxPoint *arg3 = (wxPoint *) 0 ;
16965 int arg4 = (int) 0 ;
16966 int arg5 = (int) 0 ;
16967 int arg6 = (int) wxODDEVEN_RULE ;
16968 void *argp1 = 0 ;
16969 int res1 = 0 ;
16970 int val4 ;
16971 int ecode4 = 0 ;
16972 int val5 ;
16973 int ecode5 = 0 ;
16974 int val6 ;
16975 int ecode6 = 0 ;
16976 PyObject * obj0 = 0 ;
16977 PyObject * obj1 = 0 ;
16978 PyObject * obj2 = 0 ;
16979 PyObject * obj3 = 0 ;
16980 PyObject * obj4 = 0 ;
16981 char * kwnames[] = {
16982 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
16983 };
16984
16985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16987 if (!SWIG_IsOK(res1)) {
16988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
16989 }
16990 arg1 = reinterpret_cast< wxDC * >(argp1);
16991 {
16992 arg3 = wxPoint_LIST_helper(obj1, &arg2);
16993 if (arg3 == NULL) SWIG_fail;
16994 }
16995 if (obj2) {
16996 ecode4 = SWIG_AsVal_int(obj2, &val4);
16997 if (!SWIG_IsOK(ecode4)) {
16998 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
16999 }
17000 arg4 = static_cast< int >(val4);
17001 }
17002 if (obj3) {
17003 ecode5 = SWIG_AsVal_int(obj3, &val5);
17004 if (!SWIG_IsOK(ecode5)) {
17005 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
17006 }
17007 arg5 = static_cast< int >(val5);
17008 }
17009 if (obj4) {
17010 ecode6 = SWIG_AsVal_int(obj4, &val6);
17011 if (!SWIG_IsOK(ecode6)) {
17012 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
17013 }
17014 arg6 = static_cast< int >(val6);
17015 }
17016 {
17017 PyThreadState* __tstate = wxPyBeginAllowThreads();
17018 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
17019 wxPyEndAllowThreads(__tstate);
17020 if (PyErr_Occurred()) SWIG_fail;
17021 }
17022 resultobj = SWIG_Py_Void();
17023 {
17024 if (arg3) delete [] arg3;
17025 }
17026 return resultobj;
17027 fail:
17028 {
17029 if (arg3) delete [] arg3;
17030 }
17031 return NULL;
17032 }
17033
17034
17035 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17036 PyObject *resultobj = 0;
17037 wxDC *arg1 = (wxDC *) 0 ;
17038 wxString *arg2 = 0 ;
17039 wxRect *arg3 = 0 ;
17040 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17041 int arg5 = (int) -1 ;
17042 void *argp1 = 0 ;
17043 int res1 = 0 ;
17044 bool temp2 = false ;
17045 wxRect temp3 ;
17046 int val4 ;
17047 int ecode4 = 0 ;
17048 int val5 ;
17049 int ecode5 = 0 ;
17050 PyObject * obj0 = 0 ;
17051 PyObject * obj1 = 0 ;
17052 PyObject * obj2 = 0 ;
17053 PyObject * obj3 = 0 ;
17054 PyObject * obj4 = 0 ;
17055 char * kwnames[] = {
17056 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17057 };
17058
17059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17061 if (!SWIG_IsOK(res1)) {
17062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17063 }
17064 arg1 = reinterpret_cast< wxDC * >(argp1);
17065 {
17066 arg2 = wxString_in_helper(obj1);
17067 if (arg2 == NULL) SWIG_fail;
17068 temp2 = true;
17069 }
17070 {
17071 arg3 = &temp3;
17072 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17073 }
17074 if (obj3) {
17075 ecode4 = SWIG_AsVal_int(obj3, &val4);
17076 if (!SWIG_IsOK(ecode4)) {
17077 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17078 }
17079 arg4 = static_cast< int >(val4);
17080 }
17081 if (obj4) {
17082 ecode5 = SWIG_AsVal_int(obj4, &val5);
17083 if (!SWIG_IsOK(ecode5)) {
17084 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17085 }
17086 arg5 = static_cast< int >(val5);
17087 }
17088 {
17089 PyThreadState* __tstate = wxPyBeginAllowThreads();
17090 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
17091 wxPyEndAllowThreads(__tstate);
17092 if (PyErr_Occurred()) SWIG_fail;
17093 }
17094 resultobj = SWIG_Py_Void();
17095 {
17096 if (temp2)
17097 delete arg2;
17098 }
17099 return resultobj;
17100 fail:
17101 {
17102 if (temp2)
17103 delete arg2;
17104 }
17105 return NULL;
17106 }
17107
17108
17109 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17110 PyObject *resultobj = 0;
17111 wxDC *arg1 = (wxDC *) 0 ;
17112 wxString *arg2 = 0 ;
17113 wxBitmap *arg3 = 0 ;
17114 wxRect *arg4 = 0 ;
17115 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17116 int arg6 = (int) -1 ;
17117 wxRect result;
17118 void *argp1 = 0 ;
17119 int res1 = 0 ;
17120 bool temp2 = false ;
17121 void *argp3 = 0 ;
17122 int res3 = 0 ;
17123 wxRect temp4 ;
17124 int val5 ;
17125 int ecode5 = 0 ;
17126 int val6 ;
17127 int ecode6 = 0 ;
17128 PyObject * obj0 = 0 ;
17129 PyObject * obj1 = 0 ;
17130 PyObject * obj2 = 0 ;
17131 PyObject * obj3 = 0 ;
17132 PyObject * obj4 = 0 ;
17133 PyObject * obj5 = 0 ;
17134 char * kwnames[] = {
17135 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17136 };
17137
17138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17140 if (!SWIG_IsOK(res1)) {
17141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17142 }
17143 arg1 = reinterpret_cast< wxDC * >(argp1);
17144 {
17145 arg2 = wxString_in_helper(obj1);
17146 if (arg2 == NULL) SWIG_fail;
17147 temp2 = true;
17148 }
17149 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
17150 if (!SWIG_IsOK(res3)) {
17151 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17152 }
17153 if (!argp3) {
17154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17155 }
17156 arg3 = reinterpret_cast< wxBitmap * >(argp3);
17157 {
17158 arg4 = &temp4;
17159 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
17160 }
17161 if (obj4) {
17162 ecode5 = SWIG_AsVal_int(obj4, &val5);
17163 if (!SWIG_IsOK(ecode5)) {
17164 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17165 }
17166 arg5 = static_cast< int >(val5);
17167 }
17168 if (obj5) {
17169 ecode6 = SWIG_AsVal_int(obj5, &val6);
17170 if (!SWIG_IsOK(ecode6)) {
17171 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17172 }
17173 arg6 = static_cast< int >(val6);
17174 }
17175 {
17176 PyThreadState* __tstate = wxPyBeginAllowThreads();
17177 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
17178 wxPyEndAllowThreads(__tstate);
17179 if (PyErr_Occurred()) SWIG_fail;
17180 }
17181 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17182 {
17183 if (temp2)
17184 delete arg2;
17185 }
17186 return resultobj;
17187 fail:
17188 {
17189 if (temp2)
17190 delete arg2;
17191 }
17192 return NULL;
17193 }
17194
17195
17196 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17197 PyObject *resultobj = 0;
17198 wxDC *arg1 = (wxDC *) 0 ;
17199 int arg2 ;
17200 wxPoint *arg3 = (wxPoint *) 0 ;
17201 void *argp1 = 0 ;
17202 int res1 = 0 ;
17203 PyObject * obj0 = 0 ;
17204 PyObject * obj1 = 0 ;
17205 char * kwnames[] = {
17206 (char *) "self",(char *) "points", NULL
17207 };
17208
17209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
17210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17211 if (!SWIG_IsOK(res1)) {
17212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17213 }
17214 arg1 = reinterpret_cast< wxDC * >(argp1);
17215 {
17216 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17217 if (arg3 == NULL) SWIG_fail;
17218 }
17219 {
17220 PyThreadState* __tstate = wxPyBeginAllowThreads();
17221 (arg1)->DrawSpline(arg2,arg3);
17222 wxPyEndAllowThreads(__tstate);
17223 if (PyErr_Occurred()) SWIG_fail;
17224 }
17225 resultobj = SWIG_Py_Void();
17226 {
17227 if (arg3) delete [] arg3;
17228 }
17229 return resultobj;
17230 fail:
17231 {
17232 if (arg3) delete [] arg3;
17233 }
17234 return NULL;
17235 }
17236
17237
17238 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17239 PyObject *resultobj = 0;
17240 wxDC *arg1 = (wxDC *) 0 ;
17241 void *argp1 = 0 ;
17242 int res1 = 0 ;
17243 PyObject *swig_obj[1] ;
17244
17245 if (!args) SWIG_fail;
17246 swig_obj[0] = args;
17247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17248 if (!SWIG_IsOK(res1)) {
17249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17250 }
17251 arg1 = reinterpret_cast< wxDC * >(argp1);
17252 {
17253 PyThreadState* __tstate = wxPyBeginAllowThreads();
17254 (arg1)->Clear();
17255 wxPyEndAllowThreads(__tstate);
17256 if (PyErr_Occurred()) SWIG_fail;
17257 }
17258 resultobj = SWIG_Py_Void();
17259 return resultobj;
17260 fail:
17261 return NULL;
17262 }
17263
17264
17265 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17266 PyObject *resultobj = 0;
17267 wxDC *arg1 = (wxDC *) 0 ;
17268 wxString *arg2 = 0 ;
17269 bool result;
17270 void *argp1 = 0 ;
17271 int res1 = 0 ;
17272 bool temp2 = false ;
17273 PyObject * obj0 = 0 ;
17274 PyObject * obj1 = 0 ;
17275 char * kwnames[] = {
17276 (char *) "self",(char *) "message", NULL
17277 };
17278
17279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
17280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17281 if (!SWIG_IsOK(res1)) {
17282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17283 }
17284 arg1 = reinterpret_cast< wxDC * >(argp1);
17285 {
17286 arg2 = wxString_in_helper(obj1);
17287 if (arg2 == NULL) SWIG_fail;
17288 temp2 = true;
17289 }
17290 {
17291 PyThreadState* __tstate = wxPyBeginAllowThreads();
17292 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
17293 wxPyEndAllowThreads(__tstate);
17294 if (PyErr_Occurred()) SWIG_fail;
17295 }
17296 {
17297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17298 }
17299 {
17300 if (temp2)
17301 delete arg2;
17302 }
17303 return resultobj;
17304 fail:
17305 {
17306 if (temp2)
17307 delete arg2;
17308 }
17309 return NULL;
17310 }
17311
17312
17313 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17314 PyObject *resultobj = 0;
17315 wxDC *arg1 = (wxDC *) 0 ;
17316 void *argp1 = 0 ;
17317 int res1 = 0 ;
17318 PyObject *swig_obj[1] ;
17319
17320 if (!args) SWIG_fail;
17321 swig_obj[0] = args;
17322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17323 if (!SWIG_IsOK(res1)) {
17324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17325 }
17326 arg1 = reinterpret_cast< wxDC * >(argp1);
17327 {
17328 PyThreadState* __tstate = wxPyBeginAllowThreads();
17329 (arg1)->EndDoc();
17330 wxPyEndAllowThreads(__tstate);
17331 if (PyErr_Occurred()) SWIG_fail;
17332 }
17333 resultobj = SWIG_Py_Void();
17334 return resultobj;
17335 fail:
17336 return NULL;
17337 }
17338
17339
17340 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17341 PyObject *resultobj = 0;
17342 wxDC *arg1 = (wxDC *) 0 ;
17343 void *argp1 = 0 ;
17344 int res1 = 0 ;
17345 PyObject *swig_obj[1] ;
17346
17347 if (!args) SWIG_fail;
17348 swig_obj[0] = args;
17349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17350 if (!SWIG_IsOK(res1)) {
17351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
17352 }
17353 arg1 = reinterpret_cast< wxDC * >(argp1);
17354 {
17355 PyThreadState* __tstate = wxPyBeginAllowThreads();
17356 (arg1)->StartPage();
17357 wxPyEndAllowThreads(__tstate);
17358 if (PyErr_Occurred()) SWIG_fail;
17359 }
17360 resultobj = SWIG_Py_Void();
17361 return resultobj;
17362 fail:
17363 return NULL;
17364 }
17365
17366
17367 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17368 PyObject *resultobj = 0;
17369 wxDC *arg1 = (wxDC *) 0 ;
17370 void *argp1 = 0 ;
17371 int res1 = 0 ;
17372 PyObject *swig_obj[1] ;
17373
17374 if (!args) SWIG_fail;
17375 swig_obj[0] = args;
17376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17377 if (!SWIG_IsOK(res1)) {
17378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
17379 }
17380 arg1 = reinterpret_cast< wxDC * >(argp1);
17381 {
17382 PyThreadState* __tstate = wxPyBeginAllowThreads();
17383 (arg1)->EndPage();
17384 wxPyEndAllowThreads(__tstate);
17385 if (PyErr_Occurred()) SWIG_fail;
17386 }
17387 resultobj = SWIG_Py_Void();
17388 return resultobj;
17389 fail:
17390 return NULL;
17391 }
17392
17393
17394 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17395 PyObject *resultobj = 0;
17396 wxDC *arg1 = (wxDC *) 0 ;
17397 wxFont *arg2 = 0 ;
17398 void *argp1 = 0 ;
17399 int res1 = 0 ;
17400 void *argp2 = 0 ;
17401 int res2 = 0 ;
17402 PyObject * obj0 = 0 ;
17403 PyObject * obj1 = 0 ;
17404 char * kwnames[] = {
17405 (char *) "self",(char *) "font", NULL
17406 };
17407
17408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
17409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17410 if (!SWIG_IsOK(res1)) {
17411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
17412 }
17413 arg1 = reinterpret_cast< wxDC * >(argp1);
17414 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
17415 if (!SWIG_IsOK(res2)) {
17416 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17417 }
17418 if (!argp2) {
17419 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17420 }
17421 arg2 = reinterpret_cast< wxFont * >(argp2);
17422 {
17423 PyThreadState* __tstate = wxPyBeginAllowThreads();
17424 (arg1)->SetFont((wxFont const &)*arg2);
17425 wxPyEndAllowThreads(__tstate);
17426 if (PyErr_Occurred()) SWIG_fail;
17427 }
17428 resultobj = SWIG_Py_Void();
17429 return resultobj;
17430 fail:
17431 return NULL;
17432 }
17433
17434
17435 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17436 PyObject *resultobj = 0;
17437 wxDC *arg1 = (wxDC *) 0 ;
17438 wxPen *arg2 = 0 ;
17439 void *argp1 = 0 ;
17440 int res1 = 0 ;
17441 void *argp2 = 0 ;
17442 int res2 = 0 ;
17443 PyObject * obj0 = 0 ;
17444 PyObject * obj1 = 0 ;
17445 char * kwnames[] = {
17446 (char *) "self",(char *) "pen", NULL
17447 };
17448
17449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
17450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17451 if (!SWIG_IsOK(res1)) {
17452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
17453 }
17454 arg1 = reinterpret_cast< wxDC * >(argp1);
17455 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
17456 if (!SWIG_IsOK(res2)) {
17457 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17458 }
17459 if (!argp2) {
17460 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17461 }
17462 arg2 = reinterpret_cast< wxPen * >(argp2);
17463 {
17464 PyThreadState* __tstate = wxPyBeginAllowThreads();
17465 (arg1)->SetPen((wxPen const &)*arg2);
17466 wxPyEndAllowThreads(__tstate);
17467 if (PyErr_Occurred()) SWIG_fail;
17468 }
17469 resultobj = SWIG_Py_Void();
17470 return resultobj;
17471 fail:
17472 return NULL;
17473 }
17474
17475
17476 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17477 PyObject *resultobj = 0;
17478 wxDC *arg1 = (wxDC *) 0 ;
17479 wxBrush *arg2 = 0 ;
17480 void *argp1 = 0 ;
17481 int res1 = 0 ;
17482 void *argp2 = 0 ;
17483 int res2 = 0 ;
17484 PyObject * obj0 = 0 ;
17485 PyObject * obj1 = 0 ;
17486 char * kwnames[] = {
17487 (char *) "self",(char *) "brush", NULL
17488 };
17489
17490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
17491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17492 if (!SWIG_IsOK(res1)) {
17493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
17494 }
17495 arg1 = reinterpret_cast< wxDC * >(argp1);
17496 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17497 if (!SWIG_IsOK(res2)) {
17498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17499 }
17500 if (!argp2) {
17501 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17502 }
17503 arg2 = reinterpret_cast< wxBrush * >(argp2);
17504 {
17505 PyThreadState* __tstate = wxPyBeginAllowThreads();
17506 (arg1)->SetBrush((wxBrush const &)*arg2);
17507 wxPyEndAllowThreads(__tstate);
17508 if (PyErr_Occurred()) SWIG_fail;
17509 }
17510 resultobj = SWIG_Py_Void();
17511 return resultobj;
17512 fail:
17513 return NULL;
17514 }
17515
17516
17517 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17518 PyObject *resultobj = 0;
17519 wxDC *arg1 = (wxDC *) 0 ;
17520 wxBrush *arg2 = 0 ;
17521 void *argp1 = 0 ;
17522 int res1 = 0 ;
17523 void *argp2 = 0 ;
17524 int res2 = 0 ;
17525 PyObject * obj0 = 0 ;
17526 PyObject * obj1 = 0 ;
17527 char * kwnames[] = {
17528 (char *) "self",(char *) "brush", NULL
17529 };
17530
17531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
17532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17533 if (!SWIG_IsOK(res1)) {
17534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
17535 }
17536 arg1 = reinterpret_cast< wxDC * >(argp1);
17537 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17538 if (!SWIG_IsOK(res2)) {
17539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17540 }
17541 if (!argp2) {
17542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17543 }
17544 arg2 = reinterpret_cast< wxBrush * >(argp2);
17545 {
17546 PyThreadState* __tstate = wxPyBeginAllowThreads();
17547 (arg1)->SetBackground((wxBrush const &)*arg2);
17548 wxPyEndAllowThreads(__tstate);
17549 if (PyErr_Occurred()) SWIG_fail;
17550 }
17551 resultobj = SWIG_Py_Void();
17552 return resultobj;
17553 fail:
17554 return NULL;
17555 }
17556
17557
17558 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17559 PyObject *resultobj = 0;
17560 wxDC *arg1 = (wxDC *) 0 ;
17561 int arg2 ;
17562 void *argp1 = 0 ;
17563 int res1 = 0 ;
17564 int val2 ;
17565 int ecode2 = 0 ;
17566 PyObject * obj0 = 0 ;
17567 PyObject * obj1 = 0 ;
17568 char * kwnames[] = {
17569 (char *) "self",(char *) "mode", NULL
17570 };
17571
17572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
17573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17574 if (!SWIG_IsOK(res1)) {
17575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
17576 }
17577 arg1 = reinterpret_cast< wxDC * >(argp1);
17578 ecode2 = SWIG_AsVal_int(obj1, &val2);
17579 if (!SWIG_IsOK(ecode2)) {
17580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
17581 }
17582 arg2 = static_cast< int >(val2);
17583 {
17584 PyThreadState* __tstate = wxPyBeginAllowThreads();
17585 (arg1)->SetBackgroundMode(arg2);
17586 wxPyEndAllowThreads(__tstate);
17587 if (PyErr_Occurred()) SWIG_fail;
17588 }
17589 resultobj = SWIG_Py_Void();
17590 return resultobj;
17591 fail:
17592 return NULL;
17593 }
17594
17595
17596 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17597 PyObject *resultobj = 0;
17598 wxDC *arg1 = (wxDC *) 0 ;
17599 wxPalette *arg2 = 0 ;
17600 void *argp1 = 0 ;
17601 int res1 = 0 ;
17602 void *argp2 = 0 ;
17603 int res2 = 0 ;
17604 PyObject * obj0 = 0 ;
17605 PyObject * obj1 = 0 ;
17606 char * kwnames[] = {
17607 (char *) "self",(char *) "palette", NULL
17608 };
17609
17610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
17611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17612 if (!SWIG_IsOK(res1)) {
17613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
17614 }
17615 arg1 = reinterpret_cast< wxDC * >(argp1);
17616 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
17617 if (!SWIG_IsOK(res2)) {
17618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17619 }
17620 if (!argp2) {
17621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17622 }
17623 arg2 = reinterpret_cast< wxPalette * >(argp2);
17624 {
17625 PyThreadState* __tstate = wxPyBeginAllowThreads();
17626 (arg1)->SetPalette((wxPalette const &)*arg2);
17627 wxPyEndAllowThreads(__tstate);
17628 if (PyErr_Occurred()) SWIG_fail;
17629 }
17630 resultobj = SWIG_Py_Void();
17631 return resultobj;
17632 fail:
17633 return NULL;
17634 }
17635
17636
17637 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17638 PyObject *resultobj = 0;
17639 wxDC *arg1 = (wxDC *) 0 ;
17640 void *argp1 = 0 ;
17641 int res1 = 0 ;
17642 PyObject *swig_obj[1] ;
17643
17644 if (!args) SWIG_fail;
17645 swig_obj[0] = args;
17646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17647 if (!SWIG_IsOK(res1)) {
17648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17649 }
17650 arg1 = reinterpret_cast< wxDC * >(argp1);
17651 {
17652 PyThreadState* __tstate = wxPyBeginAllowThreads();
17653 (arg1)->DestroyClippingRegion();
17654 wxPyEndAllowThreads(__tstate);
17655 if (PyErr_Occurred()) SWIG_fail;
17656 }
17657 resultobj = SWIG_Py_Void();
17658 return resultobj;
17659 fail:
17660 return NULL;
17661 }
17662
17663
17664 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17665 PyObject *resultobj = 0;
17666 wxDC *arg1 = (wxDC *) 0 ;
17667 int *arg2 = (int *) 0 ;
17668 int *arg3 = (int *) 0 ;
17669 int *arg4 = (int *) 0 ;
17670 int *arg5 = (int *) 0 ;
17671 void *argp1 = 0 ;
17672 int res1 = 0 ;
17673 int temp2 ;
17674 int res2 = SWIG_TMPOBJ ;
17675 int temp3 ;
17676 int res3 = SWIG_TMPOBJ ;
17677 int temp4 ;
17678 int res4 = SWIG_TMPOBJ ;
17679 int temp5 ;
17680 int res5 = SWIG_TMPOBJ ;
17681 PyObject *swig_obj[1] ;
17682
17683 arg2 = &temp2;
17684 arg3 = &temp3;
17685 arg4 = &temp4;
17686 arg5 = &temp5;
17687 if (!args) SWIG_fail;
17688 swig_obj[0] = args;
17689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17690 if (!SWIG_IsOK(res1)) {
17691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
17692 }
17693 arg1 = reinterpret_cast< wxDC * >(argp1);
17694 {
17695 PyThreadState* __tstate = wxPyBeginAllowThreads();
17696 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
17697 wxPyEndAllowThreads(__tstate);
17698 if (PyErr_Occurred()) SWIG_fail;
17699 }
17700 resultobj = SWIG_Py_Void();
17701 if (SWIG_IsTmpObj(res2)) {
17702 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
17703 } else {
17704 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17705 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
17706 }
17707 if (SWIG_IsTmpObj(res3)) {
17708 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17709 } else {
17710 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17711 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17712 }
17713 if (SWIG_IsTmpObj(res4)) {
17714 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17715 } else {
17716 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17717 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17718 }
17719 if (SWIG_IsTmpObj(res5)) {
17720 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17721 } else {
17722 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17723 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17724 }
17725 return resultobj;
17726 fail:
17727 return NULL;
17728 }
17729
17730
17731 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17732 PyObject *resultobj = 0;
17733 wxDC *arg1 = (wxDC *) 0 ;
17734 wxRect result;
17735 void *argp1 = 0 ;
17736 int res1 = 0 ;
17737 PyObject *swig_obj[1] ;
17738
17739 if (!args) SWIG_fail;
17740 swig_obj[0] = args;
17741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17742 if (!SWIG_IsOK(res1)) {
17743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17744 }
17745 arg1 = reinterpret_cast< wxDC * >(argp1);
17746 {
17747 PyThreadState* __tstate = wxPyBeginAllowThreads();
17748 result = wxDC_GetClippingRect(arg1);
17749 wxPyEndAllowThreads(__tstate);
17750 if (PyErr_Occurred()) SWIG_fail;
17751 }
17752 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17753 return resultobj;
17754 fail:
17755 return NULL;
17756 }
17757
17758
17759 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17760 PyObject *resultobj = 0;
17761 wxDC *arg1 = (wxDC *) 0 ;
17762 int result;
17763 void *argp1 = 0 ;
17764 int res1 = 0 ;
17765 PyObject *swig_obj[1] ;
17766
17767 if (!args) SWIG_fail;
17768 swig_obj[0] = args;
17769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17770 if (!SWIG_IsOK(res1)) {
17771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
17772 }
17773 arg1 = reinterpret_cast< wxDC * >(argp1);
17774 {
17775 PyThreadState* __tstate = wxPyBeginAllowThreads();
17776 result = (int)((wxDC const *)arg1)->GetCharHeight();
17777 wxPyEndAllowThreads(__tstate);
17778 if (PyErr_Occurred()) SWIG_fail;
17779 }
17780 resultobj = SWIG_From_int(static_cast< int >(result));
17781 return resultobj;
17782 fail:
17783 return NULL;
17784 }
17785
17786
17787 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17788 PyObject *resultobj = 0;
17789 wxDC *arg1 = (wxDC *) 0 ;
17790 int result;
17791 void *argp1 = 0 ;
17792 int res1 = 0 ;
17793 PyObject *swig_obj[1] ;
17794
17795 if (!args) SWIG_fail;
17796 swig_obj[0] = args;
17797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17798 if (!SWIG_IsOK(res1)) {
17799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
17800 }
17801 arg1 = reinterpret_cast< wxDC * >(argp1);
17802 {
17803 PyThreadState* __tstate = wxPyBeginAllowThreads();
17804 result = (int)((wxDC const *)arg1)->GetCharWidth();
17805 wxPyEndAllowThreads(__tstate);
17806 if (PyErr_Occurred()) SWIG_fail;
17807 }
17808 resultobj = SWIG_From_int(static_cast< int >(result));
17809 return resultobj;
17810 fail:
17811 return NULL;
17812 }
17813
17814
17815 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17816 PyObject *resultobj = 0;
17817 wxDC *arg1 = (wxDC *) 0 ;
17818 wxString *arg2 = 0 ;
17819 int *arg3 = (int *) 0 ;
17820 int *arg4 = (int *) 0 ;
17821 void *argp1 = 0 ;
17822 int res1 = 0 ;
17823 bool temp2 = false ;
17824 int temp3 ;
17825 int res3 = SWIG_TMPOBJ ;
17826 int temp4 ;
17827 int res4 = SWIG_TMPOBJ ;
17828 PyObject * obj0 = 0 ;
17829 PyObject * obj1 = 0 ;
17830 char * kwnames[] = {
17831 (char *) "self",(char *) "string", NULL
17832 };
17833
17834 arg3 = &temp3;
17835 arg4 = &temp4;
17836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
17837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17838 if (!SWIG_IsOK(res1)) {
17839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17840 }
17841 arg1 = reinterpret_cast< wxDC * >(argp1);
17842 {
17843 arg2 = wxString_in_helper(obj1);
17844 if (arg2 == NULL) SWIG_fail;
17845 temp2 = true;
17846 }
17847 {
17848 PyThreadState* __tstate = wxPyBeginAllowThreads();
17849 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
17850 wxPyEndAllowThreads(__tstate);
17851 if (PyErr_Occurred()) SWIG_fail;
17852 }
17853 resultobj = SWIG_Py_Void();
17854 if (SWIG_IsTmpObj(res3)) {
17855 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17856 } else {
17857 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17858 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17859 }
17860 if (SWIG_IsTmpObj(res4)) {
17861 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17862 } else {
17863 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17864 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17865 }
17866 {
17867 if (temp2)
17868 delete arg2;
17869 }
17870 return resultobj;
17871 fail:
17872 {
17873 if (temp2)
17874 delete arg2;
17875 }
17876 return NULL;
17877 }
17878
17879
17880 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17881 PyObject *resultobj = 0;
17882 wxDC *arg1 = (wxDC *) 0 ;
17883 wxString *arg2 = 0 ;
17884 int *arg3 = (int *) 0 ;
17885 int *arg4 = (int *) 0 ;
17886 int *arg5 = (int *) 0 ;
17887 int *arg6 = (int *) 0 ;
17888 wxFont *arg7 = (wxFont *) NULL ;
17889 void *argp1 = 0 ;
17890 int res1 = 0 ;
17891 bool temp2 = false ;
17892 int temp3 ;
17893 int res3 = SWIG_TMPOBJ ;
17894 int temp4 ;
17895 int res4 = SWIG_TMPOBJ ;
17896 int temp5 ;
17897 int res5 = SWIG_TMPOBJ ;
17898 int temp6 ;
17899 int res6 = SWIG_TMPOBJ ;
17900 void *argp7 = 0 ;
17901 int res7 = 0 ;
17902 PyObject * obj0 = 0 ;
17903 PyObject * obj1 = 0 ;
17904 PyObject * obj2 = 0 ;
17905 char * kwnames[] = {
17906 (char *) "self",(char *) "string",(char *) "font", NULL
17907 };
17908
17909 arg3 = &temp3;
17910 arg4 = &temp4;
17911 arg5 = &temp5;
17912 arg6 = &temp6;
17913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17915 if (!SWIG_IsOK(res1)) {
17916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17917 }
17918 arg1 = reinterpret_cast< wxDC * >(argp1);
17919 {
17920 arg2 = wxString_in_helper(obj1);
17921 if (arg2 == NULL) SWIG_fail;
17922 temp2 = true;
17923 }
17924 if (obj2) {
17925 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
17926 if (!SWIG_IsOK(res7)) {
17927 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
17928 }
17929 arg7 = reinterpret_cast< wxFont * >(argp7);
17930 }
17931 {
17932 PyThreadState* __tstate = wxPyBeginAllowThreads();
17933 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
17934 wxPyEndAllowThreads(__tstate);
17935 if (PyErr_Occurred()) SWIG_fail;
17936 }
17937 resultobj = SWIG_Py_Void();
17938 if (SWIG_IsTmpObj(res3)) {
17939 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17940 } else {
17941 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17942 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17943 }
17944 if (SWIG_IsTmpObj(res4)) {
17945 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17946 } else {
17947 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17948 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17949 }
17950 if (SWIG_IsTmpObj(res5)) {
17951 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17952 } else {
17953 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17954 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17955 }
17956 if (SWIG_IsTmpObj(res6)) {
17957 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
17958 } else {
17959 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17960 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
17961 }
17962 {
17963 if (temp2)
17964 delete arg2;
17965 }
17966 return resultobj;
17967 fail:
17968 {
17969 if (temp2)
17970 delete arg2;
17971 }
17972 return NULL;
17973 }
17974
17975
17976 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17977 PyObject *resultobj = 0;
17978 wxDC *arg1 = (wxDC *) 0 ;
17979 wxString *arg2 = 0 ;
17980 int *arg3 = (int *) 0 ;
17981 int *arg4 = (int *) 0 ;
17982 int *arg5 = (int *) 0 ;
17983 wxFont *arg6 = (wxFont *) NULL ;
17984 void *argp1 = 0 ;
17985 int res1 = 0 ;
17986 bool temp2 = false ;
17987 int temp3 ;
17988 int res3 = SWIG_TMPOBJ ;
17989 int temp4 ;
17990 int res4 = SWIG_TMPOBJ ;
17991 int temp5 ;
17992 int res5 = SWIG_TMPOBJ ;
17993 void *argp6 = 0 ;
17994 int res6 = 0 ;
17995 PyObject * obj0 = 0 ;
17996 PyObject * obj1 = 0 ;
17997 PyObject * obj2 = 0 ;
17998 char * kwnames[] = {
17999 (char *) "self",(char *) "text",(char *) "font", NULL
18000 };
18001
18002 arg3 = &temp3;
18003 arg4 = &temp4;
18004 arg5 = &temp5;
18005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18007 if (!SWIG_IsOK(res1)) {
18008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18009 }
18010 arg1 = reinterpret_cast< wxDC * >(argp1);
18011 {
18012 arg2 = wxString_in_helper(obj1);
18013 if (arg2 == NULL) SWIG_fail;
18014 temp2 = true;
18015 }
18016 if (obj2) {
18017 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
18018 if (!SWIG_IsOK(res6)) {
18019 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
18020 }
18021 arg6 = reinterpret_cast< wxFont * >(argp6);
18022 }
18023 {
18024 PyThreadState* __tstate = wxPyBeginAllowThreads();
18025 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
18026 wxPyEndAllowThreads(__tstate);
18027 if (PyErr_Occurred()) SWIG_fail;
18028 }
18029 resultobj = SWIG_Py_Void();
18030 if (SWIG_IsTmpObj(res3)) {
18031 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18032 } else {
18033 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18034 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18035 }
18036 if (SWIG_IsTmpObj(res4)) {
18037 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18038 } else {
18039 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18040 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18041 }
18042 if (SWIG_IsTmpObj(res5)) {
18043 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18044 } else {
18045 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18046 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18047 }
18048 {
18049 if (temp2)
18050 delete arg2;
18051 }
18052 return resultobj;
18053 fail:
18054 {
18055 if (temp2)
18056 delete arg2;
18057 }
18058 return NULL;
18059 }
18060
18061
18062 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18063 PyObject *resultobj = 0;
18064 wxDC *arg1 = (wxDC *) 0 ;
18065 wxString *arg2 = 0 ;
18066 wxArrayInt result;
18067 void *argp1 = 0 ;
18068 int res1 = 0 ;
18069 bool temp2 = false ;
18070 PyObject * obj0 = 0 ;
18071 PyObject * obj1 = 0 ;
18072 char * kwnames[] = {
18073 (char *) "self",(char *) "text", NULL
18074 };
18075
18076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
18077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18078 if (!SWIG_IsOK(res1)) {
18079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18080 }
18081 arg1 = reinterpret_cast< wxDC * >(argp1);
18082 {
18083 arg2 = wxString_in_helper(obj1);
18084 if (arg2 == NULL) SWIG_fail;
18085 temp2 = true;
18086 }
18087 {
18088 PyThreadState* __tstate = wxPyBeginAllowThreads();
18089 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
18090 wxPyEndAllowThreads(__tstate);
18091 if (PyErr_Occurred()) SWIG_fail;
18092 }
18093 {
18094 resultobj = PyList_New(0);
18095 size_t idx;
18096 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
18097 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
18098 PyList_Append(resultobj, val);
18099 Py_DECREF(val);
18100 }
18101 }
18102 {
18103 if (temp2)
18104 delete arg2;
18105 }
18106 return resultobj;
18107 fail:
18108 {
18109 if (temp2)
18110 delete arg2;
18111 }
18112 return NULL;
18113 }
18114
18115
18116 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18117 PyObject *resultobj = 0;
18118 wxDC *arg1 = (wxDC *) 0 ;
18119 wxSize result;
18120 void *argp1 = 0 ;
18121 int res1 = 0 ;
18122 PyObject *swig_obj[1] ;
18123
18124 if (!args) SWIG_fail;
18125 swig_obj[0] = args;
18126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18127 if (!SWIG_IsOK(res1)) {
18128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18129 }
18130 arg1 = reinterpret_cast< wxDC * >(argp1);
18131 {
18132 PyThreadState* __tstate = wxPyBeginAllowThreads();
18133 result = (arg1)->GetSize();
18134 wxPyEndAllowThreads(__tstate);
18135 if (PyErr_Occurred()) SWIG_fail;
18136 }
18137 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18138 return resultobj;
18139 fail:
18140 return NULL;
18141 }
18142
18143
18144 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18145 PyObject *resultobj = 0;
18146 wxDC *arg1 = (wxDC *) 0 ;
18147 int *arg2 = (int *) 0 ;
18148 int *arg3 = (int *) 0 ;
18149 void *argp1 = 0 ;
18150 int res1 = 0 ;
18151 int temp2 ;
18152 int res2 = SWIG_TMPOBJ ;
18153 int temp3 ;
18154 int res3 = SWIG_TMPOBJ ;
18155 PyObject *swig_obj[1] ;
18156
18157 arg2 = &temp2;
18158 arg3 = &temp3;
18159 if (!args) SWIG_fail;
18160 swig_obj[0] = args;
18161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18162 if (!SWIG_IsOK(res1)) {
18163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18164 }
18165 arg1 = reinterpret_cast< wxDC * >(argp1);
18166 {
18167 PyThreadState* __tstate = wxPyBeginAllowThreads();
18168 (arg1)->GetSize(arg2,arg3);
18169 wxPyEndAllowThreads(__tstate);
18170 if (PyErr_Occurred()) SWIG_fail;
18171 }
18172 resultobj = SWIG_Py_Void();
18173 if (SWIG_IsTmpObj(res2)) {
18174 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18175 } else {
18176 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18178 }
18179 if (SWIG_IsTmpObj(res3)) {
18180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18181 } else {
18182 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18184 }
18185 return resultobj;
18186 fail:
18187 return NULL;
18188 }
18189
18190
18191 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18192 PyObject *resultobj = 0;
18193 wxDC *arg1 = (wxDC *) 0 ;
18194 wxSize result;
18195 void *argp1 = 0 ;
18196 int res1 = 0 ;
18197 PyObject *swig_obj[1] ;
18198
18199 if (!args) SWIG_fail;
18200 swig_obj[0] = args;
18201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18202 if (!SWIG_IsOK(res1)) {
18203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18204 }
18205 arg1 = reinterpret_cast< wxDC * >(argp1);
18206 {
18207 PyThreadState* __tstate = wxPyBeginAllowThreads();
18208 result = ((wxDC const *)arg1)->GetSizeMM();
18209 wxPyEndAllowThreads(__tstate);
18210 if (PyErr_Occurred()) SWIG_fail;
18211 }
18212 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18213 return resultobj;
18214 fail:
18215 return NULL;
18216 }
18217
18218
18219 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18220 PyObject *resultobj = 0;
18221 wxDC *arg1 = (wxDC *) 0 ;
18222 int *arg2 = (int *) 0 ;
18223 int *arg3 = (int *) 0 ;
18224 void *argp1 = 0 ;
18225 int res1 = 0 ;
18226 int temp2 ;
18227 int res2 = SWIG_TMPOBJ ;
18228 int temp3 ;
18229 int res3 = SWIG_TMPOBJ ;
18230 PyObject *swig_obj[1] ;
18231
18232 arg2 = &temp2;
18233 arg3 = &temp3;
18234 if (!args) SWIG_fail;
18235 swig_obj[0] = args;
18236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18237 if (!SWIG_IsOK(res1)) {
18238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18239 }
18240 arg1 = reinterpret_cast< wxDC * >(argp1);
18241 {
18242 PyThreadState* __tstate = wxPyBeginAllowThreads();
18243 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
18244 wxPyEndAllowThreads(__tstate);
18245 if (PyErr_Occurred()) SWIG_fail;
18246 }
18247 resultobj = SWIG_Py_Void();
18248 if (SWIG_IsTmpObj(res2)) {
18249 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18250 } else {
18251 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18252 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18253 }
18254 if (SWIG_IsTmpObj(res3)) {
18255 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18256 } else {
18257 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18258 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18259 }
18260 return resultobj;
18261 fail:
18262 return NULL;
18263 }
18264
18265
18266 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18267 PyObject *resultobj = 0;
18268 wxDC *arg1 = (wxDC *) 0 ;
18269 int arg2 ;
18270 int result;
18271 void *argp1 = 0 ;
18272 int res1 = 0 ;
18273 int val2 ;
18274 int ecode2 = 0 ;
18275 PyObject * obj0 = 0 ;
18276 PyObject * obj1 = 0 ;
18277 char * kwnames[] = {
18278 (char *) "self",(char *) "x", NULL
18279 };
18280
18281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
18282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18283 if (!SWIG_IsOK(res1)) {
18284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
18285 }
18286 arg1 = reinterpret_cast< wxDC * >(argp1);
18287 ecode2 = SWIG_AsVal_int(obj1, &val2);
18288 if (!SWIG_IsOK(ecode2)) {
18289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
18290 }
18291 arg2 = static_cast< int >(val2);
18292 {
18293 PyThreadState* __tstate = wxPyBeginAllowThreads();
18294 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
18295 wxPyEndAllowThreads(__tstate);
18296 if (PyErr_Occurred()) SWIG_fail;
18297 }
18298 resultobj = SWIG_From_int(static_cast< int >(result));
18299 return resultobj;
18300 fail:
18301 return NULL;
18302 }
18303
18304
18305 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18306 PyObject *resultobj = 0;
18307 wxDC *arg1 = (wxDC *) 0 ;
18308 int arg2 ;
18309 int result;
18310 void *argp1 = 0 ;
18311 int res1 = 0 ;
18312 int val2 ;
18313 int ecode2 = 0 ;
18314 PyObject * obj0 = 0 ;
18315 PyObject * obj1 = 0 ;
18316 char * kwnames[] = {
18317 (char *) "self",(char *) "y", NULL
18318 };
18319
18320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
18321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18322 if (!SWIG_IsOK(res1)) {
18323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
18324 }
18325 arg1 = reinterpret_cast< wxDC * >(argp1);
18326 ecode2 = SWIG_AsVal_int(obj1, &val2);
18327 if (!SWIG_IsOK(ecode2)) {
18328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
18329 }
18330 arg2 = static_cast< int >(val2);
18331 {
18332 PyThreadState* __tstate = wxPyBeginAllowThreads();
18333 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
18334 wxPyEndAllowThreads(__tstate);
18335 if (PyErr_Occurred()) SWIG_fail;
18336 }
18337 resultobj = SWIG_From_int(static_cast< int >(result));
18338 return resultobj;
18339 fail:
18340 return NULL;
18341 }
18342
18343
18344 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18345 PyObject *resultobj = 0;
18346 wxDC *arg1 = (wxDC *) 0 ;
18347 int arg2 ;
18348 int result;
18349 void *argp1 = 0 ;
18350 int res1 = 0 ;
18351 int val2 ;
18352 int ecode2 = 0 ;
18353 PyObject * obj0 = 0 ;
18354 PyObject * obj1 = 0 ;
18355 char * kwnames[] = {
18356 (char *) "self",(char *) "x", NULL
18357 };
18358
18359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18361 if (!SWIG_IsOK(res1)) {
18362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18363 }
18364 arg1 = reinterpret_cast< wxDC * >(argp1);
18365 ecode2 = SWIG_AsVal_int(obj1, &val2);
18366 if (!SWIG_IsOK(ecode2)) {
18367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
18368 }
18369 arg2 = static_cast< int >(val2);
18370 {
18371 PyThreadState* __tstate = wxPyBeginAllowThreads();
18372 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
18373 wxPyEndAllowThreads(__tstate);
18374 if (PyErr_Occurred()) SWIG_fail;
18375 }
18376 resultobj = SWIG_From_int(static_cast< int >(result));
18377 return resultobj;
18378 fail:
18379 return NULL;
18380 }
18381
18382
18383 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18384 PyObject *resultobj = 0;
18385 wxDC *arg1 = (wxDC *) 0 ;
18386 int arg2 ;
18387 int result;
18388 void *argp1 = 0 ;
18389 int res1 = 0 ;
18390 int val2 ;
18391 int ecode2 = 0 ;
18392 PyObject * obj0 = 0 ;
18393 PyObject * obj1 = 0 ;
18394 char * kwnames[] = {
18395 (char *) "self",(char *) "y", NULL
18396 };
18397
18398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18400 if (!SWIG_IsOK(res1)) {
18401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18402 }
18403 arg1 = reinterpret_cast< wxDC * >(argp1);
18404 ecode2 = SWIG_AsVal_int(obj1, &val2);
18405 if (!SWIG_IsOK(ecode2)) {
18406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
18407 }
18408 arg2 = static_cast< int >(val2);
18409 {
18410 PyThreadState* __tstate = wxPyBeginAllowThreads();
18411 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
18412 wxPyEndAllowThreads(__tstate);
18413 if (PyErr_Occurred()) SWIG_fail;
18414 }
18415 resultobj = SWIG_From_int(static_cast< int >(result));
18416 return resultobj;
18417 fail:
18418 return NULL;
18419 }
18420
18421
18422 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18423 PyObject *resultobj = 0;
18424 wxDC *arg1 = (wxDC *) 0 ;
18425 int arg2 ;
18426 int result;
18427 void *argp1 = 0 ;
18428 int res1 = 0 ;
18429 int val2 ;
18430 int ecode2 = 0 ;
18431 PyObject * obj0 = 0 ;
18432 PyObject * obj1 = 0 ;
18433 char * kwnames[] = {
18434 (char *) "self",(char *) "x", NULL
18435 };
18436
18437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
18438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18439 if (!SWIG_IsOK(res1)) {
18440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
18441 }
18442 arg1 = reinterpret_cast< wxDC * >(argp1);
18443 ecode2 = SWIG_AsVal_int(obj1, &val2);
18444 if (!SWIG_IsOK(ecode2)) {
18445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
18446 }
18447 arg2 = static_cast< int >(val2);
18448 {
18449 PyThreadState* __tstate = wxPyBeginAllowThreads();
18450 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
18451 wxPyEndAllowThreads(__tstate);
18452 if (PyErr_Occurred()) SWIG_fail;
18453 }
18454 resultobj = SWIG_From_int(static_cast< int >(result));
18455 return resultobj;
18456 fail:
18457 return NULL;
18458 }
18459
18460
18461 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18462 PyObject *resultobj = 0;
18463 wxDC *arg1 = (wxDC *) 0 ;
18464 int arg2 ;
18465 int result;
18466 void *argp1 = 0 ;
18467 int res1 = 0 ;
18468 int val2 ;
18469 int ecode2 = 0 ;
18470 PyObject * obj0 = 0 ;
18471 PyObject * obj1 = 0 ;
18472 char * kwnames[] = {
18473 (char *) "self",(char *) "y", NULL
18474 };
18475
18476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
18477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18478 if (!SWIG_IsOK(res1)) {
18479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
18480 }
18481 arg1 = reinterpret_cast< wxDC * >(argp1);
18482 ecode2 = SWIG_AsVal_int(obj1, &val2);
18483 if (!SWIG_IsOK(ecode2)) {
18484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
18485 }
18486 arg2 = static_cast< int >(val2);
18487 {
18488 PyThreadState* __tstate = wxPyBeginAllowThreads();
18489 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
18490 wxPyEndAllowThreads(__tstate);
18491 if (PyErr_Occurred()) SWIG_fail;
18492 }
18493 resultobj = SWIG_From_int(static_cast< int >(result));
18494 return resultobj;
18495 fail:
18496 return NULL;
18497 }
18498
18499
18500 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18501 PyObject *resultobj = 0;
18502 wxDC *arg1 = (wxDC *) 0 ;
18503 int arg2 ;
18504 int result;
18505 void *argp1 = 0 ;
18506 int res1 = 0 ;
18507 int val2 ;
18508 int ecode2 = 0 ;
18509 PyObject * obj0 = 0 ;
18510 PyObject * obj1 = 0 ;
18511 char * kwnames[] = {
18512 (char *) "self",(char *) "x", NULL
18513 };
18514
18515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18517 if (!SWIG_IsOK(res1)) {
18518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18519 }
18520 arg1 = reinterpret_cast< wxDC * >(argp1);
18521 ecode2 = SWIG_AsVal_int(obj1, &val2);
18522 if (!SWIG_IsOK(ecode2)) {
18523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
18524 }
18525 arg2 = static_cast< int >(val2);
18526 {
18527 PyThreadState* __tstate = wxPyBeginAllowThreads();
18528 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
18529 wxPyEndAllowThreads(__tstate);
18530 if (PyErr_Occurred()) SWIG_fail;
18531 }
18532 resultobj = SWIG_From_int(static_cast< int >(result));
18533 return resultobj;
18534 fail:
18535 return NULL;
18536 }
18537
18538
18539 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18540 PyObject *resultobj = 0;
18541 wxDC *arg1 = (wxDC *) 0 ;
18542 int arg2 ;
18543 int result;
18544 void *argp1 = 0 ;
18545 int res1 = 0 ;
18546 int val2 ;
18547 int ecode2 = 0 ;
18548 PyObject * obj0 = 0 ;
18549 PyObject * obj1 = 0 ;
18550 char * kwnames[] = {
18551 (char *) "self",(char *) "y", NULL
18552 };
18553
18554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18556 if (!SWIG_IsOK(res1)) {
18557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18558 }
18559 arg1 = reinterpret_cast< wxDC * >(argp1);
18560 ecode2 = SWIG_AsVal_int(obj1, &val2);
18561 if (!SWIG_IsOK(ecode2)) {
18562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
18563 }
18564 arg2 = static_cast< int >(val2);
18565 {
18566 PyThreadState* __tstate = wxPyBeginAllowThreads();
18567 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
18568 wxPyEndAllowThreads(__tstate);
18569 if (PyErr_Occurred()) SWIG_fail;
18570 }
18571 resultobj = SWIG_From_int(static_cast< int >(result));
18572 return resultobj;
18573 fail:
18574 return NULL;
18575 }
18576
18577
18578 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18579 PyObject *resultobj = 0;
18580 wxDC *arg1 = (wxDC *) 0 ;
18581 bool result;
18582 void *argp1 = 0 ;
18583 int res1 = 0 ;
18584 PyObject *swig_obj[1] ;
18585
18586 if (!args) SWIG_fail;
18587 swig_obj[0] = args;
18588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18589 if (!SWIG_IsOK(res1)) {
18590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
18591 }
18592 arg1 = reinterpret_cast< wxDC * >(argp1);
18593 {
18594 PyThreadState* __tstate = wxPyBeginAllowThreads();
18595 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
18596 wxPyEndAllowThreads(__tstate);
18597 if (PyErr_Occurred()) SWIG_fail;
18598 }
18599 {
18600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18601 }
18602 return resultobj;
18603 fail:
18604 return NULL;
18605 }
18606
18607
18608 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18609 PyObject *resultobj = 0;
18610 wxDC *arg1 = (wxDC *) 0 ;
18611 bool result;
18612 void *argp1 = 0 ;
18613 int res1 = 0 ;
18614 PyObject *swig_obj[1] ;
18615
18616 if (!args) SWIG_fail;
18617 swig_obj[0] = args;
18618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18619 if (!SWIG_IsOK(res1)) {
18620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
18621 }
18622 arg1 = reinterpret_cast< wxDC * >(argp1);
18623 {
18624 PyThreadState* __tstate = wxPyBeginAllowThreads();
18625 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
18626 wxPyEndAllowThreads(__tstate);
18627 if (PyErr_Occurred()) SWIG_fail;
18628 }
18629 {
18630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18631 }
18632 return resultobj;
18633 fail:
18634 return NULL;
18635 }
18636
18637
18638 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18639 PyObject *resultobj = 0;
18640 wxDC *arg1 = (wxDC *) 0 ;
18641 int result;
18642 void *argp1 = 0 ;
18643 int res1 = 0 ;
18644 PyObject *swig_obj[1] ;
18645
18646 if (!args) SWIG_fail;
18647 swig_obj[0] = args;
18648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18649 if (!SWIG_IsOK(res1)) {
18650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
18651 }
18652 arg1 = reinterpret_cast< wxDC * >(argp1);
18653 {
18654 PyThreadState* __tstate = wxPyBeginAllowThreads();
18655 result = (int)((wxDC const *)arg1)->GetDepth();
18656 wxPyEndAllowThreads(__tstate);
18657 if (PyErr_Occurred()) SWIG_fail;
18658 }
18659 resultobj = SWIG_From_int(static_cast< int >(result));
18660 return resultobj;
18661 fail:
18662 return NULL;
18663 }
18664
18665
18666 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18667 PyObject *resultobj = 0;
18668 wxDC *arg1 = (wxDC *) 0 ;
18669 wxSize result;
18670 void *argp1 = 0 ;
18671 int res1 = 0 ;
18672 PyObject *swig_obj[1] ;
18673
18674 if (!args) SWIG_fail;
18675 swig_obj[0] = args;
18676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18677 if (!SWIG_IsOK(res1)) {
18678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
18679 }
18680 arg1 = reinterpret_cast< wxDC * >(argp1);
18681 {
18682 PyThreadState* __tstate = wxPyBeginAllowThreads();
18683 result = ((wxDC const *)arg1)->GetPPI();
18684 wxPyEndAllowThreads(__tstate);
18685 if (PyErr_Occurred()) SWIG_fail;
18686 }
18687 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18688 return resultobj;
18689 fail:
18690 return NULL;
18691 }
18692
18693
18694 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18695 PyObject *resultobj = 0;
18696 wxDC *arg1 = (wxDC *) 0 ;
18697 bool result;
18698 void *argp1 = 0 ;
18699 int res1 = 0 ;
18700 PyObject *swig_obj[1] ;
18701
18702 if (!args) SWIG_fail;
18703 swig_obj[0] = args;
18704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18705 if (!SWIG_IsOK(res1)) {
18706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
18707 }
18708 arg1 = reinterpret_cast< wxDC * >(argp1);
18709 {
18710 PyThreadState* __tstate = wxPyBeginAllowThreads();
18711 result = (bool)((wxDC const *)arg1)->Ok();
18712 wxPyEndAllowThreads(__tstate);
18713 if (PyErr_Occurred()) SWIG_fail;
18714 }
18715 {
18716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18717 }
18718 return resultobj;
18719 fail:
18720 return NULL;
18721 }
18722
18723
18724 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18725 PyObject *resultobj = 0;
18726 wxDC *arg1 = (wxDC *) 0 ;
18727 int result;
18728 void *argp1 = 0 ;
18729 int res1 = 0 ;
18730 PyObject *swig_obj[1] ;
18731
18732 if (!args) SWIG_fail;
18733 swig_obj[0] = args;
18734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18735 if (!SWIG_IsOK(res1)) {
18736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
18737 }
18738 arg1 = reinterpret_cast< wxDC * >(argp1);
18739 {
18740 PyThreadState* __tstate = wxPyBeginAllowThreads();
18741 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
18742 wxPyEndAllowThreads(__tstate);
18743 if (PyErr_Occurred()) SWIG_fail;
18744 }
18745 resultobj = SWIG_From_int(static_cast< int >(result));
18746 return resultobj;
18747 fail:
18748 return NULL;
18749 }
18750
18751
18752 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18753 PyObject *resultobj = 0;
18754 wxDC *arg1 = (wxDC *) 0 ;
18755 wxBrush *result = 0 ;
18756 void *argp1 = 0 ;
18757 int res1 = 0 ;
18758 PyObject *swig_obj[1] ;
18759
18760 if (!args) SWIG_fail;
18761 swig_obj[0] = args;
18762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18763 if (!SWIG_IsOK(res1)) {
18764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18765 }
18766 arg1 = reinterpret_cast< wxDC * >(argp1);
18767 {
18768 PyThreadState* __tstate = wxPyBeginAllowThreads();
18769 {
18770 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
18771 result = (wxBrush *) &_result_ref;
18772 }
18773 wxPyEndAllowThreads(__tstate);
18774 if (PyErr_Occurred()) SWIG_fail;
18775 }
18776 {
18777 wxBrush* resultptr = new wxBrush(*result);
18778 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18779 }
18780 return resultobj;
18781 fail:
18782 return NULL;
18783 }
18784
18785
18786 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18787 PyObject *resultobj = 0;
18788 wxDC *arg1 = (wxDC *) 0 ;
18789 wxBrush *result = 0 ;
18790 void *argp1 = 0 ;
18791 int res1 = 0 ;
18792 PyObject *swig_obj[1] ;
18793
18794 if (!args) SWIG_fail;
18795 swig_obj[0] = args;
18796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18797 if (!SWIG_IsOK(res1)) {
18798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
18799 }
18800 arg1 = reinterpret_cast< wxDC * >(argp1);
18801 {
18802 PyThreadState* __tstate = wxPyBeginAllowThreads();
18803 {
18804 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
18805 result = (wxBrush *) &_result_ref;
18806 }
18807 wxPyEndAllowThreads(__tstate);
18808 if (PyErr_Occurred()) SWIG_fail;
18809 }
18810 {
18811 wxBrush* resultptr = new wxBrush(*result);
18812 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18813 }
18814 return resultobj;
18815 fail:
18816 return NULL;
18817 }
18818
18819
18820 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18821 PyObject *resultobj = 0;
18822 wxDC *arg1 = (wxDC *) 0 ;
18823 wxFont *result = 0 ;
18824 void *argp1 = 0 ;
18825 int res1 = 0 ;
18826 PyObject *swig_obj[1] ;
18827
18828 if (!args) SWIG_fail;
18829 swig_obj[0] = args;
18830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18831 if (!SWIG_IsOK(res1)) {
18832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
18833 }
18834 arg1 = reinterpret_cast< wxDC * >(argp1);
18835 {
18836 PyThreadState* __tstate = wxPyBeginAllowThreads();
18837 {
18838 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
18839 result = (wxFont *) &_result_ref;
18840 }
18841 wxPyEndAllowThreads(__tstate);
18842 if (PyErr_Occurred()) SWIG_fail;
18843 }
18844 {
18845 wxFont* resultptr = new wxFont(*result);
18846 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
18847 }
18848 return resultobj;
18849 fail:
18850 return NULL;
18851 }
18852
18853
18854 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18855 PyObject *resultobj = 0;
18856 wxDC *arg1 = (wxDC *) 0 ;
18857 wxPen *result = 0 ;
18858 void *argp1 = 0 ;
18859 int res1 = 0 ;
18860 PyObject *swig_obj[1] ;
18861
18862 if (!args) SWIG_fail;
18863 swig_obj[0] = args;
18864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18865 if (!SWIG_IsOK(res1)) {
18866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
18867 }
18868 arg1 = reinterpret_cast< wxDC * >(argp1);
18869 {
18870 PyThreadState* __tstate = wxPyBeginAllowThreads();
18871 {
18872 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
18873 result = (wxPen *) &_result_ref;
18874 }
18875 wxPyEndAllowThreads(__tstate);
18876 if (PyErr_Occurred()) SWIG_fail;
18877 }
18878 {
18879 wxPen* resultptr = new wxPen(*result);
18880 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
18881 }
18882 return resultobj;
18883 fail:
18884 return NULL;
18885 }
18886
18887
18888 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18889 PyObject *resultobj = 0;
18890 wxDC *arg1 = (wxDC *) 0 ;
18891 wxColour *result = 0 ;
18892 void *argp1 = 0 ;
18893 int res1 = 0 ;
18894 PyObject *swig_obj[1] ;
18895
18896 if (!args) SWIG_fail;
18897 swig_obj[0] = args;
18898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18899 if (!SWIG_IsOK(res1)) {
18900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18901 }
18902 arg1 = reinterpret_cast< wxDC * >(argp1);
18903 {
18904 PyThreadState* __tstate = wxPyBeginAllowThreads();
18905 {
18906 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
18907 result = (wxColour *) &_result_ref;
18908 }
18909 wxPyEndAllowThreads(__tstate);
18910 if (PyErr_Occurred()) SWIG_fail;
18911 }
18912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18913 return resultobj;
18914 fail:
18915 return NULL;
18916 }
18917
18918
18919 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(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_GetTextForeground" "', 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)->GetTextForeground();
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_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18951 PyObject *resultobj = 0;
18952 wxDC *arg1 = (wxDC *) 0 ;
18953 wxColour *arg2 = 0 ;
18954 void *argp1 = 0 ;
18955 int res1 = 0 ;
18956 wxColour temp2 ;
18957 PyObject * obj0 = 0 ;
18958 PyObject * obj1 = 0 ;
18959 char * kwnames[] = {
18960 (char *) "self",(char *) "colour", NULL
18961 };
18962
18963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
18964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18965 if (!SWIG_IsOK(res1)) {
18966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
18967 }
18968 arg1 = reinterpret_cast< wxDC * >(argp1);
18969 {
18970 arg2 = &temp2;
18971 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18972 }
18973 {
18974 PyThreadState* __tstate = wxPyBeginAllowThreads();
18975 (arg1)->SetTextForeground((wxColour const &)*arg2);
18976 wxPyEndAllowThreads(__tstate);
18977 if (PyErr_Occurred()) SWIG_fail;
18978 }
18979 resultobj = SWIG_Py_Void();
18980 return resultobj;
18981 fail:
18982 return NULL;
18983 }
18984
18985
18986 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18987 PyObject *resultobj = 0;
18988 wxDC *arg1 = (wxDC *) 0 ;
18989 wxColour *arg2 = 0 ;
18990 void *argp1 = 0 ;
18991 int res1 = 0 ;
18992 wxColour temp2 ;
18993 PyObject * obj0 = 0 ;
18994 PyObject * obj1 = 0 ;
18995 char * kwnames[] = {
18996 (char *) "self",(char *) "colour", NULL
18997 };
18998
18999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
19000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19001 if (!SWIG_IsOK(res1)) {
19002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
19003 }
19004 arg1 = reinterpret_cast< wxDC * >(argp1);
19005 {
19006 arg2 = &temp2;
19007 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19008 }
19009 {
19010 PyThreadState* __tstate = wxPyBeginAllowThreads();
19011 (arg1)->SetTextBackground((wxColour const &)*arg2);
19012 wxPyEndAllowThreads(__tstate);
19013 if (PyErr_Occurred()) SWIG_fail;
19014 }
19015 resultobj = SWIG_Py_Void();
19016 return resultobj;
19017 fail:
19018 return NULL;
19019 }
19020
19021
19022 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19023 PyObject *resultobj = 0;
19024 wxDC *arg1 = (wxDC *) 0 ;
19025 int result;
19026 void *argp1 = 0 ;
19027 int res1 = 0 ;
19028 PyObject *swig_obj[1] ;
19029
19030 if (!args) SWIG_fail;
19031 swig_obj[0] = args;
19032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19033 if (!SWIG_IsOK(res1)) {
19034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19035 }
19036 arg1 = reinterpret_cast< wxDC * >(argp1);
19037 {
19038 PyThreadState* __tstate = wxPyBeginAllowThreads();
19039 result = (int)((wxDC const *)arg1)->GetMapMode();
19040 wxPyEndAllowThreads(__tstate);
19041 if (PyErr_Occurred()) SWIG_fail;
19042 }
19043 resultobj = SWIG_From_int(static_cast< int >(result));
19044 return resultobj;
19045 fail:
19046 return NULL;
19047 }
19048
19049
19050 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19051 PyObject *resultobj = 0;
19052 wxDC *arg1 = (wxDC *) 0 ;
19053 int arg2 ;
19054 void *argp1 = 0 ;
19055 int res1 = 0 ;
19056 int val2 ;
19057 int ecode2 = 0 ;
19058 PyObject * obj0 = 0 ;
19059 PyObject * obj1 = 0 ;
19060 char * kwnames[] = {
19061 (char *) "self",(char *) "mode", NULL
19062 };
19063
19064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
19065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19066 if (!SWIG_IsOK(res1)) {
19067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19068 }
19069 arg1 = reinterpret_cast< wxDC * >(argp1);
19070 ecode2 = SWIG_AsVal_int(obj1, &val2);
19071 if (!SWIG_IsOK(ecode2)) {
19072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19073 }
19074 arg2 = static_cast< int >(val2);
19075 {
19076 PyThreadState* __tstate = wxPyBeginAllowThreads();
19077 (arg1)->SetMapMode(arg2);
19078 wxPyEndAllowThreads(__tstate);
19079 if (PyErr_Occurred()) SWIG_fail;
19080 }
19081 resultobj = SWIG_Py_Void();
19082 return resultobj;
19083 fail:
19084 return NULL;
19085 }
19086
19087
19088 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19089 PyObject *resultobj = 0;
19090 wxDC *arg1 = (wxDC *) 0 ;
19091 double *arg2 = (double *) 0 ;
19092 double *arg3 = (double *) 0 ;
19093 void *argp1 = 0 ;
19094 int res1 = 0 ;
19095 double temp2 ;
19096 int res2 = SWIG_TMPOBJ ;
19097 double temp3 ;
19098 int res3 = SWIG_TMPOBJ ;
19099 PyObject *swig_obj[1] ;
19100
19101 arg2 = &temp2;
19102 arg3 = &temp3;
19103 if (!args) SWIG_fail;
19104 swig_obj[0] = args;
19105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19106 if (!SWIG_IsOK(res1)) {
19107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19108 }
19109 arg1 = reinterpret_cast< wxDC * >(argp1);
19110 {
19111 PyThreadState* __tstate = wxPyBeginAllowThreads();
19112 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
19113 wxPyEndAllowThreads(__tstate);
19114 if (PyErr_Occurred()) SWIG_fail;
19115 }
19116 resultobj = SWIG_Py_Void();
19117 if (SWIG_IsTmpObj(res2)) {
19118 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19119 } else {
19120 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19121 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19122 }
19123 if (SWIG_IsTmpObj(res3)) {
19124 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19125 } else {
19126 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19127 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19128 }
19129 return resultobj;
19130 fail:
19131 return NULL;
19132 }
19133
19134
19135 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19136 PyObject *resultobj = 0;
19137 wxDC *arg1 = (wxDC *) 0 ;
19138 double arg2 ;
19139 double arg3 ;
19140 void *argp1 = 0 ;
19141 int res1 = 0 ;
19142 double val2 ;
19143 int ecode2 = 0 ;
19144 double val3 ;
19145 int ecode3 = 0 ;
19146 PyObject * obj0 = 0 ;
19147 PyObject * obj1 = 0 ;
19148 PyObject * obj2 = 0 ;
19149 char * kwnames[] = {
19150 (char *) "self",(char *) "x",(char *) "y", NULL
19151 };
19152
19153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19155 if (!SWIG_IsOK(res1)) {
19156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19157 }
19158 arg1 = reinterpret_cast< wxDC * >(argp1);
19159 ecode2 = SWIG_AsVal_double(obj1, &val2);
19160 if (!SWIG_IsOK(ecode2)) {
19161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19162 }
19163 arg2 = static_cast< double >(val2);
19164 ecode3 = SWIG_AsVal_double(obj2, &val3);
19165 if (!SWIG_IsOK(ecode3)) {
19166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19167 }
19168 arg3 = static_cast< double >(val3);
19169 {
19170 PyThreadState* __tstate = wxPyBeginAllowThreads();
19171 (arg1)->SetUserScale(arg2,arg3);
19172 wxPyEndAllowThreads(__tstate);
19173 if (PyErr_Occurred()) SWIG_fail;
19174 }
19175 resultobj = SWIG_Py_Void();
19176 return resultobj;
19177 fail:
19178 return NULL;
19179 }
19180
19181
19182 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19183 PyObject *resultobj = 0;
19184 wxDC *arg1 = (wxDC *) 0 ;
19185 double *arg2 = (double *) 0 ;
19186 double *arg3 = (double *) 0 ;
19187 void *argp1 = 0 ;
19188 int res1 = 0 ;
19189 double temp2 ;
19190 int res2 = SWIG_TMPOBJ ;
19191 double temp3 ;
19192 int res3 = SWIG_TMPOBJ ;
19193 PyObject *swig_obj[1] ;
19194
19195 arg2 = &temp2;
19196 arg3 = &temp3;
19197 if (!args) SWIG_fail;
19198 swig_obj[0] = args;
19199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19200 if (!SWIG_IsOK(res1)) {
19201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19202 }
19203 arg1 = reinterpret_cast< wxDC * >(argp1);
19204 {
19205 PyThreadState* __tstate = wxPyBeginAllowThreads();
19206 (arg1)->GetLogicalScale(arg2,arg3);
19207 wxPyEndAllowThreads(__tstate);
19208 if (PyErr_Occurred()) SWIG_fail;
19209 }
19210 resultobj = SWIG_Py_Void();
19211 if (SWIG_IsTmpObj(res2)) {
19212 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19213 } else {
19214 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19215 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19216 }
19217 if (SWIG_IsTmpObj(res3)) {
19218 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19219 } else {
19220 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19222 }
19223 return resultobj;
19224 fail:
19225 return NULL;
19226 }
19227
19228
19229 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19230 PyObject *resultobj = 0;
19231 wxDC *arg1 = (wxDC *) 0 ;
19232 double arg2 ;
19233 double arg3 ;
19234 void *argp1 = 0 ;
19235 int res1 = 0 ;
19236 double val2 ;
19237 int ecode2 = 0 ;
19238 double val3 ;
19239 int ecode3 = 0 ;
19240 PyObject * obj0 = 0 ;
19241 PyObject * obj1 = 0 ;
19242 PyObject * obj2 = 0 ;
19243 char * kwnames[] = {
19244 (char *) "self",(char *) "x",(char *) "y", NULL
19245 };
19246
19247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19249 if (!SWIG_IsOK(res1)) {
19250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19251 }
19252 arg1 = reinterpret_cast< wxDC * >(argp1);
19253 ecode2 = SWIG_AsVal_double(obj1, &val2);
19254 if (!SWIG_IsOK(ecode2)) {
19255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19256 }
19257 arg2 = static_cast< double >(val2);
19258 ecode3 = SWIG_AsVal_double(obj2, &val3);
19259 if (!SWIG_IsOK(ecode3)) {
19260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19261 }
19262 arg3 = static_cast< double >(val3);
19263 {
19264 PyThreadState* __tstate = wxPyBeginAllowThreads();
19265 (arg1)->SetLogicalScale(arg2,arg3);
19266 wxPyEndAllowThreads(__tstate);
19267 if (PyErr_Occurred()) SWIG_fail;
19268 }
19269 resultobj = SWIG_Py_Void();
19270 return resultobj;
19271 fail:
19272 return NULL;
19273 }
19274
19275
19276 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19277 PyObject *resultobj = 0;
19278 wxDC *arg1 = (wxDC *) 0 ;
19279 wxPoint result;
19280 void *argp1 = 0 ;
19281 int res1 = 0 ;
19282 PyObject *swig_obj[1] ;
19283
19284 if (!args) SWIG_fail;
19285 swig_obj[0] = args;
19286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19287 if (!SWIG_IsOK(res1)) {
19288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19289 }
19290 arg1 = reinterpret_cast< wxDC * >(argp1);
19291 {
19292 PyThreadState* __tstate = wxPyBeginAllowThreads();
19293 result = ((wxDC const *)arg1)->GetLogicalOrigin();
19294 wxPyEndAllowThreads(__tstate);
19295 if (PyErr_Occurred()) SWIG_fail;
19296 }
19297 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19298 return resultobj;
19299 fail:
19300 return NULL;
19301 }
19302
19303
19304 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19305 PyObject *resultobj = 0;
19306 wxDC *arg1 = (wxDC *) 0 ;
19307 int *arg2 = (int *) 0 ;
19308 int *arg3 = (int *) 0 ;
19309 void *argp1 = 0 ;
19310 int res1 = 0 ;
19311 int temp2 ;
19312 int res2 = SWIG_TMPOBJ ;
19313 int temp3 ;
19314 int res3 = SWIG_TMPOBJ ;
19315 PyObject *swig_obj[1] ;
19316
19317 arg2 = &temp2;
19318 arg3 = &temp3;
19319 if (!args) SWIG_fail;
19320 swig_obj[0] = args;
19321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19322 if (!SWIG_IsOK(res1)) {
19323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19324 }
19325 arg1 = reinterpret_cast< wxDC * >(argp1);
19326 {
19327 PyThreadState* __tstate = wxPyBeginAllowThreads();
19328 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
19329 wxPyEndAllowThreads(__tstate);
19330 if (PyErr_Occurred()) SWIG_fail;
19331 }
19332 resultobj = SWIG_Py_Void();
19333 if (SWIG_IsTmpObj(res2)) {
19334 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19335 } else {
19336 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19337 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19338 }
19339 if (SWIG_IsTmpObj(res3)) {
19340 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19341 } else {
19342 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19343 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19344 }
19345 return resultobj;
19346 fail:
19347 return NULL;
19348 }
19349
19350
19351 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19352 PyObject *resultobj = 0;
19353 wxDC *arg1 = (wxDC *) 0 ;
19354 int arg2 ;
19355 int arg3 ;
19356 void *argp1 = 0 ;
19357 int res1 = 0 ;
19358 int val2 ;
19359 int ecode2 = 0 ;
19360 int val3 ;
19361 int ecode3 = 0 ;
19362 PyObject * obj0 = 0 ;
19363 PyObject * obj1 = 0 ;
19364 PyObject * obj2 = 0 ;
19365 char * kwnames[] = {
19366 (char *) "self",(char *) "x",(char *) "y", NULL
19367 };
19368
19369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19371 if (!SWIG_IsOK(res1)) {
19372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19373 }
19374 arg1 = reinterpret_cast< wxDC * >(argp1);
19375 ecode2 = SWIG_AsVal_int(obj1, &val2);
19376 if (!SWIG_IsOK(ecode2)) {
19377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
19378 }
19379 arg2 = static_cast< int >(val2);
19380 ecode3 = SWIG_AsVal_int(obj2, &val3);
19381 if (!SWIG_IsOK(ecode3)) {
19382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
19383 }
19384 arg3 = static_cast< int >(val3);
19385 {
19386 PyThreadState* __tstate = wxPyBeginAllowThreads();
19387 (arg1)->SetLogicalOrigin(arg2,arg3);
19388 wxPyEndAllowThreads(__tstate);
19389 if (PyErr_Occurred()) SWIG_fail;
19390 }
19391 resultobj = SWIG_Py_Void();
19392 return resultobj;
19393 fail:
19394 return NULL;
19395 }
19396
19397
19398 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19399 PyObject *resultobj = 0;
19400 wxDC *arg1 = (wxDC *) 0 ;
19401 wxPoint *arg2 = 0 ;
19402 void *argp1 = 0 ;
19403 int res1 = 0 ;
19404 wxPoint temp2 ;
19405 PyObject * obj0 = 0 ;
19406 PyObject * obj1 = 0 ;
19407 char * kwnames[] = {
19408 (char *) "self",(char *) "point", NULL
19409 };
19410
19411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19413 if (!SWIG_IsOK(res1)) {
19414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19415 }
19416 arg1 = reinterpret_cast< wxDC * >(argp1);
19417 {
19418 arg2 = &temp2;
19419 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19420 }
19421 {
19422 PyThreadState* __tstate = wxPyBeginAllowThreads();
19423 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
19424 wxPyEndAllowThreads(__tstate);
19425 if (PyErr_Occurred()) SWIG_fail;
19426 }
19427 resultobj = SWIG_Py_Void();
19428 return resultobj;
19429 fail:
19430 return NULL;
19431 }
19432
19433
19434 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19435 PyObject *resultobj = 0;
19436 wxDC *arg1 = (wxDC *) 0 ;
19437 wxPoint result;
19438 void *argp1 = 0 ;
19439 int res1 = 0 ;
19440 PyObject *swig_obj[1] ;
19441
19442 if (!args) SWIG_fail;
19443 swig_obj[0] = args;
19444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19445 if (!SWIG_IsOK(res1)) {
19446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19447 }
19448 arg1 = reinterpret_cast< wxDC * >(argp1);
19449 {
19450 PyThreadState* __tstate = wxPyBeginAllowThreads();
19451 result = ((wxDC const *)arg1)->GetDeviceOrigin();
19452 wxPyEndAllowThreads(__tstate);
19453 if (PyErr_Occurred()) SWIG_fail;
19454 }
19455 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19456 return resultobj;
19457 fail:
19458 return NULL;
19459 }
19460
19461
19462 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19463 PyObject *resultobj = 0;
19464 wxDC *arg1 = (wxDC *) 0 ;
19465 int *arg2 = (int *) 0 ;
19466 int *arg3 = (int *) 0 ;
19467 void *argp1 = 0 ;
19468 int res1 = 0 ;
19469 int temp2 ;
19470 int res2 = SWIG_TMPOBJ ;
19471 int temp3 ;
19472 int res3 = SWIG_TMPOBJ ;
19473 PyObject *swig_obj[1] ;
19474
19475 arg2 = &temp2;
19476 arg3 = &temp3;
19477 if (!args) SWIG_fail;
19478 swig_obj[0] = args;
19479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19480 if (!SWIG_IsOK(res1)) {
19481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19482 }
19483 arg1 = reinterpret_cast< wxDC * >(argp1);
19484 {
19485 PyThreadState* __tstate = wxPyBeginAllowThreads();
19486 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
19487 wxPyEndAllowThreads(__tstate);
19488 if (PyErr_Occurred()) SWIG_fail;
19489 }
19490 resultobj = SWIG_Py_Void();
19491 if (SWIG_IsTmpObj(res2)) {
19492 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19493 } else {
19494 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19495 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19496 }
19497 if (SWIG_IsTmpObj(res3)) {
19498 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19499 } else {
19500 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19501 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19502 }
19503 return resultobj;
19504 fail:
19505 return NULL;
19506 }
19507
19508
19509 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19510 PyObject *resultobj = 0;
19511 wxDC *arg1 = (wxDC *) 0 ;
19512 int arg2 ;
19513 int arg3 ;
19514 void *argp1 = 0 ;
19515 int res1 = 0 ;
19516 int val2 ;
19517 int ecode2 = 0 ;
19518 int val3 ;
19519 int ecode3 = 0 ;
19520 PyObject * obj0 = 0 ;
19521 PyObject * obj1 = 0 ;
19522 PyObject * obj2 = 0 ;
19523 char * kwnames[] = {
19524 (char *) "self",(char *) "x",(char *) "y", NULL
19525 };
19526
19527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19529 if (!SWIG_IsOK(res1)) {
19530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19531 }
19532 arg1 = reinterpret_cast< wxDC * >(argp1);
19533 ecode2 = SWIG_AsVal_int(obj1, &val2);
19534 if (!SWIG_IsOK(ecode2)) {
19535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
19536 }
19537 arg2 = static_cast< int >(val2);
19538 ecode3 = SWIG_AsVal_int(obj2, &val3);
19539 if (!SWIG_IsOK(ecode3)) {
19540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
19541 }
19542 arg3 = static_cast< int >(val3);
19543 {
19544 PyThreadState* __tstate = wxPyBeginAllowThreads();
19545 (arg1)->SetDeviceOrigin(arg2,arg3);
19546 wxPyEndAllowThreads(__tstate);
19547 if (PyErr_Occurred()) SWIG_fail;
19548 }
19549 resultobj = SWIG_Py_Void();
19550 return resultobj;
19551 fail:
19552 return NULL;
19553 }
19554
19555
19556 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19557 PyObject *resultobj = 0;
19558 wxDC *arg1 = (wxDC *) 0 ;
19559 wxPoint *arg2 = 0 ;
19560 void *argp1 = 0 ;
19561 int res1 = 0 ;
19562 wxPoint temp2 ;
19563 PyObject * obj0 = 0 ;
19564 PyObject * obj1 = 0 ;
19565 char * kwnames[] = {
19566 (char *) "self",(char *) "point", NULL
19567 };
19568
19569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19571 if (!SWIG_IsOK(res1)) {
19572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19573 }
19574 arg1 = reinterpret_cast< wxDC * >(argp1);
19575 {
19576 arg2 = &temp2;
19577 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19578 }
19579 {
19580 PyThreadState* __tstate = wxPyBeginAllowThreads();
19581 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
19582 wxPyEndAllowThreads(__tstate);
19583 if (PyErr_Occurred()) SWIG_fail;
19584 }
19585 resultobj = SWIG_Py_Void();
19586 return resultobj;
19587 fail:
19588 return NULL;
19589 }
19590
19591
19592 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19593 PyObject *resultobj = 0;
19594 wxDC *arg1 = (wxDC *) 0 ;
19595 bool arg2 ;
19596 bool arg3 ;
19597 void *argp1 = 0 ;
19598 int res1 = 0 ;
19599 bool val2 ;
19600 int ecode2 = 0 ;
19601 bool val3 ;
19602 int ecode3 = 0 ;
19603 PyObject * obj0 = 0 ;
19604 PyObject * obj1 = 0 ;
19605 PyObject * obj2 = 0 ;
19606 char * kwnames[] = {
19607 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
19608 };
19609
19610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19612 if (!SWIG_IsOK(res1)) {
19613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
19614 }
19615 arg1 = reinterpret_cast< wxDC * >(argp1);
19616 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19617 if (!SWIG_IsOK(ecode2)) {
19618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
19619 }
19620 arg2 = static_cast< bool >(val2);
19621 ecode3 = SWIG_AsVal_bool(obj2, &val3);
19622 if (!SWIG_IsOK(ecode3)) {
19623 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
19624 }
19625 arg3 = static_cast< bool >(val3);
19626 {
19627 PyThreadState* __tstate = wxPyBeginAllowThreads();
19628 (arg1)->SetAxisOrientation(arg2,arg3);
19629 wxPyEndAllowThreads(__tstate);
19630 if (PyErr_Occurred()) SWIG_fail;
19631 }
19632 resultobj = SWIG_Py_Void();
19633 return resultobj;
19634 fail:
19635 return NULL;
19636 }
19637
19638
19639 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19640 PyObject *resultobj = 0;
19641 wxDC *arg1 = (wxDC *) 0 ;
19642 int result;
19643 void *argp1 = 0 ;
19644 int res1 = 0 ;
19645 PyObject *swig_obj[1] ;
19646
19647 if (!args) SWIG_fail;
19648 swig_obj[0] = args;
19649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19650 if (!SWIG_IsOK(res1)) {
19651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
19652 }
19653 arg1 = reinterpret_cast< wxDC * >(argp1);
19654 {
19655 PyThreadState* __tstate = wxPyBeginAllowThreads();
19656 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
19657 wxPyEndAllowThreads(__tstate);
19658 if (PyErr_Occurred()) SWIG_fail;
19659 }
19660 resultobj = SWIG_From_int(static_cast< int >(result));
19661 return resultobj;
19662 fail:
19663 return NULL;
19664 }
19665
19666
19667 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19668 PyObject *resultobj = 0;
19669 wxDC *arg1 = (wxDC *) 0 ;
19670 int arg2 ;
19671 void *argp1 = 0 ;
19672 int res1 = 0 ;
19673 int val2 ;
19674 int ecode2 = 0 ;
19675 PyObject * obj0 = 0 ;
19676 PyObject * obj1 = 0 ;
19677 char * kwnames[] = {
19678 (char *) "self",(char *) "function", NULL
19679 };
19680
19681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
19682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19683 if (!SWIG_IsOK(res1)) {
19684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
19685 }
19686 arg1 = reinterpret_cast< wxDC * >(argp1);
19687 ecode2 = SWIG_AsVal_int(obj1, &val2);
19688 if (!SWIG_IsOK(ecode2)) {
19689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
19690 }
19691 arg2 = static_cast< int >(val2);
19692 {
19693 PyThreadState* __tstate = wxPyBeginAllowThreads();
19694 (arg1)->SetLogicalFunction(arg2);
19695 wxPyEndAllowThreads(__tstate);
19696 if (PyErr_Occurred()) SWIG_fail;
19697 }
19698 resultobj = SWIG_Py_Void();
19699 return resultobj;
19700 fail:
19701 return NULL;
19702 }
19703
19704
19705 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19706 PyObject *resultobj = 0;
19707 wxDC *arg1 = (wxDC *) 0 ;
19708 void *argp1 = 0 ;
19709 int res1 = 0 ;
19710 PyObject *swig_obj[1] ;
19711
19712 if (!args) SWIG_fail;
19713 swig_obj[0] = args;
19714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19715 if (!SWIG_IsOK(res1)) {
19716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19717 }
19718 arg1 = reinterpret_cast< wxDC * >(argp1);
19719 {
19720 PyThreadState* __tstate = wxPyBeginAllowThreads();
19721 (arg1)->ComputeScaleAndOrigin();
19722 wxPyEndAllowThreads(__tstate);
19723 if (PyErr_Occurred()) SWIG_fail;
19724 }
19725 resultobj = SWIG_Py_Void();
19726 return resultobj;
19727 fail:
19728 return NULL;
19729 }
19730
19731
19732 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19733 PyObject *resultobj = 0;
19734 wxDC *arg1 = (wxDC *) 0 ;
19735 int arg2 ;
19736 int arg3 ;
19737 void *argp1 = 0 ;
19738 int res1 = 0 ;
19739 int val2 ;
19740 int ecode2 = 0 ;
19741 int val3 ;
19742 int ecode3 = 0 ;
19743 PyObject * obj0 = 0 ;
19744 PyObject * obj1 = 0 ;
19745 PyObject * obj2 = 0 ;
19746 char * kwnames[] = {
19747 (char *) "self",(char *) "x",(char *) "y", NULL
19748 };
19749
19750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19752 if (!SWIG_IsOK(res1)) {
19753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19754 }
19755 arg1 = reinterpret_cast< wxDC * >(argp1);
19756 ecode2 = SWIG_AsVal_int(obj1, &val2);
19757 if (!SWIG_IsOK(ecode2)) {
19758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
19759 }
19760 arg2 = static_cast< int >(val2);
19761 ecode3 = SWIG_AsVal_int(obj2, &val3);
19762 if (!SWIG_IsOK(ecode3)) {
19763 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
19764 }
19765 arg3 = static_cast< int >(val3);
19766 {
19767 PyThreadState* __tstate = wxPyBeginAllowThreads();
19768 (arg1)->CalcBoundingBox(arg2,arg3);
19769 wxPyEndAllowThreads(__tstate);
19770 if (PyErr_Occurred()) SWIG_fail;
19771 }
19772 resultobj = SWIG_Py_Void();
19773 return resultobj;
19774 fail:
19775 return NULL;
19776 }
19777
19778
19779 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19780 PyObject *resultobj = 0;
19781 wxDC *arg1 = (wxDC *) 0 ;
19782 wxPoint *arg2 = 0 ;
19783 void *argp1 = 0 ;
19784 int res1 = 0 ;
19785 wxPoint temp2 ;
19786 PyObject * obj0 = 0 ;
19787 PyObject * obj1 = 0 ;
19788 char * kwnames[] = {
19789 (char *) "self",(char *) "point", NULL
19790 };
19791
19792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19794 if (!SWIG_IsOK(res1)) {
19795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19796 }
19797 arg1 = reinterpret_cast< wxDC * >(argp1);
19798 {
19799 arg2 = &temp2;
19800 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19801 }
19802 {
19803 PyThreadState* __tstate = wxPyBeginAllowThreads();
19804 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
19805 wxPyEndAllowThreads(__tstate);
19806 if (PyErr_Occurred()) SWIG_fail;
19807 }
19808 resultobj = SWIG_Py_Void();
19809 return resultobj;
19810 fail:
19811 return NULL;
19812 }
19813
19814
19815 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19816 PyObject *resultobj = 0;
19817 wxDC *arg1 = (wxDC *) 0 ;
19818 void *argp1 = 0 ;
19819 int res1 = 0 ;
19820 PyObject *swig_obj[1] ;
19821
19822 if (!args) SWIG_fail;
19823 swig_obj[0] = args;
19824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19825 if (!SWIG_IsOK(res1)) {
19826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19827 }
19828 arg1 = reinterpret_cast< wxDC * >(argp1);
19829 {
19830 PyThreadState* __tstate = wxPyBeginAllowThreads();
19831 (arg1)->ResetBoundingBox();
19832 wxPyEndAllowThreads(__tstate);
19833 if (PyErr_Occurred()) SWIG_fail;
19834 }
19835 resultobj = SWIG_Py_Void();
19836 return resultobj;
19837 fail:
19838 return NULL;
19839 }
19840
19841
19842 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19843 PyObject *resultobj = 0;
19844 wxDC *arg1 = (wxDC *) 0 ;
19845 int result;
19846 void *argp1 = 0 ;
19847 int res1 = 0 ;
19848 PyObject *swig_obj[1] ;
19849
19850 if (!args) SWIG_fail;
19851 swig_obj[0] = args;
19852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19853 if (!SWIG_IsOK(res1)) {
19854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
19855 }
19856 arg1 = reinterpret_cast< wxDC * >(argp1);
19857 {
19858 PyThreadState* __tstate = wxPyBeginAllowThreads();
19859 result = (int)((wxDC const *)arg1)->MinX();
19860 wxPyEndAllowThreads(__tstate);
19861 if (PyErr_Occurred()) SWIG_fail;
19862 }
19863 resultobj = SWIG_From_int(static_cast< int >(result));
19864 return resultobj;
19865 fail:
19866 return NULL;
19867 }
19868
19869
19870 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19871 PyObject *resultobj = 0;
19872 wxDC *arg1 = (wxDC *) 0 ;
19873 int result;
19874 void *argp1 = 0 ;
19875 int res1 = 0 ;
19876 PyObject *swig_obj[1] ;
19877
19878 if (!args) SWIG_fail;
19879 swig_obj[0] = args;
19880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19881 if (!SWIG_IsOK(res1)) {
19882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
19883 }
19884 arg1 = reinterpret_cast< wxDC * >(argp1);
19885 {
19886 PyThreadState* __tstate = wxPyBeginAllowThreads();
19887 result = (int)((wxDC const *)arg1)->MaxX();
19888 wxPyEndAllowThreads(__tstate);
19889 if (PyErr_Occurred()) SWIG_fail;
19890 }
19891 resultobj = SWIG_From_int(static_cast< int >(result));
19892 return resultobj;
19893 fail:
19894 return NULL;
19895 }
19896
19897
19898 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19899 PyObject *resultobj = 0;
19900 wxDC *arg1 = (wxDC *) 0 ;
19901 int result;
19902 void *argp1 = 0 ;
19903 int res1 = 0 ;
19904 PyObject *swig_obj[1] ;
19905
19906 if (!args) SWIG_fail;
19907 swig_obj[0] = args;
19908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19909 if (!SWIG_IsOK(res1)) {
19910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
19911 }
19912 arg1 = reinterpret_cast< wxDC * >(argp1);
19913 {
19914 PyThreadState* __tstate = wxPyBeginAllowThreads();
19915 result = (int)((wxDC const *)arg1)->MinY();
19916 wxPyEndAllowThreads(__tstate);
19917 if (PyErr_Occurred()) SWIG_fail;
19918 }
19919 resultobj = SWIG_From_int(static_cast< int >(result));
19920 return resultobj;
19921 fail:
19922 return NULL;
19923 }
19924
19925
19926 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19927 PyObject *resultobj = 0;
19928 wxDC *arg1 = (wxDC *) 0 ;
19929 int result;
19930 void *argp1 = 0 ;
19931 int res1 = 0 ;
19932 PyObject *swig_obj[1] ;
19933
19934 if (!args) SWIG_fail;
19935 swig_obj[0] = args;
19936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19937 if (!SWIG_IsOK(res1)) {
19938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
19939 }
19940 arg1 = reinterpret_cast< wxDC * >(argp1);
19941 {
19942 PyThreadState* __tstate = wxPyBeginAllowThreads();
19943 result = (int)((wxDC const *)arg1)->MaxY();
19944 wxPyEndAllowThreads(__tstate);
19945 if (PyErr_Occurred()) SWIG_fail;
19946 }
19947 resultobj = SWIG_From_int(static_cast< int >(result));
19948 return resultobj;
19949 fail:
19950 return NULL;
19951 }
19952
19953
19954 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19955 PyObject *resultobj = 0;
19956 wxDC *arg1 = (wxDC *) 0 ;
19957 int *arg2 = (int *) 0 ;
19958 int *arg3 = (int *) 0 ;
19959 int *arg4 = (int *) 0 ;
19960 int *arg5 = (int *) 0 ;
19961 void *argp1 = 0 ;
19962 int res1 = 0 ;
19963 int temp2 ;
19964 int res2 = SWIG_TMPOBJ ;
19965 int temp3 ;
19966 int res3 = SWIG_TMPOBJ ;
19967 int temp4 ;
19968 int res4 = SWIG_TMPOBJ ;
19969 int temp5 ;
19970 int res5 = SWIG_TMPOBJ ;
19971 PyObject *swig_obj[1] ;
19972
19973 arg2 = &temp2;
19974 arg3 = &temp3;
19975 arg4 = &temp4;
19976 arg5 = &temp5;
19977 if (!args) SWIG_fail;
19978 swig_obj[0] = args;
19979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19980 if (!SWIG_IsOK(res1)) {
19981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19982 }
19983 arg1 = reinterpret_cast< wxDC * >(argp1);
19984 {
19985 PyThreadState* __tstate = wxPyBeginAllowThreads();
19986 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
19987 wxPyEndAllowThreads(__tstate);
19988 if (PyErr_Occurred()) SWIG_fail;
19989 }
19990 resultobj = SWIG_Py_Void();
19991 if (SWIG_IsTmpObj(res2)) {
19992 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19993 } else {
19994 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19995 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19996 }
19997 if (SWIG_IsTmpObj(res3)) {
19998 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19999 } else {
20000 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20001 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20002 }
20003 if (SWIG_IsTmpObj(res4)) {
20004 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20005 } else {
20006 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20007 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20008 }
20009 if (SWIG_IsTmpObj(res5)) {
20010 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20011 } else {
20012 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20013 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20014 }
20015 return resultobj;
20016 fail:
20017 return NULL;
20018 }
20019
20020
20021 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20022 PyObject *resultobj = 0;
20023 wxDC *arg1 = (wxDC *) 0 ;
20024 PyObject *arg2 = (PyObject *) 0 ;
20025 PyObject *arg3 = (PyObject *) 0 ;
20026 PyObject *arg4 = (PyObject *) 0 ;
20027 PyObject *result = 0 ;
20028 void *argp1 = 0 ;
20029 int res1 = 0 ;
20030 PyObject * obj0 = 0 ;
20031 PyObject * obj1 = 0 ;
20032 PyObject * obj2 = 0 ;
20033 PyObject * obj3 = 0 ;
20034 char * kwnames[] = {
20035 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20036 };
20037
20038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20040 if (!SWIG_IsOK(res1)) {
20041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
20042 }
20043 arg1 = reinterpret_cast< wxDC * >(argp1);
20044 arg2 = obj1;
20045 arg3 = obj2;
20046 arg4 = obj3;
20047 {
20048 PyThreadState* __tstate = wxPyBeginAllowThreads();
20049 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
20050 wxPyEndAllowThreads(__tstate);
20051 if (PyErr_Occurred()) SWIG_fail;
20052 }
20053 resultobj = result;
20054 return resultobj;
20055 fail:
20056 return NULL;
20057 }
20058
20059
20060 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20061 PyObject *resultobj = 0;
20062 wxDC *arg1 = (wxDC *) 0 ;
20063 PyObject *arg2 = (PyObject *) 0 ;
20064 PyObject *arg3 = (PyObject *) 0 ;
20065 PyObject *arg4 = (PyObject *) 0 ;
20066 PyObject *result = 0 ;
20067 void *argp1 = 0 ;
20068 int res1 = 0 ;
20069 PyObject * obj0 = 0 ;
20070 PyObject * obj1 = 0 ;
20071 PyObject * obj2 = 0 ;
20072 PyObject * obj3 = 0 ;
20073 char * kwnames[] = {
20074 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20075 };
20076
20077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20079 if (!SWIG_IsOK(res1)) {
20080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20081 }
20082 arg1 = reinterpret_cast< wxDC * >(argp1);
20083 arg2 = obj1;
20084 arg3 = obj2;
20085 arg4 = obj3;
20086 {
20087 PyThreadState* __tstate = wxPyBeginAllowThreads();
20088 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
20089 wxPyEndAllowThreads(__tstate);
20090 if (PyErr_Occurred()) SWIG_fail;
20091 }
20092 resultobj = result;
20093 return resultobj;
20094 fail:
20095 return NULL;
20096 }
20097
20098
20099 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20100 PyObject *resultobj = 0;
20101 wxDC *arg1 = (wxDC *) 0 ;
20102 PyObject *arg2 = (PyObject *) 0 ;
20103 PyObject *arg3 = (PyObject *) 0 ;
20104 PyObject *arg4 = (PyObject *) 0 ;
20105 PyObject *result = 0 ;
20106 void *argp1 = 0 ;
20107 int res1 = 0 ;
20108 PyObject * obj0 = 0 ;
20109 PyObject * obj1 = 0 ;
20110 PyObject * obj2 = 0 ;
20111 PyObject * obj3 = 0 ;
20112 char * kwnames[] = {
20113 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20114 };
20115
20116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20118 if (!SWIG_IsOK(res1)) {
20119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20120 }
20121 arg1 = reinterpret_cast< wxDC * >(argp1);
20122 arg2 = obj1;
20123 arg3 = obj2;
20124 arg4 = obj3;
20125 {
20126 PyThreadState* __tstate = wxPyBeginAllowThreads();
20127 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
20128 wxPyEndAllowThreads(__tstate);
20129 if (PyErr_Occurred()) SWIG_fail;
20130 }
20131 resultobj = result;
20132 return resultobj;
20133 fail:
20134 return NULL;
20135 }
20136
20137
20138 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20139 PyObject *resultobj = 0;
20140 wxDC *arg1 = (wxDC *) 0 ;
20141 PyObject *arg2 = (PyObject *) 0 ;
20142 PyObject *arg3 = (PyObject *) 0 ;
20143 PyObject *arg4 = (PyObject *) 0 ;
20144 PyObject *result = 0 ;
20145 void *argp1 = 0 ;
20146 int res1 = 0 ;
20147 PyObject * obj0 = 0 ;
20148 PyObject * obj1 = 0 ;
20149 PyObject * obj2 = 0 ;
20150 PyObject * obj3 = 0 ;
20151 char * kwnames[] = {
20152 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20153 };
20154
20155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20157 if (!SWIG_IsOK(res1)) {
20158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20159 }
20160 arg1 = reinterpret_cast< wxDC * >(argp1);
20161 arg2 = obj1;
20162 arg3 = obj2;
20163 arg4 = obj3;
20164 {
20165 PyThreadState* __tstate = wxPyBeginAllowThreads();
20166 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
20167 wxPyEndAllowThreads(__tstate);
20168 if (PyErr_Occurred()) SWIG_fail;
20169 }
20170 resultobj = result;
20171 return resultobj;
20172 fail:
20173 return NULL;
20174 }
20175
20176
20177 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20178 PyObject *resultobj = 0;
20179 wxDC *arg1 = (wxDC *) 0 ;
20180 PyObject *arg2 = (PyObject *) 0 ;
20181 PyObject *arg3 = (PyObject *) 0 ;
20182 PyObject *arg4 = (PyObject *) 0 ;
20183 PyObject *result = 0 ;
20184 void *argp1 = 0 ;
20185 int res1 = 0 ;
20186 PyObject * obj0 = 0 ;
20187 PyObject * obj1 = 0 ;
20188 PyObject * obj2 = 0 ;
20189 PyObject * obj3 = 0 ;
20190 char * kwnames[] = {
20191 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20192 };
20193
20194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20196 if (!SWIG_IsOK(res1)) {
20197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20198 }
20199 arg1 = reinterpret_cast< wxDC * >(argp1);
20200 arg2 = obj1;
20201 arg3 = obj2;
20202 arg4 = obj3;
20203 {
20204 PyThreadState* __tstate = wxPyBeginAllowThreads();
20205 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
20206 wxPyEndAllowThreads(__tstate);
20207 if (PyErr_Occurred()) SWIG_fail;
20208 }
20209 resultobj = result;
20210 return resultobj;
20211 fail:
20212 return NULL;
20213 }
20214
20215
20216 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20217 PyObject *resultobj = 0;
20218 wxDC *arg1 = (wxDC *) 0 ;
20219 PyObject *arg2 = (PyObject *) 0 ;
20220 PyObject *arg3 = (PyObject *) 0 ;
20221 PyObject *arg4 = (PyObject *) 0 ;
20222 PyObject *arg5 = (PyObject *) 0 ;
20223 PyObject *result = 0 ;
20224 void *argp1 = 0 ;
20225 int res1 = 0 ;
20226 PyObject * obj0 = 0 ;
20227 PyObject * obj1 = 0 ;
20228 PyObject * obj2 = 0 ;
20229 PyObject * obj3 = 0 ;
20230 PyObject * obj4 = 0 ;
20231 char * kwnames[] = {
20232 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20233 };
20234
20235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20237 if (!SWIG_IsOK(res1)) {
20238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20239 }
20240 arg1 = reinterpret_cast< wxDC * >(argp1);
20241 arg2 = obj1;
20242 arg3 = obj2;
20243 arg4 = obj3;
20244 arg5 = obj4;
20245 {
20246 PyThreadState* __tstate = wxPyBeginAllowThreads();
20247 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
20248 wxPyEndAllowThreads(__tstate);
20249 if (PyErr_Occurred()) SWIG_fail;
20250 }
20251 resultobj = result;
20252 return resultobj;
20253 fail:
20254 return NULL;
20255 }
20256
20257
20258 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20259 PyObject *obj;
20260 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20261 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
20262 return SWIG_Py_Void();
20263 }
20264
20265 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20266 PyObject *resultobj = 0;
20267 wxMemoryDC *result = 0 ;
20268
20269 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
20270 {
20271 if (!wxPyCheckForApp()) SWIG_fail;
20272 PyThreadState* __tstate = wxPyBeginAllowThreads();
20273 result = (wxMemoryDC *)new wxMemoryDC();
20274 wxPyEndAllowThreads(__tstate);
20275 if (PyErr_Occurred()) SWIG_fail;
20276 }
20277 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
20278 return resultobj;
20279 fail:
20280 return NULL;
20281 }
20282
20283
20284 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20285 PyObject *resultobj = 0;
20286 wxDC *arg1 = (wxDC *) 0 ;
20287 wxMemoryDC *result = 0 ;
20288 void *argp1 = 0 ;
20289 int res1 = 0 ;
20290 PyObject * obj0 = 0 ;
20291 char * kwnames[] = {
20292 (char *) "oldDC", NULL
20293 };
20294
20295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
20296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20297 if (!SWIG_IsOK(res1)) {
20298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
20299 }
20300 arg1 = reinterpret_cast< wxDC * >(argp1);
20301 {
20302 if (!wxPyCheckForApp()) SWIG_fail;
20303 PyThreadState* __tstate = wxPyBeginAllowThreads();
20304 result = (wxMemoryDC *)new wxMemoryDC(arg1);
20305 wxPyEndAllowThreads(__tstate);
20306 if (PyErr_Occurred()) SWIG_fail;
20307 }
20308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
20309 return resultobj;
20310 fail:
20311 return NULL;
20312 }
20313
20314
20315 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20316 PyObject *resultobj = 0;
20317 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
20318 wxBitmap *arg2 = 0 ;
20319 void *argp1 = 0 ;
20320 int res1 = 0 ;
20321 void *argp2 = 0 ;
20322 int res2 = 0 ;
20323 PyObject * obj0 = 0 ;
20324 PyObject * obj1 = 0 ;
20325 char * kwnames[] = {
20326 (char *) "self",(char *) "bitmap", NULL
20327 };
20328
20329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
20330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
20331 if (!SWIG_IsOK(res1)) {
20332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
20333 }
20334 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
20335 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20336 if (!SWIG_IsOK(res2)) {
20337 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20338 }
20339 if (!argp2) {
20340 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20341 }
20342 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20343 {
20344 PyThreadState* __tstate = wxPyBeginAllowThreads();
20345 (arg1)->SelectObject((wxBitmap const &)*arg2);
20346 wxPyEndAllowThreads(__tstate);
20347 if (PyErr_Occurred()) SWIG_fail;
20348 }
20349 resultobj = SWIG_Py_Void();
20350 return resultobj;
20351 fail:
20352 return NULL;
20353 }
20354
20355
20356 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20357 PyObject *obj;
20358 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20359 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
20360 return SWIG_Py_Void();
20361 }
20362
20363 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20364 return SWIG_Python_InitShadowInstance(args);
20365 }
20366
20367 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20368 PyObject *resultobj = 0;
20369 wxDC *arg1 = (wxDC *) 0 ;
20370 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20371 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20372 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20373 wxBufferedDC *result = 0 ;
20374 void *argp1 = 0 ;
20375 int res1 = 0 ;
20376 void *argp2 = 0 ;
20377 int res2 = 0 ;
20378 int val3 ;
20379 int ecode3 = 0 ;
20380
20381 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
20382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20383 if (!SWIG_IsOK(res1)) {
20384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20385 }
20386 arg1 = reinterpret_cast< wxDC * >(argp1);
20387 if (swig_obj[1]) {
20388 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20389 if (!SWIG_IsOK(res2)) {
20390 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20391 }
20392 if (!argp2) {
20393 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20394 }
20395 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20396 }
20397 if (swig_obj[2]) {
20398 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20399 if (!SWIG_IsOK(ecode3)) {
20400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20401 }
20402 arg3 = static_cast< int >(val3);
20403 }
20404 {
20405 if (!wxPyCheckForApp()) SWIG_fail;
20406 PyThreadState* __tstate = wxPyBeginAllowThreads();
20407 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
20408 wxPyEndAllowThreads(__tstate);
20409 if (PyErr_Occurred()) SWIG_fail;
20410 }
20411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20412 return resultobj;
20413 fail:
20414 return NULL;
20415 }
20416
20417
20418 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20419 PyObject *resultobj = 0;
20420 wxDC *arg1 = (wxDC *) 0 ;
20421 wxSize *arg2 = 0 ;
20422 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20423 wxBufferedDC *result = 0 ;
20424 void *argp1 = 0 ;
20425 int res1 = 0 ;
20426 wxSize temp2 ;
20427 int val3 ;
20428 int ecode3 = 0 ;
20429
20430 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
20431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20432 if (!SWIG_IsOK(res1)) {
20433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20434 }
20435 arg1 = reinterpret_cast< wxDC * >(argp1);
20436 {
20437 arg2 = &temp2;
20438 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
20439 }
20440 if (swig_obj[2]) {
20441 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20442 if (!SWIG_IsOK(ecode3)) {
20443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20444 }
20445 arg3 = static_cast< int >(val3);
20446 }
20447 {
20448 if (!wxPyCheckForApp()) SWIG_fail;
20449 PyThreadState* __tstate = wxPyBeginAllowThreads();
20450 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
20451 wxPyEndAllowThreads(__tstate);
20452 if (PyErr_Occurred()) SWIG_fail;
20453 }
20454 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20455 return resultobj;
20456 fail:
20457 return NULL;
20458 }
20459
20460
20461 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
20462 int argc;
20463 PyObject *argv[4];
20464
20465 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
20466 --argc;
20467 if ((argc >= 1) && (argc <= 3)) {
20468 int _v = 0;
20469 if (argc > 1) {
20470 {
20471 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
20472 _v = SWIG_CheckState(res);
20473 }
20474 if (!_v) goto check_1;
20475 }
20476 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
20477 }
20478 check_1:
20479
20480 if ((argc >= 2) && (argc <= 3)) {
20481 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
20482 }
20483
20484 fail:
20485 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
20486 return NULL;
20487 }
20488
20489
20490 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20491 PyObject *resultobj = 0;
20492 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20493 void *argp1 = 0 ;
20494 int res1 = 0 ;
20495 PyObject *swig_obj[1] ;
20496
20497 if (!args) SWIG_fail;
20498 swig_obj[0] = args;
20499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
20500 if (!SWIG_IsOK(res1)) {
20501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20502 }
20503 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20504 {
20505 PyThreadState* __tstate = wxPyBeginAllowThreads();
20506 delete arg1;
20507
20508 wxPyEndAllowThreads(__tstate);
20509 if (PyErr_Occurred()) SWIG_fail;
20510 }
20511 resultobj = SWIG_Py_Void();
20512 return resultobj;
20513 fail:
20514 return NULL;
20515 }
20516
20517
20518 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20519 PyObject *resultobj = 0;
20520 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20521 void *argp1 = 0 ;
20522 int res1 = 0 ;
20523 PyObject *swig_obj[1] ;
20524
20525 if (!args) SWIG_fail;
20526 swig_obj[0] = args;
20527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
20528 if (!SWIG_IsOK(res1)) {
20529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20530 }
20531 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20532 {
20533 PyThreadState* __tstate = wxPyBeginAllowThreads();
20534 (arg1)->UnMask();
20535 wxPyEndAllowThreads(__tstate);
20536 if (PyErr_Occurred()) SWIG_fail;
20537 }
20538 resultobj = SWIG_Py_Void();
20539 return resultobj;
20540 fail:
20541 return NULL;
20542 }
20543
20544
20545 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20546 PyObject *obj;
20547 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20548 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
20549 return SWIG_Py_Void();
20550 }
20551
20552 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20553 return SWIG_Python_InitShadowInstance(args);
20554 }
20555
20556 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20557 PyObject *resultobj = 0;
20558 wxWindow *arg1 = (wxWindow *) 0 ;
20559 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20560 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20561 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20562 wxBufferedPaintDC *result = 0 ;
20563 void *argp1 = 0 ;
20564 int res1 = 0 ;
20565 void *argp2 = 0 ;
20566 int res2 = 0 ;
20567 int val3 ;
20568 int ecode3 = 0 ;
20569 PyObject * obj0 = 0 ;
20570 PyObject * obj1 = 0 ;
20571 PyObject * obj2 = 0 ;
20572 char * kwnames[] = {
20573 (char *) "window",(char *) "buffer",(char *) "style", NULL
20574 };
20575
20576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20578 if (!SWIG_IsOK(res1)) {
20579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20580 }
20581 arg1 = reinterpret_cast< wxWindow * >(argp1);
20582 if (obj1) {
20583 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20584 if (!SWIG_IsOK(res2)) {
20585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20586 }
20587 if (!argp2) {
20588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20589 }
20590 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20591 }
20592 if (obj2) {
20593 ecode3 = SWIG_AsVal_int(obj2, &val3);
20594 if (!SWIG_IsOK(ecode3)) {
20595 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
20596 }
20597 arg3 = static_cast< int >(val3);
20598 }
20599 {
20600 if (!wxPyCheckForApp()) SWIG_fail;
20601 PyThreadState* __tstate = wxPyBeginAllowThreads();
20602 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
20603 wxPyEndAllowThreads(__tstate);
20604 if (PyErr_Occurred()) SWIG_fail;
20605 }
20606 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
20607 return resultobj;
20608 fail:
20609 return NULL;
20610 }
20611
20612
20613 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20614 PyObject *obj;
20615 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20616 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
20617 return SWIG_Py_Void();
20618 }
20619
20620 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20621 return SWIG_Python_InitShadowInstance(args);
20622 }
20623
20624 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20625 PyObject *resultobj = 0;
20626 wxScreenDC *result = 0 ;
20627
20628 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
20629 {
20630 if (!wxPyCheckForApp()) SWIG_fail;
20631 PyThreadState* __tstate = wxPyBeginAllowThreads();
20632 result = (wxScreenDC *)new wxScreenDC();
20633 wxPyEndAllowThreads(__tstate);
20634 if (PyErr_Occurred()) SWIG_fail;
20635 }
20636 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
20637 return resultobj;
20638 fail:
20639 return NULL;
20640 }
20641
20642
20643 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20644 PyObject *resultobj = 0;
20645 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20646 wxWindow *arg2 = (wxWindow *) 0 ;
20647 bool result;
20648 void *argp1 = 0 ;
20649 int res1 = 0 ;
20650 void *argp2 = 0 ;
20651 int res2 = 0 ;
20652 PyObject * obj0 = 0 ;
20653 PyObject * obj1 = 0 ;
20654 char * kwnames[] = {
20655 (char *) "self",(char *) "window", NULL
20656 };
20657
20658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
20659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20660 if (!SWIG_IsOK(res1)) {
20661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20662 }
20663 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20664 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20665 if (!SWIG_IsOK(res2)) {
20666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
20667 }
20668 arg2 = reinterpret_cast< wxWindow * >(argp2);
20669 {
20670 PyThreadState* __tstate = wxPyBeginAllowThreads();
20671 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20672 wxPyEndAllowThreads(__tstate);
20673 if (PyErr_Occurred()) SWIG_fail;
20674 }
20675 {
20676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20677 }
20678 return resultobj;
20679 fail:
20680 return NULL;
20681 }
20682
20683
20684 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20685 PyObject *resultobj = 0;
20686 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20687 wxRect *arg2 = (wxRect *) NULL ;
20688 bool result;
20689 void *argp1 = 0 ;
20690 int res1 = 0 ;
20691 void *argp2 = 0 ;
20692 int res2 = 0 ;
20693 PyObject * obj0 = 0 ;
20694 PyObject * obj1 = 0 ;
20695 char * kwnames[] = {
20696 (char *) "self",(char *) "rect", NULL
20697 };
20698
20699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
20700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20701 if (!SWIG_IsOK(res1)) {
20702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20703 }
20704 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20705 if (obj1) {
20706 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20707 if (!SWIG_IsOK(res2)) {
20708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
20709 }
20710 arg2 = reinterpret_cast< wxRect * >(argp2);
20711 }
20712 {
20713 PyThreadState* __tstate = wxPyBeginAllowThreads();
20714 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20715 wxPyEndAllowThreads(__tstate);
20716 if (PyErr_Occurred()) SWIG_fail;
20717 }
20718 {
20719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20720 }
20721 return resultobj;
20722 fail:
20723 return NULL;
20724 }
20725
20726
20727 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20728 PyObject *resultobj = 0;
20729 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20730 bool result;
20731 void *argp1 = 0 ;
20732 int res1 = 0 ;
20733 PyObject *swig_obj[1] ;
20734
20735 if (!args) SWIG_fail;
20736 swig_obj[0] = args;
20737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20738 if (!SWIG_IsOK(res1)) {
20739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20740 }
20741 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20742 {
20743 PyThreadState* __tstate = wxPyBeginAllowThreads();
20744 result = (bool)(arg1)->EndDrawingOnTop();
20745 wxPyEndAllowThreads(__tstate);
20746 if (PyErr_Occurred()) SWIG_fail;
20747 }
20748 {
20749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20750 }
20751 return resultobj;
20752 fail:
20753 return NULL;
20754 }
20755
20756
20757 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20758 PyObject *obj;
20759 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20760 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
20761 return SWIG_Py_Void();
20762 }
20763
20764 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20765 return SWIG_Python_InitShadowInstance(args);
20766 }
20767
20768 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20769 PyObject *resultobj = 0;
20770 wxWindow *arg1 = (wxWindow *) 0 ;
20771 wxClientDC *result = 0 ;
20772 void *argp1 = 0 ;
20773 int res1 = 0 ;
20774 PyObject * obj0 = 0 ;
20775 char * kwnames[] = {
20776 (char *) "win", NULL
20777 };
20778
20779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
20780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20781 if (!SWIG_IsOK(res1)) {
20782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20783 }
20784 arg1 = reinterpret_cast< wxWindow * >(argp1);
20785 {
20786 if (!wxPyCheckForApp()) SWIG_fail;
20787 PyThreadState* __tstate = wxPyBeginAllowThreads();
20788 result = (wxClientDC *)new wxClientDC(arg1);
20789 wxPyEndAllowThreads(__tstate);
20790 if (PyErr_Occurred()) SWIG_fail;
20791 }
20792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
20793 return resultobj;
20794 fail:
20795 return NULL;
20796 }
20797
20798
20799 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20800 PyObject *obj;
20801 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20802 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
20803 return SWIG_Py_Void();
20804 }
20805
20806 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20807 return SWIG_Python_InitShadowInstance(args);
20808 }
20809
20810 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20811 PyObject *resultobj = 0;
20812 wxWindow *arg1 = (wxWindow *) 0 ;
20813 wxPaintDC *result = 0 ;
20814 void *argp1 = 0 ;
20815 int res1 = 0 ;
20816 PyObject * obj0 = 0 ;
20817 char * kwnames[] = {
20818 (char *) "win", NULL
20819 };
20820
20821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
20822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20823 if (!SWIG_IsOK(res1)) {
20824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20825 }
20826 arg1 = reinterpret_cast< wxWindow * >(argp1);
20827 {
20828 if (!wxPyCheckForApp()) SWIG_fail;
20829 PyThreadState* __tstate = wxPyBeginAllowThreads();
20830 result = (wxPaintDC *)new wxPaintDC(arg1);
20831 wxPyEndAllowThreads(__tstate);
20832 if (PyErr_Occurred()) SWIG_fail;
20833 }
20834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
20835 return resultobj;
20836 fail:
20837 return NULL;
20838 }
20839
20840
20841 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20842 PyObject *obj;
20843 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20844 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
20845 return SWIG_Py_Void();
20846 }
20847
20848 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20849 return SWIG_Python_InitShadowInstance(args);
20850 }
20851
20852 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20853 PyObject *resultobj = 0;
20854 wxWindow *arg1 = (wxWindow *) 0 ;
20855 wxWindowDC *result = 0 ;
20856 void *argp1 = 0 ;
20857 int res1 = 0 ;
20858 PyObject * obj0 = 0 ;
20859 char * kwnames[] = {
20860 (char *) "win", NULL
20861 };
20862
20863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
20864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20865 if (!SWIG_IsOK(res1)) {
20866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20867 }
20868 arg1 = reinterpret_cast< wxWindow * >(argp1);
20869 {
20870 if (!wxPyCheckForApp()) SWIG_fail;
20871 PyThreadState* __tstate = wxPyBeginAllowThreads();
20872 result = (wxWindowDC *)new wxWindowDC(arg1);
20873 wxPyEndAllowThreads(__tstate);
20874 if (PyErr_Occurred()) SWIG_fail;
20875 }
20876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
20877 return resultobj;
20878 fail:
20879 return NULL;
20880 }
20881
20882
20883 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20884 PyObject *obj;
20885 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20886 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
20887 return SWIG_Py_Void();
20888 }
20889
20890 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20891 return SWIG_Python_InitShadowInstance(args);
20892 }
20893
20894 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20895 PyObject *resultobj = 0;
20896 wxDC *arg1 = 0 ;
20897 bool arg2 ;
20898 wxMirrorDC *result = 0 ;
20899 void *argp1 = 0 ;
20900 int res1 = 0 ;
20901 bool val2 ;
20902 int ecode2 = 0 ;
20903 PyObject * obj0 = 0 ;
20904 PyObject * obj1 = 0 ;
20905 char * kwnames[] = {
20906 (char *) "dc",(char *) "mirror", NULL
20907 };
20908
20909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
20910 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
20911 if (!SWIG_IsOK(res1)) {
20912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20913 }
20914 if (!argp1) {
20915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20916 }
20917 arg1 = reinterpret_cast< wxDC * >(argp1);
20918 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20919 if (!SWIG_IsOK(ecode2)) {
20920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
20921 }
20922 arg2 = static_cast< bool >(val2);
20923 {
20924 if (!wxPyCheckForApp()) SWIG_fail;
20925 PyThreadState* __tstate = wxPyBeginAllowThreads();
20926 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
20927 wxPyEndAllowThreads(__tstate);
20928 if (PyErr_Occurred()) SWIG_fail;
20929 }
20930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
20931 return resultobj;
20932 fail:
20933 return NULL;
20934 }
20935
20936
20937 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20938 PyObject *obj;
20939 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20940 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
20941 return SWIG_Py_Void();
20942 }
20943
20944 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20945 return SWIG_Python_InitShadowInstance(args);
20946 }
20947
20948 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20949 PyObject *resultobj = 0;
20950 wxPrintData *arg1 = 0 ;
20951 wxPostScriptDC *result = 0 ;
20952 void *argp1 = 0 ;
20953 int res1 = 0 ;
20954 PyObject * obj0 = 0 ;
20955 char * kwnames[] = {
20956 (char *) "printData", NULL
20957 };
20958
20959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
20960 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
20961 if (!SWIG_IsOK(res1)) {
20962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
20963 }
20964 if (!argp1) {
20965 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
20966 }
20967 arg1 = reinterpret_cast< wxPrintData * >(argp1);
20968 {
20969 if (!wxPyCheckForApp()) SWIG_fail;
20970 PyThreadState* __tstate = wxPyBeginAllowThreads();
20971 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
20972 wxPyEndAllowThreads(__tstate);
20973 if (PyErr_Occurred()) SWIG_fail;
20974 }
20975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
20976 return resultobj;
20977 fail:
20978 return NULL;
20979 }
20980
20981
20982 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20983 PyObject *resultobj = 0;
20984 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
20985 wxPrintData *result = 0 ;
20986 void *argp1 = 0 ;
20987 int res1 = 0 ;
20988 PyObject *swig_obj[1] ;
20989
20990 if (!args) SWIG_fail;
20991 swig_obj[0] = args;
20992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
20993 if (!SWIG_IsOK(res1)) {
20994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
20995 }
20996 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
20997 {
20998 PyThreadState* __tstate = wxPyBeginAllowThreads();
20999 {
21000 wxPrintData &_result_ref = (arg1)->GetPrintData();
21001 result = (wxPrintData *) &_result_ref;
21002 }
21003 wxPyEndAllowThreads(__tstate);
21004 if (PyErr_Occurred()) SWIG_fail;
21005 }
21006 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
21007 return resultobj;
21008 fail:
21009 return NULL;
21010 }
21011
21012
21013 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21014 PyObject *resultobj = 0;
21015 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21016 wxPrintData *arg2 = 0 ;
21017 void *argp1 = 0 ;
21018 int res1 = 0 ;
21019 void *argp2 = 0 ;
21020 int res2 = 0 ;
21021 PyObject * obj0 = 0 ;
21022 PyObject * obj1 = 0 ;
21023 char * kwnames[] = {
21024 (char *) "self",(char *) "data", NULL
21025 };
21026
21027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
21028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21029 if (!SWIG_IsOK(res1)) {
21030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21031 }
21032 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21033 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
21034 if (!SWIG_IsOK(res2)) {
21035 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21036 }
21037 if (!argp2) {
21038 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21039 }
21040 arg2 = reinterpret_cast< wxPrintData * >(argp2);
21041 {
21042 PyThreadState* __tstate = wxPyBeginAllowThreads();
21043 (arg1)->SetPrintData((wxPrintData const &)*arg2);
21044 wxPyEndAllowThreads(__tstate);
21045 if (PyErr_Occurred()) SWIG_fail;
21046 }
21047 resultobj = SWIG_Py_Void();
21048 return resultobj;
21049 fail:
21050 return NULL;
21051 }
21052
21053
21054 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21055 PyObject *resultobj = 0;
21056 int arg1 ;
21057 int val1 ;
21058 int ecode1 = 0 ;
21059 PyObject * obj0 = 0 ;
21060 char * kwnames[] = {
21061 (char *) "ppi", NULL
21062 };
21063
21064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
21065 ecode1 = SWIG_AsVal_int(obj0, &val1);
21066 if (!SWIG_IsOK(ecode1)) {
21067 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21068 }
21069 arg1 = static_cast< int >(val1);
21070 {
21071 PyThreadState* __tstate = wxPyBeginAllowThreads();
21072 wxPostScriptDC::SetResolution(arg1);
21073 wxPyEndAllowThreads(__tstate);
21074 if (PyErr_Occurred()) SWIG_fail;
21075 }
21076 resultobj = SWIG_Py_Void();
21077 return resultobj;
21078 fail:
21079 return NULL;
21080 }
21081
21082
21083 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21084 PyObject *resultobj = 0;
21085 int result;
21086
21087 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
21088 {
21089 PyThreadState* __tstate = wxPyBeginAllowThreads();
21090 result = (int)wxPostScriptDC::GetResolution();
21091 wxPyEndAllowThreads(__tstate);
21092 if (PyErr_Occurred()) SWIG_fail;
21093 }
21094 resultobj = SWIG_From_int(static_cast< int >(result));
21095 return resultobj;
21096 fail:
21097 return NULL;
21098 }
21099
21100
21101 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21102 PyObject *obj;
21103 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21104 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
21105 return SWIG_Py_Void();
21106 }
21107
21108 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21109 return SWIG_Python_InitShadowInstance(args);
21110 }
21111
21112 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21113 PyObject *resultobj = 0;
21114 wxString const &arg1_defvalue = wxPyEmptyString ;
21115 wxString *arg1 = (wxString *) &arg1_defvalue ;
21116 wxMetaFile *result = 0 ;
21117 bool temp1 = false ;
21118 PyObject * obj0 = 0 ;
21119 char * kwnames[] = {
21120 (char *) "filename", NULL
21121 };
21122
21123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
21124 if (obj0) {
21125 {
21126 arg1 = wxString_in_helper(obj0);
21127 if (arg1 == NULL) SWIG_fail;
21128 temp1 = true;
21129 }
21130 }
21131 {
21132 if (!wxPyCheckForApp()) SWIG_fail;
21133 PyThreadState* __tstate = wxPyBeginAllowThreads();
21134 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
21135 wxPyEndAllowThreads(__tstate);
21136 if (PyErr_Occurred()) SWIG_fail;
21137 }
21138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
21139 {
21140 if (temp1)
21141 delete arg1;
21142 }
21143 return resultobj;
21144 fail:
21145 {
21146 if (temp1)
21147 delete arg1;
21148 }
21149 return NULL;
21150 }
21151
21152
21153 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21154 PyObject *resultobj = 0;
21155 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21156 void *argp1 = 0 ;
21157 int res1 = 0 ;
21158 PyObject *swig_obj[1] ;
21159
21160 if (!args) SWIG_fail;
21161 swig_obj[0] = args;
21162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
21163 if (!SWIG_IsOK(res1)) {
21164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21165 }
21166 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21167 {
21168 PyThreadState* __tstate = wxPyBeginAllowThreads();
21169 delete arg1;
21170
21171 wxPyEndAllowThreads(__tstate);
21172 if (PyErr_Occurred()) SWIG_fail;
21173 }
21174 resultobj = SWIG_Py_Void();
21175 return resultobj;
21176 fail:
21177 return NULL;
21178 }
21179
21180
21181 SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21182 PyObject *resultobj = 0;
21183 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21184 bool result;
21185 void *argp1 = 0 ;
21186 int res1 = 0 ;
21187 PyObject *swig_obj[1] ;
21188
21189 if (!args) SWIG_fail;
21190 swig_obj[0] = args;
21191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21192 if (!SWIG_IsOK(res1)) {
21193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21194 }
21195 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21196 {
21197 PyThreadState* __tstate = wxPyBeginAllowThreads();
21198 result = (bool)(arg1)->Ok();
21199 wxPyEndAllowThreads(__tstate);
21200 if (PyErr_Occurred()) SWIG_fail;
21201 }
21202 {
21203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21204 }
21205 return resultobj;
21206 fail:
21207 return NULL;
21208 }
21209
21210
21211 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21212 PyObject *resultobj = 0;
21213 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21214 int arg2 = (int) 0 ;
21215 int arg3 = (int) 0 ;
21216 bool result;
21217 void *argp1 = 0 ;
21218 int res1 = 0 ;
21219 int val2 ;
21220 int ecode2 = 0 ;
21221 int val3 ;
21222 int ecode3 = 0 ;
21223 PyObject * obj0 = 0 ;
21224 PyObject * obj1 = 0 ;
21225 PyObject * obj2 = 0 ;
21226 char * kwnames[] = {
21227 (char *) "self",(char *) "width",(char *) "height", NULL
21228 };
21229
21230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21232 if (!SWIG_IsOK(res1)) {
21233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21234 }
21235 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21236 if (obj1) {
21237 ecode2 = SWIG_AsVal_int(obj1, &val2);
21238 if (!SWIG_IsOK(ecode2)) {
21239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
21240 }
21241 arg2 = static_cast< int >(val2);
21242 }
21243 if (obj2) {
21244 ecode3 = SWIG_AsVal_int(obj2, &val3);
21245 if (!SWIG_IsOK(ecode3)) {
21246 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
21247 }
21248 arg3 = static_cast< int >(val3);
21249 }
21250 {
21251 PyThreadState* __tstate = wxPyBeginAllowThreads();
21252 result = (bool)(arg1)->SetClipboard(arg2,arg3);
21253 wxPyEndAllowThreads(__tstate);
21254 if (PyErr_Occurred()) SWIG_fail;
21255 }
21256 {
21257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21258 }
21259 return resultobj;
21260 fail:
21261 return NULL;
21262 }
21263
21264
21265 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21266 PyObject *resultobj = 0;
21267 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21268 wxSize result;
21269 void *argp1 = 0 ;
21270 int res1 = 0 ;
21271 PyObject *swig_obj[1] ;
21272
21273 if (!args) SWIG_fail;
21274 swig_obj[0] = args;
21275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21276 if (!SWIG_IsOK(res1)) {
21277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21278 }
21279 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21280 {
21281 PyThreadState* __tstate = wxPyBeginAllowThreads();
21282 result = (arg1)->GetSize();
21283 wxPyEndAllowThreads(__tstate);
21284 if (PyErr_Occurred()) SWIG_fail;
21285 }
21286 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21287 return resultobj;
21288 fail:
21289 return NULL;
21290 }
21291
21292
21293 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21294 PyObject *resultobj = 0;
21295 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21296 int result;
21297 void *argp1 = 0 ;
21298 int res1 = 0 ;
21299 PyObject *swig_obj[1] ;
21300
21301 if (!args) SWIG_fail;
21302 swig_obj[0] = args;
21303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21304 if (!SWIG_IsOK(res1)) {
21305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21306 }
21307 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21308 {
21309 PyThreadState* __tstate = wxPyBeginAllowThreads();
21310 result = (int)(arg1)->GetWidth();
21311 wxPyEndAllowThreads(__tstate);
21312 if (PyErr_Occurred()) SWIG_fail;
21313 }
21314 resultobj = SWIG_From_int(static_cast< int >(result));
21315 return resultobj;
21316 fail:
21317 return NULL;
21318 }
21319
21320
21321 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21322 PyObject *resultobj = 0;
21323 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21324 int result;
21325 void *argp1 = 0 ;
21326 int res1 = 0 ;
21327 PyObject *swig_obj[1] ;
21328
21329 if (!args) SWIG_fail;
21330 swig_obj[0] = args;
21331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21332 if (!SWIG_IsOK(res1)) {
21333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21334 }
21335 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21336 {
21337 PyThreadState* __tstate = wxPyBeginAllowThreads();
21338 result = (int)(arg1)->GetHeight();
21339 wxPyEndAllowThreads(__tstate);
21340 if (PyErr_Occurred()) SWIG_fail;
21341 }
21342 resultobj = SWIG_From_int(static_cast< int >(result));
21343 return resultobj;
21344 fail:
21345 return NULL;
21346 }
21347
21348
21349 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21350 PyObject *obj;
21351 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21352 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
21353 return SWIG_Py_Void();
21354 }
21355
21356 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21357 return SWIG_Python_InitShadowInstance(args);
21358 }
21359
21360 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21361 PyObject *resultobj = 0;
21362 wxString const &arg1_defvalue = wxPyEmptyString ;
21363 wxString *arg1 = (wxString *) &arg1_defvalue ;
21364 int arg2 = (int) 0 ;
21365 int arg3 = (int) 0 ;
21366 wxString const &arg4_defvalue = wxPyEmptyString ;
21367 wxString *arg4 = (wxString *) &arg4_defvalue ;
21368 wxMetaFileDC *result = 0 ;
21369 bool temp1 = false ;
21370 int val2 ;
21371 int ecode2 = 0 ;
21372 int val3 ;
21373 int ecode3 = 0 ;
21374 bool temp4 = false ;
21375 PyObject * obj0 = 0 ;
21376 PyObject * obj1 = 0 ;
21377 PyObject * obj2 = 0 ;
21378 PyObject * obj3 = 0 ;
21379 char * kwnames[] = {
21380 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
21381 };
21382
21383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21384 if (obj0) {
21385 {
21386 arg1 = wxString_in_helper(obj0);
21387 if (arg1 == NULL) SWIG_fail;
21388 temp1 = true;
21389 }
21390 }
21391 if (obj1) {
21392 ecode2 = SWIG_AsVal_int(obj1, &val2);
21393 if (!SWIG_IsOK(ecode2)) {
21394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
21395 }
21396 arg2 = static_cast< int >(val2);
21397 }
21398 if (obj2) {
21399 ecode3 = SWIG_AsVal_int(obj2, &val3);
21400 if (!SWIG_IsOK(ecode3)) {
21401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
21402 }
21403 arg3 = static_cast< int >(val3);
21404 }
21405 if (obj3) {
21406 {
21407 arg4 = wxString_in_helper(obj3);
21408 if (arg4 == NULL) SWIG_fail;
21409 temp4 = true;
21410 }
21411 }
21412 {
21413 if (!wxPyCheckForApp()) SWIG_fail;
21414 PyThreadState* __tstate = wxPyBeginAllowThreads();
21415 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
21416 wxPyEndAllowThreads(__tstate);
21417 if (PyErr_Occurred()) SWIG_fail;
21418 }
21419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
21420 {
21421 if (temp1)
21422 delete arg1;
21423 }
21424 {
21425 if (temp4)
21426 delete arg4;
21427 }
21428 return resultobj;
21429 fail:
21430 {
21431 if (temp1)
21432 delete arg1;
21433 }
21434 {
21435 if (temp4)
21436 delete arg4;
21437 }
21438 return NULL;
21439 }
21440
21441
21442 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21443 PyObject *resultobj = 0;
21444 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
21445 wxMetaFile *result = 0 ;
21446 void *argp1 = 0 ;
21447 int res1 = 0 ;
21448 PyObject *swig_obj[1] ;
21449
21450 if (!args) SWIG_fail;
21451 swig_obj[0] = args;
21452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
21453 if (!SWIG_IsOK(res1)) {
21454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
21455 }
21456 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
21457 {
21458 PyThreadState* __tstate = wxPyBeginAllowThreads();
21459 result = (wxMetaFile *)(arg1)->Close();
21460 wxPyEndAllowThreads(__tstate);
21461 if (PyErr_Occurred()) SWIG_fail;
21462 }
21463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
21464 return resultobj;
21465 fail:
21466 return NULL;
21467 }
21468
21469
21470 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21471 PyObject *obj;
21472 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21473 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
21474 return SWIG_Py_Void();
21475 }
21476
21477 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21478 return SWIG_Python_InitShadowInstance(args);
21479 }
21480
21481 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21482 PyObject *resultobj = 0;
21483 wxPrintData *arg1 = 0 ;
21484 wxPrinterDC *result = 0 ;
21485 void *argp1 = 0 ;
21486 int res1 = 0 ;
21487 PyObject * obj0 = 0 ;
21488 char * kwnames[] = {
21489 (char *) "printData", NULL
21490 };
21491
21492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
21493 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21494 if (!SWIG_IsOK(res1)) {
21495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21496 }
21497 if (!argp1) {
21498 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21499 }
21500 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21501 {
21502 if (!wxPyCheckForApp()) SWIG_fail;
21503 PyThreadState* __tstate = wxPyBeginAllowThreads();
21504 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
21505 wxPyEndAllowThreads(__tstate);
21506 if (PyErr_Occurred()) SWIG_fail;
21507 }
21508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
21509 return resultobj;
21510 fail:
21511 return NULL;
21512 }
21513
21514
21515 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21516 PyObject *obj;
21517 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21518 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
21519 return SWIG_Py_Void();
21520 }
21521
21522 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21523 return SWIG_Python_InitShadowInstance(args);
21524 }
21525
21526 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21527 PyObject *resultobj = 0;
21528 int arg1 ;
21529 int arg2 ;
21530 int arg3 = (int) true ;
21531 int arg4 = (int) 1 ;
21532 wxImageList *result = 0 ;
21533 int val1 ;
21534 int ecode1 = 0 ;
21535 int val2 ;
21536 int ecode2 = 0 ;
21537 int val3 ;
21538 int ecode3 = 0 ;
21539 int val4 ;
21540 int ecode4 = 0 ;
21541 PyObject * obj0 = 0 ;
21542 PyObject * obj1 = 0 ;
21543 PyObject * obj2 = 0 ;
21544 PyObject * obj3 = 0 ;
21545 char * kwnames[] = {
21546 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
21547 };
21548
21549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21550 ecode1 = SWIG_AsVal_int(obj0, &val1);
21551 if (!SWIG_IsOK(ecode1)) {
21552 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
21553 }
21554 arg1 = static_cast< int >(val1);
21555 ecode2 = SWIG_AsVal_int(obj1, &val2);
21556 if (!SWIG_IsOK(ecode2)) {
21557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
21558 }
21559 arg2 = static_cast< int >(val2);
21560 if (obj2) {
21561 ecode3 = SWIG_AsVal_int(obj2, &val3);
21562 if (!SWIG_IsOK(ecode3)) {
21563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
21564 }
21565 arg3 = static_cast< int >(val3);
21566 }
21567 if (obj3) {
21568 ecode4 = SWIG_AsVal_int(obj3, &val4);
21569 if (!SWIG_IsOK(ecode4)) {
21570 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
21571 }
21572 arg4 = static_cast< int >(val4);
21573 }
21574 {
21575 if (!wxPyCheckForApp()) SWIG_fail;
21576 PyThreadState* __tstate = wxPyBeginAllowThreads();
21577 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
21578 wxPyEndAllowThreads(__tstate);
21579 if (PyErr_Occurred()) SWIG_fail;
21580 }
21581 {
21582 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
21583 }
21584 return resultobj;
21585 fail:
21586 return NULL;
21587 }
21588
21589
21590 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21591 PyObject *resultobj = 0;
21592 wxImageList *arg1 = (wxImageList *) 0 ;
21593 void *argp1 = 0 ;
21594 int res1 = 0 ;
21595 PyObject *swig_obj[1] ;
21596
21597 if (!args) SWIG_fail;
21598 swig_obj[0] = args;
21599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
21600 if (!SWIG_IsOK(res1)) {
21601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
21602 }
21603 arg1 = reinterpret_cast< wxImageList * >(argp1);
21604 {
21605 PyThreadState* __tstate = wxPyBeginAllowThreads();
21606 delete arg1;
21607
21608 wxPyEndAllowThreads(__tstate);
21609 if (PyErr_Occurred()) SWIG_fail;
21610 }
21611 resultobj = SWIG_Py_Void();
21612 return resultobj;
21613 fail:
21614 return NULL;
21615 }
21616
21617
21618 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21619 PyObject *resultobj = 0;
21620 wxImageList *arg1 = (wxImageList *) 0 ;
21621 wxBitmap *arg2 = 0 ;
21622 wxBitmap const &arg3_defvalue = wxNullBitmap ;
21623 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
21624 int result;
21625 void *argp1 = 0 ;
21626 int res1 = 0 ;
21627 void *argp2 = 0 ;
21628 int res2 = 0 ;
21629 void *argp3 = 0 ;
21630 int res3 = 0 ;
21631 PyObject * obj0 = 0 ;
21632 PyObject * obj1 = 0 ;
21633 PyObject * obj2 = 0 ;
21634 char * kwnames[] = {
21635 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
21636 };
21637
21638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21640 if (!SWIG_IsOK(res1)) {
21641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
21642 }
21643 arg1 = reinterpret_cast< wxImageList * >(argp1);
21644 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21645 if (!SWIG_IsOK(res2)) {
21646 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21647 }
21648 if (!argp2) {
21649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21650 }
21651 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21652 if (obj2) {
21653 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21654 if (!SWIG_IsOK(res3)) {
21655 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21656 }
21657 if (!argp3) {
21658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21659 }
21660 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21661 }
21662 {
21663 PyThreadState* __tstate = wxPyBeginAllowThreads();
21664 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
21665 wxPyEndAllowThreads(__tstate);
21666 if (PyErr_Occurred()) SWIG_fail;
21667 }
21668 resultobj = SWIG_From_int(static_cast< int >(result));
21669 return resultobj;
21670 fail:
21671 return NULL;
21672 }
21673
21674
21675 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21676 PyObject *resultobj = 0;
21677 wxImageList *arg1 = (wxImageList *) 0 ;
21678 wxBitmap *arg2 = 0 ;
21679 wxColour *arg3 = 0 ;
21680 int result;
21681 void *argp1 = 0 ;
21682 int res1 = 0 ;
21683 void *argp2 = 0 ;
21684 int res2 = 0 ;
21685 wxColour temp3 ;
21686 PyObject * obj0 = 0 ;
21687 PyObject * obj1 = 0 ;
21688 PyObject * obj2 = 0 ;
21689 char * kwnames[] = {
21690 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
21691 };
21692
21693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21695 if (!SWIG_IsOK(res1)) {
21696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
21697 }
21698 arg1 = reinterpret_cast< wxImageList * >(argp1);
21699 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21700 if (!SWIG_IsOK(res2)) {
21701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21702 }
21703 if (!argp2) {
21704 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21705 }
21706 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21707 {
21708 arg3 = &temp3;
21709 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
21710 }
21711 {
21712 PyThreadState* __tstate = wxPyBeginAllowThreads();
21713 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
21714 wxPyEndAllowThreads(__tstate);
21715 if (PyErr_Occurred()) SWIG_fail;
21716 }
21717 resultobj = SWIG_From_int(static_cast< int >(result));
21718 return resultobj;
21719 fail:
21720 return NULL;
21721 }
21722
21723
21724 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21725 PyObject *resultobj = 0;
21726 wxImageList *arg1 = (wxImageList *) 0 ;
21727 wxIcon *arg2 = 0 ;
21728 int result;
21729 void *argp1 = 0 ;
21730 int res1 = 0 ;
21731 void *argp2 = 0 ;
21732 int res2 = 0 ;
21733 PyObject * obj0 = 0 ;
21734 PyObject * obj1 = 0 ;
21735 char * kwnames[] = {
21736 (char *) "self",(char *) "icon", NULL
21737 };
21738
21739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21741 if (!SWIG_IsOK(res1)) {
21742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
21743 }
21744 arg1 = reinterpret_cast< wxImageList * >(argp1);
21745 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
21746 if (!SWIG_IsOK(res2)) {
21747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21748 }
21749 if (!argp2) {
21750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21751 }
21752 arg2 = reinterpret_cast< wxIcon * >(argp2);
21753 {
21754 PyThreadState* __tstate = wxPyBeginAllowThreads();
21755 result = (int)(arg1)->Add((wxIcon const &)*arg2);
21756 wxPyEndAllowThreads(__tstate);
21757 if (PyErr_Occurred()) SWIG_fail;
21758 }
21759 resultobj = SWIG_From_int(static_cast< int >(result));
21760 return resultobj;
21761 fail:
21762 return NULL;
21763 }
21764
21765
21766 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21767 PyObject *resultobj = 0;
21768 wxImageList *arg1 = (wxImageList *) 0 ;
21769 int arg2 ;
21770 SwigValueWrapper<wxBitmap > result;
21771 void *argp1 = 0 ;
21772 int res1 = 0 ;
21773 int val2 ;
21774 int ecode2 = 0 ;
21775 PyObject * obj0 = 0 ;
21776 PyObject * obj1 = 0 ;
21777 char * kwnames[] = {
21778 (char *) "self",(char *) "index", NULL
21779 };
21780
21781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
21782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21783 if (!SWIG_IsOK(res1)) {
21784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
21785 }
21786 arg1 = reinterpret_cast< wxImageList * >(argp1);
21787 ecode2 = SWIG_AsVal_int(obj1, &val2);
21788 if (!SWIG_IsOK(ecode2)) {
21789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
21790 }
21791 arg2 = static_cast< int >(val2);
21792 {
21793 PyThreadState* __tstate = wxPyBeginAllowThreads();
21794 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
21795 wxPyEndAllowThreads(__tstate);
21796 if (PyErr_Occurred()) SWIG_fail;
21797 }
21798 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
21799 return resultobj;
21800 fail:
21801 return NULL;
21802 }
21803
21804
21805 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21806 PyObject *resultobj = 0;
21807 wxImageList *arg1 = (wxImageList *) 0 ;
21808 int arg2 ;
21809 wxIcon result;
21810 void *argp1 = 0 ;
21811 int res1 = 0 ;
21812 int val2 ;
21813 int ecode2 = 0 ;
21814 PyObject * obj0 = 0 ;
21815 PyObject * obj1 = 0 ;
21816 char * kwnames[] = {
21817 (char *) "self",(char *) "index", NULL
21818 };
21819
21820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21822 if (!SWIG_IsOK(res1)) {
21823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
21824 }
21825 arg1 = reinterpret_cast< wxImageList * >(argp1);
21826 ecode2 = SWIG_AsVal_int(obj1, &val2);
21827 if (!SWIG_IsOK(ecode2)) {
21828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
21829 }
21830 arg2 = static_cast< int >(val2);
21831 {
21832 PyThreadState* __tstate = wxPyBeginAllowThreads();
21833 result = ((wxImageList const *)arg1)->GetIcon(arg2);
21834 wxPyEndAllowThreads(__tstate);
21835 if (PyErr_Occurred()) SWIG_fail;
21836 }
21837 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
21838 return resultobj;
21839 fail:
21840 return NULL;
21841 }
21842
21843
21844 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21845 PyObject *resultobj = 0;
21846 wxImageList *arg1 = (wxImageList *) 0 ;
21847 int arg2 ;
21848 wxBitmap *arg3 = 0 ;
21849 bool result;
21850 void *argp1 = 0 ;
21851 int res1 = 0 ;
21852 int val2 ;
21853 int ecode2 = 0 ;
21854 void *argp3 = 0 ;
21855 int res3 = 0 ;
21856 PyObject * obj0 = 0 ;
21857 PyObject * obj1 = 0 ;
21858 PyObject * obj2 = 0 ;
21859 char * kwnames[] = {
21860 (char *) "self",(char *) "index",(char *) "bitmap", NULL
21861 };
21862
21863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21865 if (!SWIG_IsOK(res1)) {
21866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
21867 }
21868 arg1 = reinterpret_cast< wxImageList * >(argp1);
21869 ecode2 = SWIG_AsVal_int(obj1, &val2);
21870 if (!SWIG_IsOK(ecode2)) {
21871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
21872 }
21873 arg2 = static_cast< int >(val2);
21874 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21875 if (!SWIG_IsOK(res3)) {
21876 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21877 }
21878 if (!argp3) {
21879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21880 }
21881 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21882 {
21883 PyThreadState* __tstate = wxPyBeginAllowThreads();
21884 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
21885 wxPyEndAllowThreads(__tstate);
21886 if (PyErr_Occurred()) SWIG_fail;
21887 }
21888 {
21889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21890 }
21891 return resultobj;
21892 fail:
21893 return NULL;
21894 }
21895
21896
21897 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21898 PyObject *resultobj = 0;
21899 wxImageList *arg1 = (wxImageList *) 0 ;
21900 int arg2 ;
21901 wxDC *arg3 = 0 ;
21902 int arg4 ;
21903 int arg5 ;
21904 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
21905 bool arg7 = (bool) (bool)false ;
21906 bool result;
21907 void *argp1 = 0 ;
21908 int res1 = 0 ;
21909 int val2 ;
21910 int ecode2 = 0 ;
21911 void *argp3 = 0 ;
21912 int res3 = 0 ;
21913 int val4 ;
21914 int ecode4 = 0 ;
21915 int val5 ;
21916 int ecode5 = 0 ;
21917 int val6 ;
21918 int ecode6 = 0 ;
21919 bool val7 ;
21920 int ecode7 = 0 ;
21921 PyObject * obj0 = 0 ;
21922 PyObject * obj1 = 0 ;
21923 PyObject * obj2 = 0 ;
21924 PyObject * obj3 = 0 ;
21925 PyObject * obj4 = 0 ;
21926 PyObject * obj5 = 0 ;
21927 PyObject * obj6 = 0 ;
21928 char * kwnames[] = {
21929 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
21930 };
21931
21932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21934 if (!SWIG_IsOK(res1)) {
21935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
21936 }
21937 arg1 = reinterpret_cast< wxImageList * >(argp1);
21938 ecode2 = SWIG_AsVal_int(obj1, &val2);
21939 if (!SWIG_IsOK(ecode2)) {
21940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
21941 }
21942 arg2 = static_cast< int >(val2);
21943 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
21944 if (!SWIG_IsOK(res3)) {
21945 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21946 }
21947 if (!argp3) {
21948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21949 }
21950 arg3 = reinterpret_cast< wxDC * >(argp3);
21951 ecode4 = SWIG_AsVal_int(obj3, &val4);
21952 if (!SWIG_IsOK(ecode4)) {
21953 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
21954 }
21955 arg4 = static_cast< int >(val4);
21956 ecode5 = SWIG_AsVal_int(obj4, &val5);
21957 if (!SWIG_IsOK(ecode5)) {
21958 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
21959 }
21960 arg5 = static_cast< int >(val5);
21961 if (obj5) {
21962 ecode6 = SWIG_AsVal_int(obj5, &val6);
21963 if (!SWIG_IsOK(ecode6)) {
21964 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
21965 }
21966 arg6 = static_cast< int >(val6);
21967 }
21968 if (obj6) {
21969 ecode7 = SWIG_AsVal_bool(obj6, &val7);
21970 if (!SWIG_IsOK(ecode7)) {
21971 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
21972 }
21973 arg7 = static_cast< bool >(val7);
21974 }
21975 {
21976 PyThreadState* __tstate = wxPyBeginAllowThreads();
21977 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
21978 wxPyEndAllowThreads(__tstate);
21979 if (PyErr_Occurred()) SWIG_fail;
21980 }
21981 {
21982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21983 }
21984 return resultobj;
21985 fail:
21986 return NULL;
21987 }
21988
21989
21990 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21991 PyObject *resultobj = 0;
21992 wxImageList *arg1 = (wxImageList *) 0 ;
21993 int result;
21994 void *argp1 = 0 ;
21995 int res1 = 0 ;
21996 PyObject *swig_obj[1] ;
21997
21998 if (!args) SWIG_fail;
21999 swig_obj[0] = args;
22000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22001 if (!SWIG_IsOK(res1)) {
22002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
22003 }
22004 arg1 = reinterpret_cast< wxImageList * >(argp1);
22005 {
22006 PyThreadState* __tstate = wxPyBeginAllowThreads();
22007 result = (int)(arg1)->GetImageCount();
22008 wxPyEndAllowThreads(__tstate);
22009 if (PyErr_Occurred()) SWIG_fail;
22010 }
22011 resultobj = SWIG_From_int(static_cast< int >(result));
22012 return resultobj;
22013 fail:
22014 return NULL;
22015 }
22016
22017
22018 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22019 PyObject *resultobj = 0;
22020 wxImageList *arg1 = (wxImageList *) 0 ;
22021 int arg2 ;
22022 bool result;
22023 void *argp1 = 0 ;
22024 int res1 = 0 ;
22025 int val2 ;
22026 int ecode2 = 0 ;
22027 PyObject * obj0 = 0 ;
22028 PyObject * obj1 = 0 ;
22029 char * kwnames[] = {
22030 (char *) "self",(char *) "index", NULL
22031 };
22032
22033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
22034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22035 if (!SWIG_IsOK(res1)) {
22036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
22037 }
22038 arg1 = reinterpret_cast< wxImageList * >(argp1);
22039 ecode2 = SWIG_AsVal_int(obj1, &val2);
22040 if (!SWIG_IsOK(ecode2)) {
22041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
22042 }
22043 arg2 = static_cast< int >(val2);
22044 {
22045 PyThreadState* __tstate = wxPyBeginAllowThreads();
22046 result = (bool)(arg1)->Remove(arg2);
22047 wxPyEndAllowThreads(__tstate);
22048 if (PyErr_Occurred()) SWIG_fail;
22049 }
22050 {
22051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22052 }
22053 return resultobj;
22054 fail:
22055 return NULL;
22056 }
22057
22058
22059 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22060 PyObject *resultobj = 0;
22061 wxImageList *arg1 = (wxImageList *) 0 ;
22062 bool result;
22063 void *argp1 = 0 ;
22064 int res1 = 0 ;
22065 PyObject *swig_obj[1] ;
22066
22067 if (!args) SWIG_fail;
22068 swig_obj[0] = args;
22069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22070 if (!SWIG_IsOK(res1)) {
22071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
22072 }
22073 arg1 = reinterpret_cast< wxImageList * >(argp1);
22074 {
22075 PyThreadState* __tstate = wxPyBeginAllowThreads();
22076 result = (bool)(arg1)->RemoveAll();
22077 wxPyEndAllowThreads(__tstate);
22078 if (PyErr_Occurred()) SWIG_fail;
22079 }
22080 {
22081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22082 }
22083 return resultobj;
22084 fail:
22085 return NULL;
22086 }
22087
22088
22089 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22090 PyObject *resultobj = 0;
22091 wxImageList *arg1 = (wxImageList *) 0 ;
22092 int arg2 ;
22093 int *arg3 = 0 ;
22094 int *arg4 = 0 ;
22095 void *argp1 = 0 ;
22096 int res1 = 0 ;
22097 int val2 ;
22098 int ecode2 = 0 ;
22099 int temp3 ;
22100 int res3 = SWIG_TMPOBJ ;
22101 int temp4 ;
22102 int res4 = SWIG_TMPOBJ ;
22103 PyObject * obj0 = 0 ;
22104 PyObject * obj1 = 0 ;
22105 char * kwnames[] = {
22106 (char *) "self",(char *) "index", NULL
22107 };
22108
22109 arg3 = &temp3;
22110 arg4 = &temp4;
22111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
22112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22113 if (!SWIG_IsOK(res1)) {
22114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
22115 }
22116 arg1 = reinterpret_cast< wxImageList * >(argp1);
22117 ecode2 = SWIG_AsVal_int(obj1, &val2);
22118 if (!SWIG_IsOK(ecode2)) {
22119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
22120 }
22121 arg2 = static_cast< int >(val2);
22122 {
22123 PyThreadState* __tstate = wxPyBeginAllowThreads();
22124 (arg1)->GetSize(arg2,*arg3,*arg4);
22125 wxPyEndAllowThreads(__tstate);
22126 if (PyErr_Occurred()) SWIG_fail;
22127 }
22128 resultobj = SWIG_Py_Void();
22129 if (SWIG_IsTmpObj(res3)) {
22130 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22131 } else {
22132 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22133 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22134 }
22135 if (SWIG_IsTmpObj(res4)) {
22136 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22137 } else {
22138 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22139 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22140 }
22141 return resultobj;
22142 fail:
22143 return NULL;
22144 }
22145
22146
22147 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22148 PyObject *obj;
22149 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22150 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
22151 return SWIG_Py_Void();
22152 }
22153
22154 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22155 return SWIG_Python_InitShadowInstance(args);
22156 }
22157
22158 SWIGINTERN int NORMAL_FONT_set(PyObject *) {
22159 SWIG_Error(SWIG_AttributeError,"Variable NORMAL_FONT is read-only.");
22160 return 1;
22161 }
22162
22163
22164 SWIGINTERN PyObject *NORMAL_FONT_get(void) {
22165 PyObject *pyobj = 0;
22166
22167 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0 );
22168 return pyobj;
22169 }
22170
22171
22172 SWIGINTERN int SMALL_FONT_set(PyObject *) {
22173 SWIG_Error(SWIG_AttributeError,"Variable SMALL_FONT is read-only.");
22174 return 1;
22175 }
22176
22177
22178 SWIGINTERN PyObject *SMALL_FONT_get(void) {
22179 PyObject *pyobj = 0;
22180
22181 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0 );
22182 return pyobj;
22183 }
22184
22185
22186 SWIGINTERN int ITALIC_FONT_set(PyObject *) {
22187 SWIG_Error(SWIG_AttributeError,"Variable ITALIC_FONT is read-only.");
22188 return 1;
22189 }
22190
22191
22192 SWIGINTERN PyObject *ITALIC_FONT_get(void) {
22193 PyObject *pyobj = 0;
22194
22195 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0 );
22196 return pyobj;
22197 }
22198
22199
22200 SWIGINTERN int SWISS_FONT_set(PyObject *) {
22201 SWIG_Error(SWIG_AttributeError,"Variable SWISS_FONT is read-only.");
22202 return 1;
22203 }
22204
22205
22206 SWIGINTERN PyObject *SWISS_FONT_get(void) {
22207 PyObject *pyobj = 0;
22208
22209 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0 );
22210 return pyobj;
22211 }
22212
22213
22214 SWIGINTERN int RED_PEN_set(PyObject *) {
22215 SWIG_Error(SWIG_AttributeError,"Variable RED_PEN is read-only.");
22216 return 1;
22217 }
22218
22219
22220 SWIGINTERN PyObject *RED_PEN_get(void) {
22221 PyObject *pyobj = 0;
22222
22223 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxRED_PEN), SWIGTYPE_p_wxPen, 0 );
22224 return pyobj;
22225 }
22226
22227
22228 SWIGINTERN int CYAN_PEN_set(PyObject *) {
22229 SWIG_Error(SWIG_AttributeError,"Variable CYAN_PEN is read-only.");
22230 return 1;
22231 }
22232
22233
22234 SWIGINTERN PyObject *CYAN_PEN_get(void) {
22235 PyObject *pyobj = 0;
22236
22237 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0 );
22238 return pyobj;
22239 }
22240
22241
22242 SWIGINTERN int GREEN_PEN_set(PyObject *) {
22243 SWIG_Error(SWIG_AttributeError,"Variable GREEN_PEN is read-only.");
22244 return 1;
22245 }
22246
22247
22248 SWIGINTERN PyObject *GREEN_PEN_get(void) {
22249 PyObject *pyobj = 0;
22250
22251 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0 );
22252 return pyobj;
22253 }
22254
22255
22256 SWIGINTERN int BLACK_PEN_set(PyObject *) {
22257 SWIG_Error(SWIG_AttributeError,"Variable BLACK_PEN is read-only.");
22258 return 1;
22259 }
22260
22261
22262 SWIGINTERN PyObject *BLACK_PEN_get(void) {
22263 PyObject *pyobj = 0;
22264
22265 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0 );
22266 return pyobj;
22267 }
22268
22269
22270 SWIGINTERN int WHITE_PEN_set(PyObject *) {
22271 SWIG_Error(SWIG_AttributeError,"Variable WHITE_PEN is read-only.");
22272 return 1;
22273 }
22274
22275
22276 SWIGINTERN PyObject *WHITE_PEN_get(void) {
22277 PyObject *pyobj = 0;
22278
22279 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0 );
22280 return pyobj;
22281 }
22282
22283
22284 SWIGINTERN int TRANSPARENT_PEN_set(PyObject *) {
22285 SWIG_Error(SWIG_AttributeError,"Variable TRANSPARENT_PEN is read-only.");
22286 return 1;
22287 }
22288
22289
22290 SWIGINTERN PyObject *TRANSPARENT_PEN_get(void) {
22291 PyObject *pyobj = 0;
22292
22293 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0 );
22294 return pyobj;
22295 }
22296
22297
22298 SWIGINTERN int BLACK_DASHED_PEN_set(PyObject *) {
22299 SWIG_Error(SWIG_AttributeError,"Variable BLACK_DASHED_PEN is read-only.");
22300 return 1;
22301 }
22302
22303
22304 SWIGINTERN PyObject *BLACK_DASHED_PEN_get(void) {
22305 PyObject *pyobj = 0;
22306
22307 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0 );
22308 return pyobj;
22309 }
22310
22311
22312 SWIGINTERN int GREY_PEN_set(PyObject *) {
22313 SWIG_Error(SWIG_AttributeError,"Variable GREY_PEN is read-only.");
22314 return 1;
22315 }
22316
22317
22318 SWIGINTERN PyObject *GREY_PEN_get(void) {
22319 PyObject *pyobj = 0;
22320
22321 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREY_PEN), SWIGTYPE_p_wxPen, 0 );
22322 return pyobj;
22323 }
22324
22325
22326 SWIGINTERN int MEDIUM_GREY_PEN_set(PyObject *) {
22327 SWIG_Error(SWIG_AttributeError,"Variable MEDIUM_GREY_PEN is read-only.");
22328 return 1;
22329 }
22330
22331
22332 SWIGINTERN PyObject *MEDIUM_GREY_PEN_get(void) {
22333 PyObject *pyobj = 0;
22334
22335 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0 );
22336 return pyobj;
22337 }
22338
22339
22340 SWIGINTERN int LIGHT_GREY_PEN_set(PyObject *) {
22341 SWIG_Error(SWIG_AttributeError,"Variable LIGHT_GREY_PEN is read-only.");
22342 return 1;
22343 }
22344
22345
22346 SWIGINTERN PyObject *LIGHT_GREY_PEN_get(void) {
22347 PyObject *pyobj = 0;
22348
22349 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0 );
22350 return pyobj;
22351 }
22352
22353
22354 SWIGINTERN int BLUE_BRUSH_set(PyObject *) {
22355 SWIG_Error(SWIG_AttributeError,"Variable BLUE_BRUSH is read-only.");
22356 return 1;
22357 }
22358
22359
22360 SWIGINTERN PyObject *BLUE_BRUSH_get(void) {
22361 PyObject *pyobj = 0;
22362
22363 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22364 return pyobj;
22365 }
22366
22367
22368 SWIGINTERN int GREEN_BRUSH_set(PyObject *) {
22369 SWIG_Error(SWIG_AttributeError,"Variable GREEN_BRUSH is read-only.");
22370 return 1;
22371 }
22372
22373
22374 SWIGINTERN PyObject *GREEN_BRUSH_get(void) {
22375 PyObject *pyobj = 0;
22376
22377 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22378 return pyobj;
22379 }
22380
22381
22382 SWIGINTERN int WHITE_BRUSH_set(PyObject *) {
22383 SWIG_Error(SWIG_AttributeError,"Variable WHITE_BRUSH is read-only.");
22384 return 1;
22385 }
22386
22387
22388 SWIGINTERN PyObject *WHITE_BRUSH_get(void) {
22389 PyObject *pyobj = 0;
22390
22391 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22392 return pyobj;
22393 }
22394
22395
22396 SWIGINTERN int BLACK_BRUSH_set(PyObject *) {
22397 SWIG_Error(SWIG_AttributeError,"Variable BLACK_BRUSH is read-only.");
22398 return 1;
22399 }
22400
22401
22402 SWIGINTERN PyObject *BLACK_BRUSH_get(void) {
22403 PyObject *pyobj = 0;
22404
22405 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22406 return pyobj;
22407 }
22408
22409
22410 SWIGINTERN int TRANSPARENT_BRUSH_set(PyObject *) {
22411 SWIG_Error(SWIG_AttributeError,"Variable TRANSPARENT_BRUSH is read-only.");
22412 return 1;
22413 }
22414
22415
22416 SWIGINTERN PyObject *TRANSPARENT_BRUSH_get(void) {
22417 PyObject *pyobj = 0;
22418
22419 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22420 return pyobj;
22421 }
22422
22423
22424 SWIGINTERN int CYAN_BRUSH_set(PyObject *) {
22425 SWIG_Error(SWIG_AttributeError,"Variable CYAN_BRUSH is read-only.");
22426 return 1;
22427 }
22428
22429
22430 SWIGINTERN PyObject *CYAN_BRUSH_get(void) {
22431 PyObject *pyobj = 0;
22432
22433 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22434 return pyobj;
22435 }
22436
22437
22438 SWIGINTERN int RED_BRUSH_set(PyObject *) {
22439 SWIG_Error(SWIG_AttributeError,"Variable RED_BRUSH is read-only.");
22440 return 1;
22441 }
22442
22443
22444 SWIGINTERN PyObject *RED_BRUSH_get(void) {
22445 PyObject *pyobj = 0;
22446
22447 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22448 return pyobj;
22449 }
22450
22451
22452 SWIGINTERN int GREY_BRUSH_set(PyObject *) {
22453 SWIG_Error(SWIG_AttributeError,"Variable GREY_BRUSH is read-only.");
22454 return 1;
22455 }
22456
22457
22458 SWIGINTERN PyObject *GREY_BRUSH_get(void) {
22459 PyObject *pyobj = 0;
22460
22461 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22462 return pyobj;
22463 }
22464
22465
22466 SWIGINTERN int MEDIUM_GREY_BRUSH_set(PyObject *) {
22467 SWIG_Error(SWIG_AttributeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
22468 return 1;
22469 }
22470
22471
22472 SWIGINTERN PyObject *MEDIUM_GREY_BRUSH_get(void) {
22473 PyObject *pyobj = 0;
22474
22475 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22476 return pyobj;
22477 }
22478
22479
22480 SWIGINTERN int LIGHT_GREY_BRUSH_set(PyObject *) {
22481 SWIG_Error(SWIG_AttributeError,"Variable LIGHT_GREY_BRUSH is read-only.");
22482 return 1;
22483 }
22484
22485
22486 SWIGINTERN PyObject *LIGHT_GREY_BRUSH_get(void) {
22487 PyObject *pyobj = 0;
22488
22489 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22490 return pyobj;
22491 }
22492
22493
22494 SWIGINTERN int BLACK_set(PyObject *) {
22495 SWIG_Error(SWIG_AttributeError,"Variable BLACK is read-only.");
22496 return 1;
22497 }
22498
22499
22500 SWIGINTERN PyObject *BLACK_get(void) {
22501 PyObject *pyobj = 0;
22502
22503 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLACK), SWIGTYPE_p_wxColour, 0 );
22504 return pyobj;
22505 }
22506
22507
22508 SWIGINTERN int WHITE_set(PyObject *) {
22509 SWIG_Error(SWIG_AttributeError,"Variable WHITE is read-only.");
22510 return 1;
22511 }
22512
22513
22514 SWIGINTERN PyObject *WHITE_get(void) {
22515 PyObject *pyobj = 0;
22516
22517 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxWHITE), SWIGTYPE_p_wxColour, 0 );
22518 return pyobj;
22519 }
22520
22521
22522 SWIGINTERN int RED_set(PyObject *) {
22523 SWIG_Error(SWIG_AttributeError,"Variable RED is read-only.");
22524 return 1;
22525 }
22526
22527
22528 SWIGINTERN PyObject *RED_get(void) {
22529 PyObject *pyobj = 0;
22530
22531 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxRED), SWIGTYPE_p_wxColour, 0 );
22532 return pyobj;
22533 }
22534
22535
22536 SWIGINTERN int BLUE_set(PyObject *) {
22537 SWIG_Error(SWIG_AttributeError,"Variable BLUE is read-only.");
22538 return 1;
22539 }
22540
22541
22542 SWIGINTERN PyObject *BLUE_get(void) {
22543 PyObject *pyobj = 0;
22544
22545 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLUE), SWIGTYPE_p_wxColour, 0 );
22546 return pyobj;
22547 }
22548
22549
22550 SWIGINTERN int GREEN_set(PyObject *) {
22551 SWIG_Error(SWIG_AttributeError,"Variable GREEN is read-only.");
22552 return 1;
22553 }
22554
22555
22556 SWIGINTERN PyObject *GREEN_get(void) {
22557 PyObject *pyobj = 0;
22558
22559 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREEN), SWIGTYPE_p_wxColour, 0 );
22560 return pyobj;
22561 }
22562
22563
22564 SWIGINTERN int CYAN_set(PyObject *) {
22565 SWIG_Error(SWIG_AttributeError,"Variable CYAN is read-only.");
22566 return 1;
22567 }
22568
22569
22570 SWIGINTERN PyObject *CYAN_get(void) {
22571 PyObject *pyobj = 0;
22572
22573 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxCYAN), SWIGTYPE_p_wxColour, 0 );
22574 return pyobj;
22575 }
22576
22577
22578 SWIGINTERN int LIGHT_GREY_set(PyObject *) {
22579 SWIG_Error(SWIG_AttributeError,"Variable LIGHT_GREY is read-only.");
22580 return 1;
22581 }
22582
22583
22584 SWIGINTERN PyObject *LIGHT_GREY_get(void) {
22585 PyObject *pyobj = 0;
22586
22587 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0 );
22588 return pyobj;
22589 }
22590
22591
22592 SWIGINTERN int STANDARD_CURSOR_set(PyObject *) {
22593 SWIG_Error(SWIG_AttributeError,"Variable STANDARD_CURSOR is read-only.");
22594 return 1;
22595 }
22596
22597
22598 SWIGINTERN PyObject *STANDARD_CURSOR_get(void) {
22599 PyObject *pyobj = 0;
22600
22601 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0 );
22602 return pyobj;
22603 }
22604
22605
22606 SWIGINTERN int HOURGLASS_CURSOR_set(PyObject *) {
22607 SWIG_Error(SWIG_AttributeError,"Variable HOURGLASS_CURSOR is read-only.");
22608 return 1;
22609 }
22610
22611
22612 SWIGINTERN PyObject *HOURGLASS_CURSOR_get(void) {
22613 PyObject *pyobj = 0;
22614
22615 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0 );
22616 return pyobj;
22617 }
22618
22619
22620 SWIGINTERN int CROSS_CURSOR_set(PyObject *) {
22621 SWIG_Error(SWIG_AttributeError,"Variable CROSS_CURSOR is read-only.");
22622 return 1;
22623 }
22624
22625
22626 SWIGINTERN PyObject *CROSS_CURSOR_get(void) {
22627 PyObject *pyobj = 0;
22628
22629 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0 );
22630 return pyobj;
22631 }
22632
22633
22634 SWIGINTERN int NullBitmap_set(PyObject *) {
22635 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
22636 return 1;
22637 }
22638
22639
22640 SWIGINTERN PyObject *NullBitmap_get(void) {
22641 PyObject *pyobj = 0;
22642
22643 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
22644 return pyobj;
22645 }
22646
22647
22648 SWIGINTERN int NullIcon_set(PyObject *) {
22649 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
22650 return 1;
22651 }
22652
22653
22654 SWIGINTERN PyObject *NullIcon_get(void) {
22655 PyObject *pyobj = 0;
22656
22657 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
22658 return pyobj;
22659 }
22660
22661
22662 SWIGINTERN int NullCursor_set(PyObject *) {
22663 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
22664 return 1;
22665 }
22666
22667
22668 SWIGINTERN PyObject *NullCursor_get(void) {
22669 PyObject *pyobj = 0;
22670
22671 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
22672 return pyobj;
22673 }
22674
22675
22676 SWIGINTERN int NullPen_set(PyObject *) {
22677 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
22678 return 1;
22679 }
22680
22681
22682 SWIGINTERN PyObject *NullPen_get(void) {
22683 PyObject *pyobj = 0;
22684
22685 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
22686 return pyobj;
22687 }
22688
22689
22690 SWIGINTERN int NullBrush_set(PyObject *) {
22691 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
22692 return 1;
22693 }
22694
22695
22696 SWIGINTERN PyObject *NullBrush_get(void) {
22697 PyObject *pyobj = 0;
22698
22699 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
22700 return pyobj;
22701 }
22702
22703
22704 SWIGINTERN int NullPalette_set(PyObject *) {
22705 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
22706 return 1;
22707 }
22708
22709
22710 SWIGINTERN PyObject *NullPalette_get(void) {
22711 PyObject *pyobj = 0;
22712
22713 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
22714 return pyobj;
22715 }
22716
22717
22718 SWIGINTERN int NullFont_set(PyObject *) {
22719 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
22720 return 1;
22721 }
22722
22723
22724 SWIGINTERN PyObject *NullFont_get(void) {
22725 PyObject *pyobj = 0;
22726
22727 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
22728 return pyobj;
22729 }
22730
22731
22732 SWIGINTERN int NullColour_set(PyObject *) {
22733 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
22734 return 1;
22735 }
22736
22737
22738 SWIGINTERN PyObject *NullColour_get(void) {
22739 PyObject *pyobj = 0;
22740
22741 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
22742 return pyobj;
22743 }
22744
22745
22746 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22747 PyObject *resultobj = 0;
22748 wxPenList *arg1 = (wxPenList *) 0 ;
22749 wxPen *arg2 = (wxPen *) 0 ;
22750 void *argp1 = 0 ;
22751 int res1 = 0 ;
22752 void *argp2 = 0 ;
22753 int res2 = 0 ;
22754 PyObject * obj0 = 0 ;
22755 PyObject * obj1 = 0 ;
22756 char * kwnames[] = {
22757 (char *) "self",(char *) "pen", NULL
22758 };
22759
22760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
22761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22762 if (!SWIG_IsOK(res1)) {
22763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
22764 }
22765 arg1 = reinterpret_cast< wxPenList * >(argp1);
22766 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22767 if (!SWIG_IsOK(res2)) {
22768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
22769 }
22770 arg2 = reinterpret_cast< wxPen * >(argp2);
22771 {
22772 PyThreadState* __tstate = wxPyBeginAllowThreads();
22773 (arg1)->AddPen(arg2);
22774 wxPyEndAllowThreads(__tstate);
22775 if (PyErr_Occurred()) SWIG_fail;
22776 }
22777 resultobj = SWIG_Py_Void();
22778 return resultobj;
22779 fail:
22780 return NULL;
22781 }
22782
22783
22784 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22785 PyObject *resultobj = 0;
22786 wxPenList *arg1 = (wxPenList *) 0 ;
22787 wxColour *arg2 = 0 ;
22788 int arg3 ;
22789 int arg4 ;
22790 wxPen *result = 0 ;
22791 void *argp1 = 0 ;
22792 int res1 = 0 ;
22793 wxColour temp2 ;
22794 int val3 ;
22795 int ecode3 = 0 ;
22796 int val4 ;
22797 int ecode4 = 0 ;
22798 PyObject * obj0 = 0 ;
22799 PyObject * obj1 = 0 ;
22800 PyObject * obj2 = 0 ;
22801 PyObject * obj3 = 0 ;
22802 char * kwnames[] = {
22803 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
22804 };
22805
22806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22808 if (!SWIG_IsOK(res1)) {
22809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22810 }
22811 arg1 = reinterpret_cast< wxPenList * >(argp1);
22812 {
22813 arg2 = &temp2;
22814 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22815 }
22816 ecode3 = SWIG_AsVal_int(obj2, &val3);
22817 if (!SWIG_IsOK(ecode3)) {
22818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
22819 }
22820 arg3 = static_cast< int >(val3);
22821 ecode4 = SWIG_AsVal_int(obj3, &val4);
22822 if (!SWIG_IsOK(ecode4)) {
22823 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
22824 }
22825 arg4 = static_cast< int >(val4);
22826 {
22827 PyThreadState* __tstate = wxPyBeginAllowThreads();
22828 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
22829 wxPyEndAllowThreads(__tstate);
22830 if (PyErr_Occurred()) SWIG_fail;
22831 }
22832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22833 return resultobj;
22834 fail:
22835 return NULL;
22836 }
22837
22838
22839 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22840 PyObject *resultobj = 0;
22841 wxPenList *arg1 = (wxPenList *) 0 ;
22842 wxPen *arg2 = (wxPen *) 0 ;
22843 void *argp1 = 0 ;
22844 int res1 = 0 ;
22845 void *argp2 = 0 ;
22846 int res2 = 0 ;
22847 PyObject * obj0 = 0 ;
22848 PyObject * obj1 = 0 ;
22849 char * kwnames[] = {
22850 (char *) "self",(char *) "pen", NULL
22851 };
22852
22853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
22854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22855 if (!SWIG_IsOK(res1)) {
22856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22857 }
22858 arg1 = reinterpret_cast< wxPenList * >(argp1);
22859 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22860 if (!SWIG_IsOK(res2)) {
22861 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
22862 }
22863 arg2 = reinterpret_cast< wxPen * >(argp2);
22864 {
22865 PyThreadState* __tstate = wxPyBeginAllowThreads();
22866 (arg1)->RemovePen(arg2);
22867 wxPyEndAllowThreads(__tstate);
22868 if (PyErr_Occurred()) SWIG_fail;
22869 }
22870 resultobj = SWIG_Py_Void();
22871 return resultobj;
22872 fail:
22873 return NULL;
22874 }
22875
22876
22877 SWIGINTERN PyObject *_wrap_PenList_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22878 PyObject *resultobj = 0;
22879 wxPenList *arg1 = (wxPenList *) 0 ;
22880 int result;
22881 void *argp1 = 0 ;
22882 int res1 = 0 ;
22883 PyObject *swig_obj[1] ;
22884
22885 if (!args) SWIG_fail;
22886 swig_obj[0] = args;
22887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22888 if (!SWIG_IsOK(res1)) {
22889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_GetCount" "', expected argument " "1"" of type '" "wxPenList *""'");
22890 }
22891 arg1 = reinterpret_cast< wxPenList * >(argp1);
22892 {
22893 PyThreadState* __tstate = wxPyBeginAllowThreads();
22894 result = (int)(arg1)->GetCount();
22895 wxPyEndAllowThreads(__tstate);
22896 if (PyErr_Occurred()) SWIG_fail;
22897 }
22898 resultobj = SWIG_From_int(static_cast< int >(result));
22899 return resultobj;
22900 fail:
22901 return NULL;
22902 }
22903
22904
22905 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22906 PyObject *obj;
22907 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22908 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
22909 return SWIG_Py_Void();
22910 }
22911
22912 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22913 PyObject *resultobj = 0;
22914 wxBrushList *arg1 = (wxBrushList *) 0 ;
22915 wxBrush *arg2 = (wxBrush *) 0 ;
22916 void *argp1 = 0 ;
22917 int res1 = 0 ;
22918 void *argp2 = 0 ;
22919 int res2 = 0 ;
22920 PyObject * obj0 = 0 ;
22921 PyObject * obj1 = 0 ;
22922 char * kwnames[] = {
22923 (char *) "self",(char *) "brush", NULL
22924 };
22925
22926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22928 if (!SWIG_IsOK(res1)) {
22929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22930 }
22931 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22932 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22933 if (!SWIG_IsOK(res2)) {
22934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22935 }
22936 arg2 = reinterpret_cast< wxBrush * >(argp2);
22937 {
22938 PyThreadState* __tstate = wxPyBeginAllowThreads();
22939 (arg1)->AddBrush(arg2);
22940 wxPyEndAllowThreads(__tstate);
22941 if (PyErr_Occurred()) SWIG_fail;
22942 }
22943 resultobj = SWIG_Py_Void();
22944 return resultobj;
22945 fail:
22946 return NULL;
22947 }
22948
22949
22950 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22951 PyObject *resultobj = 0;
22952 wxBrushList *arg1 = (wxBrushList *) 0 ;
22953 wxColour *arg2 = 0 ;
22954 int arg3 = (int) wxSOLID ;
22955 wxBrush *result = 0 ;
22956 void *argp1 = 0 ;
22957 int res1 = 0 ;
22958 wxColour temp2 ;
22959 int val3 ;
22960 int ecode3 = 0 ;
22961 PyObject * obj0 = 0 ;
22962 PyObject * obj1 = 0 ;
22963 PyObject * obj2 = 0 ;
22964 char * kwnames[] = {
22965 (char *) "self",(char *) "colour",(char *) "style", NULL
22966 };
22967
22968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22970 if (!SWIG_IsOK(res1)) {
22971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22972 }
22973 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22974 {
22975 arg2 = &temp2;
22976 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22977 }
22978 if (obj2) {
22979 ecode3 = SWIG_AsVal_int(obj2, &val3);
22980 if (!SWIG_IsOK(ecode3)) {
22981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
22982 }
22983 arg3 = static_cast< int >(val3);
22984 }
22985 {
22986 PyThreadState* __tstate = wxPyBeginAllowThreads();
22987 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
22988 wxPyEndAllowThreads(__tstate);
22989 if (PyErr_Occurred()) SWIG_fail;
22990 }
22991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22992 return resultobj;
22993 fail:
22994 return NULL;
22995 }
22996
22997
22998 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22999 PyObject *resultobj = 0;
23000 wxBrushList *arg1 = (wxBrushList *) 0 ;
23001 wxBrush *arg2 = (wxBrush *) 0 ;
23002 void *argp1 = 0 ;
23003 int res1 = 0 ;
23004 void *argp2 = 0 ;
23005 int res2 = 0 ;
23006 PyObject * obj0 = 0 ;
23007 PyObject * obj1 = 0 ;
23008 char * kwnames[] = {
23009 (char *) "self",(char *) "brush", NULL
23010 };
23011
23012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
23013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23014 if (!SWIG_IsOK(res1)) {
23015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23016 }
23017 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23018 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
23019 if (!SWIG_IsOK(res2)) {
23020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
23021 }
23022 arg2 = reinterpret_cast< wxBrush * >(argp2);
23023 {
23024 PyThreadState* __tstate = wxPyBeginAllowThreads();
23025 (arg1)->RemoveBrush(arg2);
23026 wxPyEndAllowThreads(__tstate);
23027 if (PyErr_Occurred()) SWIG_fail;
23028 }
23029 resultobj = SWIG_Py_Void();
23030 return resultobj;
23031 fail:
23032 return NULL;
23033 }
23034
23035
23036 SWIGINTERN PyObject *_wrap_BrushList_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23037 PyObject *resultobj = 0;
23038 wxBrushList *arg1 = (wxBrushList *) 0 ;
23039 int result;
23040 void *argp1 = 0 ;
23041 int res1 = 0 ;
23042 PyObject *swig_obj[1] ;
23043
23044 if (!args) SWIG_fail;
23045 swig_obj[0] = args;
23046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23047 if (!SWIG_IsOK(res1)) {
23048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_GetCount" "', expected argument " "1"" of type '" "wxBrushList *""'");
23049 }
23050 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23051 {
23052 PyThreadState* __tstate = wxPyBeginAllowThreads();
23053 result = (int)(arg1)->GetCount();
23054 wxPyEndAllowThreads(__tstate);
23055 if (PyErr_Occurred()) SWIG_fail;
23056 }
23057 resultobj = SWIG_From_int(static_cast< int >(result));
23058 return resultobj;
23059 fail:
23060 return NULL;
23061 }
23062
23063
23064 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23065 PyObject *obj;
23066 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23067 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
23068 return SWIG_Py_Void();
23069 }
23070
23071 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23072 PyObject *resultobj = 0;
23073 wxColourDatabase *result = 0 ;
23074
23075 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
23076 {
23077 if (!wxPyCheckForApp()) SWIG_fail;
23078 PyThreadState* __tstate = wxPyBeginAllowThreads();
23079 result = (wxColourDatabase *)new wxColourDatabase();
23080 wxPyEndAllowThreads(__tstate);
23081 if (PyErr_Occurred()) SWIG_fail;
23082 }
23083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
23084 return resultobj;
23085 fail:
23086 return NULL;
23087 }
23088
23089
23090 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23091 PyObject *resultobj = 0;
23092 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23093 void *argp1 = 0 ;
23094 int res1 = 0 ;
23095 PyObject *swig_obj[1] ;
23096
23097 if (!args) SWIG_fail;
23098 swig_obj[0] = args;
23099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
23100 if (!SWIG_IsOK(res1)) {
23101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23102 }
23103 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23104 {
23105 PyThreadState* __tstate = wxPyBeginAllowThreads();
23106 delete arg1;
23107
23108 wxPyEndAllowThreads(__tstate);
23109 if (PyErr_Occurred()) SWIG_fail;
23110 }
23111 resultobj = SWIG_Py_Void();
23112 return resultobj;
23113 fail:
23114 return NULL;
23115 }
23116
23117
23118 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23119 PyObject *resultobj = 0;
23120 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23121 wxString *arg2 = 0 ;
23122 wxColour result;
23123 void *argp1 = 0 ;
23124 int res1 = 0 ;
23125 bool temp2 = false ;
23126 PyObject * obj0 = 0 ;
23127 PyObject * obj1 = 0 ;
23128 char * kwnames[] = {
23129 (char *) "self",(char *) "name", NULL
23130 };
23131
23132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
23133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23134 if (!SWIG_IsOK(res1)) {
23135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23136 }
23137 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23138 {
23139 arg2 = wxString_in_helper(obj1);
23140 if (arg2 == NULL) SWIG_fail;
23141 temp2 = true;
23142 }
23143 {
23144 PyThreadState* __tstate = wxPyBeginAllowThreads();
23145 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
23146 wxPyEndAllowThreads(__tstate);
23147 if (PyErr_Occurred()) SWIG_fail;
23148 }
23149 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23150 {
23151 if (temp2)
23152 delete arg2;
23153 }
23154 return resultobj;
23155 fail:
23156 {
23157 if (temp2)
23158 delete arg2;
23159 }
23160 return NULL;
23161 }
23162
23163
23164 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23165 PyObject *resultobj = 0;
23166 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23167 wxColour *arg2 = 0 ;
23168 wxString result;
23169 void *argp1 = 0 ;
23170 int res1 = 0 ;
23171 wxColour temp2 ;
23172 PyObject * obj0 = 0 ;
23173 PyObject * obj1 = 0 ;
23174 char * kwnames[] = {
23175 (char *) "self",(char *) "colour", NULL
23176 };
23177
23178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
23179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23180 if (!SWIG_IsOK(res1)) {
23181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23182 }
23183 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23184 {
23185 arg2 = &temp2;
23186 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23187 }
23188 {
23189 PyThreadState* __tstate = wxPyBeginAllowThreads();
23190 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
23191 wxPyEndAllowThreads(__tstate);
23192 if (PyErr_Occurred()) SWIG_fail;
23193 }
23194 {
23195 #if wxUSE_UNICODE
23196 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23197 #else
23198 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23199 #endif
23200 }
23201 return resultobj;
23202 fail:
23203 return NULL;
23204 }
23205
23206
23207 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23208 PyObject *resultobj = 0;
23209 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23210 wxString *arg2 = 0 ;
23211 wxColour *arg3 = 0 ;
23212 void *argp1 = 0 ;
23213 int res1 = 0 ;
23214 bool temp2 = false ;
23215 wxColour temp3 ;
23216 PyObject * obj0 = 0 ;
23217 PyObject * obj1 = 0 ;
23218 PyObject * obj2 = 0 ;
23219 char * kwnames[] = {
23220 (char *) "self",(char *) "name",(char *) "colour", NULL
23221 };
23222
23223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23225 if (!SWIG_IsOK(res1)) {
23226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23227 }
23228 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23229 {
23230 arg2 = wxString_in_helper(obj1);
23231 if (arg2 == NULL) SWIG_fail;
23232 temp2 = true;
23233 }
23234 {
23235 arg3 = &temp3;
23236 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23237 }
23238 {
23239 PyThreadState* __tstate = wxPyBeginAllowThreads();
23240 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
23241 wxPyEndAllowThreads(__tstate);
23242 if (PyErr_Occurred()) SWIG_fail;
23243 }
23244 resultobj = SWIG_Py_Void();
23245 {
23246 if (temp2)
23247 delete arg2;
23248 }
23249 return resultobj;
23250 fail:
23251 {
23252 if (temp2)
23253 delete arg2;
23254 }
23255 return NULL;
23256 }
23257
23258
23259 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23260 PyObject *resultobj = 0;
23261 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23262 wxString *arg2 = 0 ;
23263 int arg3 ;
23264 int arg4 ;
23265 int arg5 ;
23266 void *argp1 = 0 ;
23267 int res1 = 0 ;
23268 bool temp2 = false ;
23269 int val3 ;
23270 int ecode3 = 0 ;
23271 int val4 ;
23272 int ecode4 = 0 ;
23273 int val5 ;
23274 int ecode5 = 0 ;
23275 PyObject * obj0 = 0 ;
23276 PyObject * obj1 = 0 ;
23277 PyObject * obj2 = 0 ;
23278 PyObject * obj3 = 0 ;
23279 PyObject * obj4 = 0 ;
23280 char * kwnames[] = {
23281 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
23282 };
23283
23284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23286 if (!SWIG_IsOK(res1)) {
23287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23288 }
23289 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23290 {
23291 arg2 = wxString_in_helper(obj1);
23292 if (arg2 == NULL) SWIG_fail;
23293 temp2 = true;
23294 }
23295 ecode3 = SWIG_AsVal_int(obj2, &val3);
23296 if (!SWIG_IsOK(ecode3)) {
23297 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
23298 }
23299 arg3 = static_cast< int >(val3);
23300 ecode4 = SWIG_AsVal_int(obj3, &val4);
23301 if (!SWIG_IsOK(ecode4)) {
23302 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
23303 }
23304 arg4 = static_cast< int >(val4);
23305 ecode5 = SWIG_AsVal_int(obj4, &val5);
23306 if (!SWIG_IsOK(ecode5)) {
23307 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
23308 }
23309 arg5 = static_cast< int >(val5);
23310 {
23311 PyThreadState* __tstate = wxPyBeginAllowThreads();
23312 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
23313 wxPyEndAllowThreads(__tstate);
23314 if (PyErr_Occurred()) SWIG_fail;
23315 }
23316 resultobj = SWIG_Py_Void();
23317 {
23318 if (temp2)
23319 delete arg2;
23320 }
23321 return resultobj;
23322 fail:
23323 {
23324 if (temp2)
23325 delete arg2;
23326 }
23327 return NULL;
23328 }
23329
23330
23331 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23332 PyObject *obj;
23333 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23334 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
23335 return SWIG_Py_Void();
23336 }
23337
23338 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23339 return SWIG_Python_InitShadowInstance(args);
23340 }
23341
23342 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23343 PyObject *resultobj = 0;
23344 wxFontList *arg1 = (wxFontList *) 0 ;
23345 wxFont *arg2 = (wxFont *) 0 ;
23346 void *argp1 = 0 ;
23347 int res1 = 0 ;
23348 void *argp2 = 0 ;
23349 int res2 = 0 ;
23350 PyObject * obj0 = 0 ;
23351 PyObject * obj1 = 0 ;
23352 char * kwnames[] = {
23353 (char *) "self",(char *) "font", NULL
23354 };
23355
23356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
23357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23358 if (!SWIG_IsOK(res1)) {
23359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23360 }
23361 arg1 = reinterpret_cast< wxFontList * >(argp1);
23362 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23363 if (!SWIG_IsOK(res2)) {
23364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
23365 }
23366 arg2 = reinterpret_cast< wxFont * >(argp2);
23367 {
23368 PyThreadState* __tstate = wxPyBeginAllowThreads();
23369 (arg1)->AddFont(arg2);
23370 wxPyEndAllowThreads(__tstate);
23371 if (PyErr_Occurred()) SWIG_fail;
23372 }
23373 resultobj = SWIG_Py_Void();
23374 return resultobj;
23375 fail:
23376 return NULL;
23377 }
23378
23379
23380 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23381 PyObject *resultobj = 0;
23382 wxFontList *arg1 = (wxFontList *) 0 ;
23383 int arg2 ;
23384 int arg3 ;
23385 int arg4 ;
23386 int arg5 ;
23387 bool arg6 = (bool) false ;
23388 wxString const &arg7_defvalue = wxPyEmptyString ;
23389 wxString *arg7 = (wxString *) &arg7_defvalue ;
23390 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
23391 wxFont *result = 0 ;
23392 void *argp1 = 0 ;
23393 int res1 = 0 ;
23394 int val2 ;
23395 int ecode2 = 0 ;
23396 int val3 ;
23397 int ecode3 = 0 ;
23398 int val4 ;
23399 int ecode4 = 0 ;
23400 int val5 ;
23401 int ecode5 = 0 ;
23402 bool val6 ;
23403 int ecode6 = 0 ;
23404 bool temp7 = false ;
23405 int val8 ;
23406 int ecode8 = 0 ;
23407 PyObject * obj0 = 0 ;
23408 PyObject * obj1 = 0 ;
23409 PyObject * obj2 = 0 ;
23410 PyObject * obj3 = 0 ;
23411 PyObject * obj4 = 0 ;
23412 PyObject * obj5 = 0 ;
23413 PyObject * obj6 = 0 ;
23414 PyObject * obj7 = 0 ;
23415 char * kwnames[] = {
23416 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
23417 };
23418
23419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
23420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23421 if (!SWIG_IsOK(res1)) {
23422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23423 }
23424 arg1 = reinterpret_cast< wxFontList * >(argp1);
23425 ecode2 = SWIG_AsVal_int(obj1, &val2);
23426 if (!SWIG_IsOK(ecode2)) {
23427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
23428 }
23429 arg2 = static_cast< int >(val2);
23430 ecode3 = SWIG_AsVal_int(obj2, &val3);
23431 if (!SWIG_IsOK(ecode3)) {
23432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
23433 }
23434 arg3 = static_cast< int >(val3);
23435 ecode4 = SWIG_AsVal_int(obj3, &val4);
23436 if (!SWIG_IsOK(ecode4)) {
23437 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
23438 }
23439 arg4 = static_cast< int >(val4);
23440 ecode5 = SWIG_AsVal_int(obj4, &val5);
23441 if (!SWIG_IsOK(ecode5)) {
23442 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
23443 }
23444 arg5 = static_cast< int >(val5);
23445 if (obj5) {
23446 ecode6 = SWIG_AsVal_bool(obj5, &val6);
23447 if (!SWIG_IsOK(ecode6)) {
23448 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
23449 }
23450 arg6 = static_cast< bool >(val6);
23451 }
23452 if (obj6) {
23453 {
23454 arg7 = wxString_in_helper(obj6);
23455 if (arg7 == NULL) SWIG_fail;
23456 temp7 = true;
23457 }
23458 }
23459 if (obj7) {
23460 ecode8 = SWIG_AsVal_int(obj7, &val8);
23461 if (!SWIG_IsOK(ecode8)) {
23462 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
23463 }
23464 arg8 = static_cast< wxFontEncoding >(val8);
23465 }
23466 {
23467 PyThreadState* __tstate = wxPyBeginAllowThreads();
23468 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
23469 wxPyEndAllowThreads(__tstate);
23470 if (PyErr_Occurred()) SWIG_fail;
23471 }
23472 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
23473 {
23474 if (temp7)
23475 delete arg7;
23476 }
23477 return resultobj;
23478 fail:
23479 {
23480 if (temp7)
23481 delete arg7;
23482 }
23483 return NULL;
23484 }
23485
23486
23487 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23488 PyObject *resultobj = 0;
23489 wxFontList *arg1 = (wxFontList *) 0 ;
23490 wxFont *arg2 = (wxFont *) 0 ;
23491 void *argp1 = 0 ;
23492 int res1 = 0 ;
23493 void *argp2 = 0 ;
23494 int res2 = 0 ;
23495 PyObject * obj0 = 0 ;
23496 PyObject * obj1 = 0 ;
23497 char * kwnames[] = {
23498 (char *) "self",(char *) "font", NULL
23499 };
23500
23501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
23502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23503 if (!SWIG_IsOK(res1)) {
23504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23505 }
23506 arg1 = reinterpret_cast< wxFontList * >(argp1);
23507 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23508 if (!SWIG_IsOK(res2)) {
23509 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
23510 }
23511 arg2 = reinterpret_cast< wxFont * >(argp2);
23512 {
23513 PyThreadState* __tstate = wxPyBeginAllowThreads();
23514 (arg1)->RemoveFont(arg2);
23515 wxPyEndAllowThreads(__tstate);
23516 if (PyErr_Occurred()) SWIG_fail;
23517 }
23518 resultobj = SWIG_Py_Void();
23519 return resultobj;
23520 fail:
23521 return NULL;
23522 }
23523
23524
23525 SWIGINTERN PyObject *_wrap_FontList_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23526 PyObject *resultobj = 0;
23527 wxFontList *arg1 = (wxFontList *) 0 ;
23528 int result;
23529 void *argp1 = 0 ;
23530 int res1 = 0 ;
23531 PyObject *swig_obj[1] ;
23532
23533 if (!args) SWIG_fail;
23534 swig_obj[0] = args;
23535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23536 if (!SWIG_IsOK(res1)) {
23537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_GetCount" "', expected argument " "1"" of type '" "wxFontList *""'");
23538 }
23539 arg1 = reinterpret_cast< wxFontList * >(argp1);
23540 {
23541 PyThreadState* __tstate = wxPyBeginAllowThreads();
23542 result = (int)(arg1)->GetCount();
23543 wxPyEndAllowThreads(__tstate);
23544 if (PyErr_Occurred()) SWIG_fail;
23545 }
23546 resultobj = SWIG_From_int(static_cast< int >(result));
23547 return resultobj;
23548 fail:
23549 return NULL;
23550 }
23551
23552
23553 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23554 PyObject *obj;
23555 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23556 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
23557 return SWIG_Py_Void();
23558 }
23559
23560 SWIGINTERN int TheFontList_set(PyObject *) {
23561 SWIG_Error(SWIG_AttributeError,"Variable TheFontList is read-only.");
23562 return 1;
23563 }
23564
23565
23566 SWIGINTERN PyObject *TheFontList_get(void) {
23567 PyObject *pyobj = 0;
23568
23569 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTheFontList), SWIGTYPE_p_wxFontList, 0 );
23570 return pyobj;
23571 }
23572
23573
23574 SWIGINTERN int ThePenList_set(PyObject *) {
23575 SWIG_Error(SWIG_AttributeError,"Variable ThePenList is read-only.");
23576 return 1;
23577 }
23578
23579
23580 SWIGINTERN PyObject *ThePenList_get(void) {
23581 PyObject *pyobj = 0;
23582
23583 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxThePenList), SWIGTYPE_p_wxPenList, 0 );
23584 return pyobj;
23585 }
23586
23587
23588 SWIGINTERN int TheBrushList_set(PyObject *) {
23589 SWIG_Error(SWIG_AttributeError,"Variable TheBrushList is read-only.");
23590 return 1;
23591 }
23592
23593
23594 SWIGINTERN PyObject *TheBrushList_get(void) {
23595 PyObject *pyobj = 0;
23596
23597 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0 );
23598 return pyobj;
23599 }
23600
23601
23602 SWIGINTERN int TheColourDatabase_set(PyObject *) {
23603 SWIG_Error(SWIG_AttributeError,"Variable TheColourDatabase is read-only.");
23604 return 1;
23605 }
23606
23607
23608 SWIGINTERN PyObject *TheColourDatabase_get(void) {
23609 PyObject *pyobj = 0;
23610
23611 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0 );
23612 return pyobj;
23613 }
23614
23615
23616 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23617 PyObject *resultobj = 0;
23618 wxEffects *result = 0 ;
23619
23620 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
23621 {
23622 PyThreadState* __tstate = wxPyBeginAllowThreads();
23623 result = (wxEffects *)new wxEffects();
23624 wxPyEndAllowThreads(__tstate);
23625 if (PyErr_Occurred()) SWIG_fail;
23626 }
23627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
23628 return resultobj;
23629 fail:
23630 return NULL;
23631 }
23632
23633
23634 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23635 PyObject *resultobj = 0;
23636 wxEffects *arg1 = (wxEffects *) 0 ;
23637 wxColour result;
23638 void *argp1 = 0 ;
23639 int res1 = 0 ;
23640 PyObject *swig_obj[1] ;
23641
23642 if (!args) SWIG_fail;
23643 swig_obj[0] = args;
23644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23645 if (!SWIG_IsOK(res1)) {
23646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23647 }
23648 arg1 = reinterpret_cast< wxEffects * >(argp1);
23649 {
23650 PyThreadState* __tstate = wxPyBeginAllowThreads();
23651 result = ((wxEffects const *)arg1)->GetHighlightColour();
23652 wxPyEndAllowThreads(__tstate);
23653 if (PyErr_Occurred()) SWIG_fail;
23654 }
23655 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23656 return resultobj;
23657 fail:
23658 return NULL;
23659 }
23660
23661
23662 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23663 PyObject *resultobj = 0;
23664 wxEffects *arg1 = (wxEffects *) 0 ;
23665 wxColour result;
23666 void *argp1 = 0 ;
23667 int res1 = 0 ;
23668 PyObject *swig_obj[1] ;
23669
23670 if (!args) SWIG_fail;
23671 swig_obj[0] = args;
23672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23673 if (!SWIG_IsOK(res1)) {
23674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23675 }
23676 arg1 = reinterpret_cast< wxEffects * >(argp1);
23677 {
23678 PyThreadState* __tstate = wxPyBeginAllowThreads();
23679 result = ((wxEffects const *)arg1)->GetLightShadow();
23680 wxPyEndAllowThreads(__tstate);
23681 if (PyErr_Occurred()) SWIG_fail;
23682 }
23683 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23684 return resultobj;
23685 fail:
23686 return NULL;
23687 }
23688
23689
23690 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23691 PyObject *resultobj = 0;
23692 wxEffects *arg1 = (wxEffects *) 0 ;
23693 wxColour result;
23694 void *argp1 = 0 ;
23695 int res1 = 0 ;
23696 PyObject *swig_obj[1] ;
23697
23698 if (!args) SWIG_fail;
23699 swig_obj[0] = args;
23700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23701 if (!SWIG_IsOK(res1)) {
23702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23703 }
23704 arg1 = reinterpret_cast< wxEffects * >(argp1);
23705 {
23706 PyThreadState* __tstate = wxPyBeginAllowThreads();
23707 result = ((wxEffects const *)arg1)->GetFaceColour();
23708 wxPyEndAllowThreads(__tstate);
23709 if (PyErr_Occurred()) SWIG_fail;
23710 }
23711 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23712 return resultobj;
23713 fail:
23714 return NULL;
23715 }
23716
23717
23718 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23719 PyObject *resultobj = 0;
23720 wxEffects *arg1 = (wxEffects *) 0 ;
23721 wxColour result;
23722 void *argp1 = 0 ;
23723 int res1 = 0 ;
23724 PyObject *swig_obj[1] ;
23725
23726 if (!args) SWIG_fail;
23727 swig_obj[0] = args;
23728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23729 if (!SWIG_IsOK(res1)) {
23730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23731 }
23732 arg1 = reinterpret_cast< wxEffects * >(argp1);
23733 {
23734 PyThreadState* __tstate = wxPyBeginAllowThreads();
23735 result = ((wxEffects const *)arg1)->GetMediumShadow();
23736 wxPyEndAllowThreads(__tstate);
23737 if (PyErr_Occurred()) SWIG_fail;
23738 }
23739 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23740 return resultobj;
23741 fail:
23742 return NULL;
23743 }
23744
23745
23746 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23747 PyObject *resultobj = 0;
23748 wxEffects *arg1 = (wxEffects *) 0 ;
23749 wxColour result;
23750 void *argp1 = 0 ;
23751 int res1 = 0 ;
23752 PyObject *swig_obj[1] ;
23753
23754 if (!args) SWIG_fail;
23755 swig_obj[0] = args;
23756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23757 if (!SWIG_IsOK(res1)) {
23758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23759 }
23760 arg1 = reinterpret_cast< wxEffects * >(argp1);
23761 {
23762 PyThreadState* __tstate = wxPyBeginAllowThreads();
23763 result = ((wxEffects const *)arg1)->GetDarkShadow();
23764 wxPyEndAllowThreads(__tstate);
23765 if (PyErr_Occurred()) SWIG_fail;
23766 }
23767 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23768 return resultobj;
23769 fail:
23770 return NULL;
23771 }
23772
23773
23774 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23775 PyObject *resultobj = 0;
23776 wxEffects *arg1 = (wxEffects *) 0 ;
23777 wxColour *arg2 = 0 ;
23778 void *argp1 = 0 ;
23779 int res1 = 0 ;
23780 wxColour temp2 ;
23781 PyObject * obj0 = 0 ;
23782 PyObject * obj1 = 0 ;
23783 char * kwnames[] = {
23784 (char *) "self",(char *) "c", NULL
23785 };
23786
23787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
23788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23789 if (!SWIG_IsOK(res1)) {
23790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23791 }
23792 arg1 = reinterpret_cast< wxEffects * >(argp1);
23793 {
23794 arg2 = &temp2;
23795 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23796 }
23797 {
23798 PyThreadState* __tstate = wxPyBeginAllowThreads();
23799 (arg1)->SetHighlightColour((wxColour const &)*arg2);
23800 wxPyEndAllowThreads(__tstate);
23801 if (PyErr_Occurred()) SWIG_fail;
23802 }
23803 resultobj = SWIG_Py_Void();
23804 return resultobj;
23805 fail:
23806 return NULL;
23807 }
23808
23809
23810 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23811 PyObject *resultobj = 0;
23812 wxEffects *arg1 = (wxEffects *) 0 ;
23813 wxColour *arg2 = 0 ;
23814 void *argp1 = 0 ;
23815 int res1 = 0 ;
23816 wxColour temp2 ;
23817 PyObject * obj0 = 0 ;
23818 PyObject * obj1 = 0 ;
23819 char * kwnames[] = {
23820 (char *) "self",(char *) "c", NULL
23821 };
23822
23823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23825 if (!SWIG_IsOK(res1)) {
23826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23827 }
23828 arg1 = reinterpret_cast< wxEffects * >(argp1);
23829 {
23830 arg2 = &temp2;
23831 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23832 }
23833 {
23834 PyThreadState* __tstate = wxPyBeginAllowThreads();
23835 (arg1)->SetLightShadow((wxColour const &)*arg2);
23836 wxPyEndAllowThreads(__tstate);
23837 if (PyErr_Occurred()) SWIG_fail;
23838 }
23839 resultobj = SWIG_Py_Void();
23840 return resultobj;
23841 fail:
23842 return NULL;
23843 }
23844
23845
23846 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23847 PyObject *resultobj = 0;
23848 wxEffects *arg1 = (wxEffects *) 0 ;
23849 wxColour *arg2 = 0 ;
23850 void *argp1 = 0 ;
23851 int res1 = 0 ;
23852 wxColour temp2 ;
23853 PyObject * obj0 = 0 ;
23854 PyObject * obj1 = 0 ;
23855 char * kwnames[] = {
23856 (char *) "self",(char *) "c", NULL
23857 };
23858
23859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
23860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23861 if (!SWIG_IsOK(res1)) {
23862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23863 }
23864 arg1 = reinterpret_cast< wxEffects * >(argp1);
23865 {
23866 arg2 = &temp2;
23867 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23868 }
23869 {
23870 PyThreadState* __tstate = wxPyBeginAllowThreads();
23871 (arg1)->SetFaceColour((wxColour const &)*arg2);
23872 wxPyEndAllowThreads(__tstate);
23873 if (PyErr_Occurred()) SWIG_fail;
23874 }
23875 resultobj = SWIG_Py_Void();
23876 return resultobj;
23877 fail:
23878 return NULL;
23879 }
23880
23881
23882 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23883 PyObject *resultobj = 0;
23884 wxEffects *arg1 = (wxEffects *) 0 ;
23885 wxColour *arg2 = 0 ;
23886 void *argp1 = 0 ;
23887 int res1 = 0 ;
23888 wxColour temp2 ;
23889 PyObject * obj0 = 0 ;
23890 PyObject * obj1 = 0 ;
23891 char * kwnames[] = {
23892 (char *) "self",(char *) "c", NULL
23893 };
23894
23895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23897 if (!SWIG_IsOK(res1)) {
23898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23899 }
23900 arg1 = reinterpret_cast< wxEffects * >(argp1);
23901 {
23902 arg2 = &temp2;
23903 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23904 }
23905 {
23906 PyThreadState* __tstate = wxPyBeginAllowThreads();
23907 (arg1)->SetMediumShadow((wxColour const &)*arg2);
23908 wxPyEndAllowThreads(__tstate);
23909 if (PyErr_Occurred()) SWIG_fail;
23910 }
23911 resultobj = SWIG_Py_Void();
23912 return resultobj;
23913 fail:
23914 return NULL;
23915 }
23916
23917
23918 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23919 PyObject *resultobj = 0;
23920 wxEffects *arg1 = (wxEffects *) 0 ;
23921 wxColour *arg2 = 0 ;
23922 void *argp1 = 0 ;
23923 int res1 = 0 ;
23924 wxColour temp2 ;
23925 PyObject * obj0 = 0 ;
23926 PyObject * obj1 = 0 ;
23927 char * kwnames[] = {
23928 (char *) "self",(char *) "c", NULL
23929 };
23930
23931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23933 if (!SWIG_IsOK(res1)) {
23934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23935 }
23936 arg1 = reinterpret_cast< wxEffects * >(argp1);
23937 {
23938 arg2 = &temp2;
23939 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23940 }
23941 {
23942 PyThreadState* __tstate = wxPyBeginAllowThreads();
23943 (arg1)->SetDarkShadow((wxColour const &)*arg2);
23944 wxPyEndAllowThreads(__tstate);
23945 if (PyErr_Occurred()) SWIG_fail;
23946 }
23947 resultobj = SWIG_Py_Void();
23948 return resultobj;
23949 fail:
23950 return NULL;
23951 }
23952
23953
23954 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23955 PyObject *resultobj = 0;
23956 wxEffects *arg1 = (wxEffects *) 0 ;
23957 wxColour *arg2 = 0 ;
23958 wxColour *arg3 = 0 ;
23959 wxColour *arg4 = 0 ;
23960 wxColour *arg5 = 0 ;
23961 wxColour *arg6 = 0 ;
23962 void *argp1 = 0 ;
23963 int res1 = 0 ;
23964 wxColour temp2 ;
23965 wxColour temp3 ;
23966 wxColour temp4 ;
23967 wxColour temp5 ;
23968 wxColour temp6 ;
23969 PyObject * obj0 = 0 ;
23970 PyObject * obj1 = 0 ;
23971 PyObject * obj2 = 0 ;
23972 PyObject * obj3 = 0 ;
23973 PyObject * obj4 = 0 ;
23974 PyObject * obj5 = 0 ;
23975 char * kwnames[] = {
23976 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
23977 };
23978
23979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
23980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23981 if (!SWIG_IsOK(res1)) {
23982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
23983 }
23984 arg1 = reinterpret_cast< wxEffects * >(argp1);
23985 {
23986 arg2 = &temp2;
23987 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23988 }
23989 {
23990 arg3 = &temp3;
23991 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23992 }
23993 {
23994 arg4 = &temp4;
23995 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
23996 }
23997 {
23998 arg5 = &temp5;
23999 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
24000 }
24001 {
24002 arg6 = &temp6;
24003 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
24004 }
24005 {
24006 PyThreadState* __tstate = wxPyBeginAllowThreads();
24007 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
24008 wxPyEndAllowThreads(__tstate);
24009 if (PyErr_Occurred()) SWIG_fail;
24010 }
24011 resultobj = SWIG_Py_Void();
24012 return resultobj;
24013 fail:
24014 return NULL;
24015 }
24016
24017
24018 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24019 PyObject *resultobj = 0;
24020 wxEffects *arg1 = (wxEffects *) 0 ;
24021 wxDC *arg2 = 0 ;
24022 wxRect *arg3 = 0 ;
24023 int arg4 = (int) 1 ;
24024 void *argp1 = 0 ;
24025 int res1 = 0 ;
24026 void *argp2 = 0 ;
24027 int res2 = 0 ;
24028 wxRect temp3 ;
24029 int val4 ;
24030 int ecode4 = 0 ;
24031 PyObject * obj0 = 0 ;
24032 PyObject * obj1 = 0 ;
24033 PyObject * obj2 = 0 ;
24034 PyObject * obj3 = 0 ;
24035 char * kwnames[] = {
24036 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
24037 };
24038
24039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24041 if (!SWIG_IsOK(res1)) {
24042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
24043 }
24044 arg1 = reinterpret_cast< wxEffects * >(argp1);
24045 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
24046 if (!SWIG_IsOK(res2)) {
24047 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
24048 }
24049 if (!argp2) {
24050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
24051 }
24052 arg2 = reinterpret_cast< wxDC * >(argp2);
24053 {
24054 arg3 = &temp3;
24055 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
24056 }
24057 if (obj3) {
24058 ecode4 = SWIG_AsVal_int(obj3, &val4);
24059 if (!SWIG_IsOK(ecode4)) {
24060 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
24061 }
24062 arg4 = static_cast< int >(val4);
24063 }
24064 {
24065 PyThreadState* __tstate = wxPyBeginAllowThreads();
24066 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
24067 wxPyEndAllowThreads(__tstate);
24068 if (PyErr_Occurred()) SWIG_fail;
24069 }
24070 resultobj = SWIG_Py_Void();
24071 return resultobj;
24072 fail:
24073 return NULL;
24074 }
24075
24076
24077 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24078 PyObject *resultobj = 0;
24079 wxEffects *arg1 = (wxEffects *) 0 ;
24080 wxRect *arg2 = 0 ;
24081 wxDC *arg3 = 0 ;
24082 wxBitmap *arg4 = 0 ;
24083 bool result;
24084 void *argp1 = 0 ;
24085 int res1 = 0 ;
24086 wxRect temp2 ;
24087 void *argp3 = 0 ;
24088 int res3 = 0 ;
24089 void *argp4 = 0 ;
24090 int res4 = 0 ;
24091 PyObject * obj0 = 0 ;
24092 PyObject * obj1 = 0 ;
24093 PyObject * obj2 = 0 ;
24094 PyObject * obj3 = 0 ;
24095 char * kwnames[] = {
24096 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
24097 };
24098
24099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24101 if (!SWIG_IsOK(res1)) {
24102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
24103 }
24104 arg1 = reinterpret_cast< wxEffects * >(argp1);
24105 {
24106 arg2 = &temp2;
24107 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
24108 }
24109 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24110 if (!SWIG_IsOK(res3)) {
24111 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
24112 }
24113 if (!argp3) {
24114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
24115 }
24116 arg3 = reinterpret_cast< wxDC * >(argp3);
24117 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
24118 if (!SWIG_IsOK(res4)) {
24119 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
24120 }
24121 if (!argp4) {
24122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
24123 }
24124 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24125 {
24126 PyThreadState* __tstate = wxPyBeginAllowThreads();
24127 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
24128 wxPyEndAllowThreads(__tstate);
24129 if (PyErr_Occurred()) SWIG_fail;
24130 }
24131 {
24132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24133 }
24134 return resultobj;
24135 fail:
24136 return NULL;
24137 }
24138
24139
24140 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24141 PyObject *obj;
24142 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24143 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
24144 return SWIG_Py_Void();
24145 }
24146
24147 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24148 return SWIG_Python_InitShadowInstance(args);
24149 }
24150
24151 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24152 PyObject *resultobj = 0;
24153 int arg1 ;
24154 int arg2 ;
24155 bool arg3 ;
24156 wxSplitterRenderParams *result = 0 ;
24157 int val1 ;
24158 int ecode1 = 0 ;
24159 int val2 ;
24160 int ecode2 = 0 ;
24161 bool val3 ;
24162 int ecode3 = 0 ;
24163 PyObject * obj0 = 0 ;
24164 PyObject * obj1 = 0 ;
24165 PyObject * obj2 = 0 ;
24166 char * kwnames[] = {
24167 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
24168 };
24169
24170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24171 ecode1 = SWIG_AsVal_int(obj0, &val1);
24172 if (!SWIG_IsOK(ecode1)) {
24173 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
24174 }
24175 arg1 = static_cast< int >(val1);
24176 ecode2 = SWIG_AsVal_int(obj1, &val2);
24177 if (!SWIG_IsOK(ecode2)) {
24178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
24179 }
24180 arg2 = static_cast< int >(val2);
24181 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24182 if (!SWIG_IsOK(ecode3)) {
24183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
24184 }
24185 arg3 = static_cast< bool >(val3);
24186 {
24187 PyThreadState* __tstate = wxPyBeginAllowThreads();
24188 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
24189 wxPyEndAllowThreads(__tstate);
24190 if (PyErr_Occurred()) SWIG_fail;
24191 }
24192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
24193 return resultobj;
24194 fail:
24195 return NULL;
24196 }
24197
24198
24199 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24200 PyObject *resultobj = 0;
24201 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24202 void *argp1 = 0 ;
24203 int res1 = 0 ;
24204 PyObject *swig_obj[1] ;
24205
24206 if (!args) SWIG_fail;
24207 swig_obj[0] = args;
24208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
24209 if (!SWIG_IsOK(res1)) {
24210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24211 }
24212 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24213 {
24214 PyThreadState* __tstate = wxPyBeginAllowThreads();
24215 delete arg1;
24216
24217 wxPyEndAllowThreads(__tstate);
24218 if (PyErr_Occurred()) SWIG_fail;
24219 }
24220 resultobj = SWIG_Py_Void();
24221 return resultobj;
24222 fail:
24223 return NULL;
24224 }
24225
24226
24227 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24228 PyObject *resultobj = 0;
24229 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24230 int result;
24231 void *argp1 = 0 ;
24232 int res1 = 0 ;
24233 PyObject *swig_obj[1] ;
24234
24235 if (!args) SWIG_fail;
24236 swig_obj[0] = args;
24237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24238 if (!SWIG_IsOK(res1)) {
24239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24240 }
24241 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24242 result = (int)(int) ((arg1)->widthSash);
24243 resultobj = SWIG_From_int(static_cast< int >(result));
24244 return resultobj;
24245 fail:
24246 return NULL;
24247 }
24248
24249
24250 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24251 PyObject *resultobj = 0;
24252 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24253 int result;
24254 void *argp1 = 0 ;
24255 int res1 = 0 ;
24256 PyObject *swig_obj[1] ;
24257
24258 if (!args) SWIG_fail;
24259 swig_obj[0] = args;
24260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24261 if (!SWIG_IsOK(res1)) {
24262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24263 }
24264 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24265 result = (int)(int) ((arg1)->border);
24266 resultobj = SWIG_From_int(static_cast< int >(result));
24267 return resultobj;
24268 fail:
24269 return NULL;
24270 }
24271
24272
24273 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24274 PyObject *resultobj = 0;
24275 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24276 bool result;
24277 void *argp1 = 0 ;
24278 int res1 = 0 ;
24279 PyObject *swig_obj[1] ;
24280
24281 if (!args) SWIG_fail;
24282 swig_obj[0] = args;
24283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24284 if (!SWIG_IsOK(res1)) {
24285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24286 }
24287 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24288 result = (bool)(bool) ((arg1)->isHotSensitive);
24289 resultobj = SWIG_From_bool(static_cast< bool >(result));
24290 return resultobj;
24291 fail:
24292 return NULL;
24293 }
24294
24295
24296 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24297 PyObject *obj;
24298 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24299 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
24300 return SWIG_Py_Void();
24301 }
24302
24303 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24304 return SWIG_Python_InitShadowInstance(args);
24305 }
24306
24307 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24308 PyObject *resultobj = 0;
24309 int arg1 ;
24310 int arg2 ;
24311 wxRendererVersion *result = 0 ;
24312 int val1 ;
24313 int ecode1 = 0 ;
24314 int val2 ;
24315 int ecode2 = 0 ;
24316 PyObject * obj0 = 0 ;
24317 PyObject * obj1 = 0 ;
24318 char * kwnames[] = {
24319 (char *) "version_",(char *) "age_", NULL
24320 };
24321
24322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
24323 ecode1 = SWIG_AsVal_int(obj0, &val1);
24324 if (!SWIG_IsOK(ecode1)) {
24325 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
24326 }
24327 arg1 = static_cast< int >(val1);
24328 ecode2 = SWIG_AsVal_int(obj1, &val2);
24329 if (!SWIG_IsOK(ecode2)) {
24330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
24331 }
24332 arg2 = static_cast< int >(val2);
24333 {
24334 PyThreadState* __tstate = wxPyBeginAllowThreads();
24335 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
24336 wxPyEndAllowThreads(__tstate);
24337 if (PyErr_Occurred()) SWIG_fail;
24338 }
24339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
24340 return resultobj;
24341 fail:
24342 return NULL;
24343 }
24344
24345
24346 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24347 PyObject *resultobj = 0;
24348 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24349 void *argp1 = 0 ;
24350 int res1 = 0 ;
24351 PyObject *swig_obj[1] ;
24352
24353 if (!args) SWIG_fail;
24354 swig_obj[0] = args;
24355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
24356 if (!SWIG_IsOK(res1)) {
24357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24358 }
24359 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24360 {
24361 PyThreadState* __tstate = wxPyBeginAllowThreads();
24362 delete arg1;
24363
24364 wxPyEndAllowThreads(__tstate);
24365 if (PyErr_Occurred()) SWIG_fail;
24366 }
24367 resultobj = SWIG_Py_Void();
24368 return resultobj;
24369 fail:
24370 return NULL;
24371 }
24372
24373
24374 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24375 PyObject *resultobj = 0;
24376 wxRendererVersion *arg1 = 0 ;
24377 bool result;
24378 void *argp1 = 0 ;
24379 int res1 = 0 ;
24380 PyObject * obj0 = 0 ;
24381 char * kwnames[] = {
24382 (char *) "ver", NULL
24383 };
24384
24385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
24386 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
24387 if (!SWIG_IsOK(res1)) {
24388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24389 }
24390 if (!argp1) {
24391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24392 }
24393 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24394 {
24395 PyThreadState* __tstate = wxPyBeginAllowThreads();
24396 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
24397 wxPyEndAllowThreads(__tstate);
24398 if (PyErr_Occurred()) SWIG_fail;
24399 }
24400 {
24401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24402 }
24403 return resultobj;
24404 fail:
24405 return NULL;
24406 }
24407
24408
24409 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24410 PyObject *resultobj = 0;
24411 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24412 int result;
24413 void *argp1 = 0 ;
24414 int res1 = 0 ;
24415 PyObject *swig_obj[1] ;
24416
24417 if (!args) SWIG_fail;
24418 swig_obj[0] = args;
24419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24420 if (!SWIG_IsOK(res1)) {
24421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24422 }
24423 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24424 result = (int)(int) ((arg1)->version);
24425 resultobj = SWIG_From_int(static_cast< int >(result));
24426 return resultobj;
24427 fail:
24428 return NULL;
24429 }
24430
24431
24432 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24433 PyObject *resultobj = 0;
24434 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24435 int result;
24436 void *argp1 = 0 ;
24437 int res1 = 0 ;
24438 PyObject *swig_obj[1] ;
24439
24440 if (!args) SWIG_fail;
24441 swig_obj[0] = args;
24442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24443 if (!SWIG_IsOK(res1)) {
24444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24445 }
24446 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24447 result = (int)(int) ((arg1)->age);
24448 resultobj = SWIG_From_int(static_cast< int >(result));
24449 return resultobj;
24450 fail:
24451 return NULL;
24452 }
24453
24454
24455 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24456 PyObject *obj;
24457 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24458 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
24459 return SWIG_Py_Void();
24460 }
24461
24462 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24463 return SWIG_Python_InitShadowInstance(args);
24464 }
24465
24466 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24467 PyObject *resultobj = 0;
24468 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24469 wxWindow *arg2 = (wxWindow *) 0 ;
24470 wxDC *arg3 = 0 ;
24471 wxRect *arg4 = 0 ;
24472 int arg5 = (int) 0 ;
24473 void *argp1 = 0 ;
24474 int res1 = 0 ;
24475 void *argp2 = 0 ;
24476 int res2 = 0 ;
24477 void *argp3 = 0 ;
24478 int res3 = 0 ;
24479 wxRect temp4 ;
24480 int val5 ;
24481 int ecode5 = 0 ;
24482 PyObject * obj0 = 0 ;
24483 PyObject * obj1 = 0 ;
24484 PyObject * obj2 = 0 ;
24485 PyObject * obj3 = 0 ;
24486 PyObject * obj4 = 0 ;
24487 char * kwnames[] = {
24488 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24489 };
24490
24491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24493 if (!SWIG_IsOK(res1)) {
24494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24495 }
24496 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24497 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24498 if (!SWIG_IsOK(res2)) {
24499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24500 }
24501 arg2 = reinterpret_cast< wxWindow * >(argp2);
24502 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24503 if (!SWIG_IsOK(res3)) {
24504 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24505 }
24506 if (!argp3) {
24507 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24508 }
24509 arg3 = reinterpret_cast< wxDC * >(argp3);
24510 {
24511 arg4 = &temp4;
24512 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24513 }
24514 if (obj4) {
24515 ecode5 = SWIG_AsVal_int(obj4, &val5);
24516 if (!SWIG_IsOK(ecode5)) {
24517 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
24518 }
24519 arg5 = static_cast< int >(val5);
24520 }
24521 {
24522 PyThreadState* __tstate = wxPyBeginAllowThreads();
24523 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24524 wxPyEndAllowThreads(__tstate);
24525 if (PyErr_Occurred()) SWIG_fail;
24526 }
24527 resultobj = SWIG_Py_Void();
24528 return resultobj;
24529 fail:
24530 return NULL;
24531 }
24532
24533
24534 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24535 PyObject *resultobj = 0;
24536 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24537 wxWindow *arg2 = (wxWindow *) 0 ;
24538 wxDC *arg3 = 0 ;
24539 wxRect *arg4 = 0 ;
24540 int arg5 = (int) 0 ;
24541 void *argp1 = 0 ;
24542 int res1 = 0 ;
24543 void *argp2 = 0 ;
24544 int res2 = 0 ;
24545 void *argp3 = 0 ;
24546 int res3 = 0 ;
24547 wxRect temp4 ;
24548 int val5 ;
24549 int ecode5 = 0 ;
24550 PyObject * obj0 = 0 ;
24551 PyObject * obj1 = 0 ;
24552 PyObject * obj2 = 0 ;
24553 PyObject * obj3 = 0 ;
24554 PyObject * obj4 = 0 ;
24555 char * kwnames[] = {
24556 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24557 };
24558
24559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24561 if (!SWIG_IsOK(res1)) {
24562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24563 }
24564 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24565 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24566 if (!SWIG_IsOK(res2)) {
24567 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24568 }
24569 arg2 = reinterpret_cast< wxWindow * >(argp2);
24570 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24571 if (!SWIG_IsOK(res3)) {
24572 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24573 }
24574 if (!argp3) {
24575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24576 }
24577 arg3 = reinterpret_cast< wxDC * >(argp3);
24578 {
24579 arg4 = &temp4;
24580 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24581 }
24582 if (obj4) {
24583 ecode5 = SWIG_AsVal_int(obj4, &val5);
24584 if (!SWIG_IsOK(ecode5)) {
24585 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
24586 }
24587 arg5 = static_cast< int >(val5);
24588 }
24589 {
24590 PyThreadState* __tstate = wxPyBeginAllowThreads();
24591 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24592 wxPyEndAllowThreads(__tstate);
24593 if (PyErr_Occurred()) SWIG_fail;
24594 }
24595 resultobj = SWIG_Py_Void();
24596 return resultobj;
24597 fail:
24598 return NULL;
24599 }
24600
24601
24602 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24603 PyObject *resultobj = 0;
24604 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24605 wxWindow *arg2 = (wxWindow *) 0 ;
24606 wxDC *arg3 = 0 ;
24607 wxRect *arg4 = 0 ;
24608 int arg5 = (int) 0 ;
24609 void *argp1 = 0 ;
24610 int res1 = 0 ;
24611 void *argp2 = 0 ;
24612 int res2 = 0 ;
24613 void *argp3 = 0 ;
24614 int res3 = 0 ;
24615 wxRect temp4 ;
24616 int val5 ;
24617 int ecode5 = 0 ;
24618 PyObject * obj0 = 0 ;
24619 PyObject * obj1 = 0 ;
24620 PyObject * obj2 = 0 ;
24621 PyObject * obj3 = 0 ;
24622 PyObject * obj4 = 0 ;
24623 char * kwnames[] = {
24624 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24625 };
24626
24627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24629 if (!SWIG_IsOK(res1)) {
24630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24631 }
24632 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24633 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24634 if (!SWIG_IsOK(res2)) {
24635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
24636 }
24637 arg2 = reinterpret_cast< wxWindow * >(argp2);
24638 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24639 if (!SWIG_IsOK(res3)) {
24640 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24641 }
24642 if (!argp3) {
24643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24644 }
24645 arg3 = reinterpret_cast< wxDC * >(argp3);
24646 {
24647 arg4 = &temp4;
24648 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24649 }
24650 if (obj4) {
24651 ecode5 = SWIG_AsVal_int(obj4, &val5);
24652 if (!SWIG_IsOK(ecode5)) {
24653 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
24654 }
24655 arg5 = static_cast< int >(val5);
24656 }
24657 {
24658 PyThreadState* __tstate = wxPyBeginAllowThreads();
24659 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
24660 wxPyEndAllowThreads(__tstate);
24661 if (PyErr_Occurred()) SWIG_fail;
24662 }
24663 resultobj = SWIG_Py_Void();
24664 return resultobj;
24665 fail:
24666 return NULL;
24667 }
24668
24669
24670 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24671 PyObject *resultobj = 0;
24672 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24673 wxWindow *arg2 = (wxWindow *) 0 ;
24674 wxDC *arg3 = 0 ;
24675 wxSize *arg4 = 0 ;
24676 int arg5 ;
24677 wxOrientation arg6 ;
24678 int arg7 = (int) 0 ;
24679 void *argp1 = 0 ;
24680 int res1 = 0 ;
24681 void *argp2 = 0 ;
24682 int res2 = 0 ;
24683 void *argp3 = 0 ;
24684 int res3 = 0 ;
24685 wxSize temp4 ;
24686 int val5 ;
24687 int ecode5 = 0 ;
24688 int val6 ;
24689 int ecode6 = 0 ;
24690 int val7 ;
24691 int ecode7 = 0 ;
24692 PyObject * obj0 = 0 ;
24693 PyObject * obj1 = 0 ;
24694 PyObject * obj2 = 0 ;
24695 PyObject * obj3 = 0 ;
24696 PyObject * obj4 = 0 ;
24697 PyObject * obj5 = 0 ;
24698 PyObject * obj6 = 0 ;
24699 char * kwnames[] = {
24700 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
24701 };
24702
24703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24705 if (!SWIG_IsOK(res1)) {
24706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24707 }
24708 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24709 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24710 if (!SWIG_IsOK(res2)) {
24711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
24712 }
24713 arg2 = reinterpret_cast< wxWindow * >(argp2);
24714 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24715 if (!SWIG_IsOK(res3)) {
24716 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24717 }
24718 if (!argp3) {
24719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24720 }
24721 arg3 = reinterpret_cast< wxDC * >(argp3);
24722 {
24723 arg4 = &temp4;
24724 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24725 }
24726 ecode5 = SWIG_AsVal_int(obj4, &val5);
24727 if (!SWIG_IsOK(ecode5)) {
24728 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
24729 }
24730 arg5 = static_cast< int >(val5);
24731 ecode6 = SWIG_AsVal_int(obj5, &val6);
24732 if (!SWIG_IsOK(ecode6)) {
24733 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
24734 }
24735 arg6 = static_cast< wxOrientation >(val6);
24736 if (obj6) {
24737 ecode7 = SWIG_AsVal_int(obj6, &val7);
24738 if (!SWIG_IsOK(ecode7)) {
24739 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
24740 }
24741 arg7 = static_cast< int >(val7);
24742 }
24743 {
24744 PyThreadState* __tstate = wxPyBeginAllowThreads();
24745 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
24746 wxPyEndAllowThreads(__tstate);
24747 if (PyErr_Occurred()) SWIG_fail;
24748 }
24749 resultobj = SWIG_Py_Void();
24750 return resultobj;
24751 fail:
24752 return NULL;
24753 }
24754
24755
24756 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24757 PyObject *resultobj = 0;
24758 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24759 wxWindow *arg2 = (wxWindow *) 0 ;
24760 wxDC *arg3 = 0 ;
24761 wxRect *arg4 = 0 ;
24762 int arg5 = (int) 0 ;
24763 void *argp1 = 0 ;
24764 int res1 = 0 ;
24765 void *argp2 = 0 ;
24766 int res2 = 0 ;
24767 void *argp3 = 0 ;
24768 int res3 = 0 ;
24769 wxRect temp4 ;
24770 int val5 ;
24771 int ecode5 = 0 ;
24772 PyObject * obj0 = 0 ;
24773 PyObject * obj1 = 0 ;
24774 PyObject * obj2 = 0 ;
24775 PyObject * obj3 = 0 ;
24776 PyObject * obj4 = 0 ;
24777 char * kwnames[] = {
24778 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24779 };
24780
24781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24783 if (!SWIG_IsOK(res1)) {
24784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24785 }
24786 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24787 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24788 if (!SWIG_IsOK(res2)) {
24789 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24790 }
24791 arg2 = reinterpret_cast< wxWindow * >(argp2);
24792 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24793 if (!SWIG_IsOK(res3)) {
24794 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24795 }
24796 if (!argp3) {
24797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24798 }
24799 arg3 = reinterpret_cast< wxDC * >(argp3);
24800 {
24801 arg4 = &temp4;
24802 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24803 }
24804 if (obj4) {
24805 ecode5 = SWIG_AsVal_int(obj4, &val5);
24806 if (!SWIG_IsOK(ecode5)) {
24807 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
24808 }
24809 arg5 = static_cast< int >(val5);
24810 }
24811 {
24812 PyThreadState* __tstate = wxPyBeginAllowThreads();
24813 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24814 wxPyEndAllowThreads(__tstate);
24815 if (PyErr_Occurred()) SWIG_fail;
24816 }
24817 resultobj = SWIG_Py_Void();
24818 return resultobj;
24819 fail:
24820 return NULL;
24821 }
24822
24823
24824 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24825 PyObject *resultobj = 0;
24826 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24827 wxWindow *arg2 = (wxWindow *) 0 ;
24828 wxDC *arg3 = 0 ;
24829 wxRect *arg4 = 0 ;
24830 int arg5 = (int) 0 ;
24831 void *argp1 = 0 ;
24832 int res1 = 0 ;
24833 void *argp2 = 0 ;
24834 int res2 = 0 ;
24835 void *argp3 = 0 ;
24836 int res3 = 0 ;
24837 wxRect temp4 ;
24838 int val5 ;
24839 int ecode5 = 0 ;
24840 PyObject * obj0 = 0 ;
24841 PyObject * obj1 = 0 ;
24842 PyObject * obj2 = 0 ;
24843 PyObject * obj3 = 0 ;
24844 PyObject * obj4 = 0 ;
24845 char * kwnames[] = {
24846 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24847 };
24848
24849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24851 if (!SWIG_IsOK(res1)) {
24852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24853 }
24854 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24855 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24856 if (!SWIG_IsOK(res2)) {
24857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
24858 }
24859 arg2 = reinterpret_cast< wxWindow * >(argp2);
24860 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24861 if (!SWIG_IsOK(res3)) {
24862 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24863 }
24864 if (!argp3) {
24865 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24866 }
24867 arg3 = reinterpret_cast< wxDC * >(argp3);
24868 {
24869 arg4 = &temp4;
24870 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24871 }
24872 if (obj4) {
24873 ecode5 = SWIG_AsVal_int(obj4, &val5);
24874 if (!SWIG_IsOK(ecode5)) {
24875 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
24876 }
24877 arg5 = static_cast< int >(val5);
24878 }
24879 {
24880 PyThreadState* __tstate = wxPyBeginAllowThreads();
24881 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
24882 wxPyEndAllowThreads(__tstate);
24883 if (PyErr_Occurred()) SWIG_fail;
24884 }
24885 resultobj = SWIG_Py_Void();
24886 return resultobj;
24887 fail:
24888 return NULL;
24889 }
24890
24891
24892 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24893 PyObject *resultobj = 0;
24894 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24895 wxWindow *arg2 = (wxWindow *) 0 ;
24896 SwigValueWrapper<wxSplitterRenderParams > result;
24897 void *argp1 = 0 ;
24898 int res1 = 0 ;
24899 void *argp2 = 0 ;
24900 int res2 = 0 ;
24901 PyObject * obj0 = 0 ;
24902 PyObject * obj1 = 0 ;
24903 char * kwnames[] = {
24904 (char *) "self",(char *) "win", NULL
24905 };
24906
24907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
24908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24909 if (!SWIG_IsOK(res1)) {
24910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24911 }
24912 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24913 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24914 if (!SWIG_IsOK(res2)) {
24915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
24916 }
24917 arg2 = reinterpret_cast< wxWindow * >(argp2);
24918 {
24919 PyThreadState* __tstate = wxPyBeginAllowThreads();
24920 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
24921 wxPyEndAllowThreads(__tstate);
24922 if (PyErr_Occurred()) SWIG_fail;
24923 }
24924 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
24925 return resultobj;
24926 fail:
24927 return NULL;
24928 }
24929
24930
24931 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24932 PyObject *resultobj = 0;
24933 wxRendererNative *result = 0 ;
24934
24935 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
24936 {
24937 PyThreadState* __tstate = wxPyBeginAllowThreads();
24938 {
24939 wxRendererNative &_result_ref = wxRendererNative::Get();
24940 result = (wxRendererNative *) &_result_ref;
24941 }
24942 wxPyEndAllowThreads(__tstate);
24943 if (PyErr_Occurred()) SWIG_fail;
24944 }
24945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24946 return resultobj;
24947 fail:
24948 return NULL;
24949 }
24950
24951
24952 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24953 PyObject *resultobj = 0;
24954 wxRendererNative *result = 0 ;
24955
24956 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
24957 {
24958 PyThreadState* __tstate = wxPyBeginAllowThreads();
24959 {
24960 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
24961 result = (wxRendererNative *) &_result_ref;
24962 }
24963 wxPyEndAllowThreads(__tstate);
24964 if (PyErr_Occurred()) SWIG_fail;
24965 }
24966 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24967 return resultobj;
24968 fail:
24969 return NULL;
24970 }
24971
24972
24973 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24974 PyObject *resultobj = 0;
24975 wxRendererNative *result = 0 ;
24976
24977 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
24978 {
24979 PyThreadState* __tstate = wxPyBeginAllowThreads();
24980 {
24981 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
24982 result = (wxRendererNative *) &_result_ref;
24983 }
24984 wxPyEndAllowThreads(__tstate);
24985 if (PyErr_Occurred()) SWIG_fail;
24986 }
24987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24988 return resultobj;
24989 fail:
24990 return NULL;
24991 }
24992
24993
24994 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24995 PyObject *resultobj = 0;
24996 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24997 wxRendererNative *result = 0 ;
24998 void *argp1 = 0 ;
24999 int res1 = 0 ;
25000 PyObject * obj0 = 0 ;
25001 char * kwnames[] = {
25002 (char *) "renderer", NULL
25003 };
25004
25005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
25006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25007 if (!SWIG_IsOK(res1)) {
25008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25009 }
25010 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25011 {
25012 PyThreadState* __tstate = wxPyBeginAllowThreads();
25013 result = (wxRendererNative *)wxRendererNative::Set(arg1);
25014 wxPyEndAllowThreads(__tstate);
25015 if (PyErr_Occurred()) SWIG_fail;
25016 }
25017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25018 return resultobj;
25019 fail:
25020 return NULL;
25021 }
25022
25023
25024 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25025 PyObject *resultobj = 0;
25026 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25027 SwigValueWrapper<wxRendererVersion > result;
25028 void *argp1 = 0 ;
25029 int res1 = 0 ;
25030 PyObject *swig_obj[1] ;
25031
25032 if (!args) SWIG_fail;
25033 swig_obj[0] = args;
25034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25035 if (!SWIG_IsOK(res1)) {
25036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
25037 }
25038 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25039 {
25040 PyThreadState* __tstate = wxPyBeginAllowThreads();
25041 result = ((wxRendererNative const *)arg1)->GetVersion();
25042 wxPyEndAllowThreads(__tstate);
25043 if (PyErr_Occurred()) SWIG_fail;
25044 }
25045 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
25046 return resultobj;
25047 fail:
25048 return NULL;
25049 }
25050
25051
25052 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25053 PyObject *obj;
25054 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25055 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
25056 return SWIG_Py_Void();
25057 }
25058
25059 static PyMethodDef SwigMethods[] = {
25060 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
25061 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
25062 { (char *)"GDIObject_GetVisible", (PyCFunction)_wrap_GDIObject_GetVisible, METH_O, NULL},
25063 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL},
25064 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
25065 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
25066 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
25067 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
25068 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
25069 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25070 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
25071 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
25072 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
25073 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
25074 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
25075 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25076 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25077 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
25078 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
25079 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25080 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25081 { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL},
25082 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
25083 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
25084 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
25085 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
25086 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
25087 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
25088 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25089 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
25090 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
25091 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
25092 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
25093 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
25094 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
25095 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
25096 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
25097 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
25098 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
25099 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
25100 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
25101 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
25102 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25103 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
25104 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25105 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25106 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
25107 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
25108 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
25109 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25110 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25111 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
25112 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
25113 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
25114 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25115 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
25116 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25117 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25118 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
25119 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
25120 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
25121 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
25122 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
25123 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
25124 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
25125 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
25126 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
25127 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
25128 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25129 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
25130 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25131 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25132 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
25133 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
25134 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
25135 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
25136 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
25137 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
25138 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
25139 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
25140 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
25141 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
25142 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
25143 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
25144 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25145 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
25146 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
25147 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
25148 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25149 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25150 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25151 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25152 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25153 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25154 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25155 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
25156 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
25157 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
25158 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
25159 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
25160 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
25161 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
25162 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
25163 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
25164 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
25165 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25166 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
25167 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
25168 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
25169 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
25170 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
25171 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25172 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25173 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25174 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25175 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
25176 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
25177 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
25178 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
25179 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
25180 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
25181 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
25182 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
25183 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
25184 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
25185 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
25186 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
25187 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
25188 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25189 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
25190 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25191 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
25192 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25193 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
25194 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
25195 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
25196 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
25197 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25198 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
25199 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
25200 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
25201 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
25202 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
25203 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25204 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25205 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
25206 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
25207 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
25208 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
25209 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
25210 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25211 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
25212 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
25213 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
25214 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
25215 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
25216 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25217 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
25218 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
25219 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
25220 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25221 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
25222 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
25223 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25224 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
25225 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
25226 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25227 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
25228 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25229 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25230 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
25231 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
25232 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
25233 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
25234 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
25235 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
25236 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
25237 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
25238 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
25239 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
25240 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
25241 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
25242 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
25243 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
25244 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
25245 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
25246 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
25247 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
25248 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
25249 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
25250 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
25251 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
25252 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
25253 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
25254 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
25255 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
25256 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
25257 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
25258 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25259 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25260 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
25261 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
25262 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
25263 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
25264 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25265 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
25266 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
25267 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
25268 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
25269 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
25270 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
25271 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
25272 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
25273 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
25274 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
25275 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
25276 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
25277 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
25278 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
25279 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
25280 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
25281 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
25282 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25283 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25284 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
25285 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
25286 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
25287 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25288 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25289 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
25290 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25291 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
25292 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
25293 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
25294 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
25295 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
25296 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25297 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
25298 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
25299 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
25300 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
25301 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
25302 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
25303 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
25304 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25305 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
25306 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
25307 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25308 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25309 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
25310 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25311 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25312 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
25313 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
25314 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
25315 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
25316 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
25317 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
25318 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
25319 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
25320 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
25321 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
25322 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
25323 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
25324 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
25325 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25326 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25327 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
25328 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25329 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
25330 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
25331 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
25332 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25333 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25334 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
25335 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
25336 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
25337 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
25338 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
25339 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
25340 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
25341 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
25342 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25343 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
25344 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
25345 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
25346 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
25347 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25348 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
25349 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
25350 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_O, NULL},
25351 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_O, NULL},
25352 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
25353 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
25354 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
25355 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
25356 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
25357 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
25358 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
25359 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
25360 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
25361 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
25362 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
25363 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
25364 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
25365 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
25366 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
25367 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
25368 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
25369 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
25370 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
25371 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
25372 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
25373 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
25374 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
25375 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
25376 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25377 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
25378 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25379 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
25380 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
25381 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
25382 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
25383 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
25384 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
25385 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
25386 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
25387 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
25388 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
25389 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
25390 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
25391 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
25392 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
25393 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
25394 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
25395 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
25396 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
25397 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25398 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
25399 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
25400 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
25401 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25402 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
25403 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
25404 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
25405 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25406 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
25407 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25408 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
25409 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
25410 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
25411 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25412 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25413 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25414 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
25415 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
25416 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25417 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
25418 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
25419 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25420 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
25421 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
25422 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
25423 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
25424 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25425 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25426 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25427 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25428 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25429 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
25430 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25431 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
25432 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25433 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
25434 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25435 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25436 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25437 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25438 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
25439 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
25440 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
25441 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
25442 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
25443 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
25444 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
25445 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
25446 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
25447 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
25448 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
25449 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
25450 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
25451 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25452 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
25453 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
25454 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
25455 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
25456 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
25457 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
25458 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
25459 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
25460 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25461 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25462 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25463 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
25464 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
25465 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
25466 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
25467 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
25468 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
25469 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
25470 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
25471 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
25472 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
25473 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
25474 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
25475 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
25476 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
25477 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
25478 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
25479 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
25480 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
25481 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
25482 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
25483 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
25484 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
25485 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
25486 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
25487 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
25488 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
25489 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
25490 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
25491 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
25492 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
25493 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
25494 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
25495 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
25496 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
25497 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
25498 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
25499 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25500 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
25501 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
25502 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
25503 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25504 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
25505 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
25506 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
25507 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
25508 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
25509 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25510 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
25511 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
25512 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
25513 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
25514 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
25515 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
25516 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
25517 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
25518 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
25519 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
25520 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
25521 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
25522 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
25523 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
25524 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
25525 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
25526 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
25527 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
25528 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
25529 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
25530 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
25531 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
25532 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
25533 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
25534 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
25535 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
25536 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
25537 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
25538 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
25539 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
25540 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
25541 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
25542 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
25543 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
25544 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
25545 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
25546 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
25547 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
25548 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
25549 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
25550 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
25551 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
25552 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
25553 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
25554 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
25555 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
25556 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
25557 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
25558 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
25559 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
25560 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
25561 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
25562 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
25563 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
25564 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
25565 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
25566 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
25567 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
25568 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
25569 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
25570 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
25571 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
25572 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
25573 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
25574 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
25575 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
25576 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
25577 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
25578 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
25579 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
25580 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
25581 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25582 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25583 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25584 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
25585 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
25586 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
25587 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
25588 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
25589 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25590 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
25591 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
25592 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
25593 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
25594 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
25595 { (char *)"PenList_GetCount", (PyCFunction)_wrap_PenList_GetCount, METH_O, NULL},
25596 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
25597 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25598 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25599 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25600 { (char *)"BrushList_GetCount", (PyCFunction)_wrap_BrushList_GetCount, METH_O, NULL},
25601 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
25602 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
25603 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
25604 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
25605 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
25606 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
25607 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
25608 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
25609 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
25610 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
25611 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
25612 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
25613 { (char *)"FontList_GetCount", (PyCFunction)_wrap_FontList_GetCount, METH_O, NULL},
25614 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
25615 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
25616 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
25617 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
25618 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
25619 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
25620 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
25621 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
25622 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25623 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
25624 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25625 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25626 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25627 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
25628 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25629 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
25630 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
25631 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
25632 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
25633 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
25634 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
25635 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
25636 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
25637 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
25638 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
25639 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
25640 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
25641 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
25642 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
25643 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
25644 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
25645 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
25646 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
25647 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
25648 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
25649 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
25650 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
25651 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
25652 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
25653 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
25654 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
25655 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25656 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
25657 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
25658 { NULL, NULL, 0, NULL }
25659 };
25660
25661
25662 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
25663
25664 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
25665 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
25666 }
25667 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
25668 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
25669 }
25670 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
25671 return (void *)((wxGDIObject *) ((wxIcon *) x));
25672 }
25673 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
25674 return (void *)((wxGDIObject *) ((wxPalette *) x));
25675 }
25676 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
25677 return (void *)((wxGDIObject *) ((wxPen *) x));
25678 }
25679 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
25680 return (void *)((wxGDIObject *) ((wxFont *) x));
25681 }
25682 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
25683 return (void *)((wxGDIObject *) ((wxCursor *) x));
25684 }
25685 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
25686 return (void *)((wxGDIObject *) ((wxBitmap *) x));
25687 }
25688 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
25689 return (void *)((wxGDIObject *) ((wxRegion *) x));
25690 }
25691 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
25692 return (void *)((wxGDIObject *) ((wxBrush *) x));
25693 }
25694 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
25695 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
25696 }
25697 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
25698 return (void *)((wxDC *) ((wxScreenDC *) x));
25699 }
25700 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
25701 return (void *)((wxDC *) ((wxMirrorDC *) x));
25702 }
25703 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
25704 return (void *)((wxDC *) ((wxMemoryDC *) x));
25705 }
25706 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
25707 return (void *)((wxDC *) ((wxWindowDC *) x));
25708 }
25709 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
25710 return (void *)((wxDC *) ((wxMetaFileDC *) x));
25711 }
25712 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
25713 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
25714 }
25715 static void *_p_wxClientDCTo_p_wxDC(void *x) {
25716 return (void *)((wxDC *) ((wxClientDC *) x));
25717 }
25718 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
25719 return (void *)((wxDC *) ((wxPaintDC *) x));
25720 }
25721 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
25722 return (void *)((wxDC *) ((wxPostScriptDC *) x));
25723 }
25724 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
25725 return (void *)((wxDC *) ((wxPrinterDC *) x));
25726 }
25727 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
25728 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
25729 }
25730 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
25731 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
25732 }
25733 static void *_p_wxPenTo_p_wxObject(void *x) {
25734 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
25735 }
25736 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
25737 return (void *)((wxObject *) ((wxRegionIterator *) x));
25738 }
25739 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
25740 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
25741 }
25742 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
25743 return (void *)((wxObject *) ((wxSizerItem *) x));
25744 }
25745 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
25746 return (void *)((wxObject *) ((wxColourDatabase *) x));
25747 }
25748 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
25749 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
25750 }
25751 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
25752 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
25753 }
25754 static void *_p_wxIconTo_p_wxObject(void *x) {
25755 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
25756 }
25757 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
25758 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
25759 }
25760 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
25761 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
25762 }
25763 static void *_p_wxSizerTo_p_wxObject(void *x) {
25764 return (void *)((wxObject *) ((wxSizer *) x));
25765 }
25766 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
25767 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
25768 }
25769 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
25770 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
25771 }
25772 static void *_p_wxPenListTo_p_wxObject(void *x) {
25773 return (void *)((wxObject *) ((wxPenList *) x));
25774 }
25775 static void *_p_wxEventTo_p_wxObject(void *x) {
25776 return (void *)((wxObject *) ((wxEvent *) x));
25777 }
25778 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
25779 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
25780 }
25781 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
25782 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
25783 }
25784 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
25785 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
25786 }
25787 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
25788 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
25789 }
25790 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
25791 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
25792 }
25793 static void *_p_wxDCTo_p_wxObject(void *x) {
25794 return (void *)((wxObject *) ((wxDC *) x));
25795 }
25796 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
25797 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
25798 }
25799 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
25800 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
25801 }
25802 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
25803 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
25804 }
25805 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
25806 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
25807 }
25808 static void *_p_wxControlTo_p_wxObject(void *x) {
25809 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
25810 }
25811 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
25812 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
25813 }
25814 static void *_p_wxClientDCTo_p_wxObject(void *x) {
25815 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
25816 }
25817 static void *_p_wxFSFileTo_p_wxObject(void *x) {
25818 return (void *)((wxObject *) ((wxFSFile *) x));
25819 }
25820 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
25821 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
25822 }
25823 static void *_p_wxRegionTo_p_wxObject(void *x) {
25824 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
25825 }
25826 static void *_p_wxPySizerTo_p_wxObject(void *x) {
25827 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
25828 }
25829 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
25830 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
25831 }
25832 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
25833 return (void *)((wxObject *) ((wxGDIObject *) x));
25834 }
25835 static void *_p_wxEffectsTo_p_wxObject(void *x) {
25836 return (void *)((wxObject *) ((wxEffects *) x));
25837 }
25838 static void *_p_wxPyEventTo_p_wxObject(void *x) {
25839 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
25840 }
25841 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
25842 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
25843 }
25844 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
25845 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
25846 }
25847 static void *_p_wxShowEventTo_p_wxObject(void *x) {
25848 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
25849 }
25850 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
25851 return (void *)((wxObject *) ((wxMenuItem *) x));
25852 }
25853 static void *_p_wxDateEventTo_p_wxObject(void *x) {
25854 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
25855 }
25856 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
25857 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
25858 }
25859 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
25860 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
25861 }
25862 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
25863 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
25864 }
25865 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
25866 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
25867 }
25868 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
25869 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
25870 }
25871 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
25872 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
25873 }
25874 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
25875 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
25876 }
25877 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
25878 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
25879 }
25880 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
25881 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
25882 }
25883 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
25884 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
25885 }
25886 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
25887 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
25888 }
25889 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
25890 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
25891 }
25892 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
25893 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
25894 }
25895 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
25896 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
25897 }
25898 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
25899 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
25900 }
25901 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
25902 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
25903 }
25904 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
25905 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
25906 }
25907 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
25908 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
25909 }
25910 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
25911 return (void *)((wxObject *) ((wxImageHandler *) x));
25912 }
25913 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
25914 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
25915 }
25916 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
25917 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
25918 }
25919 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
25920 return (void *)((wxObject *) ((wxEvtHandler *) x));
25921 }
25922 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
25923 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
25924 }
25925 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
25926 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
25927 }
25928 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
25929 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
25930 }
25931 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
25932 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
25933 }
25934 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
25935 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
25936 }
25937 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
25938 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
25939 }
25940 static void *_p_wxImageTo_p_wxObject(void *x) {
25941 return (void *)((wxObject *) ((wxImage *) x));
25942 }
25943 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
25944 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
25945 }
25946 static void *_p_wxPaletteTo_p_wxObject(void *x) {
25947 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
25948 }
25949 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
25950 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
25951 }
25952 static void *_p_wxImageListTo_p_wxObject(void *x) {
25953 return (void *)((wxObject *) ((wxImageList *) x));
25954 }
25955 static void *_p_wxCursorTo_p_wxObject(void *x) {
25956 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
25957 }
25958 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
25959 return (void *)((wxObject *) ((wxEncodingConverter *) x));
25960 }
25961 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
25962 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
25963 }
25964 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
25965 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
25966 }
25967 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
25968 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
25969 }
25970 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
25971 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
25972 }
25973 static void *_p_wxWindowTo_p_wxObject(void *x) {
25974 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
25975 }
25976 static void *_p_wxMenuTo_p_wxObject(void *x) {
25977 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
25978 }
25979 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
25980 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
25981 }
25982 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
25983 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
25984 }
25985 static void *_p_wxBrushListTo_p_wxObject(void *x) {
25986 return (void *)((wxObject *) ((wxBrushList *) x));
25987 }
25988 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
25989 return (void *)((wxObject *) ((wxFileSystem *) x));
25990 }
25991 static void *_p_wxBitmapTo_p_wxObject(void *x) {
25992 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
25993 }
25994 static void *_p_wxMaskTo_p_wxObject(void *x) {
25995 return (void *)((wxObject *) ((wxMask *) x));
25996 }
25997 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
25998 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
25999 }
26000 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
26001 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
26002 }
26003 static void *_p_wxPyAppTo_p_wxObject(void *x) {
26004 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
26005 }
26006 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
26007 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
26008 }
26009 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
26010 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
26011 }
26012 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
26013 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
26014 }
26015 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
26016 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
26017 }
26018 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
26019 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
26020 }
26021 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
26022 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
26023 }
26024 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
26025 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
26026 }
26027 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
26028 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
26029 }
26030 static void *_p_wxFontTo_p_wxObject(void *x) {
26031 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
26032 }
26033 static void *_p_wxBrushTo_p_wxObject(void *x) {
26034 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
26035 }
26036 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
26037 return (void *)((wxObject *) ((wxMetaFile *) x));
26038 }
26039 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
26040 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
26041 }
26042 static void *_p_wxColourTo_p_wxObject(void *x) {
26043 return (void *)((wxObject *) ((wxColour *) x));
26044 }
26045 static void *_p_wxFontListTo_p_wxObject(void *x) {
26046 return (void *)((wxObject *) ((wxFontList *) x));
26047 }
26048 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
26049 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
26050 }
26051 static void *_p_wxValidatorTo_p_wxObject(void *x) {
26052 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
26053 }
26054 static void *_p_wxControlTo_p_wxWindow(void *x) {
26055 return (void *)((wxWindow *) ((wxControl *) x));
26056 }
26057 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
26058 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
26059 }
26060 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
26061 return (void *)((wxWindow *) ((wxMenuBar *) x));
26062 }
26063 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
26064 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
26065 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};
26066 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
26067 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
26068 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
26069 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
26070 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
26071 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
26072 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
26073 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
26074 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
26075 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
26076 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
26077 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
26078 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
26079 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
26080 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
26081 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
26082 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
26083 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
26084 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
26085 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
26086 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
26087 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
26088 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
26089 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
26090 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
26091 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
26092 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
26093 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
26094 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
26095 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
26096 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
26097 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
26098 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
26099 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
26100 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
26101 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
26102 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
26103 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
26104 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
26105 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
26106 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
26107 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
26108 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
26109 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
26110 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
26111 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
26112 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
26113 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
26114 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
26115 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
26116 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
26117 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
26118 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
26119 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
26120 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
26121 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
26122 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
26123 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
26124 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
26125 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
26126 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
26127 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
26128 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
26129 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
26130 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
26131 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
26132 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
26133 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
26134 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
26135 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
26136 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
26137 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
26138 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
26139 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
26140 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
26141 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
26142 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
26143 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
26144 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
26145 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
26146 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
26147 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
26148 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
26149 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
26150 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
26151 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
26152 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
26153 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
26154 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
26155 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
26156 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
26157 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
26158 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
26159 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
26160 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
26161 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
26162 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
26163 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
26164 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
26165 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
26166 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
26167 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
26168 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
26169 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
26170 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
26171 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
26172 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
26173 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
26174 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
26175 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
26176 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
26177 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
26178 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
26179 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
26180 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
26181 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
26182 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
26183 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
26184 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
26185 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
26186 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
26187 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
26188 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
26189 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
26190 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
26191 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
26192 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
26193 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
26194 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
26195 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
26196 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
26197 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
26198
26199 static swig_type_info *swig_type_initial[] = {
26200 &_swigt__p_char,
26201 &_swigt__p_double,
26202 &_swigt__p_form_ops_t,
26203 &_swigt__p_int,
26204 &_swigt__p_unsigned_char,
26205 &_swigt__p_unsigned_int,
26206 &_swigt__p_unsigned_long,
26207 &_swigt__p_wxANIHandler,
26208 &_swigt__p_wxAcceleratorTable,
26209 &_swigt__p_wxActivateEvent,
26210 &_swigt__p_wxBMPHandler,
26211 &_swigt__p_wxBitmap,
26212 &_swigt__p_wxBoxSizer,
26213 &_swigt__p_wxBrush,
26214 &_swigt__p_wxBrushList,
26215 &_swigt__p_wxBufferedDC,
26216 &_swigt__p_wxBufferedPaintDC,
26217 &_swigt__p_wxCURHandler,
26218 &_swigt__p_wxChildFocusEvent,
26219 &_swigt__p_wxClientDC,
26220 &_swigt__p_wxCloseEvent,
26221 &_swigt__p_wxColour,
26222 &_swigt__p_wxColourDatabase,
26223 &_swigt__p_wxCommandEvent,
26224 &_swigt__p_wxContextMenuEvent,
26225 &_swigt__p_wxControl,
26226 &_swigt__p_wxControlWithItems,
26227 &_swigt__p_wxCursor,
26228 &_swigt__p_wxDC,
26229 &_swigt__p_wxDash,
26230 &_swigt__p_wxDateEvent,
26231 &_swigt__p_wxDisplayChangedEvent,
26232 &_swigt__p_wxDropFilesEvent,
26233 &_swigt__p_wxDuplexMode,
26234 &_swigt__p_wxEffects,
26235 &_swigt__p_wxEncodingConverter,
26236 &_swigt__p_wxEraseEvent,
26237 &_swigt__p_wxEvent,
26238 &_swigt__p_wxEvtHandler,
26239 &_swigt__p_wxFSFile,
26240 &_swigt__p_wxFileSystem,
26241 &_swigt__p_wxFlexGridSizer,
26242 &_swigt__p_wxFocusEvent,
26243 &_swigt__p_wxFont,
26244 &_swigt__p_wxFontList,
26245 &_swigt__p_wxFontMapper,
26246 &_swigt__p_wxGBSizerItem,
26247 &_swigt__p_wxGDIObject,
26248 &_swigt__p_wxGIFHandler,
26249 &_swigt__p_wxGridBagSizer,
26250 &_swigt__p_wxGridSizer,
26251 &_swigt__p_wxICOHandler,
26252 &_swigt__p_wxIcon,
26253 &_swigt__p_wxIconBundle,
26254 &_swigt__p_wxIconLocation,
26255 &_swigt__p_wxIconizeEvent,
26256 &_swigt__p_wxIdleEvent,
26257 &_swigt__p_wxImage,
26258 &_swigt__p_wxImageHandler,
26259 &_swigt__p_wxImageList,
26260 &_swigt__p_wxIndividualLayoutConstraint,
26261 &_swigt__p_wxInitDialogEvent,
26262 &_swigt__p_wxJPEGHandler,
26263 &_swigt__p_wxKeyEvent,
26264 &_swigt__p_wxLanguageInfo,
26265 &_swigt__p_wxLayoutConstraints,
26266 &_swigt__p_wxLocale,
26267 &_swigt__p_wxMask,
26268 &_swigt__p_wxMaximizeEvent,
26269 &_swigt__p_wxMemoryDC,
26270 &_swigt__p_wxMenu,
26271 &_swigt__p_wxMenuBar,
26272 &_swigt__p_wxMenuEvent,
26273 &_swigt__p_wxMenuItem,
26274 &_swigt__p_wxMetaFile,
26275 &_swigt__p_wxMetaFileDC,
26276 &_swigt__p_wxMirrorDC,
26277 &_swigt__p_wxMouseCaptureChangedEvent,
26278 &_swigt__p_wxMouseEvent,
26279 &_swigt__p_wxMoveEvent,
26280 &_swigt__p_wxNativeEncodingInfo,
26281 &_swigt__p_wxNativeFontInfo,
26282 &_swigt__p_wxNavigationKeyEvent,
26283 &_swigt__p_wxNcPaintEvent,
26284 &_swigt__p_wxNotifyEvent,
26285 &_swigt__p_wxObject,
26286 &_swigt__p_wxPCXHandler,
26287 &_swigt__p_wxPNGHandler,
26288 &_swigt__p_wxPNMHandler,
26289 &_swigt__p_wxPaintDC,
26290 &_swigt__p_wxPaintEvent,
26291 &_swigt__p_wxPalette,
26292 &_swigt__p_wxPaletteChangedEvent,
26293 &_swigt__p_wxPaperSize,
26294 &_swigt__p_wxPen,
26295 &_swigt__p_wxPenList,
26296 &_swigt__p_wxPoint,
26297 &_swigt__p_wxPostScriptDC,
26298 &_swigt__p_wxPrintData,
26299 &_swigt__p_wxPrinterDC,
26300 &_swigt__p_wxPyApp,
26301 &_swigt__p_wxPyCommandEvent,
26302 &_swigt__p_wxPyEvent,
26303 &_swigt__p_wxPyFontEnumerator,
26304 &_swigt__p_wxPyImageHandler,
26305 &_swigt__p_wxPySizer,
26306 &_swigt__p_wxPyValidator,
26307 &_swigt__p_wxQueryNewPaletteEvent,
26308 &_swigt__p_wxRect,
26309 &_swigt__p_wxRegion,
26310 &_swigt__p_wxRegionIterator,
26311 &_swigt__p_wxRendererNative,
26312 &_swigt__p_wxRendererVersion,
26313 &_swigt__p_wxScreenDC,
26314 &_swigt__p_wxScrollEvent,
26315 &_swigt__p_wxScrollWinEvent,
26316 &_swigt__p_wxSetCursorEvent,
26317 &_swigt__p_wxShowEvent,
26318 &_swigt__p_wxSize,
26319 &_swigt__p_wxSizeEvent,
26320 &_swigt__p_wxSizer,
26321 &_swigt__p_wxSizerItem,
26322 &_swigt__p_wxSplitterRenderParams,
26323 &_swigt__p_wxStaticBoxSizer,
26324 &_swigt__p_wxStdDialogButtonSizer,
26325 &_swigt__p_wxString,
26326 &_swigt__p_wxSysColourChangedEvent,
26327 &_swigt__p_wxTIFFHandler,
26328 &_swigt__p_wxUpdateUIEvent,
26329 &_swigt__p_wxValidator,
26330 &_swigt__p_wxWindow,
26331 &_swigt__p_wxWindowCreateEvent,
26332 &_swigt__p_wxWindowDC,
26333 &_swigt__p_wxWindowDestroyEvent,
26334 &_swigt__p_wxXPMHandler,
26335 };
26336
26337 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
26338 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
26339 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
26340 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
26341 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
26342 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
26343 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
26344 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
26345 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
26346 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
26347 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}};
26348 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
26349 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
26350 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
26351 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
26352 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
26353 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}};
26354 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
26355 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
26356 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
26357 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
26358 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
26359 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
26360 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
26361 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}};
26362 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
26363 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
26364 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
26365 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
26366 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
26367 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
26368 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
26369 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
26370 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}};
26371 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
26372 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
26373 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
26374 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
26375 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
26376 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
26377 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
26378 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
26379 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
26380 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
26381 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
26382 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
26383 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
26384 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
26385 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
26386 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
26387 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
26388 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
26389 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
26390 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
26391 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
26392 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
26393 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26394 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26395 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26396 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26397 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
26398 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
26399 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
26400 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
26401 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
26402 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
26403 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
26404 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
26405 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
26406 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
26407 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
26408 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
26409 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26410 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26411 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26412 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
26413 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
26414 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
26415 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
26416 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
26417 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
26418 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
26419 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
26420 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
26421 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
26422 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
26423 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
26424 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
26425 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
26426 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
26427 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
26428 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
26429 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
26430 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
26431 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
26432 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
26433 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
26434 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
26435 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
26436 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
26437 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
26438 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
26439 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
26440 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
26441 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
26442 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
26443 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
26444 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
26445 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
26446 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
26447 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
26448 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
26449 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
26450 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_wxColourDatabase, _p_wxColourDatabaseTo_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_wxPenList, _p_wxPenListTo_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_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxBrushList, _p_wxBrushListTo_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_wxFontList, _p_wxFontListTo_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}};
26451 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
26452 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
26453 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
26454 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
26455 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
26456 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
26457 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
26458 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
26459 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
26460 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
26461 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
26462 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
26463 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
26464 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
26465 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
26466 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
26467 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
26468 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
26469 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
26470 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}};
26471 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
26472
26473 static swig_cast_info *swig_cast_initial[] = {
26474 _swigc__p_char,
26475 _swigc__p_double,
26476 _swigc__p_form_ops_t,
26477 _swigc__p_int,
26478 _swigc__p_unsigned_char,
26479 _swigc__p_unsigned_int,
26480 _swigc__p_unsigned_long,
26481 _swigc__p_wxANIHandler,
26482 _swigc__p_wxAcceleratorTable,
26483 _swigc__p_wxActivateEvent,
26484 _swigc__p_wxBMPHandler,
26485 _swigc__p_wxBitmap,
26486 _swigc__p_wxBoxSizer,
26487 _swigc__p_wxBrush,
26488 _swigc__p_wxBrushList,
26489 _swigc__p_wxBufferedDC,
26490 _swigc__p_wxBufferedPaintDC,
26491 _swigc__p_wxCURHandler,
26492 _swigc__p_wxChildFocusEvent,
26493 _swigc__p_wxClientDC,
26494 _swigc__p_wxCloseEvent,
26495 _swigc__p_wxColour,
26496 _swigc__p_wxColourDatabase,
26497 _swigc__p_wxCommandEvent,
26498 _swigc__p_wxContextMenuEvent,
26499 _swigc__p_wxControl,
26500 _swigc__p_wxControlWithItems,
26501 _swigc__p_wxCursor,
26502 _swigc__p_wxDC,
26503 _swigc__p_wxDash,
26504 _swigc__p_wxDateEvent,
26505 _swigc__p_wxDisplayChangedEvent,
26506 _swigc__p_wxDropFilesEvent,
26507 _swigc__p_wxDuplexMode,
26508 _swigc__p_wxEffects,
26509 _swigc__p_wxEncodingConverter,
26510 _swigc__p_wxEraseEvent,
26511 _swigc__p_wxEvent,
26512 _swigc__p_wxEvtHandler,
26513 _swigc__p_wxFSFile,
26514 _swigc__p_wxFileSystem,
26515 _swigc__p_wxFlexGridSizer,
26516 _swigc__p_wxFocusEvent,
26517 _swigc__p_wxFont,
26518 _swigc__p_wxFontList,
26519 _swigc__p_wxFontMapper,
26520 _swigc__p_wxGBSizerItem,
26521 _swigc__p_wxGDIObject,
26522 _swigc__p_wxGIFHandler,
26523 _swigc__p_wxGridBagSizer,
26524 _swigc__p_wxGridSizer,
26525 _swigc__p_wxICOHandler,
26526 _swigc__p_wxIcon,
26527 _swigc__p_wxIconBundle,
26528 _swigc__p_wxIconLocation,
26529 _swigc__p_wxIconizeEvent,
26530 _swigc__p_wxIdleEvent,
26531 _swigc__p_wxImage,
26532 _swigc__p_wxImageHandler,
26533 _swigc__p_wxImageList,
26534 _swigc__p_wxIndividualLayoutConstraint,
26535 _swigc__p_wxInitDialogEvent,
26536 _swigc__p_wxJPEGHandler,
26537 _swigc__p_wxKeyEvent,
26538 _swigc__p_wxLanguageInfo,
26539 _swigc__p_wxLayoutConstraints,
26540 _swigc__p_wxLocale,
26541 _swigc__p_wxMask,
26542 _swigc__p_wxMaximizeEvent,
26543 _swigc__p_wxMemoryDC,
26544 _swigc__p_wxMenu,
26545 _swigc__p_wxMenuBar,
26546 _swigc__p_wxMenuEvent,
26547 _swigc__p_wxMenuItem,
26548 _swigc__p_wxMetaFile,
26549 _swigc__p_wxMetaFileDC,
26550 _swigc__p_wxMirrorDC,
26551 _swigc__p_wxMouseCaptureChangedEvent,
26552 _swigc__p_wxMouseEvent,
26553 _swigc__p_wxMoveEvent,
26554 _swigc__p_wxNativeEncodingInfo,
26555 _swigc__p_wxNativeFontInfo,
26556 _swigc__p_wxNavigationKeyEvent,
26557 _swigc__p_wxNcPaintEvent,
26558 _swigc__p_wxNotifyEvent,
26559 _swigc__p_wxObject,
26560 _swigc__p_wxPCXHandler,
26561 _swigc__p_wxPNGHandler,
26562 _swigc__p_wxPNMHandler,
26563 _swigc__p_wxPaintDC,
26564 _swigc__p_wxPaintEvent,
26565 _swigc__p_wxPalette,
26566 _swigc__p_wxPaletteChangedEvent,
26567 _swigc__p_wxPaperSize,
26568 _swigc__p_wxPen,
26569 _swigc__p_wxPenList,
26570 _swigc__p_wxPoint,
26571 _swigc__p_wxPostScriptDC,
26572 _swigc__p_wxPrintData,
26573 _swigc__p_wxPrinterDC,
26574 _swigc__p_wxPyApp,
26575 _swigc__p_wxPyCommandEvent,
26576 _swigc__p_wxPyEvent,
26577 _swigc__p_wxPyFontEnumerator,
26578 _swigc__p_wxPyImageHandler,
26579 _swigc__p_wxPySizer,
26580 _swigc__p_wxPyValidator,
26581 _swigc__p_wxQueryNewPaletteEvent,
26582 _swigc__p_wxRect,
26583 _swigc__p_wxRegion,
26584 _swigc__p_wxRegionIterator,
26585 _swigc__p_wxRendererNative,
26586 _swigc__p_wxRendererVersion,
26587 _swigc__p_wxScreenDC,
26588 _swigc__p_wxScrollEvent,
26589 _swigc__p_wxScrollWinEvent,
26590 _swigc__p_wxSetCursorEvent,
26591 _swigc__p_wxShowEvent,
26592 _swigc__p_wxSize,
26593 _swigc__p_wxSizeEvent,
26594 _swigc__p_wxSizer,
26595 _swigc__p_wxSizerItem,
26596 _swigc__p_wxSplitterRenderParams,
26597 _swigc__p_wxStaticBoxSizer,
26598 _swigc__p_wxStdDialogButtonSizer,
26599 _swigc__p_wxString,
26600 _swigc__p_wxSysColourChangedEvent,
26601 _swigc__p_wxTIFFHandler,
26602 _swigc__p_wxUpdateUIEvent,
26603 _swigc__p_wxValidator,
26604 _swigc__p_wxWindow,
26605 _swigc__p_wxWindowCreateEvent,
26606 _swigc__p_wxWindowDC,
26607 _swigc__p_wxWindowDestroyEvent,
26608 _swigc__p_wxXPMHandler,
26609 };
26610
26611
26612 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
26613
26614 static swig_const_info swig_const_table[] = {
26615 {0, 0, 0, 0.0, 0, 0}};
26616
26617 #ifdef __cplusplus
26618 }
26619 #endif
26620 /* -----------------------------------------------------------------------------
26621 * Type initialization:
26622 * This problem is tough by the requirement that no dynamic
26623 * memory is used. Also, since swig_type_info structures store pointers to
26624 * swig_cast_info structures and swig_cast_info structures store pointers back
26625 * to swig_type_info structures, we need some lookup code at initialization.
26626 * The idea is that swig generates all the structures that are needed.
26627 * The runtime then collects these partially filled structures.
26628 * The SWIG_InitializeModule function takes these initial arrays out of
26629 * swig_module, and does all the lookup, filling in the swig_module.types
26630 * array with the correct data and linking the correct swig_cast_info
26631 * structures together.
26632 *
26633 * The generated swig_type_info structures are assigned staticly to an initial
26634 * array. We just loop though that array, and handle each type individually.
26635 * First we lookup if this type has been already loaded, and if so, use the
26636 * loaded structure instead of the generated one. Then we have to fill in the
26637 * cast linked list. The cast data is initially stored in something like a
26638 * two-dimensional array. Each row corresponds to a type (there are the same
26639 * number of rows as there are in the swig_type_initial array). Each entry in
26640 * a column is one of the swig_cast_info structures for that type.
26641 * The cast_initial array is actually an array of arrays, because each row has
26642 * a variable number of columns. So to actually build the cast linked list,
26643 * we find the array of casts associated with the type, and loop through it
26644 * adding the casts to the list. The one last trick we need to do is making
26645 * sure the type pointer in the swig_cast_info struct is correct.
26646 *
26647 * First off, we lookup the cast->type name to see if it is already loaded.
26648 * There are three cases to handle:
26649 * 1) If the cast->type has already been loaded AND the type we are adding
26650 * casting info to has not been loaded (it is in this module), THEN we
26651 * replace the cast->type pointer with the type pointer that has already
26652 * been loaded.
26653 * 2) If BOTH types (the one we are adding casting info to, and the
26654 * cast->type) are loaded, THEN the cast info has already been loaded by
26655 * the previous module so we just ignore it.
26656 * 3) Finally, if cast->type has not already been loaded, then we add that
26657 * swig_cast_info to the linked list (because the cast->type) pointer will
26658 * be correct.
26659 * ----------------------------------------------------------------------------- */
26660
26661 #ifdef __cplusplus
26662 extern "C" {
26663 #if 0
26664 } /* c-mode */
26665 #endif
26666 #endif
26667
26668 #if 0
26669 #define SWIGRUNTIME_DEBUG
26670 #endif
26671
26672 SWIGRUNTIME void
26673 SWIG_InitializeModule(void *clientdata) {
26674 size_t i;
26675 swig_module_info *module_head;
26676 static int init_run = 0;
26677
26678 clientdata = clientdata;
26679
26680 if (init_run) return;
26681 init_run = 1;
26682
26683 /* Initialize the swig_module */
26684 swig_module.type_initial = swig_type_initial;
26685 swig_module.cast_initial = swig_cast_initial;
26686
26687 /* Try and load any already created modules */
26688 module_head = SWIG_GetModule(clientdata);
26689 if (module_head) {
26690 swig_module.next = module_head->next;
26691 module_head->next = &swig_module;
26692 } else {
26693 /* This is the first module loaded */
26694 swig_module.next = &swig_module;
26695 SWIG_SetModule(clientdata, &swig_module);
26696 }
26697
26698 /* Now work on filling in swig_module.types */
26699 #ifdef SWIGRUNTIME_DEBUG
26700 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
26701 #endif
26702 for (i = 0; i < swig_module.size; ++i) {
26703 swig_type_info *type = 0;
26704 swig_type_info *ret;
26705 swig_cast_info *cast;
26706
26707 #ifdef SWIGRUNTIME_DEBUG
26708 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
26709 #endif
26710
26711 /* if there is another module already loaded */
26712 if (swig_module.next != &swig_module) {
26713 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
26714 }
26715 if (type) {
26716 /* Overwrite clientdata field */
26717 #ifdef SWIGRUNTIME_DEBUG
26718 printf("SWIG_InitializeModule: found type %s\n", type->name);
26719 #endif
26720 if (swig_module.type_initial[i]->clientdata) {
26721 type->clientdata = swig_module.type_initial[i]->clientdata;
26722 #ifdef SWIGRUNTIME_DEBUG
26723 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
26724 #endif
26725 }
26726 } else {
26727 type = swig_module.type_initial[i];
26728 }
26729
26730 /* Insert casting types */
26731 cast = swig_module.cast_initial[i];
26732 while (cast->type) {
26733 /* Don't need to add information already in the list */
26734 ret = 0;
26735 #ifdef SWIGRUNTIME_DEBUG
26736 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
26737 #endif
26738 if (swig_module.next != &swig_module) {
26739 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
26740 #ifdef SWIGRUNTIME_DEBUG
26741 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
26742 #endif
26743 }
26744 if (ret) {
26745 if (type == swig_module.type_initial[i]) {
26746 #ifdef SWIGRUNTIME_DEBUG
26747 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
26748 #endif
26749 cast->type = ret;
26750 ret = 0;
26751 } else {
26752 /* Check for casting already in the list */
26753 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
26754 #ifdef SWIGRUNTIME_DEBUG
26755 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
26756 #endif
26757 if (!ocast) ret = 0;
26758 }
26759 }
26760
26761 if (!ret) {
26762 #ifdef SWIGRUNTIME_DEBUG
26763 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
26764 #endif
26765 if (type->cast) {
26766 type->cast->prev = cast;
26767 cast->next = type->cast;
26768 }
26769 type->cast = cast;
26770 }
26771 cast++;
26772 }
26773 /* Set entry in modules->types array equal to the type */
26774 swig_module.types[i] = type;
26775 }
26776 swig_module.types[i] = 0;
26777
26778 #ifdef SWIGRUNTIME_DEBUG
26779 printf("**** SWIG_InitializeModule: Cast List ******\n");
26780 for (i = 0; i < swig_module.size; ++i) {
26781 int j = 0;
26782 swig_cast_info *cast = swig_module.cast_initial[i];
26783 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
26784 while (cast->type) {
26785 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
26786 cast++;
26787 ++j;
26788 }
26789 printf("---- Total casts: %d\n",j);
26790 }
26791 printf("**** SWIG_InitializeModule: Cast List ******\n");
26792 #endif
26793 }
26794
26795 /* This function will propagate the clientdata field of type to
26796 * any new swig_type_info structures that have been added into the list
26797 * of equivalent types. It is like calling
26798 * SWIG_TypeClientData(type, clientdata) a second time.
26799 */
26800 SWIGRUNTIME void
26801 SWIG_PropagateClientData(void) {
26802 size_t i;
26803 swig_cast_info *equiv;
26804 static int init_run = 0;
26805
26806 if (init_run) return;
26807 init_run = 1;
26808
26809 for (i = 0; i < swig_module.size; i++) {
26810 if (swig_module.types[i]->clientdata) {
26811 equiv = swig_module.types[i]->cast;
26812 while (equiv) {
26813 if (!equiv->converter) {
26814 if (equiv->type && !equiv->type->clientdata)
26815 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
26816 }
26817 equiv = equiv->next;
26818 }
26819 }
26820 }
26821 }
26822
26823 #ifdef __cplusplus
26824 #if 0
26825 {
26826 /* c-mode */
26827 #endif
26828 }
26829 #endif
26830
26831
26832
26833 #ifdef __cplusplus
26834 extern "C" {
26835 #endif
26836
26837 /* Python-specific SWIG API */
26838 #define SWIG_newvarlink() SWIG_Python_newvarlink()
26839 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
26840 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
26841
26842 /* -----------------------------------------------------------------------------
26843 * global variable support code.
26844 * ----------------------------------------------------------------------------- */
26845
26846 typedef struct swig_globalvar {
26847 char *name; /* Name of global variable */
26848 PyObject *(*get_attr)(void); /* Return the current value */
26849 int (*set_attr)(PyObject *); /* Set the value */
26850 struct swig_globalvar *next;
26851 } swig_globalvar;
26852
26853 typedef struct swig_varlinkobject {
26854 PyObject_HEAD
26855 swig_globalvar *vars;
26856 } swig_varlinkobject;
26857
26858 SWIGINTERN PyObject *
26859 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
26860 return PyString_FromString("<Swig global variables>");
26861 }
26862
26863 SWIGINTERN PyObject *
26864 swig_varlink_str(swig_varlinkobject *v) {
26865 PyObject *str = PyString_FromString("(");
26866 swig_globalvar *var;
26867 for (var = v->vars; var; var=var->next) {
26868 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
26869 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
26870 }
26871 PyString_ConcatAndDel(&str,PyString_FromString(")"));
26872 return str;
26873 }
26874
26875 SWIGINTERN int
26876 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
26877 PyObject *str = swig_varlink_str(v);
26878 fprintf(fp,"Swig global variables ");
26879 fprintf(fp,"%s\n", PyString_AsString(str));
26880 Py_DECREF(str);
26881 return 0;
26882 }
26883
26884 SWIGINTERN void
26885 swig_varlink_dealloc(swig_varlinkobject *v) {
26886 swig_globalvar *var = v->vars;
26887 while (var) {
26888 swig_globalvar *n = var->next;
26889 free(var->name);
26890 free(var);
26891 var = n;
26892 }
26893 }
26894
26895 SWIGINTERN PyObject *
26896 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
26897 PyObject *res = NULL;
26898 swig_globalvar *var = v->vars;
26899 while (var) {
26900 if (strcmp(var->name,n) == 0) {
26901 res = (*var->get_attr)();
26902 break;
26903 }
26904 var = var->next;
26905 }
26906 if (res == NULL && !PyErr_Occurred()) {
26907 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
26908 }
26909 return res;
26910 }
26911
26912 SWIGINTERN int
26913 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
26914 int res = 1;
26915 swig_globalvar *var = v->vars;
26916 while (var) {
26917 if (strcmp(var->name,n) == 0) {
26918 res = (*var->set_attr)(p);
26919 break;
26920 }
26921 var = var->next;
26922 }
26923 if (res == 1 && !PyErr_Occurred()) {
26924 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
26925 }
26926 return res;
26927 }
26928
26929 SWIGINTERN PyTypeObject*
26930 swig_varlink_type(void) {
26931 static char varlink__doc__[] = "Swig var link object";
26932 static PyTypeObject varlink_type;
26933 static int type_init = 0;
26934 if (!type_init) {
26935 const PyTypeObject tmp
26936 = {
26937 PyObject_HEAD_INIT(NULL)
26938 0, /* Number of items in variable part (ob_size) */
26939 (char *)"swigvarlink", /* Type name (tp_name) */
26940 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
26941 0, /* Itemsize (tp_itemsize) */
26942 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
26943 (printfunc) swig_varlink_print, /* Print (tp_print) */
26944 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
26945 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
26946 0, /* tp_compare */
26947 (reprfunc) swig_varlink_repr, /* tp_repr */
26948 0, /* tp_as_number */
26949 0, /* tp_as_sequence */
26950 0, /* tp_as_mapping */
26951 0, /* tp_hash */
26952 0, /* tp_call */
26953 (reprfunc)swig_varlink_str, /* tp_str */
26954 0, /* tp_getattro */
26955 0, /* tp_setattro */
26956 0, /* tp_as_buffer */
26957 0, /* tp_flags */
26958 varlink__doc__, /* tp_doc */
26959 0, /* tp_traverse */
26960 0, /* tp_clear */
26961 0, /* tp_richcompare */
26962 0, /* tp_weaklistoffset */
26963 #if PY_VERSION_HEX >= 0x02020000
26964 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
26965 #endif
26966 #if PY_VERSION_HEX >= 0x02030000
26967 0, /* tp_del */
26968 #endif
26969 #ifdef COUNT_ALLOCS
26970 0,0,0,0 /* tp_alloc -> tp_next */
26971 #endif
26972 };
26973 varlink_type = tmp;
26974 varlink_type.ob_type = &PyType_Type;
26975 type_init = 1;
26976 }
26977 return &varlink_type;
26978 }
26979
26980 /* Create a variable linking object for use later */
26981 SWIGINTERN PyObject *
26982 SWIG_Python_newvarlink(void) {
26983 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
26984 if (result) {
26985 result->vars = 0;
26986 }
26987 return ((PyObject*) result);
26988 }
26989
26990 SWIGINTERN void
26991 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
26992 swig_varlinkobject *v = (swig_varlinkobject *) p;
26993 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
26994 if (gv) {
26995 size_t size = strlen(name)+1;
26996 gv->name = (char *)malloc(size);
26997 if (gv->name) {
26998 strncpy(gv->name,name,size);
26999 gv->get_attr = get_attr;
27000 gv->set_attr = set_attr;
27001 gv->next = v->vars;
27002 }
27003 }
27004 v->vars = gv;
27005 }
27006
27007 SWIGINTERN PyObject *
27008 SWIG_globals() {
27009 static PyObject *_SWIG_globals = 0;
27010 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
27011 return _SWIG_globals;
27012 }
27013
27014 /* -----------------------------------------------------------------------------
27015 * constants/methods manipulation
27016 * ----------------------------------------------------------------------------- */
27017
27018 /* Install Constants */
27019 SWIGINTERN void
27020 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
27021 PyObject *obj = 0;
27022 size_t i;
27023 for (i = 0; constants[i].type; ++i) {
27024 switch(constants[i].type) {
27025 case SWIG_PY_POINTER:
27026 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
27027 break;
27028 case SWIG_PY_BINARY:
27029 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
27030 break;
27031 default:
27032 obj = 0;
27033 break;
27034 }
27035 if (obj) {
27036 PyDict_SetItemString(d, constants[i].name, obj);
27037 Py_DECREF(obj);
27038 }
27039 }
27040 }
27041
27042 /* -----------------------------------------------------------------------------*/
27043 /* Fix SwigMethods to carry the callback ptrs when needed */
27044 /* -----------------------------------------------------------------------------*/
27045
27046 SWIGINTERN void
27047 SWIG_Python_FixMethods(PyMethodDef *methods,
27048 swig_const_info *const_table,
27049 swig_type_info **types,
27050 swig_type_info **types_initial) {
27051 size_t i;
27052 for (i = 0; methods[i].ml_name; ++i) {
27053 char *c = methods[i].ml_doc;
27054 if (c && (c = strstr(c, "swig_ptr: "))) {
27055 int j;
27056 swig_const_info *ci = 0;
27057 char *name = c + 10;
27058 for (j = 0; const_table[j].type; ++j) {
27059 if (strncmp(const_table[j].name, name,
27060 strlen(const_table[j].name)) == 0) {
27061 ci = &(const_table[j]);
27062 break;
27063 }
27064 }
27065 if (ci) {
27066 size_t shift = (ci->ptype) - types;
27067 swig_type_info *ty = types_initial[shift];
27068 size_t ldoc = (c - methods[i].ml_doc);
27069 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
27070 char *ndoc = (char*)malloc(ldoc + lptr + 10);
27071 if (ndoc) {
27072 char *buff = ndoc;
27073 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
27074 if (ptr) {
27075 strncpy(buff, methods[i].ml_doc, ldoc);
27076 buff += ldoc;
27077 strncpy(buff, "swig_ptr: ", 10);
27078 buff += 10;
27079 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
27080 methods[i].ml_doc = ndoc;
27081 }
27082 }
27083 }
27084 }
27085 }
27086 }
27087
27088 #ifdef __cplusplus
27089 }
27090 #endif
27091
27092 /* -----------------------------------------------------------------------------*
27093 * Partial Init method
27094 * -----------------------------------------------------------------------------*/
27095
27096 #ifdef __cplusplus
27097 extern "C"
27098 #endif
27099 SWIGEXPORT void SWIG_init(void) {
27100 PyObject *m, *d;
27101
27102 /* Fix SwigMethods to carry the callback ptrs when needed */
27103 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
27104
27105 m = Py_InitModule((char *) SWIG_name, SwigMethods);
27106 d = PyModule_GetDict(m);
27107
27108 SWIG_InitializeModule(0);
27109 SWIG_InstallConstants(d,swig_const_table);
27110
27111
27112 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
27113 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
27114 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
27115 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
27116 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
27117 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
27118 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
27119 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
27120 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
27121 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
27122 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
27123 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
27124 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
27125 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
27126 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
27127 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
27128 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
27129 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
27130 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
27131 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
27132 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
27133 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
27134 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
27135 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
27136 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
27137 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
27138 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
27139 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
27140 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
27141 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
27142 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
27143 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
27144 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
27145 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
27146 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
27147 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
27148 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
27149 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
27150 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
27151 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
27152 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
27153 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
27154 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
27155 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
27156 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
27157 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
27158 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
27159 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
27160 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
27161 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
27162 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
27163 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
27164 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
27165 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
27166 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
27167 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
27168 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
27169 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
27170 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
27171 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
27172 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
27173 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
27174 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
27175 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
27176 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
27177 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
27178 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
27179 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
27180 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
27181 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
27182 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
27183 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
27184 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
27185 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
27186 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
27187 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
27188 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
27189 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
27190 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
27191 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
27192 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
27193 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
27194 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
27195 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
27196 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
27197 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
27198 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
27199 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
27200 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
27201 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
27202 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
27203 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
27204 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
27205 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
27206 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
27207 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
27208 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
27209 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
27210 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
27211 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
27212 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
27213 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
27214 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
27215 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
27216 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
27217 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
27218 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
27219 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
27220 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
27221 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
27222 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
27223 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
27224 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
27225 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
27226 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
27227 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
27228 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
27229 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
27230 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
27231 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
27232 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
27233 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
27234 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
27235 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
27236 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
27237 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
27238 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
27239
27240 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
27241
27242 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
27243 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
27244 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
27245 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
27246 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
27247 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
27248 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
27249 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
27250 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
27251 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
27252 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
27253 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
27254 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
27255 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
27256 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
27257 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
27258 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
27259 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
27260 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
27261 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
27262 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
27263 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
27264 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
27265 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
27266 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
27267 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
27268 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
27269 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
27270 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
27271 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
27272 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
27273 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
27274 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
27275 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
27276 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
27277 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
27278 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
27279 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
27280 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
27281 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
27282 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
27283 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
27284 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
27285 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
27286 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
27287 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
27288 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
27289 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
27290 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
27291 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
27292 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
27293 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
27294 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
27295 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
27296 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
27297 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
27298 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
27299 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
27300 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
27301 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
27302 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
27303 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
27304 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
27305 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
27306 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
27307 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
27308 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
27309 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
27310 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
27311 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
27312 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
27313 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
27314 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
27315 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
27316 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
27317 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
27318 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
27319 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
27320 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
27321 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
27322 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
27323 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
27324 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
27325 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
27326 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
27327 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
27328 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
27329 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
27330 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
27331 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
27332 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
27333 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
27334 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
27335 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
27336 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
27337 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
27338 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
27339 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
27340 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
27341 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
27342 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
27343 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
27344 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
27345 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
27346 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
27347 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
27348 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
27349 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
27350 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
27351 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
27352 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
27353 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
27354 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
27355 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
27356 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
27357 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
27358 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
27359 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
27360 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
27361 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
27362 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
27363 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
27364 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
27365 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
27366 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
27367 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
27368 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
27369 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
27370 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
27371 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
27372 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
27373 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
27374 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
27375 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
27376 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
27377 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
27378 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
27379 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
27380 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
27381 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
27382 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
27383 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
27384 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
27385 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
27386 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
27387 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
27388 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
27389 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
27390 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
27391 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
27392 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
27393 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
27394 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
27395 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
27396 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
27397 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
27398 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
27399 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
27400 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
27401 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
27402 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
27403 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
27404 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
27405 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
27406 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
27407 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
27408 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
27409 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
27410 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
27411 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
27412 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
27413 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
27414 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
27415 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
27416 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
27417 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
27418 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
27419 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
27420 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
27421 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
27422 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
27423 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
27424 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
27425 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
27426 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
27427 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
27428 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
27429 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
27430 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
27431 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
27432 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
27433 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
27434 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
27435 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
27436 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
27437 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
27438 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
27439 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
27440 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
27441 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
27442 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
27443 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
27444 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
27445 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
27446 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
27447 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
27448 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
27449 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
27450 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
27451 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
27452 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
27453 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
27454 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
27455 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
27456 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
27457 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
27458 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
27459 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
27460 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
27461 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
27462 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
27463 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
27464 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
27465 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
27466 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
27467 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
27468 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
27469 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
27470 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
27471 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
27472 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
27473 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
27474 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
27475 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
27476 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
27477 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
27478 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
27479 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
27480 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
27481 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
27482 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
27483 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
27484 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
27485 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
27486 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
27487 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
27488 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
27489 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
27490 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
27491 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
27492 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
27493 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
27494 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
27495 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
27496 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
27497 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
27498 SWIG_addvarlink(SWIG_globals(),(char*)"NORMAL_FONT",NORMAL_FONT_get, NORMAL_FONT_set);
27499 SWIG_addvarlink(SWIG_globals(),(char*)"SMALL_FONT",SMALL_FONT_get, SMALL_FONT_set);
27500 SWIG_addvarlink(SWIG_globals(),(char*)"ITALIC_FONT",ITALIC_FONT_get, ITALIC_FONT_set);
27501 SWIG_addvarlink(SWIG_globals(),(char*)"SWISS_FONT",SWISS_FONT_get, SWISS_FONT_set);
27502 SWIG_addvarlink(SWIG_globals(),(char*)"RED_PEN",RED_PEN_get, RED_PEN_set);
27503 SWIG_addvarlink(SWIG_globals(),(char*)"CYAN_PEN",CYAN_PEN_get, CYAN_PEN_set);
27504 SWIG_addvarlink(SWIG_globals(),(char*)"GREEN_PEN",GREEN_PEN_get, GREEN_PEN_set);
27505 SWIG_addvarlink(SWIG_globals(),(char*)"BLACK_PEN",BLACK_PEN_get, BLACK_PEN_set);
27506 SWIG_addvarlink(SWIG_globals(),(char*)"WHITE_PEN",WHITE_PEN_get, WHITE_PEN_set);
27507 SWIG_addvarlink(SWIG_globals(),(char*)"TRANSPARENT_PEN",TRANSPARENT_PEN_get, TRANSPARENT_PEN_set);
27508 SWIG_addvarlink(SWIG_globals(),(char*)"BLACK_DASHED_PEN",BLACK_DASHED_PEN_get, BLACK_DASHED_PEN_set);
27509 SWIG_addvarlink(SWIG_globals(),(char*)"GREY_PEN",GREY_PEN_get, GREY_PEN_set);
27510 SWIG_addvarlink(SWIG_globals(),(char*)"MEDIUM_GREY_PEN",MEDIUM_GREY_PEN_get, MEDIUM_GREY_PEN_set);
27511 SWIG_addvarlink(SWIG_globals(),(char*)"LIGHT_GREY_PEN",LIGHT_GREY_PEN_get, LIGHT_GREY_PEN_set);
27512 SWIG_addvarlink(SWIG_globals(),(char*)"BLUE_BRUSH",BLUE_BRUSH_get, BLUE_BRUSH_set);
27513 SWIG_addvarlink(SWIG_globals(),(char*)"GREEN_BRUSH",GREEN_BRUSH_get, GREEN_BRUSH_set);
27514 SWIG_addvarlink(SWIG_globals(),(char*)"WHITE_BRUSH",WHITE_BRUSH_get, WHITE_BRUSH_set);
27515 SWIG_addvarlink(SWIG_globals(),(char*)"BLACK_BRUSH",BLACK_BRUSH_get, BLACK_BRUSH_set);
27516 SWIG_addvarlink(SWIG_globals(),(char*)"TRANSPARENT_BRUSH",TRANSPARENT_BRUSH_get, TRANSPARENT_BRUSH_set);
27517 SWIG_addvarlink(SWIG_globals(),(char*)"CYAN_BRUSH",CYAN_BRUSH_get, CYAN_BRUSH_set);
27518 SWIG_addvarlink(SWIG_globals(),(char*)"RED_BRUSH",RED_BRUSH_get, RED_BRUSH_set);
27519 SWIG_addvarlink(SWIG_globals(),(char*)"GREY_BRUSH",GREY_BRUSH_get, GREY_BRUSH_set);
27520 SWIG_addvarlink(SWIG_globals(),(char*)"MEDIUM_GREY_BRUSH",MEDIUM_GREY_BRUSH_get, MEDIUM_GREY_BRUSH_set);
27521 SWIG_addvarlink(SWIG_globals(),(char*)"LIGHT_GREY_BRUSH",LIGHT_GREY_BRUSH_get, LIGHT_GREY_BRUSH_set);
27522 SWIG_addvarlink(SWIG_globals(),(char*)"BLACK",BLACK_get, BLACK_set);
27523 SWIG_addvarlink(SWIG_globals(),(char*)"WHITE",WHITE_get, WHITE_set);
27524 SWIG_addvarlink(SWIG_globals(),(char*)"RED",RED_get, RED_set);
27525 SWIG_addvarlink(SWIG_globals(),(char*)"BLUE",BLUE_get, BLUE_set);
27526 SWIG_addvarlink(SWIG_globals(),(char*)"GREEN",GREEN_get, GREEN_set);
27527 SWIG_addvarlink(SWIG_globals(),(char*)"CYAN",CYAN_get, CYAN_set);
27528 SWIG_addvarlink(SWIG_globals(),(char*)"LIGHT_GREY",LIGHT_GREY_get, LIGHT_GREY_set);
27529 SWIG_addvarlink(SWIG_globals(),(char*)"STANDARD_CURSOR",STANDARD_CURSOR_get, STANDARD_CURSOR_set);
27530 SWIG_addvarlink(SWIG_globals(),(char*)"HOURGLASS_CURSOR",HOURGLASS_CURSOR_get, HOURGLASS_CURSOR_set);
27531 SWIG_addvarlink(SWIG_globals(),(char*)"CROSS_CURSOR",CROSS_CURSOR_get, CROSS_CURSOR_set);
27532 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
27533 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
27534 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
27535 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
27536 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
27537 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
27538 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
27539 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
27540 SWIG_addvarlink(SWIG_globals(),(char*)"TheFontList",TheFontList_get, TheFontList_set);
27541 SWIG_addvarlink(SWIG_globals(),(char*)"ThePenList",ThePenList_get, ThePenList_set);
27542 SWIG_addvarlink(SWIG_globals(),(char*)"TheBrushList",TheBrushList_get, TheBrushList_set);
27543 SWIG_addvarlink(SWIG_globals(),(char*)"TheColourDatabase",TheColourDatabase_get, TheColourDatabase_set);
27544 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
27545 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
27546 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
27547 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
27548 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
27549 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
27550 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
27551 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
27552 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
27553 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
27554 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
27555 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
27556 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
27557 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
27558 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
27559
27560 // Work around a chicken/egg problem in drawlist.cpp
27561 wxPyDrawList_SetAPIPtr();
27562
27563 }
27564