]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 /* 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_wxClipboardTextEvent swig_types[20]
2483 #define SWIGTYPE_p_wxCloseEvent swig_types[21]
2484 #define SWIGTYPE_p_wxColour swig_types[22]
2485 #define SWIGTYPE_p_wxColourDatabase swig_types[23]
2486 #define SWIGTYPE_p_wxCommandEvent swig_types[24]
2487 #define SWIGTYPE_p_wxContextMenuEvent swig_types[25]
2488 #define SWIGTYPE_p_wxControl swig_types[26]
2489 #define SWIGTYPE_p_wxControlWithItems swig_types[27]
2490 #define SWIGTYPE_p_wxCursor swig_types[28]
2491 #define SWIGTYPE_p_wxDC swig_types[29]
2492 #define SWIGTYPE_p_wxDash swig_types[30]
2493 #define SWIGTYPE_p_wxDateEvent swig_types[31]
2494 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[32]
2495 #define SWIGTYPE_p_wxDropFilesEvent swig_types[33]
2496 #define SWIGTYPE_p_wxDuplexMode swig_types[34]
2497 #define SWIGTYPE_p_wxEffects swig_types[35]
2498 #define SWIGTYPE_p_wxEncodingConverter swig_types[36]
2499 #define SWIGTYPE_p_wxEraseEvent swig_types[37]
2500 #define SWIGTYPE_p_wxEvent swig_types[38]
2501 #define SWIGTYPE_p_wxEvtHandler swig_types[39]
2502 #define SWIGTYPE_p_wxFSFile swig_types[40]
2503 #define SWIGTYPE_p_wxFileSystem swig_types[41]
2504 #define SWIGTYPE_p_wxFlexGridSizer swig_types[42]
2505 #define SWIGTYPE_p_wxFocusEvent swig_types[43]
2506 #define SWIGTYPE_p_wxFont swig_types[44]
2507 #define SWIGTYPE_p_wxFontList swig_types[45]
2508 #define SWIGTYPE_p_wxFontMapper swig_types[46]
2509 #define SWIGTYPE_p_wxGBSizerItem swig_types[47]
2510 #define SWIGTYPE_p_wxGDIObjListBase swig_types[48]
2511 #define SWIGTYPE_p_wxGDIObject swig_types[49]
2512 #define SWIGTYPE_p_wxGIFHandler swig_types[50]
2513 #define SWIGTYPE_p_wxGridBagSizer swig_types[51]
2514 #define SWIGTYPE_p_wxGridSizer swig_types[52]
2515 #define SWIGTYPE_p_wxICOHandler swig_types[53]
2516 #define SWIGTYPE_p_wxIcon swig_types[54]
2517 #define SWIGTYPE_p_wxIconBundle swig_types[55]
2518 #define SWIGTYPE_p_wxIconLocation swig_types[56]
2519 #define SWIGTYPE_p_wxIconizeEvent swig_types[57]
2520 #define SWIGTYPE_p_wxIdleEvent swig_types[58]
2521 #define SWIGTYPE_p_wxImage swig_types[59]
2522 #define SWIGTYPE_p_wxImageHandler swig_types[60]
2523 #define SWIGTYPE_p_wxImageList swig_types[61]
2524 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[62]
2525 #define SWIGTYPE_p_wxInitDialogEvent swig_types[63]
2526 #define SWIGTYPE_p_wxJPEGHandler swig_types[64]
2527 #define SWIGTYPE_p_wxKeyEvent swig_types[65]
2528 #define SWIGTYPE_p_wxLanguageInfo swig_types[66]
2529 #define SWIGTYPE_p_wxLayoutConstraints swig_types[67]
2530 #define SWIGTYPE_p_wxLocale swig_types[68]
2531 #define SWIGTYPE_p_wxMask swig_types[69]
2532 #define SWIGTYPE_p_wxMaximizeEvent swig_types[70]
2533 #define SWIGTYPE_p_wxMemoryDC swig_types[71]
2534 #define SWIGTYPE_p_wxMenu swig_types[72]
2535 #define SWIGTYPE_p_wxMenuBar swig_types[73]
2536 #define SWIGTYPE_p_wxMenuEvent swig_types[74]
2537 #define SWIGTYPE_p_wxMenuItem swig_types[75]
2538 #define SWIGTYPE_p_wxMetaFile swig_types[76]
2539 #define SWIGTYPE_p_wxMetaFileDC swig_types[77]
2540 #define SWIGTYPE_p_wxMirrorDC swig_types[78]
2541 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[79]
2542 #define SWIGTYPE_p_wxMouseEvent swig_types[80]
2543 #define SWIGTYPE_p_wxMoveEvent swig_types[81]
2544 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[82]
2545 #define SWIGTYPE_p_wxNativeFontInfo swig_types[83]
2546 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[84]
2547 #define SWIGTYPE_p_wxNcPaintEvent swig_types[85]
2548 #define SWIGTYPE_p_wxNotifyEvent swig_types[86]
2549 #define SWIGTYPE_p_wxObject swig_types[87]
2550 #define SWIGTYPE_p_wxPCXHandler swig_types[88]
2551 #define SWIGTYPE_p_wxPNGHandler swig_types[89]
2552 #define SWIGTYPE_p_wxPNMHandler swig_types[90]
2553 #define SWIGTYPE_p_wxPaintDC swig_types[91]
2554 #define SWIGTYPE_p_wxPaintEvent swig_types[92]
2555 #define SWIGTYPE_p_wxPalette swig_types[93]
2556 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[94]
2557 #define SWIGTYPE_p_wxPaperSize swig_types[95]
2558 #define SWIGTYPE_p_wxPen swig_types[96]
2559 #define SWIGTYPE_p_wxPenList swig_types[97]
2560 #define SWIGTYPE_p_wxPoint swig_types[98]
2561 #define SWIGTYPE_p_wxPostScriptDC swig_types[99]
2562 #define SWIGTYPE_p_wxPrintData swig_types[100]
2563 #define SWIGTYPE_p_wxPrinterDC swig_types[101]
2564 #define SWIGTYPE_p_wxPyApp swig_types[102]
2565 #define SWIGTYPE_p_wxPyCommandEvent swig_types[103]
2566 #define SWIGTYPE_p_wxPyEvent swig_types[104]
2567 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[105]
2568 #define SWIGTYPE_p_wxPyImageHandler swig_types[106]
2569 #define SWIGTYPE_p_wxPySizer swig_types[107]
2570 #define SWIGTYPE_p_wxPyValidator swig_types[108]
2571 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[109]
2572 #define SWIGTYPE_p_wxRect swig_types[110]
2573 #define SWIGTYPE_p_wxRegion swig_types[111]
2574 #define SWIGTYPE_p_wxRegionIterator swig_types[112]
2575 #define SWIGTYPE_p_wxRendererNative swig_types[113]
2576 #define SWIGTYPE_p_wxRendererVersion swig_types[114]
2577 #define SWIGTYPE_p_wxScreenDC swig_types[115]
2578 #define SWIGTYPE_p_wxScrollEvent swig_types[116]
2579 #define SWIGTYPE_p_wxScrollWinEvent swig_types[117]
2580 #define SWIGTYPE_p_wxSetCursorEvent swig_types[118]
2581 #define SWIGTYPE_p_wxShowEvent swig_types[119]
2582 #define SWIGTYPE_p_wxSize swig_types[120]
2583 #define SWIGTYPE_p_wxSizeEvent swig_types[121]
2584 #define SWIGTYPE_p_wxSizer swig_types[122]
2585 #define SWIGTYPE_p_wxSizerItem swig_types[123]
2586 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[124]
2587 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[125]
2588 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[126]
2589 #define SWIGTYPE_p_wxStockGDI swig_types[127]
2590 #define SWIGTYPE_p_wxString swig_types[128]
2591 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[129]
2592 #define SWIGTYPE_p_wxTIFFHandler swig_types[130]
2593 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[131]
2594 #define SWIGTYPE_p_wxValidator swig_types[132]
2595 #define SWIGTYPE_p_wxWindow swig_types[133]
2596 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[134]
2597 #define SWIGTYPE_p_wxWindowDC swig_types[135]
2598 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[136]
2599 #define SWIGTYPE_p_wxXPMHandler swig_types[137]
2600 static swig_type_info *swig_types[139];
2601 static swig_module_info swig_module = {swig_types, 138, 0, 0, 0, 0};
2602 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2603 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2604
2605 /* -------- TYPES TABLE (END) -------- */
2606
2607 #if (PY_VERSION_HEX <= 0x02000000)
2608 # if !defined(SWIG_PYTHON_CLASSIC)
2609 # error "This python version requires to use swig with the '-classic' option"
2610 # endif
2611 #endif
2612 #if (PY_VERSION_HEX <= 0x02020000)
2613 # error "This python version requires to use swig with the '-nomodern' option"
2614 #endif
2615 #if (PY_VERSION_HEX <= 0x02020000)
2616 # error "This python version requires to use swig with the '-nomodernargs' option"
2617 #endif
2618 #ifndef METH_O
2619 # error "This python version requires to use swig with the '-nofastunpack' option"
2620 #endif
2621
2622 /*-----------------------------------------------
2623 @(target):= _gdi_.so
2624 ------------------------------------------------*/
2625 #define SWIG_init init_gdi_
2626
2627 #define SWIG_name "_gdi_"
2628
2629 #define SWIGVERSION 0x010329
2630
2631
2632 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2633 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2634
2635
2636 #include <stdexcept>
2637
2638
2639 namespace swig {
2640 class PyObject_ptr {
2641 protected:
2642 PyObject *_obj;
2643
2644 public:
2645 PyObject_ptr() :_obj(0)
2646 {
2647 }
2648
2649 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2650 {
2651 Py_XINCREF(_obj);
2652 }
2653
2654 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2655 {
2656 if (initial_ref) Py_XINCREF(_obj);
2657 }
2658
2659 PyObject_ptr & operator=(const PyObject_ptr& item)
2660 {
2661 Py_XINCREF(item._obj);
2662 Py_XDECREF(_obj);
2663 _obj = item._obj;
2664 return *this;
2665 }
2666
2667 ~PyObject_ptr()
2668 {
2669 Py_XDECREF(_obj);
2670 }
2671
2672 operator PyObject *() const
2673 {
2674 return _obj;
2675 }
2676
2677 PyObject *operator->() const
2678 {
2679 return _obj;
2680 }
2681 };
2682 }
2683
2684
2685 namespace swig {
2686 struct PyObject_var : PyObject_ptr {
2687 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2688
2689 PyObject_var & operator = (PyObject* obj)
2690 {
2691 Py_XDECREF(_obj);
2692 _obj = obj;
2693 return *this;
2694 }
2695 };
2696 }
2697
2698
2699 #include "wx/wxPython/wxPython.h"
2700 #include "wx/wxPython/pyclasses.h"
2701
2702
2703 static const wxString wxPyEmptyString(wxEmptyString);
2704
2705 #define SWIG_From_long PyInt_FromLong
2706
2707
2708 SWIGINTERNINLINE PyObject *
2709 SWIG_From_int (int value)
2710 {
2711 return SWIG_From_long (value);
2712 }
2713
2714
2715 #include <limits.h>
2716 #ifndef LLONG_MIN
2717 # define LLONG_MIN LONG_LONG_MIN
2718 #endif
2719 #ifndef LLONG_MAX
2720 # define LLONG_MAX LONG_LONG_MAX
2721 #endif
2722 #ifndef ULLONG_MAX
2723 # define ULLONG_MAX ULONG_LONG_MAX
2724 #endif
2725
2726
2727 SWIGINTERN int
2728 SWIG_AsVal_long (PyObject* obj, long* val)
2729 {
2730 if (PyNumber_Check(obj)) {
2731 if (val) *val = PyInt_AsLong(obj);
2732 return SWIG_OK;
2733 }
2734 return SWIG_TypeError;
2735 }
2736
2737
2738 SWIGINTERN int
2739 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2740 {
2741 long v = 0;
2742 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2743 return SWIG_TypeError;
2744 }
2745 else if (val)
2746 *val = (unsigned long)v;
2747 return SWIG_OK;
2748 }
2749
2750
2751 SWIGINTERN int
2752 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2753 {
2754 unsigned long v;
2755 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2756 if (SWIG_IsOK(res)) {
2757 if ((v > UCHAR_MAX)) {
2758 return SWIG_OverflowError;
2759 } else {
2760 if (val) *val = static_cast< unsigned char >(v);
2761 }
2762 }
2763 return res;
2764 }
2765
2766
2767 SWIGINTERNINLINE PyObject*
2768 SWIG_From_unsigned_SS_long (unsigned long value)
2769 {
2770 return (value > LONG_MAX) ?
2771 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2772 }
2773
2774
2775 SWIGINTERNINLINE PyObject *
2776 SWIG_From_unsigned_SS_char (unsigned char value)
2777 {
2778 return SWIG_From_unsigned_SS_long (value);
2779 }
2780
2781 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2782 wxColour temp, *obj = &temp;
2783 if ( other == Py_None ) return false;
2784 if ( ! wxColour_helper(other, &obj) ) {
2785 PyErr_Clear();
2786 return false;
2787 }
2788 return self->operator==(*obj);
2789 }
2790 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2791 wxColour temp, *obj = &temp;
2792 if ( other == Py_None ) return true;
2793 if ( ! wxColour_helper(other, &obj)) {
2794 PyErr_Clear();
2795 return true;
2796 }
2797 return self->operator!=(*obj);
2798 }
2799 SWIGINTERN PyObject *wxColour_Get(wxColour *self){
2800 PyObject* rv = PyTuple_New(3);
2801 int red = -1;
2802 int green = -1;
2803 int blue = -1;
2804 if (self->Ok()) {
2805 red = self->Red();
2806 green = self->Green();
2807 blue = self->Blue();
2808 }
2809 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2810 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2811 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2812 return rv;
2813 }
2814 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2815 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2816 }
2817
2818 SWIGINTERN int
2819 SWIG_AsVal_int (PyObject * obj, int *val)
2820 {
2821 long v;
2822 int res = SWIG_AsVal_long (obj, &v);
2823 if (SWIG_IsOK(res)) {
2824 if ((v < INT_MIN || v > INT_MAX)) {
2825 return SWIG_OverflowError;
2826 } else {
2827 if (val) *val = static_cast< int >(v);
2828 }
2829 }
2830 return res;
2831 }
2832
2833 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2834 wxDash* dashes;
2835 int count = self->GetDashes(&dashes);
2836 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2837 PyObject* retval = PyList_New(0);
2838 for (int x=0; x<count; x++) {
2839 PyObject* pyint = PyInt_FromLong(dashes[x]);
2840 PyList_Append(retval, pyint);
2841 Py_DECREF(pyint);
2842 }
2843 wxPyEndBlockThreads(blocked);
2844 return retval;
2845 }
2846 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2847 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2848 int size = PyList_Size(pyDashes);
2849 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2850
2851 // black magic warning! The array of wxDashes needs to exist as
2852 // long as the pen does because wxPen does not copy the array. So
2853 // stick a copy in a Python string object and attach it to _self,
2854 // and then call SetDashes with a pointer to that array. Then
2855 // when the Python pen object is destroyed the array will be
2856 // cleaned up too.
2857 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2858 PyObject_SetAttrString(_self, "_dashes", strDashes);
2859
2860 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2861 delete [] dashes;
2862 Py_DECREF(strDashes);
2863 wxPyEndBlockThreads(blocked);
2864 }
2865 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2866 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2867
2868 #include <wx/image.h>
2869
2870 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2871 char** cArray = NULL;
2872 int count;
2873
2874 if (!PyList_Check(listOfStrings)) {
2875 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2876 return NULL;
2877 }
2878 count = PyList_Size(listOfStrings);
2879 cArray = new char*[count];
2880
2881 for(int x=0; x<count; x++) {
2882 // TODO: Need some validation and error checking here
2883 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2884 }
2885 return cArray;
2886 }
2887
2888
2889 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2890 char** cArray = NULL;
2891 wxBitmap* bmp;
2892
2893 cArray = ConvertListOfStrings(listOfStrings);
2894 if (! cArray)
2895 return NULL;
2896 bmp = new wxBitmap(cArray);
2897 delete [] cArray;
2898 return bmp;
2899 }
2900 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2901 char* buf;
2902 int length;
2903 PyString_AsStringAndSize(bits, &buf, &length);
2904 return new wxBitmap(buf, width, height, depth);
2905 }
2906 SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2907 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2908 wxSize size(self->GetWidth(), self->GetHeight());
2909 return size;
2910 }
2911 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2912 wxMask *mask = new wxMask(*self, colour);
2913 self->SetMask(mask);
2914 }
2915 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2916 self->SetWidth(size.x);
2917 self->SetHeight(size.y);
2918 }
2919 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2920 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2921 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
2922 if ( !colour.Ok() )
2923 return new wxMask(bitmap, *wxBLACK);
2924 else
2925 return new wxMask(bitmap, colour);
2926 }
2927
2928 #include <wx/iconbndl.h>
2929
2930 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
2931 wxIcon* icon = new wxIcon();
2932 icon->CopyFromBitmap(bmp);
2933 return icon;
2934 }
2935 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
2936 char** cArray = NULL;
2937 wxIcon* icon;
2938
2939 cArray = ConvertListOfStrings(listOfStrings);
2940 if (! cArray)
2941 return NULL;
2942 icon = new wxIcon(cArray);
2943 delete [] cArray;
2944 return icon;
2945 }
2946 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2947 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2948
2949 return new wxIconLocation(*filename, num);
2950
2951
2952
2953 }
2954 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2955
2956 self->SetIndex(num);
2957
2958
2959
2960 }
2961 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
2962
2963 return self->GetIndex();
2964
2965
2966
2967 }
2968 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2969 #ifdef __WXGTK__
2970 wxImage img(cursorName, type);
2971 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2972 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2973 return new wxCursor(img);
2974 #else
2975 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
2976 #endif
2977 }
2978 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2979
2980
2981 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
2982 (*self) ++;
2983 }
2984 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
2985 return self->operator bool();
2986 }
2987
2988 #include <wx/fontutil.h>
2989 #include <wx/fontmap.h>
2990 #include <wx/fontenum.h>
2991
2992
2993 SWIGINTERN int
2994 SWIG_AsVal_bool (PyObject *obj, bool *val)
2995 {
2996 if (obj == Py_True) {
2997 if (val) *val = true;
2998 return SWIG_OK;
2999 } else if (obj == Py_False) {
3000 if (val) *val = false;
3001 return SWIG_OK;
3002 } else {
3003 long v = 0;
3004 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
3005 if (SWIG_IsOK(res) && val) *val = v ? true : false;
3006 return res;
3007 }
3008 }
3009
3010 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3011 return self->ToString();
3012 }
3013
3014 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3015 { wxPyRaiseNotImplemented(); return NULL; }
3016
3017 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3018 { wxPyRaiseNotImplemented(); return false; }
3019
3020
3021 SWIGINTERNINLINE PyObject *
3022 SWIG_From_size_t (size_t value)
3023 {
3024 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3025 }
3026
3027
3028 SWIGINTERNINLINE int
3029 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3030 {
3031 unsigned long v;
3032 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3033 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3034 return res;
3035 }
3036
3037 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3038 wxFontEncoding alt_enc;
3039 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3040 return PyInt_FromLong(alt_enc);
3041 else {
3042 Py_INCREF(Py_None);
3043 return Py_None;
3044 }
3045 }
3046 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3047 wxNativeFontInfo nfi;
3048 nfi.FromString(info);
3049 return new wxFont(nfi);
3050 }
3051 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3052 return wxFont::New(pointSize, family, flags, face, encoding);
3053 }
3054 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3055 return wxFontBase::New(pixelSize, family,
3056 style, weight, underlined,
3057 face, encoding);
3058 }
3059 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3060 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3061 }
3062 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3063 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3064
3065 class wxPyFontEnumerator : public wxFontEnumerator {
3066 public:
3067 wxPyFontEnumerator() {}
3068 ~wxPyFontEnumerator() {}
3069
3070 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3071 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3072
3073 PYPRIVATE;
3074 };
3075
3076 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3077 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3078
3079
3080 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
3081 PyObject* ret;
3082 wxArrayString* arr = self->GetEncodings();
3083 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3084 if (arr)
3085 ret = wxArrayString2PyList_helper(*arr);
3086 else
3087 ret = PyList_New(0);
3088 wxPyEndBlockThreads(blocked);
3089 return ret;
3090 }
3091 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
3092 PyObject* ret;
3093 wxArrayString* arr = self->GetFacenames();
3094 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3095 if (arr)
3096 ret = wxArrayString2PyList_helper(*arr);
3097 else
3098 ret = PyList_New(0);
3099 wxPyEndBlockThreads(blocked);
3100 return ret;
3101 }
3102
3103 #include <locale.h>
3104
3105 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3106 wxLocale* loc;
3107 if (language == -1)
3108 loc = new wxLocale();
3109 else
3110 loc = new wxLocale(language, flags);
3111 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3112 // for the floating point conversions and such to work right.
3113 #if PY_VERSION_HEX < 0x02040000
3114 setlocale(LC_NUMERIC, "C");
3115 #endif
3116 return loc;
3117 }
3118 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3119 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3120 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3121 // for the floating point conversions and such to work right.
3122 #if PY_VERSION_HEX < 0x02040000
3123 setlocale(LC_NUMERIC, "C");
3124 #endif
3125 return rc;
3126 }
3127 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3128 bool rc = self->Init(language, flags);
3129 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3130 // for the floating point conversions and such to work right.
3131 #if PY_VERSION_HEX < 0x02040000
3132 setlocale(LC_NUMERIC, "C");
3133 #endif
3134 return rc;
3135 }
3136
3137 #include "wx/wxPython/pydrawxxx.h"
3138
3139 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3140 wxColour col;
3141 self->GetPixel(x, y, &col);
3142 return col;
3143 }
3144 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3145 wxColour col;
3146 self->GetPixel(pt, &col);
3147 return col;
3148 }
3149
3150 SWIGINTERN int
3151 SWIG_AsVal_double (PyObject *obj, double* val)
3152 {
3153 if (PyNumber_Check(obj)) {
3154 if (val) *val = PyFloat_AsDouble(obj);
3155 return SWIG_OK;
3156 }
3157 return SWIG_TypeError;
3158 }
3159
3160 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3161 wxRect rv;
3162 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3163 return rv;
3164 }
3165 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3166 wxRect rect;
3167 self->GetClippingBox(rect);
3168 return rect;
3169 }
3170 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3171 wxArrayInt widths;
3172 self->GetPartialTextExtents(text, widths);
3173 return widths;
3174 }
3175
3176 #define SWIG_From_double PyFloat_FromDouble
3177
3178 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3179 self->SetLogicalOrigin(point.x, point.y);
3180 }
3181 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3182 self->SetDeviceOrigin(point.x, point.y);
3183 }
3184 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3185 self->CalcBoundingBox(point.x, point.y);
3186 }
3187 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3188 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3189 }
3190 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3191 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3192 }
3193 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3194 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3195 }
3196 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3197 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3198 }
3199 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3200 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3201 }
3202 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3203 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3204 }
3205
3206 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3207 *x1 = dc->MinX();
3208 *y1 = dc->MinY();
3209 *x2 = dc->MaxX();
3210 *y2 = dc->MaxY();
3211 }
3212
3213
3214 #include <wx/dcbuffer.h>
3215
3216
3217 #include <wx/dcps.h>
3218
3219
3220 #include <wx/metafile.h>
3221
3222
3223
3224 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3225 self->AddColour(name, wxColour(red, green, blue));
3226 }
3227
3228 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3229 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3230 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3231 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3232
3233
3234 #include <wx/effects.h>
3235
3236
3237 #include "wx/renderer.h"
3238
3239
3240 SWIGINTERNINLINE PyObject*
3241 SWIG_From_bool (bool value)
3242 {
3243 return PyBool_FromLong(value ? 1 : 0);
3244 }
3245
3246 #ifdef __cplusplus
3247 extern "C" {
3248 #endif
3249 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3250 PyObject *resultobj = 0;
3251 wxGDIObject *result = 0 ;
3252
3253 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3254 {
3255 if (!wxPyCheckForApp()) SWIG_fail;
3256 PyThreadState* __tstate = wxPyBeginAllowThreads();
3257 result = (wxGDIObject *)new wxGDIObject();
3258 wxPyEndAllowThreads(__tstate);
3259 if (PyErr_Occurred()) SWIG_fail;
3260 }
3261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3262 return resultobj;
3263 fail:
3264 return NULL;
3265 }
3266
3267
3268 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3269 PyObject *resultobj = 0;
3270 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3271 void *argp1 = 0 ;
3272 int res1 = 0 ;
3273 PyObject *swig_obj[1] ;
3274
3275 if (!args) SWIG_fail;
3276 swig_obj[0] = args;
3277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3278 if (!SWIG_IsOK(res1)) {
3279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3280 }
3281 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3282 {
3283 PyThreadState* __tstate = wxPyBeginAllowThreads();
3284 delete arg1;
3285
3286 wxPyEndAllowThreads(__tstate);
3287 if (PyErr_Occurred()) SWIG_fail;
3288 }
3289 resultobj = SWIG_Py_Void();
3290 return resultobj;
3291 fail:
3292 return NULL;
3293 }
3294
3295
3296 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3297 PyObject *resultobj = 0;
3298 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3299 bool result;
3300 void *argp1 = 0 ;
3301 int res1 = 0 ;
3302 PyObject *swig_obj[1] ;
3303
3304 if (!args) SWIG_fail;
3305 swig_obj[0] = args;
3306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3307 if (!SWIG_IsOK(res1)) {
3308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3309 }
3310 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3311 {
3312 PyThreadState* __tstate = wxPyBeginAllowThreads();
3313 result = (bool)(arg1)->IsNull();
3314 wxPyEndAllowThreads(__tstate);
3315 if (PyErr_Occurred()) SWIG_fail;
3316 }
3317 {
3318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3319 }
3320 return resultobj;
3321 fail:
3322 return NULL;
3323 }
3324
3325
3326 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3327 PyObject *obj;
3328 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3329 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3330 return SWIG_Py_Void();
3331 }
3332
3333 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3334 return SWIG_Python_InitShadowInstance(args);
3335 }
3336
3337 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3338 PyObject *resultobj = 0;
3339 byte arg1 = (byte) 0 ;
3340 byte arg2 = (byte) 0 ;
3341 byte arg3 = (byte) 0 ;
3342 wxColour *result = 0 ;
3343 unsigned char val1 ;
3344 int ecode1 = 0 ;
3345 unsigned char val2 ;
3346 int ecode2 = 0 ;
3347 unsigned char val3 ;
3348 int ecode3 = 0 ;
3349 PyObject * obj0 = 0 ;
3350 PyObject * obj1 = 0 ;
3351 PyObject * obj2 = 0 ;
3352 char * kwnames[] = {
3353 (char *) "red",(char *) "green",(char *) "blue", NULL
3354 };
3355
3356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3357 if (obj0) {
3358 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3359 if (!SWIG_IsOK(ecode1)) {
3360 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3361 }
3362 arg1 = static_cast< byte >(val1);
3363 }
3364 if (obj1) {
3365 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3366 if (!SWIG_IsOK(ecode2)) {
3367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3368 }
3369 arg2 = static_cast< byte >(val2);
3370 }
3371 if (obj2) {
3372 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3373 if (!SWIG_IsOK(ecode3)) {
3374 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3375 }
3376 arg3 = static_cast< byte >(val3);
3377 }
3378 {
3379 PyThreadState* __tstate = wxPyBeginAllowThreads();
3380 result = (wxColour *)new wxColour(arg1,arg2,arg3);
3381 wxPyEndAllowThreads(__tstate);
3382 if (PyErr_Occurred()) SWIG_fail;
3383 }
3384 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3385 return resultobj;
3386 fail:
3387 return NULL;
3388 }
3389
3390
3391 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3392 PyObject *resultobj = 0;
3393 wxString *arg1 = 0 ;
3394 wxColour *result = 0 ;
3395 bool temp1 = false ;
3396 PyObject * obj0 = 0 ;
3397 char * kwnames[] = {
3398 (char *) "colorName", NULL
3399 };
3400
3401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3402 {
3403 arg1 = wxString_in_helper(obj0);
3404 if (arg1 == NULL) SWIG_fail;
3405 temp1 = true;
3406 }
3407 {
3408 if (!wxPyCheckForApp()) SWIG_fail;
3409 PyThreadState* __tstate = wxPyBeginAllowThreads();
3410 result = (wxColour *)new wxColour((wxString const &)*arg1);
3411 wxPyEndAllowThreads(__tstate);
3412 if (PyErr_Occurred()) SWIG_fail;
3413 }
3414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3415 {
3416 if (temp1)
3417 delete arg1;
3418 }
3419 return resultobj;
3420 fail:
3421 {
3422 if (temp1)
3423 delete arg1;
3424 }
3425 return NULL;
3426 }
3427
3428
3429 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3430 PyObject *resultobj = 0;
3431 unsigned long arg1 ;
3432 wxColour *result = 0 ;
3433 unsigned long val1 ;
3434 int ecode1 = 0 ;
3435 PyObject * obj0 = 0 ;
3436 char * kwnames[] = {
3437 (char *) "colRGB", NULL
3438 };
3439
3440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3441 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3442 if (!SWIG_IsOK(ecode1)) {
3443 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3444 }
3445 arg1 = static_cast< unsigned long >(val1);
3446 {
3447 PyThreadState* __tstate = wxPyBeginAllowThreads();
3448 result = (wxColour *)new wxColour(arg1);
3449 wxPyEndAllowThreads(__tstate);
3450 if (PyErr_Occurred()) SWIG_fail;
3451 }
3452 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3453 return resultobj;
3454 fail:
3455 return NULL;
3456 }
3457
3458
3459 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3460 PyObject *resultobj = 0;
3461 wxColour *arg1 = (wxColour *) 0 ;
3462 void *argp1 = 0 ;
3463 int res1 = 0 ;
3464 PyObject *swig_obj[1] ;
3465
3466 if (!args) SWIG_fail;
3467 swig_obj[0] = args;
3468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3469 if (!SWIG_IsOK(res1)) {
3470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3471 }
3472 arg1 = reinterpret_cast< wxColour * >(argp1);
3473 {
3474 PyThreadState* __tstate = wxPyBeginAllowThreads();
3475 delete arg1;
3476
3477 wxPyEndAllowThreads(__tstate);
3478 if (PyErr_Occurred()) SWIG_fail;
3479 }
3480 resultobj = SWIG_Py_Void();
3481 return resultobj;
3482 fail:
3483 return NULL;
3484 }
3485
3486
3487 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3488 PyObject *resultobj = 0;
3489 wxColour *arg1 = (wxColour *) 0 ;
3490 byte result;
3491 void *argp1 = 0 ;
3492 int res1 = 0 ;
3493 PyObject *swig_obj[1] ;
3494
3495 if (!args) SWIG_fail;
3496 swig_obj[0] = args;
3497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3498 if (!SWIG_IsOK(res1)) {
3499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3500 }
3501 arg1 = reinterpret_cast< wxColour * >(argp1);
3502 {
3503 PyThreadState* __tstate = wxPyBeginAllowThreads();
3504 result = (byte)(arg1)->Red();
3505 wxPyEndAllowThreads(__tstate);
3506 if (PyErr_Occurred()) SWIG_fail;
3507 }
3508 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3509 return resultobj;
3510 fail:
3511 return NULL;
3512 }
3513
3514
3515 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3516 PyObject *resultobj = 0;
3517 wxColour *arg1 = (wxColour *) 0 ;
3518 byte result;
3519 void *argp1 = 0 ;
3520 int res1 = 0 ;
3521 PyObject *swig_obj[1] ;
3522
3523 if (!args) SWIG_fail;
3524 swig_obj[0] = args;
3525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3526 if (!SWIG_IsOK(res1)) {
3527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3528 }
3529 arg1 = reinterpret_cast< wxColour * >(argp1);
3530 {
3531 PyThreadState* __tstate = wxPyBeginAllowThreads();
3532 result = (byte)(arg1)->Green();
3533 wxPyEndAllowThreads(__tstate);
3534 if (PyErr_Occurred()) SWIG_fail;
3535 }
3536 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3537 return resultobj;
3538 fail:
3539 return NULL;
3540 }
3541
3542
3543 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3544 PyObject *resultobj = 0;
3545 wxColour *arg1 = (wxColour *) 0 ;
3546 byte result;
3547 void *argp1 = 0 ;
3548 int res1 = 0 ;
3549 PyObject *swig_obj[1] ;
3550
3551 if (!args) SWIG_fail;
3552 swig_obj[0] = args;
3553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3554 if (!SWIG_IsOK(res1)) {
3555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3556 }
3557 arg1 = reinterpret_cast< wxColour * >(argp1);
3558 {
3559 PyThreadState* __tstate = wxPyBeginAllowThreads();
3560 result = (byte)(arg1)->Blue();
3561 wxPyEndAllowThreads(__tstate);
3562 if (PyErr_Occurred()) SWIG_fail;
3563 }
3564 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3565 return resultobj;
3566 fail:
3567 return NULL;
3568 }
3569
3570
3571 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3572 PyObject *resultobj = 0;
3573 wxColour *arg1 = (wxColour *) 0 ;
3574 bool result;
3575 void *argp1 = 0 ;
3576 int res1 = 0 ;
3577 PyObject *swig_obj[1] ;
3578
3579 if (!args) SWIG_fail;
3580 swig_obj[0] = args;
3581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3582 if (!SWIG_IsOK(res1)) {
3583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3584 }
3585 arg1 = reinterpret_cast< wxColour * >(argp1);
3586 {
3587 PyThreadState* __tstate = wxPyBeginAllowThreads();
3588 result = (bool)(arg1)->Ok();
3589 wxPyEndAllowThreads(__tstate);
3590 if (PyErr_Occurred()) SWIG_fail;
3591 }
3592 {
3593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3594 }
3595 return resultobj;
3596 fail:
3597 return NULL;
3598 }
3599
3600
3601 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3602 PyObject *resultobj = 0;
3603 wxColour *arg1 = (wxColour *) 0 ;
3604 byte arg2 ;
3605 byte arg3 ;
3606 byte arg4 ;
3607 void *argp1 = 0 ;
3608 int res1 = 0 ;
3609 unsigned char val2 ;
3610 int ecode2 = 0 ;
3611 unsigned char val3 ;
3612 int ecode3 = 0 ;
3613 unsigned char val4 ;
3614 int ecode4 = 0 ;
3615 PyObject * obj0 = 0 ;
3616 PyObject * obj1 = 0 ;
3617 PyObject * obj2 = 0 ;
3618 PyObject * obj3 = 0 ;
3619 char * kwnames[] = {
3620 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3621 };
3622
3623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3625 if (!SWIG_IsOK(res1)) {
3626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3627 }
3628 arg1 = reinterpret_cast< wxColour * >(argp1);
3629 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3630 if (!SWIG_IsOK(ecode2)) {
3631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3632 }
3633 arg2 = static_cast< byte >(val2);
3634 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3635 if (!SWIG_IsOK(ecode3)) {
3636 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3637 }
3638 arg3 = static_cast< byte >(val3);
3639 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3640 if (!SWIG_IsOK(ecode4)) {
3641 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3642 }
3643 arg4 = static_cast< byte >(val4);
3644 {
3645 PyThreadState* __tstate = wxPyBeginAllowThreads();
3646 (arg1)->Set(arg2,arg3,arg4);
3647 wxPyEndAllowThreads(__tstate);
3648 if (PyErr_Occurred()) SWIG_fail;
3649 }
3650 resultobj = SWIG_Py_Void();
3651 return resultobj;
3652 fail:
3653 return NULL;
3654 }
3655
3656
3657 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3658 PyObject *resultobj = 0;
3659 wxColour *arg1 = (wxColour *) 0 ;
3660 unsigned long arg2 ;
3661 void *argp1 = 0 ;
3662 int res1 = 0 ;
3663 unsigned long val2 ;
3664 int ecode2 = 0 ;
3665 PyObject * obj0 = 0 ;
3666 PyObject * obj1 = 0 ;
3667 char * kwnames[] = {
3668 (char *) "self",(char *) "colRGB", NULL
3669 };
3670
3671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
3672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3673 if (!SWIG_IsOK(res1)) {
3674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3675 }
3676 arg1 = reinterpret_cast< wxColour * >(argp1);
3677 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
3678 if (!SWIG_IsOK(ecode2)) {
3679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3680 }
3681 arg2 = static_cast< unsigned long >(val2);
3682 {
3683 PyThreadState* __tstate = wxPyBeginAllowThreads();
3684 (arg1)->Set(arg2);
3685 wxPyEndAllowThreads(__tstate);
3686 if (PyErr_Occurred()) SWIG_fail;
3687 }
3688 resultobj = SWIG_Py_Void();
3689 return resultobj;
3690 fail:
3691 return NULL;
3692 }
3693
3694
3695 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3696 PyObject *resultobj = 0;
3697 wxColour *arg1 = (wxColour *) 0 ;
3698 wxString *arg2 = 0 ;
3699 void *argp1 = 0 ;
3700 int res1 = 0 ;
3701 bool temp2 = false ;
3702 PyObject * obj0 = 0 ;
3703 PyObject * obj1 = 0 ;
3704 char * kwnames[] = {
3705 (char *) "self",(char *) "colourName", NULL
3706 };
3707
3708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
3709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3710 if (!SWIG_IsOK(res1)) {
3711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3712 }
3713 arg1 = reinterpret_cast< wxColour * >(argp1);
3714 {
3715 arg2 = wxString_in_helper(obj1);
3716 if (arg2 == NULL) SWIG_fail;
3717 temp2 = true;
3718 }
3719 {
3720 PyThreadState* __tstate = wxPyBeginAllowThreads();
3721 (arg1)->InitFromName((wxString const &)*arg2);
3722 wxPyEndAllowThreads(__tstate);
3723 if (PyErr_Occurred()) SWIG_fail;
3724 }
3725 resultobj = SWIG_Py_Void();
3726 {
3727 if (temp2)
3728 delete arg2;
3729 }
3730 return resultobj;
3731 fail:
3732 {
3733 if (temp2)
3734 delete arg2;
3735 }
3736 return NULL;
3737 }
3738
3739
3740 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3741 PyObject *resultobj = 0;
3742 wxColour *arg1 = (wxColour *) 0 ;
3743 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
3744 wxString result;
3745 void *argp1 = 0 ;
3746 int res1 = 0 ;
3747 long val2 ;
3748 int ecode2 = 0 ;
3749 PyObject * obj0 = 0 ;
3750 PyObject * obj1 = 0 ;
3751 char * kwnames[] = {
3752 (char *) "self",(char *) "flags", NULL
3753 };
3754
3755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
3756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3757 if (!SWIG_IsOK(res1)) {
3758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
3759 }
3760 arg1 = reinterpret_cast< wxColour * >(argp1);
3761 if (obj1) {
3762 ecode2 = SWIG_AsVal_long(obj1, &val2);
3763 if (!SWIG_IsOK(ecode2)) {
3764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
3765 }
3766 arg2 = static_cast< long >(val2);
3767 }
3768 {
3769 PyThreadState* __tstate = wxPyBeginAllowThreads();
3770 result = ((wxColour const *)arg1)->GetAsString(arg2);
3771 wxPyEndAllowThreads(__tstate);
3772 if (PyErr_Occurred()) SWIG_fail;
3773 }
3774 {
3775 #if wxUSE_UNICODE
3776 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3777 #else
3778 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3779 #endif
3780 }
3781 return resultobj;
3782 fail:
3783 return NULL;
3784 }
3785
3786
3787 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3788 PyObject *resultobj = 0;
3789 wxColour *arg1 = (wxColour *) 0 ;
3790 long result;
3791 void *argp1 = 0 ;
3792 int res1 = 0 ;
3793 PyObject *swig_obj[1] ;
3794
3795 if (!args) SWIG_fail;
3796 swig_obj[0] = args;
3797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3798 if (!SWIG_IsOK(res1)) {
3799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3800 }
3801 arg1 = reinterpret_cast< wxColour * >(argp1);
3802 {
3803 PyThreadState* __tstate = wxPyBeginAllowThreads();
3804 result = (long)((wxColour const *)arg1)->GetPixel();
3805 wxPyEndAllowThreads(__tstate);
3806 if (PyErr_Occurred()) SWIG_fail;
3807 }
3808 resultobj = SWIG_From_long(static_cast< long >(result));
3809 return resultobj;
3810 fail:
3811 return NULL;
3812 }
3813
3814
3815 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3816 PyObject *resultobj = 0;
3817 wxColour *arg1 = (wxColour *) 0 ;
3818 PyObject *arg2 = (PyObject *) 0 ;
3819 bool result;
3820 void *argp1 = 0 ;
3821 int res1 = 0 ;
3822 PyObject * obj0 = 0 ;
3823 PyObject * obj1 = 0 ;
3824 char * kwnames[] = {
3825 (char *) "self",(char *) "other", NULL
3826 };
3827
3828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3830 if (!SWIG_IsOK(res1)) {
3831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
3832 }
3833 arg1 = reinterpret_cast< wxColour * >(argp1);
3834 arg2 = obj1;
3835 {
3836 result = (bool)wxColour___eq__(arg1,arg2);
3837 if (PyErr_Occurred()) SWIG_fail;
3838 }
3839 {
3840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3841 }
3842 return resultobj;
3843 fail:
3844 return NULL;
3845 }
3846
3847
3848 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3849 PyObject *resultobj = 0;
3850 wxColour *arg1 = (wxColour *) 0 ;
3851 PyObject *arg2 = (PyObject *) 0 ;
3852 bool result;
3853 void *argp1 = 0 ;
3854 int res1 = 0 ;
3855 PyObject * obj0 = 0 ;
3856 PyObject * obj1 = 0 ;
3857 char * kwnames[] = {
3858 (char *) "self",(char *) "other", NULL
3859 };
3860
3861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
3862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3863 if (!SWIG_IsOK(res1)) {
3864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
3865 }
3866 arg1 = reinterpret_cast< wxColour * >(argp1);
3867 arg2 = obj1;
3868 {
3869 result = (bool)wxColour___ne__(arg1,arg2);
3870 if (PyErr_Occurred()) SWIG_fail;
3871 }
3872 {
3873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3874 }
3875 return resultobj;
3876 fail:
3877 return NULL;
3878 }
3879
3880
3881 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3882 PyObject *resultobj = 0;
3883 wxColour *arg1 = (wxColour *) 0 ;
3884 PyObject *result = 0 ;
3885 void *argp1 = 0 ;
3886 int res1 = 0 ;
3887 PyObject *swig_obj[1] ;
3888
3889 if (!args) SWIG_fail;
3890 swig_obj[0] = args;
3891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3892 if (!SWIG_IsOK(res1)) {
3893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
3894 }
3895 arg1 = reinterpret_cast< wxColour * >(argp1);
3896 {
3897 PyThreadState* __tstate = wxPyBeginAllowThreads();
3898 result = (PyObject *)wxColour_Get(arg1);
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 resultobj = result;
3903 return resultobj;
3904 fail:
3905 return NULL;
3906 }
3907
3908
3909 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3910 PyObject *resultobj = 0;
3911 wxColour *arg1 = (wxColour *) 0 ;
3912 unsigned long result;
3913 void *argp1 = 0 ;
3914 int res1 = 0 ;
3915 PyObject *swig_obj[1] ;
3916
3917 if (!args) SWIG_fail;
3918 swig_obj[0] = args;
3919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3920 if (!SWIG_IsOK(res1)) {
3921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3922 }
3923 arg1 = reinterpret_cast< wxColour * >(argp1);
3924 {
3925 PyThreadState* __tstate = wxPyBeginAllowThreads();
3926 result = (unsigned long)wxColour_GetRGB(arg1);
3927 wxPyEndAllowThreads(__tstate);
3928 if (PyErr_Occurred()) SWIG_fail;
3929 }
3930 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
3931 return resultobj;
3932 fail:
3933 return NULL;
3934 }
3935
3936
3937 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3938 PyObject *obj;
3939 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3940 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
3941 return SWIG_Py_Void();
3942 }
3943
3944 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3945 return SWIG_Python_InitShadowInstance(args);
3946 }
3947
3948 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3949 PyObject *resultobj = 0;
3950 int arg1 ;
3951 unsigned char *arg2 = (unsigned char *) 0 ;
3952 unsigned char *arg3 = (unsigned char *) 0 ;
3953 unsigned char *arg4 = (unsigned char *) 0 ;
3954 wxPalette *result = 0 ;
3955 int val1 ;
3956 int ecode1 = 0 ;
3957 void *argp2 = 0 ;
3958 int res2 = 0 ;
3959 void *argp3 = 0 ;
3960 int res3 = 0 ;
3961 void *argp4 = 0 ;
3962 int res4 = 0 ;
3963 PyObject * obj0 = 0 ;
3964 PyObject * obj1 = 0 ;
3965 PyObject * obj2 = 0 ;
3966 PyObject * obj3 = 0 ;
3967 char * kwnames[] = {
3968 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3969 };
3970
3971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3972 ecode1 = SWIG_AsVal_int(obj0, &val1);
3973 if (!SWIG_IsOK(ecode1)) {
3974 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
3975 }
3976 arg1 = static_cast< int >(val1);
3977 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
3978 if (!SWIG_IsOK(res2)) {
3979 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
3980 }
3981 arg2 = reinterpret_cast< unsigned char * >(argp2);
3982 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
3983 if (!SWIG_IsOK(res3)) {
3984 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
3985 }
3986 arg3 = reinterpret_cast< unsigned char * >(argp3);
3987 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
3988 if (!SWIG_IsOK(res4)) {
3989 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
3990 }
3991 arg4 = reinterpret_cast< unsigned char * >(argp4);
3992 {
3993 if (!wxPyCheckForApp()) SWIG_fail;
3994 PyThreadState* __tstate = wxPyBeginAllowThreads();
3995 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
3996 wxPyEndAllowThreads(__tstate);
3997 if (PyErr_Occurred()) SWIG_fail;
3998 }
3999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4000 return resultobj;
4001 fail:
4002 return NULL;
4003 }
4004
4005
4006 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4007 PyObject *resultobj = 0;
4008 wxPalette *arg1 = (wxPalette *) 0 ;
4009 void *argp1 = 0 ;
4010 int res1 = 0 ;
4011 PyObject *swig_obj[1] ;
4012
4013 if (!args) SWIG_fail;
4014 swig_obj[0] = args;
4015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4016 if (!SWIG_IsOK(res1)) {
4017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4018 }
4019 arg1 = reinterpret_cast< wxPalette * >(argp1);
4020 {
4021 PyThreadState* __tstate = wxPyBeginAllowThreads();
4022 delete arg1;
4023
4024 wxPyEndAllowThreads(__tstate);
4025 if (PyErr_Occurred()) SWIG_fail;
4026 }
4027 resultobj = SWIG_Py_Void();
4028 return resultobj;
4029 fail:
4030 return NULL;
4031 }
4032
4033
4034 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4035 PyObject *resultobj = 0;
4036 wxPalette *arg1 = (wxPalette *) 0 ;
4037 byte arg2 ;
4038 byte arg3 ;
4039 byte arg4 ;
4040 int result;
4041 void *argp1 = 0 ;
4042 int res1 = 0 ;
4043 unsigned char val2 ;
4044 int ecode2 = 0 ;
4045 unsigned char val3 ;
4046 int ecode3 = 0 ;
4047 unsigned char val4 ;
4048 int ecode4 = 0 ;
4049 PyObject * obj0 = 0 ;
4050 PyObject * obj1 = 0 ;
4051 PyObject * obj2 = 0 ;
4052 PyObject * obj3 = 0 ;
4053 char * kwnames[] = {
4054 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4055 };
4056
4057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4059 if (!SWIG_IsOK(res1)) {
4060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4061 }
4062 arg1 = reinterpret_cast< wxPalette * >(argp1);
4063 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4064 if (!SWIG_IsOK(ecode2)) {
4065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4066 }
4067 arg2 = static_cast< byte >(val2);
4068 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4069 if (!SWIG_IsOK(ecode3)) {
4070 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4071 }
4072 arg3 = static_cast< byte >(val3);
4073 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4074 if (!SWIG_IsOK(ecode4)) {
4075 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4076 }
4077 arg4 = static_cast< byte >(val4);
4078 {
4079 PyThreadState* __tstate = wxPyBeginAllowThreads();
4080 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4081 wxPyEndAllowThreads(__tstate);
4082 if (PyErr_Occurred()) SWIG_fail;
4083 }
4084 resultobj = SWIG_From_int(static_cast< int >(result));
4085 return resultobj;
4086 fail:
4087 return NULL;
4088 }
4089
4090
4091 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4092 PyObject *resultobj = 0;
4093 wxPalette *arg1 = (wxPalette *) 0 ;
4094 int arg2 ;
4095 byte *arg3 = (byte *) 0 ;
4096 byte *arg4 = (byte *) 0 ;
4097 byte *arg5 = (byte *) 0 ;
4098 bool result;
4099 void *argp1 = 0 ;
4100 int res1 = 0 ;
4101 int val2 ;
4102 int ecode2 = 0 ;
4103 byte temp3 ;
4104 int res3 = SWIG_TMPOBJ ;
4105 byte temp4 ;
4106 int res4 = SWIG_TMPOBJ ;
4107 byte temp5 ;
4108 int res5 = SWIG_TMPOBJ ;
4109 PyObject * obj0 = 0 ;
4110 PyObject * obj1 = 0 ;
4111 char * kwnames[] = {
4112 (char *) "self",(char *) "pixel", NULL
4113 };
4114
4115 arg3 = &temp3;
4116 arg4 = &temp4;
4117 arg5 = &temp5;
4118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4120 if (!SWIG_IsOK(res1)) {
4121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4122 }
4123 arg1 = reinterpret_cast< wxPalette * >(argp1);
4124 ecode2 = SWIG_AsVal_int(obj1, &val2);
4125 if (!SWIG_IsOK(ecode2)) {
4126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4127 }
4128 arg2 = static_cast< int >(val2);
4129 {
4130 PyThreadState* __tstate = wxPyBeginAllowThreads();
4131 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4132 wxPyEndAllowThreads(__tstate);
4133 if (PyErr_Occurred()) SWIG_fail;
4134 }
4135 {
4136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4137 }
4138 if (SWIG_IsTmpObj(res3)) {
4139 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4140 } else {
4141 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4142 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4143 }
4144 if (SWIG_IsTmpObj(res4)) {
4145 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4146 } else {
4147 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4148 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4149 }
4150 if (SWIG_IsTmpObj(res5)) {
4151 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4152 } else {
4153 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4154 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4155 }
4156 return resultobj;
4157 fail:
4158 return NULL;
4159 }
4160
4161
4162 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4163 PyObject *resultobj = 0;
4164 wxPalette *arg1 = (wxPalette *) 0 ;
4165 int result;
4166 void *argp1 = 0 ;
4167 int res1 = 0 ;
4168 PyObject *swig_obj[1] ;
4169
4170 if (!args) SWIG_fail;
4171 swig_obj[0] = args;
4172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4173 if (!SWIG_IsOK(res1)) {
4174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4175 }
4176 arg1 = reinterpret_cast< wxPalette * >(argp1);
4177 {
4178 PyThreadState* __tstate = wxPyBeginAllowThreads();
4179 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4180 wxPyEndAllowThreads(__tstate);
4181 if (PyErr_Occurred()) SWIG_fail;
4182 }
4183 resultobj = SWIG_From_int(static_cast< int >(result));
4184 return resultobj;
4185 fail:
4186 return NULL;
4187 }
4188
4189
4190 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4191 PyObject *resultobj = 0;
4192 wxPalette *arg1 = (wxPalette *) 0 ;
4193 bool result;
4194 void *argp1 = 0 ;
4195 int res1 = 0 ;
4196 PyObject *swig_obj[1] ;
4197
4198 if (!args) SWIG_fail;
4199 swig_obj[0] = args;
4200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4201 if (!SWIG_IsOK(res1)) {
4202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4203 }
4204 arg1 = reinterpret_cast< wxPalette * >(argp1);
4205 {
4206 PyThreadState* __tstate = wxPyBeginAllowThreads();
4207 result = (bool)(arg1)->Ok();
4208 wxPyEndAllowThreads(__tstate);
4209 if (PyErr_Occurred()) SWIG_fail;
4210 }
4211 {
4212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4213 }
4214 return resultobj;
4215 fail:
4216 return NULL;
4217 }
4218
4219
4220 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4221 PyObject *obj;
4222 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4223 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4224 return SWIG_Py_Void();
4225 }
4226
4227 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4228 return SWIG_Python_InitShadowInstance(args);
4229 }
4230
4231 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4232 PyObject *resultobj = 0;
4233 wxColour *arg1 = 0 ;
4234 int arg2 = (int) 1 ;
4235 int arg3 = (int) wxSOLID ;
4236 wxPen *result = 0 ;
4237 wxColour temp1 ;
4238 int val2 ;
4239 int ecode2 = 0 ;
4240 int val3 ;
4241 int ecode3 = 0 ;
4242 PyObject * obj0 = 0 ;
4243 PyObject * obj1 = 0 ;
4244 PyObject * obj2 = 0 ;
4245 char * kwnames[] = {
4246 (char *) "colour",(char *) "width",(char *) "style", NULL
4247 };
4248
4249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4250 {
4251 arg1 = &temp1;
4252 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4253 }
4254 if (obj1) {
4255 ecode2 = SWIG_AsVal_int(obj1, &val2);
4256 if (!SWIG_IsOK(ecode2)) {
4257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4258 }
4259 arg2 = static_cast< int >(val2);
4260 }
4261 if (obj2) {
4262 ecode3 = SWIG_AsVal_int(obj2, &val3);
4263 if (!SWIG_IsOK(ecode3)) {
4264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4265 }
4266 arg3 = static_cast< int >(val3);
4267 }
4268 {
4269 if (!wxPyCheckForApp()) SWIG_fail;
4270 PyThreadState* __tstate = wxPyBeginAllowThreads();
4271 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4272 wxPyEndAllowThreads(__tstate);
4273 if (PyErr_Occurred()) SWIG_fail;
4274 }
4275 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4276 return resultobj;
4277 fail:
4278 return NULL;
4279 }
4280
4281
4282 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4283 PyObject *resultobj = 0;
4284 wxPen *arg1 = (wxPen *) 0 ;
4285 void *argp1 = 0 ;
4286 int res1 = 0 ;
4287 PyObject *swig_obj[1] ;
4288
4289 if (!args) SWIG_fail;
4290 swig_obj[0] = args;
4291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4292 if (!SWIG_IsOK(res1)) {
4293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4294 }
4295 arg1 = reinterpret_cast< wxPen * >(argp1);
4296 {
4297 PyThreadState* __tstate = wxPyBeginAllowThreads();
4298 delete arg1;
4299
4300 wxPyEndAllowThreads(__tstate);
4301 if (PyErr_Occurred()) SWIG_fail;
4302 }
4303 resultobj = SWIG_Py_Void();
4304 return resultobj;
4305 fail:
4306 return NULL;
4307 }
4308
4309
4310 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4311 PyObject *resultobj = 0;
4312 wxPen *arg1 = (wxPen *) 0 ;
4313 int result;
4314 void *argp1 = 0 ;
4315 int res1 = 0 ;
4316 PyObject *swig_obj[1] ;
4317
4318 if (!args) SWIG_fail;
4319 swig_obj[0] = args;
4320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4321 if (!SWIG_IsOK(res1)) {
4322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4323 }
4324 arg1 = reinterpret_cast< wxPen * >(argp1);
4325 {
4326 PyThreadState* __tstate = wxPyBeginAllowThreads();
4327 result = (int)(arg1)->GetCap();
4328 wxPyEndAllowThreads(__tstate);
4329 if (PyErr_Occurred()) SWIG_fail;
4330 }
4331 resultobj = SWIG_From_int(static_cast< int >(result));
4332 return resultobj;
4333 fail:
4334 return NULL;
4335 }
4336
4337
4338 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4339 PyObject *resultobj = 0;
4340 wxPen *arg1 = (wxPen *) 0 ;
4341 wxColour result;
4342 void *argp1 = 0 ;
4343 int res1 = 0 ;
4344 PyObject *swig_obj[1] ;
4345
4346 if (!args) SWIG_fail;
4347 swig_obj[0] = args;
4348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4349 if (!SWIG_IsOK(res1)) {
4350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4351 }
4352 arg1 = reinterpret_cast< wxPen * >(argp1);
4353 {
4354 PyThreadState* __tstate = wxPyBeginAllowThreads();
4355 result = (arg1)->GetColour();
4356 wxPyEndAllowThreads(__tstate);
4357 if (PyErr_Occurred()) SWIG_fail;
4358 }
4359 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4360 return resultobj;
4361 fail:
4362 return NULL;
4363 }
4364
4365
4366 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4367 PyObject *resultobj = 0;
4368 wxPen *arg1 = (wxPen *) 0 ;
4369 int result;
4370 void *argp1 = 0 ;
4371 int res1 = 0 ;
4372 PyObject *swig_obj[1] ;
4373
4374 if (!args) SWIG_fail;
4375 swig_obj[0] = args;
4376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4377 if (!SWIG_IsOK(res1)) {
4378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4379 }
4380 arg1 = reinterpret_cast< wxPen * >(argp1);
4381 {
4382 PyThreadState* __tstate = wxPyBeginAllowThreads();
4383 result = (int)(arg1)->GetJoin();
4384 wxPyEndAllowThreads(__tstate);
4385 if (PyErr_Occurred()) SWIG_fail;
4386 }
4387 resultobj = SWIG_From_int(static_cast< int >(result));
4388 return resultobj;
4389 fail:
4390 return NULL;
4391 }
4392
4393
4394 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4395 PyObject *resultobj = 0;
4396 wxPen *arg1 = (wxPen *) 0 ;
4397 int result;
4398 void *argp1 = 0 ;
4399 int res1 = 0 ;
4400 PyObject *swig_obj[1] ;
4401
4402 if (!args) SWIG_fail;
4403 swig_obj[0] = args;
4404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4405 if (!SWIG_IsOK(res1)) {
4406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4407 }
4408 arg1 = reinterpret_cast< wxPen * >(argp1);
4409 {
4410 PyThreadState* __tstate = wxPyBeginAllowThreads();
4411 result = (int)(arg1)->GetStyle();
4412 wxPyEndAllowThreads(__tstate);
4413 if (PyErr_Occurred()) SWIG_fail;
4414 }
4415 resultobj = SWIG_From_int(static_cast< int >(result));
4416 return resultobj;
4417 fail:
4418 return NULL;
4419 }
4420
4421
4422 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4423 PyObject *resultobj = 0;
4424 wxPen *arg1 = (wxPen *) 0 ;
4425 int result;
4426 void *argp1 = 0 ;
4427 int res1 = 0 ;
4428 PyObject *swig_obj[1] ;
4429
4430 if (!args) SWIG_fail;
4431 swig_obj[0] = args;
4432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4433 if (!SWIG_IsOK(res1)) {
4434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4435 }
4436 arg1 = reinterpret_cast< wxPen * >(argp1);
4437 {
4438 PyThreadState* __tstate = wxPyBeginAllowThreads();
4439 result = (int)(arg1)->GetWidth();
4440 wxPyEndAllowThreads(__tstate);
4441 if (PyErr_Occurred()) SWIG_fail;
4442 }
4443 resultobj = SWIG_From_int(static_cast< int >(result));
4444 return resultobj;
4445 fail:
4446 return NULL;
4447 }
4448
4449
4450 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4451 PyObject *resultobj = 0;
4452 wxPen *arg1 = (wxPen *) 0 ;
4453 bool result;
4454 void *argp1 = 0 ;
4455 int res1 = 0 ;
4456 PyObject *swig_obj[1] ;
4457
4458 if (!args) SWIG_fail;
4459 swig_obj[0] = args;
4460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4461 if (!SWIG_IsOK(res1)) {
4462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4463 }
4464 arg1 = reinterpret_cast< wxPen * >(argp1);
4465 {
4466 PyThreadState* __tstate = wxPyBeginAllowThreads();
4467 result = (bool)(arg1)->Ok();
4468 wxPyEndAllowThreads(__tstate);
4469 if (PyErr_Occurred()) SWIG_fail;
4470 }
4471 {
4472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4473 }
4474 return resultobj;
4475 fail:
4476 return NULL;
4477 }
4478
4479
4480 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4481 PyObject *resultobj = 0;
4482 wxPen *arg1 = (wxPen *) 0 ;
4483 int arg2 ;
4484 void *argp1 = 0 ;
4485 int res1 = 0 ;
4486 int val2 ;
4487 int ecode2 = 0 ;
4488 PyObject * obj0 = 0 ;
4489 PyObject * obj1 = 0 ;
4490 char * kwnames[] = {
4491 (char *) "self",(char *) "cap_style", NULL
4492 };
4493
4494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4496 if (!SWIG_IsOK(res1)) {
4497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4498 }
4499 arg1 = reinterpret_cast< wxPen * >(argp1);
4500 ecode2 = SWIG_AsVal_int(obj1, &val2);
4501 if (!SWIG_IsOK(ecode2)) {
4502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4503 }
4504 arg2 = static_cast< int >(val2);
4505 {
4506 PyThreadState* __tstate = wxPyBeginAllowThreads();
4507 (arg1)->SetCap(arg2);
4508 wxPyEndAllowThreads(__tstate);
4509 if (PyErr_Occurred()) SWIG_fail;
4510 }
4511 resultobj = SWIG_Py_Void();
4512 return resultobj;
4513 fail:
4514 return NULL;
4515 }
4516
4517
4518 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4519 PyObject *resultobj = 0;
4520 wxPen *arg1 = (wxPen *) 0 ;
4521 wxColour *arg2 = 0 ;
4522 void *argp1 = 0 ;
4523 int res1 = 0 ;
4524 wxColour temp2 ;
4525 PyObject * obj0 = 0 ;
4526 PyObject * obj1 = 0 ;
4527 char * kwnames[] = {
4528 (char *) "self",(char *) "colour", NULL
4529 };
4530
4531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4533 if (!SWIG_IsOK(res1)) {
4534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4535 }
4536 arg1 = reinterpret_cast< wxPen * >(argp1);
4537 {
4538 arg2 = &temp2;
4539 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4540 }
4541 {
4542 PyThreadState* __tstate = wxPyBeginAllowThreads();
4543 (arg1)->SetColour(*arg2);
4544 wxPyEndAllowThreads(__tstate);
4545 if (PyErr_Occurred()) SWIG_fail;
4546 }
4547 resultobj = SWIG_Py_Void();
4548 return resultobj;
4549 fail:
4550 return NULL;
4551 }
4552
4553
4554 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4555 PyObject *resultobj = 0;
4556 wxPen *arg1 = (wxPen *) 0 ;
4557 int arg2 ;
4558 void *argp1 = 0 ;
4559 int res1 = 0 ;
4560 int val2 ;
4561 int ecode2 = 0 ;
4562 PyObject * obj0 = 0 ;
4563 PyObject * obj1 = 0 ;
4564 char * kwnames[] = {
4565 (char *) "self",(char *) "join_style", NULL
4566 };
4567
4568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4570 if (!SWIG_IsOK(res1)) {
4571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4572 }
4573 arg1 = reinterpret_cast< wxPen * >(argp1);
4574 ecode2 = SWIG_AsVal_int(obj1, &val2);
4575 if (!SWIG_IsOK(ecode2)) {
4576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4577 }
4578 arg2 = static_cast< int >(val2);
4579 {
4580 PyThreadState* __tstate = wxPyBeginAllowThreads();
4581 (arg1)->SetJoin(arg2);
4582 wxPyEndAllowThreads(__tstate);
4583 if (PyErr_Occurred()) SWIG_fail;
4584 }
4585 resultobj = SWIG_Py_Void();
4586 return resultobj;
4587 fail:
4588 return NULL;
4589 }
4590
4591
4592 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4593 PyObject *resultobj = 0;
4594 wxPen *arg1 = (wxPen *) 0 ;
4595 int arg2 ;
4596 void *argp1 = 0 ;
4597 int res1 = 0 ;
4598 int val2 ;
4599 int ecode2 = 0 ;
4600 PyObject * obj0 = 0 ;
4601 PyObject * obj1 = 0 ;
4602 char * kwnames[] = {
4603 (char *) "self",(char *) "style", NULL
4604 };
4605
4606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4608 if (!SWIG_IsOK(res1)) {
4609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4610 }
4611 arg1 = reinterpret_cast< wxPen * >(argp1);
4612 ecode2 = SWIG_AsVal_int(obj1, &val2);
4613 if (!SWIG_IsOK(ecode2)) {
4614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4615 }
4616 arg2 = static_cast< int >(val2);
4617 {
4618 PyThreadState* __tstate = wxPyBeginAllowThreads();
4619 (arg1)->SetStyle(arg2);
4620 wxPyEndAllowThreads(__tstate);
4621 if (PyErr_Occurred()) SWIG_fail;
4622 }
4623 resultobj = SWIG_Py_Void();
4624 return resultobj;
4625 fail:
4626 return NULL;
4627 }
4628
4629
4630 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4631 PyObject *resultobj = 0;
4632 wxPen *arg1 = (wxPen *) 0 ;
4633 int arg2 ;
4634 void *argp1 = 0 ;
4635 int res1 = 0 ;
4636 int val2 ;
4637 int ecode2 = 0 ;
4638 PyObject * obj0 = 0 ;
4639 PyObject * obj1 = 0 ;
4640 char * kwnames[] = {
4641 (char *) "self",(char *) "width", NULL
4642 };
4643
4644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
4645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4646 if (!SWIG_IsOK(res1)) {
4647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4648 }
4649 arg1 = reinterpret_cast< wxPen * >(argp1);
4650 ecode2 = SWIG_AsVal_int(obj1, &val2);
4651 if (!SWIG_IsOK(ecode2)) {
4652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
4653 }
4654 arg2 = static_cast< int >(val2);
4655 {
4656 PyThreadState* __tstate = wxPyBeginAllowThreads();
4657 (arg1)->SetWidth(arg2);
4658 wxPyEndAllowThreads(__tstate);
4659 if (PyErr_Occurred()) SWIG_fail;
4660 }
4661 resultobj = SWIG_Py_Void();
4662 return resultobj;
4663 fail:
4664 return NULL;
4665 }
4666
4667
4668 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4669 PyObject *resultobj = 0;
4670 wxPen *arg1 = (wxPen *) 0 ;
4671 int arg2 ;
4672 wxDash *arg3 = (wxDash *) 0 ;
4673 void *argp1 = 0 ;
4674 int res1 = 0 ;
4675 PyObject * obj0 = 0 ;
4676 PyObject * obj1 = 0 ;
4677 char * kwnames[] = {
4678 (char *) "self",(char *) "dashes", NULL
4679 };
4680
4681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
4682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4683 if (!SWIG_IsOK(res1)) {
4684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4685 }
4686 arg1 = reinterpret_cast< wxPen * >(argp1);
4687 {
4688 arg2 = PyList_Size(obj1);
4689 arg3 = (wxDash*)byte_LIST_helper(obj1);
4690 if (arg3 == NULL) SWIG_fail;
4691 }
4692 {
4693 PyThreadState* __tstate = wxPyBeginAllowThreads();
4694 (arg1)->SetDashes(arg2,arg3);
4695 wxPyEndAllowThreads(__tstate);
4696 if (PyErr_Occurred()) SWIG_fail;
4697 }
4698 resultobj = SWIG_Py_Void();
4699 {
4700 if (arg3) delete [] arg3;
4701 }
4702 return resultobj;
4703 fail:
4704 {
4705 if (arg3) delete [] arg3;
4706 }
4707 return NULL;
4708 }
4709
4710
4711 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4712 PyObject *resultobj = 0;
4713 wxPen *arg1 = (wxPen *) 0 ;
4714 PyObject *result = 0 ;
4715 void *argp1 = 0 ;
4716 int res1 = 0 ;
4717 PyObject *swig_obj[1] ;
4718
4719 if (!args) SWIG_fail;
4720 swig_obj[0] = args;
4721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4722 if (!SWIG_IsOK(res1)) {
4723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4724 }
4725 arg1 = reinterpret_cast< wxPen * >(argp1);
4726 {
4727 PyThreadState* __tstate = wxPyBeginAllowThreads();
4728 result = (PyObject *)wxPen_GetDashes(arg1);
4729 wxPyEndAllowThreads(__tstate);
4730 if (PyErr_Occurred()) SWIG_fail;
4731 }
4732 resultobj = result;
4733 return resultobj;
4734 fail:
4735 return NULL;
4736 }
4737
4738
4739 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4740 PyObject *resultobj = 0;
4741 wxPen *arg1 = (wxPen *) 0 ;
4742 PyObject *arg2 = (PyObject *) 0 ;
4743 PyObject *arg3 = (PyObject *) 0 ;
4744 void *argp1 = 0 ;
4745 int res1 = 0 ;
4746 PyObject * obj0 = 0 ;
4747 PyObject * obj1 = 0 ;
4748 PyObject * obj2 = 0 ;
4749 char * kwnames[] = {
4750 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
4751 };
4752
4753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4755 if (!SWIG_IsOK(res1)) {
4756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4757 }
4758 arg1 = reinterpret_cast< wxPen * >(argp1);
4759 arg2 = obj1;
4760 arg3 = obj2;
4761 {
4762 PyThreadState* __tstate = wxPyBeginAllowThreads();
4763 wxPen__SetDashes(arg1,arg2,arg3);
4764 wxPyEndAllowThreads(__tstate);
4765 if (PyErr_Occurred()) SWIG_fail;
4766 }
4767 resultobj = SWIG_Py_Void();
4768 return resultobj;
4769 fail:
4770 return NULL;
4771 }
4772
4773
4774 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4775 PyObject *resultobj = 0;
4776 wxPen *arg1 = (wxPen *) 0 ;
4777 int result;
4778 void *argp1 = 0 ;
4779 int res1 = 0 ;
4780 PyObject *swig_obj[1] ;
4781
4782 if (!args) SWIG_fail;
4783 swig_obj[0] = args;
4784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4785 if (!SWIG_IsOK(res1)) {
4786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
4787 }
4788 arg1 = reinterpret_cast< wxPen * >(argp1);
4789 {
4790 PyThreadState* __tstate = wxPyBeginAllowThreads();
4791 result = (int)((wxPen const *)arg1)->GetDashCount();
4792 wxPyEndAllowThreads(__tstate);
4793 if (PyErr_Occurred()) SWIG_fail;
4794 }
4795 resultobj = SWIG_From_int(static_cast< int >(result));
4796 return resultobj;
4797 fail:
4798 return NULL;
4799 }
4800
4801
4802 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4803 PyObject *resultobj = 0;
4804 wxPen *arg1 = (wxPen *) 0 ;
4805 wxBitmap *result = 0 ;
4806 void *argp1 = 0 ;
4807 int res1 = 0 ;
4808 PyObject *swig_obj[1] ;
4809
4810 if (!args) SWIG_fail;
4811 swig_obj[0] = args;
4812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4813 if (!SWIG_IsOK(res1)) {
4814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
4815 }
4816 arg1 = reinterpret_cast< wxPen * >(argp1);
4817 {
4818 PyThreadState* __tstate = wxPyBeginAllowThreads();
4819 result = (wxBitmap *)(arg1)->GetStipple();
4820 wxPyEndAllowThreads(__tstate);
4821 if (PyErr_Occurred()) SWIG_fail;
4822 }
4823 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
4824 return resultobj;
4825 fail:
4826 return NULL;
4827 }
4828
4829
4830 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4831 PyObject *resultobj = 0;
4832 wxPen *arg1 = (wxPen *) 0 ;
4833 wxBitmap *arg2 = 0 ;
4834 void *argp1 = 0 ;
4835 int res1 = 0 ;
4836 void *argp2 = 0 ;
4837 int res2 = 0 ;
4838 PyObject * obj0 = 0 ;
4839 PyObject * obj1 = 0 ;
4840 char * kwnames[] = {
4841 (char *) "self",(char *) "stipple", NULL
4842 };
4843
4844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
4845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4846 if (!SWIG_IsOK(res1)) {
4847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
4848 }
4849 arg1 = reinterpret_cast< wxPen * >(argp1);
4850 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
4851 if (!SWIG_IsOK(res2)) {
4852 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
4853 }
4854 if (!argp2) {
4855 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
4856 }
4857 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4858 {
4859 PyThreadState* __tstate = wxPyBeginAllowThreads();
4860 (arg1)->SetStipple(*arg2);
4861 wxPyEndAllowThreads(__tstate);
4862 if (PyErr_Occurred()) SWIG_fail;
4863 }
4864 resultobj = SWIG_Py_Void();
4865 return resultobj;
4866 fail:
4867 return NULL;
4868 }
4869
4870
4871 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4872 PyObject *resultobj = 0;
4873 wxPen *arg1 = (wxPen *) 0 ;
4874 wxPen *arg2 = (wxPen *) 0 ;
4875 bool result;
4876 void *argp1 = 0 ;
4877 int res1 = 0 ;
4878 void *argp2 = 0 ;
4879 int res2 = 0 ;
4880 PyObject * obj0 = 0 ;
4881 PyObject * obj1 = 0 ;
4882 char * kwnames[] = {
4883 (char *) "self",(char *) "other", NULL
4884 };
4885
4886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4888 if (!SWIG_IsOK(res1)) {
4889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
4890 }
4891 arg1 = reinterpret_cast< wxPen * >(argp1);
4892 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4893 if (!SWIG_IsOK(res2)) {
4894 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
4895 }
4896 arg2 = reinterpret_cast< wxPen * >(argp2);
4897 {
4898 PyThreadState* __tstate = wxPyBeginAllowThreads();
4899 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
4900 wxPyEndAllowThreads(__tstate);
4901 if (PyErr_Occurred()) SWIG_fail;
4902 }
4903 {
4904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4905 }
4906 return resultobj;
4907 fail:
4908 return NULL;
4909 }
4910
4911
4912 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4913 PyObject *resultobj = 0;
4914 wxPen *arg1 = (wxPen *) 0 ;
4915 wxPen *arg2 = (wxPen *) 0 ;
4916 bool result;
4917 void *argp1 = 0 ;
4918 int res1 = 0 ;
4919 void *argp2 = 0 ;
4920 int res2 = 0 ;
4921 PyObject * obj0 = 0 ;
4922 PyObject * obj1 = 0 ;
4923 char * kwnames[] = {
4924 (char *) "self",(char *) "other", NULL
4925 };
4926
4927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4929 if (!SWIG_IsOK(res1)) {
4930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
4931 }
4932 arg1 = reinterpret_cast< wxPen * >(argp1);
4933 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4934 if (!SWIG_IsOK(res2)) {
4935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
4936 }
4937 arg2 = reinterpret_cast< wxPen * >(argp2);
4938 {
4939 PyThreadState* __tstate = wxPyBeginAllowThreads();
4940 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
4941 wxPyEndAllowThreads(__tstate);
4942 if (PyErr_Occurred()) SWIG_fail;
4943 }
4944 {
4945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4946 }
4947 return resultobj;
4948 fail:
4949 return NULL;
4950 }
4951
4952
4953 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4954 PyObject *obj;
4955 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4956 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
4957 return SWIG_Py_Void();
4958 }
4959
4960 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4961 return SWIG_Python_InitShadowInstance(args);
4962 }
4963
4964 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4965 PyObject *resultobj = 0;
4966 wxColour *arg1 = 0 ;
4967 int arg2 = (int) wxSOLID ;
4968 wxBrush *result = 0 ;
4969 wxColour temp1 ;
4970 int val2 ;
4971 int ecode2 = 0 ;
4972 PyObject * obj0 = 0 ;
4973 PyObject * obj1 = 0 ;
4974 char * kwnames[] = {
4975 (char *) "colour",(char *) "style", NULL
4976 };
4977
4978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
4979 {
4980 arg1 = &temp1;
4981 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4982 }
4983 if (obj1) {
4984 ecode2 = SWIG_AsVal_int(obj1, &val2);
4985 if (!SWIG_IsOK(ecode2)) {
4986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
4987 }
4988 arg2 = static_cast< int >(val2);
4989 }
4990 {
4991 if (!wxPyCheckForApp()) SWIG_fail;
4992 PyThreadState* __tstate = wxPyBeginAllowThreads();
4993 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
4994 wxPyEndAllowThreads(__tstate);
4995 if (PyErr_Occurred()) SWIG_fail;
4996 }
4997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
4998 return resultobj;
4999 fail:
5000 return NULL;
5001 }
5002
5003
5004 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5005 PyObject *resultobj = 0;
5006 wxBitmap *arg1 = 0 ;
5007 wxBrush *result = 0 ;
5008 void *argp1 = 0 ;
5009 int res1 = 0 ;
5010 PyObject * obj0 = 0 ;
5011 char * kwnames[] = {
5012 (char *) "stippleBitmap", NULL
5013 };
5014
5015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5016 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5017 if (!SWIG_IsOK(res1)) {
5018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5019 }
5020 if (!argp1) {
5021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5022 }
5023 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5024 {
5025 if (!wxPyCheckForApp()) SWIG_fail;
5026 PyThreadState* __tstate = wxPyBeginAllowThreads();
5027 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5028 wxPyEndAllowThreads(__tstate);
5029 if (PyErr_Occurred()) SWIG_fail;
5030 }
5031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5032 return resultobj;
5033 fail:
5034 return NULL;
5035 }
5036
5037
5038 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5039 PyObject *resultobj = 0;
5040 wxBrush *arg1 = (wxBrush *) 0 ;
5041 void *argp1 = 0 ;
5042 int res1 = 0 ;
5043 PyObject *swig_obj[1] ;
5044
5045 if (!args) SWIG_fail;
5046 swig_obj[0] = args;
5047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5048 if (!SWIG_IsOK(res1)) {
5049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5050 }
5051 arg1 = reinterpret_cast< wxBrush * >(argp1);
5052 {
5053 PyThreadState* __tstate = wxPyBeginAllowThreads();
5054 delete arg1;
5055
5056 wxPyEndAllowThreads(__tstate);
5057 if (PyErr_Occurred()) SWIG_fail;
5058 }
5059 resultobj = SWIG_Py_Void();
5060 return resultobj;
5061 fail:
5062 return NULL;
5063 }
5064
5065
5066 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5067 PyObject *resultobj = 0;
5068 wxBrush *arg1 = (wxBrush *) 0 ;
5069 wxColour *arg2 = 0 ;
5070 void *argp1 = 0 ;
5071 int res1 = 0 ;
5072 wxColour temp2 ;
5073 PyObject * obj0 = 0 ;
5074 PyObject * obj1 = 0 ;
5075 char * kwnames[] = {
5076 (char *) "self",(char *) "col", NULL
5077 };
5078
5079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5081 if (!SWIG_IsOK(res1)) {
5082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5083 }
5084 arg1 = reinterpret_cast< wxBrush * >(argp1);
5085 {
5086 arg2 = &temp2;
5087 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5088 }
5089 {
5090 PyThreadState* __tstate = wxPyBeginAllowThreads();
5091 (arg1)->SetColour((wxColour const &)*arg2);
5092 wxPyEndAllowThreads(__tstate);
5093 if (PyErr_Occurred()) SWIG_fail;
5094 }
5095 resultobj = SWIG_Py_Void();
5096 return resultobj;
5097 fail:
5098 return NULL;
5099 }
5100
5101
5102 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5103 PyObject *resultobj = 0;
5104 wxBrush *arg1 = (wxBrush *) 0 ;
5105 int arg2 ;
5106 void *argp1 = 0 ;
5107 int res1 = 0 ;
5108 int val2 ;
5109 int ecode2 = 0 ;
5110 PyObject * obj0 = 0 ;
5111 PyObject * obj1 = 0 ;
5112 char * kwnames[] = {
5113 (char *) "self",(char *) "style", NULL
5114 };
5115
5116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5118 if (!SWIG_IsOK(res1)) {
5119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5120 }
5121 arg1 = reinterpret_cast< wxBrush * >(argp1);
5122 ecode2 = SWIG_AsVal_int(obj1, &val2);
5123 if (!SWIG_IsOK(ecode2)) {
5124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5125 }
5126 arg2 = static_cast< int >(val2);
5127 {
5128 PyThreadState* __tstate = wxPyBeginAllowThreads();
5129 (arg1)->SetStyle(arg2);
5130 wxPyEndAllowThreads(__tstate);
5131 if (PyErr_Occurred()) SWIG_fail;
5132 }
5133 resultobj = SWIG_Py_Void();
5134 return resultobj;
5135 fail:
5136 return NULL;
5137 }
5138
5139
5140 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5141 PyObject *resultobj = 0;
5142 wxBrush *arg1 = (wxBrush *) 0 ;
5143 wxBitmap *arg2 = 0 ;
5144 void *argp1 = 0 ;
5145 int res1 = 0 ;
5146 void *argp2 = 0 ;
5147 int res2 = 0 ;
5148 PyObject * obj0 = 0 ;
5149 PyObject * obj1 = 0 ;
5150 char * kwnames[] = {
5151 (char *) "self",(char *) "stipple", NULL
5152 };
5153
5154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5156 if (!SWIG_IsOK(res1)) {
5157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5158 }
5159 arg1 = reinterpret_cast< wxBrush * >(argp1);
5160 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5161 if (!SWIG_IsOK(res2)) {
5162 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5163 }
5164 if (!argp2) {
5165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5166 }
5167 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5168 {
5169 PyThreadState* __tstate = wxPyBeginAllowThreads();
5170 (arg1)->SetStipple((wxBitmap const &)*arg2);
5171 wxPyEndAllowThreads(__tstate);
5172 if (PyErr_Occurred()) SWIG_fail;
5173 }
5174 resultobj = SWIG_Py_Void();
5175 return resultobj;
5176 fail:
5177 return NULL;
5178 }
5179
5180
5181 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5182 PyObject *resultobj = 0;
5183 wxBrush *arg1 = (wxBrush *) 0 ;
5184 wxColour result;
5185 void *argp1 = 0 ;
5186 int res1 = 0 ;
5187 PyObject *swig_obj[1] ;
5188
5189 if (!args) SWIG_fail;
5190 swig_obj[0] = args;
5191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5192 if (!SWIG_IsOK(res1)) {
5193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5194 }
5195 arg1 = reinterpret_cast< wxBrush * >(argp1);
5196 {
5197 PyThreadState* __tstate = wxPyBeginAllowThreads();
5198 result = ((wxBrush const *)arg1)->GetColour();
5199 wxPyEndAllowThreads(__tstate);
5200 if (PyErr_Occurred()) SWIG_fail;
5201 }
5202 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5203 return resultobj;
5204 fail:
5205 return NULL;
5206 }
5207
5208
5209 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5210 PyObject *resultobj = 0;
5211 wxBrush *arg1 = (wxBrush *) 0 ;
5212 int result;
5213 void *argp1 = 0 ;
5214 int res1 = 0 ;
5215 PyObject *swig_obj[1] ;
5216
5217 if (!args) SWIG_fail;
5218 swig_obj[0] = args;
5219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5220 if (!SWIG_IsOK(res1)) {
5221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5222 }
5223 arg1 = reinterpret_cast< wxBrush * >(argp1);
5224 {
5225 PyThreadState* __tstate = wxPyBeginAllowThreads();
5226 result = (int)((wxBrush const *)arg1)->GetStyle();
5227 wxPyEndAllowThreads(__tstate);
5228 if (PyErr_Occurred()) SWIG_fail;
5229 }
5230 resultobj = SWIG_From_int(static_cast< int >(result));
5231 return resultobj;
5232 fail:
5233 return NULL;
5234 }
5235
5236
5237 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5238 PyObject *resultobj = 0;
5239 wxBrush *arg1 = (wxBrush *) 0 ;
5240 wxBitmap *result = 0 ;
5241 void *argp1 = 0 ;
5242 int res1 = 0 ;
5243 PyObject *swig_obj[1] ;
5244
5245 if (!args) SWIG_fail;
5246 swig_obj[0] = args;
5247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5248 if (!SWIG_IsOK(res1)) {
5249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5250 }
5251 arg1 = reinterpret_cast< wxBrush * >(argp1);
5252 {
5253 PyThreadState* __tstate = wxPyBeginAllowThreads();
5254 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5255 wxPyEndAllowThreads(__tstate);
5256 if (PyErr_Occurred()) SWIG_fail;
5257 }
5258 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5259 return resultobj;
5260 fail:
5261 return NULL;
5262 }
5263
5264
5265 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5266 PyObject *resultobj = 0;
5267 wxBrush *arg1 = (wxBrush *) 0 ;
5268 bool result;
5269 void *argp1 = 0 ;
5270 int res1 = 0 ;
5271 PyObject *swig_obj[1] ;
5272
5273 if (!args) SWIG_fail;
5274 swig_obj[0] = args;
5275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5276 if (!SWIG_IsOK(res1)) {
5277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5278 }
5279 arg1 = reinterpret_cast< wxBrush * >(argp1);
5280 {
5281 PyThreadState* __tstate = wxPyBeginAllowThreads();
5282 result = (bool)((wxBrush const *)arg1)->IsHatch();
5283 wxPyEndAllowThreads(__tstate);
5284 if (PyErr_Occurred()) SWIG_fail;
5285 }
5286 {
5287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5288 }
5289 return resultobj;
5290 fail:
5291 return NULL;
5292 }
5293
5294
5295 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5296 PyObject *resultobj = 0;
5297 wxBrush *arg1 = (wxBrush *) 0 ;
5298 bool result;
5299 void *argp1 = 0 ;
5300 int res1 = 0 ;
5301 PyObject *swig_obj[1] ;
5302
5303 if (!args) SWIG_fail;
5304 swig_obj[0] = args;
5305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5306 if (!SWIG_IsOK(res1)) {
5307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5308 }
5309 arg1 = reinterpret_cast< wxBrush * >(argp1);
5310 {
5311 PyThreadState* __tstate = wxPyBeginAllowThreads();
5312 result = (bool)(arg1)->Ok();
5313 wxPyEndAllowThreads(__tstate);
5314 if (PyErr_Occurred()) SWIG_fail;
5315 }
5316 {
5317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5318 }
5319 return resultobj;
5320 fail:
5321 return NULL;
5322 }
5323
5324
5325 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5326 PyObject *obj;
5327 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5328 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5329 return SWIG_Py_Void();
5330 }
5331
5332 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5333 return SWIG_Python_InitShadowInstance(args);
5334 }
5335
5336 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5337 PyObject *resultobj = 0;
5338 wxString *arg1 = 0 ;
5339 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5340 wxBitmap *result = 0 ;
5341 bool temp1 = false ;
5342 int val2 ;
5343 int ecode2 = 0 ;
5344 PyObject * obj0 = 0 ;
5345 PyObject * obj1 = 0 ;
5346 char * kwnames[] = {
5347 (char *) "name",(char *) "type", NULL
5348 };
5349
5350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5351 {
5352 arg1 = wxString_in_helper(obj0);
5353 if (arg1 == NULL) SWIG_fail;
5354 temp1 = true;
5355 }
5356 if (obj1) {
5357 ecode2 = SWIG_AsVal_int(obj1, &val2);
5358 if (!SWIG_IsOK(ecode2)) {
5359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5360 }
5361 arg2 = static_cast< wxBitmapType >(val2);
5362 }
5363 {
5364 if (!wxPyCheckForApp()) SWIG_fail;
5365 PyThreadState* __tstate = wxPyBeginAllowThreads();
5366 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5367 wxPyEndAllowThreads(__tstate);
5368 if (PyErr_Occurred()) SWIG_fail;
5369 }
5370 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5371 {
5372 if (temp1)
5373 delete arg1;
5374 }
5375 return resultobj;
5376 fail:
5377 {
5378 if (temp1)
5379 delete arg1;
5380 }
5381 return NULL;
5382 }
5383
5384
5385 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5386 PyObject *resultobj = 0;
5387 wxBitmap *arg1 = (wxBitmap *) 0 ;
5388 void *argp1 = 0 ;
5389 int res1 = 0 ;
5390 PyObject *swig_obj[1] ;
5391
5392 if (!args) SWIG_fail;
5393 swig_obj[0] = args;
5394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5395 if (!SWIG_IsOK(res1)) {
5396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5397 }
5398 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5399 {
5400 PyThreadState* __tstate = wxPyBeginAllowThreads();
5401 delete arg1;
5402
5403 wxPyEndAllowThreads(__tstate);
5404 if (PyErr_Occurred()) SWIG_fail;
5405 }
5406 resultobj = SWIG_Py_Void();
5407 return resultobj;
5408 fail:
5409 return NULL;
5410 }
5411
5412
5413 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5414 PyObject *resultobj = 0;
5415 int arg1 ;
5416 int arg2 ;
5417 int arg3 = (int) -1 ;
5418 wxBitmap *result = 0 ;
5419 int val1 ;
5420 int ecode1 = 0 ;
5421 int val2 ;
5422 int ecode2 = 0 ;
5423 int val3 ;
5424 int ecode3 = 0 ;
5425 PyObject * obj0 = 0 ;
5426 PyObject * obj1 = 0 ;
5427 PyObject * obj2 = 0 ;
5428 char * kwnames[] = {
5429 (char *) "width",(char *) "height",(char *) "depth", NULL
5430 };
5431
5432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5433 ecode1 = SWIG_AsVal_int(obj0, &val1);
5434 if (!SWIG_IsOK(ecode1)) {
5435 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5436 }
5437 arg1 = static_cast< int >(val1);
5438 ecode2 = SWIG_AsVal_int(obj1, &val2);
5439 if (!SWIG_IsOK(ecode2)) {
5440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5441 }
5442 arg2 = static_cast< int >(val2);
5443 if (obj2) {
5444 ecode3 = SWIG_AsVal_int(obj2, &val3);
5445 if (!SWIG_IsOK(ecode3)) {
5446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5447 }
5448 arg3 = static_cast< int >(val3);
5449 }
5450 {
5451 if (!wxPyCheckForApp()) SWIG_fail;
5452 PyThreadState* __tstate = wxPyBeginAllowThreads();
5453 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5454 wxPyEndAllowThreads(__tstate);
5455 if (PyErr_Occurred()) SWIG_fail;
5456 }
5457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5458 return resultobj;
5459 fail:
5460 return NULL;
5461 }
5462
5463
5464 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5465 PyObject *resultobj = 0;
5466 wxIcon *arg1 = 0 ;
5467 wxBitmap *result = 0 ;
5468 void *argp1 = 0 ;
5469 int res1 = 0 ;
5470 PyObject * obj0 = 0 ;
5471 char * kwnames[] = {
5472 (char *) "icon", NULL
5473 };
5474
5475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5476 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5477 if (!SWIG_IsOK(res1)) {
5478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5479 }
5480 if (!argp1) {
5481 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5482 }
5483 arg1 = reinterpret_cast< wxIcon * >(argp1);
5484 {
5485 if (!wxPyCheckForApp()) SWIG_fail;
5486 PyThreadState* __tstate = wxPyBeginAllowThreads();
5487 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5488 wxPyEndAllowThreads(__tstate);
5489 if (PyErr_Occurred()) SWIG_fail;
5490 }
5491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5492 return resultobj;
5493 fail:
5494 return NULL;
5495 }
5496
5497
5498 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5499 PyObject *resultobj = 0;
5500 wxImage *arg1 = 0 ;
5501 int arg2 = (int) -1 ;
5502 wxBitmap *result = 0 ;
5503 void *argp1 = 0 ;
5504 int res1 = 0 ;
5505 int val2 ;
5506 int ecode2 = 0 ;
5507 PyObject * obj0 = 0 ;
5508 PyObject * obj1 = 0 ;
5509 char * kwnames[] = {
5510 (char *) "image",(char *) "depth", NULL
5511 };
5512
5513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5514 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5515 if (!SWIG_IsOK(res1)) {
5516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5517 }
5518 if (!argp1) {
5519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5520 }
5521 arg1 = reinterpret_cast< wxImage * >(argp1);
5522 if (obj1) {
5523 ecode2 = SWIG_AsVal_int(obj1, &val2);
5524 if (!SWIG_IsOK(ecode2)) {
5525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5526 }
5527 arg2 = static_cast< int >(val2);
5528 }
5529 {
5530 if (!wxPyCheckForApp()) SWIG_fail;
5531 PyThreadState* __tstate = wxPyBeginAllowThreads();
5532 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5533 wxPyEndAllowThreads(__tstate);
5534 if (PyErr_Occurred()) SWIG_fail;
5535 }
5536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5537 return resultobj;
5538 fail:
5539 return NULL;
5540 }
5541
5542
5543 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5544 PyObject *resultobj = 0;
5545 PyObject *arg1 = (PyObject *) 0 ;
5546 wxBitmap *result = 0 ;
5547 PyObject * obj0 = 0 ;
5548 char * kwnames[] = {
5549 (char *) "listOfStrings", NULL
5550 };
5551
5552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5553 arg1 = obj0;
5554 {
5555 if (!wxPyCheckForApp()) SWIG_fail;
5556 PyThreadState* __tstate = wxPyBeginAllowThreads();
5557 result = (wxBitmap *)new_wxBitmap(arg1);
5558 wxPyEndAllowThreads(__tstate);
5559 if (PyErr_Occurred()) SWIG_fail;
5560 }
5561 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5562 return resultobj;
5563 fail:
5564 return NULL;
5565 }
5566
5567
5568 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5569 PyObject *resultobj = 0;
5570 PyObject *arg1 = (PyObject *) 0 ;
5571 int arg2 ;
5572 int arg3 ;
5573 int arg4 = (int) 1 ;
5574 wxBitmap *result = 0 ;
5575 int val2 ;
5576 int ecode2 = 0 ;
5577 int val3 ;
5578 int ecode3 = 0 ;
5579 int val4 ;
5580 int ecode4 = 0 ;
5581 PyObject * obj0 = 0 ;
5582 PyObject * obj1 = 0 ;
5583 PyObject * obj2 = 0 ;
5584 PyObject * obj3 = 0 ;
5585 char * kwnames[] = {
5586 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5587 };
5588
5589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5590 arg1 = obj0;
5591 ecode2 = SWIG_AsVal_int(obj1, &val2);
5592 if (!SWIG_IsOK(ecode2)) {
5593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5594 }
5595 arg2 = static_cast< int >(val2);
5596 ecode3 = SWIG_AsVal_int(obj2, &val3);
5597 if (!SWIG_IsOK(ecode3)) {
5598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5599 }
5600 arg3 = static_cast< int >(val3);
5601 if (obj3) {
5602 ecode4 = SWIG_AsVal_int(obj3, &val4);
5603 if (!SWIG_IsOK(ecode4)) {
5604 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5605 }
5606 arg4 = static_cast< int >(val4);
5607 }
5608 {
5609 if (!wxPyCheckForApp()) SWIG_fail;
5610 PyThreadState* __tstate = wxPyBeginAllowThreads();
5611 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5612 wxPyEndAllowThreads(__tstate);
5613 if (PyErr_Occurred()) SWIG_fail;
5614 }
5615 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5616 return resultobj;
5617 fail:
5618 return NULL;
5619 }
5620
5621
5622 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5623 PyObject *resultobj = 0;
5624 wxBitmap *arg1 = (wxBitmap *) 0 ;
5625 long result;
5626 void *argp1 = 0 ;
5627 int res1 = 0 ;
5628 PyObject *swig_obj[1] ;
5629
5630 if (!args) SWIG_fail;
5631 swig_obj[0] = args;
5632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5633 if (!SWIG_IsOK(res1)) {
5634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
5635 }
5636 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5637 {
5638 PyThreadState* __tstate = wxPyBeginAllowThreads();
5639 result = (long)(arg1)->GetHandle();
5640 wxPyEndAllowThreads(__tstate);
5641 if (PyErr_Occurred()) SWIG_fail;
5642 }
5643 resultobj = SWIG_From_long(static_cast< long >(result));
5644 return resultobj;
5645 fail:
5646 return NULL;
5647 }
5648
5649
5650 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5651 PyObject *resultobj = 0;
5652 wxBitmap *arg1 = (wxBitmap *) 0 ;
5653 long arg2 ;
5654 void *argp1 = 0 ;
5655 int res1 = 0 ;
5656 long val2 ;
5657 int ecode2 = 0 ;
5658 PyObject * obj0 = 0 ;
5659 PyObject * obj1 = 0 ;
5660 char * kwnames[] = {
5661 (char *) "self",(char *) "handle", NULL
5662 };
5663
5664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
5665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5666 if (!SWIG_IsOK(res1)) {
5667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
5668 }
5669 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5670 ecode2 = SWIG_AsVal_long(obj1, &val2);
5671 if (!SWIG_IsOK(ecode2)) {
5672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
5673 }
5674 arg2 = static_cast< long >(val2);
5675 {
5676 PyThreadState* __tstate = wxPyBeginAllowThreads();
5677 wxBitmap_SetHandle(arg1,arg2);
5678 wxPyEndAllowThreads(__tstate);
5679 if (PyErr_Occurred()) SWIG_fail;
5680 }
5681 resultobj = SWIG_Py_Void();
5682 return resultobj;
5683 fail:
5684 return NULL;
5685 }
5686
5687
5688 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5689 PyObject *resultobj = 0;
5690 wxBitmap *arg1 = (wxBitmap *) 0 ;
5691 bool result;
5692 void *argp1 = 0 ;
5693 int res1 = 0 ;
5694 PyObject *swig_obj[1] ;
5695
5696 if (!args) SWIG_fail;
5697 swig_obj[0] = args;
5698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5699 if (!SWIG_IsOK(res1)) {
5700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5701 }
5702 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5703 {
5704 PyThreadState* __tstate = wxPyBeginAllowThreads();
5705 result = (bool)(arg1)->Ok();
5706 wxPyEndAllowThreads(__tstate);
5707 if (PyErr_Occurred()) SWIG_fail;
5708 }
5709 {
5710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5711 }
5712 return resultobj;
5713 fail:
5714 return NULL;
5715 }
5716
5717
5718 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5719 PyObject *resultobj = 0;
5720 wxBitmap *arg1 = (wxBitmap *) 0 ;
5721 int result;
5722 void *argp1 = 0 ;
5723 int res1 = 0 ;
5724 PyObject *swig_obj[1] ;
5725
5726 if (!args) SWIG_fail;
5727 swig_obj[0] = args;
5728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5729 if (!SWIG_IsOK(res1)) {
5730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5731 }
5732 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5733 {
5734 PyThreadState* __tstate = wxPyBeginAllowThreads();
5735 result = (int)(arg1)->GetWidth();
5736 wxPyEndAllowThreads(__tstate);
5737 if (PyErr_Occurred()) SWIG_fail;
5738 }
5739 resultobj = SWIG_From_int(static_cast< int >(result));
5740 return resultobj;
5741 fail:
5742 return NULL;
5743 }
5744
5745
5746 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5747 PyObject *resultobj = 0;
5748 wxBitmap *arg1 = (wxBitmap *) 0 ;
5749 int result;
5750 void *argp1 = 0 ;
5751 int res1 = 0 ;
5752 PyObject *swig_obj[1] ;
5753
5754 if (!args) SWIG_fail;
5755 swig_obj[0] = args;
5756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5757 if (!SWIG_IsOK(res1)) {
5758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
5759 }
5760 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5761 {
5762 PyThreadState* __tstate = wxPyBeginAllowThreads();
5763 result = (int)(arg1)->GetHeight();
5764 wxPyEndAllowThreads(__tstate);
5765 if (PyErr_Occurred()) SWIG_fail;
5766 }
5767 resultobj = SWIG_From_int(static_cast< int >(result));
5768 return resultobj;
5769 fail:
5770 return NULL;
5771 }
5772
5773
5774 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5775 PyObject *resultobj = 0;
5776 wxBitmap *arg1 = (wxBitmap *) 0 ;
5777 int result;
5778 void *argp1 = 0 ;
5779 int res1 = 0 ;
5780 PyObject *swig_obj[1] ;
5781
5782 if (!args) SWIG_fail;
5783 swig_obj[0] = args;
5784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5785 if (!SWIG_IsOK(res1)) {
5786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5787 }
5788 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5789 {
5790 PyThreadState* __tstate = wxPyBeginAllowThreads();
5791 result = (int)(arg1)->GetDepth();
5792 wxPyEndAllowThreads(__tstate);
5793 if (PyErr_Occurred()) SWIG_fail;
5794 }
5795 resultobj = SWIG_From_int(static_cast< int >(result));
5796 return resultobj;
5797 fail:
5798 return NULL;
5799 }
5800
5801
5802 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5803 PyObject *resultobj = 0;
5804 wxBitmap *arg1 = (wxBitmap *) 0 ;
5805 wxSize result;
5806 void *argp1 = 0 ;
5807 int res1 = 0 ;
5808 PyObject *swig_obj[1] ;
5809
5810 if (!args) SWIG_fail;
5811 swig_obj[0] = args;
5812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5813 if (!SWIG_IsOK(res1)) {
5814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
5815 }
5816 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5817 {
5818 PyThreadState* __tstate = wxPyBeginAllowThreads();
5819 result = wxBitmap_GetSize(arg1);
5820 wxPyEndAllowThreads(__tstate);
5821 if (PyErr_Occurred()) SWIG_fail;
5822 }
5823 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
5824 return resultobj;
5825 fail:
5826 return NULL;
5827 }
5828
5829
5830 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5831 PyObject *resultobj = 0;
5832 wxBitmap *arg1 = (wxBitmap *) 0 ;
5833 SwigValueWrapper<wxImage > result;
5834 void *argp1 = 0 ;
5835 int res1 = 0 ;
5836 PyObject *swig_obj[1] ;
5837
5838 if (!args) SWIG_fail;
5839 swig_obj[0] = args;
5840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5841 if (!SWIG_IsOK(res1)) {
5842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5843 }
5844 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5845 {
5846 PyThreadState* __tstate = wxPyBeginAllowThreads();
5847 result = ((wxBitmap const *)arg1)->ConvertToImage();
5848 wxPyEndAllowThreads(__tstate);
5849 if (PyErr_Occurred()) SWIG_fail;
5850 }
5851 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
5852 return resultobj;
5853 fail:
5854 return NULL;
5855 }
5856
5857
5858 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5859 PyObject *resultobj = 0;
5860 wxBitmap *arg1 = (wxBitmap *) 0 ;
5861 wxMask *result = 0 ;
5862 void *argp1 = 0 ;
5863 int res1 = 0 ;
5864 PyObject *swig_obj[1] ;
5865
5866 if (!args) SWIG_fail;
5867 swig_obj[0] = args;
5868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5869 if (!SWIG_IsOK(res1)) {
5870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5871 }
5872 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5873 {
5874 PyThreadState* __tstate = wxPyBeginAllowThreads();
5875 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
5876 wxPyEndAllowThreads(__tstate);
5877 if (PyErr_Occurred()) SWIG_fail;
5878 }
5879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
5880 return resultobj;
5881 fail:
5882 return NULL;
5883 }
5884
5885
5886 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5887 PyObject *resultobj = 0;
5888 wxBitmap *arg1 = (wxBitmap *) 0 ;
5889 wxMask *arg2 = (wxMask *) 0 ;
5890 void *argp1 = 0 ;
5891 int res1 = 0 ;
5892 int res2 = 0 ;
5893 PyObject * obj0 = 0 ;
5894 PyObject * obj1 = 0 ;
5895 char * kwnames[] = {
5896 (char *) "self",(char *) "mask", NULL
5897 };
5898
5899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
5900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5901 if (!SWIG_IsOK(res1)) {
5902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
5903 }
5904 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5905 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
5906 if (!SWIG_IsOK(res2)) {
5907 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
5908 }
5909 {
5910 PyThreadState* __tstate = wxPyBeginAllowThreads();
5911 (arg1)->SetMask(arg2);
5912 wxPyEndAllowThreads(__tstate);
5913 if (PyErr_Occurred()) SWIG_fail;
5914 }
5915 resultobj = SWIG_Py_Void();
5916 return resultobj;
5917 fail:
5918 return NULL;
5919 }
5920
5921
5922 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5923 PyObject *resultobj = 0;
5924 wxBitmap *arg1 = (wxBitmap *) 0 ;
5925 wxColour *arg2 = 0 ;
5926 void *argp1 = 0 ;
5927 int res1 = 0 ;
5928 wxColour temp2 ;
5929 PyObject * obj0 = 0 ;
5930 PyObject * obj1 = 0 ;
5931 char * kwnames[] = {
5932 (char *) "self",(char *) "colour", NULL
5933 };
5934
5935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
5936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5937 if (!SWIG_IsOK(res1)) {
5938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
5939 }
5940 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5941 {
5942 arg2 = &temp2;
5943 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5944 }
5945 {
5946 PyThreadState* __tstate = wxPyBeginAllowThreads();
5947 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
5948 wxPyEndAllowThreads(__tstate);
5949 if (PyErr_Occurred()) SWIG_fail;
5950 }
5951 resultobj = SWIG_Py_Void();
5952 return resultobj;
5953 fail:
5954 return NULL;
5955 }
5956
5957
5958 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5959 PyObject *resultobj = 0;
5960 wxBitmap *arg1 = (wxBitmap *) 0 ;
5961 wxRect *arg2 = 0 ;
5962 SwigValueWrapper<wxBitmap > result;
5963 void *argp1 = 0 ;
5964 int res1 = 0 ;
5965 wxRect temp2 ;
5966 PyObject * obj0 = 0 ;
5967 PyObject * obj1 = 0 ;
5968 char * kwnames[] = {
5969 (char *) "self",(char *) "rect", NULL
5970 };
5971
5972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5974 if (!SWIG_IsOK(res1)) {
5975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5976 }
5977 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5978 {
5979 arg2 = &temp2;
5980 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5981 }
5982 {
5983 PyThreadState* __tstate = wxPyBeginAllowThreads();
5984 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
5985 wxPyEndAllowThreads(__tstate);
5986 if (PyErr_Occurred()) SWIG_fail;
5987 }
5988 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5989 return resultobj;
5990 fail:
5991 return NULL;
5992 }
5993
5994
5995 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5996 PyObject *resultobj = 0;
5997 wxBitmap *arg1 = (wxBitmap *) 0 ;
5998 wxString *arg2 = 0 ;
5999 wxBitmapType arg3 ;
6000 wxPalette *arg4 = (wxPalette *) NULL ;
6001 bool result;
6002 void *argp1 = 0 ;
6003 int res1 = 0 ;
6004 bool temp2 = false ;
6005 int val3 ;
6006 int ecode3 = 0 ;
6007 void *argp4 = 0 ;
6008 int res4 = 0 ;
6009 PyObject * obj0 = 0 ;
6010 PyObject * obj1 = 0 ;
6011 PyObject * obj2 = 0 ;
6012 PyObject * obj3 = 0 ;
6013 char * kwnames[] = {
6014 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6015 };
6016
6017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6019 if (!SWIG_IsOK(res1)) {
6020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6021 }
6022 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6023 {
6024 arg2 = wxString_in_helper(obj1);
6025 if (arg2 == NULL) SWIG_fail;
6026 temp2 = true;
6027 }
6028 ecode3 = SWIG_AsVal_int(obj2, &val3);
6029 if (!SWIG_IsOK(ecode3)) {
6030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6031 }
6032 arg3 = static_cast< wxBitmapType >(val3);
6033 if (obj3) {
6034 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6035 if (!SWIG_IsOK(res4)) {
6036 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6037 }
6038 arg4 = reinterpret_cast< wxPalette * >(argp4);
6039 }
6040 {
6041 PyThreadState* __tstate = wxPyBeginAllowThreads();
6042 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6043 wxPyEndAllowThreads(__tstate);
6044 if (PyErr_Occurred()) SWIG_fail;
6045 }
6046 {
6047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6048 }
6049 {
6050 if (temp2)
6051 delete arg2;
6052 }
6053 return resultobj;
6054 fail:
6055 {
6056 if (temp2)
6057 delete arg2;
6058 }
6059 return NULL;
6060 }
6061
6062
6063 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6064 PyObject *resultobj = 0;
6065 wxBitmap *arg1 = (wxBitmap *) 0 ;
6066 wxString *arg2 = 0 ;
6067 wxBitmapType arg3 ;
6068 bool result;
6069 void *argp1 = 0 ;
6070 int res1 = 0 ;
6071 bool temp2 = false ;
6072 int val3 ;
6073 int ecode3 = 0 ;
6074 PyObject * obj0 = 0 ;
6075 PyObject * obj1 = 0 ;
6076 PyObject * obj2 = 0 ;
6077 char * kwnames[] = {
6078 (char *) "self",(char *) "name",(char *) "type", NULL
6079 };
6080
6081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6083 if (!SWIG_IsOK(res1)) {
6084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6085 }
6086 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6087 {
6088 arg2 = wxString_in_helper(obj1);
6089 if (arg2 == NULL) SWIG_fail;
6090 temp2 = true;
6091 }
6092 ecode3 = SWIG_AsVal_int(obj2, &val3);
6093 if (!SWIG_IsOK(ecode3)) {
6094 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6095 }
6096 arg3 = static_cast< wxBitmapType >(val3);
6097 {
6098 PyThreadState* __tstate = wxPyBeginAllowThreads();
6099 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6100 wxPyEndAllowThreads(__tstate);
6101 if (PyErr_Occurred()) SWIG_fail;
6102 }
6103 {
6104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6105 }
6106 {
6107 if (temp2)
6108 delete arg2;
6109 }
6110 return resultobj;
6111 fail:
6112 {
6113 if (temp2)
6114 delete arg2;
6115 }
6116 return NULL;
6117 }
6118
6119
6120 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6121 PyObject *resultobj = 0;
6122 wxBitmap *arg1 = (wxBitmap *) 0 ;
6123 wxPalette *result = 0 ;
6124 void *argp1 = 0 ;
6125 int res1 = 0 ;
6126 PyObject *swig_obj[1] ;
6127
6128 if (!args) SWIG_fail;
6129 swig_obj[0] = args;
6130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6131 if (!SWIG_IsOK(res1)) {
6132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6133 }
6134 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6135 {
6136 PyThreadState* __tstate = wxPyBeginAllowThreads();
6137 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6138 wxPyEndAllowThreads(__tstate);
6139 if (PyErr_Occurred()) SWIG_fail;
6140 }
6141 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6142 return resultobj;
6143 fail:
6144 return NULL;
6145 }
6146
6147
6148 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6149 PyObject *resultobj = 0;
6150 wxBitmap *arg1 = (wxBitmap *) 0 ;
6151 wxPalette *arg2 = 0 ;
6152 void *argp1 = 0 ;
6153 int res1 = 0 ;
6154 void *argp2 = 0 ;
6155 int res2 = 0 ;
6156 PyObject * obj0 = 0 ;
6157 PyObject * obj1 = 0 ;
6158 char * kwnames[] = {
6159 (char *) "self",(char *) "palette", NULL
6160 };
6161
6162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6164 if (!SWIG_IsOK(res1)) {
6165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6166 }
6167 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6168 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6169 if (!SWIG_IsOK(res2)) {
6170 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6171 }
6172 if (!argp2) {
6173 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6174 }
6175 arg2 = reinterpret_cast< wxPalette * >(argp2);
6176 {
6177 PyThreadState* __tstate = wxPyBeginAllowThreads();
6178 (arg1)->SetPalette((wxPalette const &)*arg2);
6179 wxPyEndAllowThreads(__tstate);
6180 if (PyErr_Occurred()) SWIG_fail;
6181 }
6182 resultobj = SWIG_Py_Void();
6183 return resultobj;
6184 fail:
6185 return NULL;
6186 }
6187
6188
6189 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6190 PyObject *resultobj = 0;
6191 wxBitmap *arg1 = (wxBitmap *) 0 ;
6192 wxIcon *arg2 = 0 ;
6193 bool result;
6194 void *argp1 = 0 ;
6195 int res1 = 0 ;
6196 void *argp2 = 0 ;
6197 int res2 = 0 ;
6198 PyObject * obj0 = 0 ;
6199 PyObject * obj1 = 0 ;
6200 char * kwnames[] = {
6201 (char *) "self",(char *) "icon", NULL
6202 };
6203
6204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6206 if (!SWIG_IsOK(res1)) {
6207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6208 }
6209 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6210 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6211 if (!SWIG_IsOK(res2)) {
6212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6213 }
6214 if (!argp2) {
6215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6216 }
6217 arg2 = reinterpret_cast< wxIcon * >(argp2);
6218 {
6219 PyThreadState* __tstate = wxPyBeginAllowThreads();
6220 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6221 wxPyEndAllowThreads(__tstate);
6222 if (PyErr_Occurred()) SWIG_fail;
6223 }
6224 {
6225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6226 }
6227 return resultobj;
6228 fail:
6229 return NULL;
6230 }
6231
6232
6233 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6234 PyObject *resultobj = 0;
6235 wxBitmap *arg1 = (wxBitmap *) 0 ;
6236 int arg2 ;
6237 void *argp1 = 0 ;
6238 int res1 = 0 ;
6239 int val2 ;
6240 int ecode2 = 0 ;
6241 PyObject * obj0 = 0 ;
6242 PyObject * obj1 = 0 ;
6243 char * kwnames[] = {
6244 (char *) "self",(char *) "height", NULL
6245 };
6246
6247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6249 if (!SWIG_IsOK(res1)) {
6250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6251 }
6252 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6253 ecode2 = SWIG_AsVal_int(obj1, &val2);
6254 if (!SWIG_IsOK(ecode2)) {
6255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6256 }
6257 arg2 = static_cast< int >(val2);
6258 {
6259 PyThreadState* __tstate = wxPyBeginAllowThreads();
6260 (arg1)->SetHeight(arg2);
6261 wxPyEndAllowThreads(__tstate);
6262 if (PyErr_Occurred()) SWIG_fail;
6263 }
6264 resultobj = SWIG_Py_Void();
6265 return resultobj;
6266 fail:
6267 return NULL;
6268 }
6269
6270
6271 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6272 PyObject *resultobj = 0;
6273 wxBitmap *arg1 = (wxBitmap *) 0 ;
6274 int arg2 ;
6275 void *argp1 = 0 ;
6276 int res1 = 0 ;
6277 int val2 ;
6278 int ecode2 = 0 ;
6279 PyObject * obj0 = 0 ;
6280 PyObject * obj1 = 0 ;
6281 char * kwnames[] = {
6282 (char *) "self",(char *) "width", NULL
6283 };
6284
6285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6287 if (!SWIG_IsOK(res1)) {
6288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6289 }
6290 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6291 ecode2 = SWIG_AsVal_int(obj1, &val2);
6292 if (!SWIG_IsOK(ecode2)) {
6293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6294 }
6295 arg2 = static_cast< int >(val2);
6296 {
6297 PyThreadState* __tstate = wxPyBeginAllowThreads();
6298 (arg1)->SetWidth(arg2);
6299 wxPyEndAllowThreads(__tstate);
6300 if (PyErr_Occurred()) SWIG_fail;
6301 }
6302 resultobj = SWIG_Py_Void();
6303 return resultobj;
6304 fail:
6305 return NULL;
6306 }
6307
6308
6309 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6310 PyObject *resultobj = 0;
6311 wxBitmap *arg1 = (wxBitmap *) 0 ;
6312 int arg2 ;
6313 void *argp1 = 0 ;
6314 int res1 = 0 ;
6315 int val2 ;
6316 int ecode2 = 0 ;
6317 PyObject * obj0 = 0 ;
6318 PyObject * obj1 = 0 ;
6319 char * kwnames[] = {
6320 (char *) "self",(char *) "depth", NULL
6321 };
6322
6323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6325 if (!SWIG_IsOK(res1)) {
6326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6327 }
6328 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6329 ecode2 = SWIG_AsVal_int(obj1, &val2);
6330 if (!SWIG_IsOK(ecode2)) {
6331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6332 }
6333 arg2 = static_cast< int >(val2);
6334 {
6335 PyThreadState* __tstate = wxPyBeginAllowThreads();
6336 (arg1)->SetDepth(arg2);
6337 wxPyEndAllowThreads(__tstate);
6338 if (PyErr_Occurred()) SWIG_fail;
6339 }
6340 resultobj = SWIG_Py_Void();
6341 return resultobj;
6342 fail:
6343 return NULL;
6344 }
6345
6346
6347 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6348 PyObject *resultobj = 0;
6349 wxBitmap *arg1 = (wxBitmap *) 0 ;
6350 wxSize *arg2 = 0 ;
6351 void *argp1 = 0 ;
6352 int res1 = 0 ;
6353 wxSize temp2 ;
6354 PyObject * obj0 = 0 ;
6355 PyObject * obj1 = 0 ;
6356 char * kwnames[] = {
6357 (char *) "self",(char *) "size", NULL
6358 };
6359
6360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6362 if (!SWIG_IsOK(res1)) {
6363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6364 }
6365 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6366 {
6367 arg2 = &temp2;
6368 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6369 }
6370 {
6371 PyThreadState* __tstate = wxPyBeginAllowThreads();
6372 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6373 wxPyEndAllowThreads(__tstate);
6374 if (PyErr_Occurred()) SWIG_fail;
6375 }
6376 resultobj = SWIG_Py_Void();
6377 return resultobj;
6378 fail:
6379 return NULL;
6380 }
6381
6382
6383 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6384 PyObject *resultobj = 0;
6385 wxBitmap *arg1 = (wxBitmap *) 0 ;
6386 wxCursor *arg2 = 0 ;
6387 bool result;
6388 void *argp1 = 0 ;
6389 int res1 = 0 ;
6390 void *argp2 = 0 ;
6391 int res2 = 0 ;
6392 PyObject * obj0 = 0 ;
6393 PyObject * obj1 = 0 ;
6394 char * kwnames[] = {
6395 (char *) "self",(char *) "cursor", NULL
6396 };
6397
6398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
6399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6400 if (!SWIG_IsOK(res1)) {
6401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6402 }
6403 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6404 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
6405 if (!SWIG_IsOK(res2)) {
6406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6407 }
6408 if (!argp2) {
6409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6410 }
6411 arg2 = reinterpret_cast< wxCursor * >(argp2);
6412 {
6413 PyThreadState* __tstate = wxPyBeginAllowThreads();
6414 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
6415 wxPyEndAllowThreads(__tstate);
6416 if (PyErr_Occurred()) SWIG_fail;
6417 }
6418 {
6419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6420 }
6421 return resultobj;
6422 fail:
6423 return NULL;
6424 }
6425
6426
6427 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6428 PyObject *resultobj = 0;
6429 wxBitmap *arg1 = (wxBitmap *) 0 ;
6430 wxBitmap *arg2 = (wxBitmap *) 0 ;
6431 bool result;
6432 void *argp1 = 0 ;
6433 int res1 = 0 ;
6434 void *argp2 = 0 ;
6435 int res2 = 0 ;
6436 PyObject * obj0 = 0 ;
6437 PyObject * obj1 = 0 ;
6438 char * kwnames[] = {
6439 (char *) "self",(char *) "other", NULL
6440 };
6441
6442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6444 if (!SWIG_IsOK(res1)) {
6445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6446 }
6447 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6448 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6449 if (!SWIG_IsOK(res2)) {
6450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6451 }
6452 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6453 {
6454 PyThreadState* __tstate = wxPyBeginAllowThreads();
6455 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6456 wxPyEndAllowThreads(__tstate);
6457 if (PyErr_Occurred()) SWIG_fail;
6458 }
6459 {
6460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6461 }
6462 return resultobj;
6463 fail:
6464 return NULL;
6465 }
6466
6467
6468 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6469 PyObject *resultobj = 0;
6470 wxBitmap *arg1 = (wxBitmap *) 0 ;
6471 wxBitmap *arg2 = (wxBitmap *) 0 ;
6472 bool result;
6473 void *argp1 = 0 ;
6474 int res1 = 0 ;
6475 void *argp2 = 0 ;
6476 int res2 = 0 ;
6477 PyObject * obj0 = 0 ;
6478 PyObject * obj1 = 0 ;
6479 char * kwnames[] = {
6480 (char *) "self",(char *) "other", NULL
6481 };
6482
6483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6485 if (!SWIG_IsOK(res1)) {
6486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6487 }
6488 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6489 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6490 if (!SWIG_IsOK(res2)) {
6491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6492 }
6493 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6494 {
6495 PyThreadState* __tstate = wxPyBeginAllowThreads();
6496 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6497 wxPyEndAllowThreads(__tstate);
6498 if (PyErr_Occurred()) SWIG_fail;
6499 }
6500 {
6501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6502 }
6503 return resultobj;
6504 fail:
6505 return NULL;
6506 }
6507
6508
6509 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6510 PyObject *obj;
6511 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6512 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6513 return SWIG_Py_Void();
6514 }
6515
6516 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6517 return SWIG_Python_InitShadowInstance(args);
6518 }
6519
6520 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6521 PyObject *resultobj = 0;
6522 wxBitmap *arg1 = 0 ;
6523 wxColour const &arg2_defvalue = wxNullColour ;
6524 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6525 wxMask *result = 0 ;
6526 void *argp1 = 0 ;
6527 int res1 = 0 ;
6528 wxColour temp2 ;
6529 PyObject * obj0 = 0 ;
6530 PyObject * obj1 = 0 ;
6531 char * kwnames[] = {
6532 (char *) "bitmap",(char *) "colour", NULL
6533 };
6534
6535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
6536 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6537 if (!SWIG_IsOK(res1)) {
6538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6539 }
6540 if (!argp1) {
6541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6542 }
6543 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6544 if (obj1) {
6545 {
6546 arg2 = &temp2;
6547 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6548 }
6549 }
6550 {
6551 if (!wxPyCheckForApp()) SWIG_fail;
6552 PyThreadState* __tstate = wxPyBeginAllowThreads();
6553 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
6554 wxPyEndAllowThreads(__tstate);
6555 if (PyErr_Occurred()) SWIG_fail;
6556 }
6557 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
6558 return resultobj;
6559 fail:
6560 return NULL;
6561 }
6562
6563
6564 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6565 PyObject *resultobj = 0;
6566 wxMask *arg1 = (wxMask *) 0 ;
6567 void *argp1 = 0 ;
6568 int res1 = 0 ;
6569 PyObject *swig_obj[1] ;
6570
6571 if (!args) SWIG_fail;
6572 swig_obj[0] = args;
6573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6574 if (!SWIG_IsOK(res1)) {
6575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
6576 }
6577 arg1 = reinterpret_cast< wxMask * >(argp1);
6578 {
6579 PyThreadState* __tstate = wxPyBeginAllowThreads();
6580 delete arg1;
6581
6582 wxPyEndAllowThreads(__tstate);
6583 if (PyErr_Occurred()) SWIG_fail;
6584 }
6585 resultobj = SWIG_Py_Void();
6586 return resultobj;
6587 fail:
6588 return NULL;
6589 }
6590
6591
6592 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6593 PyObject *obj;
6594 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6595 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
6596 return SWIG_Py_Void();
6597 }
6598
6599 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6600 return SWIG_Python_InitShadowInstance(args);
6601 }
6602
6603 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6604 PyObject *resultobj = 0;
6605 wxString *arg1 = 0 ;
6606 wxBitmapType arg2 ;
6607 int arg3 = (int) -1 ;
6608 int arg4 = (int) -1 ;
6609 wxIcon *result = 0 ;
6610 bool temp1 = false ;
6611 int val2 ;
6612 int ecode2 = 0 ;
6613 int val3 ;
6614 int ecode3 = 0 ;
6615 int val4 ;
6616 int ecode4 = 0 ;
6617 PyObject * obj0 = 0 ;
6618 PyObject * obj1 = 0 ;
6619 PyObject * obj2 = 0 ;
6620 PyObject * obj3 = 0 ;
6621 char * kwnames[] = {
6622 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
6623 };
6624
6625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6626 {
6627 arg1 = wxString_in_helper(obj0);
6628 if (arg1 == NULL) SWIG_fail;
6629 temp1 = true;
6630 }
6631 ecode2 = SWIG_AsVal_int(obj1, &val2);
6632 if (!SWIG_IsOK(ecode2)) {
6633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
6634 }
6635 arg2 = static_cast< wxBitmapType >(val2);
6636 if (obj2) {
6637 ecode3 = SWIG_AsVal_int(obj2, &val3);
6638 if (!SWIG_IsOK(ecode3)) {
6639 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
6640 }
6641 arg3 = static_cast< int >(val3);
6642 }
6643 if (obj3) {
6644 ecode4 = SWIG_AsVal_int(obj3, &val4);
6645 if (!SWIG_IsOK(ecode4)) {
6646 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
6647 }
6648 arg4 = static_cast< int >(val4);
6649 }
6650 {
6651 if (!wxPyCheckForApp()) SWIG_fail;
6652 PyThreadState* __tstate = wxPyBeginAllowThreads();
6653 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
6654 wxPyEndAllowThreads(__tstate);
6655 if (PyErr_Occurred()) SWIG_fail;
6656 }
6657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
6658 {
6659 if (temp1)
6660 delete arg1;
6661 }
6662 return resultobj;
6663 fail:
6664 {
6665 if (temp1)
6666 delete arg1;
6667 }
6668 return NULL;
6669 }
6670
6671
6672 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6673 PyObject *resultobj = 0;
6674 wxIcon *arg1 = (wxIcon *) 0 ;
6675 void *argp1 = 0 ;
6676 int res1 = 0 ;
6677 PyObject *swig_obj[1] ;
6678
6679 if (!args) SWIG_fail;
6680 swig_obj[0] = args;
6681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
6682 if (!SWIG_IsOK(res1)) {
6683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
6684 }
6685 arg1 = reinterpret_cast< wxIcon * >(argp1);
6686 {
6687 PyThreadState* __tstate = wxPyBeginAllowThreads();
6688 delete arg1;
6689
6690 wxPyEndAllowThreads(__tstate);
6691 if (PyErr_Occurred()) SWIG_fail;
6692 }
6693 resultobj = SWIG_Py_Void();
6694 return resultobj;
6695 fail:
6696 return NULL;
6697 }
6698
6699
6700 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6701 PyObject *resultobj = 0;
6702 wxIcon *result = 0 ;
6703
6704 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
6705 {
6706 if (!wxPyCheckForApp()) SWIG_fail;
6707 PyThreadState* __tstate = wxPyBeginAllowThreads();
6708 result = (wxIcon *)new wxIcon();
6709 wxPyEndAllowThreads(__tstate);
6710 if (PyErr_Occurred()) SWIG_fail;
6711 }
6712 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6713 return resultobj;
6714 fail:
6715 return NULL;
6716 }
6717
6718
6719 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6720 PyObject *resultobj = 0;
6721 wxIconLocation *arg1 = 0 ;
6722 wxIcon *result = 0 ;
6723 void *argp1 = 0 ;
6724 int res1 = 0 ;
6725 PyObject * obj0 = 0 ;
6726 char * kwnames[] = {
6727 (char *) "loc", NULL
6728 };
6729
6730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
6731 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
6732 if (!SWIG_IsOK(res1)) {
6733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6734 }
6735 if (!argp1) {
6736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6737 }
6738 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6739 {
6740 if (!wxPyCheckForApp()) SWIG_fail;
6741 PyThreadState* __tstate = wxPyBeginAllowThreads();
6742 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
6743 wxPyEndAllowThreads(__tstate);
6744 if (PyErr_Occurred()) SWIG_fail;
6745 }
6746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6747 return resultobj;
6748 fail:
6749 return NULL;
6750 }
6751
6752
6753 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6754 PyObject *resultobj = 0;
6755 wxBitmap *arg1 = 0 ;
6756 wxIcon *result = 0 ;
6757 void *argp1 = 0 ;
6758 int res1 = 0 ;
6759 PyObject * obj0 = 0 ;
6760 char * kwnames[] = {
6761 (char *) "bmp", NULL
6762 };
6763
6764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
6765 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6766 if (!SWIG_IsOK(res1)) {
6767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6768 }
6769 if (!argp1) {
6770 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6771 }
6772 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6773 {
6774 if (!wxPyCheckForApp()) SWIG_fail;
6775 PyThreadState* __tstate = wxPyBeginAllowThreads();
6776 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
6777 wxPyEndAllowThreads(__tstate);
6778 if (PyErr_Occurred()) SWIG_fail;
6779 }
6780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6781 return resultobj;
6782 fail:
6783 return NULL;
6784 }
6785
6786
6787 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6788 PyObject *resultobj = 0;
6789 PyObject *arg1 = (PyObject *) 0 ;
6790 wxIcon *result = 0 ;
6791 PyObject * obj0 = 0 ;
6792 char * kwnames[] = {
6793 (char *) "listOfStrings", NULL
6794 };
6795
6796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
6797 arg1 = obj0;
6798 {
6799 if (!wxPyCheckForApp()) SWIG_fail;
6800 PyThreadState* __tstate = wxPyBeginAllowThreads();
6801 result = (wxIcon *)new_wxIcon(arg1);
6802 wxPyEndAllowThreads(__tstate);
6803 if (PyErr_Occurred()) SWIG_fail;
6804 }
6805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6806 return resultobj;
6807 fail:
6808 return NULL;
6809 }
6810
6811
6812 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6813 PyObject *resultobj = 0;
6814 wxIcon *arg1 = (wxIcon *) 0 ;
6815 wxString *arg2 = 0 ;
6816 wxBitmapType arg3 ;
6817 bool result;
6818 void *argp1 = 0 ;
6819 int res1 = 0 ;
6820 bool temp2 = false ;
6821 int val3 ;
6822 int ecode3 = 0 ;
6823 PyObject * obj0 = 0 ;
6824 PyObject * obj1 = 0 ;
6825 PyObject * obj2 = 0 ;
6826 char * kwnames[] = {
6827 (char *) "self",(char *) "name",(char *) "type", NULL
6828 };
6829
6830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6832 if (!SWIG_IsOK(res1)) {
6833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
6834 }
6835 arg1 = reinterpret_cast< wxIcon * >(argp1);
6836 {
6837 arg2 = wxString_in_helper(obj1);
6838 if (arg2 == NULL) SWIG_fail;
6839 temp2 = true;
6840 }
6841 ecode3 = SWIG_AsVal_int(obj2, &val3);
6842 if (!SWIG_IsOK(ecode3)) {
6843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6844 }
6845 arg3 = static_cast< wxBitmapType >(val3);
6846 {
6847 PyThreadState* __tstate = wxPyBeginAllowThreads();
6848 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6849 wxPyEndAllowThreads(__tstate);
6850 if (PyErr_Occurred()) SWIG_fail;
6851 }
6852 {
6853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6854 }
6855 {
6856 if (temp2)
6857 delete arg2;
6858 }
6859 return resultobj;
6860 fail:
6861 {
6862 if (temp2)
6863 delete arg2;
6864 }
6865 return NULL;
6866 }
6867
6868
6869 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6870 PyObject *resultobj = 0;
6871 wxIcon *arg1 = (wxIcon *) 0 ;
6872 long result;
6873 void *argp1 = 0 ;
6874 int res1 = 0 ;
6875 PyObject *swig_obj[1] ;
6876
6877 if (!args) SWIG_fail;
6878 swig_obj[0] = args;
6879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6880 if (!SWIG_IsOK(res1)) {
6881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
6882 }
6883 arg1 = reinterpret_cast< wxIcon * >(argp1);
6884 {
6885 PyThreadState* __tstate = wxPyBeginAllowThreads();
6886 result = (long)(arg1)->GetHandle();
6887 wxPyEndAllowThreads(__tstate);
6888 if (PyErr_Occurred()) SWIG_fail;
6889 }
6890 resultobj = SWIG_From_long(static_cast< long >(result));
6891 return resultobj;
6892 fail:
6893 return NULL;
6894 }
6895
6896
6897 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6898 PyObject *resultobj = 0;
6899 wxIcon *arg1 = (wxIcon *) 0 ;
6900 long arg2 ;
6901 void *argp1 = 0 ;
6902 int res1 = 0 ;
6903 long val2 ;
6904 int ecode2 = 0 ;
6905 PyObject * obj0 = 0 ;
6906 PyObject * obj1 = 0 ;
6907 char * kwnames[] = {
6908 (char *) "self",(char *) "handle", NULL
6909 };
6910
6911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6913 if (!SWIG_IsOK(res1)) {
6914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
6915 }
6916 arg1 = reinterpret_cast< wxIcon * >(argp1);
6917 ecode2 = SWIG_AsVal_long(obj1, &val2);
6918 if (!SWIG_IsOK(ecode2)) {
6919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
6920 }
6921 arg2 = static_cast< long >(val2);
6922 {
6923 PyThreadState* __tstate = wxPyBeginAllowThreads();
6924 wxIcon_SetHandle(arg1,arg2);
6925 wxPyEndAllowThreads(__tstate);
6926 if (PyErr_Occurred()) SWIG_fail;
6927 }
6928 resultobj = SWIG_Py_Void();
6929 return resultobj;
6930 fail:
6931 return NULL;
6932 }
6933
6934
6935 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6936 PyObject *resultobj = 0;
6937 wxIcon *arg1 = (wxIcon *) 0 ;
6938 bool result;
6939 void *argp1 = 0 ;
6940 int res1 = 0 ;
6941 PyObject *swig_obj[1] ;
6942
6943 if (!args) SWIG_fail;
6944 swig_obj[0] = args;
6945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6946 if (!SWIG_IsOK(res1)) {
6947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
6948 }
6949 arg1 = reinterpret_cast< wxIcon * >(argp1);
6950 {
6951 PyThreadState* __tstate = wxPyBeginAllowThreads();
6952 result = (bool)(arg1)->Ok();
6953 wxPyEndAllowThreads(__tstate);
6954 if (PyErr_Occurred()) SWIG_fail;
6955 }
6956 {
6957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6958 }
6959 return resultobj;
6960 fail:
6961 return NULL;
6962 }
6963
6964
6965 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6966 PyObject *resultobj = 0;
6967 wxIcon *arg1 = (wxIcon *) 0 ;
6968 int result;
6969 void *argp1 = 0 ;
6970 int res1 = 0 ;
6971 PyObject *swig_obj[1] ;
6972
6973 if (!args) SWIG_fail;
6974 swig_obj[0] = args;
6975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6976 if (!SWIG_IsOK(res1)) {
6977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6978 }
6979 arg1 = reinterpret_cast< wxIcon * >(argp1);
6980 {
6981 PyThreadState* __tstate = wxPyBeginAllowThreads();
6982 result = (int)(arg1)->GetWidth();
6983 wxPyEndAllowThreads(__tstate);
6984 if (PyErr_Occurred()) SWIG_fail;
6985 }
6986 resultobj = SWIG_From_int(static_cast< int >(result));
6987 return resultobj;
6988 fail:
6989 return NULL;
6990 }
6991
6992
6993 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6994 PyObject *resultobj = 0;
6995 wxIcon *arg1 = (wxIcon *) 0 ;
6996 int result;
6997 void *argp1 = 0 ;
6998 int res1 = 0 ;
6999 PyObject *swig_obj[1] ;
7000
7001 if (!args) SWIG_fail;
7002 swig_obj[0] = args;
7003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7004 if (!SWIG_IsOK(res1)) {
7005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
7006 }
7007 arg1 = reinterpret_cast< wxIcon * >(argp1);
7008 {
7009 PyThreadState* __tstate = wxPyBeginAllowThreads();
7010 result = (int)(arg1)->GetHeight();
7011 wxPyEndAllowThreads(__tstate);
7012 if (PyErr_Occurred()) SWIG_fail;
7013 }
7014 resultobj = SWIG_From_int(static_cast< int >(result));
7015 return resultobj;
7016 fail:
7017 return NULL;
7018 }
7019
7020
7021 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7022 PyObject *resultobj = 0;
7023 wxIcon *arg1 = (wxIcon *) 0 ;
7024 int result;
7025 void *argp1 = 0 ;
7026 int res1 = 0 ;
7027 PyObject *swig_obj[1] ;
7028
7029 if (!args) SWIG_fail;
7030 swig_obj[0] = args;
7031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7032 if (!SWIG_IsOK(res1)) {
7033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
7034 }
7035 arg1 = reinterpret_cast< wxIcon * >(argp1);
7036 {
7037 PyThreadState* __tstate = wxPyBeginAllowThreads();
7038 result = (int)(arg1)->GetDepth();
7039 wxPyEndAllowThreads(__tstate);
7040 if (PyErr_Occurred()) SWIG_fail;
7041 }
7042 resultobj = SWIG_From_int(static_cast< int >(result));
7043 return resultobj;
7044 fail:
7045 return NULL;
7046 }
7047
7048
7049 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7050 PyObject *resultobj = 0;
7051 wxIcon *arg1 = (wxIcon *) 0 ;
7052 int arg2 ;
7053 void *argp1 = 0 ;
7054 int res1 = 0 ;
7055 int val2 ;
7056 int ecode2 = 0 ;
7057 PyObject * obj0 = 0 ;
7058 PyObject * obj1 = 0 ;
7059 char * kwnames[] = {
7060 (char *) "self",(char *) "w", NULL
7061 };
7062
7063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7065 if (!SWIG_IsOK(res1)) {
7066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
7067 }
7068 arg1 = reinterpret_cast< wxIcon * >(argp1);
7069 ecode2 = SWIG_AsVal_int(obj1, &val2);
7070 if (!SWIG_IsOK(ecode2)) {
7071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
7072 }
7073 arg2 = static_cast< int >(val2);
7074 {
7075 PyThreadState* __tstate = wxPyBeginAllowThreads();
7076 (arg1)->SetWidth(arg2);
7077 wxPyEndAllowThreads(__tstate);
7078 if (PyErr_Occurred()) SWIG_fail;
7079 }
7080 resultobj = SWIG_Py_Void();
7081 return resultobj;
7082 fail:
7083 return NULL;
7084 }
7085
7086
7087 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7088 PyObject *resultobj = 0;
7089 wxIcon *arg1 = (wxIcon *) 0 ;
7090 int arg2 ;
7091 void *argp1 = 0 ;
7092 int res1 = 0 ;
7093 int val2 ;
7094 int ecode2 = 0 ;
7095 PyObject * obj0 = 0 ;
7096 PyObject * obj1 = 0 ;
7097 char * kwnames[] = {
7098 (char *) "self",(char *) "h", NULL
7099 };
7100
7101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
7102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7103 if (!SWIG_IsOK(res1)) {
7104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
7105 }
7106 arg1 = reinterpret_cast< wxIcon * >(argp1);
7107 ecode2 = SWIG_AsVal_int(obj1, &val2);
7108 if (!SWIG_IsOK(ecode2)) {
7109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
7110 }
7111 arg2 = static_cast< int >(val2);
7112 {
7113 PyThreadState* __tstate = wxPyBeginAllowThreads();
7114 (arg1)->SetHeight(arg2);
7115 wxPyEndAllowThreads(__tstate);
7116 if (PyErr_Occurred()) SWIG_fail;
7117 }
7118 resultobj = SWIG_Py_Void();
7119 return resultobj;
7120 fail:
7121 return NULL;
7122 }
7123
7124
7125 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7126 PyObject *resultobj = 0;
7127 wxIcon *arg1 = (wxIcon *) 0 ;
7128 int arg2 ;
7129 void *argp1 = 0 ;
7130 int res1 = 0 ;
7131 int val2 ;
7132 int ecode2 = 0 ;
7133 PyObject * obj0 = 0 ;
7134 PyObject * obj1 = 0 ;
7135 char * kwnames[] = {
7136 (char *) "self",(char *) "d", NULL
7137 };
7138
7139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
7140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7141 if (!SWIG_IsOK(res1)) {
7142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
7143 }
7144 arg1 = reinterpret_cast< wxIcon * >(argp1);
7145 ecode2 = SWIG_AsVal_int(obj1, &val2);
7146 if (!SWIG_IsOK(ecode2)) {
7147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
7148 }
7149 arg2 = static_cast< int >(val2);
7150 {
7151 PyThreadState* __tstate = wxPyBeginAllowThreads();
7152 (arg1)->SetDepth(arg2);
7153 wxPyEndAllowThreads(__tstate);
7154 if (PyErr_Occurred()) SWIG_fail;
7155 }
7156 resultobj = SWIG_Py_Void();
7157 return resultobj;
7158 fail:
7159 return NULL;
7160 }
7161
7162
7163 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7164 PyObject *resultobj = 0;
7165 wxIcon *arg1 = (wxIcon *) 0 ;
7166 wxSize *arg2 = 0 ;
7167 void *argp1 = 0 ;
7168 int res1 = 0 ;
7169 wxSize temp2 ;
7170 PyObject * obj0 = 0 ;
7171 PyObject * obj1 = 0 ;
7172 char * kwnames[] = {
7173 (char *) "self",(char *) "size", NULL
7174 };
7175
7176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7178 if (!SWIG_IsOK(res1)) {
7179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
7180 }
7181 arg1 = reinterpret_cast< wxIcon * >(argp1);
7182 {
7183 arg2 = &temp2;
7184 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7185 }
7186 {
7187 PyThreadState* __tstate = wxPyBeginAllowThreads();
7188 (arg1)->SetSize((wxSize const &)*arg2);
7189 wxPyEndAllowThreads(__tstate);
7190 if (PyErr_Occurred()) SWIG_fail;
7191 }
7192 resultobj = SWIG_Py_Void();
7193 return resultobj;
7194 fail:
7195 return NULL;
7196 }
7197
7198
7199 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7200 PyObject *resultobj = 0;
7201 wxIcon *arg1 = (wxIcon *) 0 ;
7202 wxBitmap *arg2 = 0 ;
7203 void *argp1 = 0 ;
7204 int res1 = 0 ;
7205 void *argp2 = 0 ;
7206 int res2 = 0 ;
7207 PyObject * obj0 = 0 ;
7208 PyObject * obj1 = 0 ;
7209 char * kwnames[] = {
7210 (char *) "self",(char *) "bmp", NULL
7211 };
7212
7213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
7214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7215 if (!SWIG_IsOK(res1)) {
7216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
7217 }
7218 arg1 = reinterpret_cast< wxIcon * >(argp1);
7219 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
7220 if (!SWIG_IsOK(res2)) {
7221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
7222 }
7223 if (!argp2) {
7224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
7225 }
7226 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7227 {
7228 PyThreadState* __tstate = wxPyBeginAllowThreads();
7229 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
7230 wxPyEndAllowThreads(__tstate);
7231 if (PyErr_Occurred()) SWIG_fail;
7232 }
7233 resultobj = SWIG_Py_Void();
7234 return resultobj;
7235 fail:
7236 return NULL;
7237 }
7238
7239
7240 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7241 PyObject *obj;
7242 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7243 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
7244 return SWIG_Py_Void();
7245 }
7246
7247 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7248 return SWIG_Python_InitShadowInstance(args);
7249 }
7250
7251 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7252 PyObject *resultobj = 0;
7253 wxString *arg1 = (wxString *) &wxPyEmptyString ;
7254 int arg2 = (int) 0 ;
7255 wxIconLocation *result = 0 ;
7256 bool temp1 = false ;
7257 int val2 ;
7258 int ecode2 = 0 ;
7259 PyObject * obj0 = 0 ;
7260 PyObject * obj1 = 0 ;
7261 char * kwnames[] = {
7262 (char *) "filename",(char *) "num", NULL
7263 };
7264
7265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
7266 if (obj0) {
7267 {
7268 arg1 = wxString_in_helper(obj0);
7269 if (arg1 == NULL) SWIG_fail;
7270 temp1 = true;
7271 }
7272 }
7273 if (obj1) {
7274 ecode2 = SWIG_AsVal_int(obj1, &val2);
7275 if (!SWIG_IsOK(ecode2)) {
7276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
7277 }
7278 arg2 = static_cast< int >(val2);
7279 }
7280 {
7281 PyThreadState* __tstate = wxPyBeginAllowThreads();
7282 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
7283 wxPyEndAllowThreads(__tstate);
7284 if (PyErr_Occurred()) SWIG_fail;
7285 }
7286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
7287 {
7288 if (temp1)
7289 delete arg1;
7290 }
7291 return resultobj;
7292 fail:
7293 {
7294 if (temp1)
7295 delete arg1;
7296 }
7297 return NULL;
7298 }
7299
7300
7301 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7302 PyObject *resultobj = 0;
7303 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7304 void *argp1 = 0 ;
7305 int res1 = 0 ;
7306 PyObject *swig_obj[1] ;
7307
7308 if (!args) SWIG_fail;
7309 swig_obj[0] = args;
7310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
7311 if (!SWIG_IsOK(res1)) {
7312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7313 }
7314 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7315 {
7316 PyThreadState* __tstate = wxPyBeginAllowThreads();
7317 delete arg1;
7318
7319 wxPyEndAllowThreads(__tstate);
7320 if (PyErr_Occurred()) SWIG_fail;
7321 }
7322 resultobj = SWIG_Py_Void();
7323 return resultobj;
7324 fail:
7325 return NULL;
7326 }
7327
7328
7329 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7330 PyObject *resultobj = 0;
7331 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7332 bool result;
7333 void *argp1 = 0 ;
7334 int res1 = 0 ;
7335 PyObject *swig_obj[1] ;
7336
7337 if (!args) SWIG_fail;
7338 swig_obj[0] = args;
7339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7340 if (!SWIG_IsOK(res1)) {
7341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7342 }
7343 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7344 {
7345 PyThreadState* __tstate = wxPyBeginAllowThreads();
7346 result = (bool)((wxIconLocation const *)arg1)->IsOk();
7347 wxPyEndAllowThreads(__tstate);
7348 if (PyErr_Occurred()) SWIG_fail;
7349 }
7350 {
7351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7352 }
7353 return resultobj;
7354 fail:
7355 return NULL;
7356 }
7357
7358
7359 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7360 PyObject *resultobj = 0;
7361 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7362 wxString *arg2 = 0 ;
7363 void *argp1 = 0 ;
7364 int res1 = 0 ;
7365 bool temp2 = false ;
7366 PyObject * obj0 = 0 ;
7367 PyObject * obj1 = 0 ;
7368 char * kwnames[] = {
7369 (char *) "self",(char *) "filename", NULL
7370 };
7371
7372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
7373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7374 if (!SWIG_IsOK(res1)) {
7375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7376 }
7377 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7378 {
7379 arg2 = wxString_in_helper(obj1);
7380 if (arg2 == NULL) SWIG_fail;
7381 temp2 = true;
7382 }
7383 {
7384 PyThreadState* __tstate = wxPyBeginAllowThreads();
7385 (arg1)->SetFileName((wxString const &)*arg2);
7386 wxPyEndAllowThreads(__tstate);
7387 if (PyErr_Occurred()) SWIG_fail;
7388 }
7389 resultobj = SWIG_Py_Void();
7390 {
7391 if (temp2)
7392 delete arg2;
7393 }
7394 return resultobj;
7395 fail:
7396 {
7397 if (temp2)
7398 delete arg2;
7399 }
7400 return NULL;
7401 }
7402
7403
7404 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7405 PyObject *resultobj = 0;
7406 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7407 wxString *result = 0 ;
7408 void *argp1 = 0 ;
7409 int res1 = 0 ;
7410 PyObject *swig_obj[1] ;
7411
7412 if (!args) SWIG_fail;
7413 swig_obj[0] = args;
7414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7415 if (!SWIG_IsOK(res1)) {
7416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7417 }
7418 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7419 {
7420 PyThreadState* __tstate = wxPyBeginAllowThreads();
7421 {
7422 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
7423 result = (wxString *) &_result_ref;
7424 }
7425 wxPyEndAllowThreads(__tstate);
7426 if (PyErr_Occurred()) SWIG_fail;
7427 }
7428 {
7429 #if wxUSE_UNICODE
7430 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7431 #else
7432 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7433 #endif
7434 }
7435 return resultobj;
7436 fail:
7437 return NULL;
7438 }
7439
7440
7441 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7442 PyObject *resultobj = 0;
7443 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7444 int arg2 ;
7445 void *argp1 = 0 ;
7446 int res1 = 0 ;
7447 int val2 ;
7448 int ecode2 = 0 ;
7449 PyObject * obj0 = 0 ;
7450 PyObject * obj1 = 0 ;
7451 char * kwnames[] = {
7452 (char *) "self",(char *) "num", NULL
7453 };
7454
7455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
7456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7457 if (!SWIG_IsOK(res1)) {
7458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7459 }
7460 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7461 ecode2 = SWIG_AsVal_int(obj1, &val2);
7462 if (!SWIG_IsOK(ecode2)) {
7463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
7464 }
7465 arg2 = static_cast< int >(val2);
7466 {
7467 PyThreadState* __tstate = wxPyBeginAllowThreads();
7468 wxIconLocation_SetIndex(arg1,arg2);
7469 wxPyEndAllowThreads(__tstate);
7470 if (PyErr_Occurred()) SWIG_fail;
7471 }
7472 resultobj = SWIG_Py_Void();
7473 return resultobj;
7474 fail:
7475 return NULL;
7476 }
7477
7478
7479 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7480 PyObject *resultobj = 0;
7481 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7482 int result;
7483 void *argp1 = 0 ;
7484 int res1 = 0 ;
7485 PyObject *swig_obj[1] ;
7486
7487 if (!args) SWIG_fail;
7488 swig_obj[0] = args;
7489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7490 if (!SWIG_IsOK(res1)) {
7491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7492 }
7493 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7494 {
7495 PyThreadState* __tstate = wxPyBeginAllowThreads();
7496 result = (int)wxIconLocation_GetIndex(arg1);
7497 wxPyEndAllowThreads(__tstate);
7498 if (PyErr_Occurred()) SWIG_fail;
7499 }
7500 resultobj = SWIG_From_int(static_cast< int >(result));
7501 return resultobj;
7502 fail:
7503 return NULL;
7504 }
7505
7506
7507 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7508 PyObject *obj;
7509 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7510 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
7511 return SWIG_Py_Void();
7512 }
7513
7514 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7515 return SWIG_Python_InitShadowInstance(args);
7516 }
7517
7518 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7519 PyObject *resultobj = 0;
7520 wxIconBundle *result = 0 ;
7521
7522 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
7523 {
7524 PyThreadState* __tstate = wxPyBeginAllowThreads();
7525 result = (wxIconBundle *)new wxIconBundle();
7526 wxPyEndAllowThreads(__tstate);
7527 if (PyErr_Occurred()) SWIG_fail;
7528 }
7529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
7530 return resultobj;
7531 fail:
7532 return NULL;
7533 }
7534
7535
7536 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7537 PyObject *resultobj = 0;
7538 wxString *arg1 = 0 ;
7539 long arg2 ;
7540 wxIconBundle *result = 0 ;
7541 bool temp1 = false ;
7542 long val2 ;
7543 int ecode2 = 0 ;
7544 PyObject * obj0 = 0 ;
7545 PyObject * obj1 = 0 ;
7546 char * kwnames[] = {
7547 (char *) "file",(char *) "type", NULL
7548 };
7549
7550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
7551 {
7552 arg1 = wxString_in_helper(obj0);
7553 if (arg1 == NULL) SWIG_fail;
7554 temp1 = true;
7555 }
7556 ecode2 = SWIG_AsVal_long(obj1, &val2);
7557 if (!SWIG_IsOK(ecode2)) {
7558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
7559 }
7560 arg2 = static_cast< long >(val2);
7561 {
7562 PyThreadState* __tstate = wxPyBeginAllowThreads();
7563 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
7564 wxPyEndAllowThreads(__tstate);
7565 if (PyErr_Occurred()) SWIG_fail;
7566 }
7567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7568 {
7569 if (temp1)
7570 delete arg1;
7571 }
7572 return resultobj;
7573 fail:
7574 {
7575 if (temp1)
7576 delete arg1;
7577 }
7578 return NULL;
7579 }
7580
7581
7582 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7583 PyObject *resultobj = 0;
7584 wxIcon *arg1 = 0 ;
7585 wxIconBundle *result = 0 ;
7586 void *argp1 = 0 ;
7587 int res1 = 0 ;
7588 PyObject * obj0 = 0 ;
7589 char * kwnames[] = {
7590 (char *) "icon", NULL
7591 };
7592
7593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
7594 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
7595 if (!SWIG_IsOK(res1)) {
7596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7597 }
7598 if (!argp1) {
7599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7600 }
7601 arg1 = reinterpret_cast< wxIcon * >(argp1);
7602 {
7603 PyThreadState* __tstate = wxPyBeginAllowThreads();
7604 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
7605 wxPyEndAllowThreads(__tstate);
7606 if (PyErr_Occurred()) SWIG_fail;
7607 }
7608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7609 return resultobj;
7610 fail:
7611 return NULL;
7612 }
7613
7614
7615 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7616 PyObject *resultobj = 0;
7617 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7618 void *argp1 = 0 ;
7619 int res1 = 0 ;
7620 PyObject *swig_obj[1] ;
7621
7622 if (!args) SWIG_fail;
7623 swig_obj[0] = args;
7624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
7625 if (!SWIG_IsOK(res1)) {
7626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7627 }
7628 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7629 {
7630 PyThreadState* __tstate = wxPyBeginAllowThreads();
7631 delete arg1;
7632
7633 wxPyEndAllowThreads(__tstate);
7634 if (PyErr_Occurred()) SWIG_fail;
7635 }
7636 resultobj = SWIG_Py_Void();
7637 return resultobj;
7638 fail:
7639 return NULL;
7640 }
7641
7642
7643 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7644 PyObject *resultobj = 0;
7645 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7646 wxIcon *arg2 = 0 ;
7647 void *argp1 = 0 ;
7648 int res1 = 0 ;
7649 void *argp2 = 0 ;
7650 int res2 = 0 ;
7651 PyObject * obj0 = 0 ;
7652 PyObject * obj1 = 0 ;
7653 char * kwnames[] = {
7654 (char *) "self",(char *) "icon", NULL
7655 };
7656
7657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7659 if (!SWIG_IsOK(res1)) {
7660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7661 }
7662 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7663 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
7664 if (!SWIG_IsOK(res2)) {
7665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7666 }
7667 if (!argp2) {
7668 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7669 }
7670 arg2 = reinterpret_cast< wxIcon * >(argp2);
7671 {
7672 PyThreadState* __tstate = wxPyBeginAllowThreads();
7673 (arg1)->AddIcon((wxIcon const &)*arg2);
7674 wxPyEndAllowThreads(__tstate);
7675 if (PyErr_Occurred()) SWIG_fail;
7676 }
7677 resultobj = SWIG_Py_Void();
7678 return resultobj;
7679 fail:
7680 return NULL;
7681 }
7682
7683
7684 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7685 PyObject *resultobj = 0;
7686 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7687 wxString *arg2 = 0 ;
7688 long arg3 ;
7689 void *argp1 = 0 ;
7690 int res1 = 0 ;
7691 bool temp2 = false ;
7692 long val3 ;
7693 int ecode3 = 0 ;
7694 PyObject * obj0 = 0 ;
7695 PyObject * obj1 = 0 ;
7696 PyObject * obj2 = 0 ;
7697 char * kwnames[] = {
7698 (char *) "self",(char *) "file",(char *) "type", NULL
7699 };
7700
7701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7703 if (!SWIG_IsOK(res1)) {
7704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7705 }
7706 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7707 {
7708 arg2 = wxString_in_helper(obj1);
7709 if (arg2 == NULL) SWIG_fail;
7710 temp2 = true;
7711 }
7712 ecode3 = SWIG_AsVal_long(obj2, &val3);
7713 if (!SWIG_IsOK(ecode3)) {
7714 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
7715 }
7716 arg3 = static_cast< long >(val3);
7717 {
7718 PyThreadState* __tstate = wxPyBeginAllowThreads();
7719 (arg1)->AddIcon((wxString const &)*arg2,arg3);
7720 wxPyEndAllowThreads(__tstate);
7721 if (PyErr_Occurred()) SWIG_fail;
7722 }
7723 resultobj = SWIG_Py_Void();
7724 {
7725 if (temp2)
7726 delete arg2;
7727 }
7728 return resultobj;
7729 fail:
7730 {
7731 if (temp2)
7732 delete arg2;
7733 }
7734 return NULL;
7735 }
7736
7737
7738 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7739 PyObject *resultobj = 0;
7740 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7741 wxSize *arg2 = 0 ;
7742 wxIcon *result = 0 ;
7743 void *argp1 = 0 ;
7744 int res1 = 0 ;
7745 wxSize temp2 ;
7746 PyObject * obj0 = 0 ;
7747 PyObject * obj1 = 0 ;
7748 char * kwnames[] = {
7749 (char *) "self",(char *) "size", NULL
7750 };
7751
7752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7754 if (!SWIG_IsOK(res1)) {
7755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
7756 }
7757 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7758 {
7759 arg2 = &temp2;
7760 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7761 }
7762 {
7763 PyThreadState* __tstate = wxPyBeginAllowThreads();
7764 {
7765 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
7766 result = (wxIcon *) &_result_ref;
7767 }
7768 wxPyEndAllowThreads(__tstate);
7769 if (PyErr_Occurred()) SWIG_fail;
7770 }
7771 {
7772 wxIcon* resultptr = new wxIcon(*result);
7773 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
7774 }
7775 return resultobj;
7776 fail:
7777 return NULL;
7778 }
7779
7780
7781 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7782 PyObject *obj;
7783 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7784 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
7785 return SWIG_Py_Void();
7786 }
7787
7788 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7789 return SWIG_Python_InitShadowInstance(args);
7790 }
7791
7792 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7793 PyObject *resultobj = 0;
7794 wxString *arg1 = 0 ;
7795 long arg2 ;
7796 int arg3 = (int) 0 ;
7797 int arg4 = (int) 0 ;
7798 wxCursor *result = 0 ;
7799 bool temp1 = false ;
7800 long val2 ;
7801 int ecode2 = 0 ;
7802 int val3 ;
7803 int ecode3 = 0 ;
7804 int val4 ;
7805 int ecode4 = 0 ;
7806 PyObject * obj0 = 0 ;
7807 PyObject * obj1 = 0 ;
7808 PyObject * obj2 = 0 ;
7809 PyObject * obj3 = 0 ;
7810 char * kwnames[] = {
7811 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
7812 };
7813
7814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7815 {
7816 arg1 = wxString_in_helper(obj0);
7817 if (arg1 == NULL) SWIG_fail;
7818 temp1 = true;
7819 }
7820 ecode2 = SWIG_AsVal_long(obj1, &val2);
7821 if (!SWIG_IsOK(ecode2)) {
7822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
7823 }
7824 arg2 = static_cast< long >(val2);
7825 if (obj2) {
7826 ecode3 = SWIG_AsVal_int(obj2, &val3);
7827 if (!SWIG_IsOK(ecode3)) {
7828 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
7829 }
7830 arg3 = static_cast< int >(val3);
7831 }
7832 if (obj3) {
7833 ecode4 = SWIG_AsVal_int(obj3, &val4);
7834 if (!SWIG_IsOK(ecode4)) {
7835 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
7836 }
7837 arg4 = static_cast< int >(val4);
7838 }
7839 {
7840 if (!wxPyCheckForApp()) SWIG_fail;
7841 PyThreadState* __tstate = wxPyBeginAllowThreads();
7842 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
7843 wxPyEndAllowThreads(__tstate);
7844 if (PyErr_Occurred()) SWIG_fail;
7845 }
7846 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
7847 {
7848 if (temp1)
7849 delete arg1;
7850 }
7851 return resultobj;
7852 fail:
7853 {
7854 if (temp1)
7855 delete arg1;
7856 }
7857 return NULL;
7858 }
7859
7860
7861 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7862 PyObject *resultobj = 0;
7863 wxCursor *arg1 = (wxCursor *) 0 ;
7864 void *argp1 = 0 ;
7865 int res1 = 0 ;
7866 PyObject *swig_obj[1] ;
7867
7868 if (!args) SWIG_fail;
7869 swig_obj[0] = args;
7870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
7871 if (!SWIG_IsOK(res1)) {
7872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
7873 }
7874 arg1 = reinterpret_cast< wxCursor * >(argp1);
7875 {
7876 PyThreadState* __tstate = wxPyBeginAllowThreads();
7877 delete arg1;
7878
7879 wxPyEndAllowThreads(__tstate);
7880 if (PyErr_Occurred()) SWIG_fail;
7881 }
7882 resultobj = SWIG_Py_Void();
7883 return resultobj;
7884 fail:
7885 return NULL;
7886 }
7887
7888
7889 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7890 PyObject *resultobj = 0;
7891 int arg1 ;
7892 wxCursor *result = 0 ;
7893 int val1 ;
7894 int ecode1 = 0 ;
7895 PyObject * obj0 = 0 ;
7896 char * kwnames[] = {
7897 (char *) "id", NULL
7898 };
7899
7900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
7901 ecode1 = SWIG_AsVal_int(obj0, &val1);
7902 if (!SWIG_IsOK(ecode1)) {
7903 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
7904 }
7905 arg1 = static_cast< int >(val1);
7906 {
7907 if (!wxPyCheckForApp()) SWIG_fail;
7908 PyThreadState* __tstate = wxPyBeginAllowThreads();
7909 result = (wxCursor *)new wxCursor(arg1);
7910 wxPyEndAllowThreads(__tstate);
7911 if (PyErr_Occurred()) SWIG_fail;
7912 }
7913 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7914 return resultobj;
7915 fail:
7916 return NULL;
7917 }
7918
7919
7920 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7921 PyObject *resultobj = 0;
7922 wxImage *arg1 = 0 ;
7923 wxCursor *result = 0 ;
7924 void *argp1 = 0 ;
7925 int res1 = 0 ;
7926 PyObject * obj0 = 0 ;
7927 char * kwnames[] = {
7928 (char *) "image", NULL
7929 };
7930
7931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
7932 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
7933 if (!SWIG_IsOK(res1)) {
7934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7935 }
7936 if (!argp1) {
7937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7938 }
7939 arg1 = reinterpret_cast< wxImage * >(argp1);
7940 {
7941 if (!wxPyCheckForApp()) SWIG_fail;
7942 PyThreadState* __tstate = wxPyBeginAllowThreads();
7943 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
7944 wxPyEndAllowThreads(__tstate);
7945 if (PyErr_Occurred()) SWIG_fail;
7946 }
7947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7948 return resultobj;
7949 fail:
7950 return NULL;
7951 }
7952
7953
7954 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7955 PyObject *resultobj = 0;
7956 wxCursor *arg1 = (wxCursor *) 0 ;
7957 long result;
7958 void *argp1 = 0 ;
7959 int res1 = 0 ;
7960 PyObject *swig_obj[1] ;
7961
7962 if (!args) SWIG_fail;
7963 swig_obj[0] = args;
7964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7965 if (!SWIG_IsOK(res1)) {
7966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
7967 }
7968 arg1 = reinterpret_cast< wxCursor * >(argp1);
7969 {
7970 PyThreadState* __tstate = wxPyBeginAllowThreads();
7971 result = (long)(arg1)->GetHandle();
7972 wxPyEndAllowThreads(__tstate);
7973 if (PyErr_Occurred()) SWIG_fail;
7974 }
7975 resultobj = SWIG_From_long(static_cast< long >(result));
7976 return resultobj;
7977 fail:
7978 return NULL;
7979 }
7980
7981
7982 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7983 PyObject *resultobj = 0;
7984 wxCursor *arg1 = (wxCursor *) 0 ;
7985 long arg2 ;
7986 void *argp1 = 0 ;
7987 int res1 = 0 ;
7988 long val2 ;
7989 int ecode2 = 0 ;
7990 PyObject * obj0 = 0 ;
7991 PyObject * obj1 = 0 ;
7992 char * kwnames[] = {
7993 (char *) "self",(char *) "handle", NULL
7994 };
7995
7996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
7997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7998 if (!SWIG_IsOK(res1)) {
7999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
8000 }
8001 arg1 = reinterpret_cast< wxCursor * >(argp1);
8002 ecode2 = SWIG_AsVal_long(obj1, &val2);
8003 if (!SWIG_IsOK(ecode2)) {
8004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
8005 }
8006 arg2 = static_cast< long >(val2);
8007 {
8008 PyThreadState* __tstate = wxPyBeginAllowThreads();
8009 wxCursor_SetHandle(arg1,arg2);
8010 wxPyEndAllowThreads(__tstate);
8011 if (PyErr_Occurred()) SWIG_fail;
8012 }
8013 resultobj = SWIG_Py_Void();
8014 return resultobj;
8015 fail:
8016 return NULL;
8017 }
8018
8019
8020 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8021 PyObject *resultobj = 0;
8022 wxCursor *arg1 = (wxCursor *) 0 ;
8023 bool result;
8024 void *argp1 = 0 ;
8025 int res1 = 0 ;
8026 PyObject *swig_obj[1] ;
8027
8028 if (!args) SWIG_fail;
8029 swig_obj[0] = args;
8030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8031 if (!SWIG_IsOK(res1)) {
8032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
8033 }
8034 arg1 = reinterpret_cast< wxCursor * >(argp1);
8035 {
8036 PyThreadState* __tstate = wxPyBeginAllowThreads();
8037 result = (bool)(arg1)->Ok();
8038 wxPyEndAllowThreads(__tstate);
8039 if (PyErr_Occurred()) SWIG_fail;
8040 }
8041 {
8042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8043 }
8044 return resultobj;
8045 fail:
8046 return NULL;
8047 }
8048
8049
8050 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8051 PyObject *resultobj = 0;
8052 wxCursor *arg1 = (wxCursor *) 0 ;
8053 int result;
8054 void *argp1 = 0 ;
8055 int res1 = 0 ;
8056 PyObject *swig_obj[1] ;
8057
8058 if (!args) SWIG_fail;
8059 swig_obj[0] = args;
8060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8061 if (!SWIG_IsOK(res1)) {
8062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
8063 }
8064 arg1 = reinterpret_cast< wxCursor * >(argp1);
8065 {
8066 PyThreadState* __tstate = wxPyBeginAllowThreads();
8067 result = (int)(arg1)->GetWidth();
8068 wxPyEndAllowThreads(__tstate);
8069 if (PyErr_Occurred()) SWIG_fail;
8070 }
8071 resultobj = SWIG_From_int(static_cast< int >(result));
8072 return resultobj;
8073 fail:
8074 return NULL;
8075 }
8076
8077
8078 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8079 PyObject *resultobj = 0;
8080 wxCursor *arg1 = (wxCursor *) 0 ;
8081 int result;
8082 void *argp1 = 0 ;
8083 int res1 = 0 ;
8084 PyObject *swig_obj[1] ;
8085
8086 if (!args) SWIG_fail;
8087 swig_obj[0] = args;
8088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8089 if (!SWIG_IsOK(res1)) {
8090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
8091 }
8092 arg1 = reinterpret_cast< wxCursor * >(argp1);
8093 {
8094 PyThreadState* __tstate = wxPyBeginAllowThreads();
8095 result = (int)(arg1)->GetHeight();
8096 wxPyEndAllowThreads(__tstate);
8097 if (PyErr_Occurred()) SWIG_fail;
8098 }
8099 resultobj = SWIG_From_int(static_cast< int >(result));
8100 return resultobj;
8101 fail:
8102 return NULL;
8103 }
8104
8105
8106 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8107 PyObject *resultobj = 0;
8108 wxCursor *arg1 = (wxCursor *) 0 ;
8109 int result;
8110 void *argp1 = 0 ;
8111 int res1 = 0 ;
8112 PyObject *swig_obj[1] ;
8113
8114 if (!args) SWIG_fail;
8115 swig_obj[0] = args;
8116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8117 if (!SWIG_IsOK(res1)) {
8118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
8119 }
8120 arg1 = reinterpret_cast< wxCursor * >(argp1);
8121 {
8122 PyThreadState* __tstate = wxPyBeginAllowThreads();
8123 result = (int)(arg1)->GetDepth();
8124 wxPyEndAllowThreads(__tstate);
8125 if (PyErr_Occurred()) SWIG_fail;
8126 }
8127 resultobj = SWIG_From_int(static_cast< int >(result));
8128 return resultobj;
8129 fail:
8130 return NULL;
8131 }
8132
8133
8134 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8135 PyObject *resultobj = 0;
8136 wxCursor *arg1 = (wxCursor *) 0 ;
8137 int arg2 ;
8138 void *argp1 = 0 ;
8139 int res1 = 0 ;
8140 int val2 ;
8141 int ecode2 = 0 ;
8142 PyObject * obj0 = 0 ;
8143 PyObject * obj1 = 0 ;
8144 char * kwnames[] = {
8145 (char *) "self",(char *) "w", NULL
8146 };
8147
8148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
8149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8150 if (!SWIG_IsOK(res1)) {
8151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
8152 }
8153 arg1 = reinterpret_cast< wxCursor * >(argp1);
8154 ecode2 = SWIG_AsVal_int(obj1, &val2);
8155 if (!SWIG_IsOK(ecode2)) {
8156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
8157 }
8158 arg2 = static_cast< int >(val2);
8159 {
8160 PyThreadState* __tstate = wxPyBeginAllowThreads();
8161 (arg1)->SetWidth(arg2);
8162 wxPyEndAllowThreads(__tstate);
8163 if (PyErr_Occurred()) SWIG_fail;
8164 }
8165 resultobj = SWIG_Py_Void();
8166 return resultobj;
8167 fail:
8168 return NULL;
8169 }
8170
8171
8172 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8173 PyObject *resultobj = 0;
8174 wxCursor *arg1 = (wxCursor *) 0 ;
8175 int arg2 ;
8176 void *argp1 = 0 ;
8177 int res1 = 0 ;
8178 int val2 ;
8179 int ecode2 = 0 ;
8180 PyObject * obj0 = 0 ;
8181 PyObject * obj1 = 0 ;
8182 char * kwnames[] = {
8183 (char *) "self",(char *) "h", NULL
8184 };
8185
8186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
8187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8188 if (!SWIG_IsOK(res1)) {
8189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
8190 }
8191 arg1 = reinterpret_cast< wxCursor * >(argp1);
8192 ecode2 = SWIG_AsVal_int(obj1, &val2);
8193 if (!SWIG_IsOK(ecode2)) {
8194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
8195 }
8196 arg2 = static_cast< int >(val2);
8197 {
8198 PyThreadState* __tstate = wxPyBeginAllowThreads();
8199 (arg1)->SetHeight(arg2);
8200 wxPyEndAllowThreads(__tstate);
8201 if (PyErr_Occurred()) SWIG_fail;
8202 }
8203 resultobj = SWIG_Py_Void();
8204 return resultobj;
8205 fail:
8206 return NULL;
8207 }
8208
8209
8210 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8211 PyObject *resultobj = 0;
8212 wxCursor *arg1 = (wxCursor *) 0 ;
8213 int arg2 ;
8214 void *argp1 = 0 ;
8215 int res1 = 0 ;
8216 int val2 ;
8217 int ecode2 = 0 ;
8218 PyObject * obj0 = 0 ;
8219 PyObject * obj1 = 0 ;
8220 char * kwnames[] = {
8221 (char *) "self",(char *) "d", NULL
8222 };
8223
8224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
8225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8226 if (!SWIG_IsOK(res1)) {
8227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
8228 }
8229 arg1 = reinterpret_cast< wxCursor * >(argp1);
8230 ecode2 = SWIG_AsVal_int(obj1, &val2);
8231 if (!SWIG_IsOK(ecode2)) {
8232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
8233 }
8234 arg2 = static_cast< int >(val2);
8235 {
8236 PyThreadState* __tstate = wxPyBeginAllowThreads();
8237 (arg1)->SetDepth(arg2);
8238 wxPyEndAllowThreads(__tstate);
8239 if (PyErr_Occurred()) SWIG_fail;
8240 }
8241 resultobj = SWIG_Py_Void();
8242 return resultobj;
8243 fail:
8244 return NULL;
8245 }
8246
8247
8248 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8249 PyObject *resultobj = 0;
8250 wxCursor *arg1 = (wxCursor *) 0 ;
8251 wxSize *arg2 = 0 ;
8252 void *argp1 = 0 ;
8253 int res1 = 0 ;
8254 wxSize temp2 ;
8255 PyObject * obj0 = 0 ;
8256 PyObject * obj1 = 0 ;
8257 char * kwnames[] = {
8258 (char *) "self",(char *) "size", NULL
8259 };
8260
8261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
8262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8263 if (!SWIG_IsOK(res1)) {
8264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
8265 }
8266 arg1 = reinterpret_cast< wxCursor * >(argp1);
8267 {
8268 arg2 = &temp2;
8269 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
8270 }
8271 {
8272 PyThreadState* __tstate = wxPyBeginAllowThreads();
8273 (arg1)->SetSize((wxSize const &)*arg2);
8274 wxPyEndAllowThreads(__tstate);
8275 if (PyErr_Occurred()) SWIG_fail;
8276 }
8277 resultobj = SWIG_Py_Void();
8278 return resultobj;
8279 fail:
8280 return NULL;
8281 }
8282
8283
8284 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8285 PyObject *obj;
8286 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8287 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
8288 return SWIG_Py_Void();
8289 }
8290
8291 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8292 return SWIG_Python_InitShadowInstance(args);
8293 }
8294
8295 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8296 PyObject *resultobj = 0;
8297 int arg1 = (int) 0 ;
8298 int arg2 = (int) 0 ;
8299 int arg3 = (int) 0 ;
8300 int arg4 = (int) 0 ;
8301 wxRegion *result = 0 ;
8302 int val1 ;
8303 int ecode1 = 0 ;
8304 int val2 ;
8305 int ecode2 = 0 ;
8306 int val3 ;
8307 int ecode3 = 0 ;
8308 int val4 ;
8309 int ecode4 = 0 ;
8310 PyObject * obj0 = 0 ;
8311 PyObject * obj1 = 0 ;
8312 PyObject * obj2 = 0 ;
8313 PyObject * obj3 = 0 ;
8314 char * kwnames[] = {
8315 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8316 };
8317
8318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8319 if (obj0) {
8320 ecode1 = SWIG_AsVal_int(obj0, &val1);
8321 if (!SWIG_IsOK(ecode1)) {
8322 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
8323 }
8324 arg1 = static_cast< int >(val1);
8325 }
8326 if (obj1) {
8327 ecode2 = SWIG_AsVal_int(obj1, &val2);
8328 if (!SWIG_IsOK(ecode2)) {
8329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
8330 }
8331 arg2 = static_cast< int >(val2);
8332 }
8333 if (obj2) {
8334 ecode3 = SWIG_AsVal_int(obj2, &val3);
8335 if (!SWIG_IsOK(ecode3)) {
8336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
8337 }
8338 arg3 = static_cast< int >(val3);
8339 }
8340 if (obj3) {
8341 ecode4 = SWIG_AsVal_int(obj3, &val4);
8342 if (!SWIG_IsOK(ecode4)) {
8343 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
8344 }
8345 arg4 = static_cast< int >(val4);
8346 }
8347 {
8348 if (!wxPyCheckForApp()) SWIG_fail;
8349 PyThreadState* __tstate = wxPyBeginAllowThreads();
8350 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
8351 wxPyEndAllowThreads(__tstate);
8352 if (PyErr_Occurred()) SWIG_fail;
8353 }
8354 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
8355 return resultobj;
8356 fail:
8357 return NULL;
8358 }
8359
8360
8361 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8362 PyObject *resultobj = 0;
8363 wxBitmap *arg1 = 0 ;
8364 wxRegion *result = 0 ;
8365 void *argp1 = 0 ;
8366 int res1 = 0 ;
8367 PyObject * obj0 = 0 ;
8368 char * kwnames[] = {
8369 (char *) "bmp", NULL
8370 };
8371
8372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
8373 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8374 if (!SWIG_IsOK(res1)) {
8375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8376 }
8377 if (!argp1) {
8378 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8379 }
8380 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8381 {
8382 if (!wxPyCheckForApp()) SWIG_fail;
8383 PyThreadState* __tstate = wxPyBeginAllowThreads();
8384 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
8385 wxPyEndAllowThreads(__tstate);
8386 if (PyErr_Occurred()) SWIG_fail;
8387 }
8388 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8389 return resultobj;
8390 fail:
8391 return NULL;
8392 }
8393
8394
8395 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8396 PyObject *resultobj = 0;
8397 wxBitmap *arg1 = 0 ;
8398 wxColour *arg2 = 0 ;
8399 int arg3 = (int) 0 ;
8400 wxRegion *result = 0 ;
8401 void *argp1 = 0 ;
8402 int res1 = 0 ;
8403 wxColour temp2 ;
8404 int val3 ;
8405 int ecode3 = 0 ;
8406 PyObject * obj0 = 0 ;
8407 PyObject * obj1 = 0 ;
8408 PyObject * obj2 = 0 ;
8409 char * kwnames[] = {
8410 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
8411 };
8412
8413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8414 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8415 if (!SWIG_IsOK(res1)) {
8416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8417 }
8418 if (!argp1) {
8419 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8420 }
8421 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8422 {
8423 arg2 = &temp2;
8424 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8425 }
8426 if (obj2) {
8427 ecode3 = SWIG_AsVal_int(obj2, &val3);
8428 if (!SWIG_IsOK(ecode3)) {
8429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
8430 }
8431 arg3 = static_cast< int >(val3);
8432 }
8433 {
8434 if (!wxPyCheckForApp()) SWIG_fail;
8435 PyThreadState* __tstate = wxPyBeginAllowThreads();
8436 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
8437 wxPyEndAllowThreads(__tstate);
8438 if (PyErr_Occurred()) SWIG_fail;
8439 }
8440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8441 return resultobj;
8442 fail:
8443 return NULL;
8444 }
8445
8446
8447 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8448 PyObject *resultobj = 0;
8449 int arg1 ;
8450 wxPoint *arg2 = (wxPoint *) 0 ;
8451 int arg3 = (int) wxWINDING_RULE ;
8452 wxRegion *result = 0 ;
8453 int val3 ;
8454 int ecode3 = 0 ;
8455 PyObject * obj0 = 0 ;
8456 PyObject * obj1 = 0 ;
8457 char * kwnames[] = {
8458 (char *) "points",(char *) "fillStyle", NULL
8459 };
8460
8461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
8462 {
8463 arg2 = wxPoint_LIST_helper(obj0, &arg1);
8464 if (arg2 == NULL) SWIG_fail;
8465 }
8466 if (obj1) {
8467 ecode3 = SWIG_AsVal_int(obj1, &val3);
8468 if (!SWIG_IsOK(ecode3)) {
8469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
8470 }
8471 arg3 = static_cast< int >(val3);
8472 }
8473 {
8474 if (!wxPyCheckForApp()) SWIG_fail;
8475 PyThreadState* __tstate = wxPyBeginAllowThreads();
8476 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
8477 wxPyEndAllowThreads(__tstate);
8478 if (PyErr_Occurred()) SWIG_fail;
8479 }
8480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8481 {
8482 if (arg2) delete [] arg2;
8483 }
8484 return resultobj;
8485 fail:
8486 {
8487 if (arg2) delete [] arg2;
8488 }
8489 return NULL;
8490 }
8491
8492
8493 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8494 PyObject *resultobj = 0;
8495 wxRegion *arg1 = (wxRegion *) 0 ;
8496 void *argp1 = 0 ;
8497 int res1 = 0 ;
8498 PyObject *swig_obj[1] ;
8499
8500 if (!args) SWIG_fail;
8501 swig_obj[0] = args;
8502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
8503 if (!SWIG_IsOK(res1)) {
8504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
8505 }
8506 arg1 = reinterpret_cast< wxRegion * >(argp1);
8507 {
8508 PyThreadState* __tstate = wxPyBeginAllowThreads();
8509 delete arg1;
8510
8511 wxPyEndAllowThreads(__tstate);
8512 if (PyErr_Occurred()) SWIG_fail;
8513 }
8514 resultobj = SWIG_Py_Void();
8515 return resultobj;
8516 fail:
8517 return NULL;
8518 }
8519
8520
8521 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8522 PyObject *resultobj = 0;
8523 wxRegion *arg1 = (wxRegion *) 0 ;
8524 void *argp1 = 0 ;
8525 int res1 = 0 ;
8526 PyObject *swig_obj[1] ;
8527
8528 if (!args) SWIG_fail;
8529 swig_obj[0] = args;
8530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8531 if (!SWIG_IsOK(res1)) {
8532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
8533 }
8534 arg1 = reinterpret_cast< wxRegion * >(argp1);
8535 {
8536 PyThreadState* __tstate = wxPyBeginAllowThreads();
8537 (arg1)->Clear();
8538 wxPyEndAllowThreads(__tstate);
8539 if (PyErr_Occurred()) SWIG_fail;
8540 }
8541 resultobj = SWIG_Py_Void();
8542 return resultobj;
8543 fail:
8544 return NULL;
8545 }
8546
8547
8548 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8549 PyObject *resultobj = 0;
8550 wxRegion *arg1 = (wxRegion *) 0 ;
8551 int arg2 ;
8552 int arg3 ;
8553 bool result;
8554 void *argp1 = 0 ;
8555 int res1 = 0 ;
8556 int val2 ;
8557 int ecode2 = 0 ;
8558 int val3 ;
8559 int ecode3 = 0 ;
8560 PyObject * obj0 = 0 ;
8561 PyObject * obj1 = 0 ;
8562 PyObject * obj2 = 0 ;
8563 char * kwnames[] = {
8564 (char *) "self",(char *) "x",(char *) "y", NULL
8565 };
8566
8567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8569 if (!SWIG_IsOK(res1)) {
8570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
8571 }
8572 arg1 = reinterpret_cast< wxRegion * >(argp1);
8573 ecode2 = SWIG_AsVal_int(obj1, &val2);
8574 if (!SWIG_IsOK(ecode2)) {
8575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
8576 }
8577 arg2 = static_cast< int >(val2);
8578 ecode3 = SWIG_AsVal_int(obj2, &val3);
8579 if (!SWIG_IsOK(ecode3)) {
8580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
8581 }
8582 arg3 = static_cast< int >(val3);
8583 {
8584 PyThreadState* __tstate = wxPyBeginAllowThreads();
8585 result = (bool)(arg1)->Offset(arg2,arg3);
8586 wxPyEndAllowThreads(__tstate);
8587 if (PyErr_Occurred()) SWIG_fail;
8588 }
8589 {
8590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8591 }
8592 return resultobj;
8593 fail:
8594 return NULL;
8595 }
8596
8597
8598 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8599 PyObject *resultobj = 0;
8600 wxRegion *arg1 = (wxRegion *) 0 ;
8601 int arg2 ;
8602 int arg3 ;
8603 wxRegionContain result;
8604 void *argp1 = 0 ;
8605 int res1 = 0 ;
8606 int val2 ;
8607 int ecode2 = 0 ;
8608 int val3 ;
8609 int ecode3 = 0 ;
8610 PyObject * obj0 = 0 ;
8611 PyObject * obj1 = 0 ;
8612 PyObject * obj2 = 0 ;
8613 char * kwnames[] = {
8614 (char *) "self",(char *) "x",(char *) "y", NULL
8615 };
8616
8617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8619 if (!SWIG_IsOK(res1)) {
8620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
8621 }
8622 arg1 = reinterpret_cast< wxRegion * >(argp1);
8623 ecode2 = SWIG_AsVal_int(obj1, &val2);
8624 if (!SWIG_IsOK(ecode2)) {
8625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
8626 }
8627 arg2 = static_cast< int >(val2);
8628 ecode3 = SWIG_AsVal_int(obj2, &val3);
8629 if (!SWIG_IsOK(ecode3)) {
8630 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
8631 }
8632 arg3 = static_cast< int >(val3);
8633 {
8634 PyThreadState* __tstate = wxPyBeginAllowThreads();
8635 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
8636 wxPyEndAllowThreads(__tstate);
8637 if (PyErr_Occurred()) SWIG_fail;
8638 }
8639 resultobj = SWIG_From_int(static_cast< int >(result));
8640 return resultobj;
8641 fail:
8642 return NULL;
8643 }
8644
8645
8646 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8647 PyObject *resultobj = 0;
8648 wxRegion *arg1 = (wxRegion *) 0 ;
8649 wxPoint *arg2 = 0 ;
8650 wxRegionContain result;
8651 void *argp1 = 0 ;
8652 int res1 = 0 ;
8653 wxPoint temp2 ;
8654 PyObject * obj0 = 0 ;
8655 PyObject * obj1 = 0 ;
8656 char * kwnames[] = {
8657 (char *) "self",(char *) "pt", NULL
8658 };
8659
8660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
8661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8662 if (!SWIG_IsOK(res1)) {
8663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
8664 }
8665 arg1 = reinterpret_cast< wxRegion * >(argp1);
8666 {
8667 arg2 = &temp2;
8668 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8669 }
8670 {
8671 PyThreadState* __tstate = wxPyBeginAllowThreads();
8672 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
8673 wxPyEndAllowThreads(__tstate);
8674 if (PyErr_Occurred()) SWIG_fail;
8675 }
8676 resultobj = SWIG_From_int(static_cast< int >(result));
8677 return resultobj;
8678 fail:
8679 return NULL;
8680 }
8681
8682
8683 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8684 PyObject *resultobj = 0;
8685 wxRegion *arg1 = (wxRegion *) 0 ;
8686 wxRect *arg2 = 0 ;
8687 wxRegionContain result;
8688 void *argp1 = 0 ;
8689 int res1 = 0 ;
8690 wxRect temp2 ;
8691 PyObject * obj0 = 0 ;
8692 PyObject * obj1 = 0 ;
8693 char * kwnames[] = {
8694 (char *) "self",(char *) "rect", NULL
8695 };
8696
8697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
8698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8699 if (!SWIG_IsOK(res1)) {
8700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8701 }
8702 arg1 = reinterpret_cast< wxRegion * >(argp1);
8703 {
8704 arg2 = &temp2;
8705 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8706 }
8707 {
8708 PyThreadState* __tstate = wxPyBeginAllowThreads();
8709 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
8710 wxPyEndAllowThreads(__tstate);
8711 if (PyErr_Occurred()) SWIG_fail;
8712 }
8713 resultobj = SWIG_From_int(static_cast< int >(result));
8714 return resultobj;
8715 fail:
8716 return NULL;
8717 }
8718
8719
8720 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8721 PyObject *resultobj = 0;
8722 wxRegion *arg1 = (wxRegion *) 0 ;
8723 int arg2 ;
8724 int arg3 ;
8725 int arg4 ;
8726 int arg5 ;
8727 wxRegionContain result;
8728 void *argp1 = 0 ;
8729 int res1 = 0 ;
8730 int val2 ;
8731 int ecode2 = 0 ;
8732 int val3 ;
8733 int ecode3 = 0 ;
8734 int val4 ;
8735 int ecode4 = 0 ;
8736 int val5 ;
8737 int ecode5 = 0 ;
8738 PyObject * obj0 = 0 ;
8739 PyObject * obj1 = 0 ;
8740 PyObject * obj2 = 0 ;
8741 PyObject * obj3 = 0 ;
8742 PyObject * obj4 = 0 ;
8743 char * kwnames[] = {
8744 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
8745 };
8746
8747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8749 if (!SWIG_IsOK(res1)) {
8750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
8751 }
8752 arg1 = reinterpret_cast< wxRegion * >(argp1);
8753 ecode2 = SWIG_AsVal_int(obj1, &val2);
8754 if (!SWIG_IsOK(ecode2)) {
8755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
8756 }
8757 arg2 = static_cast< int >(val2);
8758 ecode3 = SWIG_AsVal_int(obj2, &val3);
8759 if (!SWIG_IsOK(ecode3)) {
8760 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
8761 }
8762 arg3 = static_cast< int >(val3);
8763 ecode4 = SWIG_AsVal_int(obj3, &val4);
8764 if (!SWIG_IsOK(ecode4)) {
8765 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
8766 }
8767 arg4 = static_cast< int >(val4);
8768 ecode5 = SWIG_AsVal_int(obj4, &val5);
8769 if (!SWIG_IsOK(ecode5)) {
8770 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
8771 }
8772 arg5 = static_cast< int >(val5);
8773 {
8774 PyThreadState* __tstate = wxPyBeginAllowThreads();
8775 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
8776 wxPyEndAllowThreads(__tstate);
8777 if (PyErr_Occurred()) SWIG_fail;
8778 }
8779 resultobj = SWIG_From_int(static_cast< int >(result));
8780 return resultobj;
8781 fail:
8782 return NULL;
8783 }
8784
8785
8786 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8787 PyObject *resultobj = 0;
8788 wxRegion *arg1 = (wxRegion *) 0 ;
8789 wxRect result;
8790 void *argp1 = 0 ;
8791 int res1 = 0 ;
8792 PyObject *swig_obj[1] ;
8793
8794 if (!args) SWIG_fail;
8795 swig_obj[0] = args;
8796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8797 if (!SWIG_IsOK(res1)) {
8798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
8799 }
8800 arg1 = reinterpret_cast< wxRegion * >(argp1);
8801 {
8802 PyThreadState* __tstate = wxPyBeginAllowThreads();
8803 result = (arg1)->GetBox();
8804 wxPyEndAllowThreads(__tstate);
8805 if (PyErr_Occurred()) SWIG_fail;
8806 }
8807 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
8808 return resultobj;
8809 fail:
8810 return NULL;
8811 }
8812
8813
8814 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8815 PyObject *resultobj = 0;
8816 wxRegion *arg1 = (wxRegion *) 0 ;
8817 int arg2 ;
8818 int arg3 ;
8819 int arg4 ;
8820 int arg5 ;
8821 bool result;
8822 void *argp1 = 0 ;
8823 int res1 = 0 ;
8824 int val2 ;
8825 int ecode2 = 0 ;
8826 int val3 ;
8827 int ecode3 = 0 ;
8828 int val4 ;
8829 int ecode4 = 0 ;
8830 int val5 ;
8831 int ecode5 = 0 ;
8832 PyObject * obj0 = 0 ;
8833 PyObject * obj1 = 0 ;
8834 PyObject * obj2 = 0 ;
8835 PyObject * obj3 = 0 ;
8836 PyObject * obj4 = 0 ;
8837 char * kwnames[] = {
8838 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8839 };
8840
8841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8843 if (!SWIG_IsOK(res1)) {
8844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
8845 }
8846 arg1 = reinterpret_cast< wxRegion * >(argp1);
8847 ecode2 = SWIG_AsVal_int(obj1, &val2);
8848 if (!SWIG_IsOK(ecode2)) {
8849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
8850 }
8851 arg2 = static_cast< int >(val2);
8852 ecode3 = SWIG_AsVal_int(obj2, &val3);
8853 if (!SWIG_IsOK(ecode3)) {
8854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
8855 }
8856 arg3 = static_cast< int >(val3);
8857 ecode4 = SWIG_AsVal_int(obj3, &val4);
8858 if (!SWIG_IsOK(ecode4)) {
8859 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
8860 }
8861 arg4 = static_cast< int >(val4);
8862 ecode5 = SWIG_AsVal_int(obj4, &val5);
8863 if (!SWIG_IsOK(ecode5)) {
8864 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
8865 }
8866 arg5 = static_cast< int >(val5);
8867 {
8868 PyThreadState* __tstate = wxPyBeginAllowThreads();
8869 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
8870 wxPyEndAllowThreads(__tstate);
8871 if (PyErr_Occurred()) SWIG_fail;
8872 }
8873 {
8874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8875 }
8876 return resultobj;
8877 fail:
8878 return NULL;
8879 }
8880
8881
8882 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8883 PyObject *resultobj = 0;
8884 wxRegion *arg1 = (wxRegion *) 0 ;
8885 wxRect *arg2 = 0 ;
8886 bool result;
8887 void *argp1 = 0 ;
8888 int res1 = 0 ;
8889 wxRect temp2 ;
8890 PyObject * obj0 = 0 ;
8891 PyObject * obj1 = 0 ;
8892 char * kwnames[] = {
8893 (char *) "self",(char *) "rect", NULL
8894 };
8895
8896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8898 if (!SWIG_IsOK(res1)) {
8899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8900 }
8901 arg1 = reinterpret_cast< wxRegion * >(argp1);
8902 {
8903 arg2 = &temp2;
8904 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8905 }
8906 {
8907 PyThreadState* __tstate = wxPyBeginAllowThreads();
8908 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
8909 wxPyEndAllowThreads(__tstate);
8910 if (PyErr_Occurred()) SWIG_fail;
8911 }
8912 {
8913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8914 }
8915 return resultobj;
8916 fail:
8917 return NULL;
8918 }
8919
8920
8921 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8922 PyObject *resultobj = 0;
8923 wxRegion *arg1 = (wxRegion *) 0 ;
8924 wxRegion *arg2 = 0 ;
8925 bool result;
8926 void *argp1 = 0 ;
8927 int res1 = 0 ;
8928 void *argp2 = 0 ;
8929 int res2 = 0 ;
8930 PyObject * obj0 = 0 ;
8931 PyObject * obj1 = 0 ;
8932 char * kwnames[] = {
8933 (char *) "self",(char *) "region", NULL
8934 };
8935
8936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8938 if (!SWIG_IsOK(res1)) {
8939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8940 }
8941 arg1 = reinterpret_cast< wxRegion * >(argp1);
8942 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8943 if (!SWIG_IsOK(res2)) {
8944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8945 }
8946 if (!argp2) {
8947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8948 }
8949 arg2 = reinterpret_cast< wxRegion * >(argp2);
8950 {
8951 PyThreadState* __tstate = wxPyBeginAllowThreads();
8952 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
8953 wxPyEndAllowThreads(__tstate);
8954 if (PyErr_Occurred()) SWIG_fail;
8955 }
8956 {
8957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8958 }
8959 return resultobj;
8960 fail:
8961 return NULL;
8962 }
8963
8964
8965 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8966 PyObject *resultobj = 0;
8967 wxRegion *arg1 = (wxRegion *) 0 ;
8968 bool result;
8969 void *argp1 = 0 ;
8970 int res1 = 0 ;
8971 PyObject *swig_obj[1] ;
8972
8973 if (!args) SWIG_fail;
8974 swig_obj[0] = args;
8975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8976 if (!SWIG_IsOK(res1)) {
8977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
8978 }
8979 arg1 = reinterpret_cast< wxRegion * >(argp1);
8980 {
8981 PyThreadState* __tstate = wxPyBeginAllowThreads();
8982 result = (bool)(arg1)->IsEmpty();
8983 wxPyEndAllowThreads(__tstate);
8984 if (PyErr_Occurred()) SWIG_fail;
8985 }
8986 {
8987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8988 }
8989 return resultobj;
8990 fail:
8991 return NULL;
8992 }
8993
8994
8995 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8996 PyObject *resultobj = 0;
8997 wxRegion *arg1 = (wxRegion *) 0 ;
8998 int arg2 ;
8999 int arg3 ;
9000 int arg4 ;
9001 int arg5 ;
9002 bool result;
9003 void *argp1 = 0 ;
9004 int res1 = 0 ;
9005 int val2 ;
9006 int ecode2 = 0 ;
9007 int val3 ;
9008 int ecode3 = 0 ;
9009 int val4 ;
9010 int ecode4 = 0 ;
9011 int val5 ;
9012 int ecode5 = 0 ;
9013 PyObject * obj0 = 0 ;
9014 PyObject * obj1 = 0 ;
9015 PyObject * obj2 = 0 ;
9016 PyObject * obj3 = 0 ;
9017 PyObject * obj4 = 0 ;
9018 char * kwnames[] = {
9019 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9020 };
9021
9022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9024 if (!SWIG_IsOK(res1)) {
9025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
9026 }
9027 arg1 = reinterpret_cast< wxRegion * >(argp1);
9028 ecode2 = SWIG_AsVal_int(obj1, &val2);
9029 if (!SWIG_IsOK(ecode2)) {
9030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
9031 }
9032 arg2 = static_cast< int >(val2);
9033 ecode3 = SWIG_AsVal_int(obj2, &val3);
9034 if (!SWIG_IsOK(ecode3)) {
9035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
9036 }
9037 arg3 = static_cast< int >(val3);
9038 ecode4 = SWIG_AsVal_int(obj3, &val4);
9039 if (!SWIG_IsOK(ecode4)) {
9040 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
9041 }
9042 arg4 = static_cast< int >(val4);
9043 ecode5 = SWIG_AsVal_int(obj4, &val5);
9044 if (!SWIG_IsOK(ecode5)) {
9045 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
9046 }
9047 arg5 = static_cast< int >(val5);
9048 {
9049 PyThreadState* __tstate = wxPyBeginAllowThreads();
9050 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
9051 wxPyEndAllowThreads(__tstate);
9052 if (PyErr_Occurred()) SWIG_fail;
9053 }
9054 {
9055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9056 }
9057 return resultobj;
9058 fail:
9059 return NULL;
9060 }
9061
9062
9063 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9064 PyObject *resultobj = 0;
9065 wxRegion *arg1 = (wxRegion *) 0 ;
9066 wxRect *arg2 = 0 ;
9067 bool result;
9068 void *argp1 = 0 ;
9069 int res1 = 0 ;
9070 wxRect temp2 ;
9071 PyObject * obj0 = 0 ;
9072 PyObject * obj1 = 0 ;
9073 char * kwnames[] = {
9074 (char *) "self",(char *) "rect", NULL
9075 };
9076
9077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
9078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9079 if (!SWIG_IsOK(res1)) {
9080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9081 }
9082 arg1 = reinterpret_cast< wxRegion * >(argp1);
9083 {
9084 arg2 = &temp2;
9085 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9086 }
9087 {
9088 PyThreadState* __tstate = wxPyBeginAllowThreads();
9089 result = (bool)(arg1)->Union((wxRect const &)*arg2);
9090 wxPyEndAllowThreads(__tstate);
9091 if (PyErr_Occurred()) SWIG_fail;
9092 }
9093 {
9094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9095 }
9096 return resultobj;
9097 fail:
9098 return NULL;
9099 }
9100
9101
9102 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9103 PyObject *resultobj = 0;
9104 wxRegion *arg1 = (wxRegion *) 0 ;
9105 wxRegion *arg2 = 0 ;
9106 bool result;
9107 void *argp1 = 0 ;
9108 int res1 = 0 ;
9109 void *argp2 = 0 ;
9110 int res2 = 0 ;
9111 PyObject * obj0 = 0 ;
9112 PyObject * obj1 = 0 ;
9113 char * kwnames[] = {
9114 (char *) "self",(char *) "region", NULL
9115 };
9116
9117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9119 if (!SWIG_IsOK(res1)) {
9120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9121 }
9122 arg1 = reinterpret_cast< wxRegion * >(argp1);
9123 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9124 if (!SWIG_IsOK(res2)) {
9125 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9126 }
9127 if (!argp2) {
9128 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9129 }
9130 arg2 = reinterpret_cast< wxRegion * >(argp2);
9131 {
9132 PyThreadState* __tstate = wxPyBeginAllowThreads();
9133 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
9134 wxPyEndAllowThreads(__tstate);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 }
9137 {
9138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9139 }
9140 return resultobj;
9141 fail:
9142 return NULL;
9143 }
9144
9145
9146 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9147 PyObject *resultobj = 0;
9148 wxRegion *arg1 = (wxRegion *) 0 ;
9149 int arg2 ;
9150 int arg3 ;
9151 int arg4 ;
9152 int arg5 ;
9153 bool result;
9154 void *argp1 = 0 ;
9155 int res1 = 0 ;
9156 int val2 ;
9157 int ecode2 = 0 ;
9158 int val3 ;
9159 int ecode3 = 0 ;
9160 int val4 ;
9161 int ecode4 = 0 ;
9162 int val5 ;
9163 int ecode5 = 0 ;
9164 PyObject * obj0 = 0 ;
9165 PyObject * obj1 = 0 ;
9166 PyObject * obj2 = 0 ;
9167 PyObject * obj3 = 0 ;
9168 PyObject * obj4 = 0 ;
9169 char * kwnames[] = {
9170 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9171 };
9172
9173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9175 if (!SWIG_IsOK(res1)) {
9176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
9177 }
9178 arg1 = reinterpret_cast< wxRegion * >(argp1);
9179 ecode2 = SWIG_AsVal_int(obj1, &val2);
9180 if (!SWIG_IsOK(ecode2)) {
9181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
9182 }
9183 arg2 = static_cast< int >(val2);
9184 ecode3 = SWIG_AsVal_int(obj2, &val3);
9185 if (!SWIG_IsOK(ecode3)) {
9186 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
9187 }
9188 arg3 = static_cast< int >(val3);
9189 ecode4 = SWIG_AsVal_int(obj3, &val4);
9190 if (!SWIG_IsOK(ecode4)) {
9191 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
9192 }
9193 arg4 = static_cast< int >(val4);
9194 ecode5 = SWIG_AsVal_int(obj4, &val5);
9195 if (!SWIG_IsOK(ecode5)) {
9196 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
9197 }
9198 arg5 = static_cast< int >(val5);
9199 {
9200 PyThreadState* __tstate = wxPyBeginAllowThreads();
9201 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
9202 wxPyEndAllowThreads(__tstate);
9203 if (PyErr_Occurred()) SWIG_fail;
9204 }
9205 {
9206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9207 }
9208 return resultobj;
9209 fail:
9210 return NULL;
9211 }
9212
9213
9214 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9215 PyObject *resultobj = 0;
9216 wxRegion *arg1 = (wxRegion *) 0 ;
9217 wxRect *arg2 = 0 ;
9218 bool result;
9219 void *argp1 = 0 ;
9220 int res1 = 0 ;
9221 wxRect temp2 ;
9222 PyObject * obj0 = 0 ;
9223 PyObject * obj1 = 0 ;
9224 char * kwnames[] = {
9225 (char *) "self",(char *) "rect", NULL
9226 };
9227
9228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
9229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9230 if (!SWIG_IsOK(res1)) {
9231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9232 }
9233 arg1 = reinterpret_cast< wxRegion * >(argp1);
9234 {
9235 arg2 = &temp2;
9236 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9237 }
9238 {
9239 PyThreadState* __tstate = wxPyBeginAllowThreads();
9240 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
9241 wxPyEndAllowThreads(__tstate);
9242 if (PyErr_Occurred()) SWIG_fail;
9243 }
9244 {
9245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9246 }
9247 return resultobj;
9248 fail:
9249 return NULL;
9250 }
9251
9252
9253 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9254 PyObject *resultobj = 0;
9255 wxRegion *arg1 = (wxRegion *) 0 ;
9256 wxRegion *arg2 = 0 ;
9257 bool result;
9258 void *argp1 = 0 ;
9259 int res1 = 0 ;
9260 void *argp2 = 0 ;
9261 int res2 = 0 ;
9262 PyObject * obj0 = 0 ;
9263 PyObject * obj1 = 0 ;
9264 char * kwnames[] = {
9265 (char *) "self",(char *) "region", NULL
9266 };
9267
9268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9270 if (!SWIG_IsOK(res1)) {
9271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9272 }
9273 arg1 = reinterpret_cast< wxRegion * >(argp1);
9274 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9275 if (!SWIG_IsOK(res2)) {
9276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9277 }
9278 if (!argp2) {
9279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9280 }
9281 arg2 = reinterpret_cast< wxRegion * >(argp2);
9282 {
9283 PyThreadState* __tstate = wxPyBeginAllowThreads();
9284 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
9285 wxPyEndAllowThreads(__tstate);
9286 if (PyErr_Occurred()) SWIG_fail;
9287 }
9288 {
9289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9290 }
9291 return resultobj;
9292 fail:
9293 return NULL;
9294 }
9295
9296
9297 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9298 PyObject *resultobj = 0;
9299 wxRegion *arg1 = (wxRegion *) 0 ;
9300 int arg2 ;
9301 int arg3 ;
9302 int arg4 ;
9303 int arg5 ;
9304 bool result;
9305 void *argp1 = 0 ;
9306 int res1 = 0 ;
9307 int val2 ;
9308 int ecode2 = 0 ;
9309 int val3 ;
9310 int ecode3 = 0 ;
9311 int val4 ;
9312 int ecode4 = 0 ;
9313 int val5 ;
9314 int ecode5 = 0 ;
9315 PyObject * obj0 = 0 ;
9316 PyObject * obj1 = 0 ;
9317 PyObject * obj2 = 0 ;
9318 PyObject * obj3 = 0 ;
9319 PyObject * obj4 = 0 ;
9320 char * kwnames[] = {
9321 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9322 };
9323
9324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9326 if (!SWIG_IsOK(res1)) {
9327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
9328 }
9329 arg1 = reinterpret_cast< wxRegion * >(argp1);
9330 ecode2 = SWIG_AsVal_int(obj1, &val2);
9331 if (!SWIG_IsOK(ecode2)) {
9332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
9333 }
9334 arg2 = static_cast< int >(val2);
9335 ecode3 = SWIG_AsVal_int(obj2, &val3);
9336 if (!SWIG_IsOK(ecode3)) {
9337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
9338 }
9339 arg3 = static_cast< int >(val3);
9340 ecode4 = SWIG_AsVal_int(obj3, &val4);
9341 if (!SWIG_IsOK(ecode4)) {
9342 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
9343 }
9344 arg4 = static_cast< int >(val4);
9345 ecode5 = SWIG_AsVal_int(obj4, &val5);
9346 if (!SWIG_IsOK(ecode5)) {
9347 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
9348 }
9349 arg5 = static_cast< int >(val5);
9350 {
9351 PyThreadState* __tstate = wxPyBeginAllowThreads();
9352 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
9353 wxPyEndAllowThreads(__tstate);
9354 if (PyErr_Occurred()) SWIG_fail;
9355 }
9356 {
9357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9358 }
9359 return resultobj;
9360 fail:
9361 return NULL;
9362 }
9363
9364
9365 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9366 PyObject *resultobj = 0;
9367 wxRegion *arg1 = (wxRegion *) 0 ;
9368 wxRect *arg2 = 0 ;
9369 bool result;
9370 void *argp1 = 0 ;
9371 int res1 = 0 ;
9372 wxRect temp2 ;
9373 PyObject * obj0 = 0 ;
9374 PyObject * obj1 = 0 ;
9375 char * kwnames[] = {
9376 (char *) "self",(char *) "rect", NULL
9377 };
9378
9379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
9380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9381 if (!SWIG_IsOK(res1)) {
9382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9383 }
9384 arg1 = reinterpret_cast< wxRegion * >(argp1);
9385 {
9386 arg2 = &temp2;
9387 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9388 }
9389 {
9390 PyThreadState* __tstate = wxPyBeginAllowThreads();
9391 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
9392 wxPyEndAllowThreads(__tstate);
9393 if (PyErr_Occurred()) SWIG_fail;
9394 }
9395 {
9396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9397 }
9398 return resultobj;
9399 fail:
9400 return NULL;
9401 }
9402
9403
9404 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9405 PyObject *resultobj = 0;
9406 wxRegion *arg1 = (wxRegion *) 0 ;
9407 wxRegion *arg2 = 0 ;
9408 bool result;
9409 void *argp1 = 0 ;
9410 int res1 = 0 ;
9411 void *argp2 = 0 ;
9412 int res2 = 0 ;
9413 PyObject * obj0 = 0 ;
9414 PyObject * obj1 = 0 ;
9415 char * kwnames[] = {
9416 (char *) "self",(char *) "region", NULL
9417 };
9418
9419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9421 if (!SWIG_IsOK(res1)) {
9422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9423 }
9424 arg1 = reinterpret_cast< wxRegion * >(argp1);
9425 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9426 if (!SWIG_IsOK(res2)) {
9427 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9428 }
9429 if (!argp2) {
9430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9431 }
9432 arg2 = reinterpret_cast< wxRegion * >(argp2);
9433 {
9434 PyThreadState* __tstate = wxPyBeginAllowThreads();
9435 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
9436 wxPyEndAllowThreads(__tstate);
9437 if (PyErr_Occurred()) SWIG_fail;
9438 }
9439 {
9440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9441 }
9442 return resultobj;
9443 fail:
9444 return NULL;
9445 }
9446
9447
9448 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9449 PyObject *resultobj = 0;
9450 wxRegion *arg1 = (wxRegion *) 0 ;
9451 SwigValueWrapper<wxBitmap > result;
9452 void *argp1 = 0 ;
9453 int res1 = 0 ;
9454 PyObject *swig_obj[1] ;
9455
9456 if (!args) SWIG_fail;
9457 swig_obj[0] = args;
9458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9459 if (!SWIG_IsOK(res1)) {
9460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
9461 }
9462 arg1 = reinterpret_cast< wxRegion * >(argp1);
9463 {
9464 PyThreadState* __tstate = wxPyBeginAllowThreads();
9465 result = (arg1)->ConvertToBitmap();
9466 wxPyEndAllowThreads(__tstate);
9467 if (PyErr_Occurred()) SWIG_fail;
9468 }
9469 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
9470 return resultobj;
9471 fail:
9472 return NULL;
9473 }
9474
9475
9476 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9477 PyObject *resultobj = 0;
9478 wxRegion *arg1 = (wxRegion *) 0 ;
9479 wxBitmap *arg2 = 0 ;
9480 bool result;
9481 void *argp1 = 0 ;
9482 int res1 = 0 ;
9483 void *argp2 = 0 ;
9484 int res2 = 0 ;
9485 PyObject * obj0 = 0 ;
9486 PyObject * obj1 = 0 ;
9487 char * kwnames[] = {
9488 (char *) "self",(char *) "bmp", NULL
9489 };
9490
9491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9493 if (!SWIG_IsOK(res1)) {
9494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
9495 }
9496 arg1 = reinterpret_cast< wxRegion * >(argp1);
9497 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9498 if (!SWIG_IsOK(res2)) {
9499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9500 }
9501 if (!argp2) {
9502 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9503 }
9504 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9505 {
9506 PyThreadState* __tstate = wxPyBeginAllowThreads();
9507 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
9508 wxPyEndAllowThreads(__tstate);
9509 if (PyErr_Occurred()) SWIG_fail;
9510 }
9511 {
9512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9513 }
9514 return resultobj;
9515 fail:
9516 return NULL;
9517 }
9518
9519
9520 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9521 PyObject *resultobj = 0;
9522 wxRegion *arg1 = (wxRegion *) 0 ;
9523 wxBitmap *arg2 = 0 ;
9524 wxColour *arg3 = 0 ;
9525 int arg4 = (int) 0 ;
9526 bool result;
9527 void *argp1 = 0 ;
9528 int res1 = 0 ;
9529 void *argp2 = 0 ;
9530 int res2 = 0 ;
9531 wxColour temp3 ;
9532 int val4 ;
9533 int ecode4 = 0 ;
9534 PyObject * obj0 = 0 ;
9535 PyObject * obj1 = 0 ;
9536 PyObject * obj2 = 0 ;
9537 PyObject * obj3 = 0 ;
9538 char * kwnames[] = {
9539 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
9540 };
9541
9542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9544 if (!SWIG_IsOK(res1)) {
9545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
9546 }
9547 arg1 = reinterpret_cast< wxRegion * >(argp1);
9548 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9549 if (!SWIG_IsOK(res2)) {
9550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9551 }
9552 if (!argp2) {
9553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9554 }
9555 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9556 {
9557 arg3 = &temp3;
9558 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9559 }
9560 if (obj3) {
9561 ecode4 = SWIG_AsVal_int(obj3, &val4);
9562 if (!SWIG_IsOK(ecode4)) {
9563 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
9564 }
9565 arg4 = static_cast< int >(val4);
9566 }
9567 {
9568 PyThreadState* __tstate = wxPyBeginAllowThreads();
9569 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
9570 wxPyEndAllowThreads(__tstate);
9571 if (PyErr_Occurred()) SWIG_fail;
9572 }
9573 {
9574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9575 }
9576 return resultobj;
9577 fail:
9578 return NULL;
9579 }
9580
9581
9582 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9583 PyObject *obj;
9584 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9585 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
9586 return SWIG_Py_Void();
9587 }
9588
9589 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9590 return SWIG_Python_InitShadowInstance(args);
9591 }
9592
9593 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9594 PyObject *resultobj = 0;
9595 wxRegion *arg1 = 0 ;
9596 wxRegionIterator *result = 0 ;
9597 void *argp1 = 0 ;
9598 int res1 = 0 ;
9599 PyObject * obj0 = 0 ;
9600 char * kwnames[] = {
9601 (char *) "region", NULL
9602 };
9603
9604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
9605 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
9606 if (!SWIG_IsOK(res1)) {
9607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9608 }
9609 if (!argp1) {
9610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9611 }
9612 arg1 = reinterpret_cast< wxRegion * >(argp1);
9613 {
9614 if (!wxPyCheckForApp()) SWIG_fail;
9615 PyThreadState* __tstate = wxPyBeginAllowThreads();
9616 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
9617 wxPyEndAllowThreads(__tstate);
9618 if (PyErr_Occurred()) SWIG_fail;
9619 }
9620 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
9621 return resultobj;
9622 fail:
9623 return NULL;
9624 }
9625
9626
9627 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9628 PyObject *resultobj = 0;
9629 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9630 void *argp1 = 0 ;
9631 int res1 = 0 ;
9632 PyObject *swig_obj[1] ;
9633
9634 if (!args) SWIG_fail;
9635 swig_obj[0] = args;
9636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
9637 if (!SWIG_IsOK(res1)) {
9638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9639 }
9640 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9641 {
9642 PyThreadState* __tstate = wxPyBeginAllowThreads();
9643 delete arg1;
9644
9645 wxPyEndAllowThreads(__tstate);
9646 if (PyErr_Occurred()) SWIG_fail;
9647 }
9648 resultobj = SWIG_Py_Void();
9649 return resultobj;
9650 fail:
9651 return NULL;
9652 }
9653
9654
9655 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9656 PyObject *resultobj = 0;
9657 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9658 int result;
9659 void *argp1 = 0 ;
9660 int res1 = 0 ;
9661 PyObject *swig_obj[1] ;
9662
9663 if (!args) SWIG_fail;
9664 swig_obj[0] = args;
9665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9666 if (!SWIG_IsOK(res1)) {
9667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9668 }
9669 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9670 {
9671 PyThreadState* __tstate = wxPyBeginAllowThreads();
9672 result = (int)(arg1)->GetX();
9673 wxPyEndAllowThreads(__tstate);
9674 if (PyErr_Occurred()) SWIG_fail;
9675 }
9676 resultobj = SWIG_From_int(static_cast< int >(result));
9677 return resultobj;
9678 fail:
9679 return NULL;
9680 }
9681
9682
9683 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9684 PyObject *resultobj = 0;
9685 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9686 int result;
9687 void *argp1 = 0 ;
9688 int res1 = 0 ;
9689 PyObject *swig_obj[1] ;
9690
9691 if (!args) SWIG_fail;
9692 swig_obj[0] = args;
9693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9694 if (!SWIG_IsOK(res1)) {
9695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9696 }
9697 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9698 {
9699 PyThreadState* __tstate = wxPyBeginAllowThreads();
9700 result = (int)(arg1)->GetY();
9701 wxPyEndAllowThreads(__tstate);
9702 if (PyErr_Occurred()) SWIG_fail;
9703 }
9704 resultobj = SWIG_From_int(static_cast< int >(result));
9705 return resultobj;
9706 fail:
9707 return NULL;
9708 }
9709
9710
9711 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9712 PyObject *resultobj = 0;
9713 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9714 int result;
9715 void *argp1 = 0 ;
9716 int res1 = 0 ;
9717 PyObject *swig_obj[1] ;
9718
9719 if (!args) SWIG_fail;
9720 swig_obj[0] = args;
9721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9722 if (!SWIG_IsOK(res1)) {
9723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9724 }
9725 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9726 {
9727 PyThreadState* __tstate = wxPyBeginAllowThreads();
9728 result = (int)(arg1)->GetW();
9729 wxPyEndAllowThreads(__tstate);
9730 if (PyErr_Occurred()) SWIG_fail;
9731 }
9732 resultobj = SWIG_From_int(static_cast< int >(result));
9733 return resultobj;
9734 fail:
9735 return NULL;
9736 }
9737
9738
9739 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9740 PyObject *resultobj = 0;
9741 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9742 int result;
9743 void *argp1 = 0 ;
9744 int res1 = 0 ;
9745 PyObject *swig_obj[1] ;
9746
9747 if (!args) SWIG_fail;
9748 swig_obj[0] = args;
9749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9750 if (!SWIG_IsOK(res1)) {
9751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9752 }
9753 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9754 {
9755 PyThreadState* __tstate = wxPyBeginAllowThreads();
9756 result = (int)(arg1)->GetWidth();
9757 wxPyEndAllowThreads(__tstate);
9758 if (PyErr_Occurred()) SWIG_fail;
9759 }
9760 resultobj = SWIG_From_int(static_cast< int >(result));
9761 return resultobj;
9762 fail:
9763 return NULL;
9764 }
9765
9766
9767 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9768 PyObject *resultobj = 0;
9769 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9770 int result;
9771 void *argp1 = 0 ;
9772 int res1 = 0 ;
9773 PyObject *swig_obj[1] ;
9774
9775 if (!args) SWIG_fail;
9776 swig_obj[0] = args;
9777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9778 if (!SWIG_IsOK(res1)) {
9779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9780 }
9781 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9782 {
9783 PyThreadState* __tstate = wxPyBeginAllowThreads();
9784 result = (int)(arg1)->GetH();
9785 wxPyEndAllowThreads(__tstate);
9786 if (PyErr_Occurred()) SWIG_fail;
9787 }
9788 resultobj = SWIG_From_int(static_cast< int >(result));
9789 return resultobj;
9790 fail:
9791 return NULL;
9792 }
9793
9794
9795 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9796 PyObject *resultobj = 0;
9797 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9798 int result;
9799 void *argp1 = 0 ;
9800 int res1 = 0 ;
9801 PyObject *swig_obj[1] ;
9802
9803 if (!args) SWIG_fail;
9804 swig_obj[0] = args;
9805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9806 if (!SWIG_IsOK(res1)) {
9807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9808 }
9809 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9810 {
9811 PyThreadState* __tstate = wxPyBeginAllowThreads();
9812 result = (int)(arg1)->GetHeight();
9813 wxPyEndAllowThreads(__tstate);
9814 if (PyErr_Occurred()) SWIG_fail;
9815 }
9816 resultobj = SWIG_From_int(static_cast< int >(result));
9817 return resultobj;
9818 fail:
9819 return NULL;
9820 }
9821
9822
9823 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9824 PyObject *resultobj = 0;
9825 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9826 wxRect result;
9827 void *argp1 = 0 ;
9828 int res1 = 0 ;
9829 PyObject *swig_obj[1] ;
9830
9831 if (!args) SWIG_fail;
9832 swig_obj[0] = args;
9833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9834 if (!SWIG_IsOK(res1)) {
9835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9836 }
9837 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9838 {
9839 PyThreadState* __tstate = wxPyBeginAllowThreads();
9840 result = (arg1)->GetRect();
9841 wxPyEndAllowThreads(__tstate);
9842 if (PyErr_Occurred()) SWIG_fail;
9843 }
9844 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
9845 return resultobj;
9846 fail:
9847 return NULL;
9848 }
9849
9850
9851 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9852 PyObject *resultobj = 0;
9853 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9854 bool result;
9855 void *argp1 = 0 ;
9856 int res1 = 0 ;
9857 PyObject *swig_obj[1] ;
9858
9859 if (!args) SWIG_fail;
9860 swig_obj[0] = args;
9861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9862 if (!SWIG_IsOK(res1)) {
9863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9864 }
9865 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9866 {
9867 PyThreadState* __tstate = wxPyBeginAllowThreads();
9868 result = (bool)(arg1)->HaveRects();
9869 wxPyEndAllowThreads(__tstate);
9870 if (PyErr_Occurred()) SWIG_fail;
9871 }
9872 {
9873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9874 }
9875 return resultobj;
9876 fail:
9877 return NULL;
9878 }
9879
9880
9881 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9882 PyObject *resultobj = 0;
9883 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9884 void *argp1 = 0 ;
9885 int res1 = 0 ;
9886 PyObject *swig_obj[1] ;
9887
9888 if (!args) SWIG_fail;
9889 swig_obj[0] = args;
9890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9891 if (!SWIG_IsOK(res1)) {
9892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9893 }
9894 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9895 {
9896 PyThreadState* __tstate = wxPyBeginAllowThreads();
9897 (arg1)->Reset();
9898 wxPyEndAllowThreads(__tstate);
9899 if (PyErr_Occurred()) SWIG_fail;
9900 }
9901 resultobj = SWIG_Py_Void();
9902 return resultobj;
9903 fail:
9904 return NULL;
9905 }
9906
9907
9908 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9909 PyObject *resultobj = 0;
9910 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9911 void *argp1 = 0 ;
9912 int res1 = 0 ;
9913 PyObject *swig_obj[1] ;
9914
9915 if (!args) SWIG_fail;
9916 swig_obj[0] = args;
9917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9918 if (!SWIG_IsOK(res1)) {
9919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9920 }
9921 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9922 {
9923 PyThreadState* __tstate = wxPyBeginAllowThreads();
9924 wxRegionIterator_Next(arg1);
9925 wxPyEndAllowThreads(__tstate);
9926 if (PyErr_Occurred()) SWIG_fail;
9927 }
9928 resultobj = SWIG_Py_Void();
9929 return resultobj;
9930 fail:
9931 return NULL;
9932 }
9933
9934
9935 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9936 PyObject *resultobj = 0;
9937 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9938 bool result;
9939 void *argp1 = 0 ;
9940 int res1 = 0 ;
9941 PyObject *swig_obj[1] ;
9942
9943 if (!args) SWIG_fail;
9944 swig_obj[0] = args;
9945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9946 if (!SWIG_IsOK(res1)) {
9947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9948 }
9949 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9950 {
9951 PyThreadState* __tstate = wxPyBeginAllowThreads();
9952 result = (bool)wxRegionIterator___nonzero__(arg1);
9953 wxPyEndAllowThreads(__tstate);
9954 if (PyErr_Occurred()) SWIG_fail;
9955 }
9956 {
9957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9958 }
9959 return resultobj;
9960 fail:
9961 return NULL;
9962 }
9963
9964
9965 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9966 PyObject *obj;
9967 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9968 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
9969 return SWIG_Py_Void();
9970 }
9971
9972 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9973 return SWIG_Python_InitShadowInstance(args);
9974 }
9975
9976 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9977 PyObject *resultobj = 0;
9978 wxNativeFontInfo *result = 0 ;
9979
9980 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
9981 {
9982 PyThreadState* __tstate = wxPyBeginAllowThreads();
9983 result = (wxNativeFontInfo *)new wxNativeFontInfo();
9984 wxPyEndAllowThreads(__tstate);
9985 if (PyErr_Occurred()) SWIG_fail;
9986 }
9987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
9988 return resultobj;
9989 fail:
9990 return NULL;
9991 }
9992
9993
9994 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9995 PyObject *resultobj = 0;
9996 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9997 void *argp1 = 0 ;
9998 int res1 = 0 ;
9999 PyObject *swig_obj[1] ;
10000
10001 if (!args) SWIG_fail;
10002 swig_obj[0] = args;
10003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
10004 if (!SWIG_IsOK(res1)) {
10005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10006 }
10007 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10008 {
10009 PyThreadState* __tstate = wxPyBeginAllowThreads();
10010 delete arg1;
10011
10012 wxPyEndAllowThreads(__tstate);
10013 if (PyErr_Occurred()) SWIG_fail;
10014 }
10015 resultobj = SWIG_Py_Void();
10016 return resultobj;
10017 fail:
10018 return NULL;
10019 }
10020
10021
10022 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10023 PyObject *resultobj = 0;
10024 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10025 void *argp1 = 0 ;
10026 int res1 = 0 ;
10027 PyObject *swig_obj[1] ;
10028
10029 if (!args) SWIG_fail;
10030 swig_obj[0] = args;
10031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10032 if (!SWIG_IsOK(res1)) {
10033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10034 }
10035 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10036 {
10037 PyThreadState* __tstate = wxPyBeginAllowThreads();
10038 (arg1)->Init();
10039 wxPyEndAllowThreads(__tstate);
10040 if (PyErr_Occurred()) SWIG_fail;
10041 }
10042 resultobj = SWIG_Py_Void();
10043 return resultobj;
10044 fail:
10045 return NULL;
10046 }
10047
10048
10049 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10050 PyObject *resultobj = 0;
10051 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10052 wxFont *arg2 = 0 ;
10053 void *argp1 = 0 ;
10054 int res1 = 0 ;
10055 void *argp2 = 0 ;
10056 int res2 = 0 ;
10057 PyObject * obj0 = 0 ;
10058 PyObject * obj1 = 0 ;
10059 char * kwnames[] = {
10060 (char *) "self",(char *) "font", NULL
10061 };
10062
10063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
10064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10065 if (!SWIG_IsOK(res1)) {
10066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10067 }
10068 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10069 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10070 if (!SWIG_IsOK(res2)) {
10071 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10072 }
10073 if (!argp2) {
10074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10075 }
10076 arg2 = reinterpret_cast< wxFont * >(argp2);
10077 {
10078 PyThreadState* __tstate = wxPyBeginAllowThreads();
10079 (arg1)->InitFromFont((wxFont const &)*arg2);
10080 wxPyEndAllowThreads(__tstate);
10081 if (PyErr_Occurred()) SWIG_fail;
10082 }
10083 resultobj = SWIG_Py_Void();
10084 return resultobj;
10085 fail:
10086 return NULL;
10087 }
10088
10089
10090 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10091 PyObject *resultobj = 0;
10092 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10093 int result;
10094 void *argp1 = 0 ;
10095 int res1 = 0 ;
10096 PyObject *swig_obj[1] ;
10097
10098 if (!args) SWIG_fail;
10099 swig_obj[0] = args;
10100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10101 if (!SWIG_IsOK(res1)) {
10102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10103 }
10104 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10105 {
10106 PyThreadState* __tstate = wxPyBeginAllowThreads();
10107 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
10108 wxPyEndAllowThreads(__tstate);
10109 if (PyErr_Occurred()) SWIG_fail;
10110 }
10111 resultobj = SWIG_From_int(static_cast< int >(result));
10112 return resultobj;
10113 fail:
10114 return NULL;
10115 }
10116
10117
10118 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10119 PyObject *resultobj = 0;
10120 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10121 wxSize result;
10122 void *argp1 = 0 ;
10123 int res1 = 0 ;
10124 PyObject *swig_obj[1] ;
10125
10126 if (!args) SWIG_fail;
10127 swig_obj[0] = args;
10128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10129 if (!SWIG_IsOK(res1)) {
10130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10131 }
10132 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10133 {
10134 PyThreadState* __tstate = wxPyBeginAllowThreads();
10135 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
10136 wxPyEndAllowThreads(__tstate);
10137 if (PyErr_Occurred()) SWIG_fail;
10138 }
10139 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
10140 return resultobj;
10141 fail:
10142 return NULL;
10143 }
10144
10145
10146 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10147 PyObject *resultobj = 0;
10148 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10149 wxFontStyle result;
10150 void *argp1 = 0 ;
10151 int res1 = 0 ;
10152 PyObject *swig_obj[1] ;
10153
10154 if (!args) SWIG_fail;
10155 swig_obj[0] = args;
10156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10157 if (!SWIG_IsOK(res1)) {
10158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10159 }
10160 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10161 {
10162 PyThreadState* __tstate = wxPyBeginAllowThreads();
10163 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
10164 wxPyEndAllowThreads(__tstate);
10165 if (PyErr_Occurred()) SWIG_fail;
10166 }
10167 resultobj = SWIG_From_int(static_cast< int >(result));
10168 return resultobj;
10169 fail:
10170 return NULL;
10171 }
10172
10173
10174 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10175 PyObject *resultobj = 0;
10176 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10177 wxFontWeight result;
10178 void *argp1 = 0 ;
10179 int res1 = 0 ;
10180 PyObject *swig_obj[1] ;
10181
10182 if (!args) SWIG_fail;
10183 swig_obj[0] = args;
10184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10185 if (!SWIG_IsOK(res1)) {
10186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10187 }
10188 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10189 {
10190 PyThreadState* __tstate = wxPyBeginAllowThreads();
10191 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
10192 wxPyEndAllowThreads(__tstate);
10193 if (PyErr_Occurred()) SWIG_fail;
10194 }
10195 resultobj = SWIG_From_int(static_cast< int >(result));
10196 return resultobj;
10197 fail:
10198 return NULL;
10199 }
10200
10201
10202 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10203 PyObject *resultobj = 0;
10204 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10205 bool result;
10206 void *argp1 = 0 ;
10207 int res1 = 0 ;
10208 PyObject *swig_obj[1] ;
10209
10210 if (!args) SWIG_fail;
10211 swig_obj[0] = args;
10212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10213 if (!SWIG_IsOK(res1)) {
10214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10215 }
10216 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10217 {
10218 PyThreadState* __tstate = wxPyBeginAllowThreads();
10219 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
10220 wxPyEndAllowThreads(__tstate);
10221 if (PyErr_Occurred()) SWIG_fail;
10222 }
10223 {
10224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10225 }
10226 return resultobj;
10227 fail:
10228 return NULL;
10229 }
10230
10231
10232 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10233 PyObject *resultobj = 0;
10234 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10235 wxString result;
10236 void *argp1 = 0 ;
10237 int res1 = 0 ;
10238 PyObject *swig_obj[1] ;
10239
10240 if (!args) SWIG_fail;
10241 swig_obj[0] = args;
10242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10243 if (!SWIG_IsOK(res1)) {
10244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10245 }
10246 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10247 {
10248 PyThreadState* __tstate = wxPyBeginAllowThreads();
10249 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
10250 wxPyEndAllowThreads(__tstate);
10251 if (PyErr_Occurred()) SWIG_fail;
10252 }
10253 {
10254 #if wxUSE_UNICODE
10255 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10256 #else
10257 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10258 #endif
10259 }
10260 return resultobj;
10261 fail:
10262 return NULL;
10263 }
10264
10265
10266 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10267 PyObject *resultobj = 0;
10268 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10269 wxFontFamily result;
10270 void *argp1 = 0 ;
10271 int res1 = 0 ;
10272 PyObject *swig_obj[1] ;
10273
10274 if (!args) SWIG_fail;
10275 swig_obj[0] = args;
10276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10277 if (!SWIG_IsOK(res1)) {
10278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10279 }
10280 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10281 {
10282 PyThreadState* __tstate = wxPyBeginAllowThreads();
10283 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
10284 wxPyEndAllowThreads(__tstate);
10285 if (PyErr_Occurred()) SWIG_fail;
10286 }
10287 resultobj = SWIG_From_int(static_cast< int >(result));
10288 return resultobj;
10289 fail:
10290 return NULL;
10291 }
10292
10293
10294 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10295 PyObject *resultobj = 0;
10296 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10297 wxFontEncoding result;
10298 void *argp1 = 0 ;
10299 int res1 = 0 ;
10300 PyObject *swig_obj[1] ;
10301
10302 if (!args) SWIG_fail;
10303 swig_obj[0] = args;
10304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10305 if (!SWIG_IsOK(res1)) {
10306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10307 }
10308 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10309 {
10310 PyThreadState* __tstate = wxPyBeginAllowThreads();
10311 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
10312 wxPyEndAllowThreads(__tstate);
10313 if (PyErr_Occurred()) SWIG_fail;
10314 }
10315 resultobj = SWIG_From_int(static_cast< int >(result));
10316 return resultobj;
10317 fail:
10318 return NULL;
10319 }
10320
10321
10322 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10323 PyObject *resultobj = 0;
10324 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10325 int arg2 ;
10326 void *argp1 = 0 ;
10327 int res1 = 0 ;
10328 int val2 ;
10329 int ecode2 = 0 ;
10330 PyObject * obj0 = 0 ;
10331 PyObject * obj1 = 0 ;
10332 char * kwnames[] = {
10333 (char *) "self",(char *) "pointsize", NULL
10334 };
10335
10336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
10337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10338 if (!SWIG_IsOK(res1)) {
10339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10340 }
10341 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10342 ecode2 = SWIG_AsVal_int(obj1, &val2);
10343 if (!SWIG_IsOK(ecode2)) {
10344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
10345 }
10346 arg2 = static_cast< int >(val2);
10347 {
10348 PyThreadState* __tstate = wxPyBeginAllowThreads();
10349 (arg1)->SetPointSize(arg2);
10350 wxPyEndAllowThreads(__tstate);
10351 if (PyErr_Occurred()) SWIG_fail;
10352 }
10353 resultobj = SWIG_Py_Void();
10354 return resultobj;
10355 fail:
10356 return NULL;
10357 }
10358
10359
10360 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10361 PyObject *resultobj = 0;
10362 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10363 wxSize *arg2 = 0 ;
10364 void *argp1 = 0 ;
10365 int res1 = 0 ;
10366 wxSize temp2 ;
10367 PyObject * obj0 = 0 ;
10368 PyObject * obj1 = 0 ;
10369 char * kwnames[] = {
10370 (char *) "self",(char *) "pixelSize", NULL
10371 };
10372
10373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
10374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10375 if (!SWIG_IsOK(res1)) {
10376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10377 }
10378 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10379 {
10380 arg2 = &temp2;
10381 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10382 }
10383 {
10384 PyThreadState* __tstate = wxPyBeginAllowThreads();
10385 (arg1)->SetPixelSize((wxSize const &)*arg2);
10386 wxPyEndAllowThreads(__tstate);
10387 if (PyErr_Occurred()) SWIG_fail;
10388 }
10389 resultobj = SWIG_Py_Void();
10390 return resultobj;
10391 fail:
10392 return NULL;
10393 }
10394
10395
10396 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10397 PyObject *resultobj = 0;
10398 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10399 wxFontStyle arg2 ;
10400 void *argp1 = 0 ;
10401 int res1 = 0 ;
10402 int val2 ;
10403 int ecode2 = 0 ;
10404 PyObject * obj0 = 0 ;
10405 PyObject * obj1 = 0 ;
10406 char * kwnames[] = {
10407 (char *) "self",(char *) "style", NULL
10408 };
10409
10410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
10411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10412 if (!SWIG_IsOK(res1)) {
10413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10414 }
10415 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10416 ecode2 = SWIG_AsVal_int(obj1, &val2);
10417 if (!SWIG_IsOK(ecode2)) {
10418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
10419 }
10420 arg2 = static_cast< wxFontStyle >(val2);
10421 {
10422 PyThreadState* __tstate = wxPyBeginAllowThreads();
10423 (arg1)->SetStyle(arg2);
10424 wxPyEndAllowThreads(__tstate);
10425 if (PyErr_Occurred()) SWIG_fail;
10426 }
10427 resultobj = SWIG_Py_Void();
10428 return resultobj;
10429 fail:
10430 return NULL;
10431 }
10432
10433
10434 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10435 PyObject *resultobj = 0;
10436 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10437 wxFontWeight arg2 ;
10438 void *argp1 = 0 ;
10439 int res1 = 0 ;
10440 int val2 ;
10441 int ecode2 = 0 ;
10442 PyObject * obj0 = 0 ;
10443 PyObject * obj1 = 0 ;
10444 char * kwnames[] = {
10445 (char *) "self",(char *) "weight", NULL
10446 };
10447
10448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
10449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10450 if (!SWIG_IsOK(res1)) {
10451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10452 }
10453 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10454 ecode2 = SWIG_AsVal_int(obj1, &val2);
10455 if (!SWIG_IsOK(ecode2)) {
10456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
10457 }
10458 arg2 = static_cast< wxFontWeight >(val2);
10459 {
10460 PyThreadState* __tstate = wxPyBeginAllowThreads();
10461 (arg1)->SetWeight(arg2);
10462 wxPyEndAllowThreads(__tstate);
10463 if (PyErr_Occurred()) SWIG_fail;
10464 }
10465 resultobj = SWIG_Py_Void();
10466 return resultobj;
10467 fail:
10468 return NULL;
10469 }
10470
10471
10472 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10473 PyObject *resultobj = 0;
10474 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10475 bool arg2 ;
10476 void *argp1 = 0 ;
10477 int res1 = 0 ;
10478 bool val2 ;
10479 int ecode2 = 0 ;
10480 PyObject * obj0 = 0 ;
10481 PyObject * obj1 = 0 ;
10482 char * kwnames[] = {
10483 (char *) "self",(char *) "underlined", NULL
10484 };
10485
10486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
10487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10488 if (!SWIG_IsOK(res1)) {
10489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10490 }
10491 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10492 ecode2 = SWIG_AsVal_bool(obj1, &val2);
10493 if (!SWIG_IsOK(ecode2)) {
10494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
10495 }
10496 arg2 = static_cast< bool >(val2);
10497 {
10498 PyThreadState* __tstate = wxPyBeginAllowThreads();
10499 (arg1)->SetUnderlined(arg2);
10500 wxPyEndAllowThreads(__tstate);
10501 if (PyErr_Occurred()) SWIG_fail;
10502 }
10503 resultobj = SWIG_Py_Void();
10504 return resultobj;
10505 fail:
10506 return NULL;
10507 }
10508
10509
10510 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10511 PyObject *resultobj = 0;
10512 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10513 wxString arg2 ;
10514 void *argp1 = 0 ;
10515 int res1 = 0 ;
10516 PyObject * obj0 = 0 ;
10517 PyObject * obj1 = 0 ;
10518 char * kwnames[] = {
10519 (char *) "self",(char *) "facename", NULL
10520 };
10521
10522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
10523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10524 if (!SWIG_IsOK(res1)) {
10525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10526 }
10527 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10528 {
10529 wxString* sptr = wxString_in_helper(obj1);
10530 if (sptr == NULL) SWIG_fail;
10531 arg2 = *sptr;
10532 delete sptr;
10533 }
10534 {
10535 PyThreadState* __tstate = wxPyBeginAllowThreads();
10536 (arg1)->SetFaceName(arg2);
10537 wxPyEndAllowThreads(__tstate);
10538 if (PyErr_Occurred()) SWIG_fail;
10539 }
10540 resultobj = SWIG_Py_Void();
10541 return resultobj;
10542 fail:
10543 return NULL;
10544 }
10545
10546
10547 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10548 PyObject *resultobj = 0;
10549 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10550 wxFontFamily arg2 ;
10551 void *argp1 = 0 ;
10552 int res1 = 0 ;
10553 int val2 ;
10554 int ecode2 = 0 ;
10555 PyObject * obj0 = 0 ;
10556 PyObject * obj1 = 0 ;
10557 char * kwnames[] = {
10558 (char *) "self",(char *) "family", NULL
10559 };
10560
10561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
10562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10563 if (!SWIG_IsOK(res1)) {
10564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10565 }
10566 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10567 ecode2 = SWIG_AsVal_int(obj1, &val2);
10568 if (!SWIG_IsOK(ecode2)) {
10569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
10570 }
10571 arg2 = static_cast< wxFontFamily >(val2);
10572 {
10573 PyThreadState* __tstate = wxPyBeginAllowThreads();
10574 (arg1)->SetFamily(arg2);
10575 wxPyEndAllowThreads(__tstate);
10576 if (PyErr_Occurred()) SWIG_fail;
10577 }
10578 resultobj = SWIG_Py_Void();
10579 return resultobj;
10580 fail:
10581 return NULL;
10582 }
10583
10584
10585 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10586 PyObject *resultobj = 0;
10587 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10588 wxFontEncoding arg2 ;
10589 void *argp1 = 0 ;
10590 int res1 = 0 ;
10591 int val2 ;
10592 int ecode2 = 0 ;
10593 PyObject * obj0 = 0 ;
10594 PyObject * obj1 = 0 ;
10595 char * kwnames[] = {
10596 (char *) "self",(char *) "encoding", NULL
10597 };
10598
10599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
10600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10601 if (!SWIG_IsOK(res1)) {
10602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10603 }
10604 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10605 ecode2 = SWIG_AsVal_int(obj1, &val2);
10606 if (!SWIG_IsOK(ecode2)) {
10607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10608 }
10609 arg2 = static_cast< wxFontEncoding >(val2);
10610 {
10611 PyThreadState* __tstate = wxPyBeginAllowThreads();
10612 (arg1)->SetEncoding(arg2);
10613 wxPyEndAllowThreads(__tstate);
10614 if (PyErr_Occurred()) SWIG_fail;
10615 }
10616 resultobj = SWIG_Py_Void();
10617 return resultobj;
10618 fail:
10619 return NULL;
10620 }
10621
10622
10623 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10624 PyObject *resultobj = 0;
10625 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10626 wxString *arg2 = 0 ;
10627 bool result;
10628 void *argp1 = 0 ;
10629 int res1 = 0 ;
10630 bool temp2 = false ;
10631 PyObject * obj0 = 0 ;
10632 PyObject * obj1 = 0 ;
10633 char * kwnames[] = {
10634 (char *) "self",(char *) "s", NULL
10635 };
10636
10637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10639 if (!SWIG_IsOK(res1)) {
10640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10641 }
10642 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10643 {
10644 arg2 = wxString_in_helper(obj1);
10645 if (arg2 == NULL) SWIG_fail;
10646 temp2 = true;
10647 }
10648 {
10649 PyThreadState* __tstate = wxPyBeginAllowThreads();
10650 result = (bool)(arg1)->FromString((wxString const &)*arg2);
10651 wxPyEndAllowThreads(__tstate);
10652 if (PyErr_Occurred()) SWIG_fail;
10653 }
10654 {
10655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10656 }
10657 {
10658 if (temp2)
10659 delete arg2;
10660 }
10661 return resultobj;
10662 fail:
10663 {
10664 if (temp2)
10665 delete arg2;
10666 }
10667 return NULL;
10668 }
10669
10670
10671 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10672 PyObject *resultobj = 0;
10673 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10674 wxString result;
10675 void *argp1 = 0 ;
10676 int res1 = 0 ;
10677 PyObject *swig_obj[1] ;
10678
10679 if (!args) SWIG_fail;
10680 swig_obj[0] = args;
10681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10682 if (!SWIG_IsOK(res1)) {
10683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10684 }
10685 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10686 {
10687 PyThreadState* __tstate = wxPyBeginAllowThreads();
10688 result = ((wxNativeFontInfo const *)arg1)->ToString();
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_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10706 PyObject *resultobj = 0;
10707 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10708 wxString result;
10709 void *argp1 = 0 ;
10710 int res1 = 0 ;
10711 PyObject *swig_obj[1] ;
10712
10713 if (!args) SWIG_fail;
10714 swig_obj[0] = args;
10715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10716 if (!SWIG_IsOK(res1)) {
10717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10718 }
10719 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10720 {
10721 PyThreadState* __tstate = wxPyBeginAllowThreads();
10722 result = wxNativeFontInfo___str__(arg1);
10723 wxPyEndAllowThreads(__tstate);
10724 if (PyErr_Occurred()) SWIG_fail;
10725 }
10726 {
10727 #if wxUSE_UNICODE
10728 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10729 #else
10730 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10731 #endif
10732 }
10733 return resultobj;
10734 fail:
10735 return NULL;
10736 }
10737
10738
10739 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10740 PyObject *resultobj = 0;
10741 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10742 wxString *arg2 = 0 ;
10743 bool result;
10744 void *argp1 = 0 ;
10745 int res1 = 0 ;
10746 bool temp2 = false ;
10747 PyObject * obj0 = 0 ;
10748 PyObject * obj1 = 0 ;
10749 char * kwnames[] = {
10750 (char *) "self",(char *) "s", NULL
10751 };
10752
10753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
10754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10755 if (!SWIG_IsOK(res1)) {
10756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10757 }
10758 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10759 {
10760 arg2 = wxString_in_helper(obj1);
10761 if (arg2 == NULL) SWIG_fail;
10762 temp2 = true;
10763 }
10764 {
10765 PyThreadState* __tstate = wxPyBeginAllowThreads();
10766 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
10767 wxPyEndAllowThreads(__tstate);
10768 if (PyErr_Occurred()) SWIG_fail;
10769 }
10770 {
10771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10772 }
10773 {
10774 if (temp2)
10775 delete arg2;
10776 }
10777 return resultobj;
10778 fail:
10779 {
10780 if (temp2)
10781 delete arg2;
10782 }
10783 return NULL;
10784 }
10785
10786
10787 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10788 PyObject *resultobj = 0;
10789 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10790 wxString result;
10791 void *argp1 = 0 ;
10792 int res1 = 0 ;
10793 PyObject *swig_obj[1] ;
10794
10795 if (!args) SWIG_fail;
10796 swig_obj[0] = args;
10797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10798 if (!SWIG_IsOK(res1)) {
10799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10800 }
10801 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10802 {
10803 PyThreadState* __tstate = wxPyBeginAllowThreads();
10804 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
10805 wxPyEndAllowThreads(__tstate);
10806 if (PyErr_Occurred()) SWIG_fail;
10807 }
10808 {
10809 #if wxUSE_UNICODE
10810 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10811 #else
10812 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10813 #endif
10814 }
10815 return resultobj;
10816 fail:
10817 return NULL;
10818 }
10819
10820
10821 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10822 PyObject *obj;
10823 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10824 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
10825 return SWIG_Py_Void();
10826 }
10827
10828 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10829 return SWIG_Python_InitShadowInstance(args);
10830 }
10831
10832 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10833 PyObject *resultobj = 0;
10834 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10835 wxString *arg2 = (wxString *) 0 ;
10836 void *argp1 = 0 ;
10837 int res1 = 0 ;
10838 bool temp2 = false ;
10839 PyObject *swig_obj[2] ;
10840
10841 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
10842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10843 if (!SWIG_IsOK(res1)) {
10844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10845 }
10846 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10847 {
10848 arg2 = wxString_in_helper(swig_obj[1]);
10849 if (arg2 == NULL) SWIG_fail;
10850 temp2 = true;
10851 }
10852 if (arg1) (arg1)->facename = *arg2;
10853
10854 resultobj = SWIG_Py_Void();
10855 {
10856 if (temp2)
10857 delete arg2;
10858 }
10859 return resultobj;
10860 fail:
10861 {
10862 if (temp2)
10863 delete arg2;
10864 }
10865 return NULL;
10866 }
10867
10868
10869 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10870 PyObject *resultobj = 0;
10871 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10872 wxString *result = 0 ;
10873 void *argp1 = 0 ;
10874 int res1 = 0 ;
10875 PyObject *swig_obj[1] ;
10876
10877 if (!args) SWIG_fail;
10878 swig_obj[0] = args;
10879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10880 if (!SWIG_IsOK(res1)) {
10881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10882 }
10883 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10884 result = (wxString *)& ((arg1)->facename);
10885 {
10886 #if wxUSE_UNICODE
10887 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10888 #else
10889 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10890 #endif
10891 }
10892 return resultobj;
10893 fail:
10894 return NULL;
10895 }
10896
10897
10898 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10899 PyObject *resultobj = 0;
10900 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10901 wxFontEncoding arg2 ;
10902 void *argp1 = 0 ;
10903 int res1 = 0 ;
10904 int val2 ;
10905 int ecode2 = 0 ;
10906 PyObject *swig_obj[2] ;
10907
10908 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
10909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10910 if (!SWIG_IsOK(res1)) {
10911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10912 }
10913 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10914 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10915 if (!SWIG_IsOK(ecode2)) {
10916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10917 }
10918 arg2 = static_cast< wxFontEncoding >(val2);
10919 if (arg1) (arg1)->encoding = arg2;
10920
10921 resultobj = SWIG_Py_Void();
10922 return resultobj;
10923 fail:
10924 return NULL;
10925 }
10926
10927
10928 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10929 PyObject *resultobj = 0;
10930 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10931 wxFontEncoding result;
10932 void *argp1 = 0 ;
10933 int res1 = 0 ;
10934 PyObject *swig_obj[1] ;
10935
10936 if (!args) SWIG_fail;
10937 swig_obj[0] = args;
10938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10939 if (!SWIG_IsOK(res1)) {
10940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10941 }
10942 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10943 result = (wxFontEncoding) ((arg1)->encoding);
10944 resultobj = SWIG_From_int(static_cast< int >(result));
10945 return resultobj;
10946 fail:
10947 return NULL;
10948 }
10949
10950
10951 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10952 PyObject *resultobj = 0;
10953 wxNativeEncodingInfo *result = 0 ;
10954
10955 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
10956 {
10957 PyThreadState* __tstate = wxPyBeginAllowThreads();
10958 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
10959 wxPyEndAllowThreads(__tstate);
10960 if (PyErr_Occurred()) SWIG_fail;
10961 }
10962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
10963 return resultobj;
10964 fail:
10965 return NULL;
10966 }
10967
10968
10969 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10970 PyObject *resultobj = 0;
10971 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10972 void *argp1 = 0 ;
10973 int res1 = 0 ;
10974 PyObject *swig_obj[1] ;
10975
10976 if (!args) SWIG_fail;
10977 swig_obj[0] = args;
10978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
10979 if (!SWIG_IsOK(res1)) {
10980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10981 }
10982 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10983 {
10984 PyThreadState* __tstate = wxPyBeginAllowThreads();
10985 delete arg1;
10986
10987 wxPyEndAllowThreads(__tstate);
10988 if (PyErr_Occurred()) SWIG_fail;
10989 }
10990 resultobj = SWIG_Py_Void();
10991 return resultobj;
10992 fail:
10993 return NULL;
10994 }
10995
10996
10997 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10998 PyObject *resultobj = 0;
10999 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
11000 wxString *arg2 = 0 ;
11001 bool result;
11002 void *argp1 = 0 ;
11003 int res1 = 0 ;
11004 bool temp2 = false ;
11005 PyObject * obj0 = 0 ;
11006 PyObject * obj1 = 0 ;
11007 char * kwnames[] = {
11008 (char *) "self",(char *) "s", NULL
11009 };
11010
11011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
11012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11013 if (!SWIG_IsOK(res1)) {
11014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
11015 }
11016 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11017 {
11018 arg2 = wxString_in_helper(obj1);
11019 if (arg2 == NULL) SWIG_fail;
11020 temp2 = true;
11021 }
11022 {
11023 PyThreadState* __tstate = wxPyBeginAllowThreads();
11024 result = (bool)(arg1)->FromString((wxString const &)*arg2);
11025 wxPyEndAllowThreads(__tstate);
11026 if (PyErr_Occurred()) SWIG_fail;
11027 }
11028 {
11029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11030 }
11031 {
11032 if (temp2)
11033 delete arg2;
11034 }
11035 return resultobj;
11036 fail:
11037 {
11038 if (temp2)
11039 delete arg2;
11040 }
11041 return NULL;
11042 }
11043
11044
11045 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11046 PyObject *resultobj = 0;
11047 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
11048 wxString result;
11049 void *argp1 = 0 ;
11050 int res1 = 0 ;
11051 PyObject *swig_obj[1] ;
11052
11053 if (!args) SWIG_fail;
11054 swig_obj[0] = args;
11055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11056 if (!SWIG_IsOK(res1)) {
11057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
11058 }
11059 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11060 {
11061 PyThreadState* __tstate = wxPyBeginAllowThreads();
11062 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
11063 wxPyEndAllowThreads(__tstate);
11064 if (PyErr_Occurred()) SWIG_fail;
11065 }
11066 {
11067 #if wxUSE_UNICODE
11068 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11069 #else
11070 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11071 #endif
11072 }
11073 return resultobj;
11074 fail:
11075 return NULL;
11076 }
11077
11078
11079 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11080 PyObject *obj;
11081 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11082 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
11083 return SWIG_Py_Void();
11084 }
11085
11086 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11087 return SWIG_Python_InitShadowInstance(args);
11088 }
11089
11090 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11091 PyObject *resultobj = 0;
11092 wxFontEncoding arg1 ;
11093 wxNativeEncodingInfo *result = 0 ;
11094 int val1 ;
11095 int ecode1 = 0 ;
11096 PyObject * obj0 = 0 ;
11097 char * kwnames[] = {
11098 (char *) "encoding", NULL
11099 };
11100
11101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
11102 ecode1 = SWIG_AsVal_int(obj0, &val1);
11103 if (!SWIG_IsOK(ecode1)) {
11104 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11105 }
11106 arg1 = static_cast< wxFontEncoding >(val1);
11107 {
11108 PyThreadState* __tstate = wxPyBeginAllowThreads();
11109 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
11110 wxPyEndAllowThreads(__tstate);
11111 if (PyErr_Occurred()) SWIG_fail;
11112 }
11113 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11114 return resultobj;
11115 fail:
11116 return NULL;
11117 }
11118
11119
11120 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11121 PyObject *resultobj = 0;
11122 wxNativeEncodingInfo *arg1 = 0 ;
11123 bool result;
11124 void *argp1 = 0 ;
11125 int res1 = 0 ;
11126 PyObject * obj0 = 0 ;
11127 char * kwnames[] = {
11128 (char *) "info", NULL
11129 };
11130
11131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
11132 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
11133 if (!SWIG_IsOK(res1)) {
11134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
11135 }
11136 if (!argp1) {
11137 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
11138 }
11139 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11140 {
11141 PyThreadState* __tstate = wxPyBeginAllowThreads();
11142 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
11143 wxPyEndAllowThreads(__tstate);
11144 if (PyErr_Occurred()) SWIG_fail;
11145 }
11146 {
11147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11148 }
11149 return resultobj;
11150 fail:
11151 return NULL;
11152 }
11153
11154
11155 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11156 PyObject *resultobj = 0;
11157 wxFontMapper *result = 0 ;
11158
11159 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
11160 {
11161 PyThreadState* __tstate = wxPyBeginAllowThreads();
11162 result = (wxFontMapper *)new wxFontMapper();
11163 wxPyEndAllowThreads(__tstate);
11164 if (PyErr_Occurred()) SWIG_fail;
11165 }
11166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
11167 return resultobj;
11168 fail:
11169 return NULL;
11170 }
11171
11172
11173 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11174 PyObject *resultobj = 0;
11175 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11176 void *argp1 = 0 ;
11177 int res1 = 0 ;
11178 PyObject *swig_obj[1] ;
11179
11180 if (!args) SWIG_fail;
11181 swig_obj[0] = args;
11182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
11183 if (!SWIG_IsOK(res1)) {
11184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11185 }
11186 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11187 {
11188 PyThreadState* __tstate = wxPyBeginAllowThreads();
11189 delete arg1;
11190
11191 wxPyEndAllowThreads(__tstate);
11192 if (PyErr_Occurred()) SWIG_fail;
11193 }
11194 resultobj = SWIG_Py_Void();
11195 return resultobj;
11196 fail:
11197 return NULL;
11198 }
11199
11200
11201 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11202 PyObject *resultobj = 0;
11203 wxFontMapper *result = 0 ;
11204
11205 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
11206 {
11207 PyThreadState* __tstate = wxPyBeginAllowThreads();
11208 result = (wxFontMapper *)wxFontMapper::Get();
11209 wxPyEndAllowThreads(__tstate);
11210 if (PyErr_Occurred()) SWIG_fail;
11211 }
11212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
11213 return resultobj;
11214 fail:
11215 return NULL;
11216 }
11217
11218
11219 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11220 PyObject *resultobj = 0;
11221 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11222 wxFontMapper *result = 0 ;
11223 void *argp1 = 0 ;
11224 int res1 = 0 ;
11225 PyObject * obj0 = 0 ;
11226 char * kwnames[] = {
11227 (char *) "mapper", NULL
11228 };
11229
11230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
11231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11232 if (!SWIG_IsOK(res1)) {
11233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11234 }
11235 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11236 {
11237 PyThreadState* __tstate = wxPyBeginAllowThreads();
11238 result = (wxFontMapper *)wxFontMapper::Set(arg1);
11239 wxPyEndAllowThreads(__tstate);
11240 if (PyErr_Occurred()) SWIG_fail;
11241 }
11242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
11243 return resultobj;
11244 fail:
11245 return NULL;
11246 }
11247
11248
11249 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11250 PyObject *resultobj = 0;
11251 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11252 wxString *arg2 = 0 ;
11253 bool arg3 = (bool) true ;
11254 wxFontEncoding result;
11255 void *argp1 = 0 ;
11256 int res1 = 0 ;
11257 bool temp2 = false ;
11258 bool val3 ;
11259 int ecode3 = 0 ;
11260 PyObject * obj0 = 0 ;
11261 PyObject * obj1 = 0 ;
11262 PyObject * obj2 = 0 ;
11263 char * kwnames[] = {
11264 (char *) "self",(char *) "charset",(char *) "interactive", NULL
11265 };
11266
11267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11269 if (!SWIG_IsOK(res1)) {
11270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11271 }
11272 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11273 {
11274 arg2 = wxString_in_helper(obj1);
11275 if (arg2 == NULL) SWIG_fail;
11276 temp2 = true;
11277 }
11278 if (obj2) {
11279 ecode3 = SWIG_AsVal_bool(obj2, &val3);
11280 if (!SWIG_IsOK(ecode3)) {
11281 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
11282 }
11283 arg3 = static_cast< bool >(val3);
11284 }
11285 {
11286 PyThreadState* __tstate = wxPyBeginAllowThreads();
11287 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
11288 wxPyEndAllowThreads(__tstate);
11289 if (PyErr_Occurred()) SWIG_fail;
11290 }
11291 resultobj = SWIG_From_int(static_cast< int >(result));
11292 {
11293 if (temp2)
11294 delete arg2;
11295 }
11296 return resultobj;
11297 fail:
11298 {
11299 if (temp2)
11300 delete arg2;
11301 }
11302 return NULL;
11303 }
11304
11305
11306 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11307 PyObject *resultobj = 0;
11308 size_t result;
11309
11310 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
11311 {
11312 PyThreadState* __tstate = wxPyBeginAllowThreads();
11313 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
11314 wxPyEndAllowThreads(__tstate);
11315 if (PyErr_Occurred()) SWIG_fail;
11316 }
11317 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
11318 return resultobj;
11319 fail:
11320 return NULL;
11321 }
11322
11323
11324 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11325 PyObject *resultobj = 0;
11326 size_t arg1 ;
11327 wxFontEncoding result;
11328 size_t val1 ;
11329 int ecode1 = 0 ;
11330 PyObject * obj0 = 0 ;
11331 char * kwnames[] = {
11332 (char *) "n", NULL
11333 };
11334
11335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
11336 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
11337 if (!SWIG_IsOK(ecode1)) {
11338 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
11339 }
11340 arg1 = static_cast< size_t >(val1);
11341 {
11342 PyThreadState* __tstate = wxPyBeginAllowThreads();
11343 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
11344 wxPyEndAllowThreads(__tstate);
11345 if (PyErr_Occurred()) SWIG_fail;
11346 }
11347 resultobj = SWIG_From_int(static_cast< int >(result));
11348 return resultobj;
11349 fail:
11350 return NULL;
11351 }
11352
11353
11354 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11355 PyObject *resultobj = 0;
11356 wxFontEncoding arg1 ;
11357 wxString result;
11358 int val1 ;
11359 int ecode1 = 0 ;
11360 PyObject * obj0 = 0 ;
11361 char * kwnames[] = {
11362 (char *) "encoding", NULL
11363 };
11364
11365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
11366 ecode1 = SWIG_AsVal_int(obj0, &val1);
11367 if (!SWIG_IsOK(ecode1)) {
11368 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11369 }
11370 arg1 = static_cast< wxFontEncoding >(val1);
11371 {
11372 PyThreadState* __tstate = wxPyBeginAllowThreads();
11373 result = wxFontMapper::GetEncodingName(arg1);
11374 wxPyEndAllowThreads(__tstate);
11375 if (PyErr_Occurred()) SWIG_fail;
11376 }
11377 {
11378 #if wxUSE_UNICODE
11379 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11380 #else
11381 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11382 #endif
11383 }
11384 return resultobj;
11385 fail:
11386 return NULL;
11387 }
11388
11389
11390 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11391 PyObject *resultobj = 0;
11392 wxFontEncoding arg1 ;
11393 wxString result;
11394 int val1 ;
11395 int ecode1 = 0 ;
11396 PyObject * obj0 = 0 ;
11397 char * kwnames[] = {
11398 (char *) "encoding", NULL
11399 };
11400
11401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
11402 ecode1 = SWIG_AsVal_int(obj0, &val1);
11403 if (!SWIG_IsOK(ecode1)) {
11404 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11405 }
11406 arg1 = static_cast< wxFontEncoding >(val1);
11407 {
11408 PyThreadState* __tstate = wxPyBeginAllowThreads();
11409 result = wxFontMapper::GetEncodingDescription(arg1);
11410 wxPyEndAllowThreads(__tstate);
11411 if (PyErr_Occurred()) SWIG_fail;
11412 }
11413 {
11414 #if wxUSE_UNICODE
11415 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11416 #else
11417 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11418 #endif
11419 }
11420 return resultobj;
11421 fail:
11422 return NULL;
11423 }
11424
11425
11426 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11427 PyObject *resultobj = 0;
11428 wxString *arg1 = 0 ;
11429 wxFontEncoding result;
11430 bool temp1 = false ;
11431 PyObject * obj0 = 0 ;
11432 char * kwnames[] = {
11433 (char *) "name", NULL
11434 };
11435
11436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
11437 {
11438 arg1 = wxString_in_helper(obj0);
11439 if (arg1 == NULL) SWIG_fail;
11440 temp1 = true;
11441 }
11442 {
11443 PyThreadState* __tstate = wxPyBeginAllowThreads();
11444 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
11445 wxPyEndAllowThreads(__tstate);
11446 if (PyErr_Occurred()) SWIG_fail;
11447 }
11448 resultobj = SWIG_From_int(static_cast< int >(result));
11449 {
11450 if (temp1)
11451 delete arg1;
11452 }
11453 return resultobj;
11454 fail:
11455 {
11456 if (temp1)
11457 delete arg1;
11458 }
11459 return NULL;
11460 }
11461
11462
11463 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11464 PyObject *resultobj = 0;
11465 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11466 wxString *arg2 = 0 ;
11467 void *argp1 = 0 ;
11468 int res1 = 0 ;
11469 bool temp2 = false ;
11470 PyObject * obj0 = 0 ;
11471 PyObject * obj1 = 0 ;
11472 char * kwnames[] = {
11473 (char *) "self",(char *) "prefix", NULL
11474 };
11475
11476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
11477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11478 if (!SWIG_IsOK(res1)) {
11479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11480 }
11481 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11482 {
11483 arg2 = wxString_in_helper(obj1);
11484 if (arg2 == NULL) SWIG_fail;
11485 temp2 = true;
11486 }
11487 {
11488 PyThreadState* __tstate = wxPyBeginAllowThreads();
11489 (arg1)->SetConfigPath((wxString const &)*arg2);
11490 wxPyEndAllowThreads(__tstate);
11491 if (PyErr_Occurred()) SWIG_fail;
11492 }
11493 resultobj = SWIG_Py_Void();
11494 {
11495 if (temp2)
11496 delete arg2;
11497 }
11498 return resultobj;
11499 fail:
11500 {
11501 if (temp2)
11502 delete arg2;
11503 }
11504 return NULL;
11505 }
11506
11507
11508 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11509 PyObject *resultobj = 0;
11510 wxString result;
11511
11512 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
11513 {
11514 PyThreadState* __tstate = wxPyBeginAllowThreads();
11515 result = wxFontMapper::GetDefaultConfigPath();
11516 wxPyEndAllowThreads(__tstate);
11517 if (PyErr_Occurred()) SWIG_fail;
11518 }
11519 {
11520 #if wxUSE_UNICODE
11521 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11522 #else
11523 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11524 #endif
11525 }
11526 return resultobj;
11527 fail:
11528 return NULL;
11529 }
11530
11531
11532 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11533 PyObject *resultobj = 0;
11534 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11535 wxFontEncoding arg2 ;
11536 wxString const &arg3_defvalue = wxPyEmptyString ;
11537 wxString *arg3 = (wxString *) &arg3_defvalue ;
11538 bool arg4 = (bool) true ;
11539 PyObject *result = 0 ;
11540 void *argp1 = 0 ;
11541 int res1 = 0 ;
11542 int val2 ;
11543 int ecode2 = 0 ;
11544 bool temp3 = false ;
11545 bool val4 ;
11546 int ecode4 = 0 ;
11547 PyObject * obj0 = 0 ;
11548 PyObject * obj1 = 0 ;
11549 PyObject * obj2 = 0 ;
11550 PyObject * obj3 = 0 ;
11551 char * kwnames[] = {
11552 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
11553 };
11554
11555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11557 if (!SWIG_IsOK(res1)) {
11558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11559 }
11560 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11561 ecode2 = SWIG_AsVal_int(obj1, &val2);
11562 if (!SWIG_IsOK(ecode2)) {
11563 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
11564 }
11565 arg2 = static_cast< wxFontEncoding >(val2);
11566 if (obj2) {
11567 {
11568 arg3 = wxString_in_helper(obj2);
11569 if (arg3 == NULL) SWIG_fail;
11570 temp3 = true;
11571 }
11572 }
11573 if (obj3) {
11574 ecode4 = SWIG_AsVal_bool(obj3, &val4);
11575 if (!SWIG_IsOK(ecode4)) {
11576 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
11577 }
11578 arg4 = static_cast< bool >(val4);
11579 }
11580 {
11581 PyThreadState* __tstate = wxPyBeginAllowThreads();
11582 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
11583 wxPyEndAllowThreads(__tstate);
11584 if (PyErr_Occurred()) SWIG_fail;
11585 }
11586 resultobj = result;
11587 {
11588 if (temp3)
11589 delete arg3;
11590 }
11591 return resultobj;
11592 fail:
11593 {
11594 if (temp3)
11595 delete arg3;
11596 }
11597 return NULL;
11598 }
11599
11600
11601 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11602 PyObject *resultobj = 0;
11603 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11604 wxFontEncoding arg2 ;
11605 wxString const &arg3_defvalue = wxPyEmptyString ;
11606 wxString *arg3 = (wxString *) &arg3_defvalue ;
11607 bool result;
11608 void *argp1 = 0 ;
11609 int res1 = 0 ;
11610 int val2 ;
11611 int ecode2 = 0 ;
11612 bool temp3 = false ;
11613 PyObject * obj0 = 0 ;
11614 PyObject * obj1 = 0 ;
11615 PyObject * obj2 = 0 ;
11616 char * kwnames[] = {
11617 (char *) "self",(char *) "encoding",(char *) "facename", NULL
11618 };
11619
11620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11622 if (!SWIG_IsOK(res1)) {
11623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11624 }
11625 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11626 ecode2 = SWIG_AsVal_int(obj1, &val2);
11627 if (!SWIG_IsOK(ecode2)) {
11628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
11629 }
11630 arg2 = static_cast< wxFontEncoding >(val2);
11631 if (obj2) {
11632 {
11633 arg3 = wxString_in_helper(obj2);
11634 if (arg3 == NULL) SWIG_fail;
11635 temp3 = true;
11636 }
11637 }
11638 {
11639 PyThreadState* __tstate = wxPyBeginAllowThreads();
11640 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
11641 wxPyEndAllowThreads(__tstate);
11642 if (PyErr_Occurred()) SWIG_fail;
11643 }
11644 {
11645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11646 }
11647 {
11648 if (temp3)
11649 delete arg3;
11650 }
11651 return resultobj;
11652 fail:
11653 {
11654 if (temp3)
11655 delete arg3;
11656 }
11657 return NULL;
11658 }
11659
11660
11661 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11662 PyObject *resultobj = 0;
11663 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11664 wxWindow *arg2 = (wxWindow *) 0 ;
11665 void *argp1 = 0 ;
11666 int res1 = 0 ;
11667 void *argp2 = 0 ;
11668 int res2 = 0 ;
11669 PyObject * obj0 = 0 ;
11670 PyObject * obj1 = 0 ;
11671 char * kwnames[] = {
11672 (char *) "self",(char *) "parent", NULL
11673 };
11674
11675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
11676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11677 if (!SWIG_IsOK(res1)) {
11678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11679 }
11680 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11681 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11682 if (!SWIG_IsOK(res2)) {
11683 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
11684 }
11685 arg2 = reinterpret_cast< wxWindow * >(argp2);
11686 {
11687 PyThreadState* __tstate = wxPyBeginAllowThreads();
11688 (arg1)->SetDialogParent(arg2);
11689 wxPyEndAllowThreads(__tstate);
11690 if (PyErr_Occurred()) SWIG_fail;
11691 }
11692 resultobj = SWIG_Py_Void();
11693 return resultobj;
11694 fail:
11695 return NULL;
11696 }
11697
11698
11699 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11700 PyObject *resultobj = 0;
11701 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11702 wxString *arg2 = 0 ;
11703 void *argp1 = 0 ;
11704 int res1 = 0 ;
11705 bool temp2 = false ;
11706 PyObject * obj0 = 0 ;
11707 PyObject * obj1 = 0 ;
11708 char * kwnames[] = {
11709 (char *) "self",(char *) "title", NULL
11710 };
11711
11712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
11713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11714 if (!SWIG_IsOK(res1)) {
11715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11716 }
11717 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11718 {
11719 arg2 = wxString_in_helper(obj1);
11720 if (arg2 == NULL) SWIG_fail;
11721 temp2 = true;
11722 }
11723 {
11724 PyThreadState* __tstate = wxPyBeginAllowThreads();
11725 (arg1)->SetDialogTitle((wxString const &)*arg2);
11726 wxPyEndAllowThreads(__tstate);
11727 if (PyErr_Occurred()) SWIG_fail;
11728 }
11729 resultobj = SWIG_Py_Void();
11730 {
11731 if (temp2)
11732 delete arg2;
11733 }
11734 return resultobj;
11735 fail:
11736 {
11737 if (temp2)
11738 delete arg2;
11739 }
11740 return NULL;
11741 }
11742
11743
11744 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11745 PyObject *obj;
11746 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11747 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
11748 return SWIG_Py_Void();
11749 }
11750
11751 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11752 return SWIG_Python_InitShadowInstance(args);
11753 }
11754
11755 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11756 PyObject *resultobj = 0;
11757 int arg1 ;
11758 int arg2 ;
11759 int arg3 ;
11760 int arg4 ;
11761 bool arg5 = (bool) false ;
11762 wxString const &arg6_defvalue = wxPyEmptyString ;
11763 wxString *arg6 = (wxString *) &arg6_defvalue ;
11764 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11765 wxFont *result = 0 ;
11766 int val1 ;
11767 int ecode1 = 0 ;
11768 int val2 ;
11769 int ecode2 = 0 ;
11770 int val3 ;
11771 int ecode3 = 0 ;
11772 int val4 ;
11773 int ecode4 = 0 ;
11774 bool val5 ;
11775 int ecode5 = 0 ;
11776 bool temp6 = false ;
11777 int val7 ;
11778 int ecode7 = 0 ;
11779 PyObject * obj0 = 0 ;
11780 PyObject * obj1 = 0 ;
11781 PyObject * obj2 = 0 ;
11782 PyObject * obj3 = 0 ;
11783 PyObject * obj4 = 0 ;
11784 PyObject * obj5 = 0 ;
11785 PyObject * obj6 = 0 ;
11786 char * kwnames[] = {
11787 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11788 };
11789
11790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11791 ecode1 = SWIG_AsVal_int(obj0, &val1);
11792 if (!SWIG_IsOK(ecode1)) {
11793 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11794 }
11795 arg1 = static_cast< int >(val1);
11796 ecode2 = SWIG_AsVal_int(obj1, &val2);
11797 if (!SWIG_IsOK(ecode2)) {
11798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11799 }
11800 arg2 = static_cast< int >(val2);
11801 ecode3 = SWIG_AsVal_int(obj2, &val3);
11802 if (!SWIG_IsOK(ecode3)) {
11803 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11804 }
11805 arg3 = static_cast< int >(val3);
11806 ecode4 = SWIG_AsVal_int(obj3, &val4);
11807 if (!SWIG_IsOK(ecode4)) {
11808 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11809 }
11810 arg4 = static_cast< int >(val4);
11811 if (obj4) {
11812 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11813 if (!SWIG_IsOK(ecode5)) {
11814 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11815 }
11816 arg5 = static_cast< bool >(val5);
11817 }
11818 if (obj5) {
11819 {
11820 arg6 = wxString_in_helper(obj5);
11821 if (arg6 == NULL) SWIG_fail;
11822 temp6 = true;
11823 }
11824 }
11825 if (obj6) {
11826 ecode7 = SWIG_AsVal_int(obj6, &val7);
11827 if (!SWIG_IsOK(ecode7)) {
11828 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11829 }
11830 arg7 = static_cast< wxFontEncoding >(val7);
11831 }
11832 {
11833 if (!wxPyCheckForApp()) SWIG_fail;
11834 PyThreadState* __tstate = wxPyBeginAllowThreads();
11835 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11836 wxPyEndAllowThreads(__tstate);
11837 if (PyErr_Occurred()) SWIG_fail;
11838 }
11839 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
11840 {
11841 if (temp6)
11842 delete arg6;
11843 }
11844 return resultobj;
11845 fail:
11846 {
11847 if (temp6)
11848 delete arg6;
11849 }
11850 return NULL;
11851 }
11852
11853
11854 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11855 PyObject *resultobj = 0;
11856 wxFont *arg1 = (wxFont *) 0 ;
11857 void *argp1 = 0 ;
11858 int res1 = 0 ;
11859 PyObject *swig_obj[1] ;
11860
11861 if (!args) SWIG_fail;
11862 swig_obj[0] = args;
11863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
11864 if (!SWIG_IsOK(res1)) {
11865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11866 }
11867 arg1 = reinterpret_cast< wxFont * >(argp1);
11868 {
11869 PyThreadState* __tstate = wxPyBeginAllowThreads();
11870 delete arg1;
11871
11872 wxPyEndAllowThreads(__tstate);
11873 if (PyErr_Occurred()) SWIG_fail;
11874 }
11875 resultobj = SWIG_Py_Void();
11876 return resultobj;
11877 fail:
11878 return NULL;
11879 }
11880
11881
11882 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11883 PyObject *resultobj = 0;
11884 wxNativeFontInfo *arg1 = 0 ;
11885 wxFont *result = 0 ;
11886 void *argp1 = 0 ;
11887 int res1 = 0 ;
11888 PyObject * obj0 = 0 ;
11889 char * kwnames[] = {
11890 (char *) "info", NULL
11891 };
11892
11893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
11894 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
11895 if (!SWIG_IsOK(res1)) {
11896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11897 }
11898 if (!argp1) {
11899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11900 }
11901 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11902 {
11903 if (!wxPyCheckForApp()) SWIG_fail;
11904 PyThreadState* __tstate = wxPyBeginAllowThreads();
11905 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
11906 wxPyEndAllowThreads(__tstate);
11907 if (PyErr_Occurred()) SWIG_fail;
11908 }
11909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11910 return resultobj;
11911 fail:
11912 return NULL;
11913 }
11914
11915
11916 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11917 PyObject *resultobj = 0;
11918 wxString *arg1 = 0 ;
11919 wxFont *result = 0 ;
11920 bool temp1 = false ;
11921 PyObject * obj0 = 0 ;
11922 char * kwnames[] = {
11923 (char *) "info", NULL
11924 };
11925
11926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
11927 {
11928 arg1 = wxString_in_helper(obj0);
11929 if (arg1 == NULL) SWIG_fail;
11930 temp1 = true;
11931 }
11932 {
11933 if (!wxPyCheckForApp()) SWIG_fail;
11934 PyThreadState* __tstate = wxPyBeginAllowThreads();
11935 result = (wxFont *)new_wxFont((wxString const &)*arg1);
11936 wxPyEndAllowThreads(__tstate);
11937 if (PyErr_Occurred()) SWIG_fail;
11938 }
11939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11940 {
11941 if (temp1)
11942 delete arg1;
11943 }
11944 return resultobj;
11945 fail:
11946 {
11947 if (temp1)
11948 delete arg1;
11949 }
11950 return NULL;
11951 }
11952
11953
11954 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11955 PyObject *resultobj = 0;
11956 int arg1 ;
11957 wxFontFamily arg2 ;
11958 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11959 wxString const &arg4_defvalue = wxPyEmptyString ;
11960 wxString *arg4 = (wxString *) &arg4_defvalue ;
11961 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11962 wxFont *result = 0 ;
11963 int val1 ;
11964 int ecode1 = 0 ;
11965 int val2 ;
11966 int ecode2 = 0 ;
11967 int val3 ;
11968 int ecode3 = 0 ;
11969 bool temp4 = false ;
11970 int val5 ;
11971 int ecode5 = 0 ;
11972 PyObject * obj0 = 0 ;
11973 PyObject * obj1 = 0 ;
11974 PyObject * obj2 = 0 ;
11975 PyObject * obj3 = 0 ;
11976 PyObject * obj4 = 0 ;
11977 char * kwnames[] = {
11978 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11979 };
11980
11981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11982 ecode1 = SWIG_AsVal_int(obj0, &val1);
11983 if (!SWIG_IsOK(ecode1)) {
11984 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11985 }
11986 arg1 = static_cast< int >(val1);
11987 ecode2 = SWIG_AsVal_int(obj1, &val2);
11988 if (!SWIG_IsOK(ecode2)) {
11989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
11990 }
11991 arg2 = static_cast< wxFontFamily >(val2);
11992 if (obj2) {
11993 ecode3 = SWIG_AsVal_int(obj2, &val3);
11994 if (!SWIG_IsOK(ecode3)) {
11995 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
11996 }
11997 arg3 = static_cast< int >(val3);
11998 }
11999 if (obj3) {
12000 {
12001 arg4 = wxString_in_helper(obj3);
12002 if (arg4 == NULL) SWIG_fail;
12003 temp4 = true;
12004 }
12005 }
12006 if (obj4) {
12007 ecode5 = SWIG_AsVal_int(obj4, &val5);
12008 if (!SWIG_IsOK(ecode5)) {
12009 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
12010 }
12011 arg5 = static_cast< wxFontEncoding >(val5);
12012 }
12013 {
12014 if (!wxPyCheckForApp()) SWIG_fail;
12015 PyThreadState* __tstate = wxPyBeginAllowThreads();
12016 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
12017 wxPyEndAllowThreads(__tstate);
12018 if (PyErr_Occurred()) SWIG_fail;
12019 }
12020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12021 {
12022 if (temp4)
12023 delete arg4;
12024 }
12025 return resultobj;
12026 fail:
12027 {
12028 if (temp4)
12029 delete arg4;
12030 }
12031 return NULL;
12032 }
12033
12034
12035 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12036 PyObject *resultobj = 0;
12037 wxSize *arg1 = 0 ;
12038 int arg2 ;
12039 int arg3 ;
12040 int arg4 ;
12041 bool arg5 = (bool) false ;
12042 wxString const &arg6_defvalue = wxEmptyString ;
12043 wxString *arg6 = (wxString *) &arg6_defvalue ;
12044 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
12045 wxFont *result = 0 ;
12046 wxSize temp1 ;
12047 int val2 ;
12048 int ecode2 = 0 ;
12049 int val3 ;
12050 int ecode3 = 0 ;
12051 int val4 ;
12052 int ecode4 = 0 ;
12053 bool val5 ;
12054 int ecode5 = 0 ;
12055 bool temp6 = false ;
12056 int val7 ;
12057 int ecode7 = 0 ;
12058 PyObject * obj0 = 0 ;
12059 PyObject * obj1 = 0 ;
12060 PyObject * obj2 = 0 ;
12061 PyObject * obj3 = 0 ;
12062 PyObject * obj4 = 0 ;
12063 PyObject * obj5 = 0 ;
12064 PyObject * obj6 = 0 ;
12065 char * kwnames[] = {
12066 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
12067 };
12068
12069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
12070 {
12071 arg1 = &temp1;
12072 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
12073 }
12074 ecode2 = SWIG_AsVal_int(obj1, &val2);
12075 if (!SWIG_IsOK(ecode2)) {
12076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
12077 }
12078 arg2 = static_cast< int >(val2);
12079 ecode3 = SWIG_AsVal_int(obj2, &val3);
12080 if (!SWIG_IsOK(ecode3)) {
12081 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
12082 }
12083 arg3 = static_cast< int >(val3);
12084 ecode4 = SWIG_AsVal_int(obj3, &val4);
12085 if (!SWIG_IsOK(ecode4)) {
12086 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
12087 }
12088 arg4 = static_cast< int >(val4);
12089 if (obj4) {
12090 ecode5 = SWIG_AsVal_bool(obj4, &val5);
12091 if (!SWIG_IsOK(ecode5)) {
12092 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
12093 }
12094 arg5 = static_cast< bool >(val5);
12095 }
12096 if (obj5) {
12097 {
12098 arg6 = wxString_in_helper(obj5);
12099 if (arg6 == NULL) SWIG_fail;
12100 temp6 = true;
12101 }
12102 }
12103 if (obj6) {
12104 ecode7 = SWIG_AsVal_int(obj6, &val7);
12105 if (!SWIG_IsOK(ecode7)) {
12106 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
12107 }
12108 arg7 = static_cast< wxFontEncoding >(val7);
12109 }
12110 {
12111 if (!wxPyCheckForApp()) SWIG_fail;
12112 PyThreadState* __tstate = wxPyBeginAllowThreads();
12113 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
12114 wxPyEndAllowThreads(__tstate);
12115 if (PyErr_Occurred()) SWIG_fail;
12116 }
12117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12118 {
12119 if (temp6)
12120 delete arg6;
12121 }
12122 return resultobj;
12123 fail:
12124 {
12125 if (temp6)
12126 delete arg6;
12127 }
12128 return NULL;
12129 }
12130
12131
12132 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12133 PyObject *resultobj = 0;
12134 wxSize *arg1 = 0 ;
12135 wxFontFamily arg2 ;
12136 int arg3 = (int) wxFONTFLAG_DEFAULT ;
12137 wxString const &arg4_defvalue = wxEmptyString ;
12138 wxString *arg4 = (wxString *) &arg4_defvalue ;
12139 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
12140 wxFont *result = 0 ;
12141 wxSize temp1 ;
12142 int val2 ;
12143 int ecode2 = 0 ;
12144 int val3 ;
12145 int ecode3 = 0 ;
12146 bool temp4 = false ;
12147 int val5 ;
12148 int ecode5 = 0 ;
12149 PyObject * obj0 = 0 ;
12150 PyObject * obj1 = 0 ;
12151 PyObject * obj2 = 0 ;
12152 PyObject * obj3 = 0 ;
12153 PyObject * obj4 = 0 ;
12154 char * kwnames[] = {
12155 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
12156 };
12157
12158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12159 {
12160 arg1 = &temp1;
12161 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
12162 }
12163 ecode2 = SWIG_AsVal_int(obj1, &val2);
12164 if (!SWIG_IsOK(ecode2)) {
12165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
12166 }
12167 arg2 = static_cast< wxFontFamily >(val2);
12168 if (obj2) {
12169 ecode3 = SWIG_AsVal_int(obj2, &val3);
12170 if (!SWIG_IsOK(ecode3)) {
12171 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
12172 }
12173 arg3 = static_cast< int >(val3);
12174 }
12175 if (obj3) {
12176 {
12177 arg4 = wxString_in_helper(obj3);
12178 if (arg4 == NULL) SWIG_fail;
12179 temp4 = true;
12180 }
12181 }
12182 if (obj4) {
12183 ecode5 = SWIG_AsVal_int(obj4, &val5);
12184 if (!SWIG_IsOK(ecode5)) {
12185 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
12186 }
12187 arg5 = static_cast< wxFontEncoding >(val5);
12188 }
12189 {
12190 if (!wxPyCheckForApp()) SWIG_fail;
12191 PyThreadState* __tstate = wxPyBeginAllowThreads();
12192 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
12193 wxPyEndAllowThreads(__tstate);
12194 if (PyErr_Occurred()) SWIG_fail;
12195 }
12196 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12197 {
12198 if (temp4)
12199 delete arg4;
12200 }
12201 return resultobj;
12202 fail:
12203 {
12204 if (temp4)
12205 delete arg4;
12206 }
12207 return NULL;
12208 }
12209
12210
12211 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12212 PyObject *resultobj = 0;
12213 wxFont *arg1 = (wxFont *) 0 ;
12214 bool result;
12215 void *argp1 = 0 ;
12216 int res1 = 0 ;
12217 PyObject *swig_obj[1] ;
12218
12219 if (!args) SWIG_fail;
12220 swig_obj[0] = args;
12221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12222 if (!SWIG_IsOK(res1)) {
12223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
12224 }
12225 arg1 = reinterpret_cast< wxFont * >(argp1);
12226 {
12227 PyThreadState* __tstate = wxPyBeginAllowThreads();
12228 result = (bool)((wxFont const *)arg1)->Ok();
12229 wxPyEndAllowThreads(__tstate);
12230 if (PyErr_Occurred()) SWIG_fail;
12231 }
12232 {
12233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12234 }
12235 return resultobj;
12236 fail:
12237 return NULL;
12238 }
12239
12240
12241 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12242 PyObject *resultobj = 0;
12243 wxFont *arg1 = (wxFont *) 0 ;
12244 wxFont *arg2 = (wxFont *) 0 ;
12245 bool result;
12246 void *argp1 = 0 ;
12247 int res1 = 0 ;
12248 void *argp2 = 0 ;
12249 int res2 = 0 ;
12250 PyObject * obj0 = 0 ;
12251 PyObject * obj1 = 0 ;
12252 char * kwnames[] = {
12253 (char *) "self",(char *) "other", NULL
12254 };
12255
12256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
12257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12258 if (!SWIG_IsOK(res1)) {
12259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
12260 }
12261 arg1 = reinterpret_cast< wxFont * >(argp1);
12262 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
12263 if (!SWIG_IsOK(res2)) {
12264 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
12265 }
12266 arg2 = reinterpret_cast< wxFont * >(argp2);
12267 {
12268 PyThreadState* __tstate = wxPyBeginAllowThreads();
12269 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
12270 wxPyEndAllowThreads(__tstate);
12271 if (PyErr_Occurred()) SWIG_fail;
12272 }
12273 {
12274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12275 }
12276 return resultobj;
12277 fail:
12278 return NULL;
12279 }
12280
12281
12282 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12283 PyObject *resultobj = 0;
12284 wxFont *arg1 = (wxFont *) 0 ;
12285 wxFont *arg2 = (wxFont *) 0 ;
12286 bool result;
12287 void *argp1 = 0 ;
12288 int res1 = 0 ;
12289 void *argp2 = 0 ;
12290 int res2 = 0 ;
12291 PyObject * obj0 = 0 ;
12292 PyObject * obj1 = 0 ;
12293 char * kwnames[] = {
12294 (char *) "self",(char *) "other", NULL
12295 };
12296
12297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
12298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12299 if (!SWIG_IsOK(res1)) {
12300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
12301 }
12302 arg1 = reinterpret_cast< wxFont * >(argp1);
12303 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
12304 if (!SWIG_IsOK(res2)) {
12305 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
12306 }
12307 arg2 = reinterpret_cast< wxFont * >(argp2);
12308 {
12309 PyThreadState* __tstate = wxPyBeginAllowThreads();
12310 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
12311 wxPyEndAllowThreads(__tstate);
12312 if (PyErr_Occurred()) SWIG_fail;
12313 }
12314 {
12315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12316 }
12317 return resultobj;
12318 fail:
12319 return NULL;
12320 }
12321
12322
12323 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12324 PyObject *resultobj = 0;
12325 wxFont *arg1 = (wxFont *) 0 ;
12326 int result;
12327 void *argp1 = 0 ;
12328 int res1 = 0 ;
12329 PyObject *swig_obj[1] ;
12330
12331 if (!args) SWIG_fail;
12332 swig_obj[0] = args;
12333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12334 if (!SWIG_IsOK(res1)) {
12335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
12336 }
12337 arg1 = reinterpret_cast< wxFont * >(argp1);
12338 {
12339 PyThreadState* __tstate = wxPyBeginAllowThreads();
12340 result = (int)((wxFont const *)arg1)->GetPointSize();
12341 wxPyEndAllowThreads(__tstate);
12342 if (PyErr_Occurred()) SWIG_fail;
12343 }
12344 resultobj = SWIG_From_int(static_cast< int >(result));
12345 return resultobj;
12346 fail:
12347 return NULL;
12348 }
12349
12350
12351 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12352 PyObject *resultobj = 0;
12353 wxFont *arg1 = (wxFont *) 0 ;
12354 wxSize result;
12355 void *argp1 = 0 ;
12356 int res1 = 0 ;
12357 PyObject *swig_obj[1] ;
12358
12359 if (!args) SWIG_fail;
12360 swig_obj[0] = args;
12361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12362 if (!SWIG_IsOK(res1)) {
12363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
12364 }
12365 arg1 = reinterpret_cast< wxFont * >(argp1);
12366 {
12367 PyThreadState* __tstate = wxPyBeginAllowThreads();
12368 result = ((wxFont const *)arg1)->GetPixelSize();
12369 wxPyEndAllowThreads(__tstate);
12370 if (PyErr_Occurred()) SWIG_fail;
12371 }
12372 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12373 return resultobj;
12374 fail:
12375 return NULL;
12376 }
12377
12378
12379 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12380 PyObject *resultobj = 0;
12381 wxFont *arg1 = (wxFont *) 0 ;
12382 bool result;
12383 void *argp1 = 0 ;
12384 int res1 = 0 ;
12385 PyObject *swig_obj[1] ;
12386
12387 if (!args) SWIG_fail;
12388 swig_obj[0] = args;
12389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12390 if (!SWIG_IsOK(res1)) {
12391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
12392 }
12393 arg1 = reinterpret_cast< wxFont * >(argp1);
12394 {
12395 PyThreadState* __tstate = wxPyBeginAllowThreads();
12396 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
12397 wxPyEndAllowThreads(__tstate);
12398 if (PyErr_Occurred()) SWIG_fail;
12399 }
12400 {
12401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12402 }
12403 return resultobj;
12404 fail:
12405 return NULL;
12406 }
12407
12408
12409 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12410 PyObject *resultobj = 0;
12411 wxFont *arg1 = (wxFont *) 0 ;
12412 int result;
12413 void *argp1 = 0 ;
12414 int res1 = 0 ;
12415 PyObject *swig_obj[1] ;
12416
12417 if (!args) SWIG_fail;
12418 swig_obj[0] = args;
12419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12420 if (!SWIG_IsOK(res1)) {
12421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
12422 }
12423 arg1 = reinterpret_cast< wxFont * >(argp1);
12424 {
12425 PyThreadState* __tstate = wxPyBeginAllowThreads();
12426 result = (int)((wxFont const *)arg1)->GetFamily();
12427 wxPyEndAllowThreads(__tstate);
12428 if (PyErr_Occurred()) SWIG_fail;
12429 }
12430 resultobj = SWIG_From_int(static_cast< int >(result));
12431 return resultobj;
12432 fail:
12433 return NULL;
12434 }
12435
12436
12437 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12438 PyObject *resultobj = 0;
12439 wxFont *arg1 = (wxFont *) 0 ;
12440 int result;
12441 void *argp1 = 0 ;
12442 int res1 = 0 ;
12443 PyObject *swig_obj[1] ;
12444
12445 if (!args) SWIG_fail;
12446 swig_obj[0] = args;
12447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12448 if (!SWIG_IsOK(res1)) {
12449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
12450 }
12451 arg1 = reinterpret_cast< wxFont * >(argp1);
12452 {
12453 PyThreadState* __tstate = wxPyBeginAllowThreads();
12454 result = (int)((wxFont const *)arg1)->GetStyle();
12455 wxPyEndAllowThreads(__tstate);
12456 if (PyErr_Occurred()) SWIG_fail;
12457 }
12458 resultobj = SWIG_From_int(static_cast< int >(result));
12459 return resultobj;
12460 fail:
12461 return NULL;
12462 }
12463
12464
12465 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12466 PyObject *resultobj = 0;
12467 wxFont *arg1 = (wxFont *) 0 ;
12468 int result;
12469 void *argp1 = 0 ;
12470 int res1 = 0 ;
12471 PyObject *swig_obj[1] ;
12472
12473 if (!args) SWIG_fail;
12474 swig_obj[0] = args;
12475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12476 if (!SWIG_IsOK(res1)) {
12477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
12478 }
12479 arg1 = reinterpret_cast< wxFont * >(argp1);
12480 {
12481 PyThreadState* __tstate = wxPyBeginAllowThreads();
12482 result = (int)((wxFont const *)arg1)->GetWeight();
12483 wxPyEndAllowThreads(__tstate);
12484 if (PyErr_Occurred()) SWIG_fail;
12485 }
12486 resultobj = SWIG_From_int(static_cast< int >(result));
12487 return resultobj;
12488 fail:
12489 return NULL;
12490 }
12491
12492
12493 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12494 PyObject *resultobj = 0;
12495 wxFont *arg1 = (wxFont *) 0 ;
12496 bool result;
12497 void *argp1 = 0 ;
12498 int res1 = 0 ;
12499 PyObject *swig_obj[1] ;
12500
12501 if (!args) SWIG_fail;
12502 swig_obj[0] = args;
12503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12504 if (!SWIG_IsOK(res1)) {
12505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
12506 }
12507 arg1 = reinterpret_cast< wxFont * >(argp1);
12508 {
12509 PyThreadState* __tstate = wxPyBeginAllowThreads();
12510 result = (bool)((wxFont const *)arg1)->GetUnderlined();
12511 wxPyEndAllowThreads(__tstate);
12512 if (PyErr_Occurred()) SWIG_fail;
12513 }
12514 {
12515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12516 }
12517 return resultobj;
12518 fail:
12519 return NULL;
12520 }
12521
12522
12523 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12524 PyObject *resultobj = 0;
12525 wxFont *arg1 = (wxFont *) 0 ;
12526 wxString result;
12527 void *argp1 = 0 ;
12528 int res1 = 0 ;
12529 PyObject *swig_obj[1] ;
12530
12531 if (!args) SWIG_fail;
12532 swig_obj[0] = args;
12533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12534 if (!SWIG_IsOK(res1)) {
12535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
12536 }
12537 arg1 = reinterpret_cast< wxFont * >(argp1);
12538 {
12539 PyThreadState* __tstate = wxPyBeginAllowThreads();
12540 result = ((wxFont const *)arg1)->GetFaceName();
12541 wxPyEndAllowThreads(__tstate);
12542 if (PyErr_Occurred()) SWIG_fail;
12543 }
12544 {
12545 #if wxUSE_UNICODE
12546 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12547 #else
12548 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12549 #endif
12550 }
12551 return resultobj;
12552 fail:
12553 return NULL;
12554 }
12555
12556
12557 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12558 PyObject *resultobj = 0;
12559 wxFont *arg1 = (wxFont *) 0 ;
12560 wxFontEncoding result;
12561 void *argp1 = 0 ;
12562 int res1 = 0 ;
12563 PyObject *swig_obj[1] ;
12564
12565 if (!args) SWIG_fail;
12566 swig_obj[0] = args;
12567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12568 if (!SWIG_IsOK(res1)) {
12569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
12570 }
12571 arg1 = reinterpret_cast< wxFont * >(argp1);
12572 {
12573 PyThreadState* __tstate = wxPyBeginAllowThreads();
12574 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
12575 wxPyEndAllowThreads(__tstate);
12576 if (PyErr_Occurred()) SWIG_fail;
12577 }
12578 resultobj = SWIG_From_int(static_cast< int >(result));
12579 return resultobj;
12580 fail:
12581 return NULL;
12582 }
12583
12584
12585 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12586 PyObject *resultobj = 0;
12587 wxFont *arg1 = (wxFont *) 0 ;
12588 wxNativeFontInfo *result = 0 ;
12589 void *argp1 = 0 ;
12590 int res1 = 0 ;
12591 PyObject *swig_obj[1] ;
12592
12593 if (!args) SWIG_fail;
12594 swig_obj[0] = args;
12595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12596 if (!SWIG_IsOK(res1)) {
12597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
12598 }
12599 arg1 = reinterpret_cast< wxFont * >(argp1);
12600 {
12601 PyThreadState* __tstate = wxPyBeginAllowThreads();
12602 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
12603 wxPyEndAllowThreads(__tstate);
12604 if (PyErr_Occurred()) SWIG_fail;
12605 }
12606 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12607 return resultobj;
12608 fail:
12609 return NULL;
12610 }
12611
12612
12613 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12614 PyObject *resultobj = 0;
12615 wxFont *arg1 = (wxFont *) 0 ;
12616 bool result;
12617 void *argp1 = 0 ;
12618 int res1 = 0 ;
12619 PyObject *swig_obj[1] ;
12620
12621 if (!args) SWIG_fail;
12622 swig_obj[0] = args;
12623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12624 if (!SWIG_IsOK(res1)) {
12625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
12626 }
12627 arg1 = reinterpret_cast< wxFont * >(argp1);
12628 {
12629 PyThreadState* __tstate = wxPyBeginAllowThreads();
12630 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
12631 wxPyEndAllowThreads(__tstate);
12632 if (PyErr_Occurred()) SWIG_fail;
12633 }
12634 {
12635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12636 }
12637 return resultobj;
12638 fail:
12639 return NULL;
12640 }
12641
12642
12643 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12644 PyObject *resultobj = 0;
12645 wxFont *arg1 = (wxFont *) 0 ;
12646 wxString result;
12647 void *argp1 = 0 ;
12648 int res1 = 0 ;
12649 PyObject *swig_obj[1] ;
12650
12651 if (!args) SWIG_fail;
12652 swig_obj[0] = args;
12653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12654 if (!SWIG_IsOK(res1)) {
12655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12656 }
12657 arg1 = reinterpret_cast< wxFont * >(argp1);
12658 {
12659 PyThreadState* __tstate = wxPyBeginAllowThreads();
12660 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
12661 wxPyEndAllowThreads(__tstate);
12662 if (PyErr_Occurred()) SWIG_fail;
12663 }
12664 {
12665 #if wxUSE_UNICODE
12666 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12667 #else
12668 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12669 #endif
12670 }
12671 return resultobj;
12672 fail:
12673 return NULL;
12674 }
12675
12676
12677 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12678 PyObject *resultobj = 0;
12679 wxFont *arg1 = (wxFont *) 0 ;
12680 wxString result;
12681 void *argp1 = 0 ;
12682 int res1 = 0 ;
12683 PyObject *swig_obj[1] ;
12684
12685 if (!args) SWIG_fail;
12686 swig_obj[0] = args;
12687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12688 if (!SWIG_IsOK(res1)) {
12689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12690 }
12691 arg1 = reinterpret_cast< wxFont * >(argp1);
12692 {
12693 PyThreadState* __tstate = wxPyBeginAllowThreads();
12694 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
12695 wxPyEndAllowThreads(__tstate);
12696 if (PyErr_Occurred()) SWIG_fail;
12697 }
12698 {
12699 #if wxUSE_UNICODE
12700 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12701 #else
12702 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12703 #endif
12704 }
12705 return resultobj;
12706 fail:
12707 return NULL;
12708 }
12709
12710
12711 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12712 PyObject *resultobj = 0;
12713 wxFont *arg1 = (wxFont *) 0 ;
12714 int arg2 ;
12715 void *argp1 = 0 ;
12716 int res1 = 0 ;
12717 int val2 ;
12718 int ecode2 = 0 ;
12719 PyObject * obj0 = 0 ;
12720 PyObject * obj1 = 0 ;
12721 char * kwnames[] = {
12722 (char *) "self",(char *) "pointSize", NULL
12723 };
12724
12725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12727 if (!SWIG_IsOK(res1)) {
12728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
12729 }
12730 arg1 = reinterpret_cast< wxFont * >(argp1);
12731 ecode2 = SWIG_AsVal_int(obj1, &val2);
12732 if (!SWIG_IsOK(ecode2)) {
12733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12734 }
12735 arg2 = static_cast< int >(val2);
12736 {
12737 PyThreadState* __tstate = wxPyBeginAllowThreads();
12738 (arg1)->SetPointSize(arg2);
12739 wxPyEndAllowThreads(__tstate);
12740 if (PyErr_Occurred()) SWIG_fail;
12741 }
12742 resultobj = SWIG_Py_Void();
12743 return resultobj;
12744 fail:
12745 return NULL;
12746 }
12747
12748
12749 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12750 PyObject *resultobj = 0;
12751 wxFont *arg1 = (wxFont *) 0 ;
12752 wxSize *arg2 = 0 ;
12753 void *argp1 = 0 ;
12754 int res1 = 0 ;
12755 wxSize temp2 ;
12756 PyObject * obj0 = 0 ;
12757 PyObject * obj1 = 0 ;
12758 char * kwnames[] = {
12759 (char *) "self",(char *) "pixelSize", NULL
12760 };
12761
12762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12764 if (!SWIG_IsOK(res1)) {
12765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12766 }
12767 arg1 = reinterpret_cast< wxFont * >(argp1);
12768 {
12769 arg2 = &temp2;
12770 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12771 }
12772 {
12773 PyThreadState* __tstate = wxPyBeginAllowThreads();
12774 (arg1)->SetPixelSize((wxSize const &)*arg2);
12775 wxPyEndAllowThreads(__tstate);
12776 if (PyErr_Occurred()) SWIG_fail;
12777 }
12778 resultobj = SWIG_Py_Void();
12779 return resultobj;
12780 fail:
12781 return NULL;
12782 }
12783
12784
12785 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12786 PyObject *resultobj = 0;
12787 wxFont *arg1 = (wxFont *) 0 ;
12788 int arg2 ;
12789 void *argp1 = 0 ;
12790 int res1 = 0 ;
12791 int val2 ;
12792 int ecode2 = 0 ;
12793 PyObject * obj0 = 0 ;
12794 PyObject * obj1 = 0 ;
12795 char * kwnames[] = {
12796 (char *) "self",(char *) "family", NULL
12797 };
12798
12799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12801 if (!SWIG_IsOK(res1)) {
12802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12803 }
12804 arg1 = reinterpret_cast< wxFont * >(argp1);
12805 ecode2 = SWIG_AsVal_int(obj1, &val2);
12806 if (!SWIG_IsOK(ecode2)) {
12807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12808 }
12809 arg2 = static_cast< int >(val2);
12810 {
12811 PyThreadState* __tstate = wxPyBeginAllowThreads();
12812 (arg1)->SetFamily(arg2);
12813 wxPyEndAllowThreads(__tstate);
12814 if (PyErr_Occurred()) SWIG_fail;
12815 }
12816 resultobj = SWIG_Py_Void();
12817 return resultobj;
12818 fail:
12819 return NULL;
12820 }
12821
12822
12823 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12824 PyObject *resultobj = 0;
12825 wxFont *arg1 = (wxFont *) 0 ;
12826 int arg2 ;
12827 void *argp1 = 0 ;
12828 int res1 = 0 ;
12829 int val2 ;
12830 int ecode2 = 0 ;
12831 PyObject * obj0 = 0 ;
12832 PyObject * obj1 = 0 ;
12833 char * kwnames[] = {
12834 (char *) "self",(char *) "style", NULL
12835 };
12836
12837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12839 if (!SWIG_IsOK(res1)) {
12840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12841 }
12842 arg1 = reinterpret_cast< wxFont * >(argp1);
12843 ecode2 = SWIG_AsVal_int(obj1, &val2);
12844 if (!SWIG_IsOK(ecode2)) {
12845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12846 }
12847 arg2 = static_cast< int >(val2);
12848 {
12849 PyThreadState* __tstate = wxPyBeginAllowThreads();
12850 (arg1)->SetStyle(arg2);
12851 wxPyEndAllowThreads(__tstate);
12852 if (PyErr_Occurred()) SWIG_fail;
12853 }
12854 resultobj = SWIG_Py_Void();
12855 return resultobj;
12856 fail:
12857 return NULL;
12858 }
12859
12860
12861 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12862 PyObject *resultobj = 0;
12863 wxFont *arg1 = (wxFont *) 0 ;
12864 int arg2 ;
12865 void *argp1 = 0 ;
12866 int res1 = 0 ;
12867 int val2 ;
12868 int ecode2 = 0 ;
12869 PyObject * obj0 = 0 ;
12870 PyObject * obj1 = 0 ;
12871 char * kwnames[] = {
12872 (char *) "self",(char *) "weight", NULL
12873 };
12874
12875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12877 if (!SWIG_IsOK(res1)) {
12878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12879 }
12880 arg1 = reinterpret_cast< wxFont * >(argp1);
12881 ecode2 = SWIG_AsVal_int(obj1, &val2);
12882 if (!SWIG_IsOK(ecode2)) {
12883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12884 }
12885 arg2 = static_cast< int >(val2);
12886 {
12887 PyThreadState* __tstate = wxPyBeginAllowThreads();
12888 (arg1)->SetWeight(arg2);
12889 wxPyEndAllowThreads(__tstate);
12890 if (PyErr_Occurred()) SWIG_fail;
12891 }
12892 resultobj = SWIG_Py_Void();
12893 return resultobj;
12894 fail:
12895 return NULL;
12896 }
12897
12898
12899 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12900 PyObject *resultobj = 0;
12901 wxFont *arg1 = (wxFont *) 0 ;
12902 wxString *arg2 = 0 ;
12903 void *argp1 = 0 ;
12904 int res1 = 0 ;
12905 bool temp2 = false ;
12906 PyObject * obj0 = 0 ;
12907 PyObject * obj1 = 0 ;
12908 char * kwnames[] = {
12909 (char *) "self",(char *) "faceName", NULL
12910 };
12911
12912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12914 if (!SWIG_IsOK(res1)) {
12915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
12916 }
12917 arg1 = reinterpret_cast< wxFont * >(argp1);
12918 {
12919 arg2 = wxString_in_helper(obj1);
12920 if (arg2 == NULL) SWIG_fail;
12921 temp2 = true;
12922 }
12923 {
12924 PyThreadState* __tstate = wxPyBeginAllowThreads();
12925 (arg1)->SetFaceName((wxString const &)*arg2);
12926 wxPyEndAllowThreads(__tstate);
12927 if (PyErr_Occurred()) SWIG_fail;
12928 }
12929 resultobj = SWIG_Py_Void();
12930 {
12931 if (temp2)
12932 delete arg2;
12933 }
12934 return resultobj;
12935 fail:
12936 {
12937 if (temp2)
12938 delete arg2;
12939 }
12940 return NULL;
12941 }
12942
12943
12944 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12945 PyObject *resultobj = 0;
12946 wxFont *arg1 = (wxFont *) 0 ;
12947 bool arg2 ;
12948 void *argp1 = 0 ;
12949 int res1 = 0 ;
12950 bool val2 ;
12951 int ecode2 = 0 ;
12952 PyObject * obj0 = 0 ;
12953 PyObject * obj1 = 0 ;
12954 char * kwnames[] = {
12955 (char *) "self",(char *) "underlined", NULL
12956 };
12957
12958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12960 if (!SWIG_IsOK(res1)) {
12961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12962 }
12963 arg1 = reinterpret_cast< wxFont * >(argp1);
12964 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12965 if (!SWIG_IsOK(ecode2)) {
12966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12967 }
12968 arg2 = static_cast< bool >(val2);
12969 {
12970 PyThreadState* __tstate = wxPyBeginAllowThreads();
12971 (arg1)->SetUnderlined(arg2);
12972 wxPyEndAllowThreads(__tstate);
12973 if (PyErr_Occurred()) SWIG_fail;
12974 }
12975 resultobj = SWIG_Py_Void();
12976 return resultobj;
12977 fail:
12978 return NULL;
12979 }
12980
12981
12982 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12983 PyObject *resultobj = 0;
12984 wxFont *arg1 = (wxFont *) 0 ;
12985 wxFontEncoding arg2 ;
12986 void *argp1 = 0 ;
12987 int res1 = 0 ;
12988 int val2 ;
12989 int ecode2 = 0 ;
12990 PyObject * obj0 = 0 ;
12991 PyObject * obj1 = 0 ;
12992 char * kwnames[] = {
12993 (char *) "self",(char *) "encoding", NULL
12994 };
12995
12996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12998 if (!SWIG_IsOK(res1)) {
12999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
13000 }
13001 arg1 = reinterpret_cast< wxFont * >(argp1);
13002 ecode2 = SWIG_AsVal_int(obj1, &val2);
13003 if (!SWIG_IsOK(ecode2)) {
13004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13005 }
13006 arg2 = static_cast< wxFontEncoding >(val2);
13007 {
13008 PyThreadState* __tstate = wxPyBeginAllowThreads();
13009 (arg1)->SetEncoding(arg2);
13010 wxPyEndAllowThreads(__tstate);
13011 if (PyErr_Occurred()) SWIG_fail;
13012 }
13013 resultobj = SWIG_Py_Void();
13014 return resultobj;
13015 fail:
13016 return NULL;
13017 }
13018
13019
13020 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13021 PyObject *resultobj = 0;
13022 wxFont *arg1 = (wxFont *) 0 ;
13023 wxNativeFontInfo *arg2 = 0 ;
13024 void *argp1 = 0 ;
13025 int res1 = 0 ;
13026 void *argp2 = 0 ;
13027 int res2 = 0 ;
13028 PyObject * obj0 = 0 ;
13029 PyObject * obj1 = 0 ;
13030 char * kwnames[] = {
13031 (char *) "self",(char *) "info", NULL
13032 };
13033
13034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
13035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13036 if (!SWIG_IsOK(res1)) {
13037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
13038 }
13039 arg1 = reinterpret_cast< wxFont * >(argp1);
13040 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13041 if (!SWIG_IsOK(res2)) {
13042 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
13043 }
13044 if (!argp2) {
13045 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
13046 }
13047 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
13048 {
13049 PyThreadState* __tstate = wxPyBeginAllowThreads();
13050 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
13051 wxPyEndAllowThreads(__tstate);
13052 if (PyErr_Occurred()) SWIG_fail;
13053 }
13054 resultobj = SWIG_Py_Void();
13055 return resultobj;
13056 fail:
13057 return NULL;
13058 }
13059
13060
13061 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13062 PyObject *resultobj = 0;
13063 wxFont *arg1 = (wxFont *) 0 ;
13064 wxString *arg2 = 0 ;
13065 void *argp1 = 0 ;
13066 int res1 = 0 ;
13067 bool temp2 = false ;
13068 PyObject * obj0 = 0 ;
13069 PyObject * obj1 = 0 ;
13070 char * kwnames[] = {
13071 (char *) "self",(char *) "info", NULL
13072 };
13073
13074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
13075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13076 if (!SWIG_IsOK(res1)) {
13077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
13078 }
13079 arg1 = reinterpret_cast< wxFont * >(argp1);
13080 {
13081 arg2 = wxString_in_helper(obj1);
13082 if (arg2 == NULL) SWIG_fail;
13083 temp2 = true;
13084 }
13085 {
13086 PyThreadState* __tstate = wxPyBeginAllowThreads();
13087 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
13088 wxPyEndAllowThreads(__tstate);
13089 if (PyErr_Occurred()) SWIG_fail;
13090 }
13091 resultobj = SWIG_Py_Void();
13092 {
13093 if (temp2)
13094 delete arg2;
13095 }
13096 return resultobj;
13097 fail:
13098 {
13099 if (temp2)
13100 delete arg2;
13101 }
13102 return NULL;
13103 }
13104
13105
13106 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13107 PyObject *resultobj = 0;
13108 wxFont *arg1 = (wxFont *) 0 ;
13109 wxString *arg2 = 0 ;
13110 void *argp1 = 0 ;
13111 int res1 = 0 ;
13112 bool temp2 = false ;
13113 PyObject * obj0 = 0 ;
13114 PyObject * obj1 = 0 ;
13115 char * kwnames[] = {
13116 (char *) "self",(char *) "info", NULL
13117 };
13118
13119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
13120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13121 if (!SWIG_IsOK(res1)) {
13122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
13123 }
13124 arg1 = reinterpret_cast< wxFont * >(argp1);
13125 {
13126 arg2 = wxString_in_helper(obj1);
13127 if (arg2 == NULL) SWIG_fail;
13128 temp2 = true;
13129 }
13130 {
13131 PyThreadState* __tstate = wxPyBeginAllowThreads();
13132 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
13133 wxPyEndAllowThreads(__tstate);
13134 if (PyErr_Occurred()) SWIG_fail;
13135 }
13136 resultobj = SWIG_Py_Void();
13137 {
13138 if (temp2)
13139 delete arg2;
13140 }
13141 return resultobj;
13142 fail:
13143 {
13144 if (temp2)
13145 delete arg2;
13146 }
13147 return NULL;
13148 }
13149
13150
13151 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13152 PyObject *resultobj = 0;
13153 wxFont *arg1 = (wxFont *) 0 ;
13154 wxString result;
13155 void *argp1 = 0 ;
13156 int res1 = 0 ;
13157 PyObject *swig_obj[1] ;
13158
13159 if (!args) SWIG_fail;
13160 swig_obj[0] = args;
13161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13162 if (!SWIG_IsOK(res1)) {
13163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
13164 }
13165 arg1 = reinterpret_cast< wxFont * >(argp1);
13166 {
13167 PyThreadState* __tstate = wxPyBeginAllowThreads();
13168 result = ((wxFont const *)arg1)->GetFamilyString();
13169 wxPyEndAllowThreads(__tstate);
13170 if (PyErr_Occurred()) SWIG_fail;
13171 }
13172 {
13173 #if wxUSE_UNICODE
13174 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13175 #else
13176 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13177 #endif
13178 }
13179 return resultobj;
13180 fail:
13181 return NULL;
13182 }
13183
13184
13185 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13186 PyObject *resultobj = 0;
13187 wxFont *arg1 = (wxFont *) 0 ;
13188 wxString result;
13189 void *argp1 = 0 ;
13190 int res1 = 0 ;
13191 PyObject *swig_obj[1] ;
13192
13193 if (!args) SWIG_fail;
13194 swig_obj[0] = args;
13195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13196 if (!SWIG_IsOK(res1)) {
13197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
13198 }
13199 arg1 = reinterpret_cast< wxFont * >(argp1);
13200 {
13201 PyThreadState* __tstate = wxPyBeginAllowThreads();
13202 result = ((wxFont const *)arg1)->GetStyleString();
13203 wxPyEndAllowThreads(__tstate);
13204 if (PyErr_Occurred()) SWIG_fail;
13205 }
13206 {
13207 #if wxUSE_UNICODE
13208 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13209 #else
13210 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13211 #endif
13212 }
13213 return resultobj;
13214 fail:
13215 return NULL;
13216 }
13217
13218
13219 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13220 PyObject *resultobj = 0;
13221 wxFont *arg1 = (wxFont *) 0 ;
13222 wxString result;
13223 void *argp1 = 0 ;
13224 int res1 = 0 ;
13225 PyObject *swig_obj[1] ;
13226
13227 if (!args) SWIG_fail;
13228 swig_obj[0] = args;
13229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13230 if (!SWIG_IsOK(res1)) {
13231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
13232 }
13233 arg1 = reinterpret_cast< wxFont * >(argp1);
13234 {
13235 PyThreadState* __tstate = wxPyBeginAllowThreads();
13236 result = ((wxFont const *)arg1)->GetWeightString();
13237 wxPyEndAllowThreads(__tstate);
13238 if (PyErr_Occurred()) SWIG_fail;
13239 }
13240 {
13241 #if wxUSE_UNICODE
13242 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13243 #else
13244 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13245 #endif
13246 }
13247 return resultobj;
13248 fail:
13249 return NULL;
13250 }
13251
13252
13253 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13254 PyObject *resultobj = 0;
13255 wxFont *arg1 = (wxFont *) 0 ;
13256 bool arg2 = (bool) true ;
13257 void *argp1 = 0 ;
13258 int res1 = 0 ;
13259 bool val2 ;
13260 int ecode2 = 0 ;
13261 PyObject * obj0 = 0 ;
13262 PyObject * obj1 = 0 ;
13263 char * kwnames[] = {
13264 (char *) "self",(char *) "no", NULL
13265 };
13266
13267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
13268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13269 if (!SWIG_IsOK(res1)) {
13270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
13271 }
13272 arg1 = reinterpret_cast< wxFont * >(argp1);
13273 if (obj1) {
13274 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13275 if (!SWIG_IsOK(ecode2)) {
13276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
13277 }
13278 arg2 = static_cast< bool >(val2);
13279 }
13280 {
13281 PyThreadState* __tstate = wxPyBeginAllowThreads();
13282 (arg1)->SetNoAntiAliasing(arg2);
13283 wxPyEndAllowThreads(__tstate);
13284 if (PyErr_Occurred()) SWIG_fail;
13285 }
13286 resultobj = SWIG_Py_Void();
13287 return resultobj;
13288 fail:
13289 return NULL;
13290 }
13291
13292
13293 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13294 PyObject *resultobj = 0;
13295 wxFont *arg1 = (wxFont *) 0 ;
13296 bool result;
13297 void *argp1 = 0 ;
13298 int res1 = 0 ;
13299 PyObject *swig_obj[1] ;
13300
13301 if (!args) SWIG_fail;
13302 swig_obj[0] = args;
13303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13304 if (!SWIG_IsOK(res1)) {
13305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
13306 }
13307 arg1 = reinterpret_cast< wxFont * >(argp1);
13308 {
13309 PyThreadState* __tstate = wxPyBeginAllowThreads();
13310 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
13311 wxPyEndAllowThreads(__tstate);
13312 if (PyErr_Occurred()) SWIG_fail;
13313 }
13314 {
13315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13316 }
13317 return resultobj;
13318 fail:
13319 return NULL;
13320 }
13321
13322
13323 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13324 PyObject *resultobj = 0;
13325 wxFontEncoding result;
13326
13327 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
13328 {
13329 if (!wxPyCheckForApp()) SWIG_fail;
13330 PyThreadState* __tstate = wxPyBeginAllowThreads();
13331 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
13332 wxPyEndAllowThreads(__tstate);
13333 if (PyErr_Occurred()) SWIG_fail;
13334 }
13335 resultobj = SWIG_From_int(static_cast< int >(result));
13336 return resultobj;
13337 fail:
13338 return NULL;
13339 }
13340
13341
13342 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13343 PyObject *resultobj = 0;
13344 wxFontEncoding arg1 ;
13345 int val1 ;
13346 int ecode1 = 0 ;
13347 PyObject * obj0 = 0 ;
13348 char * kwnames[] = {
13349 (char *) "encoding", NULL
13350 };
13351
13352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
13353 ecode1 = SWIG_AsVal_int(obj0, &val1);
13354 if (!SWIG_IsOK(ecode1)) {
13355 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13356 }
13357 arg1 = static_cast< wxFontEncoding >(val1);
13358 {
13359 if (!wxPyCheckForApp()) SWIG_fail;
13360 PyThreadState* __tstate = wxPyBeginAllowThreads();
13361 wxFont::SetDefaultEncoding(arg1);
13362 wxPyEndAllowThreads(__tstate);
13363 if (PyErr_Occurred()) SWIG_fail;
13364 }
13365 resultobj = SWIG_Py_Void();
13366 return resultobj;
13367 fail:
13368 return NULL;
13369 }
13370
13371
13372 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13373 PyObject *obj;
13374 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13375 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
13376 return SWIG_Py_Void();
13377 }
13378
13379 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13380 return SWIG_Python_InitShadowInstance(args);
13381 }
13382
13383 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13384 PyObject *resultobj = 0;
13385 wxPyFontEnumerator *result = 0 ;
13386
13387 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
13388 {
13389 if (!wxPyCheckForApp()) SWIG_fail;
13390 PyThreadState* __tstate = wxPyBeginAllowThreads();
13391 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
13392 wxPyEndAllowThreads(__tstate);
13393 if (PyErr_Occurred()) SWIG_fail;
13394 }
13395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
13396 return resultobj;
13397 fail:
13398 return NULL;
13399 }
13400
13401
13402 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13403 PyObject *resultobj = 0;
13404 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13405 void *argp1 = 0 ;
13406 int res1 = 0 ;
13407 PyObject *swig_obj[1] ;
13408
13409 if (!args) SWIG_fail;
13410 swig_obj[0] = args;
13411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
13412 if (!SWIG_IsOK(res1)) {
13413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13414 }
13415 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13416 {
13417 PyThreadState* __tstate = wxPyBeginAllowThreads();
13418 delete arg1;
13419
13420 wxPyEndAllowThreads(__tstate);
13421 if (PyErr_Occurred()) SWIG_fail;
13422 }
13423 resultobj = SWIG_Py_Void();
13424 return resultobj;
13425 fail:
13426 return NULL;
13427 }
13428
13429
13430 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13431 PyObject *resultobj = 0;
13432 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13433 PyObject *arg2 = (PyObject *) 0 ;
13434 PyObject *arg3 = (PyObject *) 0 ;
13435 bool arg4 ;
13436 void *argp1 = 0 ;
13437 int res1 = 0 ;
13438 bool val4 ;
13439 int ecode4 = 0 ;
13440 PyObject * obj0 = 0 ;
13441 PyObject * obj1 = 0 ;
13442 PyObject * obj2 = 0 ;
13443 PyObject * obj3 = 0 ;
13444 char * kwnames[] = {
13445 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
13446 };
13447
13448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13450 if (!SWIG_IsOK(res1)) {
13451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13452 }
13453 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13454 arg2 = obj1;
13455 arg3 = obj2;
13456 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13457 if (!SWIG_IsOK(ecode4)) {
13458 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
13459 }
13460 arg4 = static_cast< bool >(val4);
13461 {
13462 PyThreadState* __tstate = wxPyBeginAllowThreads();
13463 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
13464 wxPyEndAllowThreads(__tstate);
13465 if (PyErr_Occurred()) SWIG_fail;
13466 }
13467 resultobj = SWIG_Py_Void();
13468 return resultobj;
13469 fail:
13470 return NULL;
13471 }
13472
13473
13474 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13475 PyObject *resultobj = 0;
13476 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13477 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
13478 bool arg3 = (bool) false ;
13479 bool result;
13480 void *argp1 = 0 ;
13481 int res1 = 0 ;
13482 int val2 ;
13483 int ecode2 = 0 ;
13484 bool val3 ;
13485 int ecode3 = 0 ;
13486 PyObject * obj0 = 0 ;
13487 PyObject * obj1 = 0 ;
13488 PyObject * obj2 = 0 ;
13489 char * kwnames[] = {
13490 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
13491 };
13492
13493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13495 if (!SWIG_IsOK(res1)) {
13496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13497 }
13498 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13499 if (obj1) {
13500 ecode2 = SWIG_AsVal_int(obj1, &val2);
13501 if (!SWIG_IsOK(ecode2)) {
13502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13503 }
13504 arg2 = static_cast< wxFontEncoding >(val2);
13505 }
13506 if (obj2) {
13507 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13508 if (!SWIG_IsOK(ecode3)) {
13509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
13510 }
13511 arg3 = static_cast< bool >(val3);
13512 }
13513 {
13514 PyThreadState* __tstate = wxPyBeginAllowThreads();
13515 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
13516 wxPyEndAllowThreads(__tstate);
13517 if (PyErr_Occurred()) SWIG_fail;
13518 }
13519 {
13520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13521 }
13522 return resultobj;
13523 fail:
13524 return NULL;
13525 }
13526
13527
13528 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13529 PyObject *resultobj = 0;
13530 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13531 wxString const &arg2_defvalue = wxPyEmptyString ;
13532 wxString *arg2 = (wxString *) &arg2_defvalue ;
13533 bool result;
13534 void *argp1 = 0 ;
13535 int res1 = 0 ;
13536 bool temp2 = false ;
13537 PyObject * obj0 = 0 ;
13538 PyObject * obj1 = 0 ;
13539 char * kwnames[] = {
13540 (char *) "self",(char *) "facename", NULL
13541 };
13542
13543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
13544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13545 if (!SWIG_IsOK(res1)) {
13546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13547 }
13548 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13549 if (obj1) {
13550 {
13551 arg2 = wxString_in_helper(obj1);
13552 if (arg2 == NULL) SWIG_fail;
13553 temp2 = true;
13554 }
13555 }
13556 {
13557 PyThreadState* __tstate = wxPyBeginAllowThreads();
13558 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
13559 wxPyEndAllowThreads(__tstate);
13560 if (PyErr_Occurred()) SWIG_fail;
13561 }
13562 {
13563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13564 }
13565 {
13566 if (temp2)
13567 delete arg2;
13568 }
13569 return resultobj;
13570 fail:
13571 {
13572 if (temp2)
13573 delete arg2;
13574 }
13575 return NULL;
13576 }
13577
13578
13579 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13580 PyObject *resultobj = 0;
13581 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13582 PyObject *result = 0 ;
13583 void *argp1 = 0 ;
13584 int res1 = 0 ;
13585 PyObject *swig_obj[1] ;
13586
13587 if (!args) SWIG_fail;
13588 swig_obj[0] = args;
13589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13590 if (!SWIG_IsOK(res1)) {
13591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13592 }
13593 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13594 {
13595 PyThreadState* __tstate = wxPyBeginAllowThreads();
13596 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
13597 wxPyEndAllowThreads(__tstate);
13598 if (PyErr_Occurred()) SWIG_fail;
13599 }
13600 resultobj = result;
13601 return resultobj;
13602 fail:
13603 return NULL;
13604 }
13605
13606
13607 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13608 PyObject *resultobj = 0;
13609 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13610 PyObject *result = 0 ;
13611 void *argp1 = 0 ;
13612 int res1 = 0 ;
13613 PyObject *swig_obj[1] ;
13614
13615 if (!args) SWIG_fail;
13616 swig_obj[0] = args;
13617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13618 if (!SWIG_IsOK(res1)) {
13619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13620 }
13621 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13622 {
13623 PyThreadState* __tstate = wxPyBeginAllowThreads();
13624 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
13625 wxPyEndAllowThreads(__tstate);
13626 if (PyErr_Occurred()) SWIG_fail;
13627 }
13628 resultobj = result;
13629 return resultobj;
13630 fail:
13631 return NULL;
13632 }
13633
13634
13635 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13636 PyObject *obj;
13637 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13638 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
13639 return SWIG_Py_Void();
13640 }
13641
13642 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13643 return SWIG_Python_InitShadowInstance(args);
13644 }
13645
13646 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13647 PyObject *resultobj = 0;
13648 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13649 int arg2 ;
13650 void *argp1 = 0 ;
13651 int res1 = 0 ;
13652 int val2 ;
13653 int ecode2 = 0 ;
13654 PyObject *swig_obj[2] ;
13655
13656 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
13657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13658 if (!SWIG_IsOK(res1)) {
13659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13660 }
13661 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13662 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13663 if (!SWIG_IsOK(ecode2)) {
13664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
13665 }
13666 arg2 = static_cast< int >(val2);
13667 if (arg1) (arg1)->Language = arg2;
13668
13669 resultobj = SWIG_Py_Void();
13670 return resultobj;
13671 fail:
13672 return NULL;
13673 }
13674
13675
13676 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13677 PyObject *resultobj = 0;
13678 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13679 int result;
13680 void *argp1 = 0 ;
13681 int res1 = 0 ;
13682 PyObject *swig_obj[1] ;
13683
13684 if (!args) SWIG_fail;
13685 swig_obj[0] = args;
13686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13687 if (!SWIG_IsOK(res1)) {
13688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13689 }
13690 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13691 result = (int) ((arg1)->Language);
13692 resultobj = SWIG_From_int(static_cast< int >(result));
13693 return resultobj;
13694 fail:
13695 return NULL;
13696 }
13697
13698
13699 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13700 PyObject *resultobj = 0;
13701 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13702 wxString *arg2 = (wxString *) 0 ;
13703 void *argp1 = 0 ;
13704 int res1 = 0 ;
13705 bool temp2 = false ;
13706 PyObject *swig_obj[2] ;
13707
13708 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
13709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13710 if (!SWIG_IsOK(res1)) {
13711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13712 }
13713 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13714 {
13715 arg2 = wxString_in_helper(swig_obj[1]);
13716 if (arg2 == NULL) SWIG_fail;
13717 temp2 = true;
13718 }
13719 if (arg1) (arg1)->CanonicalName = *arg2;
13720
13721 resultobj = SWIG_Py_Void();
13722 {
13723 if (temp2)
13724 delete arg2;
13725 }
13726 return resultobj;
13727 fail:
13728 {
13729 if (temp2)
13730 delete arg2;
13731 }
13732 return NULL;
13733 }
13734
13735
13736 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13737 PyObject *resultobj = 0;
13738 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13739 wxString *result = 0 ;
13740 void *argp1 = 0 ;
13741 int res1 = 0 ;
13742 PyObject *swig_obj[1] ;
13743
13744 if (!args) SWIG_fail;
13745 swig_obj[0] = args;
13746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13747 if (!SWIG_IsOK(res1)) {
13748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13749 }
13750 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13751 result = (wxString *)& ((arg1)->CanonicalName);
13752 {
13753 #if wxUSE_UNICODE
13754 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13755 #else
13756 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13757 #endif
13758 }
13759 return resultobj;
13760 fail:
13761 return NULL;
13762 }
13763
13764
13765 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13766 PyObject *resultobj = 0;
13767 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13768 wxString *arg2 = (wxString *) 0 ;
13769 void *argp1 = 0 ;
13770 int res1 = 0 ;
13771 bool temp2 = false ;
13772 PyObject *swig_obj[2] ;
13773
13774 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
13775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13776 if (!SWIG_IsOK(res1)) {
13777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13778 }
13779 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13780 {
13781 arg2 = wxString_in_helper(swig_obj[1]);
13782 if (arg2 == NULL) SWIG_fail;
13783 temp2 = true;
13784 }
13785 if (arg1) (arg1)->Description = *arg2;
13786
13787 resultobj = SWIG_Py_Void();
13788 {
13789 if (temp2)
13790 delete arg2;
13791 }
13792 return resultobj;
13793 fail:
13794 {
13795 if (temp2)
13796 delete arg2;
13797 }
13798 return NULL;
13799 }
13800
13801
13802 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13803 PyObject *resultobj = 0;
13804 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13805 wxString *result = 0 ;
13806 void *argp1 = 0 ;
13807 int res1 = 0 ;
13808 PyObject *swig_obj[1] ;
13809
13810 if (!args) SWIG_fail;
13811 swig_obj[0] = args;
13812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13813 if (!SWIG_IsOK(res1)) {
13814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13815 }
13816 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13817 result = (wxString *)& ((arg1)->Description);
13818 {
13819 #if wxUSE_UNICODE
13820 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13821 #else
13822 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13823 #endif
13824 }
13825 return resultobj;
13826 fail:
13827 return NULL;
13828 }
13829
13830
13831 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13832 PyObject *obj;
13833 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13834 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
13835 return SWIG_Py_Void();
13836 }
13837
13838 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13839 PyObject *resultobj = 0;
13840 int arg1 = (int) -1 ;
13841 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13842 wxLocale *result = 0 ;
13843 int val1 ;
13844 int ecode1 = 0 ;
13845 int val2 ;
13846 int ecode2 = 0 ;
13847 PyObject * obj0 = 0 ;
13848 PyObject * obj1 = 0 ;
13849 char * kwnames[] = {
13850 (char *) "language",(char *) "flags", NULL
13851 };
13852
13853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
13854 if (obj0) {
13855 ecode1 = SWIG_AsVal_int(obj0, &val1);
13856 if (!SWIG_IsOK(ecode1)) {
13857 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13858 }
13859 arg1 = static_cast< int >(val1);
13860 }
13861 if (obj1) {
13862 ecode2 = SWIG_AsVal_int(obj1, &val2);
13863 if (!SWIG_IsOK(ecode2)) {
13864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13865 }
13866 arg2 = static_cast< int >(val2);
13867 }
13868 {
13869 PyThreadState* __tstate = wxPyBeginAllowThreads();
13870 result = (wxLocale *)new_wxLocale(arg1,arg2);
13871 wxPyEndAllowThreads(__tstate);
13872 if (PyErr_Occurred()) SWIG_fail;
13873 }
13874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
13875 return resultobj;
13876 fail:
13877 return NULL;
13878 }
13879
13880
13881 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13882 PyObject *resultobj = 0;
13883 wxLocale *arg1 = (wxLocale *) 0 ;
13884 void *argp1 = 0 ;
13885 int res1 = 0 ;
13886 PyObject *swig_obj[1] ;
13887
13888 if (!args) SWIG_fail;
13889 swig_obj[0] = args;
13890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
13891 if (!SWIG_IsOK(res1)) {
13892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13893 }
13894 arg1 = reinterpret_cast< wxLocale * >(argp1);
13895 {
13896 PyThreadState* __tstate = wxPyBeginAllowThreads();
13897 delete arg1;
13898
13899 wxPyEndAllowThreads(__tstate);
13900 if (PyErr_Occurred()) SWIG_fail;
13901 }
13902 resultobj = SWIG_Py_Void();
13903 return resultobj;
13904 fail:
13905 return NULL;
13906 }
13907
13908
13909 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13910 PyObject *resultobj = 0;
13911 wxLocale *arg1 = (wxLocale *) 0 ;
13912 wxString *arg2 = 0 ;
13913 wxString const &arg3_defvalue = wxPyEmptyString ;
13914 wxString *arg3 = (wxString *) &arg3_defvalue ;
13915 wxString const &arg4_defvalue = wxPyEmptyString ;
13916 wxString *arg4 = (wxString *) &arg4_defvalue ;
13917 bool arg5 = (bool) true ;
13918 bool arg6 = (bool) false ;
13919 bool result;
13920 void *argp1 = 0 ;
13921 int res1 = 0 ;
13922 bool temp2 = false ;
13923 bool temp3 = false ;
13924 bool temp4 = false ;
13925 bool val5 ;
13926 int ecode5 = 0 ;
13927 bool val6 ;
13928 int ecode6 = 0 ;
13929 PyObject * obj0 = 0 ;
13930 PyObject * obj1 = 0 ;
13931 PyObject * obj2 = 0 ;
13932 PyObject * obj3 = 0 ;
13933 PyObject * obj4 = 0 ;
13934 PyObject * obj5 = 0 ;
13935 char * kwnames[] = {
13936 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13937 };
13938
13939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13941 if (!SWIG_IsOK(res1)) {
13942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13943 }
13944 arg1 = reinterpret_cast< wxLocale * >(argp1);
13945 {
13946 arg2 = wxString_in_helper(obj1);
13947 if (arg2 == NULL) SWIG_fail;
13948 temp2 = true;
13949 }
13950 if (obj2) {
13951 {
13952 arg3 = wxString_in_helper(obj2);
13953 if (arg3 == NULL) SWIG_fail;
13954 temp3 = true;
13955 }
13956 }
13957 if (obj3) {
13958 {
13959 arg4 = wxString_in_helper(obj3);
13960 if (arg4 == NULL) SWIG_fail;
13961 temp4 = true;
13962 }
13963 }
13964 if (obj4) {
13965 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13966 if (!SWIG_IsOK(ecode5)) {
13967 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
13968 }
13969 arg5 = static_cast< bool >(val5);
13970 }
13971 if (obj5) {
13972 ecode6 = SWIG_AsVal_bool(obj5, &val6);
13973 if (!SWIG_IsOK(ecode6)) {
13974 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
13975 }
13976 arg6 = static_cast< bool >(val6);
13977 }
13978 {
13979 PyThreadState* __tstate = wxPyBeginAllowThreads();
13980 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
13981 wxPyEndAllowThreads(__tstate);
13982 if (PyErr_Occurred()) SWIG_fail;
13983 }
13984 {
13985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13986 }
13987 {
13988 if (temp2)
13989 delete arg2;
13990 }
13991 {
13992 if (temp3)
13993 delete arg3;
13994 }
13995 {
13996 if (temp4)
13997 delete arg4;
13998 }
13999 return resultobj;
14000 fail:
14001 {
14002 if (temp2)
14003 delete arg2;
14004 }
14005 {
14006 if (temp3)
14007 delete arg3;
14008 }
14009 {
14010 if (temp4)
14011 delete arg4;
14012 }
14013 return NULL;
14014 }
14015
14016
14017 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14018 PyObject *resultobj = 0;
14019 wxLocale *arg1 = (wxLocale *) 0 ;
14020 int arg2 = (int) wxLANGUAGE_DEFAULT ;
14021 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
14022 bool result;
14023 void *argp1 = 0 ;
14024 int res1 = 0 ;
14025 int val2 ;
14026 int ecode2 = 0 ;
14027 int val3 ;
14028 int ecode3 = 0 ;
14029 PyObject * obj0 = 0 ;
14030 PyObject * obj1 = 0 ;
14031 PyObject * obj2 = 0 ;
14032 char * kwnames[] = {
14033 (char *) "self",(char *) "language",(char *) "flags", NULL
14034 };
14035
14036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14038 if (!SWIG_IsOK(res1)) {
14039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
14040 }
14041 arg1 = reinterpret_cast< wxLocale * >(argp1);
14042 if (obj1) {
14043 ecode2 = SWIG_AsVal_int(obj1, &val2);
14044 if (!SWIG_IsOK(ecode2)) {
14045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
14046 }
14047 arg2 = static_cast< int >(val2);
14048 }
14049 if (obj2) {
14050 ecode3 = SWIG_AsVal_int(obj2, &val3);
14051 if (!SWIG_IsOK(ecode3)) {
14052 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
14053 }
14054 arg3 = static_cast< int >(val3);
14055 }
14056 {
14057 PyThreadState* __tstate = wxPyBeginAllowThreads();
14058 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
14059 wxPyEndAllowThreads(__tstate);
14060 if (PyErr_Occurred()) SWIG_fail;
14061 }
14062 {
14063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14064 }
14065 return resultobj;
14066 fail:
14067 return NULL;
14068 }
14069
14070
14071 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14072 PyObject *resultobj = 0;
14073 int result;
14074
14075 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
14076 {
14077 PyThreadState* __tstate = wxPyBeginAllowThreads();
14078 result = (int)wxLocale::GetSystemLanguage();
14079 wxPyEndAllowThreads(__tstate);
14080 if (PyErr_Occurred()) SWIG_fail;
14081 }
14082 resultobj = SWIG_From_int(static_cast< int >(result));
14083 return resultobj;
14084 fail:
14085 return NULL;
14086 }
14087
14088
14089 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14090 PyObject *resultobj = 0;
14091 wxFontEncoding result;
14092
14093 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
14094 {
14095 PyThreadState* __tstate = wxPyBeginAllowThreads();
14096 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
14097 wxPyEndAllowThreads(__tstate);
14098 if (PyErr_Occurred()) SWIG_fail;
14099 }
14100 resultobj = SWIG_From_int(static_cast< int >(result));
14101 return resultobj;
14102 fail:
14103 return NULL;
14104 }
14105
14106
14107 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14108 PyObject *resultobj = 0;
14109 wxString result;
14110
14111 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
14112 {
14113 PyThreadState* __tstate = wxPyBeginAllowThreads();
14114 result = wxLocale::GetSystemEncodingName();
14115 wxPyEndAllowThreads(__tstate);
14116 if (PyErr_Occurred()) SWIG_fail;
14117 }
14118 {
14119 #if wxUSE_UNICODE
14120 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14121 #else
14122 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14123 #endif
14124 }
14125 return resultobj;
14126 fail:
14127 return NULL;
14128 }
14129
14130
14131 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14132 PyObject *resultobj = 0;
14133 wxLocale *arg1 = (wxLocale *) 0 ;
14134 bool result;
14135 void *argp1 = 0 ;
14136 int res1 = 0 ;
14137 PyObject *swig_obj[1] ;
14138
14139 if (!args) SWIG_fail;
14140 swig_obj[0] = args;
14141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14142 if (!SWIG_IsOK(res1)) {
14143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
14144 }
14145 arg1 = reinterpret_cast< wxLocale * >(argp1);
14146 {
14147 PyThreadState* __tstate = wxPyBeginAllowThreads();
14148 result = (bool)((wxLocale const *)arg1)->IsOk();
14149 wxPyEndAllowThreads(__tstate);
14150 if (PyErr_Occurred()) SWIG_fail;
14151 }
14152 {
14153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14154 }
14155 return resultobj;
14156 fail:
14157 return NULL;
14158 }
14159
14160
14161 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14162 PyObject *resultobj = 0;
14163 wxLocale *arg1 = (wxLocale *) 0 ;
14164 wxString result;
14165 void *argp1 = 0 ;
14166 int res1 = 0 ;
14167 PyObject *swig_obj[1] ;
14168
14169 if (!args) SWIG_fail;
14170 swig_obj[0] = args;
14171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14172 if (!SWIG_IsOK(res1)) {
14173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
14174 }
14175 arg1 = reinterpret_cast< wxLocale * >(argp1);
14176 {
14177 PyThreadState* __tstate = wxPyBeginAllowThreads();
14178 result = ((wxLocale const *)arg1)->GetLocale();
14179 wxPyEndAllowThreads(__tstate);
14180 if (PyErr_Occurred()) SWIG_fail;
14181 }
14182 {
14183 #if wxUSE_UNICODE
14184 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14185 #else
14186 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14187 #endif
14188 }
14189 return resultobj;
14190 fail:
14191 return NULL;
14192 }
14193
14194
14195 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14196 PyObject *resultobj = 0;
14197 wxLocale *arg1 = (wxLocale *) 0 ;
14198 int result;
14199 void *argp1 = 0 ;
14200 int res1 = 0 ;
14201 PyObject *swig_obj[1] ;
14202
14203 if (!args) SWIG_fail;
14204 swig_obj[0] = args;
14205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14206 if (!SWIG_IsOK(res1)) {
14207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
14208 }
14209 arg1 = reinterpret_cast< wxLocale * >(argp1);
14210 {
14211 PyThreadState* __tstate = wxPyBeginAllowThreads();
14212 result = (int)((wxLocale const *)arg1)->GetLanguage();
14213 wxPyEndAllowThreads(__tstate);
14214 if (PyErr_Occurred()) SWIG_fail;
14215 }
14216 resultobj = SWIG_From_int(static_cast< int >(result));
14217 return resultobj;
14218 fail:
14219 return NULL;
14220 }
14221
14222
14223 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14224 PyObject *resultobj = 0;
14225 wxLocale *arg1 = (wxLocale *) 0 ;
14226 wxString result;
14227 void *argp1 = 0 ;
14228 int res1 = 0 ;
14229 PyObject *swig_obj[1] ;
14230
14231 if (!args) SWIG_fail;
14232 swig_obj[0] = args;
14233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14234 if (!SWIG_IsOK(res1)) {
14235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14236 }
14237 arg1 = reinterpret_cast< wxLocale * >(argp1);
14238 {
14239 PyThreadState* __tstate = wxPyBeginAllowThreads();
14240 result = ((wxLocale const *)arg1)->GetSysName();
14241 wxPyEndAllowThreads(__tstate);
14242 if (PyErr_Occurred()) SWIG_fail;
14243 }
14244 {
14245 #if wxUSE_UNICODE
14246 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14247 #else
14248 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14249 #endif
14250 }
14251 return resultobj;
14252 fail:
14253 return NULL;
14254 }
14255
14256
14257 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14258 PyObject *resultobj = 0;
14259 wxLocale *arg1 = (wxLocale *) 0 ;
14260 wxString result;
14261 void *argp1 = 0 ;
14262 int res1 = 0 ;
14263 PyObject *swig_obj[1] ;
14264
14265 if (!args) SWIG_fail;
14266 swig_obj[0] = args;
14267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14268 if (!SWIG_IsOK(res1)) {
14269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14270 }
14271 arg1 = reinterpret_cast< wxLocale * >(argp1);
14272 {
14273 PyThreadState* __tstate = wxPyBeginAllowThreads();
14274 result = ((wxLocale const *)arg1)->GetCanonicalName();
14275 wxPyEndAllowThreads(__tstate);
14276 if (PyErr_Occurred()) SWIG_fail;
14277 }
14278 {
14279 #if wxUSE_UNICODE
14280 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14281 #else
14282 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14283 #endif
14284 }
14285 return resultobj;
14286 fail:
14287 return NULL;
14288 }
14289
14290
14291 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14292 PyObject *resultobj = 0;
14293 wxString *arg1 = 0 ;
14294 bool temp1 = false ;
14295 PyObject * obj0 = 0 ;
14296 char * kwnames[] = {
14297 (char *) "prefix", NULL
14298 };
14299
14300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
14301 {
14302 arg1 = wxString_in_helper(obj0);
14303 if (arg1 == NULL) SWIG_fail;
14304 temp1 = true;
14305 }
14306 {
14307 PyThreadState* __tstate = wxPyBeginAllowThreads();
14308 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
14309 wxPyEndAllowThreads(__tstate);
14310 if (PyErr_Occurred()) SWIG_fail;
14311 }
14312 resultobj = SWIG_Py_Void();
14313 {
14314 if (temp1)
14315 delete arg1;
14316 }
14317 return resultobj;
14318 fail:
14319 {
14320 if (temp1)
14321 delete arg1;
14322 }
14323 return NULL;
14324 }
14325
14326
14327 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14328 PyObject *resultobj = 0;
14329 wxLocale *arg1 = (wxLocale *) 0 ;
14330 wxString *arg2 = 0 ;
14331 bool result;
14332 void *argp1 = 0 ;
14333 int res1 = 0 ;
14334 bool temp2 = false ;
14335 PyObject * obj0 = 0 ;
14336 PyObject * obj1 = 0 ;
14337 char * kwnames[] = {
14338 (char *) "self",(char *) "szDomain", NULL
14339 };
14340
14341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
14342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14343 if (!SWIG_IsOK(res1)) {
14344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
14345 }
14346 arg1 = reinterpret_cast< wxLocale * >(argp1);
14347 {
14348 arg2 = wxString_in_helper(obj1);
14349 if (arg2 == NULL) SWIG_fail;
14350 temp2 = true;
14351 }
14352 {
14353 PyThreadState* __tstate = wxPyBeginAllowThreads();
14354 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
14355 wxPyEndAllowThreads(__tstate);
14356 if (PyErr_Occurred()) SWIG_fail;
14357 }
14358 {
14359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14360 }
14361 {
14362 if (temp2)
14363 delete arg2;
14364 }
14365 return resultobj;
14366 fail:
14367 {
14368 if (temp2)
14369 delete arg2;
14370 }
14371 return NULL;
14372 }
14373
14374
14375 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14376 PyObject *resultobj = 0;
14377 wxLocale *arg1 = (wxLocale *) 0 ;
14378 wxString *arg2 = 0 ;
14379 bool result;
14380 void *argp1 = 0 ;
14381 int res1 = 0 ;
14382 bool temp2 = false ;
14383 PyObject * obj0 = 0 ;
14384 PyObject * obj1 = 0 ;
14385 char * kwnames[] = {
14386 (char *) "self",(char *) "szDomain", NULL
14387 };
14388
14389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
14390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14391 if (!SWIG_IsOK(res1)) {
14392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
14393 }
14394 arg1 = reinterpret_cast< wxLocale * >(argp1);
14395 {
14396 arg2 = wxString_in_helper(obj1);
14397 if (arg2 == NULL) SWIG_fail;
14398 temp2 = true;
14399 }
14400 {
14401 PyThreadState* __tstate = wxPyBeginAllowThreads();
14402 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
14403 wxPyEndAllowThreads(__tstate);
14404 if (PyErr_Occurred()) SWIG_fail;
14405 }
14406 {
14407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14408 }
14409 {
14410 if (temp2)
14411 delete arg2;
14412 }
14413 return resultobj;
14414 fail:
14415 {
14416 if (temp2)
14417 delete arg2;
14418 }
14419 return NULL;
14420 }
14421
14422
14423 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14424 PyObject *resultobj = 0;
14425 int arg1 ;
14426 wxLanguageInfo *result = 0 ;
14427 int val1 ;
14428 int ecode1 = 0 ;
14429 PyObject * obj0 = 0 ;
14430 char * kwnames[] = {
14431 (char *) "lang", NULL
14432 };
14433
14434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
14435 ecode1 = SWIG_AsVal_int(obj0, &val1);
14436 if (!SWIG_IsOK(ecode1)) {
14437 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
14438 }
14439 arg1 = static_cast< int >(val1);
14440 {
14441 PyThreadState* __tstate = wxPyBeginAllowThreads();
14442 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
14443 wxPyEndAllowThreads(__tstate);
14444 if (PyErr_Occurred()) SWIG_fail;
14445 }
14446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
14447 return resultobj;
14448 fail:
14449 return NULL;
14450 }
14451
14452
14453 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14454 PyObject *resultobj = 0;
14455 int arg1 ;
14456 wxString result;
14457 int val1 ;
14458 int ecode1 = 0 ;
14459 PyObject * obj0 = 0 ;
14460 char * kwnames[] = {
14461 (char *) "lang", NULL
14462 };
14463
14464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
14465 ecode1 = SWIG_AsVal_int(obj0, &val1);
14466 if (!SWIG_IsOK(ecode1)) {
14467 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
14468 }
14469 arg1 = static_cast< int >(val1);
14470 {
14471 PyThreadState* __tstate = wxPyBeginAllowThreads();
14472 result = wxLocale::GetLanguageName(arg1);
14473 wxPyEndAllowThreads(__tstate);
14474 if (PyErr_Occurred()) SWIG_fail;
14475 }
14476 {
14477 #if wxUSE_UNICODE
14478 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14479 #else
14480 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14481 #endif
14482 }
14483 return resultobj;
14484 fail:
14485 return NULL;
14486 }
14487
14488
14489 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14490 PyObject *resultobj = 0;
14491 wxString *arg1 = 0 ;
14492 wxLanguageInfo *result = 0 ;
14493 bool temp1 = false ;
14494 PyObject * obj0 = 0 ;
14495 char * kwnames[] = {
14496 (char *) "locale", NULL
14497 };
14498
14499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
14500 {
14501 arg1 = wxString_in_helper(obj0);
14502 if (arg1 == NULL) SWIG_fail;
14503 temp1 = true;
14504 }
14505 {
14506 PyThreadState* __tstate = wxPyBeginAllowThreads();
14507 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
14508 wxPyEndAllowThreads(__tstate);
14509 if (PyErr_Occurred()) SWIG_fail;
14510 }
14511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
14512 {
14513 if (temp1)
14514 delete arg1;
14515 }
14516 return resultobj;
14517 fail:
14518 {
14519 if (temp1)
14520 delete arg1;
14521 }
14522 return NULL;
14523 }
14524
14525
14526 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14527 PyObject *resultobj = 0;
14528 wxLanguageInfo *arg1 = 0 ;
14529 void *argp1 = 0 ;
14530 int res1 = 0 ;
14531 PyObject * obj0 = 0 ;
14532 char * kwnames[] = {
14533 (char *) "info", NULL
14534 };
14535
14536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
14537 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
14538 if (!SWIG_IsOK(res1)) {
14539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
14540 }
14541 if (!argp1) {
14542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
14543 }
14544 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
14545 {
14546 PyThreadState* __tstate = wxPyBeginAllowThreads();
14547 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
14548 wxPyEndAllowThreads(__tstate);
14549 if (PyErr_Occurred()) SWIG_fail;
14550 }
14551 resultobj = SWIG_Py_Void();
14552 return resultobj;
14553 fail:
14554 return NULL;
14555 }
14556
14557
14558 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14559 PyObject *resultobj = 0;
14560 wxLocale *arg1 = (wxLocale *) 0 ;
14561 wxString *arg2 = 0 ;
14562 wxString const &arg3_defvalue = wxPyEmptyString ;
14563 wxString *arg3 = (wxString *) &arg3_defvalue ;
14564 wxString result;
14565 void *argp1 = 0 ;
14566 int res1 = 0 ;
14567 bool temp2 = false ;
14568 bool temp3 = false ;
14569 PyObject * obj0 = 0 ;
14570 PyObject * obj1 = 0 ;
14571 PyObject * obj2 = 0 ;
14572 char * kwnames[] = {
14573 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
14574 };
14575
14576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14578 if (!SWIG_IsOK(res1)) {
14579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
14580 }
14581 arg1 = reinterpret_cast< wxLocale * >(argp1);
14582 {
14583 arg2 = wxString_in_helper(obj1);
14584 if (arg2 == NULL) SWIG_fail;
14585 temp2 = true;
14586 }
14587 if (obj2) {
14588 {
14589 arg3 = wxString_in_helper(obj2);
14590 if (arg3 == NULL) SWIG_fail;
14591 temp3 = true;
14592 }
14593 }
14594 {
14595 PyThreadState* __tstate = wxPyBeginAllowThreads();
14596 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
14597 wxPyEndAllowThreads(__tstate);
14598 if (PyErr_Occurred()) SWIG_fail;
14599 }
14600 {
14601 #if wxUSE_UNICODE
14602 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14603 #else
14604 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14605 #endif
14606 }
14607 {
14608 if (temp2)
14609 delete arg2;
14610 }
14611 {
14612 if (temp3)
14613 delete arg3;
14614 }
14615 return resultobj;
14616 fail:
14617 {
14618 if (temp2)
14619 delete arg2;
14620 }
14621 {
14622 if (temp3)
14623 delete arg3;
14624 }
14625 return NULL;
14626 }
14627
14628
14629 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14630 PyObject *resultobj = 0;
14631 wxLocale *arg1 = (wxLocale *) 0 ;
14632 wxString *result = 0 ;
14633 void *argp1 = 0 ;
14634 int res1 = 0 ;
14635 PyObject *swig_obj[1] ;
14636
14637 if (!args) SWIG_fail;
14638 swig_obj[0] = args;
14639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14640 if (!SWIG_IsOK(res1)) {
14641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14642 }
14643 arg1 = reinterpret_cast< wxLocale * >(argp1);
14644 {
14645 PyThreadState* __tstate = wxPyBeginAllowThreads();
14646 {
14647 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
14648 result = (wxString *) &_result_ref;
14649 }
14650 wxPyEndAllowThreads(__tstate);
14651 if (PyErr_Occurred()) SWIG_fail;
14652 }
14653 {
14654 #if wxUSE_UNICODE
14655 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14656 #else
14657 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14658 #endif
14659 }
14660 return resultobj;
14661 fail:
14662 return NULL;
14663 }
14664
14665
14666 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14667 PyObject *obj;
14668 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14669 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
14670 return SWIG_Py_Void();
14671 }
14672
14673 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14674 return SWIG_Python_InitShadowInstance(args);
14675 }
14676
14677 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14678 PyObject *resultobj = 0;
14679 wxLocale *result = 0 ;
14680
14681 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
14682 {
14683 PyThreadState* __tstate = wxPyBeginAllowThreads();
14684 result = (wxLocale *)wxGetLocale();
14685 wxPyEndAllowThreads(__tstate);
14686 if (PyErr_Occurred()) SWIG_fail;
14687 }
14688 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
14689 return resultobj;
14690 fail:
14691 return NULL;
14692 }
14693
14694
14695 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14696 PyObject *resultobj = 0;
14697 wxString *arg1 = 0 ;
14698 wxString result;
14699 bool temp1 = false ;
14700
14701 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14702 {
14703 arg1 = wxString_in_helper(swig_obj[0]);
14704 if (arg1 == NULL) SWIG_fail;
14705 temp1 = true;
14706 }
14707 {
14708 PyThreadState* __tstate = wxPyBeginAllowThreads();
14709 result = wxGetTranslation((wxString const &)*arg1);
14710 wxPyEndAllowThreads(__tstate);
14711 if (PyErr_Occurred()) SWIG_fail;
14712 }
14713 {
14714 #if wxUSE_UNICODE
14715 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14716 #else
14717 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14718 #endif
14719 }
14720 {
14721 if (temp1)
14722 delete arg1;
14723 }
14724 return resultobj;
14725 fail:
14726 {
14727 if (temp1)
14728 delete arg1;
14729 }
14730 return NULL;
14731 }
14732
14733
14734 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14735 PyObject *resultobj = 0;
14736 wxString *arg1 = 0 ;
14737 wxString *arg2 = 0 ;
14738 size_t arg3 ;
14739 wxString result;
14740 bool temp1 = false ;
14741 bool temp2 = false ;
14742 size_t val3 ;
14743 int ecode3 = 0 ;
14744
14745 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14746 {
14747 arg1 = wxString_in_helper(swig_obj[0]);
14748 if (arg1 == NULL) SWIG_fail;
14749 temp1 = true;
14750 }
14751 {
14752 arg2 = wxString_in_helper(swig_obj[1]);
14753 if (arg2 == NULL) SWIG_fail;
14754 temp2 = true;
14755 }
14756 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
14757 if (!SWIG_IsOK(ecode3)) {
14758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14759 }
14760 arg3 = static_cast< size_t >(val3);
14761 {
14762 PyThreadState* __tstate = wxPyBeginAllowThreads();
14763 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
14764 wxPyEndAllowThreads(__tstate);
14765 if (PyErr_Occurred()) SWIG_fail;
14766 }
14767 {
14768 #if wxUSE_UNICODE
14769 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14770 #else
14771 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14772 #endif
14773 }
14774 {
14775 if (temp1)
14776 delete arg1;
14777 }
14778 {
14779 if (temp2)
14780 delete arg2;
14781 }
14782 return resultobj;
14783 fail:
14784 {
14785 if (temp1)
14786 delete arg1;
14787 }
14788 {
14789 if (temp2)
14790 delete arg2;
14791 }
14792 return NULL;
14793 }
14794
14795
14796 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
14797 int argc;
14798 PyObject *argv[4];
14799
14800 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail;
14801 --argc;
14802 if (argc == 1) {
14803 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
14804 }
14805 if (argc == 3) {
14806 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
14807 }
14808
14809 fail:
14810 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
14811 return NULL;
14812 }
14813
14814
14815 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14816 PyObject *resultobj = 0;
14817 wxEncodingConverter *result = 0 ;
14818
14819 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
14820 {
14821 PyThreadState* __tstate = wxPyBeginAllowThreads();
14822 result = (wxEncodingConverter *)new wxEncodingConverter();
14823 wxPyEndAllowThreads(__tstate);
14824 if (PyErr_Occurred()) SWIG_fail;
14825 }
14826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
14827 return resultobj;
14828 fail:
14829 return NULL;
14830 }
14831
14832
14833 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14834 PyObject *resultobj = 0;
14835 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14836 void *argp1 = 0 ;
14837 int res1 = 0 ;
14838 PyObject *swig_obj[1] ;
14839
14840 if (!args) SWIG_fail;
14841 swig_obj[0] = args;
14842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
14843 if (!SWIG_IsOK(res1)) {
14844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14845 }
14846 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14847 {
14848 PyThreadState* __tstate = wxPyBeginAllowThreads();
14849 delete arg1;
14850
14851 wxPyEndAllowThreads(__tstate);
14852 if (PyErr_Occurred()) SWIG_fail;
14853 }
14854 resultobj = SWIG_Py_Void();
14855 return resultobj;
14856 fail:
14857 return NULL;
14858 }
14859
14860
14861 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14862 PyObject *resultobj = 0;
14863 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14864 wxFontEncoding arg2 ;
14865 wxFontEncoding arg3 ;
14866 int arg4 = (int) wxCONVERT_STRICT ;
14867 bool result;
14868 void *argp1 = 0 ;
14869 int res1 = 0 ;
14870 int val2 ;
14871 int ecode2 = 0 ;
14872 int val3 ;
14873 int ecode3 = 0 ;
14874 int val4 ;
14875 int ecode4 = 0 ;
14876 PyObject * obj0 = 0 ;
14877 PyObject * obj1 = 0 ;
14878 PyObject * obj2 = 0 ;
14879 PyObject * obj3 = 0 ;
14880 char * kwnames[] = {
14881 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14882 };
14883
14884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14886 if (!SWIG_IsOK(res1)) {
14887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14888 }
14889 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14890 ecode2 = SWIG_AsVal_int(obj1, &val2);
14891 if (!SWIG_IsOK(ecode2)) {
14892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14893 }
14894 arg2 = static_cast< wxFontEncoding >(val2);
14895 ecode3 = SWIG_AsVal_int(obj2, &val3);
14896 if (!SWIG_IsOK(ecode3)) {
14897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14898 }
14899 arg3 = static_cast< wxFontEncoding >(val3);
14900 if (obj3) {
14901 ecode4 = SWIG_AsVal_int(obj3, &val4);
14902 if (!SWIG_IsOK(ecode4)) {
14903 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14904 }
14905 arg4 = static_cast< int >(val4);
14906 }
14907 {
14908 PyThreadState* __tstate = wxPyBeginAllowThreads();
14909 result = (bool)(arg1)->Init(arg2,arg3,arg4);
14910 wxPyEndAllowThreads(__tstate);
14911 if (PyErr_Occurred()) SWIG_fail;
14912 }
14913 {
14914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14915 }
14916 return resultobj;
14917 fail:
14918 return NULL;
14919 }
14920
14921
14922 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14923 PyObject *resultobj = 0;
14924 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14925 wxString *arg2 = 0 ;
14926 wxString result;
14927 void *argp1 = 0 ;
14928 int res1 = 0 ;
14929 bool temp2 = false ;
14930 PyObject * obj0 = 0 ;
14931 PyObject * obj1 = 0 ;
14932 char * kwnames[] = {
14933 (char *) "self",(char *) "input", NULL
14934 };
14935
14936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
14937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14938 if (!SWIG_IsOK(res1)) {
14939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14940 }
14941 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14942 {
14943 arg2 = wxString_in_helper(obj1);
14944 if (arg2 == NULL) SWIG_fail;
14945 temp2 = true;
14946 }
14947 {
14948 PyThreadState* __tstate = wxPyBeginAllowThreads();
14949 result = (arg1)->Convert((wxString const &)*arg2);
14950 wxPyEndAllowThreads(__tstate);
14951 if (PyErr_Occurred()) SWIG_fail;
14952 }
14953 {
14954 #if wxUSE_UNICODE
14955 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14956 #else
14957 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14958 #endif
14959 }
14960 {
14961 if (temp2)
14962 delete arg2;
14963 }
14964 return resultobj;
14965 fail:
14966 {
14967 if (temp2)
14968 delete arg2;
14969 }
14970 return NULL;
14971 }
14972
14973
14974 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14975 PyObject *resultobj = 0;
14976 wxFontEncoding arg1 ;
14977 int arg2 = (int) wxPLATFORM_CURRENT ;
14978 wxFontEncodingArray result;
14979 int val1 ;
14980 int ecode1 = 0 ;
14981 int val2 ;
14982 int ecode2 = 0 ;
14983 PyObject * obj0 = 0 ;
14984 PyObject * obj1 = 0 ;
14985 char * kwnames[] = {
14986 (char *) "enc",(char *) "platform", NULL
14987 };
14988
14989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
14990 ecode1 = SWIG_AsVal_int(obj0, &val1);
14991 if (!SWIG_IsOK(ecode1)) {
14992 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14993 }
14994 arg1 = static_cast< wxFontEncoding >(val1);
14995 if (obj1) {
14996 ecode2 = SWIG_AsVal_int(obj1, &val2);
14997 if (!SWIG_IsOK(ecode2)) {
14998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
14999 }
15000 arg2 = static_cast< int >(val2);
15001 }
15002 {
15003 PyThreadState* __tstate = wxPyBeginAllowThreads();
15004 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
15005 wxPyEndAllowThreads(__tstate);
15006 if (PyErr_Occurred()) SWIG_fail;
15007 }
15008 {
15009 resultobj = PyList_New(0);
15010 for (size_t i=0; i < (&result)->GetCount(); i++) {
15011 PyObject* number = PyInt_FromLong((&result)->Item(i));
15012 PyList_Append(resultobj, number);
15013 Py_DECREF(number);
15014 }
15015 }
15016 return resultobj;
15017 fail:
15018 return NULL;
15019 }
15020
15021
15022 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15023 PyObject *resultobj = 0;
15024 wxFontEncoding arg1 ;
15025 wxFontEncodingArray result;
15026 int val1 ;
15027 int ecode1 = 0 ;
15028 PyObject * obj0 = 0 ;
15029 char * kwnames[] = {
15030 (char *) "enc", NULL
15031 };
15032
15033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
15034 ecode1 = SWIG_AsVal_int(obj0, &val1);
15035 if (!SWIG_IsOK(ecode1)) {
15036 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15037 }
15038 arg1 = static_cast< wxFontEncoding >(val1);
15039 {
15040 PyThreadState* __tstate = wxPyBeginAllowThreads();
15041 result = wxEncodingConverter::GetAllEquivalents(arg1);
15042 wxPyEndAllowThreads(__tstate);
15043 if (PyErr_Occurred()) SWIG_fail;
15044 }
15045 {
15046 resultobj = PyList_New(0);
15047 for (size_t i=0; i < (&result)->GetCount(); i++) {
15048 PyObject* number = PyInt_FromLong((&result)->Item(i));
15049 PyList_Append(resultobj, number);
15050 Py_DECREF(number);
15051 }
15052 }
15053 return resultobj;
15054 fail:
15055 return NULL;
15056 }
15057
15058
15059 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15060 PyObject *resultobj = 0;
15061 wxFontEncoding arg1 ;
15062 wxFontEncoding arg2 ;
15063 bool result;
15064 int val1 ;
15065 int ecode1 = 0 ;
15066 int val2 ;
15067 int ecode2 = 0 ;
15068 PyObject * obj0 = 0 ;
15069 PyObject * obj1 = 0 ;
15070 char * kwnames[] = {
15071 (char *) "encIn",(char *) "encOut", NULL
15072 };
15073
15074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
15075 ecode1 = SWIG_AsVal_int(obj0, &val1);
15076 if (!SWIG_IsOK(ecode1)) {
15077 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15078 }
15079 arg1 = static_cast< wxFontEncoding >(val1);
15080 ecode2 = SWIG_AsVal_int(obj1, &val2);
15081 if (!SWIG_IsOK(ecode2)) {
15082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15083 }
15084 arg2 = static_cast< wxFontEncoding >(val2);
15085 {
15086 PyThreadState* __tstate = wxPyBeginAllowThreads();
15087 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
15088 wxPyEndAllowThreads(__tstate);
15089 if (PyErr_Occurred()) SWIG_fail;
15090 }
15091 {
15092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15093 }
15094 return resultobj;
15095 fail:
15096 return NULL;
15097 }
15098
15099
15100 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15101 PyObject *obj;
15102 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15103 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
15104 return SWIG_Py_Void();
15105 }
15106
15107 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15108 return SWIG_Python_InitShadowInstance(args);
15109 }
15110
15111 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15112 PyObject *resultobj = 0;
15113 wxDC *arg1 = (wxDC *) 0 ;
15114 void *argp1 = 0 ;
15115 int res1 = 0 ;
15116 PyObject *swig_obj[1] ;
15117
15118 if (!args) SWIG_fail;
15119 swig_obj[0] = args;
15120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
15121 if (!SWIG_IsOK(res1)) {
15122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
15123 }
15124 arg1 = reinterpret_cast< wxDC * >(argp1);
15125 {
15126 PyThreadState* __tstate = wxPyBeginAllowThreads();
15127 delete arg1;
15128
15129 wxPyEndAllowThreads(__tstate);
15130 if (PyErr_Occurred()) SWIG_fail;
15131 }
15132 resultobj = SWIG_Py_Void();
15133 return resultobj;
15134 fail:
15135 return NULL;
15136 }
15137
15138
15139 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15140 PyObject *resultobj = 0;
15141 wxDC *arg1 = (wxDC *) 0 ;
15142 int arg2 ;
15143 int arg3 ;
15144 wxColour *arg4 = 0 ;
15145 int arg5 = (int) wxFLOOD_SURFACE ;
15146 bool result;
15147 void *argp1 = 0 ;
15148 int res1 = 0 ;
15149 int val2 ;
15150 int ecode2 = 0 ;
15151 int val3 ;
15152 int ecode3 = 0 ;
15153 wxColour temp4 ;
15154 int val5 ;
15155 int ecode5 = 0 ;
15156 PyObject * obj0 = 0 ;
15157 PyObject * obj1 = 0 ;
15158 PyObject * obj2 = 0 ;
15159 PyObject * obj3 = 0 ;
15160 PyObject * obj4 = 0 ;
15161 char * kwnames[] = {
15162 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
15163 };
15164
15165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15167 if (!SWIG_IsOK(res1)) {
15168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
15169 }
15170 arg1 = reinterpret_cast< wxDC * >(argp1);
15171 ecode2 = SWIG_AsVal_int(obj1, &val2);
15172 if (!SWIG_IsOK(ecode2)) {
15173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
15174 }
15175 arg2 = static_cast< int >(val2);
15176 ecode3 = SWIG_AsVal_int(obj2, &val3);
15177 if (!SWIG_IsOK(ecode3)) {
15178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
15179 }
15180 arg3 = static_cast< int >(val3);
15181 {
15182 arg4 = &temp4;
15183 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15184 }
15185 if (obj4) {
15186 ecode5 = SWIG_AsVal_int(obj4, &val5);
15187 if (!SWIG_IsOK(ecode5)) {
15188 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
15189 }
15190 arg5 = static_cast< int >(val5);
15191 }
15192 {
15193 PyThreadState* __tstate = wxPyBeginAllowThreads();
15194 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
15195 wxPyEndAllowThreads(__tstate);
15196 if (PyErr_Occurred()) SWIG_fail;
15197 }
15198 {
15199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15200 }
15201 return resultobj;
15202 fail:
15203 return NULL;
15204 }
15205
15206
15207 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15208 PyObject *resultobj = 0;
15209 wxDC *arg1 = (wxDC *) 0 ;
15210 wxPoint *arg2 = 0 ;
15211 wxColour *arg3 = 0 ;
15212 int arg4 = (int) wxFLOOD_SURFACE ;
15213 bool result;
15214 void *argp1 = 0 ;
15215 int res1 = 0 ;
15216 wxPoint temp2 ;
15217 wxColour temp3 ;
15218 int val4 ;
15219 int ecode4 = 0 ;
15220 PyObject * obj0 = 0 ;
15221 PyObject * obj1 = 0 ;
15222 PyObject * obj2 = 0 ;
15223 PyObject * obj3 = 0 ;
15224 char * kwnames[] = {
15225 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
15226 };
15227
15228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15230 if (!SWIG_IsOK(res1)) {
15231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15232 }
15233 arg1 = reinterpret_cast< wxDC * >(argp1);
15234 {
15235 arg2 = &temp2;
15236 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15237 }
15238 {
15239 arg3 = &temp3;
15240 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15241 }
15242 if (obj3) {
15243 ecode4 = SWIG_AsVal_int(obj3, &val4);
15244 if (!SWIG_IsOK(ecode4)) {
15245 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
15246 }
15247 arg4 = static_cast< int >(val4);
15248 }
15249 {
15250 PyThreadState* __tstate = wxPyBeginAllowThreads();
15251 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
15252 wxPyEndAllowThreads(__tstate);
15253 if (PyErr_Occurred()) SWIG_fail;
15254 }
15255 {
15256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15257 }
15258 return resultobj;
15259 fail:
15260 return NULL;
15261 }
15262
15263
15264 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15265 PyObject *resultobj = 0;
15266 wxDC *arg1 = (wxDC *) 0 ;
15267 wxRect *arg2 = 0 ;
15268 wxColour *arg3 = 0 ;
15269 wxColour *arg4 = 0 ;
15270 wxPoint *arg5 = 0 ;
15271 void *argp1 = 0 ;
15272 int res1 = 0 ;
15273 wxRect temp2 ;
15274 wxColour temp3 ;
15275 wxColour temp4 ;
15276 wxPoint temp5 ;
15277 PyObject * obj0 = 0 ;
15278 PyObject * obj1 = 0 ;
15279 PyObject * obj2 = 0 ;
15280 PyObject * obj3 = 0 ;
15281 PyObject * obj4 = 0 ;
15282 char * kwnames[] = {
15283 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
15284 };
15285
15286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15288 if (!SWIG_IsOK(res1)) {
15289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
15290 }
15291 arg1 = reinterpret_cast< wxDC * >(argp1);
15292 {
15293 arg2 = &temp2;
15294 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15295 }
15296 {
15297 arg3 = &temp3;
15298 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15299 }
15300 {
15301 arg4 = &temp4;
15302 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15303 }
15304 {
15305 arg5 = &temp5;
15306 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15307 }
15308 {
15309 PyThreadState* __tstate = wxPyBeginAllowThreads();
15310 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
15311 wxPyEndAllowThreads(__tstate);
15312 if (PyErr_Occurred()) SWIG_fail;
15313 }
15314 resultobj = SWIG_Py_Void();
15315 return resultobj;
15316 fail:
15317 return NULL;
15318 }
15319
15320
15321 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15322 PyObject *resultobj = 0;
15323 wxDC *arg1 = (wxDC *) 0 ;
15324 wxRect *arg2 = 0 ;
15325 wxColour *arg3 = 0 ;
15326 wxColour *arg4 = 0 ;
15327 wxDirection arg5 = (wxDirection) wxEAST ;
15328 void *argp1 = 0 ;
15329 int res1 = 0 ;
15330 wxRect temp2 ;
15331 wxColour temp3 ;
15332 wxColour temp4 ;
15333 int val5 ;
15334 int ecode5 = 0 ;
15335 PyObject * obj0 = 0 ;
15336 PyObject * obj1 = 0 ;
15337 PyObject * obj2 = 0 ;
15338 PyObject * obj3 = 0 ;
15339 PyObject * obj4 = 0 ;
15340 char * kwnames[] = {
15341 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
15342 };
15343
15344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15346 if (!SWIG_IsOK(res1)) {
15347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
15348 }
15349 arg1 = reinterpret_cast< wxDC * >(argp1);
15350 {
15351 arg2 = &temp2;
15352 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15353 }
15354 {
15355 arg3 = &temp3;
15356 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15357 }
15358 {
15359 arg4 = &temp4;
15360 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15361 }
15362 if (obj4) {
15363 ecode5 = SWIG_AsVal_int(obj4, &val5);
15364 if (!SWIG_IsOK(ecode5)) {
15365 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
15366 }
15367 arg5 = static_cast< wxDirection >(val5);
15368 }
15369 {
15370 PyThreadState* __tstate = wxPyBeginAllowThreads();
15371 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
15372 wxPyEndAllowThreads(__tstate);
15373 if (PyErr_Occurred()) SWIG_fail;
15374 }
15375 resultobj = SWIG_Py_Void();
15376 return resultobj;
15377 fail:
15378 return NULL;
15379 }
15380
15381
15382 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15383 PyObject *resultobj = 0;
15384 wxDC *arg1 = (wxDC *) 0 ;
15385 int arg2 ;
15386 int arg3 ;
15387 wxColour result;
15388 void *argp1 = 0 ;
15389 int res1 = 0 ;
15390 int val2 ;
15391 int ecode2 = 0 ;
15392 int val3 ;
15393 int ecode3 = 0 ;
15394 PyObject * obj0 = 0 ;
15395 PyObject * obj1 = 0 ;
15396 PyObject * obj2 = 0 ;
15397 char * kwnames[] = {
15398 (char *) "self",(char *) "x",(char *) "y", NULL
15399 };
15400
15401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15403 if (!SWIG_IsOK(res1)) {
15404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
15405 }
15406 arg1 = reinterpret_cast< wxDC * >(argp1);
15407 ecode2 = SWIG_AsVal_int(obj1, &val2);
15408 if (!SWIG_IsOK(ecode2)) {
15409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
15410 }
15411 arg2 = static_cast< int >(val2);
15412 ecode3 = SWIG_AsVal_int(obj2, &val3);
15413 if (!SWIG_IsOK(ecode3)) {
15414 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
15415 }
15416 arg3 = static_cast< int >(val3);
15417 {
15418 PyThreadState* __tstate = wxPyBeginAllowThreads();
15419 result = wxDC_GetPixel(arg1,arg2,arg3);
15420 wxPyEndAllowThreads(__tstate);
15421 if (PyErr_Occurred()) SWIG_fail;
15422 }
15423 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
15424 return resultobj;
15425 fail:
15426 return NULL;
15427 }
15428
15429
15430 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15431 PyObject *resultobj = 0;
15432 wxDC *arg1 = (wxDC *) 0 ;
15433 wxPoint *arg2 = 0 ;
15434 wxColour result;
15435 void *argp1 = 0 ;
15436 int res1 = 0 ;
15437 wxPoint temp2 ;
15438 PyObject * obj0 = 0 ;
15439 PyObject * obj1 = 0 ;
15440 char * kwnames[] = {
15441 (char *) "self",(char *) "pt", NULL
15442 };
15443
15444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15446 if (!SWIG_IsOK(res1)) {
15447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15448 }
15449 arg1 = reinterpret_cast< wxDC * >(argp1);
15450 {
15451 arg2 = &temp2;
15452 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15453 }
15454 {
15455 PyThreadState* __tstate = wxPyBeginAllowThreads();
15456 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
15457 wxPyEndAllowThreads(__tstate);
15458 if (PyErr_Occurred()) SWIG_fail;
15459 }
15460 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
15461 return resultobj;
15462 fail:
15463 return NULL;
15464 }
15465
15466
15467 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15468 PyObject *resultobj = 0;
15469 wxDC *arg1 = (wxDC *) 0 ;
15470 int arg2 ;
15471 int arg3 ;
15472 int arg4 ;
15473 int arg5 ;
15474 void *argp1 = 0 ;
15475 int res1 = 0 ;
15476 int val2 ;
15477 int ecode2 = 0 ;
15478 int val3 ;
15479 int ecode3 = 0 ;
15480 int val4 ;
15481 int ecode4 = 0 ;
15482 int val5 ;
15483 int ecode5 = 0 ;
15484 PyObject * obj0 = 0 ;
15485 PyObject * obj1 = 0 ;
15486 PyObject * obj2 = 0 ;
15487 PyObject * obj3 = 0 ;
15488 PyObject * obj4 = 0 ;
15489 char * kwnames[] = {
15490 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
15491 };
15492
15493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15495 if (!SWIG_IsOK(res1)) {
15496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
15497 }
15498 arg1 = reinterpret_cast< wxDC * >(argp1);
15499 ecode2 = SWIG_AsVal_int(obj1, &val2);
15500 if (!SWIG_IsOK(ecode2)) {
15501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
15502 }
15503 arg2 = static_cast< int >(val2);
15504 ecode3 = SWIG_AsVal_int(obj2, &val3);
15505 if (!SWIG_IsOK(ecode3)) {
15506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
15507 }
15508 arg3 = static_cast< int >(val3);
15509 ecode4 = SWIG_AsVal_int(obj3, &val4);
15510 if (!SWIG_IsOK(ecode4)) {
15511 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
15512 }
15513 arg4 = static_cast< int >(val4);
15514 ecode5 = SWIG_AsVal_int(obj4, &val5);
15515 if (!SWIG_IsOK(ecode5)) {
15516 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
15517 }
15518 arg5 = static_cast< int >(val5);
15519 {
15520 PyThreadState* __tstate = wxPyBeginAllowThreads();
15521 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
15522 wxPyEndAllowThreads(__tstate);
15523 if (PyErr_Occurred()) SWIG_fail;
15524 }
15525 resultobj = SWIG_Py_Void();
15526 return resultobj;
15527 fail:
15528 return NULL;
15529 }
15530
15531
15532 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15533 PyObject *resultobj = 0;
15534 wxDC *arg1 = (wxDC *) 0 ;
15535 wxPoint *arg2 = 0 ;
15536 wxPoint *arg3 = 0 ;
15537 void *argp1 = 0 ;
15538 int res1 = 0 ;
15539 wxPoint temp2 ;
15540 wxPoint temp3 ;
15541 PyObject * obj0 = 0 ;
15542 PyObject * obj1 = 0 ;
15543 PyObject * obj2 = 0 ;
15544 char * kwnames[] = {
15545 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
15546 };
15547
15548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15550 if (!SWIG_IsOK(res1)) {
15551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15552 }
15553 arg1 = reinterpret_cast< wxDC * >(argp1);
15554 {
15555 arg2 = &temp2;
15556 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15557 }
15558 {
15559 arg3 = &temp3;
15560 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15561 }
15562 {
15563 PyThreadState* __tstate = wxPyBeginAllowThreads();
15564 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
15565 wxPyEndAllowThreads(__tstate);
15566 if (PyErr_Occurred()) SWIG_fail;
15567 }
15568 resultobj = SWIG_Py_Void();
15569 return resultobj;
15570 fail:
15571 return NULL;
15572 }
15573
15574
15575 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15576 PyObject *resultobj = 0;
15577 wxDC *arg1 = (wxDC *) 0 ;
15578 int arg2 ;
15579 int arg3 ;
15580 void *argp1 = 0 ;
15581 int res1 = 0 ;
15582 int val2 ;
15583 int ecode2 = 0 ;
15584 int val3 ;
15585 int ecode3 = 0 ;
15586 PyObject * obj0 = 0 ;
15587 PyObject * obj1 = 0 ;
15588 PyObject * obj2 = 0 ;
15589 char * kwnames[] = {
15590 (char *) "self",(char *) "x",(char *) "y", NULL
15591 };
15592
15593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15595 if (!SWIG_IsOK(res1)) {
15596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
15597 }
15598 arg1 = reinterpret_cast< wxDC * >(argp1);
15599 ecode2 = SWIG_AsVal_int(obj1, &val2);
15600 if (!SWIG_IsOK(ecode2)) {
15601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
15602 }
15603 arg2 = static_cast< int >(val2);
15604 ecode3 = SWIG_AsVal_int(obj2, &val3);
15605 if (!SWIG_IsOK(ecode3)) {
15606 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
15607 }
15608 arg3 = static_cast< int >(val3);
15609 {
15610 PyThreadState* __tstate = wxPyBeginAllowThreads();
15611 (arg1)->CrossHair(arg2,arg3);
15612 wxPyEndAllowThreads(__tstate);
15613 if (PyErr_Occurred()) SWIG_fail;
15614 }
15615 resultobj = SWIG_Py_Void();
15616 return resultobj;
15617 fail:
15618 return NULL;
15619 }
15620
15621
15622 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15623 PyObject *resultobj = 0;
15624 wxDC *arg1 = (wxDC *) 0 ;
15625 wxPoint *arg2 = 0 ;
15626 void *argp1 = 0 ;
15627 int res1 = 0 ;
15628 wxPoint temp2 ;
15629 PyObject * obj0 = 0 ;
15630 PyObject * obj1 = 0 ;
15631 char * kwnames[] = {
15632 (char *) "self",(char *) "pt", NULL
15633 };
15634
15635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15637 if (!SWIG_IsOK(res1)) {
15638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15639 }
15640 arg1 = reinterpret_cast< wxDC * >(argp1);
15641 {
15642 arg2 = &temp2;
15643 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15644 }
15645 {
15646 PyThreadState* __tstate = wxPyBeginAllowThreads();
15647 (arg1)->CrossHair((wxPoint const &)*arg2);
15648 wxPyEndAllowThreads(__tstate);
15649 if (PyErr_Occurred()) SWIG_fail;
15650 }
15651 resultobj = SWIG_Py_Void();
15652 return resultobj;
15653 fail:
15654 return NULL;
15655 }
15656
15657
15658 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15659 PyObject *resultobj = 0;
15660 wxDC *arg1 = (wxDC *) 0 ;
15661 int arg2 ;
15662 int arg3 ;
15663 int arg4 ;
15664 int arg5 ;
15665 int arg6 ;
15666 int arg7 ;
15667 void *argp1 = 0 ;
15668 int res1 = 0 ;
15669 int val2 ;
15670 int ecode2 = 0 ;
15671 int val3 ;
15672 int ecode3 = 0 ;
15673 int val4 ;
15674 int ecode4 = 0 ;
15675 int val5 ;
15676 int ecode5 = 0 ;
15677 int val6 ;
15678 int ecode6 = 0 ;
15679 int val7 ;
15680 int ecode7 = 0 ;
15681 PyObject * obj0 = 0 ;
15682 PyObject * obj1 = 0 ;
15683 PyObject * obj2 = 0 ;
15684 PyObject * obj3 = 0 ;
15685 PyObject * obj4 = 0 ;
15686 PyObject * obj5 = 0 ;
15687 PyObject * obj6 = 0 ;
15688 char * kwnames[] = {
15689 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
15690 };
15691
15692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15694 if (!SWIG_IsOK(res1)) {
15695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
15696 }
15697 arg1 = reinterpret_cast< wxDC * >(argp1);
15698 ecode2 = SWIG_AsVal_int(obj1, &val2);
15699 if (!SWIG_IsOK(ecode2)) {
15700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
15701 }
15702 arg2 = static_cast< int >(val2);
15703 ecode3 = SWIG_AsVal_int(obj2, &val3);
15704 if (!SWIG_IsOK(ecode3)) {
15705 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
15706 }
15707 arg3 = static_cast< int >(val3);
15708 ecode4 = SWIG_AsVal_int(obj3, &val4);
15709 if (!SWIG_IsOK(ecode4)) {
15710 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
15711 }
15712 arg4 = static_cast< int >(val4);
15713 ecode5 = SWIG_AsVal_int(obj4, &val5);
15714 if (!SWIG_IsOK(ecode5)) {
15715 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
15716 }
15717 arg5 = static_cast< int >(val5);
15718 ecode6 = SWIG_AsVal_int(obj5, &val6);
15719 if (!SWIG_IsOK(ecode6)) {
15720 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
15721 }
15722 arg6 = static_cast< int >(val6);
15723 ecode7 = SWIG_AsVal_int(obj6, &val7);
15724 if (!SWIG_IsOK(ecode7)) {
15725 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
15726 }
15727 arg7 = static_cast< int >(val7);
15728 {
15729 PyThreadState* __tstate = wxPyBeginAllowThreads();
15730 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
15731 wxPyEndAllowThreads(__tstate);
15732 if (PyErr_Occurred()) SWIG_fail;
15733 }
15734 resultobj = SWIG_Py_Void();
15735 return resultobj;
15736 fail:
15737 return NULL;
15738 }
15739
15740
15741 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15742 PyObject *resultobj = 0;
15743 wxDC *arg1 = (wxDC *) 0 ;
15744 wxPoint *arg2 = 0 ;
15745 wxPoint *arg3 = 0 ;
15746 wxPoint *arg4 = 0 ;
15747 void *argp1 = 0 ;
15748 int res1 = 0 ;
15749 wxPoint temp2 ;
15750 wxPoint temp3 ;
15751 wxPoint temp4 ;
15752 PyObject * obj0 = 0 ;
15753 PyObject * obj1 = 0 ;
15754 PyObject * obj2 = 0 ;
15755 PyObject * obj3 = 0 ;
15756 char * kwnames[] = {
15757 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15758 };
15759
15760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15762 if (!SWIG_IsOK(res1)) {
15763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15764 }
15765 arg1 = reinterpret_cast< wxDC * >(argp1);
15766 {
15767 arg2 = &temp2;
15768 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15769 }
15770 {
15771 arg3 = &temp3;
15772 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15773 }
15774 {
15775 arg4 = &temp4;
15776 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15777 }
15778 {
15779 PyThreadState* __tstate = wxPyBeginAllowThreads();
15780 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
15781 wxPyEndAllowThreads(__tstate);
15782 if (PyErr_Occurred()) SWIG_fail;
15783 }
15784 resultobj = SWIG_Py_Void();
15785 return resultobj;
15786 fail:
15787 return NULL;
15788 }
15789
15790
15791 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15792 PyObject *resultobj = 0;
15793 wxDC *arg1 = (wxDC *) 0 ;
15794 int arg2 ;
15795 int arg3 ;
15796 int arg4 ;
15797 int arg5 ;
15798 void *argp1 = 0 ;
15799 int res1 = 0 ;
15800 int val2 ;
15801 int ecode2 = 0 ;
15802 int val3 ;
15803 int ecode3 = 0 ;
15804 int val4 ;
15805 int ecode4 = 0 ;
15806 int val5 ;
15807 int ecode5 = 0 ;
15808 PyObject * obj0 = 0 ;
15809 PyObject * obj1 = 0 ;
15810 PyObject * obj2 = 0 ;
15811 PyObject * obj3 = 0 ;
15812 PyObject * obj4 = 0 ;
15813 char * kwnames[] = {
15814 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15815 };
15816
15817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15819 if (!SWIG_IsOK(res1)) {
15820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15821 }
15822 arg1 = reinterpret_cast< wxDC * >(argp1);
15823 ecode2 = SWIG_AsVal_int(obj1, &val2);
15824 if (!SWIG_IsOK(ecode2)) {
15825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15826 }
15827 arg2 = static_cast< int >(val2);
15828 ecode3 = SWIG_AsVal_int(obj2, &val3);
15829 if (!SWIG_IsOK(ecode3)) {
15830 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15831 }
15832 arg3 = static_cast< int >(val3);
15833 ecode4 = SWIG_AsVal_int(obj3, &val4);
15834 if (!SWIG_IsOK(ecode4)) {
15835 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15836 }
15837 arg4 = static_cast< int >(val4);
15838 ecode5 = SWIG_AsVal_int(obj4, &val5);
15839 if (!SWIG_IsOK(ecode5)) {
15840 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15841 }
15842 arg5 = static_cast< int >(val5);
15843 {
15844 PyThreadState* __tstate = wxPyBeginAllowThreads();
15845 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
15846 wxPyEndAllowThreads(__tstate);
15847 if (PyErr_Occurred()) SWIG_fail;
15848 }
15849 resultobj = SWIG_Py_Void();
15850 return resultobj;
15851 fail:
15852 return NULL;
15853 }
15854
15855
15856 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15857 PyObject *resultobj = 0;
15858 wxDC *arg1 = (wxDC *) 0 ;
15859 wxRect *arg2 = 0 ;
15860 void *argp1 = 0 ;
15861 int res1 = 0 ;
15862 wxRect temp2 ;
15863 PyObject * obj0 = 0 ;
15864 PyObject * obj1 = 0 ;
15865 char * kwnames[] = {
15866 (char *) "self",(char *) "rect", NULL
15867 };
15868
15869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
15870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15871 if (!SWIG_IsOK(res1)) {
15872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15873 }
15874 arg1 = reinterpret_cast< wxDC * >(argp1);
15875 {
15876 arg2 = &temp2;
15877 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15878 }
15879 {
15880 PyThreadState* __tstate = wxPyBeginAllowThreads();
15881 (arg1)->DrawCheckMark((wxRect const &)*arg2);
15882 wxPyEndAllowThreads(__tstate);
15883 if (PyErr_Occurred()) SWIG_fail;
15884 }
15885 resultobj = SWIG_Py_Void();
15886 return resultobj;
15887 fail:
15888 return NULL;
15889 }
15890
15891
15892 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15893 PyObject *resultobj = 0;
15894 wxDC *arg1 = (wxDC *) 0 ;
15895 int arg2 ;
15896 int arg3 ;
15897 int arg4 ;
15898 int arg5 ;
15899 double arg6 ;
15900 double arg7 ;
15901 void *argp1 = 0 ;
15902 int res1 = 0 ;
15903 int val2 ;
15904 int ecode2 = 0 ;
15905 int val3 ;
15906 int ecode3 = 0 ;
15907 int val4 ;
15908 int ecode4 = 0 ;
15909 int val5 ;
15910 int ecode5 = 0 ;
15911 double val6 ;
15912 int ecode6 = 0 ;
15913 double val7 ;
15914 int ecode7 = 0 ;
15915 PyObject * obj0 = 0 ;
15916 PyObject * obj1 = 0 ;
15917 PyObject * obj2 = 0 ;
15918 PyObject * obj3 = 0 ;
15919 PyObject * obj4 = 0 ;
15920 PyObject * obj5 = 0 ;
15921 PyObject * obj6 = 0 ;
15922 char * kwnames[] = {
15923 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15924 };
15925
15926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15928 if (!SWIG_IsOK(res1)) {
15929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15930 }
15931 arg1 = reinterpret_cast< wxDC * >(argp1);
15932 ecode2 = SWIG_AsVal_int(obj1, &val2);
15933 if (!SWIG_IsOK(ecode2)) {
15934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15935 }
15936 arg2 = static_cast< int >(val2);
15937 ecode3 = SWIG_AsVal_int(obj2, &val3);
15938 if (!SWIG_IsOK(ecode3)) {
15939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15940 }
15941 arg3 = static_cast< int >(val3);
15942 ecode4 = SWIG_AsVal_int(obj3, &val4);
15943 if (!SWIG_IsOK(ecode4)) {
15944 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15945 }
15946 arg4 = static_cast< int >(val4);
15947 ecode5 = SWIG_AsVal_int(obj4, &val5);
15948 if (!SWIG_IsOK(ecode5)) {
15949 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15950 }
15951 arg5 = static_cast< int >(val5);
15952 ecode6 = SWIG_AsVal_double(obj5, &val6);
15953 if (!SWIG_IsOK(ecode6)) {
15954 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15955 }
15956 arg6 = static_cast< double >(val6);
15957 ecode7 = SWIG_AsVal_double(obj6, &val7);
15958 if (!SWIG_IsOK(ecode7)) {
15959 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15960 }
15961 arg7 = static_cast< double >(val7);
15962 {
15963 PyThreadState* __tstate = wxPyBeginAllowThreads();
15964 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
15965 wxPyEndAllowThreads(__tstate);
15966 if (PyErr_Occurred()) SWIG_fail;
15967 }
15968 resultobj = SWIG_Py_Void();
15969 return resultobj;
15970 fail:
15971 return NULL;
15972 }
15973
15974
15975 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15976 PyObject *resultobj = 0;
15977 wxDC *arg1 = (wxDC *) 0 ;
15978 wxPoint *arg2 = 0 ;
15979 wxSize *arg3 = 0 ;
15980 double arg4 ;
15981 double arg5 ;
15982 void *argp1 = 0 ;
15983 int res1 = 0 ;
15984 wxPoint temp2 ;
15985 wxSize temp3 ;
15986 double val4 ;
15987 int ecode4 = 0 ;
15988 double val5 ;
15989 int ecode5 = 0 ;
15990 PyObject * obj0 = 0 ;
15991 PyObject * obj1 = 0 ;
15992 PyObject * obj2 = 0 ;
15993 PyObject * obj3 = 0 ;
15994 PyObject * obj4 = 0 ;
15995 char * kwnames[] = {
15996 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
15997 };
15998
15999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16001 if (!SWIG_IsOK(res1)) {
16002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16003 }
16004 arg1 = reinterpret_cast< wxDC * >(argp1);
16005 {
16006 arg2 = &temp2;
16007 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16008 }
16009 {
16010 arg3 = &temp3;
16011 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16012 }
16013 ecode4 = SWIG_AsVal_double(obj3, &val4);
16014 if (!SWIG_IsOK(ecode4)) {
16015 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
16016 }
16017 arg4 = static_cast< double >(val4);
16018 ecode5 = SWIG_AsVal_double(obj4, &val5);
16019 if (!SWIG_IsOK(ecode5)) {
16020 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
16021 }
16022 arg5 = static_cast< double >(val5);
16023 {
16024 PyThreadState* __tstate = wxPyBeginAllowThreads();
16025 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
16026 wxPyEndAllowThreads(__tstate);
16027 if (PyErr_Occurred()) SWIG_fail;
16028 }
16029 resultobj = SWIG_Py_Void();
16030 return resultobj;
16031 fail:
16032 return NULL;
16033 }
16034
16035
16036 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16037 PyObject *resultobj = 0;
16038 wxDC *arg1 = (wxDC *) 0 ;
16039 int arg2 ;
16040 int arg3 ;
16041 void *argp1 = 0 ;
16042 int res1 = 0 ;
16043 int val2 ;
16044 int ecode2 = 0 ;
16045 int val3 ;
16046 int ecode3 = 0 ;
16047 PyObject * obj0 = 0 ;
16048 PyObject * obj1 = 0 ;
16049 PyObject * obj2 = 0 ;
16050 char * kwnames[] = {
16051 (char *) "self",(char *) "x",(char *) "y", NULL
16052 };
16053
16054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16056 if (!SWIG_IsOK(res1)) {
16057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16058 }
16059 arg1 = reinterpret_cast< wxDC * >(argp1);
16060 ecode2 = SWIG_AsVal_int(obj1, &val2);
16061 if (!SWIG_IsOK(ecode2)) {
16062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
16063 }
16064 arg2 = static_cast< int >(val2);
16065 ecode3 = SWIG_AsVal_int(obj2, &val3);
16066 if (!SWIG_IsOK(ecode3)) {
16067 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
16068 }
16069 arg3 = static_cast< int >(val3);
16070 {
16071 PyThreadState* __tstate = wxPyBeginAllowThreads();
16072 (arg1)->DrawPoint(arg2,arg3);
16073 wxPyEndAllowThreads(__tstate);
16074 if (PyErr_Occurred()) SWIG_fail;
16075 }
16076 resultobj = SWIG_Py_Void();
16077 return resultobj;
16078 fail:
16079 return NULL;
16080 }
16081
16082
16083 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16084 PyObject *resultobj = 0;
16085 wxDC *arg1 = (wxDC *) 0 ;
16086 wxPoint *arg2 = 0 ;
16087 void *argp1 = 0 ;
16088 int res1 = 0 ;
16089 wxPoint temp2 ;
16090 PyObject * obj0 = 0 ;
16091 PyObject * obj1 = 0 ;
16092 char * kwnames[] = {
16093 (char *) "self",(char *) "pt", NULL
16094 };
16095
16096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
16097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16098 if (!SWIG_IsOK(res1)) {
16099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16100 }
16101 arg1 = reinterpret_cast< wxDC * >(argp1);
16102 {
16103 arg2 = &temp2;
16104 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16105 }
16106 {
16107 PyThreadState* __tstate = wxPyBeginAllowThreads();
16108 (arg1)->DrawPoint((wxPoint const &)*arg2);
16109 wxPyEndAllowThreads(__tstate);
16110 if (PyErr_Occurred()) SWIG_fail;
16111 }
16112 resultobj = SWIG_Py_Void();
16113 return resultobj;
16114 fail:
16115 return NULL;
16116 }
16117
16118
16119 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16120 PyObject *resultobj = 0;
16121 wxDC *arg1 = (wxDC *) 0 ;
16122 int arg2 ;
16123 int arg3 ;
16124 int arg4 ;
16125 int arg5 ;
16126 void *argp1 = 0 ;
16127 int res1 = 0 ;
16128 int val2 ;
16129 int ecode2 = 0 ;
16130 int val3 ;
16131 int ecode3 = 0 ;
16132 int val4 ;
16133 int ecode4 = 0 ;
16134 int val5 ;
16135 int ecode5 = 0 ;
16136 PyObject * obj0 = 0 ;
16137 PyObject * obj1 = 0 ;
16138 PyObject * obj2 = 0 ;
16139 PyObject * obj3 = 0 ;
16140 PyObject * obj4 = 0 ;
16141 char * kwnames[] = {
16142 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16143 };
16144
16145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16147 if (!SWIG_IsOK(res1)) {
16148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
16149 }
16150 arg1 = reinterpret_cast< wxDC * >(argp1);
16151 ecode2 = SWIG_AsVal_int(obj1, &val2);
16152 if (!SWIG_IsOK(ecode2)) {
16153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
16154 }
16155 arg2 = static_cast< int >(val2);
16156 ecode3 = SWIG_AsVal_int(obj2, &val3);
16157 if (!SWIG_IsOK(ecode3)) {
16158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
16159 }
16160 arg3 = static_cast< int >(val3);
16161 ecode4 = SWIG_AsVal_int(obj3, &val4);
16162 if (!SWIG_IsOK(ecode4)) {
16163 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
16164 }
16165 arg4 = static_cast< int >(val4);
16166 ecode5 = SWIG_AsVal_int(obj4, &val5);
16167 if (!SWIG_IsOK(ecode5)) {
16168 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
16169 }
16170 arg5 = static_cast< int >(val5);
16171 {
16172 PyThreadState* __tstate = wxPyBeginAllowThreads();
16173 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
16174 wxPyEndAllowThreads(__tstate);
16175 if (PyErr_Occurred()) SWIG_fail;
16176 }
16177 resultobj = SWIG_Py_Void();
16178 return resultobj;
16179 fail:
16180 return NULL;
16181 }
16182
16183
16184 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16185 PyObject *resultobj = 0;
16186 wxDC *arg1 = (wxDC *) 0 ;
16187 wxRect *arg2 = 0 ;
16188 void *argp1 = 0 ;
16189 int res1 = 0 ;
16190 wxRect temp2 ;
16191 PyObject * obj0 = 0 ;
16192 PyObject * obj1 = 0 ;
16193 char * kwnames[] = {
16194 (char *) "self",(char *) "rect", NULL
16195 };
16196
16197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
16198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16199 if (!SWIG_IsOK(res1)) {
16200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
16201 }
16202 arg1 = reinterpret_cast< wxDC * >(argp1);
16203 {
16204 arg2 = &temp2;
16205 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16206 }
16207 {
16208 PyThreadState* __tstate = wxPyBeginAllowThreads();
16209 (arg1)->DrawRectangle((wxRect const &)*arg2);
16210 wxPyEndAllowThreads(__tstate);
16211 if (PyErr_Occurred()) SWIG_fail;
16212 }
16213 resultobj = SWIG_Py_Void();
16214 return resultobj;
16215 fail:
16216 return NULL;
16217 }
16218
16219
16220 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16221 PyObject *resultobj = 0;
16222 wxDC *arg1 = (wxDC *) 0 ;
16223 wxPoint *arg2 = 0 ;
16224 wxSize *arg3 = 0 ;
16225 void *argp1 = 0 ;
16226 int res1 = 0 ;
16227 wxPoint temp2 ;
16228 wxSize temp3 ;
16229 PyObject * obj0 = 0 ;
16230 PyObject * obj1 = 0 ;
16231 PyObject * obj2 = 0 ;
16232 char * kwnames[] = {
16233 (char *) "self",(char *) "pt",(char *) "sz", NULL
16234 };
16235
16236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16238 if (!SWIG_IsOK(res1)) {
16239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16240 }
16241 arg1 = reinterpret_cast< wxDC * >(argp1);
16242 {
16243 arg2 = &temp2;
16244 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16245 }
16246 {
16247 arg3 = &temp3;
16248 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16249 }
16250 {
16251 PyThreadState* __tstate = wxPyBeginAllowThreads();
16252 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
16253 wxPyEndAllowThreads(__tstate);
16254 if (PyErr_Occurred()) SWIG_fail;
16255 }
16256 resultobj = SWIG_Py_Void();
16257 return resultobj;
16258 fail:
16259 return NULL;
16260 }
16261
16262
16263 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16264 PyObject *resultobj = 0;
16265 wxDC *arg1 = (wxDC *) 0 ;
16266 int arg2 ;
16267 int arg3 ;
16268 int arg4 ;
16269 int arg5 ;
16270 double arg6 ;
16271 void *argp1 = 0 ;
16272 int res1 = 0 ;
16273 int val2 ;
16274 int ecode2 = 0 ;
16275 int val3 ;
16276 int ecode3 = 0 ;
16277 int val4 ;
16278 int ecode4 = 0 ;
16279 int val5 ;
16280 int ecode5 = 0 ;
16281 double val6 ;
16282 int ecode6 = 0 ;
16283 PyObject * obj0 = 0 ;
16284 PyObject * obj1 = 0 ;
16285 PyObject * obj2 = 0 ;
16286 PyObject * obj3 = 0 ;
16287 PyObject * obj4 = 0 ;
16288 PyObject * obj5 = 0 ;
16289 char * kwnames[] = {
16290 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
16291 };
16292
16293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16295 if (!SWIG_IsOK(res1)) {
16296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
16297 }
16298 arg1 = reinterpret_cast< wxDC * >(argp1);
16299 ecode2 = SWIG_AsVal_int(obj1, &val2);
16300 if (!SWIG_IsOK(ecode2)) {
16301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
16302 }
16303 arg2 = static_cast< int >(val2);
16304 ecode3 = SWIG_AsVal_int(obj2, &val3);
16305 if (!SWIG_IsOK(ecode3)) {
16306 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
16307 }
16308 arg3 = static_cast< int >(val3);
16309 ecode4 = SWIG_AsVal_int(obj3, &val4);
16310 if (!SWIG_IsOK(ecode4)) {
16311 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
16312 }
16313 arg4 = static_cast< int >(val4);
16314 ecode5 = SWIG_AsVal_int(obj4, &val5);
16315 if (!SWIG_IsOK(ecode5)) {
16316 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
16317 }
16318 arg5 = static_cast< int >(val5);
16319 ecode6 = SWIG_AsVal_double(obj5, &val6);
16320 if (!SWIG_IsOK(ecode6)) {
16321 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
16322 }
16323 arg6 = static_cast< double >(val6);
16324 {
16325 PyThreadState* __tstate = wxPyBeginAllowThreads();
16326 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
16327 wxPyEndAllowThreads(__tstate);
16328 if (PyErr_Occurred()) SWIG_fail;
16329 }
16330 resultobj = SWIG_Py_Void();
16331 return resultobj;
16332 fail:
16333 return NULL;
16334 }
16335
16336
16337 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16338 PyObject *resultobj = 0;
16339 wxDC *arg1 = (wxDC *) 0 ;
16340 wxRect *arg2 = 0 ;
16341 double arg3 ;
16342 void *argp1 = 0 ;
16343 int res1 = 0 ;
16344 wxRect temp2 ;
16345 double val3 ;
16346 int ecode3 = 0 ;
16347 PyObject * obj0 = 0 ;
16348 PyObject * obj1 = 0 ;
16349 PyObject * obj2 = 0 ;
16350 char * kwnames[] = {
16351 (char *) "self",(char *) "r",(char *) "radius", NULL
16352 };
16353
16354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16356 if (!SWIG_IsOK(res1)) {
16357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
16358 }
16359 arg1 = reinterpret_cast< wxDC * >(argp1);
16360 {
16361 arg2 = &temp2;
16362 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16363 }
16364 ecode3 = SWIG_AsVal_double(obj2, &val3);
16365 if (!SWIG_IsOK(ecode3)) {
16366 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
16367 }
16368 arg3 = static_cast< double >(val3);
16369 {
16370 PyThreadState* __tstate = wxPyBeginAllowThreads();
16371 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
16372 wxPyEndAllowThreads(__tstate);
16373 if (PyErr_Occurred()) SWIG_fail;
16374 }
16375 resultobj = SWIG_Py_Void();
16376 return resultobj;
16377 fail:
16378 return NULL;
16379 }
16380
16381
16382 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16383 PyObject *resultobj = 0;
16384 wxDC *arg1 = (wxDC *) 0 ;
16385 wxPoint *arg2 = 0 ;
16386 wxSize *arg3 = 0 ;
16387 double arg4 ;
16388 void *argp1 = 0 ;
16389 int res1 = 0 ;
16390 wxPoint temp2 ;
16391 wxSize temp3 ;
16392 double val4 ;
16393 int ecode4 = 0 ;
16394 PyObject * obj0 = 0 ;
16395 PyObject * obj1 = 0 ;
16396 PyObject * obj2 = 0 ;
16397 PyObject * obj3 = 0 ;
16398 char * kwnames[] = {
16399 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
16400 };
16401
16402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16404 if (!SWIG_IsOK(res1)) {
16405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16406 }
16407 arg1 = reinterpret_cast< wxDC * >(argp1);
16408 {
16409 arg2 = &temp2;
16410 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16411 }
16412 {
16413 arg3 = &temp3;
16414 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16415 }
16416 ecode4 = SWIG_AsVal_double(obj3, &val4);
16417 if (!SWIG_IsOK(ecode4)) {
16418 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
16419 }
16420 arg4 = static_cast< double >(val4);
16421 {
16422 PyThreadState* __tstate = wxPyBeginAllowThreads();
16423 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
16424 wxPyEndAllowThreads(__tstate);
16425 if (PyErr_Occurred()) SWIG_fail;
16426 }
16427 resultobj = SWIG_Py_Void();
16428 return resultobj;
16429 fail:
16430 return NULL;
16431 }
16432
16433
16434 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16435 PyObject *resultobj = 0;
16436 wxDC *arg1 = (wxDC *) 0 ;
16437 int arg2 ;
16438 int arg3 ;
16439 int arg4 ;
16440 void *argp1 = 0 ;
16441 int res1 = 0 ;
16442 int val2 ;
16443 int ecode2 = 0 ;
16444 int val3 ;
16445 int ecode3 = 0 ;
16446 int val4 ;
16447 int ecode4 = 0 ;
16448 PyObject * obj0 = 0 ;
16449 PyObject * obj1 = 0 ;
16450 PyObject * obj2 = 0 ;
16451 PyObject * obj3 = 0 ;
16452 char * kwnames[] = {
16453 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
16454 };
16455
16456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16458 if (!SWIG_IsOK(res1)) {
16459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
16460 }
16461 arg1 = reinterpret_cast< wxDC * >(argp1);
16462 ecode2 = SWIG_AsVal_int(obj1, &val2);
16463 if (!SWIG_IsOK(ecode2)) {
16464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
16465 }
16466 arg2 = static_cast< int >(val2);
16467 ecode3 = SWIG_AsVal_int(obj2, &val3);
16468 if (!SWIG_IsOK(ecode3)) {
16469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
16470 }
16471 arg3 = static_cast< int >(val3);
16472 ecode4 = SWIG_AsVal_int(obj3, &val4);
16473 if (!SWIG_IsOK(ecode4)) {
16474 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
16475 }
16476 arg4 = static_cast< int >(val4);
16477 {
16478 PyThreadState* __tstate = wxPyBeginAllowThreads();
16479 (arg1)->DrawCircle(arg2,arg3,arg4);
16480 wxPyEndAllowThreads(__tstate);
16481 if (PyErr_Occurred()) SWIG_fail;
16482 }
16483 resultobj = SWIG_Py_Void();
16484 return resultobj;
16485 fail:
16486 return NULL;
16487 }
16488
16489
16490 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16491 PyObject *resultobj = 0;
16492 wxDC *arg1 = (wxDC *) 0 ;
16493 wxPoint *arg2 = 0 ;
16494 int arg3 ;
16495 void *argp1 = 0 ;
16496 int res1 = 0 ;
16497 wxPoint temp2 ;
16498 int val3 ;
16499 int ecode3 = 0 ;
16500 PyObject * obj0 = 0 ;
16501 PyObject * obj1 = 0 ;
16502 PyObject * obj2 = 0 ;
16503 char * kwnames[] = {
16504 (char *) "self",(char *) "pt",(char *) "radius", NULL
16505 };
16506
16507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16509 if (!SWIG_IsOK(res1)) {
16510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
16511 }
16512 arg1 = reinterpret_cast< wxDC * >(argp1);
16513 {
16514 arg2 = &temp2;
16515 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16516 }
16517 ecode3 = SWIG_AsVal_int(obj2, &val3);
16518 if (!SWIG_IsOK(ecode3)) {
16519 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
16520 }
16521 arg3 = static_cast< int >(val3);
16522 {
16523 PyThreadState* __tstate = wxPyBeginAllowThreads();
16524 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
16525 wxPyEndAllowThreads(__tstate);
16526 if (PyErr_Occurred()) SWIG_fail;
16527 }
16528 resultobj = SWIG_Py_Void();
16529 return resultobj;
16530 fail:
16531 return NULL;
16532 }
16533
16534
16535 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16536 PyObject *resultobj = 0;
16537 wxDC *arg1 = (wxDC *) 0 ;
16538 int arg2 ;
16539 int arg3 ;
16540 int arg4 ;
16541 int arg5 ;
16542 void *argp1 = 0 ;
16543 int res1 = 0 ;
16544 int val2 ;
16545 int ecode2 = 0 ;
16546 int val3 ;
16547 int ecode3 = 0 ;
16548 int val4 ;
16549 int ecode4 = 0 ;
16550 int val5 ;
16551 int ecode5 = 0 ;
16552 PyObject * obj0 = 0 ;
16553 PyObject * obj1 = 0 ;
16554 PyObject * obj2 = 0 ;
16555 PyObject * obj3 = 0 ;
16556 PyObject * obj4 = 0 ;
16557 char * kwnames[] = {
16558 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16559 };
16560
16561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16563 if (!SWIG_IsOK(res1)) {
16564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
16565 }
16566 arg1 = reinterpret_cast< wxDC * >(argp1);
16567 ecode2 = SWIG_AsVal_int(obj1, &val2);
16568 if (!SWIG_IsOK(ecode2)) {
16569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
16570 }
16571 arg2 = static_cast< int >(val2);
16572 ecode3 = SWIG_AsVal_int(obj2, &val3);
16573 if (!SWIG_IsOK(ecode3)) {
16574 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
16575 }
16576 arg3 = static_cast< int >(val3);
16577 ecode4 = SWIG_AsVal_int(obj3, &val4);
16578 if (!SWIG_IsOK(ecode4)) {
16579 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
16580 }
16581 arg4 = static_cast< int >(val4);
16582 ecode5 = SWIG_AsVal_int(obj4, &val5);
16583 if (!SWIG_IsOK(ecode5)) {
16584 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
16585 }
16586 arg5 = static_cast< int >(val5);
16587 {
16588 PyThreadState* __tstate = wxPyBeginAllowThreads();
16589 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
16590 wxPyEndAllowThreads(__tstate);
16591 if (PyErr_Occurred()) SWIG_fail;
16592 }
16593 resultobj = SWIG_Py_Void();
16594 return resultobj;
16595 fail:
16596 return NULL;
16597 }
16598
16599
16600 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16601 PyObject *resultobj = 0;
16602 wxDC *arg1 = (wxDC *) 0 ;
16603 wxRect *arg2 = 0 ;
16604 void *argp1 = 0 ;
16605 int res1 = 0 ;
16606 wxRect temp2 ;
16607 PyObject * obj0 = 0 ;
16608 PyObject * obj1 = 0 ;
16609 char * kwnames[] = {
16610 (char *) "self",(char *) "rect", NULL
16611 };
16612
16613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
16614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16615 if (!SWIG_IsOK(res1)) {
16616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
16617 }
16618 arg1 = reinterpret_cast< wxDC * >(argp1);
16619 {
16620 arg2 = &temp2;
16621 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16622 }
16623 {
16624 PyThreadState* __tstate = wxPyBeginAllowThreads();
16625 (arg1)->DrawEllipse((wxRect const &)*arg2);
16626 wxPyEndAllowThreads(__tstate);
16627 if (PyErr_Occurred()) SWIG_fail;
16628 }
16629 resultobj = SWIG_Py_Void();
16630 return resultobj;
16631 fail:
16632 return NULL;
16633 }
16634
16635
16636 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16637 PyObject *resultobj = 0;
16638 wxDC *arg1 = (wxDC *) 0 ;
16639 wxPoint *arg2 = 0 ;
16640 wxSize *arg3 = 0 ;
16641 void *argp1 = 0 ;
16642 int res1 = 0 ;
16643 wxPoint temp2 ;
16644 wxSize temp3 ;
16645 PyObject * obj0 = 0 ;
16646 PyObject * obj1 = 0 ;
16647 PyObject * obj2 = 0 ;
16648 char * kwnames[] = {
16649 (char *) "self",(char *) "pt",(char *) "sz", NULL
16650 };
16651
16652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16654 if (!SWIG_IsOK(res1)) {
16655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16656 }
16657 arg1 = reinterpret_cast< wxDC * >(argp1);
16658 {
16659 arg2 = &temp2;
16660 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16661 }
16662 {
16663 arg3 = &temp3;
16664 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16665 }
16666 {
16667 PyThreadState* __tstate = wxPyBeginAllowThreads();
16668 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
16669 wxPyEndAllowThreads(__tstate);
16670 if (PyErr_Occurred()) SWIG_fail;
16671 }
16672 resultobj = SWIG_Py_Void();
16673 return resultobj;
16674 fail:
16675 return NULL;
16676 }
16677
16678
16679 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16680 PyObject *resultobj = 0;
16681 wxDC *arg1 = (wxDC *) 0 ;
16682 wxIcon *arg2 = 0 ;
16683 int arg3 ;
16684 int arg4 ;
16685 void *argp1 = 0 ;
16686 int res1 = 0 ;
16687 void *argp2 = 0 ;
16688 int res2 = 0 ;
16689 int val3 ;
16690 int ecode3 = 0 ;
16691 int val4 ;
16692 int ecode4 = 0 ;
16693 PyObject * obj0 = 0 ;
16694 PyObject * obj1 = 0 ;
16695 PyObject * obj2 = 0 ;
16696 PyObject * obj3 = 0 ;
16697 char * kwnames[] = {
16698 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
16699 };
16700
16701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16703 if (!SWIG_IsOK(res1)) {
16704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
16705 }
16706 arg1 = reinterpret_cast< wxDC * >(argp1);
16707 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16708 if (!SWIG_IsOK(res2)) {
16709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16710 }
16711 if (!argp2) {
16712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16713 }
16714 arg2 = reinterpret_cast< wxIcon * >(argp2);
16715 ecode3 = SWIG_AsVal_int(obj2, &val3);
16716 if (!SWIG_IsOK(ecode3)) {
16717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
16718 }
16719 arg3 = static_cast< int >(val3);
16720 ecode4 = SWIG_AsVal_int(obj3, &val4);
16721 if (!SWIG_IsOK(ecode4)) {
16722 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
16723 }
16724 arg4 = static_cast< int >(val4);
16725 {
16726 PyThreadState* __tstate = wxPyBeginAllowThreads();
16727 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
16728 wxPyEndAllowThreads(__tstate);
16729 if (PyErr_Occurred()) SWIG_fail;
16730 }
16731 resultobj = SWIG_Py_Void();
16732 return resultobj;
16733 fail:
16734 return NULL;
16735 }
16736
16737
16738 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16739 PyObject *resultobj = 0;
16740 wxDC *arg1 = (wxDC *) 0 ;
16741 wxIcon *arg2 = 0 ;
16742 wxPoint *arg3 = 0 ;
16743 void *argp1 = 0 ;
16744 int res1 = 0 ;
16745 void *argp2 = 0 ;
16746 int res2 = 0 ;
16747 wxPoint temp3 ;
16748 PyObject * obj0 = 0 ;
16749 PyObject * obj1 = 0 ;
16750 PyObject * obj2 = 0 ;
16751 char * kwnames[] = {
16752 (char *) "self",(char *) "icon",(char *) "pt", NULL
16753 };
16754
16755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16757 if (!SWIG_IsOK(res1)) {
16758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16759 }
16760 arg1 = reinterpret_cast< wxDC * >(argp1);
16761 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16762 if (!SWIG_IsOK(res2)) {
16763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16764 }
16765 if (!argp2) {
16766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16767 }
16768 arg2 = reinterpret_cast< wxIcon * >(argp2);
16769 {
16770 arg3 = &temp3;
16771 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16772 }
16773 {
16774 PyThreadState* __tstate = wxPyBeginAllowThreads();
16775 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
16776 wxPyEndAllowThreads(__tstate);
16777 if (PyErr_Occurred()) SWIG_fail;
16778 }
16779 resultobj = SWIG_Py_Void();
16780 return resultobj;
16781 fail:
16782 return NULL;
16783 }
16784
16785
16786 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16787 PyObject *resultobj = 0;
16788 wxDC *arg1 = (wxDC *) 0 ;
16789 wxBitmap *arg2 = 0 ;
16790 int arg3 ;
16791 int arg4 ;
16792 bool arg5 = (bool) false ;
16793 void *argp1 = 0 ;
16794 int res1 = 0 ;
16795 void *argp2 = 0 ;
16796 int res2 = 0 ;
16797 int val3 ;
16798 int ecode3 = 0 ;
16799 int val4 ;
16800 int ecode4 = 0 ;
16801 bool val5 ;
16802 int ecode5 = 0 ;
16803 PyObject * obj0 = 0 ;
16804 PyObject * obj1 = 0 ;
16805 PyObject * obj2 = 0 ;
16806 PyObject * obj3 = 0 ;
16807 PyObject * obj4 = 0 ;
16808 char * kwnames[] = {
16809 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16810 };
16811
16812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16814 if (!SWIG_IsOK(res1)) {
16815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16816 }
16817 arg1 = reinterpret_cast< wxDC * >(argp1);
16818 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16819 if (!SWIG_IsOK(res2)) {
16820 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16821 }
16822 if (!argp2) {
16823 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16824 }
16825 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16826 ecode3 = SWIG_AsVal_int(obj2, &val3);
16827 if (!SWIG_IsOK(ecode3)) {
16828 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16829 }
16830 arg3 = static_cast< int >(val3);
16831 ecode4 = SWIG_AsVal_int(obj3, &val4);
16832 if (!SWIG_IsOK(ecode4)) {
16833 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16834 }
16835 arg4 = static_cast< int >(val4);
16836 if (obj4) {
16837 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16838 if (!SWIG_IsOK(ecode5)) {
16839 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16840 }
16841 arg5 = static_cast< bool >(val5);
16842 }
16843 {
16844 PyThreadState* __tstate = wxPyBeginAllowThreads();
16845 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
16846 wxPyEndAllowThreads(__tstate);
16847 if (PyErr_Occurred()) SWIG_fail;
16848 }
16849 resultobj = SWIG_Py_Void();
16850 return resultobj;
16851 fail:
16852 return NULL;
16853 }
16854
16855
16856 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16857 PyObject *resultobj = 0;
16858 wxDC *arg1 = (wxDC *) 0 ;
16859 wxBitmap *arg2 = 0 ;
16860 wxPoint *arg3 = 0 ;
16861 bool arg4 = (bool) false ;
16862 void *argp1 = 0 ;
16863 int res1 = 0 ;
16864 void *argp2 = 0 ;
16865 int res2 = 0 ;
16866 wxPoint temp3 ;
16867 bool val4 ;
16868 int ecode4 = 0 ;
16869 PyObject * obj0 = 0 ;
16870 PyObject * obj1 = 0 ;
16871 PyObject * obj2 = 0 ;
16872 PyObject * obj3 = 0 ;
16873 char * kwnames[] = {
16874 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16875 };
16876
16877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16879 if (!SWIG_IsOK(res1)) {
16880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16881 }
16882 arg1 = reinterpret_cast< wxDC * >(argp1);
16883 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16884 if (!SWIG_IsOK(res2)) {
16885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16886 }
16887 if (!argp2) {
16888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16889 }
16890 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16891 {
16892 arg3 = &temp3;
16893 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16894 }
16895 if (obj3) {
16896 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16897 if (!SWIG_IsOK(ecode4)) {
16898 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16899 }
16900 arg4 = static_cast< bool >(val4);
16901 }
16902 {
16903 PyThreadState* __tstate = wxPyBeginAllowThreads();
16904 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
16905 wxPyEndAllowThreads(__tstate);
16906 if (PyErr_Occurred()) SWIG_fail;
16907 }
16908 resultobj = SWIG_Py_Void();
16909 return resultobj;
16910 fail:
16911 return NULL;
16912 }
16913
16914
16915 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16916 PyObject *resultobj = 0;
16917 wxDC *arg1 = (wxDC *) 0 ;
16918 wxString *arg2 = 0 ;
16919 int arg3 ;
16920 int arg4 ;
16921 void *argp1 = 0 ;
16922 int res1 = 0 ;
16923 bool temp2 = false ;
16924 int val3 ;
16925 int ecode3 = 0 ;
16926 int val4 ;
16927 int ecode4 = 0 ;
16928 PyObject * obj0 = 0 ;
16929 PyObject * obj1 = 0 ;
16930 PyObject * obj2 = 0 ;
16931 PyObject * obj3 = 0 ;
16932 char * kwnames[] = {
16933 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16934 };
16935
16936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16938 if (!SWIG_IsOK(res1)) {
16939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16940 }
16941 arg1 = reinterpret_cast< wxDC * >(argp1);
16942 {
16943 arg2 = wxString_in_helper(obj1);
16944 if (arg2 == NULL) SWIG_fail;
16945 temp2 = true;
16946 }
16947 ecode3 = SWIG_AsVal_int(obj2, &val3);
16948 if (!SWIG_IsOK(ecode3)) {
16949 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16950 }
16951 arg3 = static_cast< int >(val3);
16952 ecode4 = SWIG_AsVal_int(obj3, &val4);
16953 if (!SWIG_IsOK(ecode4)) {
16954 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16955 }
16956 arg4 = static_cast< int >(val4);
16957 {
16958 PyThreadState* __tstate = wxPyBeginAllowThreads();
16959 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
16960 wxPyEndAllowThreads(__tstate);
16961 if (PyErr_Occurred()) SWIG_fail;
16962 }
16963 resultobj = SWIG_Py_Void();
16964 {
16965 if (temp2)
16966 delete arg2;
16967 }
16968 return resultobj;
16969 fail:
16970 {
16971 if (temp2)
16972 delete arg2;
16973 }
16974 return NULL;
16975 }
16976
16977
16978 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16979 PyObject *resultobj = 0;
16980 wxDC *arg1 = (wxDC *) 0 ;
16981 wxString *arg2 = 0 ;
16982 wxPoint *arg3 = 0 ;
16983 void *argp1 = 0 ;
16984 int res1 = 0 ;
16985 bool temp2 = false ;
16986 wxPoint temp3 ;
16987 PyObject * obj0 = 0 ;
16988 PyObject * obj1 = 0 ;
16989 PyObject * obj2 = 0 ;
16990 char * kwnames[] = {
16991 (char *) "self",(char *) "text",(char *) "pt", NULL
16992 };
16993
16994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16996 if (!SWIG_IsOK(res1)) {
16997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16998 }
16999 arg1 = reinterpret_cast< wxDC * >(argp1);
17000 {
17001 arg2 = wxString_in_helper(obj1);
17002 if (arg2 == NULL) SWIG_fail;
17003 temp2 = true;
17004 }
17005 {
17006 arg3 = &temp3;
17007 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17008 }
17009 {
17010 PyThreadState* __tstate = wxPyBeginAllowThreads();
17011 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
17012 wxPyEndAllowThreads(__tstate);
17013 if (PyErr_Occurred()) SWIG_fail;
17014 }
17015 resultobj = SWIG_Py_Void();
17016 {
17017 if (temp2)
17018 delete arg2;
17019 }
17020 return resultobj;
17021 fail:
17022 {
17023 if (temp2)
17024 delete arg2;
17025 }
17026 return NULL;
17027 }
17028
17029
17030 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17031 PyObject *resultobj = 0;
17032 wxDC *arg1 = (wxDC *) 0 ;
17033 wxString *arg2 = 0 ;
17034 int arg3 ;
17035 int arg4 ;
17036 double arg5 ;
17037 void *argp1 = 0 ;
17038 int res1 = 0 ;
17039 bool temp2 = false ;
17040 int val3 ;
17041 int ecode3 = 0 ;
17042 int val4 ;
17043 int ecode4 = 0 ;
17044 double val5 ;
17045 int ecode5 = 0 ;
17046 PyObject * obj0 = 0 ;
17047 PyObject * obj1 = 0 ;
17048 PyObject * obj2 = 0 ;
17049 PyObject * obj3 = 0 ;
17050 PyObject * obj4 = 0 ;
17051 char * kwnames[] = {
17052 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
17053 };
17054
17055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17057 if (!SWIG_IsOK(res1)) {
17058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
17059 }
17060 arg1 = reinterpret_cast< wxDC * >(argp1);
17061 {
17062 arg2 = wxString_in_helper(obj1);
17063 if (arg2 == NULL) SWIG_fail;
17064 temp2 = true;
17065 }
17066 ecode3 = SWIG_AsVal_int(obj2, &val3);
17067 if (!SWIG_IsOK(ecode3)) {
17068 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
17069 }
17070 arg3 = static_cast< int >(val3);
17071 ecode4 = SWIG_AsVal_int(obj3, &val4);
17072 if (!SWIG_IsOK(ecode4)) {
17073 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
17074 }
17075 arg4 = static_cast< int >(val4);
17076 ecode5 = SWIG_AsVal_double(obj4, &val5);
17077 if (!SWIG_IsOK(ecode5)) {
17078 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
17079 }
17080 arg5 = static_cast< double >(val5);
17081 {
17082 PyThreadState* __tstate = wxPyBeginAllowThreads();
17083 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
17084 wxPyEndAllowThreads(__tstate);
17085 if (PyErr_Occurred()) SWIG_fail;
17086 }
17087 resultobj = SWIG_Py_Void();
17088 {
17089 if (temp2)
17090 delete arg2;
17091 }
17092 return resultobj;
17093 fail:
17094 {
17095 if (temp2)
17096 delete arg2;
17097 }
17098 return NULL;
17099 }
17100
17101
17102 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17103 PyObject *resultobj = 0;
17104 wxDC *arg1 = (wxDC *) 0 ;
17105 wxString *arg2 = 0 ;
17106 wxPoint *arg3 = 0 ;
17107 double arg4 ;
17108 void *argp1 = 0 ;
17109 int res1 = 0 ;
17110 bool temp2 = false ;
17111 wxPoint temp3 ;
17112 double val4 ;
17113 int ecode4 = 0 ;
17114 PyObject * obj0 = 0 ;
17115 PyObject * obj1 = 0 ;
17116 PyObject * obj2 = 0 ;
17117 PyObject * obj3 = 0 ;
17118 char * kwnames[] = {
17119 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
17120 };
17121
17122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17124 if (!SWIG_IsOK(res1)) {
17125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17126 }
17127 arg1 = reinterpret_cast< wxDC * >(argp1);
17128 {
17129 arg2 = wxString_in_helper(obj1);
17130 if (arg2 == NULL) SWIG_fail;
17131 temp2 = true;
17132 }
17133 {
17134 arg3 = &temp3;
17135 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17136 }
17137 ecode4 = SWIG_AsVal_double(obj3, &val4);
17138 if (!SWIG_IsOK(ecode4)) {
17139 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
17140 }
17141 arg4 = static_cast< double >(val4);
17142 {
17143 PyThreadState* __tstate = wxPyBeginAllowThreads();
17144 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
17145 wxPyEndAllowThreads(__tstate);
17146 if (PyErr_Occurred()) SWIG_fail;
17147 }
17148 resultobj = SWIG_Py_Void();
17149 {
17150 if (temp2)
17151 delete arg2;
17152 }
17153 return resultobj;
17154 fail:
17155 {
17156 if (temp2)
17157 delete arg2;
17158 }
17159 return NULL;
17160 }
17161
17162
17163 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17164 PyObject *resultobj = 0;
17165 wxDC *arg1 = (wxDC *) 0 ;
17166 int arg2 ;
17167 int arg3 ;
17168 int arg4 ;
17169 int arg5 ;
17170 wxDC *arg6 = (wxDC *) 0 ;
17171 int arg7 ;
17172 int arg8 ;
17173 int arg9 = (int) wxCOPY ;
17174 bool arg10 = (bool) false ;
17175 int arg11 = (int) -1 ;
17176 int arg12 = (int) -1 ;
17177 bool result;
17178 void *argp1 = 0 ;
17179 int res1 = 0 ;
17180 int val2 ;
17181 int ecode2 = 0 ;
17182 int val3 ;
17183 int ecode3 = 0 ;
17184 int val4 ;
17185 int ecode4 = 0 ;
17186 int val5 ;
17187 int ecode5 = 0 ;
17188 void *argp6 = 0 ;
17189 int res6 = 0 ;
17190 int val7 ;
17191 int ecode7 = 0 ;
17192 int val8 ;
17193 int ecode8 = 0 ;
17194 int val9 ;
17195 int ecode9 = 0 ;
17196 bool val10 ;
17197 int ecode10 = 0 ;
17198 int val11 ;
17199 int ecode11 = 0 ;
17200 int val12 ;
17201 int ecode12 = 0 ;
17202 PyObject * obj0 = 0 ;
17203 PyObject * obj1 = 0 ;
17204 PyObject * obj2 = 0 ;
17205 PyObject * obj3 = 0 ;
17206 PyObject * obj4 = 0 ;
17207 PyObject * obj5 = 0 ;
17208 PyObject * obj6 = 0 ;
17209 PyObject * obj7 = 0 ;
17210 PyObject * obj8 = 0 ;
17211 PyObject * obj9 = 0 ;
17212 PyObject * obj10 = 0 ;
17213 PyObject * obj11 = 0 ;
17214 char * kwnames[] = {
17215 (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
17216 };
17217
17218 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;
17219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17220 if (!SWIG_IsOK(res1)) {
17221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
17222 }
17223 arg1 = reinterpret_cast< wxDC * >(argp1);
17224 ecode2 = SWIG_AsVal_int(obj1, &val2);
17225 if (!SWIG_IsOK(ecode2)) {
17226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
17227 }
17228 arg2 = static_cast< int >(val2);
17229 ecode3 = SWIG_AsVal_int(obj2, &val3);
17230 if (!SWIG_IsOK(ecode3)) {
17231 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
17232 }
17233 arg3 = static_cast< int >(val3);
17234 ecode4 = SWIG_AsVal_int(obj3, &val4);
17235 if (!SWIG_IsOK(ecode4)) {
17236 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
17237 }
17238 arg4 = static_cast< int >(val4);
17239 ecode5 = SWIG_AsVal_int(obj4, &val5);
17240 if (!SWIG_IsOK(ecode5)) {
17241 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
17242 }
17243 arg5 = static_cast< int >(val5);
17244 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
17245 if (!SWIG_IsOK(res6)) {
17246 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
17247 }
17248 arg6 = reinterpret_cast< wxDC * >(argp6);
17249 ecode7 = SWIG_AsVal_int(obj6, &val7);
17250 if (!SWIG_IsOK(ecode7)) {
17251 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
17252 }
17253 arg7 = static_cast< int >(val7);
17254 ecode8 = SWIG_AsVal_int(obj7, &val8);
17255 if (!SWIG_IsOK(ecode8)) {
17256 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
17257 }
17258 arg8 = static_cast< int >(val8);
17259 if (obj8) {
17260 ecode9 = SWIG_AsVal_int(obj8, &val9);
17261 if (!SWIG_IsOK(ecode9)) {
17262 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
17263 }
17264 arg9 = static_cast< int >(val9);
17265 }
17266 if (obj9) {
17267 ecode10 = SWIG_AsVal_bool(obj9, &val10);
17268 if (!SWIG_IsOK(ecode10)) {
17269 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
17270 }
17271 arg10 = static_cast< bool >(val10);
17272 }
17273 if (obj10) {
17274 ecode11 = SWIG_AsVal_int(obj10, &val11);
17275 if (!SWIG_IsOK(ecode11)) {
17276 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
17277 }
17278 arg11 = static_cast< int >(val11);
17279 }
17280 if (obj11) {
17281 ecode12 = SWIG_AsVal_int(obj11, &val12);
17282 if (!SWIG_IsOK(ecode12)) {
17283 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
17284 }
17285 arg12 = static_cast< int >(val12);
17286 }
17287 {
17288 PyThreadState* __tstate = wxPyBeginAllowThreads();
17289 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
17290 wxPyEndAllowThreads(__tstate);
17291 if (PyErr_Occurred()) SWIG_fail;
17292 }
17293 {
17294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17295 }
17296 return resultobj;
17297 fail:
17298 return NULL;
17299 }
17300
17301
17302 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17303 PyObject *resultobj = 0;
17304 wxDC *arg1 = (wxDC *) 0 ;
17305 wxPoint *arg2 = 0 ;
17306 wxSize *arg3 = 0 ;
17307 wxDC *arg4 = (wxDC *) 0 ;
17308 wxPoint *arg5 = 0 ;
17309 int arg6 = (int) wxCOPY ;
17310 bool arg7 = (bool) false ;
17311 wxPoint const &arg8_defvalue = wxDefaultPosition ;
17312 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
17313 bool result;
17314 void *argp1 = 0 ;
17315 int res1 = 0 ;
17316 wxPoint temp2 ;
17317 wxSize temp3 ;
17318 void *argp4 = 0 ;
17319 int res4 = 0 ;
17320 wxPoint temp5 ;
17321 int val6 ;
17322 int ecode6 = 0 ;
17323 bool val7 ;
17324 int ecode7 = 0 ;
17325 wxPoint temp8 ;
17326 PyObject * obj0 = 0 ;
17327 PyObject * obj1 = 0 ;
17328 PyObject * obj2 = 0 ;
17329 PyObject * obj3 = 0 ;
17330 PyObject * obj4 = 0 ;
17331 PyObject * obj5 = 0 ;
17332 PyObject * obj6 = 0 ;
17333 PyObject * obj7 = 0 ;
17334 char * kwnames[] = {
17335 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
17336 };
17337
17338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17340 if (!SWIG_IsOK(res1)) {
17341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17342 }
17343 arg1 = reinterpret_cast< wxDC * >(argp1);
17344 {
17345 arg2 = &temp2;
17346 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17347 }
17348 {
17349 arg3 = &temp3;
17350 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17351 }
17352 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
17353 if (!SWIG_IsOK(res4)) {
17354 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
17355 }
17356 arg4 = reinterpret_cast< wxDC * >(argp4);
17357 {
17358 arg5 = &temp5;
17359 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17360 }
17361 if (obj5) {
17362 ecode6 = SWIG_AsVal_int(obj5, &val6);
17363 if (!SWIG_IsOK(ecode6)) {
17364 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
17365 }
17366 arg6 = static_cast< int >(val6);
17367 }
17368 if (obj6) {
17369 ecode7 = SWIG_AsVal_bool(obj6, &val7);
17370 if (!SWIG_IsOK(ecode7)) {
17371 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
17372 }
17373 arg7 = static_cast< bool >(val7);
17374 }
17375 if (obj7) {
17376 {
17377 arg8 = &temp8;
17378 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
17379 }
17380 }
17381 {
17382 PyThreadState* __tstate = wxPyBeginAllowThreads();
17383 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
17384 wxPyEndAllowThreads(__tstate);
17385 if (PyErr_Occurred()) SWIG_fail;
17386 }
17387 {
17388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17389 }
17390 return resultobj;
17391 fail:
17392 return NULL;
17393 }
17394
17395
17396 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17397 PyObject *resultobj = 0;
17398 wxDC *arg1 = (wxDC *) 0 ;
17399 int arg2 ;
17400 int arg3 ;
17401 int arg4 ;
17402 int arg5 ;
17403 void *argp1 = 0 ;
17404 int res1 = 0 ;
17405 int val2 ;
17406 int ecode2 = 0 ;
17407 int val3 ;
17408 int ecode3 = 0 ;
17409 int val4 ;
17410 int ecode4 = 0 ;
17411 int val5 ;
17412 int ecode5 = 0 ;
17413 PyObject * obj0 = 0 ;
17414 PyObject * obj1 = 0 ;
17415 PyObject * obj2 = 0 ;
17416 PyObject * obj3 = 0 ;
17417 PyObject * obj4 = 0 ;
17418 char * kwnames[] = {
17419 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17420 };
17421
17422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17424 if (!SWIG_IsOK(res1)) {
17425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17426 }
17427 arg1 = reinterpret_cast< wxDC * >(argp1);
17428 ecode2 = SWIG_AsVal_int(obj1, &val2);
17429 if (!SWIG_IsOK(ecode2)) {
17430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
17431 }
17432 arg2 = static_cast< int >(val2);
17433 ecode3 = SWIG_AsVal_int(obj2, &val3);
17434 if (!SWIG_IsOK(ecode3)) {
17435 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
17436 }
17437 arg3 = static_cast< int >(val3);
17438 ecode4 = SWIG_AsVal_int(obj3, &val4);
17439 if (!SWIG_IsOK(ecode4)) {
17440 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
17441 }
17442 arg4 = static_cast< int >(val4);
17443 ecode5 = SWIG_AsVal_int(obj4, &val5);
17444 if (!SWIG_IsOK(ecode5)) {
17445 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
17446 }
17447 arg5 = static_cast< int >(val5);
17448 {
17449 PyThreadState* __tstate = wxPyBeginAllowThreads();
17450 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
17451 wxPyEndAllowThreads(__tstate);
17452 if (PyErr_Occurred()) SWIG_fail;
17453 }
17454 resultobj = SWIG_Py_Void();
17455 return resultobj;
17456 fail:
17457 return NULL;
17458 }
17459
17460
17461 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17462 PyObject *resultobj = 0;
17463 wxDC *arg1 = (wxDC *) 0 ;
17464 wxPoint *arg2 = 0 ;
17465 wxSize *arg3 = 0 ;
17466 void *argp1 = 0 ;
17467 int res1 = 0 ;
17468 wxPoint temp2 ;
17469 wxSize temp3 ;
17470 PyObject * obj0 = 0 ;
17471 PyObject * obj1 = 0 ;
17472 PyObject * obj2 = 0 ;
17473 char * kwnames[] = {
17474 (char *) "self",(char *) "pt",(char *) "sz", NULL
17475 };
17476
17477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17479 if (!SWIG_IsOK(res1)) {
17480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17481 }
17482 arg1 = reinterpret_cast< wxDC * >(argp1);
17483 {
17484 arg2 = &temp2;
17485 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17486 }
17487 {
17488 arg3 = &temp3;
17489 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17490 }
17491 {
17492 PyThreadState* __tstate = wxPyBeginAllowThreads();
17493 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
17494 wxPyEndAllowThreads(__tstate);
17495 if (PyErr_Occurred()) SWIG_fail;
17496 }
17497 resultobj = SWIG_Py_Void();
17498 return resultobj;
17499 fail:
17500 return NULL;
17501 }
17502
17503
17504 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17505 PyObject *resultobj = 0;
17506 wxDC *arg1 = (wxDC *) 0 ;
17507 wxRegion *arg2 = 0 ;
17508 void *argp1 = 0 ;
17509 int res1 = 0 ;
17510 void *argp2 = 0 ;
17511 int res2 = 0 ;
17512 PyObject * obj0 = 0 ;
17513 PyObject * obj1 = 0 ;
17514 char * kwnames[] = {
17515 (char *) "self",(char *) "region", NULL
17516 };
17517
17518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
17519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17520 if (!SWIG_IsOK(res1)) {
17521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17522 }
17523 arg1 = reinterpret_cast< wxDC * >(argp1);
17524 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
17525 if (!SWIG_IsOK(res2)) {
17526 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
17527 }
17528 if (!argp2) {
17529 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
17530 }
17531 arg2 = reinterpret_cast< wxRegion * >(argp2);
17532 {
17533 PyThreadState* __tstate = wxPyBeginAllowThreads();
17534 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
17535 wxPyEndAllowThreads(__tstate);
17536 if (PyErr_Occurred()) SWIG_fail;
17537 }
17538 resultobj = SWIG_Py_Void();
17539 return resultobj;
17540 fail:
17541 return NULL;
17542 }
17543
17544
17545 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17546 PyObject *resultobj = 0;
17547 wxDC *arg1 = (wxDC *) 0 ;
17548 wxRect *arg2 = 0 ;
17549 void *argp1 = 0 ;
17550 int res1 = 0 ;
17551 wxRect temp2 ;
17552 PyObject * obj0 = 0 ;
17553 PyObject * obj1 = 0 ;
17554 char * kwnames[] = {
17555 (char *) "self",(char *) "rect", NULL
17556 };
17557
17558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
17559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17560 if (!SWIG_IsOK(res1)) {
17561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17562 }
17563 arg1 = reinterpret_cast< wxDC * >(argp1);
17564 {
17565 arg2 = &temp2;
17566 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17567 }
17568 {
17569 PyThreadState* __tstate = wxPyBeginAllowThreads();
17570 (arg1)->SetClippingRegion((wxRect const &)*arg2);
17571 wxPyEndAllowThreads(__tstate);
17572 if (PyErr_Occurred()) SWIG_fail;
17573 }
17574 resultobj = SWIG_Py_Void();
17575 return resultobj;
17576 fail:
17577 return NULL;
17578 }
17579
17580
17581 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17582 PyObject *resultobj = 0;
17583 wxDC *arg1 = (wxDC *) 0 ;
17584 int arg2 ;
17585 wxPoint *arg3 = (wxPoint *) 0 ;
17586 int arg4 = (int) 0 ;
17587 int arg5 = (int) 0 ;
17588 void *argp1 = 0 ;
17589 int res1 = 0 ;
17590 int val4 ;
17591 int ecode4 = 0 ;
17592 int val5 ;
17593 int ecode5 = 0 ;
17594 PyObject * obj0 = 0 ;
17595 PyObject * obj1 = 0 ;
17596 PyObject * obj2 = 0 ;
17597 PyObject * obj3 = 0 ;
17598 char * kwnames[] = {
17599 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
17600 };
17601
17602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17604 if (!SWIG_IsOK(res1)) {
17605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
17606 }
17607 arg1 = reinterpret_cast< wxDC * >(argp1);
17608 {
17609 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17610 if (arg3 == NULL) SWIG_fail;
17611 }
17612 if (obj2) {
17613 ecode4 = SWIG_AsVal_int(obj2, &val4);
17614 if (!SWIG_IsOK(ecode4)) {
17615 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
17616 }
17617 arg4 = static_cast< int >(val4);
17618 }
17619 if (obj3) {
17620 ecode5 = SWIG_AsVal_int(obj3, &val5);
17621 if (!SWIG_IsOK(ecode5)) {
17622 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
17623 }
17624 arg5 = static_cast< int >(val5);
17625 }
17626 {
17627 PyThreadState* __tstate = wxPyBeginAllowThreads();
17628 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
17629 wxPyEndAllowThreads(__tstate);
17630 if (PyErr_Occurred()) SWIG_fail;
17631 }
17632 resultobj = SWIG_Py_Void();
17633 {
17634 if (arg3) delete [] arg3;
17635 }
17636 return resultobj;
17637 fail:
17638 {
17639 if (arg3) delete [] arg3;
17640 }
17641 return NULL;
17642 }
17643
17644
17645 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17646 PyObject *resultobj = 0;
17647 wxDC *arg1 = (wxDC *) 0 ;
17648 int arg2 ;
17649 wxPoint *arg3 = (wxPoint *) 0 ;
17650 int arg4 = (int) 0 ;
17651 int arg5 = (int) 0 ;
17652 int arg6 = (int) wxODDEVEN_RULE ;
17653 void *argp1 = 0 ;
17654 int res1 = 0 ;
17655 int val4 ;
17656 int ecode4 = 0 ;
17657 int val5 ;
17658 int ecode5 = 0 ;
17659 int val6 ;
17660 int ecode6 = 0 ;
17661 PyObject * obj0 = 0 ;
17662 PyObject * obj1 = 0 ;
17663 PyObject * obj2 = 0 ;
17664 PyObject * obj3 = 0 ;
17665 PyObject * obj4 = 0 ;
17666 char * kwnames[] = {
17667 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
17668 };
17669
17670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17672 if (!SWIG_IsOK(res1)) {
17673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
17674 }
17675 arg1 = reinterpret_cast< wxDC * >(argp1);
17676 {
17677 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17678 if (arg3 == NULL) SWIG_fail;
17679 }
17680 if (obj2) {
17681 ecode4 = SWIG_AsVal_int(obj2, &val4);
17682 if (!SWIG_IsOK(ecode4)) {
17683 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
17684 }
17685 arg4 = static_cast< int >(val4);
17686 }
17687 if (obj3) {
17688 ecode5 = SWIG_AsVal_int(obj3, &val5);
17689 if (!SWIG_IsOK(ecode5)) {
17690 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
17691 }
17692 arg5 = static_cast< int >(val5);
17693 }
17694 if (obj4) {
17695 ecode6 = SWIG_AsVal_int(obj4, &val6);
17696 if (!SWIG_IsOK(ecode6)) {
17697 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
17698 }
17699 arg6 = static_cast< int >(val6);
17700 }
17701 {
17702 PyThreadState* __tstate = wxPyBeginAllowThreads();
17703 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
17704 wxPyEndAllowThreads(__tstate);
17705 if (PyErr_Occurred()) SWIG_fail;
17706 }
17707 resultobj = SWIG_Py_Void();
17708 {
17709 if (arg3) delete [] arg3;
17710 }
17711 return resultobj;
17712 fail:
17713 {
17714 if (arg3) delete [] arg3;
17715 }
17716 return NULL;
17717 }
17718
17719
17720 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17721 PyObject *resultobj = 0;
17722 wxDC *arg1 = (wxDC *) 0 ;
17723 wxString *arg2 = 0 ;
17724 wxRect *arg3 = 0 ;
17725 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17726 int arg5 = (int) -1 ;
17727 void *argp1 = 0 ;
17728 int res1 = 0 ;
17729 bool temp2 = false ;
17730 wxRect temp3 ;
17731 int val4 ;
17732 int ecode4 = 0 ;
17733 int val5 ;
17734 int ecode5 = 0 ;
17735 PyObject * obj0 = 0 ;
17736 PyObject * obj1 = 0 ;
17737 PyObject * obj2 = 0 ;
17738 PyObject * obj3 = 0 ;
17739 PyObject * obj4 = 0 ;
17740 char * kwnames[] = {
17741 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17742 };
17743
17744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17746 if (!SWIG_IsOK(res1)) {
17747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17748 }
17749 arg1 = reinterpret_cast< wxDC * >(argp1);
17750 {
17751 arg2 = wxString_in_helper(obj1);
17752 if (arg2 == NULL) SWIG_fail;
17753 temp2 = true;
17754 }
17755 {
17756 arg3 = &temp3;
17757 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17758 }
17759 if (obj3) {
17760 ecode4 = SWIG_AsVal_int(obj3, &val4);
17761 if (!SWIG_IsOK(ecode4)) {
17762 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17763 }
17764 arg4 = static_cast< int >(val4);
17765 }
17766 if (obj4) {
17767 ecode5 = SWIG_AsVal_int(obj4, &val5);
17768 if (!SWIG_IsOK(ecode5)) {
17769 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17770 }
17771 arg5 = static_cast< int >(val5);
17772 }
17773 {
17774 PyThreadState* __tstate = wxPyBeginAllowThreads();
17775 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
17776 wxPyEndAllowThreads(__tstate);
17777 if (PyErr_Occurred()) SWIG_fail;
17778 }
17779 resultobj = SWIG_Py_Void();
17780 {
17781 if (temp2)
17782 delete arg2;
17783 }
17784 return resultobj;
17785 fail:
17786 {
17787 if (temp2)
17788 delete arg2;
17789 }
17790 return NULL;
17791 }
17792
17793
17794 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17795 PyObject *resultobj = 0;
17796 wxDC *arg1 = (wxDC *) 0 ;
17797 wxString *arg2 = 0 ;
17798 wxBitmap *arg3 = 0 ;
17799 wxRect *arg4 = 0 ;
17800 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17801 int arg6 = (int) -1 ;
17802 wxRect result;
17803 void *argp1 = 0 ;
17804 int res1 = 0 ;
17805 bool temp2 = false ;
17806 void *argp3 = 0 ;
17807 int res3 = 0 ;
17808 wxRect temp4 ;
17809 int val5 ;
17810 int ecode5 = 0 ;
17811 int val6 ;
17812 int ecode6 = 0 ;
17813 PyObject * obj0 = 0 ;
17814 PyObject * obj1 = 0 ;
17815 PyObject * obj2 = 0 ;
17816 PyObject * obj3 = 0 ;
17817 PyObject * obj4 = 0 ;
17818 PyObject * obj5 = 0 ;
17819 char * kwnames[] = {
17820 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17821 };
17822
17823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17825 if (!SWIG_IsOK(res1)) {
17826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17827 }
17828 arg1 = reinterpret_cast< wxDC * >(argp1);
17829 {
17830 arg2 = wxString_in_helper(obj1);
17831 if (arg2 == NULL) SWIG_fail;
17832 temp2 = true;
17833 }
17834 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
17835 if (!SWIG_IsOK(res3)) {
17836 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17837 }
17838 if (!argp3) {
17839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17840 }
17841 arg3 = reinterpret_cast< wxBitmap * >(argp3);
17842 {
17843 arg4 = &temp4;
17844 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
17845 }
17846 if (obj4) {
17847 ecode5 = SWIG_AsVal_int(obj4, &val5);
17848 if (!SWIG_IsOK(ecode5)) {
17849 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17850 }
17851 arg5 = static_cast< int >(val5);
17852 }
17853 if (obj5) {
17854 ecode6 = SWIG_AsVal_int(obj5, &val6);
17855 if (!SWIG_IsOK(ecode6)) {
17856 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17857 }
17858 arg6 = static_cast< int >(val6);
17859 }
17860 {
17861 PyThreadState* __tstate = wxPyBeginAllowThreads();
17862 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
17863 wxPyEndAllowThreads(__tstate);
17864 if (PyErr_Occurred()) SWIG_fail;
17865 }
17866 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17867 {
17868 if (temp2)
17869 delete arg2;
17870 }
17871 return resultobj;
17872 fail:
17873 {
17874 if (temp2)
17875 delete arg2;
17876 }
17877 return NULL;
17878 }
17879
17880
17881 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17882 PyObject *resultobj = 0;
17883 wxDC *arg1 = (wxDC *) 0 ;
17884 int arg2 ;
17885 wxPoint *arg3 = (wxPoint *) 0 ;
17886 void *argp1 = 0 ;
17887 int res1 = 0 ;
17888 PyObject * obj0 = 0 ;
17889 PyObject * obj1 = 0 ;
17890 char * kwnames[] = {
17891 (char *) "self",(char *) "points", NULL
17892 };
17893
17894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
17895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17896 if (!SWIG_IsOK(res1)) {
17897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17898 }
17899 arg1 = reinterpret_cast< wxDC * >(argp1);
17900 {
17901 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17902 if (arg3 == NULL) SWIG_fail;
17903 }
17904 {
17905 PyThreadState* __tstate = wxPyBeginAllowThreads();
17906 (arg1)->DrawSpline(arg2,arg3);
17907 wxPyEndAllowThreads(__tstate);
17908 if (PyErr_Occurred()) SWIG_fail;
17909 }
17910 resultobj = SWIG_Py_Void();
17911 {
17912 if (arg3) delete [] arg3;
17913 }
17914 return resultobj;
17915 fail:
17916 {
17917 if (arg3) delete [] arg3;
17918 }
17919 return NULL;
17920 }
17921
17922
17923 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17924 PyObject *resultobj = 0;
17925 wxDC *arg1 = (wxDC *) 0 ;
17926 void *argp1 = 0 ;
17927 int res1 = 0 ;
17928 PyObject *swig_obj[1] ;
17929
17930 if (!args) SWIG_fail;
17931 swig_obj[0] = args;
17932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17933 if (!SWIG_IsOK(res1)) {
17934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17935 }
17936 arg1 = reinterpret_cast< wxDC * >(argp1);
17937 {
17938 PyThreadState* __tstate = wxPyBeginAllowThreads();
17939 (arg1)->Clear();
17940 wxPyEndAllowThreads(__tstate);
17941 if (PyErr_Occurred()) SWIG_fail;
17942 }
17943 resultobj = SWIG_Py_Void();
17944 return resultobj;
17945 fail:
17946 return NULL;
17947 }
17948
17949
17950 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17951 PyObject *resultobj = 0;
17952 wxDC *arg1 = (wxDC *) 0 ;
17953 wxString *arg2 = 0 ;
17954 bool result;
17955 void *argp1 = 0 ;
17956 int res1 = 0 ;
17957 bool temp2 = false ;
17958 PyObject * obj0 = 0 ;
17959 PyObject * obj1 = 0 ;
17960 char * kwnames[] = {
17961 (char *) "self",(char *) "message", NULL
17962 };
17963
17964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
17965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17966 if (!SWIG_IsOK(res1)) {
17967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17968 }
17969 arg1 = reinterpret_cast< wxDC * >(argp1);
17970 {
17971 arg2 = wxString_in_helper(obj1);
17972 if (arg2 == NULL) SWIG_fail;
17973 temp2 = true;
17974 }
17975 {
17976 PyThreadState* __tstate = wxPyBeginAllowThreads();
17977 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
17978 wxPyEndAllowThreads(__tstate);
17979 if (PyErr_Occurred()) SWIG_fail;
17980 }
17981 {
17982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17983 }
17984 {
17985 if (temp2)
17986 delete arg2;
17987 }
17988 return resultobj;
17989 fail:
17990 {
17991 if (temp2)
17992 delete arg2;
17993 }
17994 return NULL;
17995 }
17996
17997
17998 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17999 PyObject *resultobj = 0;
18000 wxDC *arg1 = (wxDC *) 0 ;
18001 void *argp1 = 0 ;
18002 int res1 = 0 ;
18003 PyObject *swig_obj[1] ;
18004
18005 if (!args) SWIG_fail;
18006 swig_obj[0] = args;
18007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18008 if (!SWIG_IsOK(res1)) {
18009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
18010 }
18011 arg1 = reinterpret_cast< wxDC * >(argp1);
18012 {
18013 PyThreadState* __tstate = wxPyBeginAllowThreads();
18014 (arg1)->EndDoc();
18015 wxPyEndAllowThreads(__tstate);
18016 if (PyErr_Occurred()) SWIG_fail;
18017 }
18018 resultobj = SWIG_Py_Void();
18019 return resultobj;
18020 fail:
18021 return NULL;
18022 }
18023
18024
18025 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18026 PyObject *resultobj = 0;
18027 wxDC *arg1 = (wxDC *) 0 ;
18028 void *argp1 = 0 ;
18029 int res1 = 0 ;
18030 PyObject *swig_obj[1] ;
18031
18032 if (!args) SWIG_fail;
18033 swig_obj[0] = args;
18034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18035 if (!SWIG_IsOK(res1)) {
18036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
18037 }
18038 arg1 = reinterpret_cast< wxDC * >(argp1);
18039 {
18040 PyThreadState* __tstate = wxPyBeginAllowThreads();
18041 (arg1)->StartPage();
18042 wxPyEndAllowThreads(__tstate);
18043 if (PyErr_Occurred()) SWIG_fail;
18044 }
18045 resultobj = SWIG_Py_Void();
18046 return resultobj;
18047 fail:
18048 return NULL;
18049 }
18050
18051
18052 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18053 PyObject *resultobj = 0;
18054 wxDC *arg1 = (wxDC *) 0 ;
18055 void *argp1 = 0 ;
18056 int res1 = 0 ;
18057 PyObject *swig_obj[1] ;
18058
18059 if (!args) SWIG_fail;
18060 swig_obj[0] = args;
18061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18062 if (!SWIG_IsOK(res1)) {
18063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
18064 }
18065 arg1 = reinterpret_cast< wxDC * >(argp1);
18066 {
18067 PyThreadState* __tstate = wxPyBeginAllowThreads();
18068 (arg1)->EndPage();
18069 wxPyEndAllowThreads(__tstate);
18070 if (PyErr_Occurred()) SWIG_fail;
18071 }
18072 resultobj = SWIG_Py_Void();
18073 return resultobj;
18074 fail:
18075 return NULL;
18076 }
18077
18078
18079 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18080 PyObject *resultobj = 0;
18081 wxDC *arg1 = (wxDC *) 0 ;
18082 wxFont *arg2 = 0 ;
18083 void *argp1 = 0 ;
18084 int res1 = 0 ;
18085 void *argp2 = 0 ;
18086 int res2 = 0 ;
18087 PyObject * obj0 = 0 ;
18088 PyObject * obj1 = 0 ;
18089 char * kwnames[] = {
18090 (char *) "self",(char *) "font", NULL
18091 };
18092
18093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
18094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18095 if (!SWIG_IsOK(res1)) {
18096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
18097 }
18098 arg1 = reinterpret_cast< wxDC * >(argp1);
18099 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
18100 if (!SWIG_IsOK(res2)) {
18101 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
18102 }
18103 if (!argp2) {
18104 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
18105 }
18106 arg2 = reinterpret_cast< wxFont * >(argp2);
18107 {
18108 PyThreadState* __tstate = wxPyBeginAllowThreads();
18109 (arg1)->SetFont((wxFont const &)*arg2);
18110 wxPyEndAllowThreads(__tstate);
18111 if (PyErr_Occurred()) SWIG_fail;
18112 }
18113 resultobj = SWIG_Py_Void();
18114 return resultobj;
18115 fail:
18116 return NULL;
18117 }
18118
18119
18120 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18121 PyObject *resultobj = 0;
18122 wxDC *arg1 = (wxDC *) 0 ;
18123 wxPen *arg2 = 0 ;
18124 void *argp1 = 0 ;
18125 int res1 = 0 ;
18126 void *argp2 = 0 ;
18127 int res2 = 0 ;
18128 PyObject * obj0 = 0 ;
18129 PyObject * obj1 = 0 ;
18130 char * kwnames[] = {
18131 (char *) "self",(char *) "pen", NULL
18132 };
18133
18134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
18135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18136 if (!SWIG_IsOK(res1)) {
18137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
18138 }
18139 arg1 = reinterpret_cast< wxDC * >(argp1);
18140 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
18141 if (!SWIG_IsOK(res2)) {
18142 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
18143 }
18144 if (!argp2) {
18145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
18146 }
18147 arg2 = reinterpret_cast< wxPen * >(argp2);
18148 {
18149 PyThreadState* __tstate = wxPyBeginAllowThreads();
18150 (arg1)->SetPen((wxPen const &)*arg2);
18151 wxPyEndAllowThreads(__tstate);
18152 if (PyErr_Occurred()) SWIG_fail;
18153 }
18154 resultobj = SWIG_Py_Void();
18155 return resultobj;
18156 fail:
18157 return NULL;
18158 }
18159
18160
18161 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18162 PyObject *resultobj = 0;
18163 wxDC *arg1 = (wxDC *) 0 ;
18164 wxBrush *arg2 = 0 ;
18165 void *argp1 = 0 ;
18166 int res1 = 0 ;
18167 void *argp2 = 0 ;
18168 int res2 = 0 ;
18169 PyObject * obj0 = 0 ;
18170 PyObject * obj1 = 0 ;
18171 char * kwnames[] = {
18172 (char *) "self",(char *) "brush", NULL
18173 };
18174
18175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
18176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18177 if (!SWIG_IsOK(res1)) {
18178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
18179 }
18180 arg1 = reinterpret_cast< wxDC * >(argp1);
18181 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
18182 if (!SWIG_IsOK(res2)) {
18183 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
18184 }
18185 if (!argp2) {
18186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
18187 }
18188 arg2 = reinterpret_cast< wxBrush * >(argp2);
18189 {
18190 PyThreadState* __tstate = wxPyBeginAllowThreads();
18191 (arg1)->SetBrush((wxBrush const &)*arg2);
18192 wxPyEndAllowThreads(__tstate);
18193 if (PyErr_Occurred()) SWIG_fail;
18194 }
18195 resultobj = SWIG_Py_Void();
18196 return resultobj;
18197 fail:
18198 return NULL;
18199 }
18200
18201
18202 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18203 PyObject *resultobj = 0;
18204 wxDC *arg1 = (wxDC *) 0 ;
18205 wxBrush *arg2 = 0 ;
18206 void *argp1 = 0 ;
18207 int res1 = 0 ;
18208 void *argp2 = 0 ;
18209 int res2 = 0 ;
18210 PyObject * obj0 = 0 ;
18211 PyObject * obj1 = 0 ;
18212 char * kwnames[] = {
18213 (char *) "self",(char *) "brush", NULL
18214 };
18215
18216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
18217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18218 if (!SWIG_IsOK(res1)) {
18219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
18220 }
18221 arg1 = reinterpret_cast< wxDC * >(argp1);
18222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
18223 if (!SWIG_IsOK(res2)) {
18224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
18225 }
18226 if (!argp2) {
18227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
18228 }
18229 arg2 = reinterpret_cast< wxBrush * >(argp2);
18230 {
18231 PyThreadState* __tstate = wxPyBeginAllowThreads();
18232 (arg1)->SetBackground((wxBrush const &)*arg2);
18233 wxPyEndAllowThreads(__tstate);
18234 if (PyErr_Occurred()) SWIG_fail;
18235 }
18236 resultobj = SWIG_Py_Void();
18237 return resultobj;
18238 fail:
18239 return NULL;
18240 }
18241
18242
18243 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18244 PyObject *resultobj = 0;
18245 wxDC *arg1 = (wxDC *) 0 ;
18246 int arg2 ;
18247 void *argp1 = 0 ;
18248 int res1 = 0 ;
18249 int val2 ;
18250 int ecode2 = 0 ;
18251 PyObject * obj0 = 0 ;
18252 PyObject * obj1 = 0 ;
18253 char * kwnames[] = {
18254 (char *) "self",(char *) "mode", NULL
18255 };
18256
18257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
18258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18259 if (!SWIG_IsOK(res1)) {
18260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
18261 }
18262 arg1 = reinterpret_cast< wxDC * >(argp1);
18263 ecode2 = SWIG_AsVal_int(obj1, &val2);
18264 if (!SWIG_IsOK(ecode2)) {
18265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
18266 }
18267 arg2 = static_cast< int >(val2);
18268 {
18269 PyThreadState* __tstate = wxPyBeginAllowThreads();
18270 (arg1)->SetBackgroundMode(arg2);
18271 wxPyEndAllowThreads(__tstate);
18272 if (PyErr_Occurred()) SWIG_fail;
18273 }
18274 resultobj = SWIG_Py_Void();
18275 return resultobj;
18276 fail:
18277 return NULL;
18278 }
18279
18280
18281 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18282 PyObject *resultobj = 0;
18283 wxDC *arg1 = (wxDC *) 0 ;
18284 wxPalette *arg2 = 0 ;
18285 void *argp1 = 0 ;
18286 int res1 = 0 ;
18287 void *argp2 = 0 ;
18288 int res2 = 0 ;
18289 PyObject * obj0 = 0 ;
18290 PyObject * obj1 = 0 ;
18291 char * kwnames[] = {
18292 (char *) "self",(char *) "palette", NULL
18293 };
18294
18295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
18296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18297 if (!SWIG_IsOK(res1)) {
18298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
18299 }
18300 arg1 = reinterpret_cast< wxDC * >(argp1);
18301 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
18302 if (!SWIG_IsOK(res2)) {
18303 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
18304 }
18305 if (!argp2) {
18306 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
18307 }
18308 arg2 = reinterpret_cast< wxPalette * >(argp2);
18309 {
18310 PyThreadState* __tstate = wxPyBeginAllowThreads();
18311 (arg1)->SetPalette((wxPalette const &)*arg2);
18312 wxPyEndAllowThreads(__tstate);
18313 if (PyErr_Occurred()) SWIG_fail;
18314 }
18315 resultobj = SWIG_Py_Void();
18316 return resultobj;
18317 fail:
18318 return NULL;
18319 }
18320
18321
18322 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18323 PyObject *resultobj = 0;
18324 wxDC *arg1 = (wxDC *) 0 ;
18325 void *argp1 = 0 ;
18326 int res1 = 0 ;
18327 PyObject *swig_obj[1] ;
18328
18329 if (!args) SWIG_fail;
18330 swig_obj[0] = args;
18331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18332 if (!SWIG_IsOK(res1)) {
18333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
18334 }
18335 arg1 = reinterpret_cast< wxDC * >(argp1);
18336 {
18337 PyThreadState* __tstate = wxPyBeginAllowThreads();
18338 (arg1)->DestroyClippingRegion();
18339 wxPyEndAllowThreads(__tstate);
18340 if (PyErr_Occurred()) SWIG_fail;
18341 }
18342 resultobj = SWIG_Py_Void();
18343 return resultobj;
18344 fail:
18345 return NULL;
18346 }
18347
18348
18349 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18350 PyObject *resultobj = 0;
18351 wxDC *arg1 = (wxDC *) 0 ;
18352 int *arg2 = (int *) 0 ;
18353 int *arg3 = (int *) 0 ;
18354 int *arg4 = (int *) 0 ;
18355 int *arg5 = (int *) 0 ;
18356 void *argp1 = 0 ;
18357 int res1 = 0 ;
18358 int temp2 ;
18359 int res2 = SWIG_TMPOBJ ;
18360 int temp3 ;
18361 int res3 = SWIG_TMPOBJ ;
18362 int temp4 ;
18363 int res4 = SWIG_TMPOBJ ;
18364 int temp5 ;
18365 int res5 = SWIG_TMPOBJ ;
18366 PyObject *swig_obj[1] ;
18367
18368 arg2 = &temp2;
18369 arg3 = &temp3;
18370 arg4 = &temp4;
18371 arg5 = &temp5;
18372 if (!args) SWIG_fail;
18373 swig_obj[0] = args;
18374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18375 if (!SWIG_IsOK(res1)) {
18376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
18377 }
18378 arg1 = reinterpret_cast< wxDC * >(argp1);
18379 {
18380 PyThreadState* __tstate = wxPyBeginAllowThreads();
18381 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
18382 wxPyEndAllowThreads(__tstate);
18383 if (PyErr_Occurred()) SWIG_fail;
18384 }
18385 resultobj = SWIG_Py_Void();
18386 if (SWIG_IsTmpObj(res2)) {
18387 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18388 } else {
18389 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18390 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18391 }
18392 if (SWIG_IsTmpObj(res3)) {
18393 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18394 } else {
18395 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18396 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18397 }
18398 if (SWIG_IsTmpObj(res4)) {
18399 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18400 } else {
18401 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18402 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18403 }
18404 if (SWIG_IsTmpObj(res5)) {
18405 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18406 } else {
18407 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18408 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18409 }
18410 return resultobj;
18411 fail:
18412 return NULL;
18413 }
18414
18415
18416 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18417 PyObject *resultobj = 0;
18418 wxDC *arg1 = (wxDC *) 0 ;
18419 wxRect result;
18420 void *argp1 = 0 ;
18421 int res1 = 0 ;
18422 PyObject *swig_obj[1] ;
18423
18424 if (!args) SWIG_fail;
18425 swig_obj[0] = args;
18426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18427 if (!SWIG_IsOK(res1)) {
18428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
18429 }
18430 arg1 = reinterpret_cast< wxDC * >(argp1);
18431 {
18432 PyThreadState* __tstate = wxPyBeginAllowThreads();
18433 result = wxDC_GetClippingRect(arg1);
18434 wxPyEndAllowThreads(__tstate);
18435 if (PyErr_Occurred()) SWIG_fail;
18436 }
18437 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
18438 return resultobj;
18439 fail:
18440 return NULL;
18441 }
18442
18443
18444 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18445 PyObject *resultobj = 0;
18446 wxDC *arg1 = (wxDC *) 0 ;
18447 int result;
18448 void *argp1 = 0 ;
18449 int res1 = 0 ;
18450 PyObject *swig_obj[1] ;
18451
18452 if (!args) SWIG_fail;
18453 swig_obj[0] = args;
18454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18455 if (!SWIG_IsOK(res1)) {
18456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
18457 }
18458 arg1 = reinterpret_cast< wxDC * >(argp1);
18459 {
18460 PyThreadState* __tstate = wxPyBeginAllowThreads();
18461 result = (int)((wxDC const *)arg1)->GetCharHeight();
18462 wxPyEndAllowThreads(__tstate);
18463 if (PyErr_Occurred()) SWIG_fail;
18464 }
18465 resultobj = SWIG_From_int(static_cast< int >(result));
18466 return resultobj;
18467 fail:
18468 return NULL;
18469 }
18470
18471
18472 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18473 PyObject *resultobj = 0;
18474 wxDC *arg1 = (wxDC *) 0 ;
18475 int result;
18476 void *argp1 = 0 ;
18477 int res1 = 0 ;
18478 PyObject *swig_obj[1] ;
18479
18480 if (!args) SWIG_fail;
18481 swig_obj[0] = args;
18482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18483 if (!SWIG_IsOK(res1)) {
18484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
18485 }
18486 arg1 = reinterpret_cast< wxDC * >(argp1);
18487 {
18488 PyThreadState* __tstate = wxPyBeginAllowThreads();
18489 result = (int)((wxDC const *)arg1)->GetCharWidth();
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_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18501 PyObject *resultobj = 0;
18502 wxDC *arg1 = (wxDC *) 0 ;
18503 wxString *arg2 = 0 ;
18504 int *arg3 = (int *) 0 ;
18505 int *arg4 = (int *) 0 ;
18506 void *argp1 = 0 ;
18507 int res1 = 0 ;
18508 bool temp2 = false ;
18509 int temp3 ;
18510 int res3 = SWIG_TMPOBJ ;
18511 int temp4 ;
18512 int res4 = SWIG_TMPOBJ ;
18513 PyObject * obj0 = 0 ;
18514 PyObject * obj1 = 0 ;
18515 char * kwnames[] = {
18516 (char *) "self",(char *) "string", NULL
18517 };
18518
18519 arg3 = &temp3;
18520 arg4 = &temp4;
18521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
18522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18523 if (!SWIG_IsOK(res1)) {
18524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18525 }
18526 arg1 = reinterpret_cast< wxDC * >(argp1);
18527 {
18528 arg2 = wxString_in_helper(obj1);
18529 if (arg2 == NULL) SWIG_fail;
18530 temp2 = true;
18531 }
18532 {
18533 PyThreadState* __tstate = wxPyBeginAllowThreads();
18534 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
18535 wxPyEndAllowThreads(__tstate);
18536 if (PyErr_Occurred()) SWIG_fail;
18537 }
18538 resultobj = SWIG_Py_Void();
18539 if (SWIG_IsTmpObj(res3)) {
18540 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18541 } else {
18542 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18543 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18544 }
18545 if (SWIG_IsTmpObj(res4)) {
18546 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18547 } else {
18548 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18549 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18550 }
18551 {
18552 if (temp2)
18553 delete arg2;
18554 }
18555 return resultobj;
18556 fail:
18557 {
18558 if (temp2)
18559 delete arg2;
18560 }
18561 return NULL;
18562 }
18563
18564
18565 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18566 PyObject *resultobj = 0;
18567 wxDC *arg1 = (wxDC *) 0 ;
18568 wxString *arg2 = 0 ;
18569 int *arg3 = (int *) 0 ;
18570 int *arg4 = (int *) 0 ;
18571 int *arg5 = (int *) 0 ;
18572 int *arg6 = (int *) 0 ;
18573 wxFont *arg7 = (wxFont *) NULL ;
18574 void *argp1 = 0 ;
18575 int res1 = 0 ;
18576 bool temp2 = false ;
18577 int temp3 ;
18578 int res3 = SWIG_TMPOBJ ;
18579 int temp4 ;
18580 int res4 = SWIG_TMPOBJ ;
18581 int temp5 ;
18582 int res5 = SWIG_TMPOBJ ;
18583 int temp6 ;
18584 int res6 = SWIG_TMPOBJ ;
18585 void *argp7 = 0 ;
18586 int res7 = 0 ;
18587 PyObject * obj0 = 0 ;
18588 PyObject * obj1 = 0 ;
18589 PyObject * obj2 = 0 ;
18590 char * kwnames[] = {
18591 (char *) "self",(char *) "string",(char *) "font", NULL
18592 };
18593
18594 arg3 = &temp3;
18595 arg4 = &temp4;
18596 arg5 = &temp5;
18597 arg6 = &temp6;
18598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18600 if (!SWIG_IsOK(res1)) {
18601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18602 }
18603 arg1 = reinterpret_cast< wxDC * >(argp1);
18604 {
18605 arg2 = wxString_in_helper(obj1);
18606 if (arg2 == NULL) SWIG_fail;
18607 temp2 = true;
18608 }
18609 if (obj2) {
18610 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
18611 if (!SWIG_IsOK(res7)) {
18612 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
18613 }
18614 arg7 = reinterpret_cast< wxFont * >(argp7);
18615 }
18616 {
18617 PyThreadState* __tstate = wxPyBeginAllowThreads();
18618 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
18619 wxPyEndAllowThreads(__tstate);
18620 if (PyErr_Occurred()) SWIG_fail;
18621 }
18622 resultobj = SWIG_Py_Void();
18623 if (SWIG_IsTmpObj(res3)) {
18624 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18625 } else {
18626 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18627 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18628 }
18629 if (SWIG_IsTmpObj(res4)) {
18630 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18631 } else {
18632 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18633 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18634 }
18635 if (SWIG_IsTmpObj(res5)) {
18636 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18637 } else {
18638 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18639 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18640 }
18641 if (SWIG_IsTmpObj(res6)) {
18642 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
18643 } else {
18644 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18645 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
18646 }
18647 {
18648 if (temp2)
18649 delete arg2;
18650 }
18651 return resultobj;
18652 fail:
18653 {
18654 if (temp2)
18655 delete arg2;
18656 }
18657 return NULL;
18658 }
18659
18660
18661 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18662 PyObject *resultobj = 0;
18663 wxDC *arg1 = (wxDC *) 0 ;
18664 wxString *arg2 = 0 ;
18665 int *arg3 = (int *) 0 ;
18666 int *arg4 = (int *) 0 ;
18667 int *arg5 = (int *) 0 ;
18668 wxFont *arg6 = (wxFont *) NULL ;
18669 void *argp1 = 0 ;
18670 int res1 = 0 ;
18671 bool temp2 = false ;
18672 int temp3 ;
18673 int res3 = SWIG_TMPOBJ ;
18674 int temp4 ;
18675 int res4 = SWIG_TMPOBJ ;
18676 int temp5 ;
18677 int res5 = SWIG_TMPOBJ ;
18678 void *argp6 = 0 ;
18679 int res6 = 0 ;
18680 PyObject * obj0 = 0 ;
18681 PyObject * obj1 = 0 ;
18682 PyObject * obj2 = 0 ;
18683 char * kwnames[] = {
18684 (char *) "self",(char *) "text",(char *) "font", NULL
18685 };
18686
18687 arg3 = &temp3;
18688 arg4 = &temp4;
18689 arg5 = &temp5;
18690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18692 if (!SWIG_IsOK(res1)) {
18693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18694 }
18695 arg1 = reinterpret_cast< wxDC * >(argp1);
18696 {
18697 arg2 = wxString_in_helper(obj1);
18698 if (arg2 == NULL) SWIG_fail;
18699 temp2 = true;
18700 }
18701 if (obj2) {
18702 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
18703 if (!SWIG_IsOK(res6)) {
18704 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
18705 }
18706 arg6 = reinterpret_cast< wxFont * >(argp6);
18707 }
18708 {
18709 PyThreadState* __tstate = wxPyBeginAllowThreads();
18710 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
18711 wxPyEndAllowThreads(__tstate);
18712 if (PyErr_Occurred()) SWIG_fail;
18713 }
18714 resultobj = SWIG_Py_Void();
18715 if (SWIG_IsTmpObj(res3)) {
18716 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18717 } else {
18718 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18719 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18720 }
18721 if (SWIG_IsTmpObj(res4)) {
18722 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18723 } else {
18724 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18725 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18726 }
18727 if (SWIG_IsTmpObj(res5)) {
18728 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18729 } else {
18730 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18731 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18732 }
18733 {
18734 if (temp2)
18735 delete arg2;
18736 }
18737 return resultobj;
18738 fail:
18739 {
18740 if (temp2)
18741 delete arg2;
18742 }
18743 return NULL;
18744 }
18745
18746
18747 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18748 PyObject *resultobj = 0;
18749 wxDC *arg1 = (wxDC *) 0 ;
18750 wxString *arg2 = 0 ;
18751 wxArrayInt result;
18752 void *argp1 = 0 ;
18753 int res1 = 0 ;
18754 bool temp2 = false ;
18755 PyObject * obj0 = 0 ;
18756 PyObject * obj1 = 0 ;
18757 char * kwnames[] = {
18758 (char *) "self",(char *) "text", NULL
18759 };
18760
18761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
18762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18763 if (!SWIG_IsOK(res1)) {
18764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18765 }
18766 arg1 = reinterpret_cast< wxDC * >(argp1);
18767 {
18768 arg2 = wxString_in_helper(obj1);
18769 if (arg2 == NULL) SWIG_fail;
18770 temp2 = true;
18771 }
18772 {
18773 PyThreadState* __tstate = wxPyBeginAllowThreads();
18774 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
18775 wxPyEndAllowThreads(__tstate);
18776 if (PyErr_Occurred()) SWIG_fail;
18777 }
18778 {
18779 resultobj = PyList_New(0);
18780 size_t idx;
18781 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
18782 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
18783 PyList_Append(resultobj, val);
18784 Py_DECREF(val);
18785 }
18786 }
18787 {
18788 if (temp2)
18789 delete arg2;
18790 }
18791 return resultobj;
18792 fail:
18793 {
18794 if (temp2)
18795 delete arg2;
18796 }
18797 return NULL;
18798 }
18799
18800
18801 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18802 PyObject *resultobj = 0;
18803 wxDC *arg1 = (wxDC *) 0 ;
18804 wxSize result;
18805 void *argp1 = 0 ;
18806 int res1 = 0 ;
18807 PyObject *swig_obj[1] ;
18808
18809 if (!args) SWIG_fail;
18810 swig_obj[0] = args;
18811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18812 if (!SWIG_IsOK(res1)) {
18813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18814 }
18815 arg1 = reinterpret_cast< wxDC * >(argp1);
18816 {
18817 PyThreadState* __tstate = wxPyBeginAllowThreads();
18818 result = (arg1)->GetSize();
18819 wxPyEndAllowThreads(__tstate);
18820 if (PyErr_Occurred()) SWIG_fail;
18821 }
18822 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18823 return resultobj;
18824 fail:
18825 return NULL;
18826 }
18827
18828
18829 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18830 PyObject *resultobj = 0;
18831 wxDC *arg1 = (wxDC *) 0 ;
18832 int *arg2 = (int *) 0 ;
18833 int *arg3 = (int *) 0 ;
18834 void *argp1 = 0 ;
18835 int res1 = 0 ;
18836 int temp2 ;
18837 int res2 = SWIG_TMPOBJ ;
18838 int temp3 ;
18839 int res3 = SWIG_TMPOBJ ;
18840 PyObject *swig_obj[1] ;
18841
18842 arg2 = &temp2;
18843 arg3 = &temp3;
18844 if (!args) SWIG_fail;
18845 swig_obj[0] = args;
18846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18847 if (!SWIG_IsOK(res1)) {
18848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18849 }
18850 arg1 = reinterpret_cast< wxDC * >(argp1);
18851 {
18852 PyThreadState* __tstate = wxPyBeginAllowThreads();
18853 (arg1)->GetSize(arg2,arg3);
18854 wxPyEndAllowThreads(__tstate);
18855 if (PyErr_Occurred()) SWIG_fail;
18856 }
18857 resultobj = SWIG_Py_Void();
18858 if (SWIG_IsTmpObj(res2)) {
18859 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18860 } else {
18861 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18862 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18863 }
18864 if (SWIG_IsTmpObj(res3)) {
18865 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18866 } else {
18867 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18868 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18869 }
18870 return resultobj;
18871 fail:
18872 return NULL;
18873 }
18874
18875
18876 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18877 PyObject *resultobj = 0;
18878 wxDC *arg1 = (wxDC *) 0 ;
18879 wxSize result;
18880 void *argp1 = 0 ;
18881 int res1 = 0 ;
18882 PyObject *swig_obj[1] ;
18883
18884 if (!args) SWIG_fail;
18885 swig_obj[0] = args;
18886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18887 if (!SWIG_IsOK(res1)) {
18888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18889 }
18890 arg1 = reinterpret_cast< wxDC * >(argp1);
18891 {
18892 PyThreadState* __tstate = wxPyBeginAllowThreads();
18893 result = ((wxDC const *)arg1)->GetSizeMM();
18894 wxPyEndAllowThreads(__tstate);
18895 if (PyErr_Occurred()) SWIG_fail;
18896 }
18897 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18898 return resultobj;
18899 fail:
18900 return NULL;
18901 }
18902
18903
18904 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18905 PyObject *resultobj = 0;
18906 wxDC *arg1 = (wxDC *) 0 ;
18907 int *arg2 = (int *) 0 ;
18908 int *arg3 = (int *) 0 ;
18909 void *argp1 = 0 ;
18910 int res1 = 0 ;
18911 int temp2 ;
18912 int res2 = SWIG_TMPOBJ ;
18913 int temp3 ;
18914 int res3 = SWIG_TMPOBJ ;
18915 PyObject *swig_obj[1] ;
18916
18917 arg2 = &temp2;
18918 arg3 = &temp3;
18919 if (!args) SWIG_fail;
18920 swig_obj[0] = args;
18921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18922 if (!SWIG_IsOK(res1)) {
18923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18924 }
18925 arg1 = reinterpret_cast< wxDC * >(argp1);
18926 {
18927 PyThreadState* __tstate = wxPyBeginAllowThreads();
18928 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
18929 wxPyEndAllowThreads(__tstate);
18930 if (PyErr_Occurred()) SWIG_fail;
18931 }
18932 resultobj = SWIG_Py_Void();
18933 if (SWIG_IsTmpObj(res2)) {
18934 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18935 } else {
18936 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18937 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18938 }
18939 if (SWIG_IsTmpObj(res3)) {
18940 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18941 } else {
18942 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18943 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18944 }
18945 return resultobj;
18946 fail:
18947 return NULL;
18948 }
18949
18950
18951 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18952 PyObject *resultobj = 0;
18953 wxDC *arg1 = (wxDC *) 0 ;
18954 int arg2 ;
18955 int result;
18956 void *argp1 = 0 ;
18957 int res1 = 0 ;
18958 int val2 ;
18959 int ecode2 = 0 ;
18960 PyObject * obj0 = 0 ;
18961 PyObject * obj1 = 0 ;
18962 char * kwnames[] = {
18963 (char *) "self",(char *) "x", NULL
18964 };
18965
18966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
18967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18968 if (!SWIG_IsOK(res1)) {
18969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
18970 }
18971 arg1 = reinterpret_cast< wxDC * >(argp1);
18972 ecode2 = SWIG_AsVal_int(obj1, &val2);
18973 if (!SWIG_IsOK(ecode2)) {
18974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
18975 }
18976 arg2 = static_cast< int >(val2);
18977 {
18978 PyThreadState* __tstate = wxPyBeginAllowThreads();
18979 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
18980 wxPyEndAllowThreads(__tstate);
18981 if (PyErr_Occurred()) SWIG_fail;
18982 }
18983 resultobj = SWIG_From_int(static_cast< int >(result));
18984 return resultobj;
18985 fail:
18986 return NULL;
18987 }
18988
18989
18990 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18991 PyObject *resultobj = 0;
18992 wxDC *arg1 = (wxDC *) 0 ;
18993 int arg2 ;
18994 int result;
18995 void *argp1 = 0 ;
18996 int res1 = 0 ;
18997 int val2 ;
18998 int ecode2 = 0 ;
18999 PyObject * obj0 = 0 ;
19000 PyObject * obj1 = 0 ;
19001 char * kwnames[] = {
19002 (char *) "self",(char *) "y", NULL
19003 };
19004
19005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
19006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19007 if (!SWIG_IsOK(res1)) {
19008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
19009 }
19010 arg1 = reinterpret_cast< wxDC * >(argp1);
19011 ecode2 = SWIG_AsVal_int(obj1, &val2);
19012 if (!SWIG_IsOK(ecode2)) {
19013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
19014 }
19015 arg2 = static_cast< int >(val2);
19016 {
19017 PyThreadState* __tstate = wxPyBeginAllowThreads();
19018 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
19019 wxPyEndAllowThreads(__tstate);
19020 if (PyErr_Occurred()) SWIG_fail;
19021 }
19022 resultobj = SWIG_From_int(static_cast< int >(result));
19023 return resultobj;
19024 fail:
19025 return NULL;
19026 }
19027
19028
19029 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19030 PyObject *resultobj = 0;
19031 wxDC *arg1 = (wxDC *) 0 ;
19032 int arg2 ;
19033 int result;
19034 void *argp1 = 0 ;
19035 int res1 = 0 ;
19036 int val2 ;
19037 int ecode2 = 0 ;
19038 PyObject * obj0 = 0 ;
19039 PyObject * obj1 = 0 ;
19040 char * kwnames[] = {
19041 (char *) "self",(char *) "x", NULL
19042 };
19043
19044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
19045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19046 if (!SWIG_IsOK(res1)) {
19047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19048 }
19049 arg1 = reinterpret_cast< wxDC * >(argp1);
19050 ecode2 = SWIG_AsVal_int(obj1, &val2);
19051 if (!SWIG_IsOK(ecode2)) {
19052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
19053 }
19054 arg2 = static_cast< int >(val2);
19055 {
19056 PyThreadState* __tstate = wxPyBeginAllowThreads();
19057 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
19058 wxPyEndAllowThreads(__tstate);
19059 if (PyErr_Occurred()) SWIG_fail;
19060 }
19061 resultobj = SWIG_From_int(static_cast< int >(result));
19062 return resultobj;
19063 fail:
19064 return NULL;
19065 }
19066
19067
19068 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19069 PyObject *resultobj = 0;
19070 wxDC *arg1 = (wxDC *) 0 ;
19071 int arg2 ;
19072 int result;
19073 void *argp1 = 0 ;
19074 int res1 = 0 ;
19075 int val2 ;
19076 int ecode2 = 0 ;
19077 PyObject * obj0 = 0 ;
19078 PyObject * obj1 = 0 ;
19079 char * kwnames[] = {
19080 (char *) "self",(char *) "y", NULL
19081 };
19082
19083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
19084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19085 if (!SWIG_IsOK(res1)) {
19086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19087 }
19088 arg1 = reinterpret_cast< wxDC * >(argp1);
19089 ecode2 = SWIG_AsVal_int(obj1, &val2);
19090 if (!SWIG_IsOK(ecode2)) {
19091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
19092 }
19093 arg2 = static_cast< int >(val2);
19094 {
19095 PyThreadState* __tstate = wxPyBeginAllowThreads();
19096 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
19097 wxPyEndAllowThreads(__tstate);
19098 if (PyErr_Occurred()) SWIG_fail;
19099 }
19100 resultobj = SWIG_From_int(static_cast< int >(result));
19101 return resultobj;
19102 fail:
19103 return NULL;
19104 }
19105
19106
19107 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19108 PyObject *resultobj = 0;
19109 wxDC *arg1 = (wxDC *) 0 ;
19110 int arg2 ;
19111 int result;
19112 void *argp1 = 0 ;
19113 int res1 = 0 ;
19114 int val2 ;
19115 int ecode2 = 0 ;
19116 PyObject * obj0 = 0 ;
19117 PyObject * obj1 = 0 ;
19118 char * kwnames[] = {
19119 (char *) "self",(char *) "x", NULL
19120 };
19121
19122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
19123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19124 if (!SWIG_IsOK(res1)) {
19125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
19126 }
19127 arg1 = reinterpret_cast< wxDC * >(argp1);
19128 ecode2 = SWIG_AsVal_int(obj1, &val2);
19129 if (!SWIG_IsOK(ecode2)) {
19130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
19131 }
19132 arg2 = static_cast< int >(val2);
19133 {
19134 PyThreadState* __tstate = wxPyBeginAllowThreads();
19135 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
19136 wxPyEndAllowThreads(__tstate);
19137 if (PyErr_Occurred()) SWIG_fail;
19138 }
19139 resultobj = SWIG_From_int(static_cast< int >(result));
19140 return resultobj;
19141 fail:
19142 return NULL;
19143 }
19144
19145
19146 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19147 PyObject *resultobj = 0;
19148 wxDC *arg1 = (wxDC *) 0 ;
19149 int arg2 ;
19150 int result;
19151 void *argp1 = 0 ;
19152 int res1 = 0 ;
19153 int val2 ;
19154 int ecode2 = 0 ;
19155 PyObject * obj0 = 0 ;
19156 PyObject * obj1 = 0 ;
19157 char * kwnames[] = {
19158 (char *) "self",(char *) "y", NULL
19159 };
19160
19161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
19162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19163 if (!SWIG_IsOK(res1)) {
19164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
19165 }
19166 arg1 = reinterpret_cast< wxDC * >(argp1);
19167 ecode2 = SWIG_AsVal_int(obj1, &val2);
19168 if (!SWIG_IsOK(ecode2)) {
19169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
19170 }
19171 arg2 = static_cast< int >(val2);
19172 {
19173 PyThreadState* __tstate = wxPyBeginAllowThreads();
19174 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
19175 wxPyEndAllowThreads(__tstate);
19176 if (PyErr_Occurred()) SWIG_fail;
19177 }
19178 resultobj = SWIG_From_int(static_cast< int >(result));
19179 return resultobj;
19180 fail:
19181 return NULL;
19182 }
19183
19184
19185 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19186 PyObject *resultobj = 0;
19187 wxDC *arg1 = (wxDC *) 0 ;
19188 int arg2 ;
19189 int result;
19190 void *argp1 = 0 ;
19191 int res1 = 0 ;
19192 int val2 ;
19193 int ecode2 = 0 ;
19194 PyObject * obj0 = 0 ;
19195 PyObject * obj1 = 0 ;
19196 char * kwnames[] = {
19197 (char *) "self",(char *) "x", NULL
19198 };
19199
19200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
19201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19202 if (!SWIG_IsOK(res1)) {
19203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19204 }
19205 arg1 = reinterpret_cast< wxDC * >(argp1);
19206 ecode2 = SWIG_AsVal_int(obj1, &val2);
19207 if (!SWIG_IsOK(ecode2)) {
19208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
19209 }
19210 arg2 = static_cast< int >(val2);
19211 {
19212 PyThreadState* __tstate = wxPyBeginAllowThreads();
19213 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
19214 wxPyEndAllowThreads(__tstate);
19215 if (PyErr_Occurred()) SWIG_fail;
19216 }
19217 resultobj = SWIG_From_int(static_cast< int >(result));
19218 return resultobj;
19219 fail:
19220 return NULL;
19221 }
19222
19223
19224 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19225 PyObject *resultobj = 0;
19226 wxDC *arg1 = (wxDC *) 0 ;
19227 int arg2 ;
19228 int result;
19229 void *argp1 = 0 ;
19230 int res1 = 0 ;
19231 int val2 ;
19232 int ecode2 = 0 ;
19233 PyObject * obj0 = 0 ;
19234 PyObject * obj1 = 0 ;
19235 char * kwnames[] = {
19236 (char *) "self",(char *) "y", NULL
19237 };
19238
19239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
19240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19241 if (!SWIG_IsOK(res1)) {
19242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19243 }
19244 arg1 = reinterpret_cast< wxDC * >(argp1);
19245 ecode2 = SWIG_AsVal_int(obj1, &val2);
19246 if (!SWIG_IsOK(ecode2)) {
19247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
19248 }
19249 arg2 = static_cast< int >(val2);
19250 {
19251 PyThreadState* __tstate = wxPyBeginAllowThreads();
19252 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
19253 wxPyEndAllowThreads(__tstate);
19254 if (PyErr_Occurred()) SWIG_fail;
19255 }
19256 resultobj = SWIG_From_int(static_cast< int >(result));
19257 return resultobj;
19258 fail:
19259 return NULL;
19260 }
19261
19262
19263 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19264 PyObject *resultobj = 0;
19265 wxDC *arg1 = (wxDC *) 0 ;
19266 bool result;
19267 void *argp1 = 0 ;
19268 int res1 = 0 ;
19269 PyObject *swig_obj[1] ;
19270
19271 if (!args) SWIG_fail;
19272 swig_obj[0] = args;
19273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19274 if (!SWIG_IsOK(res1)) {
19275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19276 }
19277 arg1 = reinterpret_cast< wxDC * >(argp1);
19278 {
19279 PyThreadState* __tstate = wxPyBeginAllowThreads();
19280 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
19281 wxPyEndAllowThreads(__tstate);
19282 if (PyErr_Occurred()) SWIG_fail;
19283 }
19284 {
19285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19286 }
19287 return resultobj;
19288 fail:
19289 return NULL;
19290 }
19291
19292
19293 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19294 PyObject *resultobj = 0;
19295 wxDC *arg1 = (wxDC *) 0 ;
19296 bool result;
19297 void *argp1 = 0 ;
19298 int res1 = 0 ;
19299 PyObject *swig_obj[1] ;
19300
19301 if (!args) SWIG_fail;
19302 swig_obj[0] = args;
19303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19304 if (!SWIG_IsOK(res1)) {
19305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
19306 }
19307 arg1 = reinterpret_cast< wxDC * >(argp1);
19308 {
19309 PyThreadState* __tstate = wxPyBeginAllowThreads();
19310 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
19311 wxPyEndAllowThreads(__tstate);
19312 if (PyErr_Occurred()) SWIG_fail;
19313 }
19314 {
19315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19316 }
19317 return resultobj;
19318 fail:
19319 return NULL;
19320 }
19321
19322
19323 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19324 PyObject *resultobj = 0;
19325 wxDC *arg1 = (wxDC *) 0 ;
19326 int result;
19327 void *argp1 = 0 ;
19328 int res1 = 0 ;
19329 PyObject *swig_obj[1] ;
19330
19331 if (!args) SWIG_fail;
19332 swig_obj[0] = args;
19333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19334 if (!SWIG_IsOK(res1)) {
19335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
19336 }
19337 arg1 = reinterpret_cast< wxDC * >(argp1);
19338 {
19339 PyThreadState* __tstate = wxPyBeginAllowThreads();
19340 result = (int)((wxDC const *)arg1)->GetDepth();
19341 wxPyEndAllowThreads(__tstate);
19342 if (PyErr_Occurred()) SWIG_fail;
19343 }
19344 resultobj = SWIG_From_int(static_cast< int >(result));
19345 return resultobj;
19346 fail:
19347 return NULL;
19348 }
19349
19350
19351 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19352 PyObject *resultobj = 0;
19353 wxDC *arg1 = (wxDC *) 0 ;
19354 wxSize result;
19355 void *argp1 = 0 ;
19356 int res1 = 0 ;
19357 PyObject *swig_obj[1] ;
19358
19359 if (!args) SWIG_fail;
19360 swig_obj[0] = args;
19361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19362 if (!SWIG_IsOK(res1)) {
19363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
19364 }
19365 arg1 = reinterpret_cast< wxDC * >(argp1);
19366 {
19367 PyThreadState* __tstate = wxPyBeginAllowThreads();
19368 result = ((wxDC const *)arg1)->GetPPI();
19369 wxPyEndAllowThreads(__tstate);
19370 if (PyErr_Occurred()) SWIG_fail;
19371 }
19372 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19373 return resultobj;
19374 fail:
19375 return NULL;
19376 }
19377
19378
19379 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19380 PyObject *resultobj = 0;
19381 wxDC *arg1 = (wxDC *) 0 ;
19382 bool result;
19383 void *argp1 = 0 ;
19384 int res1 = 0 ;
19385 PyObject *swig_obj[1] ;
19386
19387 if (!args) SWIG_fail;
19388 swig_obj[0] = args;
19389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19390 if (!SWIG_IsOK(res1)) {
19391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
19392 }
19393 arg1 = reinterpret_cast< wxDC * >(argp1);
19394 {
19395 PyThreadState* __tstate = wxPyBeginAllowThreads();
19396 result = (bool)((wxDC const *)arg1)->Ok();
19397 wxPyEndAllowThreads(__tstate);
19398 if (PyErr_Occurred()) SWIG_fail;
19399 }
19400 {
19401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19402 }
19403 return resultobj;
19404 fail:
19405 return NULL;
19406 }
19407
19408
19409 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19410 PyObject *resultobj = 0;
19411 wxDC *arg1 = (wxDC *) 0 ;
19412 int result;
19413 void *argp1 = 0 ;
19414 int res1 = 0 ;
19415 PyObject *swig_obj[1] ;
19416
19417 if (!args) SWIG_fail;
19418 swig_obj[0] = args;
19419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19420 if (!SWIG_IsOK(res1)) {
19421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19422 }
19423 arg1 = reinterpret_cast< wxDC * >(argp1);
19424 {
19425 PyThreadState* __tstate = wxPyBeginAllowThreads();
19426 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
19427 wxPyEndAllowThreads(__tstate);
19428 if (PyErr_Occurred()) SWIG_fail;
19429 }
19430 resultobj = SWIG_From_int(static_cast< int >(result));
19431 return resultobj;
19432 fail:
19433 return NULL;
19434 }
19435
19436
19437 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19438 PyObject *resultobj = 0;
19439 wxDC *arg1 = (wxDC *) 0 ;
19440 wxBrush *result = 0 ;
19441 void *argp1 = 0 ;
19442 int res1 = 0 ;
19443 PyObject *swig_obj[1] ;
19444
19445 if (!args) SWIG_fail;
19446 swig_obj[0] = args;
19447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19448 if (!SWIG_IsOK(res1)) {
19449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
19450 }
19451 arg1 = reinterpret_cast< wxDC * >(argp1);
19452 {
19453 PyThreadState* __tstate = wxPyBeginAllowThreads();
19454 {
19455 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
19456 result = (wxBrush *) &_result_ref;
19457 }
19458 wxPyEndAllowThreads(__tstate);
19459 if (PyErr_Occurred()) SWIG_fail;
19460 }
19461 {
19462 wxBrush* resultptr = new wxBrush(*result);
19463 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
19464 }
19465 return resultobj;
19466 fail:
19467 return NULL;
19468 }
19469
19470
19471 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19472 PyObject *resultobj = 0;
19473 wxDC *arg1 = (wxDC *) 0 ;
19474 wxBrush *result = 0 ;
19475 void *argp1 = 0 ;
19476 int res1 = 0 ;
19477 PyObject *swig_obj[1] ;
19478
19479 if (!args) SWIG_fail;
19480 swig_obj[0] = args;
19481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19482 if (!SWIG_IsOK(res1)) {
19483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
19484 }
19485 arg1 = reinterpret_cast< wxDC * >(argp1);
19486 {
19487 PyThreadState* __tstate = wxPyBeginAllowThreads();
19488 {
19489 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
19490 result = (wxBrush *) &_result_ref;
19491 }
19492 wxPyEndAllowThreads(__tstate);
19493 if (PyErr_Occurred()) SWIG_fail;
19494 }
19495 {
19496 wxBrush* resultptr = new wxBrush(*result);
19497 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
19498 }
19499 return resultobj;
19500 fail:
19501 return NULL;
19502 }
19503
19504
19505 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19506 PyObject *resultobj = 0;
19507 wxDC *arg1 = (wxDC *) 0 ;
19508 wxFont *result = 0 ;
19509 void *argp1 = 0 ;
19510 int res1 = 0 ;
19511 PyObject *swig_obj[1] ;
19512
19513 if (!args) SWIG_fail;
19514 swig_obj[0] = args;
19515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19516 if (!SWIG_IsOK(res1)) {
19517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
19518 }
19519 arg1 = reinterpret_cast< wxDC * >(argp1);
19520 {
19521 PyThreadState* __tstate = wxPyBeginAllowThreads();
19522 {
19523 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
19524 result = (wxFont *) &_result_ref;
19525 }
19526 wxPyEndAllowThreads(__tstate);
19527 if (PyErr_Occurred()) SWIG_fail;
19528 }
19529 {
19530 wxFont* resultptr = new wxFont(*result);
19531 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
19532 }
19533 return resultobj;
19534 fail:
19535 return NULL;
19536 }
19537
19538
19539 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19540 PyObject *resultobj = 0;
19541 wxDC *arg1 = (wxDC *) 0 ;
19542 wxPen *result = 0 ;
19543 void *argp1 = 0 ;
19544 int res1 = 0 ;
19545 PyObject *swig_obj[1] ;
19546
19547 if (!args) SWIG_fail;
19548 swig_obj[0] = args;
19549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19550 if (!SWIG_IsOK(res1)) {
19551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
19552 }
19553 arg1 = reinterpret_cast< wxDC * >(argp1);
19554 {
19555 PyThreadState* __tstate = wxPyBeginAllowThreads();
19556 {
19557 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
19558 result = (wxPen *) &_result_ref;
19559 }
19560 wxPyEndAllowThreads(__tstate);
19561 if (PyErr_Occurred()) SWIG_fail;
19562 }
19563 {
19564 wxPen* resultptr = new wxPen(*result);
19565 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
19566 }
19567 return resultobj;
19568 fail:
19569 return NULL;
19570 }
19571
19572
19573 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19574 PyObject *resultobj = 0;
19575 wxDC *arg1 = (wxDC *) 0 ;
19576 wxColour *result = 0 ;
19577 void *argp1 = 0 ;
19578 int res1 = 0 ;
19579 PyObject *swig_obj[1] ;
19580
19581 if (!args) SWIG_fail;
19582 swig_obj[0] = args;
19583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19584 if (!SWIG_IsOK(res1)) {
19585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
19586 }
19587 arg1 = reinterpret_cast< wxDC * >(argp1);
19588 {
19589 PyThreadState* __tstate = wxPyBeginAllowThreads();
19590 {
19591 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
19592 result = (wxColour *) &_result_ref;
19593 }
19594 wxPyEndAllowThreads(__tstate);
19595 if (PyErr_Occurred()) SWIG_fail;
19596 }
19597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
19598 return resultobj;
19599 fail:
19600 return NULL;
19601 }
19602
19603
19604 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19605 PyObject *resultobj = 0;
19606 wxDC *arg1 = (wxDC *) 0 ;
19607 wxColour *result = 0 ;
19608 void *argp1 = 0 ;
19609 int res1 = 0 ;
19610 PyObject *swig_obj[1] ;
19611
19612 if (!args) SWIG_fail;
19613 swig_obj[0] = args;
19614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19615 if (!SWIG_IsOK(res1)) {
19616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
19617 }
19618 arg1 = reinterpret_cast< wxDC * >(argp1);
19619 {
19620 PyThreadState* __tstate = wxPyBeginAllowThreads();
19621 {
19622 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
19623 result = (wxColour *) &_result_ref;
19624 }
19625 wxPyEndAllowThreads(__tstate);
19626 if (PyErr_Occurred()) SWIG_fail;
19627 }
19628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
19629 return resultobj;
19630 fail:
19631 return NULL;
19632 }
19633
19634
19635 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19636 PyObject *resultobj = 0;
19637 wxDC *arg1 = (wxDC *) 0 ;
19638 wxColour *arg2 = 0 ;
19639 void *argp1 = 0 ;
19640 int res1 = 0 ;
19641 wxColour temp2 ;
19642 PyObject * obj0 = 0 ;
19643 PyObject * obj1 = 0 ;
19644 char * kwnames[] = {
19645 (char *) "self",(char *) "colour", NULL
19646 };
19647
19648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
19649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19650 if (!SWIG_IsOK(res1)) {
19651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
19652 }
19653 arg1 = reinterpret_cast< wxDC * >(argp1);
19654 {
19655 arg2 = &temp2;
19656 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19657 }
19658 {
19659 PyThreadState* __tstate = wxPyBeginAllowThreads();
19660 (arg1)->SetTextForeground((wxColour const &)*arg2);
19661 wxPyEndAllowThreads(__tstate);
19662 if (PyErr_Occurred()) SWIG_fail;
19663 }
19664 resultobj = SWIG_Py_Void();
19665 return resultobj;
19666 fail:
19667 return NULL;
19668 }
19669
19670
19671 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19672 PyObject *resultobj = 0;
19673 wxDC *arg1 = (wxDC *) 0 ;
19674 wxColour *arg2 = 0 ;
19675 void *argp1 = 0 ;
19676 int res1 = 0 ;
19677 wxColour temp2 ;
19678 PyObject * obj0 = 0 ;
19679 PyObject * obj1 = 0 ;
19680 char * kwnames[] = {
19681 (char *) "self",(char *) "colour", NULL
19682 };
19683
19684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
19685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19686 if (!SWIG_IsOK(res1)) {
19687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
19688 }
19689 arg1 = reinterpret_cast< wxDC * >(argp1);
19690 {
19691 arg2 = &temp2;
19692 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19693 }
19694 {
19695 PyThreadState* __tstate = wxPyBeginAllowThreads();
19696 (arg1)->SetTextBackground((wxColour const &)*arg2);
19697 wxPyEndAllowThreads(__tstate);
19698 if (PyErr_Occurred()) SWIG_fail;
19699 }
19700 resultobj = SWIG_Py_Void();
19701 return resultobj;
19702 fail:
19703 return NULL;
19704 }
19705
19706
19707 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19708 PyObject *resultobj = 0;
19709 wxDC *arg1 = (wxDC *) 0 ;
19710 int result;
19711 void *argp1 = 0 ;
19712 int res1 = 0 ;
19713 PyObject *swig_obj[1] ;
19714
19715 if (!args) SWIG_fail;
19716 swig_obj[0] = args;
19717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19718 if (!SWIG_IsOK(res1)) {
19719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19720 }
19721 arg1 = reinterpret_cast< wxDC * >(argp1);
19722 {
19723 PyThreadState* __tstate = wxPyBeginAllowThreads();
19724 result = (int)((wxDC const *)arg1)->GetMapMode();
19725 wxPyEndAllowThreads(__tstate);
19726 if (PyErr_Occurred()) SWIG_fail;
19727 }
19728 resultobj = SWIG_From_int(static_cast< int >(result));
19729 return resultobj;
19730 fail:
19731 return NULL;
19732 }
19733
19734
19735 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19736 PyObject *resultobj = 0;
19737 wxDC *arg1 = (wxDC *) 0 ;
19738 int arg2 ;
19739 void *argp1 = 0 ;
19740 int res1 = 0 ;
19741 int val2 ;
19742 int ecode2 = 0 ;
19743 PyObject * obj0 = 0 ;
19744 PyObject * obj1 = 0 ;
19745 char * kwnames[] = {
19746 (char *) "self",(char *) "mode", NULL
19747 };
19748
19749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
19750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19751 if (!SWIG_IsOK(res1)) {
19752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19753 }
19754 arg1 = reinterpret_cast< wxDC * >(argp1);
19755 ecode2 = SWIG_AsVal_int(obj1, &val2);
19756 if (!SWIG_IsOK(ecode2)) {
19757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19758 }
19759 arg2 = static_cast< int >(val2);
19760 {
19761 PyThreadState* __tstate = wxPyBeginAllowThreads();
19762 (arg1)->SetMapMode(arg2);
19763 wxPyEndAllowThreads(__tstate);
19764 if (PyErr_Occurred()) SWIG_fail;
19765 }
19766 resultobj = SWIG_Py_Void();
19767 return resultobj;
19768 fail:
19769 return NULL;
19770 }
19771
19772
19773 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19774 PyObject *resultobj = 0;
19775 wxDC *arg1 = (wxDC *) 0 ;
19776 double *arg2 = (double *) 0 ;
19777 double *arg3 = (double *) 0 ;
19778 void *argp1 = 0 ;
19779 int res1 = 0 ;
19780 double temp2 ;
19781 int res2 = SWIG_TMPOBJ ;
19782 double temp3 ;
19783 int res3 = SWIG_TMPOBJ ;
19784 PyObject *swig_obj[1] ;
19785
19786 arg2 = &temp2;
19787 arg3 = &temp3;
19788 if (!args) SWIG_fail;
19789 swig_obj[0] = args;
19790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19791 if (!SWIG_IsOK(res1)) {
19792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19793 }
19794 arg1 = reinterpret_cast< wxDC * >(argp1);
19795 {
19796 PyThreadState* __tstate = wxPyBeginAllowThreads();
19797 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
19798 wxPyEndAllowThreads(__tstate);
19799 if (PyErr_Occurred()) SWIG_fail;
19800 }
19801 resultobj = SWIG_Py_Void();
19802 if (SWIG_IsTmpObj(res2)) {
19803 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19804 } else {
19805 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19806 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19807 }
19808 if (SWIG_IsTmpObj(res3)) {
19809 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19810 } else {
19811 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19812 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19813 }
19814 return resultobj;
19815 fail:
19816 return NULL;
19817 }
19818
19819
19820 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19821 PyObject *resultobj = 0;
19822 wxDC *arg1 = (wxDC *) 0 ;
19823 double arg2 ;
19824 double arg3 ;
19825 void *argp1 = 0 ;
19826 int res1 = 0 ;
19827 double val2 ;
19828 int ecode2 = 0 ;
19829 double val3 ;
19830 int ecode3 = 0 ;
19831 PyObject * obj0 = 0 ;
19832 PyObject * obj1 = 0 ;
19833 PyObject * obj2 = 0 ;
19834 char * kwnames[] = {
19835 (char *) "self",(char *) "x",(char *) "y", NULL
19836 };
19837
19838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19840 if (!SWIG_IsOK(res1)) {
19841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19842 }
19843 arg1 = reinterpret_cast< wxDC * >(argp1);
19844 ecode2 = SWIG_AsVal_double(obj1, &val2);
19845 if (!SWIG_IsOK(ecode2)) {
19846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19847 }
19848 arg2 = static_cast< double >(val2);
19849 ecode3 = SWIG_AsVal_double(obj2, &val3);
19850 if (!SWIG_IsOK(ecode3)) {
19851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19852 }
19853 arg3 = static_cast< double >(val3);
19854 {
19855 PyThreadState* __tstate = wxPyBeginAllowThreads();
19856 (arg1)->SetUserScale(arg2,arg3);
19857 wxPyEndAllowThreads(__tstate);
19858 if (PyErr_Occurred()) SWIG_fail;
19859 }
19860 resultobj = SWIG_Py_Void();
19861 return resultobj;
19862 fail:
19863 return NULL;
19864 }
19865
19866
19867 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19868 PyObject *resultobj = 0;
19869 wxDC *arg1 = (wxDC *) 0 ;
19870 double *arg2 = (double *) 0 ;
19871 double *arg3 = (double *) 0 ;
19872 void *argp1 = 0 ;
19873 int res1 = 0 ;
19874 double temp2 ;
19875 int res2 = SWIG_TMPOBJ ;
19876 double temp3 ;
19877 int res3 = SWIG_TMPOBJ ;
19878 PyObject *swig_obj[1] ;
19879
19880 arg2 = &temp2;
19881 arg3 = &temp3;
19882 if (!args) SWIG_fail;
19883 swig_obj[0] = args;
19884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19885 if (!SWIG_IsOK(res1)) {
19886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19887 }
19888 arg1 = reinterpret_cast< wxDC * >(argp1);
19889 {
19890 PyThreadState* __tstate = wxPyBeginAllowThreads();
19891 (arg1)->GetLogicalScale(arg2,arg3);
19892 wxPyEndAllowThreads(__tstate);
19893 if (PyErr_Occurred()) SWIG_fail;
19894 }
19895 resultobj = SWIG_Py_Void();
19896 if (SWIG_IsTmpObj(res2)) {
19897 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19898 } else {
19899 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19900 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19901 }
19902 if (SWIG_IsTmpObj(res3)) {
19903 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19904 } else {
19905 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19906 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19907 }
19908 return resultobj;
19909 fail:
19910 return NULL;
19911 }
19912
19913
19914 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19915 PyObject *resultobj = 0;
19916 wxDC *arg1 = (wxDC *) 0 ;
19917 double arg2 ;
19918 double arg3 ;
19919 void *argp1 = 0 ;
19920 int res1 = 0 ;
19921 double val2 ;
19922 int ecode2 = 0 ;
19923 double val3 ;
19924 int ecode3 = 0 ;
19925 PyObject * obj0 = 0 ;
19926 PyObject * obj1 = 0 ;
19927 PyObject * obj2 = 0 ;
19928 char * kwnames[] = {
19929 (char *) "self",(char *) "x",(char *) "y", NULL
19930 };
19931
19932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19934 if (!SWIG_IsOK(res1)) {
19935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19936 }
19937 arg1 = reinterpret_cast< wxDC * >(argp1);
19938 ecode2 = SWIG_AsVal_double(obj1, &val2);
19939 if (!SWIG_IsOK(ecode2)) {
19940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19941 }
19942 arg2 = static_cast< double >(val2);
19943 ecode3 = SWIG_AsVal_double(obj2, &val3);
19944 if (!SWIG_IsOK(ecode3)) {
19945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19946 }
19947 arg3 = static_cast< double >(val3);
19948 {
19949 PyThreadState* __tstate = wxPyBeginAllowThreads();
19950 (arg1)->SetLogicalScale(arg2,arg3);
19951 wxPyEndAllowThreads(__tstate);
19952 if (PyErr_Occurred()) SWIG_fail;
19953 }
19954 resultobj = SWIG_Py_Void();
19955 return resultobj;
19956 fail:
19957 return NULL;
19958 }
19959
19960
19961 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19962 PyObject *resultobj = 0;
19963 wxDC *arg1 = (wxDC *) 0 ;
19964 wxPoint result;
19965 void *argp1 = 0 ;
19966 int res1 = 0 ;
19967 PyObject *swig_obj[1] ;
19968
19969 if (!args) SWIG_fail;
19970 swig_obj[0] = args;
19971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19972 if (!SWIG_IsOK(res1)) {
19973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19974 }
19975 arg1 = reinterpret_cast< wxDC * >(argp1);
19976 {
19977 PyThreadState* __tstate = wxPyBeginAllowThreads();
19978 result = ((wxDC const *)arg1)->GetLogicalOrigin();
19979 wxPyEndAllowThreads(__tstate);
19980 if (PyErr_Occurred()) SWIG_fail;
19981 }
19982 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19983 return resultobj;
19984 fail:
19985 return NULL;
19986 }
19987
19988
19989 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19990 PyObject *resultobj = 0;
19991 wxDC *arg1 = (wxDC *) 0 ;
19992 int *arg2 = (int *) 0 ;
19993 int *arg3 = (int *) 0 ;
19994 void *argp1 = 0 ;
19995 int res1 = 0 ;
19996 int temp2 ;
19997 int res2 = SWIG_TMPOBJ ;
19998 int temp3 ;
19999 int res3 = SWIG_TMPOBJ ;
20000 PyObject *swig_obj[1] ;
20001
20002 arg2 = &temp2;
20003 arg3 = &temp3;
20004 if (!args) SWIG_fail;
20005 swig_obj[0] = args;
20006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20007 if (!SWIG_IsOK(res1)) {
20008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20009 }
20010 arg1 = reinterpret_cast< wxDC * >(argp1);
20011 {
20012 PyThreadState* __tstate = wxPyBeginAllowThreads();
20013 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
20014 wxPyEndAllowThreads(__tstate);
20015 if (PyErr_Occurred()) SWIG_fail;
20016 }
20017 resultobj = SWIG_Py_Void();
20018 if (SWIG_IsTmpObj(res2)) {
20019 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20020 } else {
20021 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20022 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20023 }
20024 if (SWIG_IsTmpObj(res3)) {
20025 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20026 } else {
20027 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20028 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20029 }
20030 return resultobj;
20031 fail:
20032 return NULL;
20033 }
20034
20035
20036 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20037 PyObject *resultobj = 0;
20038 wxDC *arg1 = (wxDC *) 0 ;
20039 int arg2 ;
20040 int arg3 ;
20041 void *argp1 = 0 ;
20042 int res1 = 0 ;
20043 int val2 ;
20044 int ecode2 = 0 ;
20045 int val3 ;
20046 int ecode3 = 0 ;
20047 PyObject * obj0 = 0 ;
20048 PyObject * obj1 = 0 ;
20049 PyObject * obj2 = 0 ;
20050 char * kwnames[] = {
20051 (char *) "self",(char *) "x",(char *) "y", NULL
20052 };
20053
20054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20056 if (!SWIG_IsOK(res1)) {
20057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20058 }
20059 arg1 = reinterpret_cast< wxDC * >(argp1);
20060 ecode2 = SWIG_AsVal_int(obj1, &val2);
20061 if (!SWIG_IsOK(ecode2)) {
20062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
20063 }
20064 arg2 = static_cast< int >(val2);
20065 ecode3 = SWIG_AsVal_int(obj2, &val3);
20066 if (!SWIG_IsOK(ecode3)) {
20067 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
20068 }
20069 arg3 = static_cast< int >(val3);
20070 {
20071 PyThreadState* __tstate = wxPyBeginAllowThreads();
20072 (arg1)->SetLogicalOrigin(arg2,arg3);
20073 wxPyEndAllowThreads(__tstate);
20074 if (PyErr_Occurred()) SWIG_fail;
20075 }
20076 resultobj = SWIG_Py_Void();
20077 return resultobj;
20078 fail:
20079 return NULL;
20080 }
20081
20082
20083 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20084 PyObject *resultobj = 0;
20085 wxDC *arg1 = (wxDC *) 0 ;
20086 wxPoint *arg2 = 0 ;
20087 void *argp1 = 0 ;
20088 int res1 = 0 ;
20089 wxPoint temp2 ;
20090 PyObject * obj0 = 0 ;
20091 PyObject * obj1 = 0 ;
20092 char * kwnames[] = {
20093 (char *) "self",(char *) "point", NULL
20094 };
20095
20096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20098 if (!SWIG_IsOK(res1)) {
20099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20100 }
20101 arg1 = reinterpret_cast< wxDC * >(argp1);
20102 {
20103 arg2 = &temp2;
20104 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20105 }
20106 {
20107 PyThreadState* __tstate = wxPyBeginAllowThreads();
20108 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
20109 wxPyEndAllowThreads(__tstate);
20110 if (PyErr_Occurred()) SWIG_fail;
20111 }
20112 resultobj = SWIG_Py_Void();
20113 return resultobj;
20114 fail:
20115 return NULL;
20116 }
20117
20118
20119 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20120 PyObject *resultobj = 0;
20121 wxDC *arg1 = (wxDC *) 0 ;
20122 wxPoint result;
20123 void *argp1 = 0 ;
20124 int res1 = 0 ;
20125 PyObject *swig_obj[1] ;
20126
20127 if (!args) SWIG_fail;
20128 swig_obj[0] = args;
20129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20130 if (!SWIG_IsOK(res1)) {
20131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
20132 }
20133 arg1 = reinterpret_cast< wxDC * >(argp1);
20134 {
20135 PyThreadState* __tstate = wxPyBeginAllowThreads();
20136 result = ((wxDC const *)arg1)->GetDeviceOrigin();
20137 wxPyEndAllowThreads(__tstate);
20138 if (PyErr_Occurred()) SWIG_fail;
20139 }
20140 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
20141 return resultobj;
20142 fail:
20143 return NULL;
20144 }
20145
20146
20147 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20148 PyObject *resultobj = 0;
20149 wxDC *arg1 = (wxDC *) 0 ;
20150 int *arg2 = (int *) 0 ;
20151 int *arg3 = (int *) 0 ;
20152 void *argp1 = 0 ;
20153 int res1 = 0 ;
20154 int temp2 ;
20155 int res2 = SWIG_TMPOBJ ;
20156 int temp3 ;
20157 int res3 = SWIG_TMPOBJ ;
20158 PyObject *swig_obj[1] ;
20159
20160 arg2 = &temp2;
20161 arg3 = &temp3;
20162 if (!args) SWIG_fail;
20163 swig_obj[0] = args;
20164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20165 if (!SWIG_IsOK(res1)) {
20166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20167 }
20168 arg1 = reinterpret_cast< wxDC * >(argp1);
20169 {
20170 PyThreadState* __tstate = wxPyBeginAllowThreads();
20171 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
20172 wxPyEndAllowThreads(__tstate);
20173 if (PyErr_Occurred()) SWIG_fail;
20174 }
20175 resultobj = SWIG_Py_Void();
20176 if (SWIG_IsTmpObj(res2)) {
20177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20178 } else {
20179 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20181 }
20182 if (SWIG_IsTmpObj(res3)) {
20183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20184 } else {
20185 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20187 }
20188 return resultobj;
20189 fail:
20190 return NULL;
20191 }
20192
20193
20194 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20195 PyObject *resultobj = 0;
20196 wxDC *arg1 = (wxDC *) 0 ;
20197 int arg2 ;
20198 int arg3 ;
20199 void *argp1 = 0 ;
20200 int res1 = 0 ;
20201 int val2 ;
20202 int ecode2 = 0 ;
20203 int val3 ;
20204 int ecode3 = 0 ;
20205 PyObject * obj0 = 0 ;
20206 PyObject * obj1 = 0 ;
20207 PyObject * obj2 = 0 ;
20208 char * kwnames[] = {
20209 (char *) "self",(char *) "x",(char *) "y", NULL
20210 };
20211
20212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20214 if (!SWIG_IsOK(res1)) {
20215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20216 }
20217 arg1 = reinterpret_cast< wxDC * >(argp1);
20218 ecode2 = SWIG_AsVal_int(obj1, &val2);
20219 if (!SWIG_IsOK(ecode2)) {
20220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
20221 }
20222 arg2 = static_cast< int >(val2);
20223 ecode3 = SWIG_AsVal_int(obj2, &val3);
20224 if (!SWIG_IsOK(ecode3)) {
20225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
20226 }
20227 arg3 = static_cast< int >(val3);
20228 {
20229 PyThreadState* __tstate = wxPyBeginAllowThreads();
20230 (arg1)->SetDeviceOrigin(arg2,arg3);
20231 wxPyEndAllowThreads(__tstate);
20232 if (PyErr_Occurred()) SWIG_fail;
20233 }
20234 resultobj = SWIG_Py_Void();
20235 return resultobj;
20236 fail:
20237 return NULL;
20238 }
20239
20240
20241 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20242 PyObject *resultobj = 0;
20243 wxDC *arg1 = (wxDC *) 0 ;
20244 wxPoint *arg2 = 0 ;
20245 void *argp1 = 0 ;
20246 int res1 = 0 ;
20247 wxPoint temp2 ;
20248 PyObject * obj0 = 0 ;
20249 PyObject * obj1 = 0 ;
20250 char * kwnames[] = {
20251 (char *) "self",(char *) "point", NULL
20252 };
20253
20254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20256 if (!SWIG_IsOK(res1)) {
20257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20258 }
20259 arg1 = reinterpret_cast< wxDC * >(argp1);
20260 {
20261 arg2 = &temp2;
20262 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20263 }
20264 {
20265 PyThreadState* __tstate = wxPyBeginAllowThreads();
20266 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
20267 wxPyEndAllowThreads(__tstate);
20268 if (PyErr_Occurred()) SWIG_fail;
20269 }
20270 resultobj = SWIG_Py_Void();
20271 return resultobj;
20272 fail:
20273 return NULL;
20274 }
20275
20276
20277 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20278 PyObject *resultobj = 0;
20279 wxDC *arg1 = (wxDC *) 0 ;
20280 bool arg2 ;
20281 bool arg3 ;
20282 void *argp1 = 0 ;
20283 int res1 = 0 ;
20284 bool val2 ;
20285 int ecode2 = 0 ;
20286 bool val3 ;
20287 int ecode3 = 0 ;
20288 PyObject * obj0 = 0 ;
20289 PyObject * obj1 = 0 ;
20290 PyObject * obj2 = 0 ;
20291 char * kwnames[] = {
20292 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
20293 };
20294
20295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) 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 '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
20299 }
20300 arg1 = reinterpret_cast< wxDC * >(argp1);
20301 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20302 if (!SWIG_IsOK(ecode2)) {
20303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
20304 }
20305 arg2 = static_cast< bool >(val2);
20306 ecode3 = SWIG_AsVal_bool(obj2, &val3);
20307 if (!SWIG_IsOK(ecode3)) {
20308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
20309 }
20310 arg3 = static_cast< bool >(val3);
20311 {
20312 PyThreadState* __tstate = wxPyBeginAllowThreads();
20313 (arg1)->SetAxisOrientation(arg2,arg3);
20314 wxPyEndAllowThreads(__tstate);
20315 if (PyErr_Occurred()) SWIG_fail;
20316 }
20317 resultobj = SWIG_Py_Void();
20318 return resultobj;
20319 fail:
20320 return NULL;
20321 }
20322
20323
20324 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20325 PyObject *resultobj = 0;
20326 wxDC *arg1 = (wxDC *) 0 ;
20327 int result;
20328 void *argp1 = 0 ;
20329 int res1 = 0 ;
20330 PyObject *swig_obj[1] ;
20331
20332 if (!args) SWIG_fail;
20333 swig_obj[0] = args;
20334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20335 if (!SWIG_IsOK(res1)) {
20336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
20337 }
20338 arg1 = reinterpret_cast< wxDC * >(argp1);
20339 {
20340 PyThreadState* __tstate = wxPyBeginAllowThreads();
20341 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
20342 wxPyEndAllowThreads(__tstate);
20343 if (PyErr_Occurred()) SWIG_fail;
20344 }
20345 resultobj = SWIG_From_int(static_cast< int >(result));
20346 return resultobj;
20347 fail:
20348 return NULL;
20349 }
20350
20351
20352 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20353 PyObject *resultobj = 0;
20354 wxDC *arg1 = (wxDC *) 0 ;
20355 int arg2 ;
20356 void *argp1 = 0 ;
20357 int res1 = 0 ;
20358 int val2 ;
20359 int ecode2 = 0 ;
20360 PyObject * obj0 = 0 ;
20361 PyObject * obj1 = 0 ;
20362 char * kwnames[] = {
20363 (char *) "self",(char *) "function", NULL
20364 };
20365
20366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
20367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20368 if (!SWIG_IsOK(res1)) {
20369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
20370 }
20371 arg1 = reinterpret_cast< wxDC * >(argp1);
20372 ecode2 = SWIG_AsVal_int(obj1, &val2);
20373 if (!SWIG_IsOK(ecode2)) {
20374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
20375 }
20376 arg2 = static_cast< int >(val2);
20377 {
20378 PyThreadState* __tstate = wxPyBeginAllowThreads();
20379 (arg1)->SetLogicalFunction(arg2);
20380 wxPyEndAllowThreads(__tstate);
20381 if (PyErr_Occurred()) SWIG_fail;
20382 }
20383 resultobj = SWIG_Py_Void();
20384 return resultobj;
20385 fail:
20386 return NULL;
20387 }
20388
20389
20390 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20391 PyObject *resultobj = 0;
20392 wxDC *arg1 = (wxDC *) 0 ;
20393 void *argp1 = 0 ;
20394 int res1 = 0 ;
20395 PyObject *swig_obj[1] ;
20396
20397 if (!args) SWIG_fail;
20398 swig_obj[0] = args;
20399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20400 if (!SWIG_IsOK(res1)) {
20401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20402 }
20403 arg1 = reinterpret_cast< wxDC * >(argp1);
20404 {
20405 PyThreadState* __tstate = wxPyBeginAllowThreads();
20406 (arg1)->ComputeScaleAndOrigin();
20407 wxPyEndAllowThreads(__tstate);
20408 if (PyErr_Occurred()) SWIG_fail;
20409 }
20410 resultobj = SWIG_Py_Void();
20411 return resultobj;
20412 fail:
20413 return NULL;
20414 }
20415
20416
20417 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20418 PyObject *resultobj = 0;
20419 wxDC *arg1 = (wxDC *) 0 ;
20420 int arg2 ;
20421 int arg3 ;
20422 void *argp1 = 0 ;
20423 int res1 = 0 ;
20424 int val2 ;
20425 int ecode2 = 0 ;
20426 int val3 ;
20427 int ecode3 = 0 ;
20428 PyObject * obj0 = 0 ;
20429 PyObject * obj1 = 0 ;
20430 PyObject * obj2 = 0 ;
20431 char * kwnames[] = {
20432 (char *) "self",(char *) "x",(char *) "y", NULL
20433 };
20434
20435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20437 if (!SWIG_IsOK(res1)) {
20438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20439 }
20440 arg1 = reinterpret_cast< wxDC * >(argp1);
20441 ecode2 = SWIG_AsVal_int(obj1, &val2);
20442 if (!SWIG_IsOK(ecode2)) {
20443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
20444 }
20445 arg2 = static_cast< int >(val2);
20446 ecode3 = SWIG_AsVal_int(obj2, &val3);
20447 if (!SWIG_IsOK(ecode3)) {
20448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
20449 }
20450 arg3 = static_cast< int >(val3);
20451 {
20452 PyThreadState* __tstate = wxPyBeginAllowThreads();
20453 (arg1)->CalcBoundingBox(arg2,arg3);
20454 wxPyEndAllowThreads(__tstate);
20455 if (PyErr_Occurred()) SWIG_fail;
20456 }
20457 resultobj = SWIG_Py_Void();
20458 return resultobj;
20459 fail:
20460 return NULL;
20461 }
20462
20463
20464 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20465 PyObject *resultobj = 0;
20466 wxDC *arg1 = (wxDC *) 0 ;
20467 wxPoint *arg2 = 0 ;
20468 void *argp1 = 0 ;
20469 int res1 = 0 ;
20470 wxPoint temp2 ;
20471 PyObject * obj0 = 0 ;
20472 PyObject * obj1 = 0 ;
20473 char * kwnames[] = {
20474 (char *) "self",(char *) "point", NULL
20475 };
20476
20477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20479 if (!SWIG_IsOK(res1)) {
20480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20481 }
20482 arg1 = reinterpret_cast< wxDC * >(argp1);
20483 {
20484 arg2 = &temp2;
20485 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20486 }
20487 {
20488 PyThreadState* __tstate = wxPyBeginAllowThreads();
20489 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
20490 wxPyEndAllowThreads(__tstate);
20491 if (PyErr_Occurred()) SWIG_fail;
20492 }
20493 resultobj = SWIG_Py_Void();
20494 return resultobj;
20495 fail:
20496 return NULL;
20497 }
20498
20499
20500 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20501 PyObject *resultobj = 0;
20502 wxDC *arg1 = (wxDC *) 0 ;
20503 void *argp1 = 0 ;
20504 int res1 = 0 ;
20505 PyObject *swig_obj[1] ;
20506
20507 if (!args) SWIG_fail;
20508 swig_obj[0] = args;
20509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20510 if (!SWIG_IsOK(res1)) {
20511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20512 }
20513 arg1 = reinterpret_cast< wxDC * >(argp1);
20514 {
20515 PyThreadState* __tstate = wxPyBeginAllowThreads();
20516 (arg1)->ResetBoundingBox();
20517 wxPyEndAllowThreads(__tstate);
20518 if (PyErr_Occurred()) SWIG_fail;
20519 }
20520 resultobj = SWIG_Py_Void();
20521 return resultobj;
20522 fail:
20523 return NULL;
20524 }
20525
20526
20527 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20528 PyObject *resultobj = 0;
20529 wxDC *arg1 = (wxDC *) 0 ;
20530 int result;
20531 void *argp1 = 0 ;
20532 int res1 = 0 ;
20533 PyObject *swig_obj[1] ;
20534
20535 if (!args) SWIG_fail;
20536 swig_obj[0] = args;
20537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20538 if (!SWIG_IsOK(res1)) {
20539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
20540 }
20541 arg1 = reinterpret_cast< wxDC * >(argp1);
20542 {
20543 PyThreadState* __tstate = wxPyBeginAllowThreads();
20544 result = (int)((wxDC const *)arg1)->MinX();
20545 wxPyEndAllowThreads(__tstate);
20546 if (PyErr_Occurred()) SWIG_fail;
20547 }
20548 resultobj = SWIG_From_int(static_cast< int >(result));
20549 return resultobj;
20550 fail:
20551 return NULL;
20552 }
20553
20554
20555 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20556 PyObject *resultobj = 0;
20557 wxDC *arg1 = (wxDC *) 0 ;
20558 int result;
20559 void *argp1 = 0 ;
20560 int res1 = 0 ;
20561 PyObject *swig_obj[1] ;
20562
20563 if (!args) SWIG_fail;
20564 swig_obj[0] = args;
20565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20566 if (!SWIG_IsOK(res1)) {
20567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
20568 }
20569 arg1 = reinterpret_cast< wxDC * >(argp1);
20570 {
20571 PyThreadState* __tstate = wxPyBeginAllowThreads();
20572 result = (int)((wxDC const *)arg1)->MaxX();
20573 wxPyEndAllowThreads(__tstate);
20574 if (PyErr_Occurred()) SWIG_fail;
20575 }
20576 resultobj = SWIG_From_int(static_cast< int >(result));
20577 return resultobj;
20578 fail:
20579 return NULL;
20580 }
20581
20582
20583 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20584 PyObject *resultobj = 0;
20585 wxDC *arg1 = (wxDC *) 0 ;
20586 int result;
20587 void *argp1 = 0 ;
20588 int res1 = 0 ;
20589 PyObject *swig_obj[1] ;
20590
20591 if (!args) SWIG_fail;
20592 swig_obj[0] = args;
20593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20594 if (!SWIG_IsOK(res1)) {
20595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
20596 }
20597 arg1 = reinterpret_cast< wxDC * >(argp1);
20598 {
20599 PyThreadState* __tstate = wxPyBeginAllowThreads();
20600 result = (int)((wxDC const *)arg1)->MinY();
20601 wxPyEndAllowThreads(__tstate);
20602 if (PyErr_Occurred()) SWIG_fail;
20603 }
20604 resultobj = SWIG_From_int(static_cast< int >(result));
20605 return resultobj;
20606 fail:
20607 return NULL;
20608 }
20609
20610
20611 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20612 PyObject *resultobj = 0;
20613 wxDC *arg1 = (wxDC *) 0 ;
20614 int result;
20615 void *argp1 = 0 ;
20616 int res1 = 0 ;
20617 PyObject *swig_obj[1] ;
20618
20619 if (!args) SWIG_fail;
20620 swig_obj[0] = args;
20621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20622 if (!SWIG_IsOK(res1)) {
20623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
20624 }
20625 arg1 = reinterpret_cast< wxDC * >(argp1);
20626 {
20627 PyThreadState* __tstate = wxPyBeginAllowThreads();
20628 result = (int)((wxDC const *)arg1)->MaxY();
20629 wxPyEndAllowThreads(__tstate);
20630 if (PyErr_Occurred()) SWIG_fail;
20631 }
20632 resultobj = SWIG_From_int(static_cast< int >(result));
20633 return resultobj;
20634 fail:
20635 return NULL;
20636 }
20637
20638
20639 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20640 PyObject *resultobj = 0;
20641 wxDC *arg1 = (wxDC *) 0 ;
20642 int *arg2 = (int *) 0 ;
20643 int *arg3 = (int *) 0 ;
20644 int *arg4 = (int *) 0 ;
20645 int *arg5 = (int *) 0 ;
20646 void *argp1 = 0 ;
20647 int res1 = 0 ;
20648 int temp2 ;
20649 int res2 = SWIG_TMPOBJ ;
20650 int temp3 ;
20651 int res3 = SWIG_TMPOBJ ;
20652 int temp4 ;
20653 int res4 = SWIG_TMPOBJ ;
20654 int temp5 ;
20655 int res5 = SWIG_TMPOBJ ;
20656 PyObject *swig_obj[1] ;
20657
20658 arg2 = &temp2;
20659 arg3 = &temp3;
20660 arg4 = &temp4;
20661 arg5 = &temp5;
20662 if (!args) SWIG_fail;
20663 swig_obj[0] = args;
20664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20665 if (!SWIG_IsOK(res1)) {
20666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20667 }
20668 arg1 = reinterpret_cast< wxDC * >(argp1);
20669 {
20670 PyThreadState* __tstate = wxPyBeginAllowThreads();
20671 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
20672 wxPyEndAllowThreads(__tstate);
20673 if (PyErr_Occurred()) SWIG_fail;
20674 }
20675 resultobj = SWIG_Py_Void();
20676 if (SWIG_IsTmpObj(res2)) {
20677 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20678 } else {
20679 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20680 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20681 }
20682 if (SWIG_IsTmpObj(res3)) {
20683 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20684 } else {
20685 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20686 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20687 }
20688 if (SWIG_IsTmpObj(res4)) {
20689 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20690 } else {
20691 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20692 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20693 }
20694 if (SWIG_IsTmpObj(res5)) {
20695 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20696 } else {
20697 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20698 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20699 }
20700 return resultobj;
20701 fail:
20702 return NULL;
20703 }
20704
20705
20706 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20707 PyObject *resultobj = 0;
20708 wxDC *arg1 = (wxDC *) 0 ;
20709 long result;
20710 void *argp1 = 0 ;
20711 int res1 = 0 ;
20712 PyObject *swig_obj[1] ;
20713
20714 if (!args) SWIG_fail;
20715 swig_obj[0] = args;
20716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20717 if (!SWIG_IsOK(res1)) {
20718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
20719 }
20720 arg1 = reinterpret_cast< wxDC * >(argp1);
20721 {
20722 PyThreadState* __tstate = wxPyBeginAllowThreads();
20723 result = (long)(arg1)->GetHDC();
20724 wxPyEndAllowThreads(__tstate);
20725 if (PyErr_Occurred()) SWIG_fail;
20726 }
20727 resultobj = SWIG_From_long(static_cast< long >(result));
20728 return resultobj;
20729 fail:
20730 return NULL;
20731 }
20732
20733
20734 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20735 PyObject *resultobj = 0;
20736 wxDC *arg1 = (wxDC *) 0 ;
20737 PyObject *arg2 = (PyObject *) 0 ;
20738 PyObject *arg3 = (PyObject *) 0 ;
20739 PyObject *arg4 = (PyObject *) 0 ;
20740 PyObject *result = 0 ;
20741 void *argp1 = 0 ;
20742 int res1 = 0 ;
20743 PyObject * obj0 = 0 ;
20744 PyObject * obj1 = 0 ;
20745 PyObject * obj2 = 0 ;
20746 PyObject * obj3 = 0 ;
20747 char * kwnames[] = {
20748 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20749 };
20750
20751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20753 if (!SWIG_IsOK(res1)) {
20754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
20755 }
20756 arg1 = reinterpret_cast< wxDC * >(argp1);
20757 arg2 = obj1;
20758 arg3 = obj2;
20759 arg4 = obj3;
20760 {
20761 PyThreadState* __tstate = wxPyBeginAllowThreads();
20762 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
20763 wxPyEndAllowThreads(__tstate);
20764 if (PyErr_Occurred()) SWIG_fail;
20765 }
20766 resultobj = result;
20767 return resultobj;
20768 fail:
20769 return NULL;
20770 }
20771
20772
20773 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20774 PyObject *resultobj = 0;
20775 wxDC *arg1 = (wxDC *) 0 ;
20776 PyObject *arg2 = (PyObject *) 0 ;
20777 PyObject *arg3 = (PyObject *) 0 ;
20778 PyObject *arg4 = (PyObject *) 0 ;
20779 PyObject *result = 0 ;
20780 void *argp1 = 0 ;
20781 int res1 = 0 ;
20782 PyObject * obj0 = 0 ;
20783 PyObject * obj1 = 0 ;
20784 PyObject * obj2 = 0 ;
20785 PyObject * obj3 = 0 ;
20786 char * kwnames[] = {
20787 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20788 };
20789
20790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20792 if (!SWIG_IsOK(res1)) {
20793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20794 }
20795 arg1 = reinterpret_cast< wxDC * >(argp1);
20796 arg2 = obj1;
20797 arg3 = obj2;
20798 arg4 = obj3;
20799 {
20800 PyThreadState* __tstate = wxPyBeginAllowThreads();
20801 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
20802 wxPyEndAllowThreads(__tstate);
20803 if (PyErr_Occurred()) SWIG_fail;
20804 }
20805 resultobj = result;
20806 return resultobj;
20807 fail:
20808 return NULL;
20809 }
20810
20811
20812 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20813 PyObject *resultobj = 0;
20814 wxDC *arg1 = (wxDC *) 0 ;
20815 PyObject *arg2 = (PyObject *) 0 ;
20816 PyObject *arg3 = (PyObject *) 0 ;
20817 PyObject *arg4 = (PyObject *) 0 ;
20818 PyObject *result = 0 ;
20819 void *argp1 = 0 ;
20820 int res1 = 0 ;
20821 PyObject * obj0 = 0 ;
20822 PyObject * obj1 = 0 ;
20823 PyObject * obj2 = 0 ;
20824 PyObject * obj3 = 0 ;
20825 char * kwnames[] = {
20826 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20827 };
20828
20829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20831 if (!SWIG_IsOK(res1)) {
20832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20833 }
20834 arg1 = reinterpret_cast< wxDC * >(argp1);
20835 arg2 = obj1;
20836 arg3 = obj2;
20837 arg4 = obj3;
20838 {
20839 PyThreadState* __tstate = wxPyBeginAllowThreads();
20840 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
20841 wxPyEndAllowThreads(__tstate);
20842 if (PyErr_Occurred()) SWIG_fail;
20843 }
20844 resultobj = result;
20845 return resultobj;
20846 fail:
20847 return NULL;
20848 }
20849
20850
20851 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20852 PyObject *resultobj = 0;
20853 wxDC *arg1 = (wxDC *) 0 ;
20854 PyObject *arg2 = (PyObject *) 0 ;
20855 PyObject *arg3 = (PyObject *) 0 ;
20856 PyObject *arg4 = (PyObject *) 0 ;
20857 PyObject *result = 0 ;
20858 void *argp1 = 0 ;
20859 int res1 = 0 ;
20860 PyObject * obj0 = 0 ;
20861 PyObject * obj1 = 0 ;
20862 PyObject * obj2 = 0 ;
20863 PyObject * obj3 = 0 ;
20864 char * kwnames[] = {
20865 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20866 };
20867
20868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20870 if (!SWIG_IsOK(res1)) {
20871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20872 }
20873 arg1 = reinterpret_cast< wxDC * >(argp1);
20874 arg2 = obj1;
20875 arg3 = obj2;
20876 arg4 = obj3;
20877 {
20878 PyThreadState* __tstate = wxPyBeginAllowThreads();
20879 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
20880 wxPyEndAllowThreads(__tstate);
20881 if (PyErr_Occurred()) SWIG_fail;
20882 }
20883 resultobj = result;
20884 return resultobj;
20885 fail:
20886 return NULL;
20887 }
20888
20889
20890 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20891 PyObject *resultobj = 0;
20892 wxDC *arg1 = (wxDC *) 0 ;
20893 PyObject *arg2 = (PyObject *) 0 ;
20894 PyObject *arg3 = (PyObject *) 0 ;
20895 PyObject *arg4 = (PyObject *) 0 ;
20896 PyObject *result = 0 ;
20897 void *argp1 = 0 ;
20898 int res1 = 0 ;
20899 PyObject * obj0 = 0 ;
20900 PyObject * obj1 = 0 ;
20901 PyObject * obj2 = 0 ;
20902 PyObject * obj3 = 0 ;
20903 char * kwnames[] = {
20904 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20905 };
20906
20907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20909 if (!SWIG_IsOK(res1)) {
20910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20911 }
20912 arg1 = reinterpret_cast< wxDC * >(argp1);
20913 arg2 = obj1;
20914 arg3 = obj2;
20915 arg4 = obj3;
20916 {
20917 PyThreadState* __tstate = wxPyBeginAllowThreads();
20918 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
20919 wxPyEndAllowThreads(__tstate);
20920 if (PyErr_Occurred()) SWIG_fail;
20921 }
20922 resultobj = result;
20923 return resultobj;
20924 fail:
20925 return NULL;
20926 }
20927
20928
20929 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20930 PyObject *resultobj = 0;
20931 wxDC *arg1 = (wxDC *) 0 ;
20932 PyObject *arg2 = (PyObject *) 0 ;
20933 PyObject *arg3 = (PyObject *) 0 ;
20934 PyObject *arg4 = (PyObject *) 0 ;
20935 PyObject *arg5 = (PyObject *) 0 ;
20936 PyObject *result = 0 ;
20937 void *argp1 = 0 ;
20938 int res1 = 0 ;
20939 PyObject * obj0 = 0 ;
20940 PyObject * obj1 = 0 ;
20941 PyObject * obj2 = 0 ;
20942 PyObject * obj3 = 0 ;
20943 PyObject * obj4 = 0 ;
20944 char * kwnames[] = {
20945 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20946 };
20947
20948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20950 if (!SWIG_IsOK(res1)) {
20951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20952 }
20953 arg1 = reinterpret_cast< wxDC * >(argp1);
20954 arg2 = obj1;
20955 arg3 = obj2;
20956 arg4 = obj3;
20957 arg5 = obj4;
20958 {
20959 PyThreadState* __tstate = wxPyBeginAllowThreads();
20960 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
20961 wxPyEndAllowThreads(__tstate);
20962 if (PyErr_Occurred()) SWIG_fail;
20963 }
20964 resultobj = result;
20965 return resultobj;
20966 fail:
20967 return NULL;
20968 }
20969
20970
20971 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20972 PyObject *obj;
20973 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20974 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
20975 return SWIG_Py_Void();
20976 }
20977
20978 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20979 PyObject *resultobj = 0;
20980 wxMemoryDC *result = 0 ;
20981
20982 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
20983 {
20984 if (!wxPyCheckForApp()) SWIG_fail;
20985 PyThreadState* __tstate = wxPyBeginAllowThreads();
20986 result = (wxMemoryDC *)new wxMemoryDC();
20987 wxPyEndAllowThreads(__tstate);
20988 if (PyErr_Occurred()) SWIG_fail;
20989 }
20990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
20991 return resultobj;
20992 fail:
20993 return NULL;
20994 }
20995
20996
20997 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20998 PyObject *resultobj = 0;
20999 wxDC *arg1 = (wxDC *) 0 ;
21000 wxMemoryDC *result = 0 ;
21001 void *argp1 = 0 ;
21002 int res1 = 0 ;
21003 PyObject * obj0 = 0 ;
21004 char * kwnames[] = {
21005 (char *) "oldDC", NULL
21006 };
21007
21008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
21009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21010 if (!SWIG_IsOK(res1)) {
21011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
21012 }
21013 arg1 = reinterpret_cast< wxDC * >(argp1);
21014 {
21015 if (!wxPyCheckForApp()) SWIG_fail;
21016 PyThreadState* __tstate = wxPyBeginAllowThreads();
21017 result = (wxMemoryDC *)new wxMemoryDC(arg1);
21018 wxPyEndAllowThreads(__tstate);
21019 if (PyErr_Occurred()) SWIG_fail;
21020 }
21021 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
21022 return resultobj;
21023 fail:
21024 return NULL;
21025 }
21026
21027
21028 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21029 PyObject *resultobj = 0;
21030 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
21031 wxBitmap *arg2 = 0 ;
21032 void *argp1 = 0 ;
21033 int res1 = 0 ;
21034 void *argp2 = 0 ;
21035 int res2 = 0 ;
21036 PyObject * obj0 = 0 ;
21037 PyObject * obj1 = 0 ;
21038 char * kwnames[] = {
21039 (char *) "self",(char *) "bitmap", NULL
21040 };
21041
21042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
21043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
21044 if (!SWIG_IsOK(res1)) {
21045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
21046 }
21047 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
21048 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21049 if (!SWIG_IsOK(res2)) {
21050 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21051 }
21052 if (!argp2) {
21053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21054 }
21055 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21056 {
21057 PyThreadState* __tstate = wxPyBeginAllowThreads();
21058 (arg1)->SelectObject((wxBitmap const &)*arg2);
21059 wxPyEndAllowThreads(__tstate);
21060 if (PyErr_Occurred()) SWIG_fail;
21061 }
21062 resultobj = SWIG_Py_Void();
21063 return resultobj;
21064 fail:
21065 return NULL;
21066 }
21067
21068
21069 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21070 PyObject *obj;
21071 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21072 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
21073 return SWIG_Py_Void();
21074 }
21075
21076 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21077 return SWIG_Python_InitShadowInstance(args);
21078 }
21079
21080 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21081 PyObject *resultobj = 0;
21082 wxDC *arg1 = (wxDC *) 0 ;
21083 wxBitmap const &arg2_defvalue = wxNullBitmap ;
21084 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
21085 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21086 wxBufferedDC *result = 0 ;
21087 void *argp1 = 0 ;
21088 int res1 = 0 ;
21089 void *argp2 = 0 ;
21090 int res2 = 0 ;
21091 int val3 ;
21092 int ecode3 = 0 ;
21093
21094 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
21095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21096 if (!SWIG_IsOK(res1)) {
21097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
21098 }
21099 arg1 = reinterpret_cast< wxDC * >(argp1);
21100 if (swig_obj[1]) {
21101 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21102 if (!SWIG_IsOK(res2)) {
21103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21104 }
21105 if (!argp2) {
21106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21107 }
21108 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21109 }
21110 if (swig_obj[2]) {
21111 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
21112 if (!SWIG_IsOK(ecode3)) {
21113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
21114 }
21115 arg3 = static_cast< int >(val3);
21116 }
21117 {
21118 if (!wxPyCheckForApp()) SWIG_fail;
21119 PyThreadState* __tstate = wxPyBeginAllowThreads();
21120 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
21121 wxPyEndAllowThreads(__tstate);
21122 if (PyErr_Occurred()) SWIG_fail;
21123 }
21124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
21125 return resultobj;
21126 fail:
21127 return NULL;
21128 }
21129
21130
21131 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21132 PyObject *resultobj = 0;
21133 wxDC *arg1 = (wxDC *) 0 ;
21134 wxSize *arg2 = 0 ;
21135 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21136 wxBufferedDC *result = 0 ;
21137 void *argp1 = 0 ;
21138 int res1 = 0 ;
21139 wxSize temp2 ;
21140 int val3 ;
21141 int ecode3 = 0 ;
21142
21143 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
21144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21145 if (!SWIG_IsOK(res1)) {
21146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
21147 }
21148 arg1 = reinterpret_cast< wxDC * >(argp1);
21149 {
21150 arg2 = &temp2;
21151 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
21152 }
21153 if (swig_obj[2]) {
21154 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
21155 if (!SWIG_IsOK(ecode3)) {
21156 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
21157 }
21158 arg3 = static_cast< int >(val3);
21159 }
21160 {
21161 if (!wxPyCheckForApp()) SWIG_fail;
21162 PyThreadState* __tstate = wxPyBeginAllowThreads();
21163 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
21164 wxPyEndAllowThreads(__tstate);
21165 if (PyErr_Occurred()) SWIG_fail;
21166 }
21167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
21168 return resultobj;
21169 fail:
21170 return NULL;
21171 }
21172
21173
21174 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
21175 int argc;
21176 PyObject *argv[4];
21177
21178 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
21179 --argc;
21180 if ((argc >= 1) && (argc <= 3)) {
21181 int _v = 0;
21182 if (argc > 1) {
21183 {
21184 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
21185 _v = SWIG_CheckState(res);
21186 }
21187 if (!_v) goto check_1;
21188 }
21189 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
21190 }
21191 check_1:
21192
21193 if ((argc >= 2) && (argc <= 3)) {
21194 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
21195 }
21196
21197 fail:
21198 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
21199 return NULL;
21200 }
21201
21202
21203 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21204 PyObject *resultobj = 0;
21205 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
21206 void *argp1 = 0 ;
21207 int res1 = 0 ;
21208 PyObject *swig_obj[1] ;
21209
21210 if (!args) SWIG_fail;
21211 swig_obj[0] = args;
21212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
21213 if (!SWIG_IsOK(res1)) {
21214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
21215 }
21216 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
21217 {
21218 PyThreadState* __tstate = wxPyBeginAllowThreads();
21219 delete arg1;
21220
21221 wxPyEndAllowThreads(__tstate);
21222 if (PyErr_Occurred()) SWIG_fail;
21223 }
21224 resultobj = SWIG_Py_Void();
21225 return resultobj;
21226 fail:
21227 return NULL;
21228 }
21229
21230
21231 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21232 PyObject *resultobj = 0;
21233 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
21234 void *argp1 = 0 ;
21235 int res1 = 0 ;
21236 PyObject *swig_obj[1] ;
21237
21238 if (!args) SWIG_fail;
21239 swig_obj[0] = args;
21240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
21241 if (!SWIG_IsOK(res1)) {
21242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
21243 }
21244 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
21245 {
21246 PyThreadState* __tstate = wxPyBeginAllowThreads();
21247 (arg1)->UnMask();
21248 wxPyEndAllowThreads(__tstate);
21249 if (PyErr_Occurred()) SWIG_fail;
21250 }
21251 resultobj = SWIG_Py_Void();
21252 return resultobj;
21253 fail:
21254 return NULL;
21255 }
21256
21257
21258 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21259 PyObject *obj;
21260 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21261 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
21262 return SWIG_Py_Void();
21263 }
21264
21265 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21266 return SWIG_Python_InitShadowInstance(args);
21267 }
21268
21269 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21270 PyObject *resultobj = 0;
21271 wxWindow *arg1 = (wxWindow *) 0 ;
21272 wxBitmap const &arg2_defvalue = wxNullBitmap ;
21273 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
21274 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21275 wxBufferedPaintDC *result = 0 ;
21276 void *argp1 = 0 ;
21277 int res1 = 0 ;
21278 void *argp2 = 0 ;
21279 int res2 = 0 ;
21280 int val3 ;
21281 int ecode3 = 0 ;
21282 PyObject * obj0 = 0 ;
21283 PyObject * obj1 = 0 ;
21284 PyObject * obj2 = 0 ;
21285 char * kwnames[] = {
21286 (char *) "window",(char *) "buffer",(char *) "style", NULL
21287 };
21288
21289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21291 if (!SWIG_IsOK(res1)) {
21292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21293 }
21294 arg1 = reinterpret_cast< wxWindow * >(argp1);
21295 if (obj1) {
21296 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21297 if (!SWIG_IsOK(res2)) {
21298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21299 }
21300 if (!argp2) {
21301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21302 }
21303 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21304 }
21305 if (obj2) {
21306 ecode3 = SWIG_AsVal_int(obj2, &val3);
21307 if (!SWIG_IsOK(ecode3)) {
21308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
21309 }
21310 arg3 = static_cast< int >(val3);
21311 }
21312 {
21313 if (!wxPyCheckForApp()) SWIG_fail;
21314 PyThreadState* __tstate = wxPyBeginAllowThreads();
21315 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
21316 wxPyEndAllowThreads(__tstate);
21317 if (PyErr_Occurred()) SWIG_fail;
21318 }
21319 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
21320 return resultobj;
21321 fail:
21322 return NULL;
21323 }
21324
21325
21326 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21327 PyObject *obj;
21328 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21329 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
21330 return SWIG_Py_Void();
21331 }
21332
21333 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21334 return SWIG_Python_InitShadowInstance(args);
21335 }
21336
21337 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21338 PyObject *resultobj = 0;
21339 wxScreenDC *result = 0 ;
21340
21341 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
21342 {
21343 if (!wxPyCheckForApp()) SWIG_fail;
21344 PyThreadState* __tstate = wxPyBeginAllowThreads();
21345 result = (wxScreenDC *)new wxScreenDC();
21346 wxPyEndAllowThreads(__tstate);
21347 if (PyErr_Occurred()) SWIG_fail;
21348 }
21349 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
21350 return resultobj;
21351 fail:
21352 return NULL;
21353 }
21354
21355
21356 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21357 PyObject *resultobj = 0;
21358 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21359 wxWindow *arg2 = (wxWindow *) 0 ;
21360 bool result;
21361 void *argp1 = 0 ;
21362 int res1 = 0 ;
21363 void *argp2 = 0 ;
21364 int res2 = 0 ;
21365 PyObject * obj0 = 0 ;
21366 PyObject * obj1 = 0 ;
21367 char * kwnames[] = {
21368 (char *) "self",(char *) "window", NULL
21369 };
21370
21371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
21372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21373 if (!SWIG_IsOK(res1)) {
21374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21375 }
21376 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21377 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21378 if (!SWIG_IsOK(res2)) {
21379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
21380 }
21381 arg2 = reinterpret_cast< wxWindow * >(argp2);
21382 {
21383 PyThreadState* __tstate = wxPyBeginAllowThreads();
21384 result = (bool)(arg1)->StartDrawingOnTop(arg2);
21385 wxPyEndAllowThreads(__tstate);
21386 if (PyErr_Occurred()) SWIG_fail;
21387 }
21388 {
21389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21390 }
21391 return resultobj;
21392 fail:
21393 return NULL;
21394 }
21395
21396
21397 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21398 PyObject *resultobj = 0;
21399 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21400 wxRect *arg2 = (wxRect *) NULL ;
21401 bool result;
21402 void *argp1 = 0 ;
21403 int res1 = 0 ;
21404 void *argp2 = 0 ;
21405 int res2 = 0 ;
21406 PyObject * obj0 = 0 ;
21407 PyObject * obj1 = 0 ;
21408 char * kwnames[] = {
21409 (char *) "self",(char *) "rect", NULL
21410 };
21411
21412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
21413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21414 if (!SWIG_IsOK(res1)) {
21415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21416 }
21417 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21418 if (obj1) {
21419 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
21420 if (!SWIG_IsOK(res2)) {
21421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
21422 }
21423 arg2 = reinterpret_cast< wxRect * >(argp2);
21424 }
21425 {
21426 PyThreadState* __tstate = wxPyBeginAllowThreads();
21427 result = (bool)(arg1)->StartDrawingOnTop(arg2);
21428 wxPyEndAllowThreads(__tstate);
21429 if (PyErr_Occurred()) SWIG_fail;
21430 }
21431 {
21432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21433 }
21434 return resultobj;
21435 fail:
21436 return NULL;
21437 }
21438
21439
21440 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21441 PyObject *resultobj = 0;
21442 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21443 bool result;
21444 void *argp1 = 0 ;
21445 int res1 = 0 ;
21446 PyObject *swig_obj[1] ;
21447
21448 if (!args) SWIG_fail;
21449 swig_obj[0] = args;
21450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21451 if (!SWIG_IsOK(res1)) {
21452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21453 }
21454 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21455 {
21456 PyThreadState* __tstate = wxPyBeginAllowThreads();
21457 result = (bool)(arg1)->EndDrawingOnTop();
21458 wxPyEndAllowThreads(__tstate);
21459 if (PyErr_Occurred()) SWIG_fail;
21460 }
21461 {
21462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21463 }
21464 return resultobj;
21465 fail:
21466 return NULL;
21467 }
21468
21469
21470 SWIGINTERN PyObject *ScreenDC_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_wxScreenDC, SWIG_NewClientData(obj));
21474 return SWIG_Py_Void();
21475 }
21476
21477 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21478 return SWIG_Python_InitShadowInstance(args);
21479 }
21480
21481 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21482 PyObject *resultobj = 0;
21483 wxWindow *arg1 = (wxWindow *) 0 ;
21484 wxClientDC *result = 0 ;
21485 void *argp1 = 0 ;
21486 int res1 = 0 ;
21487 PyObject * obj0 = 0 ;
21488 char * kwnames[] = {
21489 (char *) "win", NULL
21490 };
21491
21492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
21493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21494 if (!SWIG_IsOK(res1)) {
21495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21496 }
21497 arg1 = reinterpret_cast< wxWindow * >(argp1);
21498 {
21499 if (!wxPyCheckForApp()) SWIG_fail;
21500 PyThreadState* __tstate = wxPyBeginAllowThreads();
21501 result = (wxClientDC *)new wxClientDC(arg1);
21502 wxPyEndAllowThreads(__tstate);
21503 if (PyErr_Occurred()) SWIG_fail;
21504 }
21505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
21506 return resultobj;
21507 fail:
21508 return NULL;
21509 }
21510
21511
21512 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21513 PyObject *obj;
21514 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21515 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
21516 return SWIG_Py_Void();
21517 }
21518
21519 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21520 return SWIG_Python_InitShadowInstance(args);
21521 }
21522
21523 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21524 PyObject *resultobj = 0;
21525 wxWindow *arg1 = (wxWindow *) 0 ;
21526 wxPaintDC *result = 0 ;
21527 void *argp1 = 0 ;
21528 int res1 = 0 ;
21529 PyObject * obj0 = 0 ;
21530 char * kwnames[] = {
21531 (char *) "win", NULL
21532 };
21533
21534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
21535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21536 if (!SWIG_IsOK(res1)) {
21537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21538 }
21539 arg1 = reinterpret_cast< wxWindow * >(argp1);
21540 {
21541 if (!wxPyCheckForApp()) SWIG_fail;
21542 PyThreadState* __tstate = wxPyBeginAllowThreads();
21543 result = (wxPaintDC *)new wxPaintDC(arg1);
21544 wxPyEndAllowThreads(__tstate);
21545 if (PyErr_Occurred()) SWIG_fail;
21546 }
21547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
21548 return resultobj;
21549 fail:
21550 return NULL;
21551 }
21552
21553
21554 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21555 PyObject *obj;
21556 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21557 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
21558 return SWIG_Py_Void();
21559 }
21560
21561 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21562 return SWIG_Python_InitShadowInstance(args);
21563 }
21564
21565 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21566 PyObject *resultobj = 0;
21567 wxWindow *arg1 = (wxWindow *) 0 ;
21568 wxWindowDC *result = 0 ;
21569 void *argp1 = 0 ;
21570 int res1 = 0 ;
21571 PyObject * obj0 = 0 ;
21572 char * kwnames[] = {
21573 (char *) "win", NULL
21574 };
21575
21576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
21577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21578 if (!SWIG_IsOK(res1)) {
21579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21580 }
21581 arg1 = reinterpret_cast< wxWindow * >(argp1);
21582 {
21583 if (!wxPyCheckForApp()) SWIG_fail;
21584 PyThreadState* __tstate = wxPyBeginAllowThreads();
21585 result = (wxWindowDC *)new wxWindowDC(arg1);
21586 wxPyEndAllowThreads(__tstate);
21587 if (PyErr_Occurred()) SWIG_fail;
21588 }
21589 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
21590 return resultobj;
21591 fail:
21592 return NULL;
21593 }
21594
21595
21596 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21597 PyObject *obj;
21598 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21599 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
21600 return SWIG_Py_Void();
21601 }
21602
21603 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21604 return SWIG_Python_InitShadowInstance(args);
21605 }
21606
21607 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21608 PyObject *resultobj = 0;
21609 wxDC *arg1 = 0 ;
21610 bool arg2 ;
21611 wxMirrorDC *result = 0 ;
21612 void *argp1 = 0 ;
21613 int res1 = 0 ;
21614 bool val2 ;
21615 int ecode2 = 0 ;
21616 PyObject * obj0 = 0 ;
21617 PyObject * obj1 = 0 ;
21618 char * kwnames[] = {
21619 (char *) "dc",(char *) "mirror", NULL
21620 };
21621
21622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
21623 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
21624 if (!SWIG_IsOK(res1)) {
21625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
21626 }
21627 if (!argp1) {
21628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
21629 }
21630 arg1 = reinterpret_cast< wxDC * >(argp1);
21631 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21632 if (!SWIG_IsOK(ecode2)) {
21633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
21634 }
21635 arg2 = static_cast< bool >(val2);
21636 {
21637 if (!wxPyCheckForApp()) SWIG_fail;
21638 PyThreadState* __tstate = wxPyBeginAllowThreads();
21639 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
21640 wxPyEndAllowThreads(__tstate);
21641 if (PyErr_Occurred()) SWIG_fail;
21642 }
21643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
21644 return resultobj;
21645 fail:
21646 return NULL;
21647 }
21648
21649
21650 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21651 PyObject *obj;
21652 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21653 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
21654 return SWIG_Py_Void();
21655 }
21656
21657 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21658 return SWIG_Python_InitShadowInstance(args);
21659 }
21660
21661 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21662 PyObject *resultobj = 0;
21663 wxPrintData *arg1 = 0 ;
21664 wxPostScriptDC *result = 0 ;
21665 void *argp1 = 0 ;
21666 int res1 = 0 ;
21667 PyObject * obj0 = 0 ;
21668 char * kwnames[] = {
21669 (char *) "printData", NULL
21670 };
21671
21672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
21673 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21674 if (!SWIG_IsOK(res1)) {
21675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21676 }
21677 if (!argp1) {
21678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21679 }
21680 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21681 {
21682 if (!wxPyCheckForApp()) SWIG_fail;
21683 PyThreadState* __tstate = wxPyBeginAllowThreads();
21684 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
21685 wxPyEndAllowThreads(__tstate);
21686 if (PyErr_Occurred()) SWIG_fail;
21687 }
21688 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
21689 return resultobj;
21690 fail:
21691 return NULL;
21692 }
21693
21694
21695 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21696 PyObject *resultobj = 0;
21697 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21698 wxPrintData *result = 0 ;
21699 void *argp1 = 0 ;
21700 int res1 = 0 ;
21701 PyObject *swig_obj[1] ;
21702
21703 if (!args) SWIG_fail;
21704 swig_obj[0] = args;
21705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21706 if (!SWIG_IsOK(res1)) {
21707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21708 }
21709 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21710 {
21711 PyThreadState* __tstate = wxPyBeginAllowThreads();
21712 {
21713 wxPrintData &_result_ref = (arg1)->GetPrintData();
21714 result = (wxPrintData *) &_result_ref;
21715 }
21716 wxPyEndAllowThreads(__tstate);
21717 if (PyErr_Occurred()) SWIG_fail;
21718 }
21719 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
21720 return resultobj;
21721 fail:
21722 return NULL;
21723 }
21724
21725
21726 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21727 PyObject *resultobj = 0;
21728 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21729 wxPrintData *arg2 = 0 ;
21730 void *argp1 = 0 ;
21731 int res1 = 0 ;
21732 void *argp2 = 0 ;
21733 int res2 = 0 ;
21734 PyObject * obj0 = 0 ;
21735 PyObject * obj1 = 0 ;
21736 char * kwnames[] = {
21737 (char *) "self",(char *) "data", NULL
21738 };
21739
21740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
21741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21742 if (!SWIG_IsOK(res1)) {
21743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21744 }
21745 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21746 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
21747 if (!SWIG_IsOK(res2)) {
21748 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21749 }
21750 if (!argp2) {
21751 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21752 }
21753 arg2 = reinterpret_cast< wxPrintData * >(argp2);
21754 {
21755 PyThreadState* __tstate = wxPyBeginAllowThreads();
21756 (arg1)->SetPrintData((wxPrintData const &)*arg2);
21757 wxPyEndAllowThreads(__tstate);
21758 if (PyErr_Occurred()) SWIG_fail;
21759 }
21760 resultobj = SWIG_Py_Void();
21761 return resultobj;
21762 fail:
21763 return NULL;
21764 }
21765
21766
21767 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21768 PyObject *resultobj = 0;
21769 int arg1 ;
21770 int val1 ;
21771 int ecode1 = 0 ;
21772 PyObject * obj0 = 0 ;
21773 char * kwnames[] = {
21774 (char *) "ppi", NULL
21775 };
21776
21777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
21778 ecode1 = SWIG_AsVal_int(obj0, &val1);
21779 if (!SWIG_IsOK(ecode1)) {
21780 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21781 }
21782 arg1 = static_cast< int >(val1);
21783 {
21784 PyThreadState* __tstate = wxPyBeginAllowThreads();
21785 wxPostScriptDC::SetResolution(arg1);
21786 wxPyEndAllowThreads(__tstate);
21787 if (PyErr_Occurred()) SWIG_fail;
21788 }
21789 resultobj = SWIG_Py_Void();
21790 return resultobj;
21791 fail:
21792 return NULL;
21793 }
21794
21795
21796 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21797 PyObject *resultobj = 0;
21798 int result;
21799
21800 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
21801 {
21802 PyThreadState* __tstate = wxPyBeginAllowThreads();
21803 result = (int)wxPostScriptDC::GetResolution();
21804 wxPyEndAllowThreads(__tstate);
21805 if (PyErr_Occurred()) SWIG_fail;
21806 }
21807 resultobj = SWIG_From_int(static_cast< int >(result));
21808 return resultobj;
21809 fail:
21810 return NULL;
21811 }
21812
21813
21814 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21815 PyObject *obj;
21816 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21817 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
21818 return SWIG_Py_Void();
21819 }
21820
21821 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21822 return SWIG_Python_InitShadowInstance(args);
21823 }
21824
21825 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21826 PyObject *resultobj = 0;
21827 wxString const &arg1_defvalue = wxPyEmptyString ;
21828 wxString *arg1 = (wxString *) &arg1_defvalue ;
21829 wxMetaFile *result = 0 ;
21830 bool temp1 = false ;
21831 PyObject * obj0 = 0 ;
21832 char * kwnames[] = {
21833 (char *) "filename", NULL
21834 };
21835
21836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
21837 if (obj0) {
21838 {
21839 arg1 = wxString_in_helper(obj0);
21840 if (arg1 == NULL) SWIG_fail;
21841 temp1 = true;
21842 }
21843 }
21844 {
21845 if (!wxPyCheckForApp()) SWIG_fail;
21846 PyThreadState* __tstate = wxPyBeginAllowThreads();
21847 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
21848 wxPyEndAllowThreads(__tstate);
21849 if (PyErr_Occurred()) SWIG_fail;
21850 }
21851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
21852 {
21853 if (temp1)
21854 delete arg1;
21855 }
21856 return resultobj;
21857 fail:
21858 {
21859 if (temp1)
21860 delete arg1;
21861 }
21862 return NULL;
21863 }
21864
21865
21866 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21867 PyObject *resultobj = 0;
21868 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21869 void *argp1 = 0 ;
21870 int res1 = 0 ;
21871 PyObject *swig_obj[1] ;
21872
21873 if (!args) SWIG_fail;
21874 swig_obj[0] = args;
21875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
21876 if (!SWIG_IsOK(res1)) {
21877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21878 }
21879 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21880 {
21881 PyThreadState* __tstate = wxPyBeginAllowThreads();
21882 delete arg1;
21883
21884 wxPyEndAllowThreads(__tstate);
21885 if (PyErr_Occurred()) SWIG_fail;
21886 }
21887 resultobj = SWIG_Py_Void();
21888 return resultobj;
21889 fail:
21890 return NULL;
21891 }
21892
21893
21894 SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21895 PyObject *resultobj = 0;
21896 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21897 bool result;
21898 void *argp1 = 0 ;
21899 int res1 = 0 ;
21900 PyObject *swig_obj[1] ;
21901
21902 if (!args) SWIG_fail;
21903 swig_obj[0] = args;
21904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21905 if (!SWIG_IsOK(res1)) {
21906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21907 }
21908 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21909 {
21910 PyThreadState* __tstate = wxPyBeginAllowThreads();
21911 result = (bool)(arg1)->Ok();
21912 wxPyEndAllowThreads(__tstate);
21913 if (PyErr_Occurred()) SWIG_fail;
21914 }
21915 {
21916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21917 }
21918 return resultobj;
21919 fail:
21920 return NULL;
21921 }
21922
21923
21924 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21925 PyObject *resultobj = 0;
21926 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21927 int arg2 = (int) 0 ;
21928 int arg3 = (int) 0 ;
21929 bool result;
21930 void *argp1 = 0 ;
21931 int res1 = 0 ;
21932 int val2 ;
21933 int ecode2 = 0 ;
21934 int val3 ;
21935 int ecode3 = 0 ;
21936 PyObject * obj0 = 0 ;
21937 PyObject * obj1 = 0 ;
21938 PyObject * obj2 = 0 ;
21939 char * kwnames[] = {
21940 (char *) "self",(char *) "width",(char *) "height", NULL
21941 };
21942
21943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21945 if (!SWIG_IsOK(res1)) {
21946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21947 }
21948 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21949 if (obj1) {
21950 ecode2 = SWIG_AsVal_int(obj1, &val2);
21951 if (!SWIG_IsOK(ecode2)) {
21952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
21953 }
21954 arg2 = static_cast< int >(val2);
21955 }
21956 if (obj2) {
21957 ecode3 = SWIG_AsVal_int(obj2, &val3);
21958 if (!SWIG_IsOK(ecode3)) {
21959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
21960 }
21961 arg3 = static_cast< int >(val3);
21962 }
21963 {
21964 PyThreadState* __tstate = wxPyBeginAllowThreads();
21965 result = (bool)(arg1)->SetClipboard(arg2,arg3);
21966 wxPyEndAllowThreads(__tstate);
21967 if (PyErr_Occurred()) SWIG_fail;
21968 }
21969 {
21970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21971 }
21972 return resultobj;
21973 fail:
21974 return NULL;
21975 }
21976
21977
21978 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21979 PyObject *resultobj = 0;
21980 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21981 wxSize result;
21982 void *argp1 = 0 ;
21983 int res1 = 0 ;
21984 PyObject *swig_obj[1] ;
21985
21986 if (!args) SWIG_fail;
21987 swig_obj[0] = args;
21988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21989 if (!SWIG_IsOK(res1)) {
21990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21991 }
21992 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21993 {
21994 PyThreadState* __tstate = wxPyBeginAllowThreads();
21995 result = (arg1)->GetSize();
21996 wxPyEndAllowThreads(__tstate);
21997 if (PyErr_Occurred()) SWIG_fail;
21998 }
21999 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22000 return resultobj;
22001 fail:
22002 return NULL;
22003 }
22004
22005
22006 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22007 PyObject *resultobj = 0;
22008 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22009 int result;
22010 void *argp1 = 0 ;
22011 int res1 = 0 ;
22012 PyObject *swig_obj[1] ;
22013
22014 if (!args) SWIG_fail;
22015 swig_obj[0] = args;
22016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22017 if (!SWIG_IsOK(res1)) {
22018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
22019 }
22020 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22021 {
22022 PyThreadState* __tstate = wxPyBeginAllowThreads();
22023 result = (int)(arg1)->GetWidth();
22024 wxPyEndAllowThreads(__tstate);
22025 if (PyErr_Occurred()) SWIG_fail;
22026 }
22027 resultobj = SWIG_From_int(static_cast< int >(result));
22028 return resultobj;
22029 fail:
22030 return NULL;
22031 }
22032
22033
22034 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22035 PyObject *resultobj = 0;
22036 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22037 int result;
22038 void *argp1 = 0 ;
22039 int res1 = 0 ;
22040 PyObject *swig_obj[1] ;
22041
22042 if (!args) SWIG_fail;
22043 swig_obj[0] = args;
22044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22045 if (!SWIG_IsOK(res1)) {
22046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
22047 }
22048 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22049 {
22050 PyThreadState* __tstate = wxPyBeginAllowThreads();
22051 result = (int)(arg1)->GetHeight();
22052 wxPyEndAllowThreads(__tstate);
22053 if (PyErr_Occurred()) SWIG_fail;
22054 }
22055 resultobj = SWIG_From_int(static_cast< int >(result));
22056 return resultobj;
22057 fail:
22058 return NULL;
22059 }
22060
22061
22062 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22063 PyObject *resultobj = 0;
22064 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22065 wxString *result = 0 ;
22066 void *argp1 = 0 ;
22067 int res1 = 0 ;
22068 PyObject *swig_obj[1] ;
22069
22070 if (!args) SWIG_fail;
22071 swig_obj[0] = args;
22072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22073 if (!SWIG_IsOK(res1)) {
22074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
22075 }
22076 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22077 {
22078 PyThreadState* __tstate = wxPyBeginAllowThreads();
22079 {
22080 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
22081 result = (wxString *) &_result_ref;
22082 }
22083 wxPyEndAllowThreads(__tstate);
22084 if (PyErr_Occurred()) SWIG_fail;
22085 }
22086 {
22087 #if wxUSE_UNICODE
22088 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
22089 #else
22090 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
22091 #endif
22092 }
22093 return resultobj;
22094 fail:
22095 return NULL;
22096 }
22097
22098
22099 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22100 PyObject *obj;
22101 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22102 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
22103 return SWIG_Py_Void();
22104 }
22105
22106 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22107 return SWIG_Python_InitShadowInstance(args);
22108 }
22109
22110 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22111 PyObject *resultobj = 0;
22112 wxString const &arg1_defvalue = wxPyEmptyString ;
22113 wxString *arg1 = (wxString *) &arg1_defvalue ;
22114 int arg2 = (int) 0 ;
22115 int arg3 = (int) 0 ;
22116 wxString const &arg4_defvalue = wxPyEmptyString ;
22117 wxString *arg4 = (wxString *) &arg4_defvalue ;
22118 wxMetaFileDC *result = 0 ;
22119 bool temp1 = false ;
22120 int val2 ;
22121 int ecode2 = 0 ;
22122 int val3 ;
22123 int ecode3 = 0 ;
22124 bool temp4 = false ;
22125 PyObject * obj0 = 0 ;
22126 PyObject * obj1 = 0 ;
22127 PyObject * obj2 = 0 ;
22128 PyObject * obj3 = 0 ;
22129 char * kwnames[] = {
22130 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
22131 };
22132
22133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22134 if (obj0) {
22135 {
22136 arg1 = wxString_in_helper(obj0);
22137 if (arg1 == NULL) SWIG_fail;
22138 temp1 = true;
22139 }
22140 }
22141 if (obj1) {
22142 ecode2 = SWIG_AsVal_int(obj1, &val2);
22143 if (!SWIG_IsOK(ecode2)) {
22144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
22145 }
22146 arg2 = static_cast< int >(val2);
22147 }
22148 if (obj2) {
22149 ecode3 = SWIG_AsVal_int(obj2, &val3);
22150 if (!SWIG_IsOK(ecode3)) {
22151 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
22152 }
22153 arg3 = static_cast< int >(val3);
22154 }
22155 if (obj3) {
22156 {
22157 arg4 = wxString_in_helper(obj3);
22158 if (arg4 == NULL) SWIG_fail;
22159 temp4 = true;
22160 }
22161 }
22162 {
22163 if (!wxPyCheckForApp()) SWIG_fail;
22164 PyThreadState* __tstate = wxPyBeginAllowThreads();
22165 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
22166 wxPyEndAllowThreads(__tstate);
22167 if (PyErr_Occurred()) SWIG_fail;
22168 }
22169 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
22170 {
22171 if (temp1)
22172 delete arg1;
22173 }
22174 {
22175 if (temp4)
22176 delete arg4;
22177 }
22178 return resultobj;
22179 fail:
22180 {
22181 if (temp1)
22182 delete arg1;
22183 }
22184 {
22185 if (temp4)
22186 delete arg4;
22187 }
22188 return NULL;
22189 }
22190
22191
22192 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22193 PyObject *resultobj = 0;
22194 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
22195 wxMetaFile *result = 0 ;
22196 void *argp1 = 0 ;
22197 int res1 = 0 ;
22198 PyObject *swig_obj[1] ;
22199
22200 if (!args) SWIG_fail;
22201 swig_obj[0] = args;
22202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
22203 if (!SWIG_IsOK(res1)) {
22204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
22205 }
22206 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
22207 {
22208 PyThreadState* __tstate = wxPyBeginAllowThreads();
22209 result = (wxMetaFile *)(arg1)->Close();
22210 wxPyEndAllowThreads(__tstate);
22211 if (PyErr_Occurred()) SWIG_fail;
22212 }
22213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
22214 return resultobj;
22215 fail:
22216 return NULL;
22217 }
22218
22219
22220 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22221 PyObject *obj;
22222 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22223 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
22224 return SWIG_Py_Void();
22225 }
22226
22227 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22228 return SWIG_Python_InitShadowInstance(args);
22229 }
22230
22231 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22232 PyObject *resultobj = 0;
22233 wxPrintData *arg1 = 0 ;
22234 wxPrinterDC *result = 0 ;
22235 void *argp1 = 0 ;
22236 int res1 = 0 ;
22237 PyObject * obj0 = 0 ;
22238 char * kwnames[] = {
22239 (char *) "printData", NULL
22240 };
22241
22242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
22243 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
22244 if (!SWIG_IsOK(res1)) {
22245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
22246 }
22247 if (!argp1) {
22248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
22249 }
22250 arg1 = reinterpret_cast< wxPrintData * >(argp1);
22251 {
22252 if (!wxPyCheckForApp()) SWIG_fail;
22253 PyThreadState* __tstate = wxPyBeginAllowThreads();
22254 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
22255 wxPyEndAllowThreads(__tstate);
22256 if (PyErr_Occurred()) SWIG_fail;
22257 }
22258 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
22259 return resultobj;
22260 fail:
22261 return NULL;
22262 }
22263
22264
22265 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22266 PyObject *obj;
22267 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22268 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
22269 return SWIG_Py_Void();
22270 }
22271
22272 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22273 return SWIG_Python_InitShadowInstance(args);
22274 }
22275
22276 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22277 PyObject *resultobj = 0;
22278 int arg1 ;
22279 int arg2 ;
22280 int arg3 = (int) true ;
22281 int arg4 = (int) 1 ;
22282 wxImageList *result = 0 ;
22283 int val1 ;
22284 int ecode1 = 0 ;
22285 int val2 ;
22286 int ecode2 = 0 ;
22287 int val3 ;
22288 int ecode3 = 0 ;
22289 int val4 ;
22290 int ecode4 = 0 ;
22291 PyObject * obj0 = 0 ;
22292 PyObject * obj1 = 0 ;
22293 PyObject * obj2 = 0 ;
22294 PyObject * obj3 = 0 ;
22295 char * kwnames[] = {
22296 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
22297 };
22298
22299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22300 ecode1 = SWIG_AsVal_int(obj0, &val1);
22301 if (!SWIG_IsOK(ecode1)) {
22302 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
22303 }
22304 arg1 = static_cast< int >(val1);
22305 ecode2 = SWIG_AsVal_int(obj1, &val2);
22306 if (!SWIG_IsOK(ecode2)) {
22307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
22308 }
22309 arg2 = static_cast< int >(val2);
22310 if (obj2) {
22311 ecode3 = SWIG_AsVal_int(obj2, &val3);
22312 if (!SWIG_IsOK(ecode3)) {
22313 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
22314 }
22315 arg3 = static_cast< int >(val3);
22316 }
22317 if (obj3) {
22318 ecode4 = SWIG_AsVal_int(obj3, &val4);
22319 if (!SWIG_IsOK(ecode4)) {
22320 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
22321 }
22322 arg4 = static_cast< int >(val4);
22323 }
22324 {
22325 if (!wxPyCheckForApp()) SWIG_fail;
22326 PyThreadState* __tstate = wxPyBeginAllowThreads();
22327 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
22328 wxPyEndAllowThreads(__tstate);
22329 if (PyErr_Occurred()) SWIG_fail;
22330 }
22331 {
22332 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
22333 }
22334 return resultobj;
22335 fail:
22336 return NULL;
22337 }
22338
22339
22340 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22341 PyObject *resultobj = 0;
22342 wxImageList *arg1 = (wxImageList *) 0 ;
22343 void *argp1 = 0 ;
22344 int res1 = 0 ;
22345 PyObject *swig_obj[1] ;
22346
22347 if (!args) SWIG_fail;
22348 swig_obj[0] = args;
22349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
22350 if (!SWIG_IsOK(res1)) {
22351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
22352 }
22353 arg1 = reinterpret_cast< wxImageList * >(argp1);
22354 {
22355 PyThreadState* __tstate = wxPyBeginAllowThreads();
22356 delete arg1;
22357
22358 wxPyEndAllowThreads(__tstate);
22359 if (PyErr_Occurred()) SWIG_fail;
22360 }
22361 resultobj = SWIG_Py_Void();
22362 return resultobj;
22363 fail:
22364 return NULL;
22365 }
22366
22367
22368 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22369 PyObject *resultobj = 0;
22370 wxImageList *arg1 = (wxImageList *) 0 ;
22371 wxBitmap *arg2 = 0 ;
22372 wxBitmap const &arg3_defvalue = wxNullBitmap ;
22373 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
22374 int result;
22375 void *argp1 = 0 ;
22376 int res1 = 0 ;
22377 void *argp2 = 0 ;
22378 int res2 = 0 ;
22379 void *argp3 = 0 ;
22380 int res3 = 0 ;
22381 PyObject * obj0 = 0 ;
22382 PyObject * obj1 = 0 ;
22383 PyObject * obj2 = 0 ;
22384 char * kwnames[] = {
22385 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
22386 };
22387
22388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22390 if (!SWIG_IsOK(res1)) {
22391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
22392 }
22393 arg1 = reinterpret_cast< wxImageList * >(argp1);
22394 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22395 if (!SWIG_IsOK(res2)) {
22396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22397 }
22398 if (!argp2) {
22399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22400 }
22401 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22402 if (obj2) {
22403 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
22404 if (!SWIG_IsOK(res3)) {
22405 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22406 }
22407 if (!argp3) {
22408 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22409 }
22410 arg3 = reinterpret_cast< wxBitmap * >(argp3);
22411 }
22412 {
22413 PyThreadState* __tstate = wxPyBeginAllowThreads();
22414 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
22415 wxPyEndAllowThreads(__tstate);
22416 if (PyErr_Occurred()) SWIG_fail;
22417 }
22418 resultobj = SWIG_From_int(static_cast< int >(result));
22419 return resultobj;
22420 fail:
22421 return NULL;
22422 }
22423
22424
22425 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22426 PyObject *resultobj = 0;
22427 wxImageList *arg1 = (wxImageList *) 0 ;
22428 wxBitmap *arg2 = 0 ;
22429 wxColour *arg3 = 0 ;
22430 int result;
22431 void *argp1 = 0 ;
22432 int res1 = 0 ;
22433 void *argp2 = 0 ;
22434 int res2 = 0 ;
22435 wxColour temp3 ;
22436 PyObject * obj0 = 0 ;
22437 PyObject * obj1 = 0 ;
22438 PyObject * obj2 = 0 ;
22439 char * kwnames[] = {
22440 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
22441 };
22442
22443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22445 if (!SWIG_IsOK(res1)) {
22446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
22447 }
22448 arg1 = reinterpret_cast< wxImageList * >(argp1);
22449 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22450 if (!SWIG_IsOK(res2)) {
22451 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22452 }
22453 if (!argp2) {
22454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22455 }
22456 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22457 {
22458 arg3 = &temp3;
22459 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22460 }
22461 {
22462 PyThreadState* __tstate = wxPyBeginAllowThreads();
22463 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
22464 wxPyEndAllowThreads(__tstate);
22465 if (PyErr_Occurred()) SWIG_fail;
22466 }
22467 resultobj = SWIG_From_int(static_cast< int >(result));
22468 return resultobj;
22469 fail:
22470 return NULL;
22471 }
22472
22473
22474 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22475 PyObject *resultobj = 0;
22476 wxImageList *arg1 = (wxImageList *) 0 ;
22477 wxIcon *arg2 = 0 ;
22478 int result;
22479 void *argp1 = 0 ;
22480 int res1 = 0 ;
22481 void *argp2 = 0 ;
22482 int res2 = 0 ;
22483 PyObject * obj0 = 0 ;
22484 PyObject * obj1 = 0 ;
22485 char * kwnames[] = {
22486 (char *) "self",(char *) "icon", NULL
22487 };
22488
22489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
22490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22491 if (!SWIG_IsOK(res1)) {
22492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
22493 }
22494 arg1 = reinterpret_cast< wxImageList * >(argp1);
22495 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
22496 if (!SWIG_IsOK(res2)) {
22497 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
22498 }
22499 if (!argp2) {
22500 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
22501 }
22502 arg2 = reinterpret_cast< wxIcon * >(argp2);
22503 {
22504 PyThreadState* __tstate = wxPyBeginAllowThreads();
22505 result = (int)(arg1)->Add((wxIcon const &)*arg2);
22506 wxPyEndAllowThreads(__tstate);
22507 if (PyErr_Occurred()) SWIG_fail;
22508 }
22509 resultobj = SWIG_From_int(static_cast< int >(result));
22510 return resultobj;
22511 fail:
22512 return NULL;
22513 }
22514
22515
22516 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22517 PyObject *resultobj = 0;
22518 wxImageList *arg1 = (wxImageList *) 0 ;
22519 int arg2 ;
22520 SwigValueWrapper<wxBitmap > result;
22521 void *argp1 = 0 ;
22522 int res1 = 0 ;
22523 int val2 ;
22524 int ecode2 = 0 ;
22525 PyObject * obj0 = 0 ;
22526 PyObject * obj1 = 0 ;
22527 char * kwnames[] = {
22528 (char *) "self",(char *) "index", NULL
22529 };
22530
22531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
22532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22533 if (!SWIG_IsOK(res1)) {
22534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
22535 }
22536 arg1 = reinterpret_cast< wxImageList * >(argp1);
22537 ecode2 = SWIG_AsVal_int(obj1, &val2);
22538 if (!SWIG_IsOK(ecode2)) {
22539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
22540 }
22541 arg2 = static_cast< int >(val2);
22542 {
22543 PyThreadState* __tstate = wxPyBeginAllowThreads();
22544 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
22545 wxPyEndAllowThreads(__tstate);
22546 if (PyErr_Occurred()) SWIG_fail;
22547 }
22548 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22549 return resultobj;
22550 fail:
22551 return NULL;
22552 }
22553
22554
22555 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22556 PyObject *resultobj = 0;
22557 wxImageList *arg1 = (wxImageList *) 0 ;
22558 int arg2 ;
22559 wxIcon result;
22560 void *argp1 = 0 ;
22561 int res1 = 0 ;
22562 int val2 ;
22563 int ecode2 = 0 ;
22564 PyObject * obj0 = 0 ;
22565 PyObject * obj1 = 0 ;
22566 char * kwnames[] = {
22567 (char *) "self",(char *) "index", NULL
22568 };
22569
22570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
22571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22572 if (!SWIG_IsOK(res1)) {
22573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
22574 }
22575 arg1 = reinterpret_cast< wxImageList * >(argp1);
22576 ecode2 = SWIG_AsVal_int(obj1, &val2);
22577 if (!SWIG_IsOK(ecode2)) {
22578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
22579 }
22580 arg2 = static_cast< int >(val2);
22581 {
22582 PyThreadState* __tstate = wxPyBeginAllowThreads();
22583 result = ((wxImageList const *)arg1)->GetIcon(arg2);
22584 wxPyEndAllowThreads(__tstate);
22585 if (PyErr_Occurred()) SWIG_fail;
22586 }
22587 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
22588 return resultobj;
22589 fail:
22590 return NULL;
22591 }
22592
22593
22594 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22595 PyObject *resultobj = 0;
22596 wxImageList *arg1 = (wxImageList *) 0 ;
22597 int arg2 ;
22598 wxBitmap *arg3 = 0 ;
22599 wxBitmap const &arg4_defvalue = wxNullBitmap ;
22600 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
22601 bool result;
22602 void *argp1 = 0 ;
22603 int res1 = 0 ;
22604 int val2 ;
22605 int ecode2 = 0 ;
22606 void *argp3 = 0 ;
22607 int res3 = 0 ;
22608 void *argp4 = 0 ;
22609 int res4 = 0 ;
22610 PyObject * obj0 = 0 ;
22611 PyObject * obj1 = 0 ;
22612 PyObject * obj2 = 0 ;
22613 PyObject * obj3 = 0 ;
22614 char * kwnames[] = {
22615 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
22616 };
22617
22618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22620 if (!SWIG_IsOK(res1)) {
22621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
22622 }
22623 arg1 = reinterpret_cast< wxImageList * >(argp1);
22624 ecode2 = SWIG_AsVal_int(obj1, &val2);
22625 if (!SWIG_IsOK(ecode2)) {
22626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
22627 }
22628 arg2 = static_cast< int >(val2);
22629 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
22630 if (!SWIG_IsOK(res3)) {
22631 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22632 }
22633 if (!argp3) {
22634 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22635 }
22636 arg3 = reinterpret_cast< wxBitmap * >(argp3);
22637 if (obj3) {
22638 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
22639 if (!SWIG_IsOK(res4)) {
22640 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22641 }
22642 if (!argp4) {
22643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22644 }
22645 arg4 = reinterpret_cast< wxBitmap * >(argp4);
22646 }
22647 {
22648 PyThreadState* __tstate = wxPyBeginAllowThreads();
22649 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
22650 wxPyEndAllowThreads(__tstate);
22651 if (PyErr_Occurred()) SWIG_fail;
22652 }
22653 {
22654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22655 }
22656 return resultobj;
22657 fail:
22658 return NULL;
22659 }
22660
22661
22662 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22663 PyObject *resultobj = 0;
22664 wxImageList *arg1 = (wxImageList *) 0 ;
22665 int arg2 ;
22666 wxDC *arg3 = 0 ;
22667 int arg4 ;
22668 int arg5 ;
22669 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
22670 bool arg7 = (bool) (bool)false ;
22671 bool result;
22672 void *argp1 = 0 ;
22673 int res1 = 0 ;
22674 int val2 ;
22675 int ecode2 = 0 ;
22676 void *argp3 = 0 ;
22677 int res3 = 0 ;
22678 int val4 ;
22679 int ecode4 = 0 ;
22680 int val5 ;
22681 int ecode5 = 0 ;
22682 int val6 ;
22683 int ecode6 = 0 ;
22684 bool val7 ;
22685 int ecode7 = 0 ;
22686 PyObject * obj0 = 0 ;
22687 PyObject * obj1 = 0 ;
22688 PyObject * obj2 = 0 ;
22689 PyObject * obj3 = 0 ;
22690 PyObject * obj4 = 0 ;
22691 PyObject * obj5 = 0 ;
22692 PyObject * obj6 = 0 ;
22693 char * kwnames[] = {
22694 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
22695 };
22696
22697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22699 if (!SWIG_IsOK(res1)) {
22700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
22701 }
22702 arg1 = reinterpret_cast< wxImageList * >(argp1);
22703 ecode2 = SWIG_AsVal_int(obj1, &val2);
22704 if (!SWIG_IsOK(ecode2)) {
22705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
22706 }
22707 arg2 = static_cast< int >(val2);
22708 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
22709 if (!SWIG_IsOK(res3)) {
22710 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22711 }
22712 if (!argp3) {
22713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22714 }
22715 arg3 = reinterpret_cast< wxDC * >(argp3);
22716 ecode4 = SWIG_AsVal_int(obj3, &val4);
22717 if (!SWIG_IsOK(ecode4)) {
22718 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
22719 }
22720 arg4 = static_cast< int >(val4);
22721 ecode5 = SWIG_AsVal_int(obj4, &val5);
22722 if (!SWIG_IsOK(ecode5)) {
22723 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
22724 }
22725 arg5 = static_cast< int >(val5);
22726 if (obj5) {
22727 ecode6 = SWIG_AsVal_int(obj5, &val6);
22728 if (!SWIG_IsOK(ecode6)) {
22729 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
22730 }
22731 arg6 = static_cast< int >(val6);
22732 }
22733 if (obj6) {
22734 ecode7 = SWIG_AsVal_bool(obj6, &val7);
22735 if (!SWIG_IsOK(ecode7)) {
22736 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
22737 }
22738 arg7 = static_cast< bool >(val7);
22739 }
22740 {
22741 PyThreadState* __tstate = wxPyBeginAllowThreads();
22742 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
22743 wxPyEndAllowThreads(__tstate);
22744 if (PyErr_Occurred()) SWIG_fail;
22745 }
22746 {
22747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22748 }
22749 return resultobj;
22750 fail:
22751 return NULL;
22752 }
22753
22754
22755 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22756 PyObject *resultobj = 0;
22757 wxImageList *arg1 = (wxImageList *) 0 ;
22758 int result;
22759 void *argp1 = 0 ;
22760 int res1 = 0 ;
22761 PyObject *swig_obj[1] ;
22762
22763 if (!args) SWIG_fail;
22764 swig_obj[0] = args;
22765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22766 if (!SWIG_IsOK(res1)) {
22767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
22768 }
22769 arg1 = reinterpret_cast< wxImageList * >(argp1);
22770 {
22771 PyThreadState* __tstate = wxPyBeginAllowThreads();
22772 result = (int)(arg1)->GetImageCount();
22773 wxPyEndAllowThreads(__tstate);
22774 if (PyErr_Occurred()) SWIG_fail;
22775 }
22776 resultobj = SWIG_From_int(static_cast< int >(result));
22777 return resultobj;
22778 fail:
22779 return NULL;
22780 }
22781
22782
22783 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22784 PyObject *resultobj = 0;
22785 wxImageList *arg1 = (wxImageList *) 0 ;
22786 int arg2 ;
22787 bool result;
22788 void *argp1 = 0 ;
22789 int res1 = 0 ;
22790 int val2 ;
22791 int ecode2 = 0 ;
22792 PyObject * obj0 = 0 ;
22793 PyObject * obj1 = 0 ;
22794 char * kwnames[] = {
22795 (char *) "self",(char *) "index", NULL
22796 };
22797
22798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
22799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22800 if (!SWIG_IsOK(res1)) {
22801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
22802 }
22803 arg1 = reinterpret_cast< wxImageList * >(argp1);
22804 ecode2 = SWIG_AsVal_int(obj1, &val2);
22805 if (!SWIG_IsOK(ecode2)) {
22806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
22807 }
22808 arg2 = static_cast< int >(val2);
22809 {
22810 PyThreadState* __tstate = wxPyBeginAllowThreads();
22811 result = (bool)(arg1)->Remove(arg2);
22812 wxPyEndAllowThreads(__tstate);
22813 if (PyErr_Occurred()) SWIG_fail;
22814 }
22815 {
22816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22817 }
22818 return resultobj;
22819 fail:
22820 return NULL;
22821 }
22822
22823
22824 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22825 PyObject *resultobj = 0;
22826 wxImageList *arg1 = (wxImageList *) 0 ;
22827 bool result;
22828 void *argp1 = 0 ;
22829 int res1 = 0 ;
22830 PyObject *swig_obj[1] ;
22831
22832 if (!args) SWIG_fail;
22833 swig_obj[0] = args;
22834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22835 if (!SWIG_IsOK(res1)) {
22836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
22837 }
22838 arg1 = reinterpret_cast< wxImageList * >(argp1);
22839 {
22840 PyThreadState* __tstate = wxPyBeginAllowThreads();
22841 result = (bool)(arg1)->RemoveAll();
22842 wxPyEndAllowThreads(__tstate);
22843 if (PyErr_Occurred()) SWIG_fail;
22844 }
22845 {
22846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22847 }
22848 return resultobj;
22849 fail:
22850 return NULL;
22851 }
22852
22853
22854 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22855 PyObject *resultobj = 0;
22856 wxImageList *arg1 = (wxImageList *) 0 ;
22857 int arg2 ;
22858 int *arg3 = 0 ;
22859 int *arg4 = 0 ;
22860 void *argp1 = 0 ;
22861 int res1 = 0 ;
22862 int val2 ;
22863 int ecode2 = 0 ;
22864 int temp3 ;
22865 int res3 = SWIG_TMPOBJ ;
22866 int temp4 ;
22867 int res4 = SWIG_TMPOBJ ;
22868 PyObject * obj0 = 0 ;
22869 PyObject * obj1 = 0 ;
22870 char * kwnames[] = {
22871 (char *) "self",(char *) "index", NULL
22872 };
22873
22874 arg3 = &temp3;
22875 arg4 = &temp4;
22876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
22877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22878 if (!SWIG_IsOK(res1)) {
22879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
22880 }
22881 arg1 = reinterpret_cast< wxImageList * >(argp1);
22882 ecode2 = SWIG_AsVal_int(obj1, &val2);
22883 if (!SWIG_IsOK(ecode2)) {
22884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
22885 }
22886 arg2 = static_cast< int >(val2);
22887 {
22888 PyThreadState* __tstate = wxPyBeginAllowThreads();
22889 (arg1)->GetSize(arg2,*arg3,*arg4);
22890 wxPyEndAllowThreads(__tstate);
22891 if (PyErr_Occurred()) SWIG_fail;
22892 }
22893 resultobj = SWIG_Py_Void();
22894 if (SWIG_IsTmpObj(res3)) {
22895 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22896 } else {
22897 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22898 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22899 }
22900 if (SWIG_IsTmpObj(res4)) {
22901 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22902 } else {
22903 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22904 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22905 }
22906 return resultobj;
22907 fail:
22908 return NULL;
22909 }
22910
22911
22912 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22913 PyObject *obj;
22914 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22915 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
22916 return SWIG_Py_Void();
22917 }
22918
22919 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22920 return SWIG_Python_InitShadowInstance(args);
22921 }
22922
22923 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22924 PyObject *resultobj = 0;
22925 wxStockGDI *result = 0 ;
22926
22927 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
22928 {
22929 PyThreadState* __tstate = wxPyBeginAllowThreads();
22930 result = (wxStockGDI *)new wxStockGDI();
22931 wxPyEndAllowThreads(__tstate);
22932 if (PyErr_Occurred()) SWIG_fail;
22933 }
22934 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
22935 return resultobj;
22936 fail:
22937 return NULL;
22938 }
22939
22940
22941 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22942 PyObject *resultobj = 0;
22943 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22944 void *argp1 = 0 ;
22945 int res1 = 0 ;
22946 PyObject *swig_obj[1] ;
22947
22948 if (!args) SWIG_fail;
22949 swig_obj[0] = args;
22950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
22951 if (!SWIG_IsOK(res1)) {
22952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22953 }
22954 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22955 {
22956 PyThreadState* __tstate = wxPyBeginAllowThreads();
22957 delete arg1;
22958
22959 wxPyEndAllowThreads(__tstate);
22960 if (PyErr_Occurred()) SWIG_fail;
22961 }
22962 resultobj = SWIG_Py_Void();
22963 return resultobj;
22964 fail:
22965 return NULL;
22966 }
22967
22968
22969 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22970 PyObject *resultobj = 0;
22971
22972 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
22973 {
22974 PyThreadState* __tstate = wxPyBeginAllowThreads();
22975 wxStockGDI::DeleteAll();
22976 wxPyEndAllowThreads(__tstate);
22977 if (PyErr_Occurred()) SWIG_fail;
22978 }
22979 resultobj = SWIG_Py_Void();
22980 return resultobj;
22981 fail:
22982 return NULL;
22983 }
22984
22985
22986 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22987 PyObject *resultobj = 0;
22988 wxStockGDI *result = 0 ;
22989
22990 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
22991 {
22992 PyThreadState* __tstate = wxPyBeginAllowThreads();
22993 {
22994 wxStockGDI &_result_ref = wxStockGDI::instance();
22995 result = (wxStockGDI *) &_result_ref;
22996 }
22997 wxPyEndAllowThreads(__tstate);
22998 if (PyErr_Occurred()) SWIG_fail;
22999 }
23000 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
23001 return resultobj;
23002 fail:
23003 return NULL;
23004 }
23005
23006
23007 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23008 PyObject *resultobj = 0;
23009 wxStockGDI::Item arg1 ;
23010 wxBrush *result = 0 ;
23011 int val1 ;
23012 int ecode1 = 0 ;
23013 PyObject * obj0 = 0 ;
23014 char * kwnames[] = {
23015 (char *) "item", NULL
23016 };
23017
23018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
23019 ecode1 = SWIG_AsVal_int(obj0, &val1);
23020 if (!SWIG_IsOK(ecode1)) {
23021 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23022 }
23023 arg1 = static_cast< wxStockGDI::Item >(val1);
23024 {
23025 PyThreadState* __tstate = wxPyBeginAllowThreads();
23026 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
23027 wxPyEndAllowThreads(__tstate);
23028 if (PyErr_Occurred()) SWIG_fail;
23029 }
23030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
23031 return resultobj;
23032 fail:
23033 return NULL;
23034 }
23035
23036
23037 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23038 PyObject *resultobj = 0;
23039 wxStockGDI::Item arg1 ;
23040 wxColour *result = 0 ;
23041 int val1 ;
23042 int ecode1 = 0 ;
23043 PyObject * obj0 = 0 ;
23044 char * kwnames[] = {
23045 (char *) "item", NULL
23046 };
23047
23048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
23049 ecode1 = SWIG_AsVal_int(obj0, &val1);
23050 if (!SWIG_IsOK(ecode1)) {
23051 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23052 }
23053 arg1 = static_cast< wxStockGDI::Item >(val1);
23054 {
23055 PyThreadState* __tstate = wxPyBeginAllowThreads();
23056 result = (wxColour *)wxStockGDI::GetColour(arg1);
23057 wxPyEndAllowThreads(__tstate);
23058 if (PyErr_Occurred()) SWIG_fail;
23059 }
23060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
23061 return resultobj;
23062 fail:
23063 return NULL;
23064 }
23065
23066
23067 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23068 PyObject *resultobj = 0;
23069 wxStockGDI::Item arg1 ;
23070 wxCursor *result = 0 ;
23071 int val1 ;
23072 int ecode1 = 0 ;
23073 PyObject * obj0 = 0 ;
23074 char * kwnames[] = {
23075 (char *) "item", NULL
23076 };
23077
23078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
23079 ecode1 = SWIG_AsVal_int(obj0, &val1);
23080 if (!SWIG_IsOK(ecode1)) {
23081 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23082 }
23083 arg1 = static_cast< wxStockGDI::Item >(val1);
23084 {
23085 PyThreadState* __tstate = wxPyBeginAllowThreads();
23086 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
23087 wxPyEndAllowThreads(__tstate);
23088 if (PyErr_Occurred()) SWIG_fail;
23089 }
23090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
23091 return resultobj;
23092 fail:
23093 return NULL;
23094 }
23095
23096
23097 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23098 PyObject *resultobj = 0;
23099 wxStockGDI::Item arg1 ;
23100 wxPen *result = 0 ;
23101 int val1 ;
23102 int ecode1 = 0 ;
23103 PyObject * obj0 = 0 ;
23104 char * kwnames[] = {
23105 (char *) "item", NULL
23106 };
23107
23108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
23109 ecode1 = SWIG_AsVal_int(obj0, &val1);
23110 if (!SWIG_IsOK(ecode1)) {
23111 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23112 }
23113 arg1 = static_cast< wxStockGDI::Item >(val1);
23114 {
23115 PyThreadState* __tstate = wxPyBeginAllowThreads();
23116 result = (wxPen *)wxStockGDI::GetPen(arg1);
23117 wxPyEndAllowThreads(__tstate);
23118 if (PyErr_Occurred()) SWIG_fail;
23119 }
23120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
23121 return resultobj;
23122 fail:
23123 return NULL;
23124 }
23125
23126
23127 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23128 PyObject *resultobj = 0;
23129 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
23130 wxStockGDI::Item arg2 ;
23131 wxFont *result = 0 ;
23132 void *argp1 = 0 ;
23133 int res1 = 0 ;
23134 int val2 ;
23135 int ecode2 = 0 ;
23136 PyObject * obj0 = 0 ;
23137 PyObject * obj1 = 0 ;
23138 char * kwnames[] = {
23139 (char *) "self",(char *) "item", NULL
23140 };
23141
23142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
23143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
23144 if (!SWIG_IsOK(res1)) {
23145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
23146 }
23147 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
23148 ecode2 = SWIG_AsVal_int(obj1, &val2);
23149 if (!SWIG_IsOK(ecode2)) {
23150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
23151 }
23152 arg2 = static_cast< wxStockGDI::Item >(val2);
23153 {
23154 PyThreadState* __tstate = wxPyBeginAllowThreads();
23155 result = (wxFont *)(arg1)->GetFont(arg2);
23156 wxPyEndAllowThreads(__tstate);
23157 if (PyErr_Occurred()) SWIG_fail;
23158 }
23159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
23160 return resultobj;
23161 fail:
23162 return NULL;
23163 }
23164
23165
23166 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23167 PyObject *obj;
23168 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23169 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
23170 return SWIG_Py_Void();
23171 }
23172
23173 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23174 return SWIG_Python_InitShadowInstance(args);
23175 }
23176
23177 SWIGINTERN int NullBitmap_set(PyObject *) {
23178 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
23179 return 1;
23180 }
23181
23182
23183 SWIGINTERN PyObject *NullBitmap_get(void) {
23184 PyObject *pyobj = 0;
23185
23186 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
23187 return pyobj;
23188 }
23189
23190
23191 SWIGINTERN int NullIcon_set(PyObject *) {
23192 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
23193 return 1;
23194 }
23195
23196
23197 SWIGINTERN PyObject *NullIcon_get(void) {
23198 PyObject *pyobj = 0;
23199
23200 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
23201 return pyobj;
23202 }
23203
23204
23205 SWIGINTERN int NullCursor_set(PyObject *) {
23206 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
23207 return 1;
23208 }
23209
23210
23211 SWIGINTERN PyObject *NullCursor_get(void) {
23212 PyObject *pyobj = 0;
23213
23214 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
23215 return pyobj;
23216 }
23217
23218
23219 SWIGINTERN int NullPen_set(PyObject *) {
23220 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
23221 return 1;
23222 }
23223
23224
23225 SWIGINTERN PyObject *NullPen_get(void) {
23226 PyObject *pyobj = 0;
23227
23228 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
23229 return pyobj;
23230 }
23231
23232
23233 SWIGINTERN int NullBrush_set(PyObject *) {
23234 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
23235 return 1;
23236 }
23237
23238
23239 SWIGINTERN PyObject *NullBrush_get(void) {
23240 PyObject *pyobj = 0;
23241
23242 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
23243 return pyobj;
23244 }
23245
23246
23247 SWIGINTERN int NullPalette_set(PyObject *) {
23248 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
23249 return 1;
23250 }
23251
23252
23253 SWIGINTERN PyObject *NullPalette_get(void) {
23254 PyObject *pyobj = 0;
23255
23256 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
23257 return pyobj;
23258 }
23259
23260
23261 SWIGINTERN int NullFont_set(PyObject *) {
23262 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
23263 return 1;
23264 }
23265
23266
23267 SWIGINTERN PyObject *NullFont_get(void) {
23268 PyObject *pyobj = 0;
23269
23270 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
23271 return pyobj;
23272 }
23273
23274
23275 SWIGINTERN int NullColour_set(PyObject *) {
23276 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
23277 return 1;
23278 }
23279
23280
23281 SWIGINTERN PyObject *NullColour_get(void) {
23282 PyObject *pyobj = 0;
23283
23284 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
23285 return pyobj;
23286 }
23287
23288
23289 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23290 PyObject *resultobj = 0;
23291 wxGDIObjListBase *result = 0 ;
23292
23293 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
23294 {
23295 PyThreadState* __tstate = wxPyBeginAllowThreads();
23296 result = (wxGDIObjListBase *)new wxGDIObjListBase();
23297 wxPyEndAllowThreads(__tstate);
23298 if (PyErr_Occurred()) SWIG_fail;
23299 }
23300 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
23301 return resultobj;
23302 fail:
23303 return NULL;
23304 }
23305
23306
23307 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23308 PyObject *resultobj = 0;
23309 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
23310 void *argp1 = 0 ;
23311 int res1 = 0 ;
23312 PyObject *swig_obj[1] ;
23313
23314 if (!args) SWIG_fail;
23315 swig_obj[0] = args;
23316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
23317 if (!SWIG_IsOK(res1)) {
23318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
23319 }
23320 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
23321 {
23322 PyThreadState* __tstate = wxPyBeginAllowThreads();
23323 delete arg1;
23324
23325 wxPyEndAllowThreads(__tstate);
23326 if (PyErr_Occurred()) SWIG_fail;
23327 }
23328 resultobj = SWIG_Py_Void();
23329 return resultobj;
23330 fail:
23331 return NULL;
23332 }
23333
23334
23335 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23336 PyObject *obj;
23337 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23338 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
23339 return SWIG_Py_Void();
23340 }
23341
23342 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23343 return SWIG_Python_InitShadowInstance(args);
23344 }
23345
23346 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23347 PyObject *resultobj = 0;
23348 wxPenList *arg1 = (wxPenList *) 0 ;
23349 wxColour *arg2 = 0 ;
23350 int arg3 ;
23351 int arg4 ;
23352 wxPen *result = 0 ;
23353 void *argp1 = 0 ;
23354 int res1 = 0 ;
23355 wxColour temp2 ;
23356 int val3 ;
23357 int ecode3 = 0 ;
23358 int val4 ;
23359 int ecode4 = 0 ;
23360 PyObject * obj0 = 0 ;
23361 PyObject * obj1 = 0 ;
23362 PyObject * obj2 = 0 ;
23363 PyObject * obj3 = 0 ;
23364 char * kwnames[] = {
23365 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
23366 };
23367
23368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23370 if (!SWIG_IsOK(res1)) {
23371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
23372 }
23373 arg1 = reinterpret_cast< wxPenList * >(argp1);
23374 {
23375 arg2 = &temp2;
23376 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23377 }
23378 ecode3 = SWIG_AsVal_int(obj2, &val3);
23379 if (!SWIG_IsOK(ecode3)) {
23380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
23381 }
23382 arg3 = static_cast< int >(val3);
23383 ecode4 = SWIG_AsVal_int(obj3, &val4);
23384 if (!SWIG_IsOK(ecode4)) {
23385 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
23386 }
23387 arg4 = static_cast< int >(val4);
23388 {
23389 PyThreadState* __tstate = wxPyBeginAllowThreads();
23390 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
23391 wxPyEndAllowThreads(__tstate);
23392 if (PyErr_Occurred()) SWIG_fail;
23393 }
23394 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
23395 return resultobj;
23396 fail:
23397 return NULL;
23398 }
23399
23400
23401 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23402 PyObject *resultobj = 0;
23403 wxPenList *arg1 = (wxPenList *) 0 ;
23404 wxPen *arg2 = (wxPen *) 0 ;
23405 void *argp1 = 0 ;
23406 int res1 = 0 ;
23407 void *argp2 = 0 ;
23408 int res2 = 0 ;
23409 PyObject * obj0 = 0 ;
23410 PyObject * obj1 = 0 ;
23411 char * kwnames[] = {
23412 (char *) "self",(char *) "pen", NULL
23413 };
23414
23415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
23416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23417 if (!SWIG_IsOK(res1)) {
23418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
23419 }
23420 arg1 = reinterpret_cast< wxPenList * >(argp1);
23421 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
23422 if (!SWIG_IsOK(res2)) {
23423 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
23424 }
23425 arg2 = reinterpret_cast< wxPen * >(argp2);
23426 {
23427 PyThreadState* __tstate = wxPyBeginAllowThreads();
23428 (arg1)->AddPen(arg2);
23429 wxPyEndAllowThreads(__tstate);
23430 if (PyErr_Occurred()) SWIG_fail;
23431 }
23432 resultobj = SWIG_Py_Void();
23433 return resultobj;
23434 fail:
23435 return NULL;
23436 }
23437
23438
23439 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23440 PyObject *resultobj = 0;
23441 wxPenList *arg1 = (wxPenList *) 0 ;
23442 wxPen *arg2 = (wxPen *) 0 ;
23443 void *argp1 = 0 ;
23444 int res1 = 0 ;
23445 void *argp2 = 0 ;
23446 int res2 = 0 ;
23447 PyObject * obj0 = 0 ;
23448 PyObject * obj1 = 0 ;
23449 char * kwnames[] = {
23450 (char *) "self",(char *) "pen", NULL
23451 };
23452
23453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
23454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23455 if (!SWIG_IsOK(res1)) {
23456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
23457 }
23458 arg1 = reinterpret_cast< wxPenList * >(argp1);
23459 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
23460 if (!SWIG_IsOK(res2)) {
23461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
23462 }
23463 arg2 = reinterpret_cast< wxPen * >(argp2);
23464 {
23465 PyThreadState* __tstate = wxPyBeginAllowThreads();
23466 (arg1)->RemovePen(arg2);
23467 wxPyEndAllowThreads(__tstate);
23468 if (PyErr_Occurred()) SWIG_fail;
23469 }
23470 resultobj = SWIG_Py_Void();
23471 return resultobj;
23472 fail:
23473 return NULL;
23474 }
23475
23476
23477 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23478 PyObject *obj;
23479 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23480 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
23481 return SWIG_Py_Void();
23482 }
23483
23484 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23485 PyObject *resultobj = 0;
23486 wxBrushList *arg1 = (wxBrushList *) 0 ;
23487 wxColour *arg2 = 0 ;
23488 int arg3 = (int) wxSOLID ;
23489 wxBrush *result = 0 ;
23490 void *argp1 = 0 ;
23491 int res1 = 0 ;
23492 wxColour temp2 ;
23493 int val3 ;
23494 int ecode3 = 0 ;
23495 PyObject * obj0 = 0 ;
23496 PyObject * obj1 = 0 ;
23497 PyObject * obj2 = 0 ;
23498 char * kwnames[] = {
23499 (char *) "self",(char *) "colour",(char *) "style", NULL
23500 };
23501
23502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23504 if (!SWIG_IsOK(res1)) {
23505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23506 }
23507 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23508 {
23509 arg2 = &temp2;
23510 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23511 }
23512 if (obj2) {
23513 ecode3 = SWIG_AsVal_int(obj2, &val3);
23514 if (!SWIG_IsOK(ecode3)) {
23515 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
23516 }
23517 arg3 = static_cast< int >(val3);
23518 }
23519 {
23520 PyThreadState* __tstate = wxPyBeginAllowThreads();
23521 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
23522 wxPyEndAllowThreads(__tstate);
23523 if (PyErr_Occurred()) SWIG_fail;
23524 }
23525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
23526 return resultobj;
23527 fail:
23528 return NULL;
23529 }
23530
23531
23532 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23533 PyObject *resultobj = 0;
23534 wxBrushList *arg1 = (wxBrushList *) 0 ;
23535 wxBrush *arg2 = (wxBrush *) 0 ;
23536 void *argp1 = 0 ;
23537 int res1 = 0 ;
23538 void *argp2 = 0 ;
23539 int res2 = 0 ;
23540 PyObject * obj0 = 0 ;
23541 PyObject * obj1 = 0 ;
23542 char * kwnames[] = {
23543 (char *) "self",(char *) "brush", NULL
23544 };
23545
23546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
23547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23548 if (!SWIG_IsOK(res1)) {
23549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23550 }
23551 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23552 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
23553 if (!SWIG_IsOK(res2)) {
23554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
23555 }
23556 arg2 = reinterpret_cast< wxBrush * >(argp2);
23557 {
23558 PyThreadState* __tstate = wxPyBeginAllowThreads();
23559 (arg1)->AddBrush(arg2);
23560 wxPyEndAllowThreads(__tstate);
23561 if (PyErr_Occurred()) SWIG_fail;
23562 }
23563 resultobj = SWIG_Py_Void();
23564 return resultobj;
23565 fail:
23566 return NULL;
23567 }
23568
23569
23570 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23571 PyObject *resultobj = 0;
23572 wxBrushList *arg1 = (wxBrushList *) 0 ;
23573 wxBrush *arg2 = (wxBrush *) 0 ;
23574 void *argp1 = 0 ;
23575 int res1 = 0 ;
23576 void *argp2 = 0 ;
23577 int res2 = 0 ;
23578 PyObject * obj0 = 0 ;
23579 PyObject * obj1 = 0 ;
23580 char * kwnames[] = {
23581 (char *) "self",(char *) "brush", NULL
23582 };
23583
23584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
23585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23586 if (!SWIG_IsOK(res1)) {
23587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23588 }
23589 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23590 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
23591 if (!SWIG_IsOK(res2)) {
23592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
23593 }
23594 arg2 = reinterpret_cast< wxBrush * >(argp2);
23595 {
23596 PyThreadState* __tstate = wxPyBeginAllowThreads();
23597 (arg1)->RemoveBrush(arg2);
23598 wxPyEndAllowThreads(__tstate);
23599 if (PyErr_Occurred()) SWIG_fail;
23600 }
23601 resultobj = SWIG_Py_Void();
23602 return resultobj;
23603 fail:
23604 return NULL;
23605 }
23606
23607
23608 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23609 PyObject *obj;
23610 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23611 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
23612 return SWIG_Py_Void();
23613 }
23614
23615 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23616 PyObject *resultobj = 0;
23617 wxFontList *arg1 = (wxFontList *) 0 ;
23618 int arg2 ;
23619 int arg3 ;
23620 int arg4 ;
23621 int arg5 ;
23622 bool arg6 = (bool) false ;
23623 wxString const &arg7_defvalue = wxPyEmptyString ;
23624 wxString *arg7 = (wxString *) &arg7_defvalue ;
23625 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
23626 wxFont *result = 0 ;
23627 void *argp1 = 0 ;
23628 int res1 = 0 ;
23629 int val2 ;
23630 int ecode2 = 0 ;
23631 int val3 ;
23632 int ecode3 = 0 ;
23633 int val4 ;
23634 int ecode4 = 0 ;
23635 int val5 ;
23636 int ecode5 = 0 ;
23637 bool val6 ;
23638 int ecode6 = 0 ;
23639 bool temp7 = false ;
23640 int val8 ;
23641 int ecode8 = 0 ;
23642 PyObject * obj0 = 0 ;
23643 PyObject * obj1 = 0 ;
23644 PyObject * obj2 = 0 ;
23645 PyObject * obj3 = 0 ;
23646 PyObject * obj4 = 0 ;
23647 PyObject * obj5 = 0 ;
23648 PyObject * obj6 = 0 ;
23649 PyObject * obj7 = 0 ;
23650 char * kwnames[] = {
23651 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
23652 };
23653
23654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
23655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23656 if (!SWIG_IsOK(res1)) {
23657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23658 }
23659 arg1 = reinterpret_cast< wxFontList * >(argp1);
23660 ecode2 = SWIG_AsVal_int(obj1, &val2);
23661 if (!SWIG_IsOK(ecode2)) {
23662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
23663 }
23664 arg2 = static_cast< int >(val2);
23665 ecode3 = SWIG_AsVal_int(obj2, &val3);
23666 if (!SWIG_IsOK(ecode3)) {
23667 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
23668 }
23669 arg3 = static_cast< int >(val3);
23670 ecode4 = SWIG_AsVal_int(obj3, &val4);
23671 if (!SWIG_IsOK(ecode4)) {
23672 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
23673 }
23674 arg4 = static_cast< int >(val4);
23675 ecode5 = SWIG_AsVal_int(obj4, &val5);
23676 if (!SWIG_IsOK(ecode5)) {
23677 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
23678 }
23679 arg5 = static_cast< int >(val5);
23680 if (obj5) {
23681 ecode6 = SWIG_AsVal_bool(obj5, &val6);
23682 if (!SWIG_IsOK(ecode6)) {
23683 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
23684 }
23685 arg6 = static_cast< bool >(val6);
23686 }
23687 if (obj6) {
23688 {
23689 arg7 = wxString_in_helper(obj6);
23690 if (arg7 == NULL) SWIG_fail;
23691 temp7 = true;
23692 }
23693 }
23694 if (obj7) {
23695 ecode8 = SWIG_AsVal_int(obj7, &val8);
23696 if (!SWIG_IsOK(ecode8)) {
23697 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
23698 }
23699 arg8 = static_cast< wxFontEncoding >(val8);
23700 }
23701 {
23702 PyThreadState* __tstate = wxPyBeginAllowThreads();
23703 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
23704 wxPyEndAllowThreads(__tstate);
23705 if (PyErr_Occurred()) SWIG_fail;
23706 }
23707 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
23708 {
23709 if (temp7)
23710 delete arg7;
23711 }
23712 return resultobj;
23713 fail:
23714 {
23715 if (temp7)
23716 delete arg7;
23717 }
23718 return NULL;
23719 }
23720
23721
23722 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23723 PyObject *resultobj = 0;
23724 wxFontList *arg1 = (wxFontList *) 0 ;
23725 wxFont *arg2 = (wxFont *) 0 ;
23726 void *argp1 = 0 ;
23727 int res1 = 0 ;
23728 void *argp2 = 0 ;
23729 int res2 = 0 ;
23730 PyObject * obj0 = 0 ;
23731 PyObject * obj1 = 0 ;
23732 char * kwnames[] = {
23733 (char *) "self",(char *) "font", NULL
23734 };
23735
23736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
23737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23738 if (!SWIG_IsOK(res1)) {
23739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23740 }
23741 arg1 = reinterpret_cast< wxFontList * >(argp1);
23742 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23743 if (!SWIG_IsOK(res2)) {
23744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
23745 }
23746 arg2 = reinterpret_cast< wxFont * >(argp2);
23747 {
23748 PyThreadState* __tstate = wxPyBeginAllowThreads();
23749 (arg1)->AddFont(arg2);
23750 wxPyEndAllowThreads(__tstate);
23751 if (PyErr_Occurred()) SWIG_fail;
23752 }
23753 resultobj = SWIG_Py_Void();
23754 return resultobj;
23755 fail:
23756 return NULL;
23757 }
23758
23759
23760 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23761 PyObject *resultobj = 0;
23762 wxFontList *arg1 = (wxFontList *) 0 ;
23763 wxFont *arg2 = (wxFont *) 0 ;
23764 void *argp1 = 0 ;
23765 int res1 = 0 ;
23766 void *argp2 = 0 ;
23767 int res2 = 0 ;
23768 PyObject * obj0 = 0 ;
23769 PyObject * obj1 = 0 ;
23770 char * kwnames[] = {
23771 (char *) "self",(char *) "font", NULL
23772 };
23773
23774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
23775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23776 if (!SWIG_IsOK(res1)) {
23777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23778 }
23779 arg1 = reinterpret_cast< wxFontList * >(argp1);
23780 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23781 if (!SWIG_IsOK(res2)) {
23782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
23783 }
23784 arg2 = reinterpret_cast< wxFont * >(argp2);
23785 {
23786 PyThreadState* __tstate = wxPyBeginAllowThreads();
23787 (arg1)->RemoveFont(arg2);
23788 wxPyEndAllowThreads(__tstate);
23789 if (PyErr_Occurred()) SWIG_fail;
23790 }
23791 resultobj = SWIG_Py_Void();
23792 return resultobj;
23793 fail:
23794 return NULL;
23795 }
23796
23797
23798 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23799 PyObject *obj;
23800 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23801 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
23802 return SWIG_Py_Void();
23803 }
23804
23805 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23806 PyObject *resultobj = 0;
23807 wxColourDatabase *result = 0 ;
23808
23809 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
23810 {
23811 if (!wxPyCheckForApp()) SWIG_fail;
23812 PyThreadState* __tstate = wxPyBeginAllowThreads();
23813 result = (wxColourDatabase *)new wxColourDatabase();
23814 wxPyEndAllowThreads(__tstate);
23815 if (PyErr_Occurred()) SWIG_fail;
23816 }
23817 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
23818 return resultobj;
23819 fail:
23820 return NULL;
23821 }
23822
23823
23824 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23825 PyObject *resultobj = 0;
23826 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23827 void *argp1 = 0 ;
23828 int res1 = 0 ;
23829 PyObject *swig_obj[1] ;
23830
23831 if (!args) SWIG_fail;
23832 swig_obj[0] = args;
23833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
23834 if (!SWIG_IsOK(res1)) {
23835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23836 }
23837 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23838 {
23839 PyThreadState* __tstate = wxPyBeginAllowThreads();
23840 delete arg1;
23841
23842 wxPyEndAllowThreads(__tstate);
23843 if (PyErr_Occurred()) SWIG_fail;
23844 }
23845 resultobj = SWIG_Py_Void();
23846 return resultobj;
23847 fail:
23848 return NULL;
23849 }
23850
23851
23852 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23853 PyObject *resultobj = 0;
23854 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23855 wxString *arg2 = 0 ;
23856 wxColour result;
23857 void *argp1 = 0 ;
23858 int res1 = 0 ;
23859 bool temp2 = false ;
23860 PyObject * obj0 = 0 ;
23861 PyObject * obj1 = 0 ;
23862 char * kwnames[] = {
23863 (char *) "self",(char *) "name", NULL
23864 };
23865
23866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
23867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23868 if (!SWIG_IsOK(res1)) {
23869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23870 }
23871 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23872 {
23873 arg2 = wxString_in_helper(obj1);
23874 if (arg2 == NULL) SWIG_fail;
23875 temp2 = true;
23876 }
23877 {
23878 PyThreadState* __tstate = wxPyBeginAllowThreads();
23879 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
23880 wxPyEndAllowThreads(__tstate);
23881 if (PyErr_Occurred()) SWIG_fail;
23882 }
23883 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23884 {
23885 if (temp2)
23886 delete arg2;
23887 }
23888 return resultobj;
23889 fail:
23890 {
23891 if (temp2)
23892 delete arg2;
23893 }
23894 return NULL;
23895 }
23896
23897
23898 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23899 PyObject *resultobj = 0;
23900 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23901 wxColour *arg2 = 0 ;
23902 wxString result;
23903 void *argp1 = 0 ;
23904 int res1 = 0 ;
23905 wxColour temp2 ;
23906 PyObject * obj0 = 0 ;
23907 PyObject * obj1 = 0 ;
23908 char * kwnames[] = {
23909 (char *) "self",(char *) "colour", NULL
23910 };
23911
23912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
23913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23914 if (!SWIG_IsOK(res1)) {
23915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23916 }
23917 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23918 {
23919 arg2 = &temp2;
23920 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23921 }
23922 {
23923 PyThreadState* __tstate = wxPyBeginAllowThreads();
23924 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
23925 wxPyEndAllowThreads(__tstate);
23926 if (PyErr_Occurred()) SWIG_fail;
23927 }
23928 {
23929 #if wxUSE_UNICODE
23930 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23931 #else
23932 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23933 #endif
23934 }
23935 return resultobj;
23936 fail:
23937 return NULL;
23938 }
23939
23940
23941 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23942 PyObject *resultobj = 0;
23943 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23944 wxString *arg2 = 0 ;
23945 wxColour *arg3 = 0 ;
23946 void *argp1 = 0 ;
23947 int res1 = 0 ;
23948 bool temp2 = false ;
23949 wxColour temp3 ;
23950 PyObject * obj0 = 0 ;
23951 PyObject * obj1 = 0 ;
23952 PyObject * obj2 = 0 ;
23953 char * kwnames[] = {
23954 (char *) "self",(char *) "name",(char *) "colour", NULL
23955 };
23956
23957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23959 if (!SWIG_IsOK(res1)) {
23960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23961 }
23962 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23963 {
23964 arg2 = wxString_in_helper(obj1);
23965 if (arg2 == NULL) SWIG_fail;
23966 temp2 = true;
23967 }
23968 {
23969 arg3 = &temp3;
23970 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23971 }
23972 {
23973 PyThreadState* __tstate = wxPyBeginAllowThreads();
23974 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
23975 wxPyEndAllowThreads(__tstate);
23976 if (PyErr_Occurred()) SWIG_fail;
23977 }
23978 resultobj = SWIG_Py_Void();
23979 {
23980 if (temp2)
23981 delete arg2;
23982 }
23983 return resultobj;
23984 fail:
23985 {
23986 if (temp2)
23987 delete arg2;
23988 }
23989 return NULL;
23990 }
23991
23992
23993 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23994 PyObject *resultobj = 0;
23995 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23996 wxString *arg2 = 0 ;
23997 int arg3 ;
23998 int arg4 ;
23999 int arg5 ;
24000 void *argp1 = 0 ;
24001 int res1 = 0 ;
24002 bool temp2 = false ;
24003 int val3 ;
24004 int ecode3 = 0 ;
24005 int val4 ;
24006 int ecode4 = 0 ;
24007 int val5 ;
24008 int ecode5 = 0 ;
24009 PyObject * obj0 = 0 ;
24010 PyObject * obj1 = 0 ;
24011 PyObject * obj2 = 0 ;
24012 PyObject * obj3 = 0 ;
24013 PyObject * obj4 = 0 ;
24014 char * kwnames[] = {
24015 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
24016 };
24017
24018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
24020 if (!SWIG_IsOK(res1)) {
24021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
24022 }
24023 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
24024 {
24025 arg2 = wxString_in_helper(obj1);
24026 if (arg2 == NULL) SWIG_fail;
24027 temp2 = true;
24028 }
24029 ecode3 = SWIG_AsVal_int(obj2, &val3);
24030 if (!SWIG_IsOK(ecode3)) {
24031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
24032 }
24033 arg3 = static_cast< int >(val3);
24034 ecode4 = SWIG_AsVal_int(obj3, &val4);
24035 if (!SWIG_IsOK(ecode4)) {
24036 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
24037 }
24038 arg4 = static_cast< int >(val4);
24039 ecode5 = SWIG_AsVal_int(obj4, &val5);
24040 if (!SWIG_IsOK(ecode5)) {
24041 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
24042 }
24043 arg5 = static_cast< int >(val5);
24044 {
24045 PyThreadState* __tstate = wxPyBeginAllowThreads();
24046 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
24047 wxPyEndAllowThreads(__tstate);
24048 if (PyErr_Occurred()) SWIG_fail;
24049 }
24050 resultobj = SWIG_Py_Void();
24051 {
24052 if (temp2)
24053 delete arg2;
24054 }
24055 return resultobj;
24056 fail:
24057 {
24058 if (temp2)
24059 delete arg2;
24060 }
24061 return NULL;
24062 }
24063
24064
24065 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24066 PyObject *obj;
24067 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24068 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
24069 return SWIG_Py_Void();
24070 }
24071
24072 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24073 return SWIG_Python_InitShadowInstance(args);
24074 }
24075
24076 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24077 PyObject *resultobj = 0;
24078 wxFontList *result = 0 ;
24079
24080 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
24081 {
24082 PyThreadState* __tstate = wxPyBeginAllowThreads();
24083 result = (wxFontList *)_wxPyInitTheFontList();
24084 wxPyEndAllowThreads(__tstate);
24085 if (PyErr_Occurred()) SWIG_fail;
24086 }
24087 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
24088 return resultobj;
24089 fail:
24090 return NULL;
24091 }
24092
24093
24094 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24095 PyObject *resultobj = 0;
24096 wxPenList *result = 0 ;
24097
24098 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
24099 {
24100 PyThreadState* __tstate = wxPyBeginAllowThreads();
24101 result = (wxPenList *)_wxPyInitThePenList();
24102 wxPyEndAllowThreads(__tstate);
24103 if (PyErr_Occurred()) SWIG_fail;
24104 }
24105 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
24106 return resultobj;
24107 fail:
24108 return NULL;
24109 }
24110
24111
24112 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24113 PyObject *resultobj = 0;
24114 wxBrushList *result = 0 ;
24115
24116 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
24117 {
24118 PyThreadState* __tstate = wxPyBeginAllowThreads();
24119 result = (wxBrushList *)_wxPyInitTheBrushList();
24120 wxPyEndAllowThreads(__tstate);
24121 if (PyErr_Occurred()) SWIG_fail;
24122 }
24123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
24124 return resultobj;
24125 fail:
24126 return NULL;
24127 }
24128
24129
24130 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24131 PyObject *resultobj = 0;
24132 wxColourDatabase *result = 0 ;
24133
24134 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
24135 {
24136 PyThreadState* __tstate = wxPyBeginAllowThreads();
24137 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
24138 wxPyEndAllowThreads(__tstate);
24139 if (PyErr_Occurred()) SWIG_fail;
24140 }
24141 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
24142 return resultobj;
24143 fail:
24144 return NULL;
24145 }
24146
24147
24148 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24149 PyObject *resultobj = 0;
24150 wxEffects *result = 0 ;
24151
24152 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
24153 {
24154 PyThreadState* __tstate = wxPyBeginAllowThreads();
24155 result = (wxEffects *)new wxEffects();
24156 wxPyEndAllowThreads(__tstate);
24157 if (PyErr_Occurred()) SWIG_fail;
24158 }
24159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
24160 return resultobj;
24161 fail:
24162 return NULL;
24163 }
24164
24165
24166 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24167 PyObject *resultobj = 0;
24168 wxEffects *arg1 = (wxEffects *) 0 ;
24169 wxColour result;
24170 void *argp1 = 0 ;
24171 int res1 = 0 ;
24172 PyObject *swig_obj[1] ;
24173
24174 if (!args) SWIG_fail;
24175 swig_obj[0] = args;
24176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24177 if (!SWIG_IsOK(res1)) {
24178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
24179 }
24180 arg1 = reinterpret_cast< wxEffects * >(argp1);
24181 {
24182 PyThreadState* __tstate = wxPyBeginAllowThreads();
24183 result = ((wxEffects const *)arg1)->GetHighlightColour();
24184 wxPyEndAllowThreads(__tstate);
24185 if (PyErr_Occurred()) SWIG_fail;
24186 }
24187 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24188 return resultobj;
24189 fail:
24190 return NULL;
24191 }
24192
24193
24194 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24195 PyObject *resultobj = 0;
24196 wxEffects *arg1 = (wxEffects *) 0 ;
24197 wxColour result;
24198 void *argp1 = 0 ;
24199 int res1 = 0 ;
24200 PyObject *swig_obj[1] ;
24201
24202 if (!args) SWIG_fail;
24203 swig_obj[0] = args;
24204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24205 if (!SWIG_IsOK(res1)) {
24206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24207 }
24208 arg1 = reinterpret_cast< wxEffects * >(argp1);
24209 {
24210 PyThreadState* __tstate = wxPyBeginAllowThreads();
24211 result = ((wxEffects const *)arg1)->GetLightShadow();
24212 wxPyEndAllowThreads(__tstate);
24213 if (PyErr_Occurred()) SWIG_fail;
24214 }
24215 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24216 return resultobj;
24217 fail:
24218 return NULL;
24219 }
24220
24221
24222 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24223 PyObject *resultobj = 0;
24224 wxEffects *arg1 = (wxEffects *) 0 ;
24225 wxColour result;
24226 void *argp1 = 0 ;
24227 int res1 = 0 ;
24228 PyObject *swig_obj[1] ;
24229
24230 if (!args) SWIG_fail;
24231 swig_obj[0] = args;
24232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24233 if (!SWIG_IsOK(res1)) {
24234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
24235 }
24236 arg1 = reinterpret_cast< wxEffects * >(argp1);
24237 {
24238 PyThreadState* __tstate = wxPyBeginAllowThreads();
24239 result = ((wxEffects const *)arg1)->GetFaceColour();
24240 wxPyEndAllowThreads(__tstate);
24241 if (PyErr_Occurred()) SWIG_fail;
24242 }
24243 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24244 return resultobj;
24245 fail:
24246 return NULL;
24247 }
24248
24249
24250 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24251 PyObject *resultobj = 0;
24252 wxEffects *arg1 = (wxEffects *) 0 ;
24253 wxColour 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_wxEffects, 0 | 0 );
24261 if (!SWIG_IsOK(res1)) {
24262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24263 }
24264 arg1 = reinterpret_cast< wxEffects * >(argp1);
24265 {
24266 PyThreadState* __tstate = wxPyBeginAllowThreads();
24267 result = ((wxEffects const *)arg1)->GetMediumShadow();
24268 wxPyEndAllowThreads(__tstate);
24269 if (PyErr_Occurred()) SWIG_fail;
24270 }
24271 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24272 return resultobj;
24273 fail:
24274 return NULL;
24275 }
24276
24277
24278 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24279 PyObject *resultobj = 0;
24280 wxEffects *arg1 = (wxEffects *) 0 ;
24281 wxColour result;
24282 void *argp1 = 0 ;
24283 int res1 = 0 ;
24284 PyObject *swig_obj[1] ;
24285
24286 if (!args) SWIG_fail;
24287 swig_obj[0] = args;
24288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24289 if (!SWIG_IsOK(res1)) {
24290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24291 }
24292 arg1 = reinterpret_cast< wxEffects * >(argp1);
24293 {
24294 PyThreadState* __tstate = wxPyBeginAllowThreads();
24295 result = ((wxEffects const *)arg1)->GetDarkShadow();
24296 wxPyEndAllowThreads(__tstate);
24297 if (PyErr_Occurred()) SWIG_fail;
24298 }
24299 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24300 return resultobj;
24301 fail:
24302 return NULL;
24303 }
24304
24305
24306 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24307 PyObject *resultobj = 0;
24308 wxEffects *arg1 = (wxEffects *) 0 ;
24309 wxColour *arg2 = 0 ;
24310 void *argp1 = 0 ;
24311 int res1 = 0 ;
24312 wxColour temp2 ;
24313 PyObject * obj0 = 0 ;
24314 PyObject * obj1 = 0 ;
24315 char * kwnames[] = {
24316 (char *) "self",(char *) "c", NULL
24317 };
24318
24319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
24320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24321 if (!SWIG_IsOK(res1)) {
24322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
24323 }
24324 arg1 = reinterpret_cast< wxEffects * >(argp1);
24325 {
24326 arg2 = &temp2;
24327 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24328 }
24329 {
24330 PyThreadState* __tstate = wxPyBeginAllowThreads();
24331 (arg1)->SetHighlightColour((wxColour const &)*arg2);
24332 wxPyEndAllowThreads(__tstate);
24333 if (PyErr_Occurred()) SWIG_fail;
24334 }
24335 resultobj = SWIG_Py_Void();
24336 return resultobj;
24337 fail:
24338 return NULL;
24339 }
24340
24341
24342 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24343 PyObject *resultobj = 0;
24344 wxEffects *arg1 = (wxEffects *) 0 ;
24345 wxColour *arg2 = 0 ;
24346 void *argp1 = 0 ;
24347 int res1 = 0 ;
24348 wxColour temp2 ;
24349 PyObject * obj0 = 0 ;
24350 PyObject * obj1 = 0 ;
24351 char * kwnames[] = {
24352 (char *) "self",(char *) "c", NULL
24353 };
24354
24355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24357 if (!SWIG_IsOK(res1)) {
24358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24359 }
24360 arg1 = reinterpret_cast< wxEffects * >(argp1);
24361 {
24362 arg2 = &temp2;
24363 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24364 }
24365 {
24366 PyThreadState* __tstate = wxPyBeginAllowThreads();
24367 (arg1)->SetLightShadow((wxColour const &)*arg2);
24368 wxPyEndAllowThreads(__tstate);
24369 if (PyErr_Occurred()) SWIG_fail;
24370 }
24371 resultobj = SWIG_Py_Void();
24372 return resultobj;
24373 fail:
24374 return NULL;
24375 }
24376
24377
24378 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24379 PyObject *resultobj = 0;
24380 wxEffects *arg1 = (wxEffects *) 0 ;
24381 wxColour *arg2 = 0 ;
24382 void *argp1 = 0 ;
24383 int res1 = 0 ;
24384 wxColour temp2 ;
24385 PyObject * obj0 = 0 ;
24386 PyObject * obj1 = 0 ;
24387 char * kwnames[] = {
24388 (char *) "self",(char *) "c", NULL
24389 };
24390
24391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
24392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24393 if (!SWIG_IsOK(res1)) {
24394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
24395 }
24396 arg1 = reinterpret_cast< wxEffects * >(argp1);
24397 {
24398 arg2 = &temp2;
24399 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24400 }
24401 {
24402 PyThreadState* __tstate = wxPyBeginAllowThreads();
24403 (arg1)->SetFaceColour((wxColour const &)*arg2);
24404 wxPyEndAllowThreads(__tstate);
24405 if (PyErr_Occurred()) SWIG_fail;
24406 }
24407 resultobj = SWIG_Py_Void();
24408 return resultobj;
24409 fail:
24410 return NULL;
24411 }
24412
24413
24414 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24415 PyObject *resultobj = 0;
24416 wxEffects *arg1 = (wxEffects *) 0 ;
24417 wxColour *arg2 = 0 ;
24418 void *argp1 = 0 ;
24419 int res1 = 0 ;
24420 wxColour temp2 ;
24421 PyObject * obj0 = 0 ;
24422 PyObject * obj1 = 0 ;
24423 char * kwnames[] = {
24424 (char *) "self",(char *) "c", NULL
24425 };
24426
24427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24429 if (!SWIG_IsOK(res1)) {
24430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24431 }
24432 arg1 = reinterpret_cast< wxEffects * >(argp1);
24433 {
24434 arg2 = &temp2;
24435 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24436 }
24437 {
24438 PyThreadState* __tstate = wxPyBeginAllowThreads();
24439 (arg1)->SetMediumShadow((wxColour const &)*arg2);
24440 wxPyEndAllowThreads(__tstate);
24441 if (PyErr_Occurred()) SWIG_fail;
24442 }
24443 resultobj = SWIG_Py_Void();
24444 return resultobj;
24445 fail:
24446 return NULL;
24447 }
24448
24449
24450 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24451 PyObject *resultobj = 0;
24452 wxEffects *arg1 = (wxEffects *) 0 ;
24453 wxColour *arg2 = 0 ;
24454 void *argp1 = 0 ;
24455 int res1 = 0 ;
24456 wxColour temp2 ;
24457 PyObject * obj0 = 0 ;
24458 PyObject * obj1 = 0 ;
24459 char * kwnames[] = {
24460 (char *) "self",(char *) "c", NULL
24461 };
24462
24463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24465 if (!SWIG_IsOK(res1)) {
24466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24467 }
24468 arg1 = reinterpret_cast< wxEffects * >(argp1);
24469 {
24470 arg2 = &temp2;
24471 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24472 }
24473 {
24474 PyThreadState* __tstate = wxPyBeginAllowThreads();
24475 (arg1)->SetDarkShadow((wxColour const &)*arg2);
24476 wxPyEndAllowThreads(__tstate);
24477 if (PyErr_Occurred()) SWIG_fail;
24478 }
24479 resultobj = SWIG_Py_Void();
24480 return resultobj;
24481 fail:
24482 return NULL;
24483 }
24484
24485
24486 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24487 PyObject *resultobj = 0;
24488 wxEffects *arg1 = (wxEffects *) 0 ;
24489 wxColour *arg2 = 0 ;
24490 wxColour *arg3 = 0 ;
24491 wxColour *arg4 = 0 ;
24492 wxColour *arg5 = 0 ;
24493 wxColour *arg6 = 0 ;
24494 void *argp1 = 0 ;
24495 int res1 = 0 ;
24496 wxColour temp2 ;
24497 wxColour temp3 ;
24498 wxColour temp4 ;
24499 wxColour temp5 ;
24500 wxColour temp6 ;
24501 PyObject * obj0 = 0 ;
24502 PyObject * obj1 = 0 ;
24503 PyObject * obj2 = 0 ;
24504 PyObject * obj3 = 0 ;
24505 PyObject * obj4 = 0 ;
24506 PyObject * obj5 = 0 ;
24507 char * kwnames[] = {
24508 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
24509 };
24510
24511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
24512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24513 if (!SWIG_IsOK(res1)) {
24514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
24515 }
24516 arg1 = reinterpret_cast< wxEffects * >(argp1);
24517 {
24518 arg2 = &temp2;
24519 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24520 }
24521 {
24522 arg3 = &temp3;
24523 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24524 }
24525 {
24526 arg4 = &temp4;
24527 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
24528 }
24529 {
24530 arg5 = &temp5;
24531 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
24532 }
24533 {
24534 arg6 = &temp6;
24535 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
24536 }
24537 {
24538 PyThreadState* __tstate = wxPyBeginAllowThreads();
24539 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
24540 wxPyEndAllowThreads(__tstate);
24541 if (PyErr_Occurred()) SWIG_fail;
24542 }
24543 resultobj = SWIG_Py_Void();
24544 return resultobj;
24545 fail:
24546 return NULL;
24547 }
24548
24549
24550 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24551 PyObject *resultobj = 0;
24552 wxEffects *arg1 = (wxEffects *) 0 ;
24553 wxDC *arg2 = 0 ;
24554 wxRect *arg3 = 0 ;
24555 int arg4 = (int) 1 ;
24556 void *argp1 = 0 ;
24557 int res1 = 0 ;
24558 void *argp2 = 0 ;
24559 int res2 = 0 ;
24560 wxRect temp3 ;
24561 int val4 ;
24562 int ecode4 = 0 ;
24563 PyObject * obj0 = 0 ;
24564 PyObject * obj1 = 0 ;
24565 PyObject * obj2 = 0 ;
24566 PyObject * obj3 = 0 ;
24567 char * kwnames[] = {
24568 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
24569 };
24570
24571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24573 if (!SWIG_IsOK(res1)) {
24574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
24575 }
24576 arg1 = reinterpret_cast< wxEffects * >(argp1);
24577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
24578 if (!SWIG_IsOK(res2)) {
24579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
24580 }
24581 if (!argp2) {
24582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
24583 }
24584 arg2 = reinterpret_cast< wxDC * >(argp2);
24585 {
24586 arg3 = &temp3;
24587 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
24588 }
24589 if (obj3) {
24590 ecode4 = SWIG_AsVal_int(obj3, &val4);
24591 if (!SWIG_IsOK(ecode4)) {
24592 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
24593 }
24594 arg4 = static_cast< int >(val4);
24595 }
24596 {
24597 PyThreadState* __tstate = wxPyBeginAllowThreads();
24598 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
24599 wxPyEndAllowThreads(__tstate);
24600 if (PyErr_Occurred()) SWIG_fail;
24601 }
24602 resultobj = SWIG_Py_Void();
24603 return resultobj;
24604 fail:
24605 return NULL;
24606 }
24607
24608
24609 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24610 PyObject *resultobj = 0;
24611 wxEffects *arg1 = (wxEffects *) 0 ;
24612 wxRect *arg2 = 0 ;
24613 wxDC *arg3 = 0 ;
24614 wxBitmap *arg4 = 0 ;
24615 bool result;
24616 void *argp1 = 0 ;
24617 int res1 = 0 ;
24618 wxRect temp2 ;
24619 void *argp3 = 0 ;
24620 int res3 = 0 ;
24621 void *argp4 = 0 ;
24622 int res4 = 0 ;
24623 PyObject * obj0 = 0 ;
24624 PyObject * obj1 = 0 ;
24625 PyObject * obj2 = 0 ;
24626 PyObject * obj3 = 0 ;
24627 char * kwnames[] = {
24628 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
24629 };
24630
24631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24633 if (!SWIG_IsOK(res1)) {
24634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
24635 }
24636 arg1 = reinterpret_cast< wxEffects * >(argp1);
24637 {
24638 arg2 = &temp2;
24639 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
24640 }
24641 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24642 if (!SWIG_IsOK(res3)) {
24643 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
24644 }
24645 if (!argp3) {
24646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
24647 }
24648 arg3 = reinterpret_cast< wxDC * >(argp3);
24649 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
24650 if (!SWIG_IsOK(res4)) {
24651 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
24652 }
24653 if (!argp4) {
24654 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
24655 }
24656 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24657 {
24658 PyThreadState* __tstate = wxPyBeginAllowThreads();
24659 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
24660 wxPyEndAllowThreads(__tstate);
24661 if (PyErr_Occurred()) SWIG_fail;
24662 }
24663 {
24664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24665 }
24666 return resultobj;
24667 fail:
24668 return NULL;
24669 }
24670
24671
24672 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24673 PyObject *obj;
24674 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24675 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
24676 return SWIG_Py_Void();
24677 }
24678
24679 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24680 return SWIG_Python_InitShadowInstance(args);
24681 }
24682
24683 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24684 PyObject *resultobj = 0;
24685 int arg1 ;
24686 int arg2 ;
24687 bool arg3 ;
24688 wxSplitterRenderParams *result = 0 ;
24689 int val1 ;
24690 int ecode1 = 0 ;
24691 int val2 ;
24692 int ecode2 = 0 ;
24693 bool val3 ;
24694 int ecode3 = 0 ;
24695 PyObject * obj0 = 0 ;
24696 PyObject * obj1 = 0 ;
24697 PyObject * obj2 = 0 ;
24698 char * kwnames[] = {
24699 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
24700 };
24701
24702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24703 ecode1 = SWIG_AsVal_int(obj0, &val1);
24704 if (!SWIG_IsOK(ecode1)) {
24705 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
24706 }
24707 arg1 = static_cast< int >(val1);
24708 ecode2 = SWIG_AsVal_int(obj1, &val2);
24709 if (!SWIG_IsOK(ecode2)) {
24710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
24711 }
24712 arg2 = static_cast< int >(val2);
24713 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24714 if (!SWIG_IsOK(ecode3)) {
24715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
24716 }
24717 arg3 = static_cast< bool >(val3);
24718 {
24719 PyThreadState* __tstate = wxPyBeginAllowThreads();
24720 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
24721 wxPyEndAllowThreads(__tstate);
24722 if (PyErr_Occurred()) SWIG_fail;
24723 }
24724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
24725 return resultobj;
24726 fail:
24727 return NULL;
24728 }
24729
24730
24731 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24732 PyObject *resultobj = 0;
24733 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24734 void *argp1 = 0 ;
24735 int res1 = 0 ;
24736 PyObject *swig_obj[1] ;
24737
24738 if (!args) SWIG_fail;
24739 swig_obj[0] = args;
24740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
24741 if (!SWIG_IsOK(res1)) {
24742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24743 }
24744 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24745 {
24746 PyThreadState* __tstate = wxPyBeginAllowThreads();
24747 delete arg1;
24748
24749 wxPyEndAllowThreads(__tstate);
24750 if (PyErr_Occurred()) SWIG_fail;
24751 }
24752 resultobj = SWIG_Py_Void();
24753 return resultobj;
24754 fail:
24755 return NULL;
24756 }
24757
24758
24759 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24760 PyObject *resultobj = 0;
24761 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24762 int result;
24763 void *argp1 = 0 ;
24764 int res1 = 0 ;
24765 PyObject *swig_obj[1] ;
24766
24767 if (!args) SWIG_fail;
24768 swig_obj[0] = args;
24769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24770 if (!SWIG_IsOK(res1)) {
24771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24772 }
24773 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24774 result = (int)(int) ((arg1)->widthSash);
24775 resultobj = SWIG_From_int(static_cast< int >(result));
24776 return resultobj;
24777 fail:
24778 return NULL;
24779 }
24780
24781
24782 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24783 PyObject *resultobj = 0;
24784 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24785 int result;
24786 void *argp1 = 0 ;
24787 int res1 = 0 ;
24788 PyObject *swig_obj[1] ;
24789
24790 if (!args) SWIG_fail;
24791 swig_obj[0] = args;
24792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24793 if (!SWIG_IsOK(res1)) {
24794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24795 }
24796 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24797 result = (int)(int) ((arg1)->border);
24798 resultobj = SWIG_From_int(static_cast< int >(result));
24799 return resultobj;
24800 fail:
24801 return NULL;
24802 }
24803
24804
24805 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24806 PyObject *resultobj = 0;
24807 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24808 bool result;
24809 void *argp1 = 0 ;
24810 int res1 = 0 ;
24811 PyObject *swig_obj[1] ;
24812
24813 if (!args) SWIG_fail;
24814 swig_obj[0] = args;
24815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24816 if (!SWIG_IsOK(res1)) {
24817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24818 }
24819 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24820 result = (bool)(bool) ((arg1)->isHotSensitive);
24821 resultobj = SWIG_From_bool(static_cast< bool >(result));
24822 return resultobj;
24823 fail:
24824 return NULL;
24825 }
24826
24827
24828 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24829 PyObject *obj;
24830 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24831 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
24832 return SWIG_Py_Void();
24833 }
24834
24835 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24836 return SWIG_Python_InitShadowInstance(args);
24837 }
24838
24839 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24840 PyObject *resultobj = 0;
24841 int arg1 ;
24842 int arg2 ;
24843 wxRendererVersion *result = 0 ;
24844 int val1 ;
24845 int ecode1 = 0 ;
24846 int val2 ;
24847 int ecode2 = 0 ;
24848 PyObject * obj0 = 0 ;
24849 PyObject * obj1 = 0 ;
24850 char * kwnames[] = {
24851 (char *) "version_",(char *) "age_", NULL
24852 };
24853
24854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
24855 ecode1 = SWIG_AsVal_int(obj0, &val1);
24856 if (!SWIG_IsOK(ecode1)) {
24857 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
24858 }
24859 arg1 = static_cast< int >(val1);
24860 ecode2 = SWIG_AsVal_int(obj1, &val2);
24861 if (!SWIG_IsOK(ecode2)) {
24862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
24863 }
24864 arg2 = static_cast< int >(val2);
24865 {
24866 PyThreadState* __tstate = wxPyBeginAllowThreads();
24867 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
24868 wxPyEndAllowThreads(__tstate);
24869 if (PyErr_Occurred()) SWIG_fail;
24870 }
24871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
24872 return resultobj;
24873 fail:
24874 return NULL;
24875 }
24876
24877
24878 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24879 PyObject *resultobj = 0;
24880 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24881 void *argp1 = 0 ;
24882 int res1 = 0 ;
24883 PyObject *swig_obj[1] ;
24884
24885 if (!args) SWIG_fail;
24886 swig_obj[0] = args;
24887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
24888 if (!SWIG_IsOK(res1)) {
24889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24890 }
24891 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24892 {
24893 PyThreadState* __tstate = wxPyBeginAllowThreads();
24894 delete arg1;
24895
24896 wxPyEndAllowThreads(__tstate);
24897 if (PyErr_Occurred()) SWIG_fail;
24898 }
24899 resultobj = SWIG_Py_Void();
24900 return resultobj;
24901 fail:
24902 return NULL;
24903 }
24904
24905
24906 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24907 PyObject *resultobj = 0;
24908 wxRendererVersion *arg1 = 0 ;
24909 bool result;
24910 void *argp1 = 0 ;
24911 int res1 = 0 ;
24912 PyObject * obj0 = 0 ;
24913 char * kwnames[] = {
24914 (char *) "ver", NULL
24915 };
24916
24917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
24918 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
24919 if (!SWIG_IsOK(res1)) {
24920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24921 }
24922 if (!argp1) {
24923 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24924 }
24925 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24926 {
24927 PyThreadState* __tstate = wxPyBeginAllowThreads();
24928 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
24929 wxPyEndAllowThreads(__tstate);
24930 if (PyErr_Occurred()) SWIG_fail;
24931 }
24932 {
24933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24934 }
24935 return resultobj;
24936 fail:
24937 return NULL;
24938 }
24939
24940
24941 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24942 PyObject *resultobj = 0;
24943 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24944 int result;
24945 void *argp1 = 0 ;
24946 int res1 = 0 ;
24947 PyObject *swig_obj[1] ;
24948
24949 if (!args) SWIG_fail;
24950 swig_obj[0] = args;
24951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24952 if (!SWIG_IsOK(res1)) {
24953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24954 }
24955 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24956 result = (int)(int) ((arg1)->version);
24957 resultobj = SWIG_From_int(static_cast< int >(result));
24958 return resultobj;
24959 fail:
24960 return NULL;
24961 }
24962
24963
24964 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24965 PyObject *resultobj = 0;
24966 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24967 int result;
24968 void *argp1 = 0 ;
24969 int res1 = 0 ;
24970 PyObject *swig_obj[1] ;
24971
24972 if (!args) SWIG_fail;
24973 swig_obj[0] = args;
24974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24975 if (!SWIG_IsOK(res1)) {
24976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24977 }
24978 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24979 result = (int)(int) ((arg1)->age);
24980 resultobj = SWIG_From_int(static_cast< int >(result));
24981 return resultobj;
24982 fail:
24983 return NULL;
24984 }
24985
24986
24987 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24988 PyObject *obj;
24989 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24990 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
24991 return SWIG_Py_Void();
24992 }
24993
24994 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24995 return SWIG_Python_InitShadowInstance(args);
24996 }
24997
24998 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24999 PyObject *resultobj = 0;
25000 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25001 wxWindow *arg2 = (wxWindow *) 0 ;
25002 wxDC *arg3 = 0 ;
25003 wxRect *arg4 = 0 ;
25004 int arg5 = (int) 0 ;
25005 void *argp1 = 0 ;
25006 int res1 = 0 ;
25007 void *argp2 = 0 ;
25008 int res2 = 0 ;
25009 void *argp3 = 0 ;
25010 int res3 = 0 ;
25011 wxRect temp4 ;
25012 int val5 ;
25013 int ecode5 = 0 ;
25014 PyObject * obj0 = 0 ;
25015 PyObject * obj1 = 0 ;
25016 PyObject * obj2 = 0 ;
25017 PyObject * obj3 = 0 ;
25018 PyObject * obj4 = 0 ;
25019 char * kwnames[] = {
25020 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25021 };
25022
25023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25025 if (!SWIG_IsOK(res1)) {
25026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25027 }
25028 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25029 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25030 if (!SWIG_IsOK(res2)) {
25031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25032 }
25033 arg2 = reinterpret_cast< wxWindow * >(argp2);
25034 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25035 if (!SWIG_IsOK(res3)) {
25036 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
25037 }
25038 if (!argp3) {
25039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
25040 }
25041 arg3 = reinterpret_cast< wxDC * >(argp3);
25042 {
25043 arg4 = &temp4;
25044 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25045 }
25046 if (obj4) {
25047 ecode5 = SWIG_AsVal_int(obj4, &val5);
25048 if (!SWIG_IsOK(ecode5)) {
25049 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
25050 }
25051 arg5 = static_cast< int >(val5);
25052 }
25053 {
25054 PyThreadState* __tstate = wxPyBeginAllowThreads();
25055 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25056 wxPyEndAllowThreads(__tstate);
25057 if (PyErr_Occurred()) SWIG_fail;
25058 }
25059 resultobj = SWIG_Py_Void();
25060 return resultobj;
25061 fail:
25062 return NULL;
25063 }
25064
25065
25066 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25067 PyObject *resultobj = 0;
25068 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25069 wxWindow *arg2 = (wxWindow *) 0 ;
25070 wxDC *arg3 = 0 ;
25071 wxRect *arg4 = 0 ;
25072 int arg5 = (int) 0 ;
25073 void *argp1 = 0 ;
25074 int res1 = 0 ;
25075 void *argp2 = 0 ;
25076 int res2 = 0 ;
25077 void *argp3 = 0 ;
25078 int res3 = 0 ;
25079 wxRect temp4 ;
25080 int val5 ;
25081 int ecode5 = 0 ;
25082 PyObject * obj0 = 0 ;
25083 PyObject * obj1 = 0 ;
25084 PyObject * obj2 = 0 ;
25085 PyObject * obj3 = 0 ;
25086 PyObject * obj4 = 0 ;
25087 char * kwnames[] = {
25088 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25089 };
25090
25091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25093 if (!SWIG_IsOK(res1)) {
25094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25095 }
25096 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25097 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25098 if (!SWIG_IsOK(res2)) {
25099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25100 }
25101 arg2 = reinterpret_cast< wxWindow * >(argp2);
25102 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25103 if (!SWIG_IsOK(res3)) {
25104 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
25105 }
25106 if (!argp3) {
25107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
25108 }
25109 arg3 = reinterpret_cast< wxDC * >(argp3);
25110 {
25111 arg4 = &temp4;
25112 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25113 }
25114 if (obj4) {
25115 ecode5 = SWIG_AsVal_int(obj4, &val5);
25116 if (!SWIG_IsOK(ecode5)) {
25117 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
25118 }
25119 arg5 = static_cast< int >(val5);
25120 }
25121 {
25122 PyThreadState* __tstate = wxPyBeginAllowThreads();
25123 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25124 wxPyEndAllowThreads(__tstate);
25125 if (PyErr_Occurred()) SWIG_fail;
25126 }
25127 resultobj = SWIG_Py_Void();
25128 return resultobj;
25129 fail:
25130 return NULL;
25131 }
25132
25133
25134 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25135 PyObject *resultobj = 0;
25136 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25137 wxWindow *arg2 = (wxWindow *) 0 ;
25138 wxDC *arg3 = 0 ;
25139 wxRect *arg4 = 0 ;
25140 int arg5 = (int) 0 ;
25141 void *argp1 = 0 ;
25142 int res1 = 0 ;
25143 void *argp2 = 0 ;
25144 int res2 = 0 ;
25145 void *argp3 = 0 ;
25146 int res3 = 0 ;
25147 wxRect temp4 ;
25148 int val5 ;
25149 int ecode5 = 0 ;
25150 PyObject * obj0 = 0 ;
25151 PyObject * obj1 = 0 ;
25152 PyObject * obj2 = 0 ;
25153 PyObject * obj3 = 0 ;
25154 PyObject * obj4 = 0 ;
25155 char * kwnames[] = {
25156 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25157 };
25158
25159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25161 if (!SWIG_IsOK(res1)) {
25162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25163 }
25164 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25165 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25166 if (!SWIG_IsOK(res2)) {
25167 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
25168 }
25169 arg2 = reinterpret_cast< wxWindow * >(argp2);
25170 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25171 if (!SWIG_IsOK(res3)) {
25172 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
25173 }
25174 if (!argp3) {
25175 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
25176 }
25177 arg3 = reinterpret_cast< wxDC * >(argp3);
25178 {
25179 arg4 = &temp4;
25180 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25181 }
25182 if (obj4) {
25183 ecode5 = SWIG_AsVal_int(obj4, &val5);
25184 if (!SWIG_IsOK(ecode5)) {
25185 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
25186 }
25187 arg5 = static_cast< int >(val5);
25188 }
25189 {
25190 PyThreadState* __tstate = wxPyBeginAllowThreads();
25191 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
25192 wxPyEndAllowThreads(__tstate);
25193 if (PyErr_Occurred()) SWIG_fail;
25194 }
25195 resultobj = SWIG_Py_Void();
25196 return resultobj;
25197 fail:
25198 return NULL;
25199 }
25200
25201
25202 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25203 PyObject *resultobj = 0;
25204 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25205 wxWindow *arg2 = (wxWindow *) 0 ;
25206 wxDC *arg3 = 0 ;
25207 wxSize *arg4 = 0 ;
25208 int arg5 ;
25209 wxOrientation arg6 ;
25210 int arg7 = (int) 0 ;
25211 void *argp1 = 0 ;
25212 int res1 = 0 ;
25213 void *argp2 = 0 ;
25214 int res2 = 0 ;
25215 void *argp3 = 0 ;
25216 int res3 = 0 ;
25217 wxSize temp4 ;
25218 int val5 ;
25219 int ecode5 = 0 ;
25220 int val6 ;
25221 int ecode6 = 0 ;
25222 int val7 ;
25223 int ecode7 = 0 ;
25224 PyObject * obj0 = 0 ;
25225 PyObject * obj1 = 0 ;
25226 PyObject * obj2 = 0 ;
25227 PyObject * obj3 = 0 ;
25228 PyObject * obj4 = 0 ;
25229 PyObject * obj5 = 0 ;
25230 PyObject * obj6 = 0 ;
25231 char * kwnames[] = {
25232 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
25233 };
25234
25235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25237 if (!SWIG_IsOK(res1)) {
25238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25239 }
25240 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25241 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25242 if (!SWIG_IsOK(res2)) {
25243 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
25244 }
25245 arg2 = reinterpret_cast< wxWindow * >(argp2);
25246 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25247 if (!SWIG_IsOK(res3)) {
25248 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
25249 }
25250 if (!argp3) {
25251 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
25252 }
25253 arg3 = reinterpret_cast< wxDC * >(argp3);
25254 {
25255 arg4 = &temp4;
25256 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25257 }
25258 ecode5 = SWIG_AsVal_int(obj4, &val5);
25259 if (!SWIG_IsOK(ecode5)) {
25260 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
25261 }
25262 arg5 = static_cast< int >(val5);
25263 ecode6 = SWIG_AsVal_int(obj5, &val6);
25264 if (!SWIG_IsOK(ecode6)) {
25265 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
25266 }
25267 arg6 = static_cast< wxOrientation >(val6);
25268 if (obj6) {
25269 ecode7 = SWIG_AsVal_int(obj6, &val7);
25270 if (!SWIG_IsOK(ecode7)) {
25271 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
25272 }
25273 arg7 = static_cast< int >(val7);
25274 }
25275 {
25276 PyThreadState* __tstate = wxPyBeginAllowThreads();
25277 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
25278 wxPyEndAllowThreads(__tstate);
25279 if (PyErr_Occurred()) SWIG_fail;
25280 }
25281 resultobj = SWIG_Py_Void();
25282 return resultobj;
25283 fail:
25284 return NULL;
25285 }
25286
25287
25288 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25289 PyObject *resultobj = 0;
25290 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25291 wxWindow *arg2 = (wxWindow *) 0 ;
25292 wxDC *arg3 = 0 ;
25293 wxRect *arg4 = 0 ;
25294 int arg5 = (int) 0 ;
25295 void *argp1 = 0 ;
25296 int res1 = 0 ;
25297 void *argp2 = 0 ;
25298 int res2 = 0 ;
25299 void *argp3 = 0 ;
25300 int res3 = 0 ;
25301 wxRect temp4 ;
25302 int val5 ;
25303 int ecode5 = 0 ;
25304 PyObject * obj0 = 0 ;
25305 PyObject * obj1 = 0 ;
25306 PyObject * obj2 = 0 ;
25307 PyObject * obj3 = 0 ;
25308 PyObject * obj4 = 0 ;
25309 char * kwnames[] = {
25310 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25311 };
25312
25313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25315 if (!SWIG_IsOK(res1)) {
25316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25317 }
25318 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25319 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25320 if (!SWIG_IsOK(res2)) {
25321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25322 }
25323 arg2 = reinterpret_cast< wxWindow * >(argp2);
25324 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25325 if (!SWIG_IsOK(res3)) {
25326 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
25327 }
25328 if (!argp3) {
25329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
25330 }
25331 arg3 = reinterpret_cast< wxDC * >(argp3);
25332 {
25333 arg4 = &temp4;
25334 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25335 }
25336 if (obj4) {
25337 ecode5 = SWIG_AsVal_int(obj4, &val5);
25338 if (!SWIG_IsOK(ecode5)) {
25339 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
25340 }
25341 arg5 = static_cast< int >(val5);
25342 }
25343 {
25344 PyThreadState* __tstate = wxPyBeginAllowThreads();
25345 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25346 wxPyEndAllowThreads(__tstate);
25347 if (PyErr_Occurred()) SWIG_fail;
25348 }
25349 resultobj = SWIG_Py_Void();
25350 return resultobj;
25351 fail:
25352 return NULL;
25353 }
25354
25355
25356 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25357 PyObject *resultobj = 0;
25358 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25359 wxWindow *arg2 = (wxWindow *) 0 ;
25360 wxDC *arg3 = 0 ;
25361 wxRect *arg4 = 0 ;
25362 int arg5 = (int) 0 ;
25363 void *argp1 = 0 ;
25364 int res1 = 0 ;
25365 void *argp2 = 0 ;
25366 int res2 = 0 ;
25367 void *argp3 = 0 ;
25368 int res3 = 0 ;
25369 wxRect temp4 ;
25370 int val5 ;
25371 int ecode5 = 0 ;
25372 PyObject * obj0 = 0 ;
25373 PyObject * obj1 = 0 ;
25374 PyObject * obj2 = 0 ;
25375 PyObject * obj3 = 0 ;
25376 PyObject * obj4 = 0 ;
25377 char * kwnames[] = {
25378 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25379 };
25380
25381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25383 if (!SWIG_IsOK(res1)) {
25384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25385 }
25386 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25387 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25388 if (!SWIG_IsOK(res2)) {
25389 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
25390 }
25391 arg2 = reinterpret_cast< wxWindow * >(argp2);
25392 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25393 if (!SWIG_IsOK(res3)) {
25394 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
25395 }
25396 if (!argp3) {
25397 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
25398 }
25399 arg3 = reinterpret_cast< wxDC * >(argp3);
25400 {
25401 arg4 = &temp4;
25402 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25403 }
25404 if (obj4) {
25405 ecode5 = SWIG_AsVal_int(obj4, &val5);
25406 if (!SWIG_IsOK(ecode5)) {
25407 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
25408 }
25409 arg5 = static_cast< int >(val5);
25410 }
25411 {
25412 PyThreadState* __tstate = wxPyBeginAllowThreads();
25413 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
25414 wxPyEndAllowThreads(__tstate);
25415 if (PyErr_Occurred()) SWIG_fail;
25416 }
25417 resultobj = SWIG_Py_Void();
25418 return resultobj;
25419 fail:
25420 return NULL;
25421 }
25422
25423
25424 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25425 PyObject *resultobj = 0;
25426 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25427 wxWindow *arg2 = (wxWindow *) 0 ;
25428 wxDC *arg3 = 0 ;
25429 wxRect *arg4 = 0 ;
25430 int arg5 = (int) 0 ;
25431 void *argp1 = 0 ;
25432 int res1 = 0 ;
25433 void *argp2 = 0 ;
25434 int res2 = 0 ;
25435 void *argp3 = 0 ;
25436 int res3 = 0 ;
25437 wxRect temp4 ;
25438 int val5 ;
25439 int ecode5 = 0 ;
25440 PyObject * obj0 = 0 ;
25441 PyObject * obj1 = 0 ;
25442 PyObject * obj2 = 0 ;
25443 PyObject * obj3 = 0 ;
25444 PyObject * obj4 = 0 ;
25445 char * kwnames[] = {
25446 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25447 };
25448
25449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25451 if (!SWIG_IsOK(res1)) {
25452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25453 }
25454 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25455 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25456 if (!SWIG_IsOK(res2)) {
25457 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
25458 }
25459 arg2 = reinterpret_cast< wxWindow * >(argp2);
25460 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25461 if (!SWIG_IsOK(res3)) {
25462 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
25463 }
25464 if (!argp3) {
25465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
25466 }
25467 arg3 = reinterpret_cast< wxDC * >(argp3);
25468 {
25469 arg4 = &temp4;
25470 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25471 }
25472 if (obj4) {
25473 ecode5 = SWIG_AsVal_int(obj4, &val5);
25474 if (!SWIG_IsOK(ecode5)) {
25475 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
25476 }
25477 arg5 = static_cast< int >(val5);
25478 }
25479 {
25480 PyThreadState* __tstate = wxPyBeginAllowThreads();
25481 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
25482 wxPyEndAllowThreads(__tstate);
25483 if (PyErr_Occurred()) SWIG_fail;
25484 }
25485 resultobj = SWIG_Py_Void();
25486 return resultobj;
25487 fail:
25488 return NULL;
25489 }
25490
25491
25492 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25493 PyObject *resultobj = 0;
25494 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25495 wxWindow *arg2 = (wxWindow *) 0 ;
25496 wxDC *arg3 = 0 ;
25497 wxRect *arg4 = 0 ;
25498 int arg5 = (int) 0 ;
25499 void *argp1 = 0 ;
25500 int res1 = 0 ;
25501 void *argp2 = 0 ;
25502 int res2 = 0 ;
25503 void *argp3 = 0 ;
25504 int res3 = 0 ;
25505 wxRect temp4 ;
25506 int val5 ;
25507 int ecode5 = 0 ;
25508 PyObject * obj0 = 0 ;
25509 PyObject * obj1 = 0 ;
25510 PyObject * obj2 = 0 ;
25511 PyObject * obj3 = 0 ;
25512 PyObject * obj4 = 0 ;
25513 char * kwnames[] = {
25514 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25515 };
25516
25517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25519 if (!SWIG_IsOK(res1)) {
25520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25521 }
25522 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25523 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25524 if (!SWIG_IsOK(res2)) {
25525 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25526 }
25527 arg2 = reinterpret_cast< wxWindow * >(argp2);
25528 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25529 if (!SWIG_IsOK(res3)) {
25530 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
25531 }
25532 if (!argp3) {
25533 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
25534 }
25535 arg3 = reinterpret_cast< wxDC * >(argp3);
25536 {
25537 arg4 = &temp4;
25538 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25539 }
25540 if (obj4) {
25541 ecode5 = SWIG_AsVal_int(obj4, &val5);
25542 if (!SWIG_IsOK(ecode5)) {
25543 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
25544 }
25545 arg5 = static_cast< int >(val5);
25546 }
25547 {
25548 PyThreadState* __tstate = wxPyBeginAllowThreads();
25549 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25550 wxPyEndAllowThreads(__tstate);
25551 if (PyErr_Occurred()) SWIG_fail;
25552 }
25553 resultobj = SWIG_Py_Void();
25554 return resultobj;
25555 fail:
25556 return NULL;
25557 }
25558
25559
25560 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25561 PyObject *resultobj = 0;
25562 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25563 wxWindow *arg2 = (wxWindow *) 0 ;
25564 wxDC *arg3 = 0 ;
25565 wxRect *arg4 = 0 ;
25566 int arg5 = (int) 0 ;
25567 void *argp1 = 0 ;
25568 int res1 = 0 ;
25569 void *argp2 = 0 ;
25570 int res2 = 0 ;
25571 void *argp3 = 0 ;
25572 int res3 = 0 ;
25573 wxRect temp4 ;
25574 int val5 ;
25575 int ecode5 = 0 ;
25576 PyObject * obj0 = 0 ;
25577 PyObject * obj1 = 0 ;
25578 PyObject * obj2 = 0 ;
25579 PyObject * obj3 = 0 ;
25580 PyObject * obj4 = 0 ;
25581 char * kwnames[] = {
25582 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25583 };
25584
25585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25587 if (!SWIG_IsOK(res1)) {
25588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25589 }
25590 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25591 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25592 if (!SWIG_IsOK(res2)) {
25593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
25594 }
25595 arg2 = reinterpret_cast< wxWindow * >(argp2);
25596 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25597 if (!SWIG_IsOK(res3)) {
25598 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
25599 }
25600 if (!argp3) {
25601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
25602 }
25603 arg3 = reinterpret_cast< wxDC * >(argp3);
25604 {
25605 arg4 = &temp4;
25606 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25607 }
25608 if (obj4) {
25609 ecode5 = SWIG_AsVal_int(obj4, &val5);
25610 if (!SWIG_IsOK(ecode5)) {
25611 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
25612 }
25613 arg5 = static_cast< int >(val5);
25614 }
25615 {
25616 PyThreadState* __tstate = wxPyBeginAllowThreads();
25617 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
25618 wxPyEndAllowThreads(__tstate);
25619 if (PyErr_Occurred()) SWIG_fail;
25620 }
25621 resultobj = SWIG_Py_Void();
25622 return resultobj;
25623 fail:
25624 return NULL;
25625 }
25626
25627
25628 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25629 PyObject *resultobj = 0;
25630 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25631 wxWindow *arg2 = (wxWindow *) 0 ;
25632 SwigValueWrapper<wxSplitterRenderParams > result;
25633 void *argp1 = 0 ;
25634 int res1 = 0 ;
25635 void *argp2 = 0 ;
25636 int res2 = 0 ;
25637 PyObject * obj0 = 0 ;
25638 PyObject * obj1 = 0 ;
25639 char * kwnames[] = {
25640 (char *) "self",(char *) "win", NULL
25641 };
25642
25643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
25644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25645 if (!SWIG_IsOK(res1)) {
25646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25647 }
25648 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25649 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25650 if (!SWIG_IsOK(res2)) {
25651 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
25652 }
25653 arg2 = reinterpret_cast< wxWindow * >(argp2);
25654 {
25655 PyThreadState* __tstate = wxPyBeginAllowThreads();
25656 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
25657 wxPyEndAllowThreads(__tstate);
25658 if (PyErr_Occurred()) SWIG_fail;
25659 }
25660 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
25661 return resultobj;
25662 fail:
25663 return NULL;
25664 }
25665
25666
25667 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25668 PyObject *resultobj = 0;
25669 wxRendererNative *result = 0 ;
25670
25671 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
25672 {
25673 PyThreadState* __tstate = wxPyBeginAllowThreads();
25674 {
25675 wxRendererNative &_result_ref = wxRendererNative::Get();
25676 result = (wxRendererNative *) &_result_ref;
25677 }
25678 wxPyEndAllowThreads(__tstate);
25679 if (PyErr_Occurred()) SWIG_fail;
25680 }
25681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25682 return resultobj;
25683 fail:
25684 return NULL;
25685 }
25686
25687
25688 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25689 PyObject *resultobj = 0;
25690 wxRendererNative *result = 0 ;
25691
25692 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
25693 {
25694 PyThreadState* __tstate = wxPyBeginAllowThreads();
25695 {
25696 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
25697 result = (wxRendererNative *) &_result_ref;
25698 }
25699 wxPyEndAllowThreads(__tstate);
25700 if (PyErr_Occurred()) SWIG_fail;
25701 }
25702 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25703 return resultobj;
25704 fail:
25705 return NULL;
25706 }
25707
25708
25709 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25710 PyObject *resultobj = 0;
25711 wxRendererNative *result = 0 ;
25712
25713 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
25714 {
25715 PyThreadState* __tstate = wxPyBeginAllowThreads();
25716 {
25717 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
25718 result = (wxRendererNative *) &_result_ref;
25719 }
25720 wxPyEndAllowThreads(__tstate);
25721 if (PyErr_Occurred()) SWIG_fail;
25722 }
25723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25724 return resultobj;
25725 fail:
25726 return NULL;
25727 }
25728
25729
25730 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25731 PyObject *resultobj = 0;
25732 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25733 wxRendererNative *result = 0 ;
25734 void *argp1 = 0 ;
25735 int res1 = 0 ;
25736 PyObject * obj0 = 0 ;
25737 char * kwnames[] = {
25738 (char *) "renderer", NULL
25739 };
25740
25741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
25742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25743 if (!SWIG_IsOK(res1)) {
25744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25745 }
25746 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25747 {
25748 PyThreadState* __tstate = wxPyBeginAllowThreads();
25749 result = (wxRendererNative *)wxRendererNative::Set(arg1);
25750 wxPyEndAllowThreads(__tstate);
25751 if (PyErr_Occurred()) SWIG_fail;
25752 }
25753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25754 return resultobj;
25755 fail:
25756 return NULL;
25757 }
25758
25759
25760 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25761 PyObject *resultobj = 0;
25762 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25763 SwigValueWrapper<wxRendererVersion > result;
25764 void *argp1 = 0 ;
25765 int res1 = 0 ;
25766 PyObject *swig_obj[1] ;
25767
25768 if (!args) SWIG_fail;
25769 swig_obj[0] = args;
25770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25771 if (!SWIG_IsOK(res1)) {
25772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
25773 }
25774 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25775 {
25776 PyThreadState* __tstate = wxPyBeginAllowThreads();
25777 result = ((wxRendererNative const *)arg1)->GetVersion();
25778 wxPyEndAllowThreads(__tstate);
25779 if (PyErr_Occurred()) SWIG_fail;
25780 }
25781 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
25782 return resultobj;
25783 fail:
25784 return NULL;
25785 }
25786
25787
25788 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25789 PyObject *obj;
25790 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25791 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
25792 return SWIG_Py_Void();
25793 }
25794
25795 static PyMethodDef SwigMethods[] = {
25796 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
25797 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
25798 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
25799 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
25800 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
25801 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
25802 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
25803 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25804 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
25805 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
25806 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
25807 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
25808 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
25809 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25810 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25811 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
25812 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
25813 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
25814 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25815 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25816 { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL},
25817 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
25818 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
25819 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
25820 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
25821 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
25822 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
25823 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25824 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
25825 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
25826 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
25827 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
25828 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
25829 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
25830 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
25831 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
25832 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
25833 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
25834 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
25835 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
25836 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
25837 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25838 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
25839 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25840 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25841 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
25842 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
25843 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
25844 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
25845 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
25846 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
25847 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25848 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25849 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
25850 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
25851 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
25852 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25853 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
25854 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25855 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25856 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
25857 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
25858 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
25859 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
25860 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
25861 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
25862 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
25863 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
25864 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25865 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
25866 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25867 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25868 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
25869 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
25870 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
25871 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
25872 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
25873 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
25874 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
25875 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
25876 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
25877 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
25878 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
25879 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
25880 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
25881 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
25882 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25883 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
25884 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
25885 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
25886 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
25887 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25888 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25889 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25890 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25891 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25892 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25893 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25894 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25895 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
25896 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
25897 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
25898 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
25899 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
25900 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
25901 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
25902 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
25903 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
25904 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
25905 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25906 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
25907 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
25908 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
25909 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
25910 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
25911 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
25912 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
25913 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
25914 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25915 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25916 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25917 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25918 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25919 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
25920 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
25921 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
25922 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
25923 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
25924 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
25925 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
25926 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
25927 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
25928 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
25929 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
25930 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
25931 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
25932 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25933 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
25934 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25935 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
25936 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25937 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
25938 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
25939 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
25940 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
25941 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25942 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
25943 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
25944 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
25945 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
25946 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
25947 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
25948 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
25949 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25950 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25951 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25952 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25953 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
25954 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
25955 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
25956 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25957 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25958 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
25959 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
25960 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
25961 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
25962 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
25963 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25964 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
25965 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
25966 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
25967 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
25968 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
25969 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25970 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
25971 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
25972 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
25973 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25974 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
25975 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
25976 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25977 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
25978 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
25979 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25980 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
25981 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25982 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25983 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
25984 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
25985 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
25986 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
25987 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
25988 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
25989 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
25990 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
25991 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
25992 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
25993 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
25994 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
25995 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
25996 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
25997 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
25998 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
25999 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
26000 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
26001 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
26002 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
26003 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
26004 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
26005 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
26006 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
26007 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
26008 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
26009 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
26010 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
26011 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
26012 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26013 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
26014 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
26015 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
26016 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
26017 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
26018 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
26019 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26020 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
26021 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
26022 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
26023 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
26024 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
26025 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
26026 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
26027 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
26028 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
26029 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
26030 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
26031 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
26032 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
26033 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
26034 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
26035 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
26036 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
26037 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26038 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26039 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
26040 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
26041 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
26042 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
26043 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26044 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
26045 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26046 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
26047 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
26048 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
26049 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
26050 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
26051 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26052 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
26053 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
26054 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
26055 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
26056 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
26057 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
26058 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
26059 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26060 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
26061 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
26062 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
26063 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
26064 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
26065 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
26066 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
26067 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
26068 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
26069 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
26070 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
26071 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
26072 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
26073 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
26074 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
26075 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
26076 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
26077 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
26078 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
26079 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
26080 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26081 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
26082 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
26083 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
26084 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
26085 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
26086 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
26087 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26088 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26089 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
26090 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
26091 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
26092 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
26093 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
26094 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
26095 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
26096 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
26097 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26098 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
26099 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
26100 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
26101 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
26102 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26103 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
26104 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
26105 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_O, NULL},
26106 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_O, NULL},
26107 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
26108 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
26109 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
26110 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
26111 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
26112 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
26113 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
26114 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
26115 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
26116 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
26117 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
26118 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
26119 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
26120 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
26121 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
26122 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
26123 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
26124 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
26125 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
26126 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
26127 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
26128 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
26129 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
26130 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
26131 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26132 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
26133 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26134 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
26135 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
26136 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
26137 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
26138 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
26139 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
26140 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
26141 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
26142 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
26143 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
26144 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
26145 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
26146 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
26147 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
26148 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
26149 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
26150 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
26151 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
26152 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26153 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
26154 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
26155 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
26156 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26157 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
26158 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
26159 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
26160 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26161 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
26162 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26163 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
26164 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
26165 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
26166 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26167 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26168 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26169 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
26170 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
26171 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26172 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
26173 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
26174 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26175 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
26176 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
26177 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
26178 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
26179 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26180 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
26181 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26182 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
26183 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26184 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
26185 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26186 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
26187 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26188 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
26189 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26190 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
26191 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26192 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
26193 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
26194 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
26195 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
26196 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
26197 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
26198 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
26199 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
26200 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
26201 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
26202 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
26203 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
26204 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
26205 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
26206 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26207 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
26208 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
26209 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
26210 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
26211 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
26212 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
26213 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
26214 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
26215 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
26216 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
26217 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
26218 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
26219 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
26220 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
26221 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
26222 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
26223 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
26224 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
26225 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
26226 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
26227 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
26228 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
26229 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
26230 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
26231 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
26232 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
26233 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
26234 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
26235 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
26236 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
26237 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
26238 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
26239 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
26240 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
26241 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
26242 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
26243 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
26244 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
26245 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
26246 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
26247 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
26248 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
26249 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
26250 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
26251 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
26252 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
26253 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
26254 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26255 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
26256 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
26257 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
26258 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26259 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
26260 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
26261 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
26262 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
26263 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
26264 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26265 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
26266 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
26267 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
26268 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
26269 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
26270 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
26271 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
26272 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
26273 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
26274 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
26275 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
26276 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
26277 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
26278 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
26279 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
26280 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
26281 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
26282 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
26283 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
26284 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
26285 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
26286 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
26287 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
26288 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
26289 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
26290 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
26291 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
26292 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
26293 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
26294 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
26295 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
26296 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
26297 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
26298 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
26299 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
26300 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
26301 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
26302 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
26303 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
26304 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
26305 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
26306 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
26307 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
26308 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
26309 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
26310 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
26311 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
26312 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
26313 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
26314 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
26315 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
26316 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
26317 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
26318 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
26319 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
26320 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
26321 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
26322 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
26323 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
26324 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
26325 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
26326 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
26327 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
26328 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
26329 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
26330 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
26331 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
26332 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
26333 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
26334 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
26335 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
26336 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
26337 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
26338 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
26339 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
26340 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
26341 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
26342 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
26343 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
26344 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
26345 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
26346 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
26347 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
26348 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
26349 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
26350 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
26351 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
26352 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
26353 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26354 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
26355 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
26356 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
26357 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
26358 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
26359 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
26360 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
26361 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
26362 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
26363 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
26364 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
26365 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
26366 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
26367 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
26368 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26369 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26370 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26371 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
26372 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
26373 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
26374 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
26375 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
26376 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
26377 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
26378 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
26379 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
26380 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
26381 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
26382 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
26383 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
26384 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
26385 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
26386 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
26387 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
26388 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
26389 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
26390 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
26391 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
26392 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
26393 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
26394 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
26395 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
26396 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
26397 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
26398 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
26399 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
26400 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
26401 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
26402 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
26403 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
26404 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
26405 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
26406 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
26407 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
26408 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
26409 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
26410 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
26411 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
26412 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
26413 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
26414 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
26415 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
26416 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
26417 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
26418 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
26419 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
26420 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
26421 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
26422 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
26423 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
26424 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
26425 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
26426 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
26427 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
26428 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
26429 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
26430 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
26431 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
26432 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
26433 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
26434 { NULL, NULL, 0, NULL }
26435 };
26436
26437
26438 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
26439
26440 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
26441 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
26442 }
26443 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
26444 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
26445 }
26446 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
26447 return (void *)((wxGDIObject *) ((wxIcon *) x));
26448 }
26449 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
26450 return (void *)((wxGDIObject *) ((wxPalette *) x));
26451 }
26452 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
26453 return (void *)((wxGDIObject *) ((wxPen *) x));
26454 }
26455 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
26456 return (void *)((wxGDIObject *) ((wxFont *) x));
26457 }
26458 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
26459 return (void *)((wxGDIObject *) ((wxCursor *) x));
26460 }
26461 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
26462 return (void *)((wxGDIObject *) ((wxBitmap *) x));
26463 }
26464 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
26465 return (void *)((wxGDIObject *) ((wxRegion *) x));
26466 }
26467 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
26468 return (void *)((wxGDIObject *) ((wxBrush *) x));
26469 }
26470 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
26471 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
26472 }
26473 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
26474 return (void *)((wxDC *) ((wxScreenDC *) x));
26475 }
26476 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
26477 return (void *)((wxDC *) ((wxMirrorDC *) x));
26478 }
26479 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
26480 return (void *)((wxDC *) ((wxMemoryDC *) x));
26481 }
26482 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
26483 return (void *)((wxDC *) ((wxWindowDC *) x));
26484 }
26485 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
26486 return (void *)((wxDC *) ((wxMetaFileDC *) x));
26487 }
26488 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
26489 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
26490 }
26491 static void *_p_wxClientDCTo_p_wxDC(void *x) {
26492 return (void *)((wxDC *) ((wxClientDC *) x));
26493 }
26494 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
26495 return (void *)((wxDC *) ((wxPaintDC *) x));
26496 }
26497 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
26498 return (void *)((wxDC *) ((wxPostScriptDC *) x));
26499 }
26500 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
26501 return (void *)((wxDC *) ((wxPrinterDC *) x));
26502 }
26503 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
26504 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
26505 }
26506 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
26507 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
26508 }
26509 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
26510 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
26511 }
26512 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
26513 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
26514 }
26515 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
26516 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
26517 }
26518 static void *_p_wxPenTo_p_wxObject(void *x) {
26519 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
26520 }
26521 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
26522 return (void *)((wxObject *) ((wxRegionIterator *) x));
26523 }
26524 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
26525 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
26526 }
26527 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
26528 return (void *)((wxObject *) ((wxSizerItem *) x));
26529 }
26530 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
26531 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
26532 }
26533 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
26534 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
26535 }
26536 static void *_p_wxIconTo_p_wxObject(void *x) {
26537 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
26538 }
26539 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
26540 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
26541 }
26542 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
26543 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
26544 }
26545 static void *_p_wxSizerTo_p_wxObject(void *x) {
26546 return (void *)((wxObject *) ((wxSizer *) x));
26547 }
26548 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
26549 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
26550 }
26551 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
26552 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
26553 }
26554 static void *_p_wxEventTo_p_wxObject(void *x) {
26555 return (void *)((wxObject *) ((wxEvent *) x));
26556 }
26557 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
26558 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
26559 }
26560 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
26561 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
26562 }
26563 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
26564 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
26565 }
26566 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
26567 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
26568 }
26569 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
26570 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
26571 }
26572 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
26573 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
26574 }
26575 static void *_p_wxDCTo_p_wxObject(void *x) {
26576 return (void *)((wxObject *) ((wxDC *) x));
26577 }
26578 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
26579 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
26580 }
26581 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
26582 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
26583 }
26584 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
26585 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
26586 }
26587 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
26588 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
26589 }
26590 static void *_p_wxControlTo_p_wxObject(void *x) {
26591 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
26592 }
26593 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
26594 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
26595 }
26596 static void *_p_wxClientDCTo_p_wxObject(void *x) {
26597 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
26598 }
26599 static void *_p_wxFSFileTo_p_wxObject(void *x) {
26600 return (void *)((wxObject *) ((wxFSFile *) x));
26601 }
26602 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
26603 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
26604 }
26605 static void *_p_wxRegionTo_p_wxObject(void *x) {
26606 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
26607 }
26608 static void *_p_wxPySizerTo_p_wxObject(void *x) {
26609 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
26610 }
26611 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
26612 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
26613 }
26614 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
26615 return (void *)((wxObject *) ((wxGDIObject *) x));
26616 }
26617 static void *_p_wxEffectsTo_p_wxObject(void *x) {
26618 return (void *)((wxObject *) ((wxEffects *) x));
26619 }
26620 static void *_p_wxPyEventTo_p_wxObject(void *x) {
26621 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
26622 }
26623 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
26624 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
26625 }
26626 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
26627 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
26628 }
26629 static void *_p_wxShowEventTo_p_wxObject(void *x) {
26630 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
26631 }
26632 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
26633 return (void *)((wxObject *) ((wxMenuItem *) x));
26634 }
26635 static void *_p_wxDateEventTo_p_wxObject(void *x) {
26636 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
26637 }
26638 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
26639 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
26640 }
26641 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
26642 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
26643 }
26644 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
26645 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
26646 }
26647 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
26648 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
26649 }
26650 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
26651 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
26652 }
26653 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
26654 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
26655 }
26656 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
26657 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
26658 }
26659 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
26660 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
26661 }
26662 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
26663 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
26664 }
26665 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
26666 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
26667 }
26668 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
26669 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
26670 }
26671 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
26672 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
26673 }
26674 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
26675 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
26676 }
26677 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
26678 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
26679 }
26680 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
26681 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
26682 }
26683 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
26684 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
26685 }
26686 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
26687 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
26688 }
26689 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
26690 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
26691 }
26692 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
26693 return (void *)((wxObject *) ((wxImageHandler *) x));
26694 }
26695 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
26696 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
26697 }
26698 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
26699 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
26700 }
26701 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
26702 return (void *)((wxObject *) ((wxEvtHandler *) x));
26703 }
26704 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
26705 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
26706 }
26707 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
26708 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
26709 }
26710 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
26711 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
26712 }
26713 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
26714 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
26715 }
26716 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
26717 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
26718 }
26719 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
26720 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
26721 }
26722 static void *_p_wxImageTo_p_wxObject(void *x) {
26723 return (void *)((wxObject *) ((wxImage *) x));
26724 }
26725 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
26726 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
26727 }
26728 static void *_p_wxPaletteTo_p_wxObject(void *x) {
26729 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
26730 }
26731 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
26732 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
26733 }
26734 static void *_p_wxImageListTo_p_wxObject(void *x) {
26735 return (void *)((wxObject *) ((wxImageList *) x));
26736 }
26737 static void *_p_wxCursorTo_p_wxObject(void *x) {
26738 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
26739 }
26740 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
26741 return (void *)((wxObject *) ((wxEncodingConverter *) x));
26742 }
26743 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
26744 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
26745 }
26746 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
26747 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
26748 }
26749 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
26750 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
26751 }
26752 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
26753 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
26754 }
26755 static void *_p_wxWindowTo_p_wxObject(void *x) {
26756 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
26757 }
26758 static void *_p_wxMenuTo_p_wxObject(void *x) {
26759 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
26760 }
26761 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
26762 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
26763 }
26764 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
26765 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
26766 }
26767 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
26768 return (void *)((wxObject *) ((wxFileSystem *) x));
26769 }
26770 static void *_p_wxBitmapTo_p_wxObject(void *x) {
26771 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
26772 }
26773 static void *_p_wxMaskTo_p_wxObject(void *x) {
26774 return (void *)((wxObject *) ((wxMask *) x));
26775 }
26776 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
26777 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
26778 }
26779 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
26780 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
26781 }
26782 static void *_p_wxPyAppTo_p_wxObject(void *x) {
26783 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
26784 }
26785 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
26786 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
26787 }
26788 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
26789 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
26790 }
26791 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
26792 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
26793 }
26794 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
26795 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
26796 }
26797 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
26798 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
26799 }
26800 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
26801 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
26802 }
26803 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
26804 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
26805 }
26806 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
26807 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
26808 }
26809 static void *_p_wxFontTo_p_wxObject(void *x) {
26810 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
26811 }
26812 static void *_p_wxBrushTo_p_wxObject(void *x) {
26813 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
26814 }
26815 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
26816 return (void *)((wxObject *) ((wxMetaFile *) x));
26817 }
26818 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
26819 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
26820 }
26821 static void *_p_wxColourTo_p_wxObject(void *x) {
26822 return (void *)((wxObject *) ((wxColour *) x));
26823 }
26824 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
26825 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
26826 }
26827 static void *_p_wxValidatorTo_p_wxObject(void *x) {
26828 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
26829 }
26830 static void *_p_wxControlTo_p_wxWindow(void *x) {
26831 return (void *)((wxWindow *) ((wxControl *) x));
26832 }
26833 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
26834 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
26835 }
26836 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
26837 return (void *)((wxWindow *) ((wxMenuBar *) x));
26838 }
26839 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
26840 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
26841 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};
26842 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
26843 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
26844 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
26845 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
26846 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
26847 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
26848 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
26849 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
26850 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
26851 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
26852 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
26853 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
26854 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
26855 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
26856 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
26857 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
26858 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
26859 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
26860 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
26861 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
26862 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
26863 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
26864 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
26865 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
26866 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
26867 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
26868 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
26869 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
26870 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
26871 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
26872 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
26873 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
26874 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
26875 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
26876 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
26877 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
26878 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
26879 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
26880 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
26881 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
26882 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
26883 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
26884 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
26885 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
26886 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
26887 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
26888 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
26889 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
26890 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
26891 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
26892 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
26893 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
26894 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
26895 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
26896 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
26897 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
26898 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
26899 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
26900 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
26901 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
26902 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
26903 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
26904 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
26905 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
26906 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
26907 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
26908 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
26909 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
26910 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
26911 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
26912 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
26913 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
26914 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
26915 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
26916 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
26917 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
26918 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
26919 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
26920 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
26921 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
26922 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
26923 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
26924 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
26925 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
26926 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
26927 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
26928 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
26929 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
26930 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
26931 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
26932 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
26933 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
26934 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
26935 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
26936 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
26937 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
26938 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
26939 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
26940 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
26941 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
26942 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
26943 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
26944 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
26945 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
26946 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
26947 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
26948 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
26949 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
26950 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
26951 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
26952 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
26953 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
26954 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
26955 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
26956 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
26957 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
26958 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
26959 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
26960 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
26961 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
26962 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
26963 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
26964 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
26965 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
26966 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
26967 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
26968 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
26969 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
26970 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
26971 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
26972 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
26973 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
26974 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
26975 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
26976 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
26977
26978 static swig_type_info *swig_type_initial[] = {
26979 &_swigt__p_char,
26980 &_swigt__p_double,
26981 &_swigt__p_form_ops_t,
26982 &_swigt__p_int,
26983 &_swigt__p_unsigned_char,
26984 &_swigt__p_unsigned_int,
26985 &_swigt__p_unsigned_long,
26986 &_swigt__p_wxANIHandler,
26987 &_swigt__p_wxAcceleratorTable,
26988 &_swigt__p_wxActivateEvent,
26989 &_swigt__p_wxBMPHandler,
26990 &_swigt__p_wxBitmap,
26991 &_swigt__p_wxBoxSizer,
26992 &_swigt__p_wxBrush,
26993 &_swigt__p_wxBrushList,
26994 &_swigt__p_wxBufferedDC,
26995 &_swigt__p_wxBufferedPaintDC,
26996 &_swigt__p_wxCURHandler,
26997 &_swigt__p_wxChildFocusEvent,
26998 &_swigt__p_wxClientDC,
26999 &_swigt__p_wxClipboardTextEvent,
27000 &_swigt__p_wxCloseEvent,
27001 &_swigt__p_wxColour,
27002 &_swigt__p_wxColourDatabase,
27003 &_swigt__p_wxCommandEvent,
27004 &_swigt__p_wxContextMenuEvent,
27005 &_swigt__p_wxControl,
27006 &_swigt__p_wxControlWithItems,
27007 &_swigt__p_wxCursor,
27008 &_swigt__p_wxDC,
27009 &_swigt__p_wxDash,
27010 &_swigt__p_wxDateEvent,
27011 &_swigt__p_wxDisplayChangedEvent,
27012 &_swigt__p_wxDropFilesEvent,
27013 &_swigt__p_wxDuplexMode,
27014 &_swigt__p_wxEffects,
27015 &_swigt__p_wxEncodingConverter,
27016 &_swigt__p_wxEraseEvent,
27017 &_swigt__p_wxEvent,
27018 &_swigt__p_wxEvtHandler,
27019 &_swigt__p_wxFSFile,
27020 &_swigt__p_wxFileSystem,
27021 &_swigt__p_wxFlexGridSizer,
27022 &_swigt__p_wxFocusEvent,
27023 &_swigt__p_wxFont,
27024 &_swigt__p_wxFontList,
27025 &_swigt__p_wxFontMapper,
27026 &_swigt__p_wxGBSizerItem,
27027 &_swigt__p_wxGDIObjListBase,
27028 &_swigt__p_wxGDIObject,
27029 &_swigt__p_wxGIFHandler,
27030 &_swigt__p_wxGridBagSizer,
27031 &_swigt__p_wxGridSizer,
27032 &_swigt__p_wxICOHandler,
27033 &_swigt__p_wxIcon,
27034 &_swigt__p_wxIconBundle,
27035 &_swigt__p_wxIconLocation,
27036 &_swigt__p_wxIconizeEvent,
27037 &_swigt__p_wxIdleEvent,
27038 &_swigt__p_wxImage,
27039 &_swigt__p_wxImageHandler,
27040 &_swigt__p_wxImageList,
27041 &_swigt__p_wxIndividualLayoutConstraint,
27042 &_swigt__p_wxInitDialogEvent,
27043 &_swigt__p_wxJPEGHandler,
27044 &_swigt__p_wxKeyEvent,
27045 &_swigt__p_wxLanguageInfo,
27046 &_swigt__p_wxLayoutConstraints,
27047 &_swigt__p_wxLocale,
27048 &_swigt__p_wxMask,
27049 &_swigt__p_wxMaximizeEvent,
27050 &_swigt__p_wxMemoryDC,
27051 &_swigt__p_wxMenu,
27052 &_swigt__p_wxMenuBar,
27053 &_swigt__p_wxMenuEvent,
27054 &_swigt__p_wxMenuItem,
27055 &_swigt__p_wxMetaFile,
27056 &_swigt__p_wxMetaFileDC,
27057 &_swigt__p_wxMirrorDC,
27058 &_swigt__p_wxMouseCaptureChangedEvent,
27059 &_swigt__p_wxMouseEvent,
27060 &_swigt__p_wxMoveEvent,
27061 &_swigt__p_wxNativeEncodingInfo,
27062 &_swigt__p_wxNativeFontInfo,
27063 &_swigt__p_wxNavigationKeyEvent,
27064 &_swigt__p_wxNcPaintEvent,
27065 &_swigt__p_wxNotifyEvent,
27066 &_swigt__p_wxObject,
27067 &_swigt__p_wxPCXHandler,
27068 &_swigt__p_wxPNGHandler,
27069 &_swigt__p_wxPNMHandler,
27070 &_swigt__p_wxPaintDC,
27071 &_swigt__p_wxPaintEvent,
27072 &_swigt__p_wxPalette,
27073 &_swigt__p_wxPaletteChangedEvent,
27074 &_swigt__p_wxPaperSize,
27075 &_swigt__p_wxPen,
27076 &_swigt__p_wxPenList,
27077 &_swigt__p_wxPoint,
27078 &_swigt__p_wxPostScriptDC,
27079 &_swigt__p_wxPrintData,
27080 &_swigt__p_wxPrinterDC,
27081 &_swigt__p_wxPyApp,
27082 &_swigt__p_wxPyCommandEvent,
27083 &_swigt__p_wxPyEvent,
27084 &_swigt__p_wxPyFontEnumerator,
27085 &_swigt__p_wxPyImageHandler,
27086 &_swigt__p_wxPySizer,
27087 &_swigt__p_wxPyValidator,
27088 &_swigt__p_wxQueryNewPaletteEvent,
27089 &_swigt__p_wxRect,
27090 &_swigt__p_wxRegion,
27091 &_swigt__p_wxRegionIterator,
27092 &_swigt__p_wxRendererNative,
27093 &_swigt__p_wxRendererVersion,
27094 &_swigt__p_wxScreenDC,
27095 &_swigt__p_wxScrollEvent,
27096 &_swigt__p_wxScrollWinEvent,
27097 &_swigt__p_wxSetCursorEvent,
27098 &_swigt__p_wxShowEvent,
27099 &_swigt__p_wxSize,
27100 &_swigt__p_wxSizeEvent,
27101 &_swigt__p_wxSizer,
27102 &_swigt__p_wxSizerItem,
27103 &_swigt__p_wxSplitterRenderParams,
27104 &_swigt__p_wxStaticBoxSizer,
27105 &_swigt__p_wxStdDialogButtonSizer,
27106 &_swigt__p_wxStockGDI,
27107 &_swigt__p_wxString,
27108 &_swigt__p_wxSysColourChangedEvent,
27109 &_swigt__p_wxTIFFHandler,
27110 &_swigt__p_wxUpdateUIEvent,
27111 &_swigt__p_wxValidator,
27112 &_swigt__p_wxWindow,
27113 &_swigt__p_wxWindowCreateEvent,
27114 &_swigt__p_wxWindowDC,
27115 &_swigt__p_wxWindowDestroyEvent,
27116 &_swigt__p_wxXPMHandler,
27117 };
27118
27119 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
27120 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
27121 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
27122 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
27123 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
27124 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
27125 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
27126 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
27127 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
27128 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
27129 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}};
27130 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
27131 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
27132 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
27133 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
27134 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
27135 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}};
27136 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
27137 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
27138 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
27139 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
27140 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
27141 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
27142 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
27143 static swig_cast_info _swigc__p_wxGDIObjListBase[] = { {&_swigt__p_wxGDIObjListBase, 0, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxGDIObjListBase, 0, 0},{0, 0, 0, 0}};
27144 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}};
27145 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
27146 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
27147 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
27148 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
27149 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
27150 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
27151 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
27152 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
27153 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}};
27154 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
27155 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
27156 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
27157 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
27158 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
27159 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
27160 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
27161 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
27162 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
27163 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
27164 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
27165 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
27166 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
27167 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
27168 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
27169 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
27170 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
27171 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
27172 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
27173 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
27174 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
27175 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
27176 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
27177 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
27178 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
27179 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
27180 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
27181 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
27182 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
27183 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
27184 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
27185 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
27186 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
27187 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
27188 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
27189 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
27190 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
27191 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
27192 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
27193 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
27194 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
27195 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
27196 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
27197 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
27198 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
27199 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27200 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
27201 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
27202 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
27203 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
27204 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
27205 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
27206 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
27207 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
27208 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
27209 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
27210 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
27211 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
27212 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
27213 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
27214 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
27215 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
27216 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
27217 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
27218 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
27219 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
27220 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
27221 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
27222 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
27223 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
27224 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
27225 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
27226 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
27227 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
27228 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
27229 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
27230 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
27231 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
27232 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
27233 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
27234 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
27235 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
27236 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
27237 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
27238 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
27239 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
27240 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
27241 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
27242 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
27243 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27244 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
27245 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
27246 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
27247 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
27248 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
27249 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
27250 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
27251 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
27252 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
27253 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
27254 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
27255 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}};
27256 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
27257
27258 static swig_cast_info *swig_cast_initial[] = {
27259 _swigc__p_char,
27260 _swigc__p_double,
27261 _swigc__p_form_ops_t,
27262 _swigc__p_int,
27263 _swigc__p_unsigned_char,
27264 _swigc__p_unsigned_int,
27265 _swigc__p_unsigned_long,
27266 _swigc__p_wxANIHandler,
27267 _swigc__p_wxAcceleratorTable,
27268 _swigc__p_wxActivateEvent,
27269 _swigc__p_wxBMPHandler,
27270 _swigc__p_wxBitmap,
27271 _swigc__p_wxBoxSizer,
27272 _swigc__p_wxBrush,
27273 _swigc__p_wxBrushList,
27274 _swigc__p_wxBufferedDC,
27275 _swigc__p_wxBufferedPaintDC,
27276 _swigc__p_wxCURHandler,
27277 _swigc__p_wxChildFocusEvent,
27278 _swigc__p_wxClientDC,
27279 _swigc__p_wxClipboardTextEvent,
27280 _swigc__p_wxCloseEvent,
27281 _swigc__p_wxColour,
27282 _swigc__p_wxColourDatabase,
27283 _swigc__p_wxCommandEvent,
27284 _swigc__p_wxContextMenuEvent,
27285 _swigc__p_wxControl,
27286 _swigc__p_wxControlWithItems,
27287 _swigc__p_wxCursor,
27288 _swigc__p_wxDC,
27289 _swigc__p_wxDash,
27290 _swigc__p_wxDateEvent,
27291 _swigc__p_wxDisplayChangedEvent,
27292 _swigc__p_wxDropFilesEvent,
27293 _swigc__p_wxDuplexMode,
27294 _swigc__p_wxEffects,
27295 _swigc__p_wxEncodingConverter,
27296 _swigc__p_wxEraseEvent,
27297 _swigc__p_wxEvent,
27298 _swigc__p_wxEvtHandler,
27299 _swigc__p_wxFSFile,
27300 _swigc__p_wxFileSystem,
27301 _swigc__p_wxFlexGridSizer,
27302 _swigc__p_wxFocusEvent,
27303 _swigc__p_wxFont,
27304 _swigc__p_wxFontList,
27305 _swigc__p_wxFontMapper,
27306 _swigc__p_wxGBSizerItem,
27307 _swigc__p_wxGDIObjListBase,
27308 _swigc__p_wxGDIObject,
27309 _swigc__p_wxGIFHandler,
27310 _swigc__p_wxGridBagSizer,
27311 _swigc__p_wxGridSizer,
27312 _swigc__p_wxICOHandler,
27313 _swigc__p_wxIcon,
27314 _swigc__p_wxIconBundle,
27315 _swigc__p_wxIconLocation,
27316 _swigc__p_wxIconizeEvent,
27317 _swigc__p_wxIdleEvent,
27318 _swigc__p_wxImage,
27319 _swigc__p_wxImageHandler,
27320 _swigc__p_wxImageList,
27321 _swigc__p_wxIndividualLayoutConstraint,
27322 _swigc__p_wxInitDialogEvent,
27323 _swigc__p_wxJPEGHandler,
27324 _swigc__p_wxKeyEvent,
27325 _swigc__p_wxLanguageInfo,
27326 _swigc__p_wxLayoutConstraints,
27327 _swigc__p_wxLocale,
27328 _swigc__p_wxMask,
27329 _swigc__p_wxMaximizeEvent,
27330 _swigc__p_wxMemoryDC,
27331 _swigc__p_wxMenu,
27332 _swigc__p_wxMenuBar,
27333 _swigc__p_wxMenuEvent,
27334 _swigc__p_wxMenuItem,
27335 _swigc__p_wxMetaFile,
27336 _swigc__p_wxMetaFileDC,
27337 _swigc__p_wxMirrorDC,
27338 _swigc__p_wxMouseCaptureChangedEvent,
27339 _swigc__p_wxMouseEvent,
27340 _swigc__p_wxMoveEvent,
27341 _swigc__p_wxNativeEncodingInfo,
27342 _swigc__p_wxNativeFontInfo,
27343 _swigc__p_wxNavigationKeyEvent,
27344 _swigc__p_wxNcPaintEvent,
27345 _swigc__p_wxNotifyEvent,
27346 _swigc__p_wxObject,
27347 _swigc__p_wxPCXHandler,
27348 _swigc__p_wxPNGHandler,
27349 _swigc__p_wxPNMHandler,
27350 _swigc__p_wxPaintDC,
27351 _swigc__p_wxPaintEvent,
27352 _swigc__p_wxPalette,
27353 _swigc__p_wxPaletteChangedEvent,
27354 _swigc__p_wxPaperSize,
27355 _swigc__p_wxPen,
27356 _swigc__p_wxPenList,
27357 _swigc__p_wxPoint,
27358 _swigc__p_wxPostScriptDC,
27359 _swigc__p_wxPrintData,
27360 _swigc__p_wxPrinterDC,
27361 _swigc__p_wxPyApp,
27362 _swigc__p_wxPyCommandEvent,
27363 _swigc__p_wxPyEvent,
27364 _swigc__p_wxPyFontEnumerator,
27365 _swigc__p_wxPyImageHandler,
27366 _swigc__p_wxPySizer,
27367 _swigc__p_wxPyValidator,
27368 _swigc__p_wxQueryNewPaletteEvent,
27369 _swigc__p_wxRect,
27370 _swigc__p_wxRegion,
27371 _swigc__p_wxRegionIterator,
27372 _swigc__p_wxRendererNative,
27373 _swigc__p_wxRendererVersion,
27374 _swigc__p_wxScreenDC,
27375 _swigc__p_wxScrollEvent,
27376 _swigc__p_wxScrollWinEvent,
27377 _swigc__p_wxSetCursorEvent,
27378 _swigc__p_wxShowEvent,
27379 _swigc__p_wxSize,
27380 _swigc__p_wxSizeEvent,
27381 _swigc__p_wxSizer,
27382 _swigc__p_wxSizerItem,
27383 _swigc__p_wxSplitterRenderParams,
27384 _swigc__p_wxStaticBoxSizer,
27385 _swigc__p_wxStdDialogButtonSizer,
27386 _swigc__p_wxStockGDI,
27387 _swigc__p_wxString,
27388 _swigc__p_wxSysColourChangedEvent,
27389 _swigc__p_wxTIFFHandler,
27390 _swigc__p_wxUpdateUIEvent,
27391 _swigc__p_wxValidator,
27392 _swigc__p_wxWindow,
27393 _swigc__p_wxWindowCreateEvent,
27394 _swigc__p_wxWindowDC,
27395 _swigc__p_wxWindowDestroyEvent,
27396 _swigc__p_wxXPMHandler,
27397 };
27398
27399
27400 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
27401
27402 static swig_const_info swig_const_table[] = {
27403 {0, 0, 0, 0.0, 0, 0}};
27404
27405 #ifdef __cplusplus
27406 }
27407 #endif
27408 /* -----------------------------------------------------------------------------
27409 * Type initialization:
27410 * This problem is tough by the requirement that no dynamic
27411 * memory is used. Also, since swig_type_info structures store pointers to
27412 * swig_cast_info structures and swig_cast_info structures store pointers back
27413 * to swig_type_info structures, we need some lookup code at initialization.
27414 * The idea is that swig generates all the structures that are needed.
27415 * The runtime then collects these partially filled structures.
27416 * The SWIG_InitializeModule function takes these initial arrays out of
27417 * swig_module, and does all the lookup, filling in the swig_module.types
27418 * array with the correct data and linking the correct swig_cast_info
27419 * structures together.
27420 *
27421 * The generated swig_type_info structures are assigned staticly to an initial
27422 * array. We just loop though that array, and handle each type individually.
27423 * First we lookup if this type has been already loaded, and if so, use the
27424 * loaded structure instead of the generated one. Then we have to fill in the
27425 * cast linked list. The cast data is initially stored in something like a
27426 * two-dimensional array. Each row corresponds to a type (there are the same
27427 * number of rows as there are in the swig_type_initial array). Each entry in
27428 * a column is one of the swig_cast_info structures for that type.
27429 * The cast_initial array is actually an array of arrays, because each row has
27430 * a variable number of columns. So to actually build the cast linked list,
27431 * we find the array of casts associated with the type, and loop through it
27432 * adding the casts to the list. The one last trick we need to do is making
27433 * sure the type pointer in the swig_cast_info struct is correct.
27434 *
27435 * First off, we lookup the cast->type name to see if it is already loaded.
27436 * There are three cases to handle:
27437 * 1) If the cast->type has already been loaded AND the type we are adding
27438 * casting info to has not been loaded (it is in this module), THEN we
27439 * replace the cast->type pointer with the type pointer that has already
27440 * been loaded.
27441 * 2) If BOTH types (the one we are adding casting info to, and the
27442 * cast->type) are loaded, THEN the cast info has already been loaded by
27443 * the previous module so we just ignore it.
27444 * 3) Finally, if cast->type has not already been loaded, then we add that
27445 * swig_cast_info to the linked list (because the cast->type) pointer will
27446 * be correct.
27447 * ----------------------------------------------------------------------------- */
27448
27449 #ifdef __cplusplus
27450 extern "C" {
27451 #if 0
27452 } /* c-mode */
27453 #endif
27454 #endif
27455
27456 #if 0
27457 #define SWIGRUNTIME_DEBUG
27458 #endif
27459
27460 SWIGRUNTIME void
27461 SWIG_InitializeModule(void *clientdata) {
27462 size_t i;
27463 swig_module_info *module_head;
27464 static int init_run = 0;
27465
27466 clientdata = clientdata;
27467
27468 if (init_run) return;
27469 init_run = 1;
27470
27471 /* Initialize the swig_module */
27472 swig_module.type_initial = swig_type_initial;
27473 swig_module.cast_initial = swig_cast_initial;
27474
27475 /* Try and load any already created modules */
27476 module_head = SWIG_GetModule(clientdata);
27477 if (module_head) {
27478 swig_module.next = module_head->next;
27479 module_head->next = &swig_module;
27480 } else {
27481 /* This is the first module loaded */
27482 swig_module.next = &swig_module;
27483 SWIG_SetModule(clientdata, &swig_module);
27484 }
27485
27486 /* Now work on filling in swig_module.types */
27487 #ifdef SWIGRUNTIME_DEBUG
27488 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
27489 #endif
27490 for (i = 0; i < swig_module.size; ++i) {
27491 swig_type_info *type = 0;
27492 swig_type_info *ret;
27493 swig_cast_info *cast;
27494
27495 #ifdef SWIGRUNTIME_DEBUG
27496 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
27497 #endif
27498
27499 /* if there is another module already loaded */
27500 if (swig_module.next != &swig_module) {
27501 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
27502 }
27503 if (type) {
27504 /* Overwrite clientdata field */
27505 #ifdef SWIGRUNTIME_DEBUG
27506 printf("SWIG_InitializeModule: found type %s\n", type->name);
27507 #endif
27508 if (swig_module.type_initial[i]->clientdata) {
27509 type->clientdata = swig_module.type_initial[i]->clientdata;
27510 #ifdef SWIGRUNTIME_DEBUG
27511 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
27512 #endif
27513 }
27514 } else {
27515 type = swig_module.type_initial[i];
27516 }
27517
27518 /* Insert casting types */
27519 cast = swig_module.cast_initial[i];
27520 while (cast->type) {
27521 /* Don't need to add information already in the list */
27522 ret = 0;
27523 #ifdef SWIGRUNTIME_DEBUG
27524 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
27525 #endif
27526 if (swig_module.next != &swig_module) {
27527 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
27528 #ifdef SWIGRUNTIME_DEBUG
27529 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
27530 #endif
27531 }
27532 if (ret) {
27533 if (type == swig_module.type_initial[i]) {
27534 #ifdef SWIGRUNTIME_DEBUG
27535 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
27536 #endif
27537 cast->type = ret;
27538 ret = 0;
27539 } else {
27540 /* Check for casting already in the list */
27541 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
27542 #ifdef SWIGRUNTIME_DEBUG
27543 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
27544 #endif
27545 if (!ocast) ret = 0;
27546 }
27547 }
27548
27549 if (!ret) {
27550 #ifdef SWIGRUNTIME_DEBUG
27551 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
27552 #endif
27553 if (type->cast) {
27554 type->cast->prev = cast;
27555 cast->next = type->cast;
27556 }
27557 type->cast = cast;
27558 }
27559 cast++;
27560 }
27561 /* Set entry in modules->types array equal to the type */
27562 swig_module.types[i] = type;
27563 }
27564 swig_module.types[i] = 0;
27565
27566 #ifdef SWIGRUNTIME_DEBUG
27567 printf("**** SWIG_InitializeModule: Cast List ******\n");
27568 for (i = 0; i < swig_module.size; ++i) {
27569 int j = 0;
27570 swig_cast_info *cast = swig_module.cast_initial[i];
27571 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
27572 while (cast->type) {
27573 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
27574 cast++;
27575 ++j;
27576 }
27577 printf("---- Total casts: %d\n",j);
27578 }
27579 printf("**** SWIG_InitializeModule: Cast List ******\n");
27580 #endif
27581 }
27582
27583 /* This function will propagate the clientdata field of type to
27584 * any new swig_type_info structures that have been added into the list
27585 * of equivalent types. It is like calling
27586 * SWIG_TypeClientData(type, clientdata) a second time.
27587 */
27588 SWIGRUNTIME void
27589 SWIG_PropagateClientData(void) {
27590 size_t i;
27591 swig_cast_info *equiv;
27592 static int init_run = 0;
27593
27594 if (init_run) return;
27595 init_run = 1;
27596
27597 for (i = 0; i < swig_module.size; i++) {
27598 if (swig_module.types[i]->clientdata) {
27599 equiv = swig_module.types[i]->cast;
27600 while (equiv) {
27601 if (!equiv->converter) {
27602 if (equiv->type && !equiv->type->clientdata)
27603 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
27604 }
27605 equiv = equiv->next;
27606 }
27607 }
27608 }
27609 }
27610
27611 #ifdef __cplusplus
27612 #if 0
27613 {
27614 /* c-mode */
27615 #endif
27616 }
27617 #endif
27618
27619
27620
27621 #ifdef __cplusplus
27622 extern "C" {
27623 #endif
27624
27625 /* Python-specific SWIG API */
27626 #define SWIG_newvarlink() SWIG_Python_newvarlink()
27627 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
27628 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
27629
27630 /* -----------------------------------------------------------------------------
27631 * global variable support code.
27632 * ----------------------------------------------------------------------------- */
27633
27634 typedef struct swig_globalvar {
27635 char *name; /* Name of global variable */
27636 PyObject *(*get_attr)(void); /* Return the current value */
27637 int (*set_attr)(PyObject *); /* Set the value */
27638 struct swig_globalvar *next;
27639 } swig_globalvar;
27640
27641 typedef struct swig_varlinkobject {
27642 PyObject_HEAD
27643 swig_globalvar *vars;
27644 } swig_varlinkobject;
27645
27646 SWIGINTERN PyObject *
27647 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
27648 return PyString_FromString("<Swig global variables>");
27649 }
27650
27651 SWIGINTERN PyObject *
27652 swig_varlink_str(swig_varlinkobject *v) {
27653 PyObject *str = PyString_FromString("(");
27654 swig_globalvar *var;
27655 for (var = v->vars; var; var=var->next) {
27656 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
27657 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
27658 }
27659 PyString_ConcatAndDel(&str,PyString_FromString(")"));
27660 return str;
27661 }
27662
27663 SWIGINTERN int
27664 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
27665 PyObject *str = swig_varlink_str(v);
27666 fprintf(fp,"Swig global variables ");
27667 fprintf(fp,"%s\n", PyString_AsString(str));
27668 Py_DECREF(str);
27669 return 0;
27670 }
27671
27672 SWIGINTERN void
27673 swig_varlink_dealloc(swig_varlinkobject *v) {
27674 swig_globalvar *var = v->vars;
27675 while (var) {
27676 swig_globalvar *n = var->next;
27677 free(var->name);
27678 free(var);
27679 var = n;
27680 }
27681 }
27682
27683 SWIGINTERN PyObject *
27684 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
27685 PyObject *res = NULL;
27686 swig_globalvar *var = v->vars;
27687 while (var) {
27688 if (strcmp(var->name,n) == 0) {
27689 res = (*var->get_attr)();
27690 break;
27691 }
27692 var = var->next;
27693 }
27694 if (res == NULL && !PyErr_Occurred()) {
27695 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
27696 }
27697 return res;
27698 }
27699
27700 SWIGINTERN int
27701 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
27702 int res = 1;
27703 swig_globalvar *var = v->vars;
27704 while (var) {
27705 if (strcmp(var->name,n) == 0) {
27706 res = (*var->set_attr)(p);
27707 break;
27708 }
27709 var = var->next;
27710 }
27711 if (res == 1 && !PyErr_Occurred()) {
27712 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
27713 }
27714 return res;
27715 }
27716
27717 SWIGINTERN PyTypeObject*
27718 swig_varlink_type(void) {
27719 static char varlink__doc__[] = "Swig var link object";
27720 static PyTypeObject varlink_type;
27721 static int type_init = 0;
27722 if (!type_init) {
27723 const PyTypeObject tmp
27724 = {
27725 PyObject_HEAD_INIT(NULL)
27726 0, /* Number of items in variable part (ob_size) */
27727 (char *)"swigvarlink", /* Type name (tp_name) */
27728 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
27729 0, /* Itemsize (tp_itemsize) */
27730 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
27731 (printfunc) swig_varlink_print, /* Print (tp_print) */
27732 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
27733 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
27734 0, /* tp_compare */
27735 (reprfunc) swig_varlink_repr, /* tp_repr */
27736 0, /* tp_as_number */
27737 0, /* tp_as_sequence */
27738 0, /* tp_as_mapping */
27739 0, /* tp_hash */
27740 0, /* tp_call */
27741 (reprfunc)swig_varlink_str, /* tp_str */
27742 0, /* tp_getattro */
27743 0, /* tp_setattro */
27744 0, /* tp_as_buffer */
27745 0, /* tp_flags */
27746 varlink__doc__, /* tp_doc */
27747 0, /* tp_traverse */
27748 0, /* tp_clear */
27749 0, /* tp_richcompare */
27750 0, /* tp_weaklistoffset */
27751 #if PY_VERSION_HEX >= 0x02020000
27752 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
27753 #endif
27754 #if PY_VERSION_HEX >= 0x02030000
27755 0, /* tp_del */
27756 #endif
27757 #ifdef COUNT_ALLOCS
27758 0,0,0,0 /* tp_alloc -> tp_next */
27759 #endif
27760 };
27761 varlink_type = tmp;
27762 varlink_type.ob_type = &PyType_Type;
27763 type_init = 1;
27764 }
27765 return &varlink_type;
27766 }
27767
27768 /* Create a variable linking object for use later */
27769 SWIGINTERN PyObject *
27770 SWIG_Python_newvarlink(void) {
27771 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
27772 if (result) {
27773 result->vars = 0;
27774 }
27775 return ((PyObject*) result);
27776 }
27777
27778 SWIGINTERN void
27779 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
27780 swig_varlinkobject *v = (swig_varlinkobject *) p;
27781 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
27782 if (gv) {
27783 size_t size = strlen(name)+1;
27784 gv->name = (char *)malloc(size);
27785 if (gv->name) {
27786 strncpy(gv->name,name,size);
27787 gv->get_attr = get_attr;
27788 gv->set_attr = set_attr;
27789 gv->next = v->vars;
27790 }
27791 }
27792 v->vars = gv;
27793 }
27794
27795 SWIGINTERN PyObject *
27796 SWIG_globals() {
27797 static PyObject *_SWIG_globals = 0;
27798 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
27799 return _SWIG_globals;
27800 }
27801
27802 /* -----------------------------------------------------------------------------
27803 * constants/methods manipulation
27804 * ----------------------------------------------------------------------------- */
27805
27806 /* Install Constants */
27807 SWIGINTERN void
27808 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
27809 PyObject *obj = 0;
27810 size_t i;
27811 for (i = 0; constants[i].type; ++i) {
27812 switch(constants[i].type) {
27813 case SWIG_PY_POINTER:
27814 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
27815 break;
27816 case SWIG_PY_BINARY:
27817 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
27818 break;
27819 default:
27820 obj = 0;
27821 break;
27822 }
27823 if (obj) {
27824 PyDict_SetItemString(d, constants[i].name, obj);
27825 Py_DECREF(obj);
27826 }
27827 }
27828 }
27829
27830 /* -----------------------------------------------------------------------------*/
27831 /* Fix SwigMethods to carry the callback ptrs when needed */
27832 /* -----------------------------------------------------------------------------*/
27833
27834 SWIGINTERN void
27835 SWIG_Python_FixMethods(PyMethodDef *methods,
27836 swig_const_info *const_table,
27837 swig_type_info **types,
27838 swig_type_info **types_initial) {
27839 size_t i;
27840 for (i = 0; methods[i].ml_name; ++i) {
27841 char *c = methods[i].ml_doc;
27842 if (c && (c = strstr(c, "swig_ptr: "))) {
27843 int j;
27844 swig_const_info *ci = 0;
27845 char *name = c + 10;
27846 for (j = 0; const_table[j].type; ++j) {
27847 if (strncmp(const_table[j].name, name,
27848 strlen(const_table[j].name)) == 0) {
27849 ci = &(const_table[j]);
27850 break;
27851 }
27852 }
27853 if (ci) {
27854 size_t shift = (ci->ptype) - types;
27855 swig_type_info *ty = types_initial[shift];
27856 size_t ldoc = (c - methods[i].ml_doc);
27857 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
27858 char *ndoc = (char*)malloc(ldoc + lptr + 10);
27859 if (ndoc) {
27860 char *buff = ndoc;
27861 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
27862 if (ptr) {
27863 strncpy(buff, methods[i].ml_doc, ldoc);
27864 buff += ldoc;
27865 strncpy(buff, "swig_ptr: ", 10);
27866 buff += 10;
27867 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
27868 methods[i].ml_doc = ndoc;
27869 }
27870 }
27871 }
27872 }
27873 }
27874 }
27875
27876 #ifdef __cplusplus
27877 }
27878 #endif
27879
27880 /* -----------------------------------------------------------------------------*
27881 * Partial Init method
27882 * -----------------------------------------------------------------------------*/
27883
27884 #ifdef __cplusplus
27885 extern "C"
27886 #endif
27887 SWIGEXPORT void SWIG_init(void) {
27888 PyObject *m, *d;
27889
27890 /* Fix SwigMethods to carry the callback ptrs when needed */
27891 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
27892
27893 m = Py_InitModule((char *) SWIG_name, SwigMethods);
27894 d = PyModule_GetDict(m);
27895
27896 SWIG_InitializeModule(0);
27897 SWIG_InstallConstants(d,swig_const_table);
27898
27899
27900 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
27901 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
27902 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
27903 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
27904 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
27905 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
27906 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
27907 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
27908 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
27909 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
27910 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
27911 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
27912 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
27913 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
27914 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
27915 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
27916 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
27917 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
27918 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
27919 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
27920 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
27921 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
27922 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
27923 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
27924 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
27925 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
27926 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
27927 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
27928 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
27929 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
27930 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
27931 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
27932 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
27933 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
27934 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
27935 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
27936 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
27937 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
27938 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
27939 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
27940 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
27941 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
27942 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
27943 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
27944 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
27945 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
27946 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
27947 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
27948 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
27949 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
27950 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
27951 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
27952 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
27953 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
27954 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
27955 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
27956 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
27957 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
27958 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
27959 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
27960 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
27961 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
27962 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
27963 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
27964 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
27965 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
27966 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
27967 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
27968 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
27969 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
27970 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
27971 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
27972 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
27973 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
27974 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
27975 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
27976 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
27977 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
27978 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
27979 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
27980 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
27981 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
27982 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
27983 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
27984 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
27985 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
27986 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
27987 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
27988 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
27989 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
27990 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
27991 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
27992 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
27993 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
27994 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
27995 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
27996 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
27997 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
27998 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
27999 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
28000 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
28001 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
28002 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
28003 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
28004 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
28005 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
28006 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
28007 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
28008 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
28009 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
28010 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
28011 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
28012 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
28013 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
28014 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
28015 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
28016 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
28017 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
28018 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
28019 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
28020 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
28021 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
28022 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
28023 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
28024 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
28025 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
28026 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
28027 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
28028 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
28029 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
28030
28031 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
28032
28033 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
28034 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
28035 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
28036 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
28037 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
28038 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
28039 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
28040 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
28041 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
28042 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
28043 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
28044 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
28045 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
28046 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
28047 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
28048 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
28049 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
28050 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
28051 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
28052 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
28053 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
28054 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
28055 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
28056 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
28057 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
28058 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
28059 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
28060 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
28061 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
28062 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
28063 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
28064 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
28065 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
28066 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
28067 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
28068 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
28069 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
28070 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
28071 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
28072 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
28073 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
28074 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
28075 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
28076 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
28077 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
28078 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
28079 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
28080 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
28081 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
28082 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
28083 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
28084 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
28085 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
28086 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
28087 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
28088 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
28089 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
28090 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
28091 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
28092 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
28093 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
28094 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
28095 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
28096 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
28097 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
28098 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
28099 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
28100 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
28101 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
28102 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
28103 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
28104 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
28105 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
28106 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
28107 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
28108 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
28109 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
28110 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
28111 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
28112 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
28113 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
28114 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
28115 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
28116 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
28117 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
28118 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
28119 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
28120 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
28121 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
28122 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
28123 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
28124 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
28125 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
28126 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
28127 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
28128 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
28129 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
28130 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
28131 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
28132 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
28133 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
28134 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
28135 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
28136 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
28137 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
28138 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
28139 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
28140 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
28141 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
28142 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
28143 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
28144 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
28145 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
28146 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
28147 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
28148 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
28149 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
28150 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
28151 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
28152 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
28153 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
28154 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
28155 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
28156 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
28157 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
28158 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
28159 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
28160 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
28161 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
28162 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
28163 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
28164 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
28165 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
28166 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
28167 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
28168 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
28169 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
28170 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
28171 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
28172 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
28173 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
28174 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
28175 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
28176 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
28177 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
28178 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
28179 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
28180 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
28181 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
28182 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
28183 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
28184 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
28185 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
28186 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
28187 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
28188 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
28189 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
28190 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
28191 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
28192 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
28193 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
28194 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
28195 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
28196 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
28197 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
28198 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
28199 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
28200 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
28201 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
28202 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
28203 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
28204 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
28205 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
28206 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
28207 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
28208 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
28209 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
28210 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
28211 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
28212 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
28213 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
28214 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
28215 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
28216 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
28217 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
28218 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
28219 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
28220 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
28221 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
28222 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
28223 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
28224 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
28225 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
28226 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
28227 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
28228 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
28229 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
28230 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
28231 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
28232 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
28233 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
28234 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
28235 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
28236 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
28237 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
28238 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
28239 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
28240 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
28241 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
28242 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
28243 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
28244 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
28245 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
28246 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
28247 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
28248 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
28249 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
28250 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
28251 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
28252 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
28253 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
28254 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
28255 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
28256 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
28257 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
28258 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
28259 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
28260 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
28261 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
28262 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
28263 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
28264 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
28265 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
28266 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
28267 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
28268 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
28269 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
28270 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
28271 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
28272 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
28273 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
28274 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
28275 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
28276 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
28277 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
28278 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
28279 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
28280 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
28281 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
28282 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
28283 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
28284 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
28285 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
28286 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
28287 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
28288 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
28289 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
28290 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
28291 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
28292 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
28293 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
28294 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
28295 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
28296 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
28297 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
28298 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
28299 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
28300 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
28301 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
28302 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
28303 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
28304 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
28305 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
28306 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
28307 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
28308 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
28309 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
28310 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
28311 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
28312 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
28313 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
28314 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
28315 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
28316 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
28317 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
28318 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
28319 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
28320 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
28321 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
28322 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
28323 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
28324 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
28325 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
28326 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
28327 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
28328 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
28329 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
28330 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
28331 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
28332 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
28333 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
28334 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
28335 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
28336 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
28337 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
28338 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
28339 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
28340 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
28341 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
28342 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
28343 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
28344 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
28345 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
28346 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
28347
28348 // Work around a chicken/egg problem in drawlist.cpp
28349 wxPyDrawList_SetAPIPtr();
28350
28351 }
28352