]> 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_wxCloseEvent swig_types[20]
2483 #define SWIGTYPE_p_wxColour swig_types[21]
2484 #define SWIGTYPE_p_wxColourDatabase swig_types[22]
2485 #define SWIGTYPE_p_wxCommandEvent swig_types[23]
2486 #define SWIGTYPE_p_wxContextMenuEvent swig_types[24]
2487 #define SWIGTYPE_p_wxControl swig_types[25]
2488 #define SWIGTYPE_p_wxControlWithItems swig_types[26]
2489 #define SWIGTYPE_p_wxCursor swig_types[27]
2490 #define SWIGTYPE_p_wxDC swig_types[28]
2491 #define SWIGTYPE_p_wxDash swig_types[29]
2492 #define SWIGTYPE_p_wxDateEvent swig_types[30]
2493 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[31]
2494 #define SWIGTYPE_p_wxDropFilesEvent swig_types[32]
2495 #define SWIGTYPE_p_wxDuplexMode swig_types[33]
2496 #define SWIGTYPE_p_wxEffects swig_types[34]
2497 #define SWIGTYPE_p_wxEncodingConverter swig_types[35]
2498 #define SWIGTYPE_p_wxEraseEvent swig_types[36]
2499 #define SWIGTYPE_p_wxEvent swig_types[37]
2500 #define SWIGTYPE_p_wxEvtHandler swig_types[38]
2501 #define SWIGTYPE_p_wxFSFile swig_types[39]
2502 #define SWIGTYPE_p_wxFileSystem swig_types[40]
2503 #define SWIGTYPE_p_wxFlexGridSizer swig_types[41]
2504 #define SWIGTYPE_p_wxFocusEvent swig_types[42]
2505 #define SWIGTYPE_p_wxFont swig_types[43]
2506 #define SWIGTYPE_p_wxFontList swig_types[44]
2507 #define SWIGTYPE_p_wxFontMapper swig_types[45]
2508 #define SWIGTYPE_p_wxGBSizerItem swig_types[46]
2509 #define SWIGTYPE_p_wxGDIObjListBase swig_types[47]
2510 #define SWIGTYPE_p_wxGDIObject swig_types[48]
2511 #define SWIGTYPE_p_wxGIFHandler swig_types[49]
2512 #define SWIGTYPE_p_wxGridBagSizer swig_types[50]
2513 #define SWIGTYPE_p_wxGridSizer swig_types[51]
2514 #define SWIGTYPE_p_wxICOHandler swig_types[52]
2515 #define SWIGTYPE_p_wxIcon swig_types[53]
2516 #define SWIGTYPE_p_wxIconBundle swig_types[54]
2517 #define SWIGTYPE_p_wxIconLocation swig_types[55]
2518 #define SWIGTYPE_p_wxIconizeEvent swig_types[56]
2519 #define SWIGTYPE_p_wxIdleEvent swig_types[57]
2520 #define SWIGTYPE_p_wxImage swig_types[58]
2521 #define SWIGTYPE_p_wxImageHandler swig_types[59]
2522 #define SWIGTYPE_p_wxImageList swig_types[60]
2523 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[61]
2524 #define SWIGTYPE_p_wxInitDialogEvent swig_types[62]
2525 #define SWIGTYPE_p_wxJPEGHandler swig_types[63]
2526 #define SWIGTYPE_p_wxKeyEvent swig_types[64]
2527 #define SWIGTYPE_p_wxLanguageInfo swig_types[65]
2528 #define SWIGTYPE_p_wxLayoutConstraints swig_types[66]
2529 #define SWIGTYPE_p_wxLocale swig_types[67]
2530 #define SWIGTYPE_p_wxMask swig_types[68]
2531 #define SWIGTYPE_p_wxMaximizeEvent swig_types[69]
2532 #define SWIGTYPE_p_wxMemoryDC swig_types[70]
2533 #define SWIGTYPE_p_wxMenu swig_types[71]
2534 #define SWIGTYPE_p_wxMenuBar swig_types[72]
2535 #define SWIGTYPE_p_wxMenuEvent swig_types[73]
2536 #define SWIGTYPE_p_wxMenuItem swig_types[74]
2537 #define SWIGTYPE_p_wxMetaFile swig_types[75]
2538 #define SWIGTYPE_p_wxMetaFileDC swig_types[76]
2539 #define SWIGTYPE_p_wxMirrorDC swig_types[77]
2540 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[78]
2541 #define SWIGTYPE_p_wxMouseEvent swig_types[79]
2542 #define SWIGTYPE_p_wxMoveEvent swig_types[80]
2543 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[81]
2544 #define SWIGTYPE_p_wxNativeFontInfo swig_types[82]
2545 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[83]
2546 #define SWIGTYPE_p_wxNcPaintEvent swig_types[84]
2547 #define SWIGTYPE_p_wxNotifyEvent swig_types[85]
2548 #define SWIGTYPE_p_wxObject swig_types[86]
2549 #define SWIGTYPE_p_wxPCXHandler swig_types[87]
2550 #define SWIGTYPE_p_wxPNGHandler swig_types[88]
2551 #define SWIGTYPE_p_wxPNMHandler swig_types[89]
2552 #define SWIGTYPE_p_wxPaintDC swig_types[90]
2553 #define SWIGTYPE_p_wxPaintEvent swig_types[91]
2554 #define SWIGTYPE_p_wxPalette swig_types[92]
2555 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[93]
2556 #define SWIGTYPE_p_wxPaperSize swig_types[94]
2557 #define SWIGTYPE_p_wxPen swig_types[95]
2558 #define SWIGTYPE_p_wxPenList swig_types[96]
2559 #define SWIGTYPE_p_wxPoint swig_types[97]
2560 #define SWIGTYPE_p_wxPostScriptDC swig_types[98]
2561 #define SWIGTYPE_p_wxPrintData swig_types[99]
2562 #define SWIGTYPE_p_wxPrinterDC swig_types[100]
2563 #define SWIGTYPE_p_wxPyApp swig_types[101]
2564 #define SWIGTYPE_p_wxPyCommandEvent swig_types[102]
2565 #define SWIGTYPE_p_wxPyEvent swig_types[103]
2566 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[104]
2567 #define SWIGTYPE_p_wxPyImageHandler swig_types[105]
2568 #define SWIGTYPE_p_wxPySizer swig_types[106]
2569 #define SWIGTYPE_p_wxPyValidator swig_types[107]
2570 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[108]
2571 #define SWIGTYPE_p_wxRect swig_types[109]
2572 #define SWIGTYPE_p_wxRegion swig_types[110]
2573 #define SWIGTYPE_p_wxRegionIterator swig_types[111]
2574 #define SWIGTYPE_p_wxRendererNative swig_types[112]
2575 #define SWIGTYPE_p_wxRendererVersion swig_types[113]
2576 #define SWIGTYPE_p_wxScreenDC swig_types[114]
2577 #define SWIGTYPE_p_wxScrollEvent swig_types[115]
2578 #define SWIGTYPE_p_wxScrollWinEvent swig_types[116]
2579 #define SWIGTYPE_p_wxSetCursorEvent swig_types[117]
2580 #define SWIGTYPE_p_wxShowEvent swig_types[118]
2581 #define SWIGTYPE_p_wxSize swig_types[119]
2582 #define SWIGTYPE_p_wxSizeEvent swig_types[120]
2583 #define SWIGTYPE_p_wxSizer swig_types[121]
2584 #define SWIGTYPE_p_wxSizerItem swig_types[122]
2585 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[123]
2586 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[124]
2587 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[125]
2588 #define SWIGTYPE_p_wxStockGDI swig_types[126]
2589 #define SWIGTYPE_p_wxString swig_types[127]
2590 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[128]
2591 #define SWIGTYPE_p_wxTIFFHandler swig_types[129]
2592 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[130]
2593 #define SWIGTYPE_p_wxValidator swig_types[131]
2594 #define SWIGTYPE_p_wxWindow swig_types[132]
2595 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[133]
2596 #define SWIGTYPE_p_wxWindowDC swig_types[134]
2597 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[135]
2598 #define SWIGTYPE_p_wxXPMHandler swig_types[136]
2599 static swig_type_info *swig_types[138];
2600 static swig_module_info swig_module = {swig_types, 137, 0, 0, 0, 0};
2601 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2602 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2603
2604 /* -------- TYPES TABLE (END) -------- */
2605
2606 #if (PY_VERSION_HEX <= 0x02000000)
2607 # if !defined(SWIG_PYTHON_CLASSIC)
2608 # error "This python version requires to use swig with the '-classic' option"
2609 # endif
2610 #endif
2611 #if (PY_VERSION_HEX <= 0x02020000)
2612 # error "This python version requires to use swig with the '-nomodern' option"
2613 #endif
2614 #if (PY_VERSION_HEX <= 0x02020000)
2615 # error "This python version requires to use swig with the '-nomodernargs' option"
2616 #endif
2617 #ifndef METH_O
2618 # error "This python version requires to use swig with the '-nofastunpack' option"
2619 #endif
2620
2621 /*-----------------------------------------------
2622 @(target):= _gdi_.so
2623 ------------------------------------------------*/
2624 #define SWIG_init init_gdi_
2625
2626 #define SWIG_name "_gdi_"
2627
2628 #define SWIGVERSION 0x010329
2629
2630
2631 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2632 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2633
2634
2635 #include <stdexcept>
2636
2637
2638 namespace swig {
2639 class PyObject_ptr {
2640 protected:
2641 PyObject *_obj;
2642
2643 public:
2644 PyObject_ptr() :_obj(0)
2645 {
2646 }
2647
2648 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2649 {
2650 Py_XINCREF(_obj);
2651 }
2652
2653 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2654 {
2655 if (initial_ref) Py_XINCREF(_obj);
2656 }
2657
2658 PyObject_ptr & operator=(const PyObject_ptr& item)
2659 {
2660 Py_XINCREF(item._obj);
2661 Py_XDECREF(_obj);
2662 _obj = item._obj;
2663 return *this;
2664 }
2665
2666 ~PyObject_ptr()
2667 {
2668 Py_XDECREF(_obj);
2669 }
2670
2671 operator PyObject *() const
2672 {
2673 return _obj;
2674 }
2675
2676 PyObject *operator->() const
2677 {
2678 return _obj;
2679 }
2680 };
2681 }
2682
2683
2684 namespace swig {
2685 struct PyObject_var : PyObject_ptr {
2686 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2687
2688 PyObject_var & operator = (PyObject* obj)
2689 {
2690 Py_XDECREF(_obj);
2691 _obj = obj;
2692 return *this;
2693 }
2694 };
2695 }
2696
2697
2698 #include "wx/wxPython/wxPython.h"
2699 #include "wx/wxPython/pyclasses.h"
2700
2701
2702 static const wxString wxPyEmptyString(wxEmptyString);
2703
2704 #include <limits.h>
2705 #ifndef LLONG_MIN
2706 # define LLONG_MIN LONG_LONG_MIN
2707 #endif
2708 #ifndef LLONG_MAX
2709 # define LLONG_MAX LONG_LONG_MAX
2710 #endif
2711 #ifndef ULLONG_MAX
2712 # define ULLONG_MAX ULONG_LONG_MAX
2713 #endif
2714
2715
2716 SWIGINTERN int
2717 SWIG_AsVal_long (PyObject* obj, long* val)
2718 {
2719 if (PyNumber_Check(obj)) {
2720 if (val) *val = PyInt_AsLong(obj);
2721 return SWIG_OK;
2722 }
2723 return SWIG_TypeError;
2724 }
2725
2726
2727 SWIGINTERN int
2728 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2729 {
2730 long v = 0;
2731 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2732 return SWIG_TypeError;
2733 }
2734 else if (val)
2735 *val = (unsigned long)v;
2736 return SWIG_OK;
2737 }
2738
2739
2740 SWIGINTERN int
2741 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2742 {
2743 unsigned long v;
2744 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2745 if (SWIG_IsOK(res)) {
2746 if ((v > UCHAR_MAX)) {
2747 return SWIG_OverflowError;
2748 } else {
2749 if (val) *val = static_cast< unsigned char >(v);
2750 }
2751 }
2752 return res;
2753 }
2754
2755
2756 #define SWIG_From_long PyInt_FromLong
2757
2758
2759 SWIGINTERNINLINE PyObject*
2760 SWIG_From_unsigned_SS_long (unsigned long value)
2761 {
2762 return (value > LONG_MAX) ?
2763 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2764 }
2765
2766
2767 SWIGINTERNINLINE PyObject *
2768 SWIG_From_unsigned_SS_char (unsigned char value)
2769 {
2770 return SWIG_From_unsigned_SS_long (value);
2771 }
2772
2773 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2774 wxColour temp, *obj = &temp;
2775 if ( other == Py_None ) return false;
2776 if ( ! wxColour_helper(other, &obj) ) {
2777 PyErr_Clear();
2778 return false;
2779 }
2780 return self->operator==(*obj);
2781 }
2782 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2783 wxColour temp, *obj = &temp;
2784 if ( other == Py_None ) return true;
2785 if ( ! wxColour_helper(other, &obj)) {
2786 PyErr_Clear();
2787 return true;
2788 }
2789 return self->operator!=(*obj);
2790 }
2791 SWIGINTERN PyObject *wxColour_Get(wxColour *self){
2792 PyObject* rv = PyTuple_New(3);
2793 int red = -1;
2794 int green = -1;
2795 int blue = -1;
2796 if (self->Ok()) {
2797 red = self->Red();
2798 green = self->Green();
2799 blue = self->Blue();
2800 }
2801 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2802 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2803 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2804 return rv;
2805 }
2806 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2807 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2808 }
2809
2810 SWIGINTERN int
2811 SWIG_AsVal_int (PyObject * obj, int *val)
2812 {
2813 long v;
2814 int res = SWIG_AsVal_long (obj, &v);
2815 if (SWIG_IsOK(res)) {
2816 if ((v < INT_MIN || v > INT_MAX)) {
2817 return SWIG_OverflowError;
2818 } else {
2819 if (val) *val = static_cast< int >(v);
2820 }
2821 }
2822 return res;
2823 }
2824
2825
2826 SWIGINTERNINLINE PyObject *
2827 SWIG_From_int (int value)
2828 {
2829 return SWIG_From_long (value);
2830 }
2831
2832 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2833 wxDash* dashes;
2834 int count = self->GetDashes(&dashes);
2835 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2836 PyObject* retval = PyList_New(0);
2837 for (int x=0; x<count; x++) {
2838 PyObject* pyint = PyInt_FromLong(dashes[x]);
2839 PyList_Append(retval, pyint);
2840 Py_DECREF(pyint);
2841 }
2842 wxPyEndBlockThreads(blocked);
2843 return retval;
2844 }
2845 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2846 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2847 int size = PyList_Size(pyDashes);
2848 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2849
2850 // black magic warning! The array of wxDashes needs to exist as
2851 // long as the pen does because wxPen does not copy the array. So
2852 // stick a copy in a Python string object and attach it to _self,
2853 // and then call SetDashes with a pointer to that array. Then
2854 // when the Python pen object is destroyed the array will be
2855 // cleaned up too.
2856 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2857 PyObject_SetAttrString(_self, "_dashes", strDashes);
2858
2859 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2860 delete [] dashes;
2861 Py_DECREF(strDashes);
2862 wxPyEndBlockThreads(blocked);
2863 }
2864 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2865 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2866
2867 #include <wx/image.h>
2868
2869 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2870 char** cArray = NULL;
2871 int count;
2872
2873 if (!PyList_Check(listOfStrings)) {
2874 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2875 return NULL;
2876 }
2877 count = PyList_Size(listOfStrings);
2878 cArray = new char*[count];
2879
2880 for(int x=0; x<count; x++) {
2881 // TODO: Need some validation and error checking here
2882 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2883 }
2884 return cArray;
2885 }
2886
2887
2888 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2889 char** cArray = NULL;
2890 wxBitmap* bmp;
2891
2892 cArray = ConvertListOfStrings(listOfStrings);
2893 if (! cArray)
2894 return NULL;
2895 bmp = new wxBitmap(cArray);
2896 delete [] cArray;
2897 return bmp;
2898 }
2899 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2900 char* buf;
2901 int length;
2902 PyString_AsStringAndSize(bits, &buf, &length);
2903 return new wxBitmap(buf, width, height, depth);
2904 }
2905 SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2906 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2907 wxSize size(self->GetWidth(), self->GetHeight());
2908 return size;
2909 }
2910 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2911 wxMask *mask = new wxMask(*self, colour);
2912 self->SetMask(mask);
2913 }
2914 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2915 self->SetWidth(size.x);
2916 self->SetHeight(size.y);
2917 }
2918 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2919 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2920 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
2921 if ( !colour.Ok() )
2922 return new wxMask(bitmap, *wxBLACK);
2923 else
2924 return new wxMask(bitmap, colour);
2925 }
2926
2927 #include <wx/iconbndl.h>
2928
2929 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
2930 wxIcon* icon = new wxIcon();
2931 icon->CopyFromBitmap(bmp);
2932 return icon;
2933 }
2934 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
2935 char** cArray = NULL;
2936 wxIcon* icon;
2937
2938 cArray = ConvertListOfStrings(listOfStrings);
2939 if (! cArray)
2940 return NULL;
2941 icon = new wxIcon(cArray);
2942 delete [] cArray;
2943 return icon;
2944 }
2945 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2946 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2947
2948 return new wxIconLocation(*filename, num);
2949
2950
2951
2952 }
2953 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2954
2955 self->SetIndex(num);
2956
2957
2958
2959 }
2960 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
2961
2962 return self->GetIndex();
2963
2964
2965
2966 }
2967 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2968 #ifdef __WXGTK__
2969 wxImage img(cursorName, type);
2970 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2971 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2972 return new wxCursor(img);
2973 #else
2974 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
2975 #endif
2976 }
2977 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2978
2979
2980 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
2981 (*self) ++;
2982 }
2983 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
2984 return self->operator bool();
2985 }
2986
2987 #include <wx/fontutil.h>
2988 #include <wx/fontmap.h>
2989 #include <wx/fontenum.h>
2990
2991
2992 SWIGINTERN int
2993 SWIG_AsVal_bool (PyObject *obj, bool *val)
2994 {
2995 if (obj == Py_True) {
2996 if (val) *val = true;
2997 return SWIG_OK;
2998 } else if (obj == Py_False) {
2999 if (val) *val = false;
3000 return SWIG_OK;
3001 } else {
3002 long v = 0;
3003 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
3004 if (SWIG_IsOK(res) && val) *val = v ? true : false;
3005 return res;
3006 }
3007 }
3008
3009 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3010 return self->ToString();
3011 }
3012
3013 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3014 { wxPyRaiseNotImplemented(); return NULL; }
3015
3016 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3017 { wxPyRaiseNotImplemented(); return false; }
3018
3019
3020 SWIGINTERNINLINE PyObject *
3021 SWIG_From_size_t (size_t value)
3022 {
3023 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3024 }
3025
3026
3027 SWIGINTERNINLINE int
3028 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3029 {
3030 unsigned long v;
3031 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3032 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3033 return res;
3034 }
3035
3036 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3037 wxFontEncoding alt_enc;
3038 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3039 return PyInt_FromLong(alt_enc);
3040 else {
3041 Py_INCREF(Py_None);
3042 return Py_None;
3043 }
3044 }
3045 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3046 wxNativeFontInfo nfi;
3047 nfi.FromString(info);
3048 return new wxFont(nfi);
3049 }
3050 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3051 return wxFont::New(pointSize, family, flags, face, encoding);
3052 }
3053 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3054 return wxFontBase::New(pixelSize, family,
3055 style, weight, underlined,
3056 face, encoding);
3057 }
3058 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3059 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3060 }
3061 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3062 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3063
3064 class wxPyFontEnumerator : public wxFontEnumerator {
3065 public:
3066 wxPyFontEnumerator() {}
3067 ~wxPyFontEnumerator() {}
3068
3069 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3070 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3071
3072 PYPRIVATE;
3073 };
3074
3075 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3076 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3077
3078
3079 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
3080 PyObject* ret;
3081 wxArrayString* arr = self->GetEncodings();
3082 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3083 if (arr)
3084 ret = wxArrayString2PyList_helper(*arr);
3085 else
3086 ret = PyList_New(0);
3087 wxPyEndBlockThreads(blocked);
3088 return ret;
3089 }
3090 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
3091 PyObject* ret;
3092 wxArrayString* arr = self->GetFacenames();
3093 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3094 if (arr)
3095 ret = wxArrayString2PyList_helper(*arr);
3096 else
3097 ret = PyList_New(0);
3098 wxPyEndBlockThreads(blocked);
3099 return ret;
3100 }
3101
3102 #include <locale.h>
3103
3104 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3105 wxLocale* loc;
3106 if (language == -1)
3107 loc = new wxLocale();
3108 else
3109 loc = new wxLocale(language, flags);
3110 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3111 // for the floating point conversions and such to work right.
3112 #if PY_VERSION_HEX < 0x02040000
3113 setlocale(LC_NUMERIC, "C");
3114 #endif
3115 return loc;
3116 }
3117 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3118 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3119 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3120 // for the floating point conversions and such to work right.
3121 #if PY_VERSION_HEX < 0x02040000
3122 setlocale(LC_NUMERIC, "C");
3123 #endif
3124 return rc;
3125 }
3126 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3127 bool rc = self->Init(language, flags);
3128 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3129 // for the floating point conversions and such to work right.
3130 #if PY_VERSION_HEX < 0x02040000
3131 setlocale(LC_NUMERIC, "C");
3132 #endif
3133 return rc;
3134 }
3135
3136 #include "wx/wxPython/pydrawxxx.h"
3137
3138 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3139 wxColour col;
3140 self->GetPixel(x, y, &col);
3141 return col;
3142 }
3143 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3144 wxColour col;
3145 self->GetPixel(pt, &col);
3146 return col;
3147 }
3148
3149 SWIGINTERN int
3150 SWIG_AsVal_double (PyObject *obj, double* val)
3151 {
3152 if (PyNumber_Check(obj)) {
3153 if (val) *val = PyFloat_AsDouble(obj);
3154 return SWIG_OK;
3155 }
3156 return SWIG_TypeError;
3157 }
3158
3159 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3160 wxRect rv;
3161 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3162 return rv;
3163 }
3164 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3165 wxRect rect;
3166 self->GetClippingBox(rect);
3167 return rect;
3168 }
3169 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3170 wxArrayInt widths;
3171 self->GetPartialTextExtents(text, widths);
3172 return widths;
3173 }
3174
3175 #define SWIG_From_double PyFloat_FromDouble
3176
3177 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3178 self->SetLogicalOrigin(point.x, point.y);
3179 }
3180 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3181 self->SetDeviceOrigin(point.x, point.y);
3182 }
3183 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3184 self->CalcBoundingBox(point.x, point.y);
3185 }
3186 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3187 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3188 }
3189 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3190 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3191 }
3192 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3193 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3194 }
3195 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3196 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3197 }
3198 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3199 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3200 }
3201 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3202 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3203 }
3204
3205 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3206 *x1 = dc->MinX();
3207 *y1 = dc->MinY();
3208 *x2 = dc->MaxX();
3209 *y2 = dc->MaxY();
3210 }
3211
3212
3213 #include <wx/dcbuffer.h>
3214
3215
3216 #include <wx/dcps.h>
3217
3218
3219 #include <wx/metafile.h>
3220
3221
3222
3223 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3224 self->AddColour(name, wxColour(red, green, blue));
3225 }
3226
3227 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3228 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3229 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3230 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3231
3232
3233 #include <wx/effects.h>
3234
3235
3236 #include "wx/renderer.h"
3237
3238
3239 SWIGINTERNINLINE PyObject*
3240 SWIG_From_bool (bool value)
3241 {
3242 return PyBool_FromLong(value ? 1 : 0);
3243 }
3244
3245 #ifdef __cplusplus
3246 extern "C" {
3247 #endif
3248 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3249 PyObject *resultobj = 0;
3250 wxGDIObject *result = 0 ;
3251
3252 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3253 {
3254 if (!wxPyCheckForApp()) SWIG_fail;
3255 PyThreadState* __tstate = wxPyBeginAllowThreads();
3256 result = (wxGDIObject *)new wxGDIObject();
3257 wxPyEndAllowThreads(__tstate);
3258 if (PyErr_Occurred()) SWIG_fail;
3259 }
3260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3261 return resultobj;
3262 fail:
3263 return NULL;
3264 }
3265
3266
3267 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3268 PyObject *resultobj = 0;
3269 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3270 void *argp1 = 0 ;
3271 int res1 = 0 ;
3272 PyObject *swig_obj[1] ;
3273
3274 if (!args) SWIG_fail;
3275 swig_obj[0] = args;
3276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3277 if (!SWIG_IsOK(res1)) {
3278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3279 }
3280 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3281 {
3282 PyThreadState* __tstate = wxPyBeginAllowThreads();
3283 delete arg1;
3284
3285 wxPyEndAllowThreads(__tstate);
3286 if (PyErr_Occurred()) SWIG_fail;
3287 }
3288 resultobj = SWIG_Py_Void();
3289 return resultobj;
3290 fail:
3291 return NULL;
3292 }
3293
3294
3295 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3296 PyObject *resultobj = 0;
3297 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3298 bool result;
3299 void *argp1 = 0 ;
3300 int res1 = 0 ;
3301 PyObject *swig_obj[1] ;
3302
3303 if (!args) SWIG_fail;
3304 swig_obj[0] = args;
3305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3306 if (!SWIG_IsOK(res1)) {
3307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3308 }
3309 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3310 {
3311 PyThreadState* __tstate = wxPyBeginAllowThreads();
3312 result = (bool)(arg1)->IsNull();
3313 wxPyEndAllowThreads(__tstate);
3314 if (PyErr_Occurred()) SWIG_fail;
3315 }
3316 {
3317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3318 }
3319 return resultobj;
3320 fail:
3321 return NULL;
3322 }
3323
3324
3325 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3326 PyObject *obj;
3327 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3328 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3329 return SWIG_Py_Void();
3330 }
3331
3332 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3333 return SWIG_Python_InitShadowInstance(args);
3334 }
3335
3336 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3337 PyObject *resultobj = 0;
3338 byte arg1 = (byte) 0 ;
3339 byte arg2 = (byte) 0 ;
3340 byte arg3 = (byte) 0 ;
3341 wxColour *result = 0 ;
3342 unsigned char val1 ;
3343 int ecode1 = 0 ;
3344 unsigned char val2 ;
3345 int ecode2 = 0 ;
3346 unsigned char val3 ;
3347 int ecode3 = 0 ;
3348 PyObject * obj0 = 0 ;
3349 PyObject * obj1 = 0 ;
3350 PyObject * obj2 = 0 ;
3351 char * kwnames[] = {
3352 (char *) "red",(char *) "green",(char *) "blue", NULL
3353 };
3354
3355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3356 if (obj0) {
3357 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3358 if (!SWIG_IsOK(ecode1)) {
3359 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3360 }
3361 arg1 = static_cast< byte >(val1);
3362 }
3363 if (obj1) {
3364 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3365 if (!SWIG_IsOK(ecode2)) {
3366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3367 }
3368 arg2 = static_cast< byte >(val2);
3369 }
3370 if (obj2) {
3371 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3372 if (!SWIG_IsOK(ecode3)) {
3373 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3374 }
3375 arg3 = static_cast< byte >(val3);
3376 }
3377 {
3378 PyThreadState* __tstate = wxPyBeginAllowThreads();
3379 result = (wxColour *)new wxColour(arg1,arg2,arg3);
3380 wxPyEndAllowThreads(__tstate);
3381 if (PyErr_Occurred()) SWIG_fail;
3382 }
3383 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3384 return resultobj;
3385 fail:
3386 return NULL;
3387 }
3388
3389
3390 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3391 PyObject *resultobj = 0;
3392 wxString *arg1 = 0 ;
3393 wxColour *result = 0 ;
3394 bool temp1 = false ;
3395 PyObject * obj0 = 0 ;
3396 char * kwnames[] = {
3397 (char *) "colorName", NULL
3398 };
3399
3400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3401 {
3402 arg1 = wxString_in_helper(obj0);
3403 if (arg1 == NULL) SWIG_fail;
3404 temp1 = true;
3405 }
3406 {
3407 if (!wxPyCheckForApp()) SWIG_fail;
3408 PyThreadState* __tstate = wxPyBeginAllowThreads();
3409 result = (wxColour *)new wxColour((wxString const &)*arg1);
3410 wxPyEndAllowThreads(__tstate);
3411 if (PyErr_Occurred()) SWIG_fail;
3412 }
3413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3414 {
3415 if (temp1)
3416 delete arg1;
3417 }
3418 return resultobj;
3419 fail:
3420 {
3421 if (temp1)
3422 delete arg1;
3423 }
3424 return NULL;
3425 }
3426
3427
3428 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3429 PyObject *resultobj = 0;
3430 unsigned long arg1 ;
3431 wxColour *result = 0 ;
3432 unsigned long val1 ;
3433 int ecode1 = 0 ;
3434 PyObject * obj0 = 0 ;
3435 char * kwnames[] = {
3436 (char *) "colRGB", NULL
3437 };
3438
3439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3440 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3441 if (!SWIG_IsOK(ecode1)) {
3442 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3443 }
3444 arg1 = static_cast< unsigned long >(val1);
3445 {
3446 PyThreadState* __tstate = wxPyBeginAllowThreads();
3447 result = (wxColour *)new wxColour(arg1);
3448 wxPyEndAllowThreads(__tstate);
3449 if (PyErr_Occurred()) SWIG_fail;
3450 }
3451 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3452 return resultobj;
3453 fail:
3454 return NULL;
3455 }
3456
3457
3458 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3459 PyObject *resultobj = 0;
3460 wxColour *arg1 = (wxColour *) 0 ;
3461 void *argp1 = 0 ;
3462 int res1 = 0 ;
3463 PyObject *swig_obj[1] ;
3464
3465 if (!args) SWIG_fail;
3466 swig_obj[0] = args;
3467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3468 if (!SWIG_IsOK(res1)) {
3469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3470 }
3471 arg1 = reinterpret_cast< wxColour * >(argp1);
3472 {
3473 PyThreadState* __tstate = wxPyBeginAllowThreads();
3474 delete arg1;
3475
3476 wxPyEndAllowThreads(__tstate);
3477 if (PyErr_Occurred()) SWIG_fail;
3478 }
3479 resultobj = SWIG_Py_Void();
3480 return resultobj;
3481 fail:
3482 return NULL;
3483 }
3484
3485
3486 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3487 PyObject *resultobj = 0;
3488 wxColour *arg1 = (wxColour *) 0 ;
3489 byte result;
3490 void *argp1 = 0 ;
3491 int res1 = 0 ;
3492 PyObject *swig_obj[1] ;
3493
3494 if (!args) SWIG_fail;
3495 swig_obj[0] = args;
3496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3497 if (!SWIG_IsOK(res1)) {
3498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3499 }
3500 arg1 = reinterpret_cast< wxColour * >(argp1);
3501 {
3502 PyThreadState* __tstate = wxPyBeginAllowThreads();
3503 result = (byte)(arg1)->Red();
3504 wxPyEndAllowThreads(__tstate);
3505 if (PyErr_Occurred()) SWIG_fail;
3506 }
3507 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3508 return resultobj;
3509 fail:
3510 return NULL;
3511 }
3512
3513
3514 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3515 PyObject *resultobj = 0;
3516 wxColour *arg1 = (wxColour *) 0 ;
3517 byte result;
3518 void *argp1 = 0 ;
3519 int res1 = 0 ;
3520 PyObject *swig_obj[1] ;
3521
3522 if (!args) SWIG_fail;
3523 swig_obj[0] = args;
3524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3525 if (!SWIG_IsOK(res1)) {
3526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3527 }
3528 arg1 = reinterpret_cast< wxColour * >(argp1);
3529 {
3530 PyThreadState* __tstate = wxPyBeginAllowThreads();
3531 result = (byte)(arg1)->Green();
3532 wxPyEndAllowThreads(__tstate);
3533 if (PyErr_Occurred()) SWIG_fail;
3534 }
3535 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3536 return resultobj;
3537 fail:
3538 return NULL;
3539 }
3540
3541
3542 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3543 PyObject *resultobj = 0;
3544 wxColour *arg1 = (wxColour *) 0 ;
3545 byte result;
3546 void *argp1 = 0 ;
3547 int res1 = 0 ;
3548 PyObject *swig_obj[1] ;
3549
3550 if (!args) SWIG_fail;
3551 swig_obj[0] = args;
3552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3553 if (!SWIG_IsOK(res1)) {
3554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3555 }
3556 arg1 = reinterpret_cast< wxColour * >(argp1);
3557 {
3558 PyThreadState* __tstate = wxPyBeginAllowThreads();
3559 result = (byte)(arg1)->Blue();
3560 wxPyEndAllowThreads(__tstate);
3561 if (PyErr_Occurred()) SWIG_fail;
3562 }
3563 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3564 return resultobj;
3565 fail:
3566 return NULL;
3567 }
3568
3569
3570 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3571 PyObject *resultobj = 0;
3572 wxColour *arg1 = (wxColour *) 0 ;
3573 bool result;
3574 void *argp1 = 0 ;
3575 int res1 = 0 ;
3576 PyObject *swig_obj[1] ;
3577
3578 if (!args) SWIG_fail;
3579 swig_obj[0] = args;
3580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3581 if (!SWIG_IsOK(res1)) {
3582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3583 }
3584 arg1 = reinterpret_cast< wxColour * >(argp1);
3585 {
3586 PyThreadState* __tstate = wxPyBeginAllowThreads();
3587 result = (bool)(arg1)->Ok();
3588 wxPyEndAllowThreads(__tstate);
3589 if (PyErr_Occurred()) SWIG_fail;
3590 }
3591 {
3592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3593 }
3594 return resultobj;
3595 fail:
3596 return NULL;
3597 }
3598
3599
3600 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3601 PyObject *resultobj = 0;
3602 wxColour *arg1 = (wxColour *) 0 ;
3603 byte arg2 ;
3604 byte arg3 ;
3605 byte arg4 ;
3606 void *argp1 = 0 ;
3607 int res1 = 0 ;
3608 unsigned char val2 ;
3609 int ecode2 = 0 ;
3610 unsigned char val3 ;
3611 int ecode3 = 0 ;
3612 unsigned char val4 ;
3613 int ecode4 = 0 ;
3614 PyObject * obj0 = 0 ;
3615 PyObject * obj1 = 0 ;
3616 PyObject * obj2 = 0 ;
3617 PyObject * obj3 = 0 ;
3618 char * kwnames[] = {
3619 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3620 };
3621
3622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3624 if (!SWIG_IsOK(res1)) {
3625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3626 }
3627 arg1 = reinterpret_cast< wxColour * >(argp1);
3628 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3629 if (!SWIG_IsOK(ecode2)) {
3630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3631 }
3632 arg2 = static_cast< byte >(val2);
3633 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3634 if (!SWIG_IsOK(ecode3)) {
3635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3636 }
3637 arg3 = static_cast< byte >(val3);
3638 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3639 if (!SWIG_IsOK(ecode4)) {
3640 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3641 }
3642 arg4 = static_cast< byte >(val4);
3643 {
3644 PyThreadState* __tstate = wxPyBeginAllowThreads();
3645 (arg1)->Set(arg2,arg3,arg4);
3646 wxPyEndAllowThreads(__tstate);
3647 if (PyErr_Occurred()) SWIG_fail;
3648 }
3649 resultobj = SWIG_Py_Void();
3650 return resultobj;
3651 fail:
3652 return NULL;
3653 }
3654
3655
3656 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3657 PyObject *resultobj = 0;
3658 wxColour *arg1 = (wxColour *) 0 ;
3659 unsigned long arg2 ;
3660 void *argp1 = 0 ;
3661 int res1 = 0 ;
3662 unsigned long val2 ;
3663 int ecode2 = 0 ;
3664 PyObject * obj0 = 0 ;
3665 PyObject * obj1 = 0 ;
3666 char * kwnames[] = {
3667 (char *) "self",(char *) "colRGB", NULL
3668 };
3669
3670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
3671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3672 if (!SWIG_IsOK(res1)) {
3673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3674 }
3675 arg1 = reinterpret_cast< wxColour * >(argp1);
3676 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
3677 if (!SWIG_IsOK(ecode2)) {
3678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3679 }
3680 arg2 = static_cast< unsigned long >(val2);
3681 {
3682 PyThreadState* __tstate = wxPyBeginAllowThreads();
3683 (arg1)->Set(arg2);
3684 wxPyEndAllowThreads(__tstate);
3685 if (PyErr_Occurred()) SWIG_fail;
3686 }
3687 resultobj = SWIG_Py_Void();
3688 return resultobj;
3689 fail:
3690 return NULL;
3691 }
3692
3693
3694 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3695 PyObject *resultobj = 0;
3696 wxColour *arg1 = (wxColour *) 0 ;
3697 wxString *arg2 = 0 ;
3698 void *argp1 = 0 ;
3699 int res1 = 0 ;
3700 bool temp2 = false ;
3701 PyObject * obj0 = 0 ;
3702 PyObject * obj1 = 0 ;
3703 char * kwnames[] = {
3704 (char *) "self",(char *) "colourName", NULL
3705 };
3706
3707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
3708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3709 if (!SWIG_IsOK(res1)) {
3710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3711 }
3712 arg1 = reinterpret_cast< wxColour * >(argp1);
3713 {
3714 arg2 = wxString_in_helper(obj1);
3715 if (arg2 == NULL) SWIG_fail;
3716 temp2 = true;
3717 }
3718 {
3719 PyThreadState* __tstate = wxPyBeginAllowThreads();
3720 (arg1)->InitFromName((wxString const &)*arg2);
3721 wxPyEndAllowThreads(__tstate);
3722 if (PyErr_Occurred()) SWIG_fail;
3723 }
3724 resultobj = SWIG_Py_Void();
3725 {
3726 if (temp2)
3727 delete arg2;
3728 }
3729 return resultobj;
3730 fail:
3731 {
3732 if (temp2)
3733 delete arg2;
3734 }
3735 return NULL;
3736 }
3737
3738
3739 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3740 PyObject *resultobj = 0;
3741 wxColour *arg1 = (wxColour *) 0 ;
3742 long result;
3743 void *argp1 = 0 ;
3744 int res1 = 0 ;
3745 PyObject *swig_obj[1] ;
3746
3747 if (!args) SWIG_fail;
3748 swig_obj[0] = args;
3749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3750 if (!SWIG_IsOK(res1)) {
3751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3752 }
3753 arg1 = reinterpret_cast< wxColour * >(argp1);
3754 {
3755 PyThreadState* __tstate = wxPyBeginAllowThreads();
3756 result = (long)((wxColour const *)arg1)->GetPixel();
3757 wxPyEndAllowThreads(__tstate);
3758 if (PyErr_Occurred()) SWIG_fail;
3759 }
3760 resultobj = SWIG_From_long(static_cast< long >(result));
3761 return resultobj;
3762 fail:
3763 return NULL;
3764 }
3765
3766
3767 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3768 PyObject *resultobj = 0;
3769 wxColour *arg1 = (wxColour *) 0 ;
3770 PyObject *arg2 = (PyObject *) 0 ;
3771 bool result;
3772 void *argp1 = 0 ;
3773 int res1 = 0 ;
3774 PyObject * obj0 = 0 ;
3775 PyObject * obj1 = 0 ;
3776 char * kwnames[] = {
3777 (char *) "self",(char *) "other", NULL
3778 };
3779
3780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3782 if (!SWIG_IsOK(res1)) {
3783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
3784 }
3785 arg1 = reinterpret_cast< wxColour * >(argp1);
3786 arg2 = obj1;
3787 {
3788 result = (bool)wxColour___eq__(arg1,arg2);
3789 if (PyErr_Occurred()) SWIG_fail;
3790 }
3791 {
3792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3793 }
3794 return resultobj;
3795 fail:
3796 return NULL;
3797 }
3798
3799
3800 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3801 PyObject *resultobj = 0;
3802 wxColour *arg1 = (wxColour *) 0 ;
3803 PyObject *arg2 = (PyObject *) 0 ;
3804 bool result;
3805 void *argp1 = 0 ;
3806 int res1 = 0 ;
3807 PyObject * obj0 = 0 ;
3808 PyObject * obj1 = 0 ;
3809 char * kwnames[] = {
3810 (char *) "self",(char *) "other", NULL
3811 };
3812
3813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
3814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3815 if (!SWIG_IsOK(res1)) {
3816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
3817 }
3818 arg1 = reinterpret_cast< wxColour * >(argp1);
3819 arg2 = obj1;
3820 {
3821 result = (bool)wxColour___ne__(arg1,arg2);
3822 if (PyErr_Occurred()) SWIG_fail;
3823 }
3824 {
3825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3826 }
3827 return resultobj;
3828 fail:
3829 return NULL;
3830 }
3831
3832
3833 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3834 PyObject *resultobj = 0;
3835 wxColour *arg1 = (wxColour *) 0 ;
3836 PyObject *result = 0 ;
3837 void *argp1 = 0 ;
3838 int res1 = 0 ;
3839 PyObject *swig_obj[1] ;
3840
3841 if (!args) SWIG_fail;
3842 swig_obj[0] = args;
3843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3844 if (!SWIG_IsOK(res1)) {
3845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
3846 }
3847 arg1 = reinterpret_cast< wxColour * >(argp1);
3848 {
3849 PyThreadState* __tstate = wxPyBeginAllowThreads();
3850 result = (PyObject *)wxColour_Get(arg1);
3851 wxPyEndAllowThreads(__tstate);
3852 if (PyErr_Occurred()) SWIG_fail;
3853 }
3854 resultobj = result;
3855 return resultobj;
3856 fail:
3857 return NULL;
3858 }
3859
3860
3861 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3862 PyObject *resultobj = 0;
3863 wxColour *arg1 = (wxColour *) 0 ;
3864 unsigned long result;
3865 void *argp1 = 0 ;
3866 int res1 = 0 ;
3867 PyObject *swig_obj[1] ;
3868
3869 if (!args) SWIG_fail;
3870 swig_obj[0] = args;
3871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3872 if (!SWIG_IsOK(res1)) {
3873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3874 }
3875 arg1 = reinterpret_cast< wxColour * >(argp1);
3876 {
3877 PyThreadState* __tstate = wxPyBeginAllowThreads();
3878 result = (unsigned long)wxColour_GetRGB(arg1);
3879 wxPyEndAllowThreads(__tstate);
3880 if (PyErr_Occurred()) SWIG_fail;
3881 }
3882 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
3883 return resultobj;
3884 fail:
3885 return NULL;
3886 }
3887
3888
3889 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3890 PyObject *obj;
3891 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3892 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
3893 return SWIG_Py_Void();
3894 }
3895
3896 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3897 return SWIG_Python_InitShadowInstance(args);
3898 }
3899
3900 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3901 PyObject *resultobj = 0;
3902 int arg1 ;
3903 unsigned char *arg2 = (unsigned char *) 0 ;
3904 unsigned char *arg3 = (unsigned char *) 0 ;
3905 unsigned char *arg4 = (unsigned char *) 0 ;
3906 wxPalette *result = 0 ;
3907 int val1 ;
3908 int ecode1 = 0 ;
3909 void *argp2 = 0 ;
3910 int res2 = 0 ;
3911 void *argp3 = 0 ;
3912 int res3 = 0 ;
3913 void *argp4 = 0 ;
3914 int res4 = 0 ;
3915 PyObject * obj0 = 0 ;
3916 PyObject * obj1 = 0 ;
3917 PyObject * obj2 = 0 ;
3918 PyObject * obj3 = 0 ;
3919 char * kwnames[] = {
3920 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3921 };
3922
3923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3924 ecode1 = SWIG_AsVal_int(obj0, &val1);
3925 if (!SWIG_IsOK(ecode1)) {
3926 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
3927 }
3928 arg1 = static_cast< int >(val1);
3929 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
3930 if (!SWIG_IsOK(res2)) {
3931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
3932 }
3933 arg2 = reinterpret_cast< unsigned char * >(argp2);
3934 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
3935 if (!SWIG_IsOK(res3)) {
3936 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
3937 }
3938 arg3 = reinterpret_cast< unsigned char * >(argp3);
3939 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
3940 if (!SWIG_IsOK(res4)) {
3941 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
3942 }
3943 arg4 = reinterpret_cast< unsigned char * >(argp4);
3944 {
3945 if (!wxPyCheckForApp()) SWIG_fail;
3946 PyThreadState* __tstate = wxPyBeginAllowThreads();
3947 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
3948 wxPyEndAllowThreads(__tstate);
3949 if (PyErr_Occurred()) SWIG_fail;
3950 }
3951 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
3952 return resultobj;
3953 fail:
3954 return NULL;
3955 }
3956
3957
3958 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3959 PyObject *resultobj = 0;
3960 wxPalette *arg1 = (wxPalette *) 0 ;
3961 void *argp1 = 0 ;
3962 int res1 = 0 ;
3963 PyObject *swig_obj[1] ;
3964
3965 if (!args) SWIG_fail;
3966 swig_obj[0] = args;
3967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
3968 if (!SWIG_IsOK(res1)) {
3969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
3970 }
3971 arg1 = reinterpret_cast< wxPalette * >(argp1);
3972 {
3973 PyThreadState* __tstate = wxPyBeginAllowThreads();
3974 delete arg1;
3975
3976 wxPyEndAllowThreads(__tstate);
3977 if (PyErr_Occurred()) SWIG_fail;
3978 }
3979 resultobj = SWIG_Py_Void();
3980 return resultobj;
3981 fail:
3982 return NULL;
3983 }
3984
3985
3986 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3987 PyObject *resultobj = 0;
3988 wxPalette *arg1 = (wxPalette *) 0 ;
3989 byte arg2 ;
3990 byte arg3 ;
3991 byte arg4 ;
3992 int result;
3993 void *argp1 = 0 ;
3994 int res1 = 0 ;
3995 unsigned char val2 ;
3996 int ecode2 = 0 ;
3997 unsigned char val3 ;
3998 int ecode3 = 0 ;
3999 unsigned char val4 ;
4000 int ecode4 = 0 ;
4001 PyObject * obj0 = 0 ;
4002 PyObject * obj1 = 0 ;
4003 PyObject * obj2 = 0 ;
4004 PyObject * obj3 = 0 ;
4005 char * kwnames[] = {
4006 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4007 };
4008
4009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4011 if (!SWIG_IsOK(res1)) {
4012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4013 }
4014 arg1 = reinterpret_cast< wxPalette * >(argp1);
4015 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4016 if (!SWIG_IsOK(ecode2)) {
4017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4018 }
4019 arg2 = static_cast< byte >(val2);
4020 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4021 if (!SWIG_IsOK(ecode3)) {
4022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4023 }
4024 arg3 = static_cast< byte >(val3);
4025 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4026 if (!SWIG_IsOK(ecode4)) {
4027 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4028 }
4029 arg4 = static_cast< byte >(val4);
4030 {
4031 PyThreadState* __tstate = wxPyBeginAllowThreads();
4032 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4033 wxPyEndAllowThreads(__tstate);
4034 if (PyErr_Occurred()) SWIG_fail;
4035 }
4036 resultobj = SWIG_From_int(static_cast< int >(result));
4037 return resultobj;
4038 fail:
4039 return NULL;
4040 }
4041
4042
4043 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4044 PyObject *resultobj = 0;
4045 wxPalette *arg1 = (wxPalette *) 0 ;
4046 int arg2 ;
4047 byte *arg3 = (byte *) 0 ;
4048 byte *arg4 = (byte *) 0 ;
4049 byte *arg5 = (byte *) 0 ;
4050 bool result;
4051 void *argp1 = 0 ;
4052 int res1 = 0 ;
4053 int val2 ;
4054 int ecode2 = 0 ;
4055 byte temp3 ;
4056 int res3 = SWIG_TMPOBJ ;
4057 byte temp4 ;
4058 int res4 = SWIG_TMPOBJ ;
4059 byte temp5 ;
4060 int res5 = SWIG_TMPOBJ ;
4061 PyObject * obj0 = 0 ;
4062 PyObject * obj1 = 0 ;
4063 char * kwnames[] = {
4064 (char *) "self",(char *) "pixel", NULL
4065 };
4066
4067 arg3 = &temp3;
4068 arg4 = &temp4;
4069 arg5 = &temp5;
4070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4072 if (!SWIG_IsOK(res1)) {
4073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4074 }
4075 arg1 = reinterpret_cast< wxPalette * >(argp1);
4076 ecode2 = SWIG_AsVal_int(obj1, &val2);
4077 if (!SWIG_IsOK(ecode2)) {
4078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4079 }
4080 arg2 = static_cast< int >(val2);
4081 {
4082 PyThreadState* __tstate = wxPyBeginAllowThreads();
4083 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4084 wxPyEndAllowThreads(__tstate);
4085 if (PyErr_Occurred()) SWIG_fail;
4086 }
4087 {
4088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4089 }
4090 if (SWIG_IsTmpObj(res3)) {
4091 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4092 } else {
4093 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4094 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4095 }
4096 if (SWIG_IsTmpObj(res4)) {
4097 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4098 } else {
4099 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4100 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4101 }
4102 if (SWIG_IsTmpObj(res5)) {
4103 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4104 } else {
4105 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4106 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4107 }
4108 return resultobj;
4109 fail:
4110 return NULL;
4111 }
4112
4113
4114 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4115 PyObject *resultobj = 0;
4116 wxPalette *arg1 = (wxPalette *) 0 ;
4117 int result;
4118 void *argp1 = 0 ;
4119 int res1 = 0 ;
4120 PyObject *swig_obj[1] ;
4121
4122 if (!args) SWIG_fail;
4123 swig_obj[0] = args;
4124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4125 if (!SWIG_IsOK(res1)) {
4126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4127 }
4128 arg1 = reinterpret_cast< wxPalette * >(argp1);
4129 {
4130 PyThreadState* __tstate = wxPyBeginAllowThreads();
4131 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4132 wxPyEndAllowThreads(__tstate);
4133 if (PyErr_Occurred()) SWIG_fail;
4134 }
4135 resultobj = SWIG_From_int(static_cast< int >(result));
4136 return resultobj;
4137 fail:
4138 return NULL;
4139 }
4140
4141
4142 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4143 PyObject *resultobj = 0;
4144 wxPalette *arg1 = (wxPalette *) 0 ;
4145 bool result;
4146 void *argp1 = 0 ;
4147 int res1 = 0 ;
4148 PyObject *swig_obj[1] ;
4149
4150 if (!args) SWIG_fail;
4151 swig_obj[0] = args;
4152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4153 if (!SWIG_IsOK(res1)) {
4154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4155 }
4156 arg1 = reinterpret_cast< wxPalette * >(argp1);
4157 {
4158 PyThreadState* __tstate = wxPyBeginAllowThreads();
4159 result = (bool)(arg1)->Ok();
4160 wxPyEndAllowThreads(__tstate);
4161 if (PyErr_Occurred()) SWIG_fail;
4162 }
4163 {
4164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4165 }
4166 return resultobj;
4167 fail:
4168 return NULL;
4169 }
4170
4171
4172 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4173 PyObject *obj;
4174 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4175 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4176 return SWIG_Py_Void();
4177 }
4178
4179 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4180 return SWIG_Python_InitShadowInstance(args);
4181 }
4182
4183 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4184 PyObject *resultobj = 0;
4185 wxColour *arg1 = 0 ;
4186 int arg2 = (int) 1 ;
4187 int arg3 = (int) wxSOLID ;
4188 wxPen *result = 0 ;
4189 wxColour temp1 ;
4190 int val2 ;
4191 int ecode2 = 0 ;
4192 int val3 ;
4193 int ecode3 = 0 ;
4194 PyObject * obj0 = 0 ;
4195 PyObject * obj1 = 0 ;
4196 PyObject * obj2 = 0 ;
4197 char * kwnames[] = {
4198 (char *) "colour",(char *) "width",(char *) "style", NULL
4199 };
4200
4201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4202 {
4203 arg1 = &temp1;
4204 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4205 }
4206 if (obj1) {
4207 ecode2 = SWIG_AsVal_int(obj1, &val2);
4208 if (!SWIG_IsOK(ecode2)) {
4209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4210 }
4211 arg2 = static_cast< int >(val2);
4212 }
4213 if (obj2) {
4214 ecode3 = SWIG_AsVal_int(obj2, &val3);
4215 if (!SWIG_IsOK(ecode3)) {
4216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4217 }
4218 arg3 = static_cast< int >(val3);
4219 }
4220 {
4221 if (!wxPyCheckForApp()) SWIG_fail;
4222 PyThreadState* __tstate = wxPyBeginAllowThreads();
4223 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4224 wxPyEndAllowThreads(__tstate);
4225 if (PyErr_Occurred()) SWIG_fail;
4226 }
4227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4228 return resultobj;
4229 fail:
4230 return NULL;
4231 }
4232
4233
4234 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4235 PyObject *resultobj = 0;
4236 wxPen *arg1 = (wxPen *) 0 ;
4237 void *argp1 = 0 ;
4238 int res1 = 0 ;
4239 PyObject *swig_obj[1] ;
4240
4241 if (!args) SWIG_fail;
4242 swig_obj[0] = args;
4243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4244 if (!SWIG_IsOK(res1)) {
4245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4246 }
4247 arg1 = reinterpret_cast< wxPen * >(argp1);
4248 {
4249 PyThreadState* __tstate = wxPyBeginAllowThreads();
4250 delete arg1;
4251
4252 wxPyEndAllowThreads(__tstate);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 resultobj = SWIG_Py_Void();
4256 return resultobj;
4257 fail:
4258 return NULL;
4259 }
4260
4261
4262 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4263 PyObject *resultobj = 0;
4264 wxPen *arg1 = (wxPen *) 0 ;
4265 int result;
4266 void *argp1 = 0 ;
4267 int res1 = 0 ;
4268 PyObject *swig_obj[1] ;
4269
4270 if (!args) SWIG_fail;
4271 swig_obj[0] = args;
4272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4273 if (!SWIG_IsOK(res1)) {
4274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4275 }
4276 arg1 = reinterpret_cast< wxPen * >(argp1);
4277 {
4278 PyThreadState* __tstate = wxPyBeginAllowThreads();
4279 result = (int)(arg1)->GetCap();
4280 wxPyEndAllowThreads(__tstate);
4281 if (PyErr_Occurred()) SWIG_fail;
4282 }
4283 resultobj = SWIG_From_int(static_cast< int >(result));
4284 return resultobj;
4285 fail:
4286 return NULL;
4287 }
4288
4289
4290 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4291 PyObject *resultobj = 0;
4292 wxPen *arg1 = (wxPen *) 0 ;
4293 wxColour result;
4294 void *argp1 = 0 ;
4295 int res1 = 0 ;
4296 PyObject *swig_obj[1] ;
4297
4298 if (!args) SWIG_fail;
4299 swig_obj[0] = args;
4300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4301 if (!SWIG_IsOK(res1)) {
4302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4303 }
4304 arg1 = reinterpret_cast< wxPen * >(argp1);
4305 {
4306 PyThreadState* __tstate = wxPyBeginAllowThreads();
4307 result = (arg1)->GetColour();
4308 wxPyEndAllowThreads(__tstate);
4309 if (PyErr_Occurred()) SWIG_fail;
4310 }
4311 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4312 return resultobj;
4313 fail:
4314 return NULL;
4315 }
4316
4317
4318 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4319 PyObject *resultobj = 0;
4320 wxPen *arg1 = (wxPen *) 0 ;
4321 int result;
4322 void *argp1 = 0 ;
4323 int res1 = 0 ;
4324 PyObject *swig_obj[1] ;
4325
4326 if (!args) SWIG_fail;
4327 swig_obj[0] = args;
4328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4329 if (!SWIG_IsOK(res1)) {
4330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4331 }
4332 arg1 = reinterpret_cast< wxPen * >(argp1);
4333 {
4334 PyThreadState* __tstate = wxPyBeginAllowThreads();
4335 result = (int)(arg1)->GetJoin();
4336 wxPyEndAllowThreads(__tstate);
4337 if (PyErr_Occurred()) SWIG_fail;
4338 }
4339 resultobj = SWIG_From_int(static_cast< int >(result));
4340 return resultobj;
4341 fail:
4342 return NULL;
4343 }
4344
4345
4346 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4347 PyObject *resultobj = 0;
4348 wxPen *arg1 = (wxPen *) 0 ;
4349 int result;
4350 void *argp1 = 0 ;
4351 int res1 = 0 ;
4352 PyObject *swig_obj[1] ;
4353
4354 if (!args) SWIG_fail;
4355 swig_obj[0] = args;
4356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4357 if (!SWIG_IsOK(res1)) {
4358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4359 }
4360 arg1 = reinterpret_cast< wxPen * >(argp1);
4361 {
4362 PyThreadState* __tstate = wxPyBeginAllowThreads();
4363 result = (int)(arg1)->GetStyle();
4364 wxPyEndAllowThreads(__tstate);
4365 if (PyErr_Occurred()) SWIG_fail;
4366 }
4367 resultobj = SWIG_From_int(static_cast< int >(result));
4368 return resultobj;
4369 fail:
4370 return NULL;
4371 }
4372
4373
4374 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4375 PyObject *resultobj = 0;
4376 wxPen *arg1 = (wxPen *) 0 ;
4377 int result;
4378 void *argp1 = 0 ;
4379 int res1 = 0 ;
4380 PyObject *swig_obj[1] ;
4381
4382 if (!args) SWIG_fail;
4383 swig_obj[0] = args;
4384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4385 if (!SWIG_IsOK(res1)) {
4386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4387 }
4388 arg1 = reinterpret_cast< wxPen * >(argp1);
4389 {
4390 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391 result = (int)(arg1)->GetWidth();
4392 wxPyEndAllowThreads(__tstate);
4393 if (PyErr_Occurred()) SWIG_fail;
4394 }
4395 resultobj = SWIG_From_int(static_cast< int >(result));
4396 return resultobj;
4397 fail:
4398 return NULL;
4399 }
4400
4401
4402 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4403 PyObject *resultobj = 0;
4404 wxPen *arg1 = (wxPen *) 0 ;
4405 bool result;
4406 void *argp1 = 0 ;
4407 int res1 = 0 ;
4408 PyObject *swig_obj[1] ;
4409
4410 if (!args) SWIG_fail;
4411 swig_obj[0] = args;
4412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4413 if (!SWIG_IsOK(res1)) {
4414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4415 }
4416 arg1 = reinterpret_cast< wxPen * >(argp1);
4417 {
4418 PyThreadState* __tstate = wxPyBeginAllowThreads();
4419 result = (bool)(arg1)->Ok();
4420 wxPyEndAllowThreads(__tstate);
4421 if (PyErr_Occurred()) SWIG_fail;
4422 }
4423 {
4424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4425 }
4426 return resultobj;
4427 fail:
4428 return NULL;
4429 }
4430
4431
4432 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4433 PyObject *resultobj = 0;
4434 wxPen *arg1 = (wxPen *) 0 ;
4435 int arg2 ;
4436 void *argp1 = 0 ;
4437 int res1 = 0 ;
4438 int val2 ;
4439 int ecode2 = 0 ;
4440 PyObject * obj0 = 0 ;
4441 PyObject * obj1 = 0 ;
4442 char * kwnames[] = {
4443 (char *) "self",(char *) "cap_style", NULL
4444 };
4445
4446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4448 if (!SWIG_IsOK(res1)) {
4449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4450 }
4451 arg1 = reinterpret_cast< wxPen * >(argp1);
4452 ecode2 = SWIG_AsVal_int(obj1, &val2);
4453 if (!SWIG_IsOK(ecode2)) {
4454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4455 }
4456 arg2 = static_cast< int >(val2);
4457 {
4458 PyThreadState* __tstate = wxPyBeginAllowThreads();
4459 (arg1)->SetCap(arg2);
4460 wxPyEndAllowThreads(__tstate);
4461 if (PyErr_Occurred()) SWIG_fail;
4462 }
4463 resultobj = SWIG_Py_Void();
4464 return resultobj;
4465 fail:
4466 return NULL;
4467 }
4468
4469
4470 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4471 PyObject *resultobj = 0;
4472 wxPen *arg1 = (wxPen *) 0 ;
4473 wxColour *arg2 = 0 ;
4474 void *argp1 = 0 ;
4475 int res1 = 0 ;
4476 wxColour temp2 ;
4477 PyObject * obj0 = 0 ;
4478 PyObject * obj1 = 0 ;
4479 char * kwnames[] = {
4480 (char *) "self",(char *) "colour", NULL
4481 };
4482
4483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4485 if (!SWIG_IsOK(res1)) {
4486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4487 }
4488 arg1 = reinterpret_cast< wxPen * >(argp1);
4489 {
4490 arg2 = &temp2;
4491 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4492 }
4493 {
4494 PyThreadState* __tstate = wxPyBeginAllowThreads();
4495 (arg1)->SetColour(*arg2);
4496 wxPyEndAllowThreads(__tstate);
4497 if (PyErr_Occurred()) SWIG_fail;
4498 }
4499 resultobj = SWIG_Py_Void();
4500 return resultobj;
4501 fail:
4502 return NULL;
4503 }
4504
4505
4506 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4507 PyObject *resultobj = 0;
4508 wxPen *arg1 = (wxPen *) 0 ;
4509 int arg2 ;
4510 void *argp1 = 0 ;
4511 int res1 = 0 ;
4512 int val2 ;
4513 int ecode2 = 0 ;
4514 PyObject * obj0 = 0 ;
4515 PyObject * obj1 = 0 ;
4516 char * kwnames[] = {
4517 (char *) "self",(char *) "join_style", NULL
4518 };
4519
4520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4522 if (!SWIG_IsOK(res1)) {
4523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4524 }
4525 arg1 = reinterpret_cast< wxPen * >(argp1);
4526 ecode2 = SWIG_AsVal_int(obj1, &val2);
4527 if (!SWIG_IsOK(ecode2)) {
4528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4529 }
4530 arg2 = static_cast< int >(val2);
4531 {
4532 PyThreadState* __tstate = wxPyBeginAllowThreads();
4533 (arg1)->SetJoin(arg2);
4534 wxPyEndAllowThreads(__tstate);
4535 if (PyErr_Occurred()) SWIG_fail;
4536 }
4537 resultobj = SWIG_Py_Void();
4538 return resultobj;
4539 fail:
4540 return NULL;
4541 }
4542
4543
4544 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4545 PyObject *resultobj = 0;
4546 wxPen *arg1 = (wxPen *) 0 ;
4547 int arg2 ;
4548 void *argp1 = 0 ;
4549 int res1 = 0 ;
4550 int val2 ;
4551 int ecode2 = 0 ;
4552 PyObject * obj0 = 0 ;
4553 PyObject * obj1 = 0 ;
4554 char * kwnames[] = {
4555 (char *) "self",(char *) "style", NULL
4556 };
4557
4558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4560 if (!SWIG_IsOK(res1)) {
4561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4562 }
4563 arg1 = reinterpret_cast< wxPen * >(argp1);
4564 ecode2 = SWIG_AsVal_int(obj1, &val2);
4565 if (!SWIG_IsOK(ecode2)) {
4566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4567 }
4568 arg2 = static_cast< int >(val2);
4569 {
4570 PyThreadState* __tstate = wxPyBeginAllowThreads();
4571 (arg1)->SetStyle(arg2);
4572 wxPyEndAllowThreads(__tstate);
4573 if (PyErr_Occurred()) SWIG_fail;
4574 }
4575 resultobj = SWIG_Py_Void();
4576 return resultobj;
4577 fail:
4578 return NULL;
4579 }
4580
4581
4582 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4583 PyObject *resultobj = 0;
4584 wxPen *arg1 = (wxPen *) 0 ;
4585 int arg2 ;
4586 void *argp1 = 0 ;
4587 int res1 = 0 ;
4588 int val2 ;
4589 int ecode2 = 0 ;
4590 PyObject * obj0 = 0 ;
4591 PyObject * obj1 = 0 ;
4592 char * kwnames[] = {
4593 (char *) "self",(char *) "width", NULL
4594 };
4595
4596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
4597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4598 if (!SWIG_IsOK(res1)) {
4599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4600 }
4601 arg1 = reinterpret_cast< wxPen * >(argp1);
4602 ecode2 = SWIG_AsVal_int(obj1, &val2);
4603 if (!SWIG_IsOK(ecode2)) {
4604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
4605 }
4606 arg2 = static_cast< int >(val2);
4607 {
4608 PyThreadState* __tstate = wxPyBeginAllowThreads();
4609 (arg1)->SetWidth(arg2);
4610 wxPyEndAllowThreads(__tstate);
4611 if (PyErr_Occurred()) SWIG_fail;
4612 }
4613 resultobj = SWIG_Py_Void();
4614 return resultobj;
4615 fail:
4616 return NULL;
4617 }
4618
4619
4620 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4621 PyObject *resultobj = 0;
4622 wxPen *arg1 = (wxPen *) 0 ;
4623 int arg2 ;
4624 wxDash *arg3 = (wxDash *) 0 ;
4625 void *argp1 = 0 ;
4626 int res1 = 0 ;
4627 PyObject * obj0 = 0 ;
4628 PyObject * obj1 = 0 ;
4629 char * kwnames[] = {
4630 (char *) "self",(char *) "dashes", NULL
4631 };
4632
4633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
4634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4635 if (!SWIG_IsOK(res1)) {
4636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4637 }
4638 arg1 = reinterpret_cast< wxPen * >(argp1);
4639 {
4640 arg2 = PyList_Size(obj1);
4641 arg3 = (wxDash*)byte_LIST_helper(obj1);
4642 if (arg3 == NULL) SWIG_fail;
4643 }
4644 {
4645 PyThreadState* __tstate = wxPyBeginAllowThreads();
4646 (arg1)->SetDashes(arg2,arg3);
4647 wxPyEndAllowThreads(__tstate);
4648 if (PyErr_Occurred()) SWIG_fail;
4649 }
4650 resultobj = SWIG_Py_Void();
4651 {
4652 if (arg3) delete [] arg3;
4653 }
4654 return resultobj;
4655 fail:
4656 {
4657 if (arg3) delete [] arg3;
4658 }
4659 return NULL;
4660 }
4661
4662
4663 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4664 PyObject *resultobj = 0;
4665 wxPen *arg1 = (wxPen *) 0 ;
4666 PyObject *result = 0 ;
4667 void *argp1 = 0 ;
4668 int res1 = 0 ;
4669 PyObject *swig_obj[1] ;
4670
4671 if (!args) SWIG_fail;
4672 swig_obj[0] = args;
4673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4674 if (!SWIG_IsOK(res1)) {
4675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4676 }
4677 arg1 = reinterpret_cast< wxPen * >(argp1);
4678 {
4679 PyThreadState* __tstate = wxPyBeginAllowThreads();
4680 result = (PyObject *)wxPen_GetDashes(arg1);
4681 wxPyEndAllowThreads(__tstate);
4682 if (PyErr_Occurred()) SWIG_fail;
4683 }
4684 resultobj = result;
4685 return resultobj;
4686 fail:
4687 return NULL;
4688 }
4689
4690
4691 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4692 PyObject *resultobj = 0;
4693 wxPen *arg1 = (wxPen *) 0 ;
4694 PyObject *arg2 = (PyObject *) 0 ;
4695 PyObject *arg3 = (PyObject *) 0 ;
4696 void *argp1 = 0 ;
4697 int res1 = 0 ;
4698 PyObject * obj0 = 0 ;
4699 PyObject * obj1 = 0 ;
4700 PyObject * obj2 = 0 ;
4701 char * kwnames[] = {
4702 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
4703 };
4704
4705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4707 if (!SWIG_IsOK(res1)) {
4708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4709 }
4710 arg1 = reinterpret_cast< wxPen * >(argp1);
4711 arg2 = obj1;
4712 arg3 = obj2;
4713 {
4714 PyThreadState* __tstate = wxPyBeginAllowThreads();
4715 wxPen__SetDashes(arg1,arg2,arg3);
4716 wxPyEndAllowThreads(__tstate);
4717 if (PyErr_Occurred()) SWIG_fail;
4718 }
4719 resultobj = SWIG_Py_Void();
4720 return resultobj;
4721 fail:
4722 return NULL;
4723 }
4724
4725
4726 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4727 PyObject *resultobj = 0;
4728 wxPen *arg1 = (wxPen *) 0 ;
4729 int result;
4730 void *argp1 = 0 ;
4731 int res1 = 0 ;
4732 PyObject *swig_obj[1] ;
4733
4734 if (!args) SWIG_fail;
4735 swig_obj[0] = args;
4736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4737 if (!SWIG_IsOK(res1)) {
4738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
4739 }
4740 arg1 = reinterpret_cast< wxPen * >(argp1);
4741 {
4742 PyThreadState* __tstate = wxPyBeginAllowThreads();
4743 result = (int)((wxPen const *)arg1)->GetDashCount();
4744 wxPyEndAllowThreads(__tstate);
4745 if (PyErr_Occurred()) SWIG_fail;
4746 }
4747 resultobj = SWIG_From_int(static_cast< int >(result));
4748 return resultobj;
4749 fail:
4750 return NULL;
4751 }
4752
4753
4754 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4755 PyObject *resultobj = 0;
4756 wxPen *arg1 = (wxPen *) 0 ;
4757 wxBitmap *result = 0 ;
4758 void *argp1 = 0 ;
4759 int res1 = 0 ;
4760 PyObject *swig_obj[1] ;
4761
4762 if (!args) SWIG_fail;
4763 swig_obj[0] = args;
4764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4765 if (!SWIG_IsOK(res1)) {
4766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
4767 }
4768 arg1 = reinterpret_cast< wxPen * >(argp1);
4769 {
4770 PyThreadState* __tstate = wxPyBeginAllowThreads();
4771 result = (wxBitmap *)(arg1)->GetStipple();
4772 wxPyEndAllowThreads(__tstate);
4773 if (PyErr_Occurred()) SWIG_fail;
4774 }
4775 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
4776 return resultobj;
4777 fail:
4778 return NULL;
4779 }
4780
4781
4782 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4783 PyObject *resultobj = 0;
4784 wxPen *arg1 = (wxPen *) 0 ;
4785 wxBitmap *arg2 = 0 ;
4786 void *argp1 = 0 ;
4787 int res1 = 0 ;
4788 void *argp2 = 0 ;
4789 int res2 = 0 ;
4790 PyObject * obj0 = 0 ;
4791 PyObject * obj1 = 0 ;
4792 char * kwnames[] = {
4793 (char *) "self",(char *) "stipple", NULL
4794 };
4795
4796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
4797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4798 if (!SWIG_IsOK(res1)) {
4799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
4800 }
4801 arg1 = reinterpret_cast< wxPen * >(argp1);
4802 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
4803 if (!SWIG_IsOK(res2)) {
4804 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
4805 }
4806 if (!argp2) {
4807 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
4808 }
4809 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4810 {
4811 PyThreadState* __tstate = wxPyBeginAllowThreads();
4812 (arg1)->SetStipple(*arg2);
4813 wxPyEndAllowThreads(__tstate);
4814 if (PyErr_Occurred()) SWIG_fail;
4815 }
4816 resultobj = SWIG_Py_Void();
4817 return resultobj;
4818 fail:
4819 return NULL;
4820 }
4821
4822
4823 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4824 PyObject *resultobj = 0;
4825 wxPen *arg1 = (wxPen *) 0 ;
4826 wxPen *arg2 = (wxPen *) 0 ;
4827 bool result;
4828 void *argp1 = 0 ;
4829 int res1 = 0 ;
4830 void *argp2 = 0 ;
4831 int res2 = 0 ;
4832 PyObject * obj0 = 0 ;
4833 PyObject * obj1 = 0 ;
4834 char * kwnames[] = {
4835 (char *) "self",(char *) "other", NULL
4836 };
4837
4838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4840 if (!SWIG_IsOK(res1)) {
4841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
4842 }
4843 arg1 = reinterpret_cast< wxPen * >(argp1);
4844 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4845 if (!SWIG_IsOK(res2)) {
4846 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
4847 }
4848 arg2 = reinterpret_cast< wxPen * >(argp2);
4849 {
4850 PyThreadState* __tstate = wxPyBeginAllowThreads();
4851 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
4852 wxPyEndAllowThreads(__tstate);
4853 if (PyErr_Occurred()) SWIG_fail;
4854 }
4855 {
4856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4857 }
4858 return resultobj;
4859 fail:
4860 return NULL;
4861 }
4862
4863
4864 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4865 PyObject *resultobj = 0;
4866 wxPen *arg1 = (wxPen *) 0 ;
4867 wxPen *arg2 = (wxPen *) 0 ;
4868 bool result;
4869 void *argp1 = 0 ;
4870 int res1 = 0 ;
4871 void *argp2 = 0 ;
4872 int res2 = 0 ;
4873 PyObject * obj0 = 0 ;
4874 PyObject * obj1 = 0 ;
4875 char * kwnames[] = {
4876 (char *) "self",(char *) "other", NULL
4877 };
4878
4879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4881 if (!SWIG_IsOK(res1)) {
4882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
4883 }
4884 arg1 = reinterpret_cast< wxPen * >(argp1);
4885 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4886 if (!SWIG_IsOK(res2)) {
4887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
4888 }
4889 arg2 = reinterpret_cast< wxPen * >(argp2);
4890 {
4891 PyThreadState* __tstate = wxPyBeginAllowThreads();
4892 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
4893 wxPyEndAllowThreads(__tstate);
4894 if (PyErr_Occurred()) SWIG_fail;
4895 }
4896 {
4897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4898 }
4899 return resultobj;
4900 fail:
4901 return NULL;
4902 }
4903
4904
4905 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4906 PyObject *obj;
4907 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4908 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
4909 return SWIG_Py_Void();
4910 }
4911
4912 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4913 return SWIG_Python_InitShadowInstance(args);
4914 }
4915
4916 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4917 PyObject *resultobj = 0;
4918 wxColour *arg1 = 0 ;
4919 int arg2 = (int) wxSOLID ;
4920 wxBrush *result = 0 ;
4921 wxColour temp1 ;
4922 int val2 ;
4923 int ecode2 = 0 ;
4924 PyObject * obj0 = 0 ;
4925 PyObject * obj1 = 0 ;
4926 char * kwnames[] = {
4927 (char *) "colour",(char *) "style", NULL
4928 };
4929
4930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
4931 {
4932 arg1 = &temp1;
4933 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4934 }
4935 if (obj1) {
4936 ecode2 = SWIG_AsVal_int(obj1, &val2);
4937 if (!SWIG_IsOK(ecode2)) {
4938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
4939 }
4940 arg2 = static_cast< int >(val2);
4941 }
4942 {
4943 if (!wxPyCheckForApp()) SWIG_fail;
4944 PyThreadState* __tstate = wxPyBeginAllowThreads();
4945 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
4946 wxPyEndAllowThreads(__tstate);
4947 if (PyErr_Occurred()) SWIG_fail;
4948 }
4949 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
4950 return resultobj;
4951 fail:
4952 return NULL;
4953 }
4954
4955
4956 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4957 PyObject *resultobj = 0;
4958 wxBitmap *arg1 = 0 ;
4959 wxBrush *result = 0 ;
4960 void *argp1 = 0 ;
4961 int res1 = 0 ;
4962 PyObject * obj0 = 0 ;
4963 char * kwnames[] = {
4964 (char *) "stippleBitmap", NULL
4965 };
4966
4967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
4968 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
4969 if (!SWIG_IsOK(res1)) {
4970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4971 }
4972 if (!argp1) {
4973 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4974 }
4975 arg1 = reinterpret_cast< wxBitmap * >(argp1);
4976 {
4977 if (!wxPyCheckForApp()) SWIG_fail;
4978 PyThreadState* __tstate = wxPyBeginAllowThreads();
4979 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
4980 wxPyEndAllowThreads(__tstate);
4981 if (PyErr_Occurred()) SWIG_fail;
4982 }
4983 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
4984 return resultobj;
4985 fail:
4986 return NULL;
4987 }
4988
4989
4990 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4991 PyObject *resultobj = 0;
4992 wxBrush *arg1 = (wxBrush *) 0 ;
4993 void *argp1 = 0 ;
4994 int res1 = 0 ;
4995 PyObject *swig_obj[1] ;
4996
4997 if (!args) SWIG_fail;
4998 swig_obj[0] = args;
4999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5000 if (!SWIG_IsOK(res1)) {
5001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5002 }
5003 arg1 = reinterpret_cast< wxBrush * >(argp1);
5004 {
5005 PyThreadState* __tstate = wxPyBeginAllowThreads();
5006 delete arg1;
5007
5008 wxPyEndAllowThreads(__tstate);
5009 if (PyErr_Occurred()) SWIG_fail;
5010 }
5011 resultobj = SWIG_Py_Void();
5012 return resultobj;
5013 fail:
5014 return NULL;
5015 }
5016
5017
5018 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5019 PyObject *resultobj = 0;
5020 wxBrush *arg1 = (wxBrush *) 0 ;
5021 wxColour *arg2 = 0 ;
5022 void *argp1 = 0 ;
5023 int res1 = 0 ;
5024 wxColour temp2 ;
5025 PyObject * obj0 = 0 ;
5026 PyObject * obj1 = 0 ;
5027 char * kwnames[] = {
5028 (char *) "self",(char *) "col", NULL
5029 };
5030
5031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5033 if (!SWIG_IsOK(res1)) {
5034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5035 }
5036 arg1 = reinterpret_cast< wxBrush * >(argp1);
5037 {
5038 arg2 = &temp2;
5039 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5040 }
5041 {
5042 PyThreadState* __tstate = wxPyBeginAllowThreads();
5043 (arg1)->SetColour((wxColour const &)*arg2);
5044 wxPyEndAllowThreads(__tstate);
5045 if (PyErr_Occurred()) SWIG_fail;
5046 }
5047 resultobj = SWIG_Py_Void();
5048 return resultobj;
5049 fail:
5050 return NULL;
5051 }
5052
5053
5054 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5055 PyObject *resultobj = 0;
5056 wxBrush *arg1 = (wxBrush *) 0 ;
5057 int arg2 ;
5058 void *argp1 = 0 ;
5059 int res1 = 0 ;
5060 int val2 ;
5061 int ecode2 = 0 ;
5062 PyObject * obj0 = 0 ;
5063 PyObject * obj1 = 0 ;
5064 char * kwnames[] = {
5065 (char *) "self",(char *) "style", NULL
5066 };
5067
5068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5070 if (!SWIG_IsOK(res1)) {
5071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5072 }
5073 arg1 = reinterpret_cast< wxBrush * >(argp1);
5074 ecode2 = SWIG_AsVal_int(obj1, &val2);
5075 if (!SWIG_IsOK(ecode2)) {
5076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5077 }
5078 arg2 = static_cast< int >(val2);
5079 {
5080 PyThreadState* __tstate = wxPyBeginAllowThreads();
5081 (arg1)->SetStyle(arg2);
5082 wxPyEndAllowThreads(__tstate);
5083 if (PyErr_Occurred()) SWIG_fail;
5084 }
5085 resultobj = SWIG_Py_Void();
5086 return resultobj;
5087 fail:
5088 return NULL;
5089 }
5090
5091
5092 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5093 PyObject *resultobj = 0;
5094 wxBrush *arg1 = (wxBrush *) 0 ;
5095 wxBitmap *arg2 = 0 ;
5096 void *argp1 = 0 ;
5097 int res1 = 0 ;
5098 void *argp2 = 0 ;
5099 int res2 = 0 ;
5100 PyObject * obj0 = 0 ;
5101 PyObject * obj1 = 0 ;
5102 char * kwnames[] = {
5103 (char *) "self",(char *) "stipple", NULL
5104 };
5105
5106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5108 if (!SWIG_IsOK(res1)) {
5109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5110 }
5111 arg1 = reinterpret_cast< wxBrush * >(argp1);
5112 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5113 if (!SWIG_IsOK(res2)) {
5114 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5115 }
5116 if (!argp2) {
5117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5118 }
5119 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5120 {
5121 PyThreadState* __tstate = wxPyBeginAllowThreads();
5122 (arg1)->SetStipple((wxBitmap const &)*arg2);
5123 wxPyEndAllowThreads(__tstate);
5124 if (PyErr_Occurred()) SWIG_fail;
5125 }
5126 resultobj = SWIG_Py_Void();
5127 return resultobj;
5128 fail:
5129 return NULL;
5130 }
5131
5132
5133 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5134 PyObject *resultobj = 0;
5135 wxBrush *arg1 = (wxBrush *) 0 ;
5136 wxColour result;
5137 void *argp1 = 0 ;
5138 int res1 = 0 ;
5139 PyObject *swig_obj[1] ;
5140
5141 if (!args) SWIG_fail;
5142 swig_obj[0] = args;
5143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5144 if (!SWIG_IsOK(res1)) {
5145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5146 }
5147 arg1 = reinterpret_cast< wxBrush * >(argp1);
5148 {
5149 PyThreadState* __tstate = wxPyBeginAllowThreads();
5150 result = ((wxBrush const *)arg1)->GetColour();
5151 wxPyEndAllowThreads(__tstate);
5152 if (PyErr_Occurred()) SWIG_fail;
5153 }
5154 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5155 return resultobj;
5156 fail:
5157 return NULL;
5158 }
5159
5160
5161 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5162 PyObject *resultobj = 0;
5163 wxBrush *arg1 = (wxBrush *) 0 ;
5164 int result;
5165 void *argp1 = 0 ;
5166 int res1 = 0 ;
5167 PyObject *swig_obj[1] ;
5168
5169 if (!args) SWIG_fail;
5170 swig_obj[0] = args;
5171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5172 if (!SWIG_IsOK(res1)) {
5173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5174 }
5175 arg1 = reinterpret_cast< wxBrush * >(argp1);
5176 {
5177 PyThreadState* __tstate = wxPyBeginAllowThreads();
5178 result = (int)((wxBrush const *)arg1)->GetStyle();
5179 wxPyEndAllowThreads(__tstate);
5180 if (PyErr_Occurred()) SWIG_fail;
5181 }
5182 resultobj = SWIG_From_int(static_cast< int >(result));
5183 return resultobj;
5184 fail:
5185 return NULL;
5186 }
5187
5188
5189 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5190 PyObject *resultobj = 0;
5191 wxBrush *arg1 = (wxBrush *) 0 ;
5192 wxBitmap *result = 0 ;
5193 void *argp1 = 0 ;
5194 int res1 = 0 ;
5195 PyObject *swig_obj[1] ;
5196
5197 if (!args) SWIG_fail;
5198 swig_obj[0] = args;
5199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5200 if (!SWIG_IsOK(res1)) {
5201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5202 }
5203 arg1 = reinterpret_cast< wxBrush * >(argp1);
5204 {
5205 PyThreadState* __tstate = wxPyBeginAllowThreads();
5206 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5207 wxPyEndAllowThreads(__tstate);
5208 if (PyErr_Occurred()) SWIG_fail;
5209 }
5210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5211 return resultobj;
5212 fail:
5213 return NULL;
5214 }
5215
5216
5217 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5218 PyObject *resultobj = 0;
5219 wxBrush *arg1 = (wxBrush *) 0 ;
5220 bool result;
5221 void *argp1 = 0 ;
5222 int res1 = 0 ;
5223 PyObject *swig_obj[1] ;
5224
5225 if (!args) SWIG_fail;
5226 swig_obj[0] = args;
5227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5228 if (!SWIG_IsOK(res1)) {
5229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5230 }
5231 arg1 = reinterpret_cast< wxBrush * >(argp1);
5232 {
5233 PyThreadState* __tstate = wxPyBeginAllowThreads();
5234 result = (bool)((wxBrush const *)arg1)->IsHatch();
5235 wxPyEndAllowThreads(__tstate);
5236 if (PyErr_Occurred()) SWIG_fail;
5237 }
5238 {
5239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5240 }
5241 return resultobj;
5242 fail:
5243 return NULL;
5244 }
5245
5246
5247 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5248 PyObject *resultobj = 0;
5249 wxBrush *arg1 = (wxBrush *) 0 ;
5250 bool result;
5251 void *argp1 = 0 ;
5252 int res1 = 0 ;
5253 PyObject *swig_obj[1] ;
5254
5255 if (!args) SWIG_fail;
5256 swig_obj[0] = args;
5257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5258 if (!SWIG_IsOK(res1)) {
5259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5260 }
5261 arg1 = reinterpret_cast< wxBrush * >(argp1);
5262 {
5263 PyThreadState* __tstate = wxPyBeginAllowThreads();
5264 result = (bool)(arg1)->Ok();
5265 wxPyEndAllowThreads(__tstate);
5266 if (PyErr_Occurred()) SWIG_fail;
5267 }
5268 {
5269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5270 }
5271 return resultobj;
5272 fail:
5273 return NULL;
5274 }
5275
5276
5277 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5278 PyObject *obj;
5279 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5280 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5281 return SWIG_Py_Void();
5282 }
5283
5284 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5285 return SWIG_Python_InitShadowInstance(args);
5286 }
5287
5288 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5289 PyObject *resultobj = 0;
5290 wxString *arg1 = 0 ;
5291 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5292 wxBitmap *result = 0 ;
5293 bool temp1 = false ;
5294 int val2 ;
5295 int ecode2 = 0 ;
5296 PyObject * obj0 = 0 ;
5297 PyObject * obj1 = 0 ;
5298 char * kwnames[] = {
5299 (char *) "name",(char *) "type", NULL
5300 };
5301
5302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5303 {
5304 arg1 = wxString_in_helper(obj0);
5305 if (arg1 == NULL) SWIG_fail;
5306 temp1 = true;
5307 }
5308 if (obj1) {
5309 ecode2 = SWIG_AsVal_int(obj1, &val2);
5310 if (!SWIG_IsOK(ecode2)) {
5311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5312 }
5313 arg2 = static_cast< wxBitmapType >(val2);
5314 }
5315 {
5316 if (!wxPyCheckForApp()) SWIG_fail;
5317 PyThreadState* __tstate = wxPyBeginAllowThreads();
5318 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5319 wxPyEndAllowThreads(__tstate);
5320 if (PyErr_Occurred()) SWIG_fail;
5321 }
5322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5323 {
5324 if (temp1)
5325 delete arg1;
5326 }
5327 return resultobj;
5328 fail:
5329 {
5330 if (temp1)
5331 delete arg1;
5332 }
5333 return NULL;
5334 }
5335
5336
5337 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5338 PyObject *resultobj = 0;
5339 wxBitmap *arg1 = (wxBitmap *) 0 ;
5340 void *argp1 = 0 ;
5341 int res1 = 0 ;
5342 PyObject *swig_obj[1] ;
5343
5344 if (!args) SWIG_fail;
5345 swig_obj[0] = args;
5346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5347 if (!SWIG_IsOK(res1)) {
5348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5349 }
5350 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5351 {
5352 PyThreadState* __tstate = wxPyBeginAllowThreads();
5353 delete arg1;
5354
5355 wxPyEndAllowThreads(__tstate);
5356 if (PyErr_Occurred()) SWIG_fail;
5357 }
5358 resultobj = SWIG_Py_Void();
5359 return resultobj;
5360 fail:
5361 return NULL;
5362 }
5363
5364
5365 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5366 PyObject *resultobj = 0;
5367 int arg1 ;
5368 int arg2 ;
5369 int arg3 = (int) -1 ;
5370 wxBitmap *result = 0 ;
5371 int val1 ;
5372 int ecode1 = 0 ;
5373 int val2 ;
5374 int ecode2 = 0 ;
5375 int val3 ;
5376 int ecode3 = 0 ;
5377 PyObject * obj0 = 0 ;
5378 PyObject * obj1 = 0 ;
5379 PyObject * obj2 = 0 ;
5380 char * kwnames[] = {
5381 (char *) "width",(char *) "height",(char *) "depth", NULL
5382 };
5383
5384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5385 ecode1 = SWIG_AsVal_int(obj0, &val1);
5386 if (!SWIG_IsOK(ecode1)) {
5387 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5388 }
5389 arg1 = static_cast< int >(val1);
5390 ecode2 = SWIG_AsVal_int(obj1, &val2);
5391 if (!SWIG_IsOK(ecode2)) {
5392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5393 }
5394 arg2 = static_cast< int >(val2);
5395 if (obj2) {
5396 ecode3 = SWIG_AsVal_int(obj2, &val3);
5397 if (!SWIG_IsOK(ecode3)) {
5398 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5399 }
5400 arg3 = static_cast< int >(val3);
5401 }
5402 {
5403 if (!wxPyCheckForApp()) SWIG_fail;
5404 PyThreadState* __tstate = wxPyBeginAllowThreads();
5405 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5406 wxPyEndAllowThreads(__tstate);
5407 if (PyErr_Occurred()) SWIG_fail;
5408 }
5409 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5410 return resultobj;
5411 fail:
5412 return NULL;
5413 }
5414
5415
5416 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5417 PyObject *resultobj = 0;
5418 wxIcon *arg1 = 0 ;
5419 wxBitmap *result = 0 ;
5420 void *argp1 = 0 ;
5421 int res1 = 0 ;
5422 PyObject * obj0 = 0 ;
5423 char * kwnames[] = {
5424 (char *) "icon", NULL
5425 };
5426
5427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5428 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5429 if (!SWIG_IsOK(res1)) {
5430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5431 }
5432 if (!argp1) {
5433 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5434 }
5435 arg1 = reinterpret_cast< wxIcon * >(argp1);
5436 {
5437 if (!wxPyCheckForApp()) SWIG_fail;
5438 PyThreadState* __tstate = wxPyBeginAllowThreads();
5439 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5440 wxPyEndAllowThreads(__tstate);
5441 if (PyErr_Occurred()) SWIG_fail;
5442 }
5443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5444 return resultobj;
5445 fail:
5446 return NULL;
5447 }
5448
5449
5450 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5451 PyObject *resultobj = 0;
5452 wxImage *arg1 = 0 ;
5453 int arg2 = (int) -1 ;
5454 wxBitmap *result = 0 ;
5455 void *argp1 = 0 ;
5456 int res1 = 0 ;
5457 int val2 ;
5458 int ecode2 = 0 ;
5459 PyObject * obj0 = 0 ;
5460 PyObject * obj1 = 0 ;
5461 char * kwnames[] = {
5462 (char *) "image",(char *) "depth", NULL
5463 };
5464
5465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5466 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5467 if (!SWIG_IsOK(res1)) {
5468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5469 }
5470 if (!argp1) {
5471 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5472 }
5473 arg1 = reinterpret_cast< wxImage * >(argp1);
5474 if (obj1) {
5475 ecode2 = SWIG_AsVal_int(obj1, &val2);
5476 if (!SWIG_IsOK(ecode2)) {
5477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5478 }
5479 arg2 = static_cast< int >(val2);
5480 }
5481 {
5482 if (!wxPyCheckForApp()) SWIG_fail;
5483 PyThreadState* __tstate = wxPyBeginAllowThreads();
5484 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5485 wxPyEndAllowThreads(__tstate);
5486 if (PyErr_Occurred()) SWIG_fail;
5487 }
5488 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5489 return resultobj;
5490 fail:
5491 return NULL;
5492 }
5493
5494
5495 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5496 PyObject *resultobj = 0;
5497 PyObject *arg1 = (PyObject *) 0 ;
5498 wxBitmap *result = 0 ;
5499 PyObject * obj0 = 0 ;
5500 char * kwnames[] = {
5501 (char *) "listOfStrings", NULL
5502 };
5503
5504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5505 arg1 = obj0;
5506 {
5507 if (!wxPyCheckForApp()) SWIG_fail;
5508 PyThreadState* __tstate = wxPyBeginAllowThreads();
5509 result = (wxBitmap *)new_wxBitmap(arg1);
5510 wxPyEndAllowThreads(__tstate);
5511 if (PyErr_Occurred()) SWIG_fail;
5512 }
5513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5514 return resultobj;
5515 fail:
5516 return NULL;
5517 }
5518
5519
5520 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5521 PyObject *resultobj = 0;
5522 PyObject *arg1 = (PyObject *) 0 ;
5523 int arg2 ;
5524 int arg3 ;
5525 int arg4 = (int) 1 ;
5526 wxBitmap *result = 0 ;
5527 int val2 ;
5528 int ecode2 = 0 ;
5529 int val3 ;
5530 int ecode3 = 0 ;
5531 int val4 ;
5532 int ecode4 = 0 ;
5533 PyObject * obj0 = 0 ;
5534 PyObject * obj1 = 0 ;
5535 PyObject * obj2 = 0 ;
5536 PyObject * obj3 = 0 ;
5537 char * kwnames[] = {
5538 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5539 };
5540
5541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5542 arg1 = obj0;
5543 ecode2 = SWIG_AsVal_int(obj1, &val2);
5544 if (!SWIG_IsOK(ecode2)) {
5545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5546 }
5547 arg2 = static_cast< int >(val2);
5548 ecode3 = SWIG_AsVal_int(obj2, &val3);
5549 if (!SWIG_IsOK(ecode3)) {
5550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5551 }
5552 arg3 = static_cast< int >(val3);
5553 if (obj3) {
5554 ecode4 = SWIG_AsVal_int(obj3, &val4);
5555 if (!SWIG_IsOK(ecode4)) {
5556 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5557 }
5558 arg4 = static_cast< int >(val4);
5559 }
5560 {
5561 if (!wxPyCheckForApp()) SWIG_fail;
5562 PyThreadState* __tstate = wxPyBeginAllowThreads();
5563 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5564 wxPyEndAllowThreads(__tstate);
5565 if (PyErr_Occurred()) SWIG_fail;
5566 }
5567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5568 return resultobj;
5569 fail:
5570 return NULL;
5571 }
5572
5573
5574 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5575 PyObject *resultobj = 0;
5576 wxBitmap *arg1 = (wxBitmap *) 0 ;
5577 long result;
5578 void *argp1 = 0 ;
5579 int res1 = 0 ;
5580 PyObject *swig_obj[1] ;
5581
5582 if (!args) SWIG_fail;
5583 swig_obj[0] = args;
5584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5585 if (!SWIG_IsOK(res1)) {
5586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
5587 }
5588 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5589 {
5590 PyThreadState* __tstate = wxPyBeginAllowThreads();
5591 result = (long)(arg1)->GetHandle();
5592 wxPyEndAllowThreads(__tstate);
5593 if (PyErr_Occurred()) SWIG_fail;
5594 }
5595 resultobj = SWIG_From_long(static_cast< long >(result));
5596 return resultobj;
5597 fail:
5598 return NULL;
5599 }
5600
5601
5602 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5603 PyObject *resultobj = 0;
5604 wxBitmap *arg1 = (wxBitmap *) 0 ;
5605 long arg2 ;
5606 void *argp1 = 0 ;
5607 int res1 = 0 ;
5608 long val2 ;
5609 int ecode2 = 0 ;
5610 PyObject * obj0 = 0 ;
5611 PyObject * obj1 = 0 ;
5612 char * kwnames[] = {
5613 (char *) "self",(char *) "handle", NULL
5614 };
5615
5616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
5617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5618 if (!SWIG_IsOK(res1)) {
5619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
5620 }
5621 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5622 ecode2 = SWIG_AsVal_long(obj1, &val2);
5623 if (!SWIG_IsOK(ecode2)) {
5624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
5625 }
5626 arg2 = static_cast< long >(val2);
5627 {
5628 PyThreadState* __tstate = wxPyBeginAllowThreads();
5629 wxBitmap_SetHandle(arg1,arg2);
5630 wxPyEndAllowThreads(__tstate);
5631 if (PyErr_Occurred()) SWIG_fail;
5632 }
5633 resultobj = SWIG_Py_Void();
5634 return resultobj;
5635 fail:
5636 return NULL;
5637 }
5638
5639
5640 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5641 PyObject *resultobj = 0;
5642 wxBitmap *arg1 = (wxBitmap *) 0 ;
5643 bool result;
5644 void *argp1 = 0 ;
5645 int res1 = 0 ;
5646 PyObject *swig_obj[1] ;
5647
5648 if (!args) SWIG_fail;
5649 swig_obj[0] = args;
5650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5651 if (!SWIG_IsOK(res1)) {
5652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5653 }
5654 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5655 {
5656 PyThreadState* __tstate = wxPyBeginAllowThreads();
5657 result = (bool)(arg1)->Ok();
5658 wxPyEndAllowThreads(__tstate);
5659 if (PyErr_Occurred()) SWIG_fail;
5660 }
5661 {
5662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5663 }
5664 return resultobj;
5665 fail:
5666 return NULL;
5667 }
5668
5669
5670 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5671 PyObject *resultobj = 0;
5672 wxBitmap *arg1 = (wxBitmap *) 0 ;
5673 int result;
5674 void *argp1 = 0 ;
5675 int res1 = 0 ;
5676 PyObject *swig_obj[1] ;
5677
5678 if (!args) SWIG_fail;
5679 swig_obj[0] = args;
5680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5681 if (!SWIG_IsOK(res1)) {
5682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5683 }
5684 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5685 {
5686 PyThreadState* __tstate = wxPyBeginAllowThreads();
5687 result = (int)(arg1)->GetWidth();
5688 wxPyEndAllowThreads(__tstate);
5689 if (PyErr_Occurred()) SWIG_fail;
5690 }
5691 resultobj = SWIG_From_int(static_cast< int >(result));
5692 return resultobj;
5693 fail:
5694 return NULL;
5695 }
5696
5697
5698 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5699 PyObject *resultobj = 0;
5700 wxBitmap *arg1 = (wxBitmap *) 0 ;
5701 int result;
5702 void *argp1 = 0 ;
5703 int res1 = 0 ;
5704 PyObject *swig_obj[1] ;
5705
5706 if (!args) SWIG_fail;
5707 swig_obj[0] = args;
5708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5709 if (!SWIG_IsOK(res1)) {
5710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
5711 }
5712 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5713 {
5714 PyThreadState* __tstate = wxPyBeginAllowThreads();
5715 result = (int)(arg1)->GetHeight();
5716 wxPyEndAllowThreads(__tstate);
5717 if (PyErr_Occurred()) SWIG_fail;
5718 }
5719 resultobj = SWIG_From_int(static_cast< int >(result));
5720 return resultobj;
5721 fail:
5722 return NULL;
5723 }
5724
5725
5726 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5727 PyObject *resultobj = 0;
5728 wxBitmap *arg1 = (wxBitmap *) 0 ;
5729 int result;
5730 void *argp1 = 0 ;
5731 int res1 = 0 ;
5732 PyObject *swig_obj[1] ;
5733
5734 if (!args) SWIG_fail;
5735 swig_obj[0] = args;
5736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5737 if (!SWIG_IsOK(res1)) {
5738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5739 }
5740 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5741 {
5742 PyThreadState* __tstate = wxPyBeginAllowThreads();
5743 result = (int)(arg1)->GetDepth();
5744 wxPyEndAllowThreads(__tstate);
5745 if (PyErr_Occurred()) SWIG_fail;
5746 }
5747 resultobj = SWIG_From_int(static_cast< int >(result));
5748 return resultobj;
5749 fail:
5750 return NULL;
5751 }
5752
5753
5754 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5755 PyObject *resultobj = 0;
5756 wxBitmap *arg1 = (wxBitmap *) 0 ;
5757 wxSize result;
5758 void *argp1 = 0 ;
5759 int res1 = 0 ;
5760 PyObject *swig_obj[1] ;
5761
5762 if (!args) SWIG_fail;
5763 swig_obj[0] = args;
5764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5765 if (!SWIG_IsOK(res1)) {
5766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
5767 }
5768 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5769 {
5770 PyThreadState* __tstate = wxPyBeginAllowThreads();
5771 result = wxBitmap_GetSize(arg1);
5772 wxPyEndAllowThreads(__tstate);
5773 if (PyErr_Occurred()) SWIG_fail;
5774 }
5775 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
5776 return resultobj;
5777 fail:
5778 return NULL;
5779 }
5780
5781
5782 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5783 PyObject *resultobj = 0;
5784 wxBitmap *arg1 = (wxBitmap *) 0 ;
5785 SwigValueWrapper<wxImage > result;
5786 void *argp1 = 0 ;
5787 int res1 = 0 ;
5788 PyObject *swig_obj[1] ;
5789
5790 if (!args) SWIG_fail;
5791 swig_obj[0] = args;
5792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5793 if (!SWIG_IsOK(res1)) {
5794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5795 }
5796 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5797 {
5798 PyThreadState* __tstate = wxPyBeginAllowThreads();
5799 result = ((wxBitmap const *)arg1)->ConvertToImage();
5800 wxPyEndAllowThreads(__tstate);
5801 if (PyErr_Occurred()) SWIG_fail;
5802 }
5803 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
5804 return resultobj;
5805 fail:
5806 return NULL;
5807 }
5808
5809
5810 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5811 PyObject *resultobj = 0;
5812 wxBitmap *arg1 = (wxBitmap *) 0 ;
5813 wxMask *result = 0 ;
5814 void *argp1 = 0 ;
5815 int res1 = 0 ;
5816 PyObject *swig_obj[1] ;
5817
5818 if (!args) SWIG_fail;
5819 swig_obj[0] = args;
5820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5821 if (!SWIG_IsOK(res1)) {
5822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5823 }
5824 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5825 {
5826 PyThreadState* __tstate = wxPyBeginAllowThreads();
5827 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
5828 wxPyEndAllowThreads(__tstate);
5829 if (PyErr_Occurred()) SWIG_fail;
5830 }
5831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
5832 return resultobj;
5833 fail:
5834 return NULL;
5835 }
5836
5837
5838 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5839 PyObject *resultobj = 0;
5840 wxBitmap *arg1 = (wxBitmap *) 0 ;
5841 wxMask *arg2 = (wxMask *) 0 ;
5842 void *argp1 = 0 ;
5843 int res1 = 0 ;
5844 int res2 = 0 ;
5845 PyObject * obj0 = 0 ;
5846 PyObject * obj1 = 0 ;
5847 char * kwnames[] = {
5848 (char *) "self",(char *) "mask", NULL
5849 };
5850
5851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
5852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5853 if (!SWIG_IsOK(res1)) {
5854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
5855 }
5856 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5857 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
5858 if (!SWIG_IsOK(res2)) {
5859 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
5860 }
5861 {
5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
5863 (arg1)->SetMask(arg2);
5864 wxPyEndAllowThreads(__tstate);
5865 if (PyErr_Occurred()) SWIG_fail;
5866 }
5867 resultobj = SWIG_Py_Void();
5868 return resultobj;
5869 fail:
5870 return NULL;
5871 }
5872
5873
5874 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5875 PyObject *resultobj = 0;
5876 wxBitmap *arg1 = (wxBitmap *) 0 ;
5877 wxColour *arg2 = 0 ;
5878 void *argp1 = 0 ;
5879 int res1 = 0 ;
5880 wxColour temp2 ;
5881 PyObject * obj0 = 0 ;
5882 PyObject * obj1 = 0 ;
5883 char * kwnames[] = {
5884 (char *) "self",(char *) "colour", NULL
5885 };
5886
5887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
5888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5889 if (!SWIG_IsOK(res1)) {
5890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
5891 }
5892 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5893 {
5894 arg2 = &temp2;
5895 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5896 }
5897 {
5898 PyThreadState* __tstate = wxPyBeginAllowThreads();
5899 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
5900 wxPyEndAllowThreads(__tstate);
5901 if (PyErr_Occurred()) SWIG_fail;
5902 }
5903 resultobj = SWIG_Py_Void();
5904 return resultobj;
5905 fail:
5906 return NULL;
5907 }
5908
5909
5910 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5911 PyObject *resultobj = 0;
5912 wxBitmap *arg1 = (wxBitmap *) 0 ;
5913 wxRect *arg2 = 0 ;
5914 SwigValueWrapper<wxBitmap > result;
5915 void *argp1 = 0 ;
5916 int res1 = 0 ;
5917 wxRect temp2 ;
5918 PyObject * obj0 = 0 ;
5919 PyObject * obj1 = 0 ;
5920 char * kwnames[] = {
5921 (char *) "self",(char *) "rect", NULL
5922 };
5923
5924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5926 if (!SWIG_IsOK(res1)) {
5927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5928 }
5929 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5930 {
5931 arg2 = &temp2;
5932 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5933 }
5934 {
5935 PyThreadState* __tstate = wxPyBeginAllowThreads();
5936 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
5937 wxPyEndAllowThreads(__tstate);
5938 if (PyErr_Occurred()) SWIG_fail;
5939 }
5940 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5941 return resultobj;
5942 fail:
5943 return NULL;
5944 }
5945
5946
5947 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5948 PyObject *resultobj = 0;
5949 wxBitmap *arg1 = (wxBitmap *) 0 ;
5950 wxString *arg2 = 0 ;
5951 wxBitmapType arg3 ;
5952 wxPalette *arg4 = (wxPalette *) NULL ;
5953 bool result;
5954 void *argp1 = 0 ;
5955 int res1 = 0 ;
5956 bool temp2 = false ;
5957 int val3 ;
5958 int ecode3 = 0 ;
5959 void *argp4 = 0 ;
5960 int res4 = 0 ;
5961 PyObject * obj0 = 0 ;
5962 PyObject * obj1 = 0 ;
5963 PyObject * obj2 = 0 ;
5964 PyObject * obj3 = 0 ;
5965 char * kwnames[] = {
5966 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
5967 };
5968
5969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5971 if (!SWIG_IsOK(res1)) {
5972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5973 }
5974 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5975 {
5976 arg2 = wxString_in_helper(obj1);
5977 if (arg2 == NULL) SWIG_fail;
5978 temp2 = true;
5979 }
5980 ecode3 = SWIG_AsVal_int(obj2, &val3);
5981 if (!SWIG_IsOK(ecode3)) {
5982 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5983 }
5984 arg3 = static_cast< wxBitmapType >(val3);
5985 if (obj3) {
5986 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
5987 if (!SWIG_IsOK(res4)) {
5988 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
5989 }
5990 arg4 = reinterpret_cast< wxPalette * >(argp4);
5991 }
5992 {
5993 PyThreadState* __tstate = wxPyBeginAllowThreads();
5994 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
5995 wxPyEndAllowThreads(__tstate);
5996 if (PyErr_Occurred()) SWIG_fail;
5997 }
5998 {
5999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6000 }
6001 {
6002 if (temp2)
6003 delete arg2;
6004 }
6005 return resultobj;
6006 fail:
6007 {
6008 if (temp2)
6009 delete arg2;
6010 }
6011 return NULL;
6012 }
6013
6014
6015 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6016 PyObject *resultobj = 0;
6017 wxBitmap *arg1 = (wxBitmap *) 0 ;
6018 wxString *arg2 = 0 ;
6019 wxBitmapType arg3 ;
6020 bool result;
6021 void *argp1 = 0 ;
6022 int res1 = 0 ;
6023 bool temp2 = false ;
6024 int val3 ;
6025 int ecode3 = 0 ;
6026 PyObject * obj0 = 0 ;
6027 PyObject * obj1 = 0 ;
6028 PyObject * obj2 = 0 ;
6029 char * kwnames[] = {
6030 (char *) "self",(char *) "name",(char *) "type", NULL
6031 };
6032
6033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6035 if (!SWIG_IsOK(res1)) {
6036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6037 }
6038 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6039 {
6040 arg2 = wxString_in_helper(obj1);
6041 if (arg2 == NULL) SWIG_fail;
6042 temp2 = true;
6043 }
6044 ecode3 = SWIG_AsVal_int(obj2, &val3);
6045 if (!SWIG_IsOK(ecode3)) {
6046 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6047 }
6048 arg3 = static_cast< wxBitmapType >(val3);
6049 {
6050 PyThreadState* __tstate = wxPyBeginAllowThreads();
6051 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6052 wxPyEndAllowThreads(__tstate);
6053 if (PyErr_Occurred()) SWIG_fail;
6054 }
6055 {
6056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6057 }
6058 {
6059 if (temp2)
6060 delete arg2;
6061 }
6062 return resultobj;
6063 fail:
6064 {
6065 if (temp2)
6066 delete arg2;
6067 }
6068 return NULL;
6069 }
6070
6071
6072 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6073 PyObject *resultobj = 0;
6074 wxBitmap *arg1 = (wxBitmap *) 0 ;
6075 wxPalette *result = 0 ;
6076 void *argp1 = 0 ;
6077 int res1 = 0 ;
6078 PyObject *swig_obj[1] ;
6079
6080 if (!args) SWIG_fail;
6081 swig_obj[0] = args;
6082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6083 if (!SWIG_IsOK(res1)) {
6084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6085 }
6086 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6087 {
6088 PyThreadState* __tstate = wxPyBeginAllowThreads();
6089 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6090 wxPyEndAllowThreads(__tstate);
6091 if (PyErr_Occurred()) SWIG_fail;
6092 }
6093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6094 return resultobj;
6095 fail:
6096 return NULL;
6097 }
6098
6099
6100 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6101 PyObject *resultobj = 0;
6102 wxBitmap *arg1 = (wxBitmap *) 0 ;
6103 wxPalette *arg2 = 0 ;
6104 void *argp1 = 0 ;
6105 int res1 = 0 ;
6106 void *argp2 = 0 ;
6107 int res2 = 0 ;
6108 PyObject * obj0 = 0 ;
6109 PyObject * obj1 = 0 ;
6110 char * kwnames[] = {
6111 (char *) "self",(char *) "palette", NULL
6112 };
6113
6114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6116 if (!SWIG_IsOK(res1)) {
6117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6118 }
6119 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6120 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6121 if (!SWIG_IsOK(res2)) {
6122 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6123 }
6124 if (!argp2) {
6125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6126 }
6127 arg2 = reinterpret_cast< wxPalette * >(argp2);
6128 {
6129 PyThreadState* __tstate = wxPyBeginAllowThreads();
6130 (arg1)->SetPalette((wxPalette const &)*arg2);
6131 wxPyEndAllowThreads(__tstate);
6132 if (PyErr_Occurred()) SWIG_fail;
6133 }
6134 resultobj = SWIG_Py_Void();
6135 return resultobj;
6136 fail:
6137 return NULL;
6138 }
6139
6140
6141 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6142 PyObject *resultobj = 0;
6143 wxBitmap *arg1 = (wxBitmap *) 0 ;
6144 wxIcon *arg2 = 0 ;
6145 bool result;
6146 void *argp1 = 0 ;
6147 int res1 = 0 ;
6148 void *argp2 = 0 ;
6149 int res2 = 0 ;
6150 PyObject * obj0 = 0 ;
6151 PyObject * obj1 = 0 ;
6152 char * kwnames[] = {
6153 (char *) "self",(char *) "icon", NULL
6154 };
6155
6156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6158 if (!SWIG_IsOK(res1)) {
6159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6160 }
6161 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6162 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6163 if (!SWIG_IsOK(res2)) {
6164 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6165 }
6166 if (!argp2) {
6167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6168 }
6169 arg2 = reinterpret_cast< wxIcon * >(argp2);
6170 {
6171 PyThreadState* __tstate = wxPyBeginAllowThreads();
6172 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6173 wxPyEndAllowThreads(__tstate);
6174 if (PyErr_Occurred()) SWIG_fail;
6175 }
6176 {
6177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6178 }
6179 return resultobj;
6180 fail:
6181 return NULL;
6182 }
6183
6184
6185 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6186 PyObject *resultobj = 0;
6187 wxBitmap *arg1 = (wxBitmap *) 0 ;
6188 int arg2 ;
6189 void *argp1 = 0 ;
6190 int res1 = 0 ;
6191 int val2 ;
6192 int ecode2 = 0 ;
6193 PyObject * obj0 = 0 ;
6194 PyObject * obj1 = 0 ;
6195 char * kwnames[] = {
6196 (char *) "self",(char *) "height", NULL
6197 };
6198
6199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6201 if (!SWIG_IsOK(res1)) {
6202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6203 }
6204 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6205 ecode2 = SWIG_AsVal_int(obj1, &val2);
6206 if (!SWIG_IsOK(ecode2)) {
6207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6208 }
6209 arg2 = static_cast< int >(val2);
6210 {
6211 PyThreadState* __tstate = wxPyBeginAllowThreads();
6212 (arg1)->SetHeight(arg2);
6213 wxPyEndAllowThreads(__tstate);
6214 if (PyErr_Occurred()) SWIG_fail;
6215 }
6216 resultobj = SWIG_Py_Void();
6217 return resultobj;
6218 fail:
6219 return NULL;
6220 }
6221
6222
6223 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6224 PyObject *resultobj = 0;
6225 wxBitmap *arg1 = (wxBitmap *) 0 ;
6226 int arg2 ;
6227 void *argp1 = 0 ;
6228 int res1 = 0 ;
6229 int val2 ;
6230 int ecode2 = 0 ;
6231 PyObject * obj0 = 0 ;
6232 PyObject * obj1 = 0 ;
6233 char * kwnames[] = {
6234 (char *) "self",(char *) "width", NULL
6235 };
6236
6237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6239 if (!SWIG_IsOK(res1)) {
6240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6241 }
6242 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6243 ecode2 = SWIG_AsVal_int(obj1, &val2);
6244 if (!SWIG_IsOK(ecode2)) {
6245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6246 }
6247 arg2 = static_cast< int >(val2);
6248 {
6249 PyThreadState* __tstate = wxPyBeginAllowThreads();
6250 (arg1)->SetWidth(arg2);
6251 wxPyEndAllowThreads(__tstate);
6252 if (PyErr_Occurred()) SWIG_fail;
6253 }
6254 resultobj = SWIG_Py_Void();
6255 return resultobj;
6256 fail:
6257 return NULL;
6258 }
6259
6260
6261 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6262 PyObject *resultobj = 0;
6263 wxBitmap *arg1 = (wxBitmap *) 0 ;
6264 int arg2 ;
6265 void *argp1 = 0 ;
6266 int res1 = 0 ;
6267 int val2 ;
6268 int ecode2 = 0 ;
6269 PyObject * obj0 = 0 ;
6270 PyObject * obj1 = 0 ;
6271 char * kwnames[] = {
6272 (char *) "self",(char *) "depth", NULL
6273 };
6274
6275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6277 if (!SWIG_IsOK(res1)) {
6278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6279 }
6280 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6281 ecode2 = SWIG_AsVal_int(obj1, &val2);
6282 if (!SWIG_IsOK(ecode2)) {
6283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6284 }
6285 arg2 = static_cast< int >(val2);
6286 {
6287 PyThreadState* __tstate = wxPyBeginAllowThreads();
6288 (arg1)->SetDepth(arg2);
6289 wxPyEndAllowThreads(__tstate);
6290 if (PyErr_Occurred()) SWIG_fail;
6291 }
6292 resultobj = SWIG_Py_Void();
6293 return resultobj;
6294 fail:
6295 return NULL;
6296 }
6297
6298
6299 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6300 PyObject *resultobj = 0;
6301 wxBitmap *arg1 = (wxBitmap *) 0 ;
6302 wxSize *arg2 = 0 ;
6303 void *argp1 = 0 ;
6304 int res1 = 0 ;
6305 wxSize temp2 ;
6306 PyObject * obj0 = 0 ;
6307 PyObject * obj1 = 0 ;
6308 char * kwnames[] = {
6309 (char *) "self",(char *) "size", NULL
6310 };
6311
6312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6314 if (!SWIG_IsOK(res1)) {
6315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6316 }
6317 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6318 {
6319 arg2 = &temp2;
6320 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6321 }
6322 {
6323 PyThreadState* __tstate = wxPyBeginAllowThreads();
6324 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6325 wxPyEndAllowThreads(__tstate);
6326 if (PyErr_Occurred()) SWIG_fail;
6327 }
6328 resultobj = SWIG_Py_Void();
6329 return resultobj;
6330 fail:
6331 return NULL;
6332 }
6333
6334
6335 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6336 PyObject *resultobj = 0;
6337 wxBitmap *arg1 = (wxBitmap *) 0 ;
6338 wxCursor *arg2 = 0 ;
6339 bool result;
6340 void *argp1 = 0 ;
6341 int res1 = 0 ;
6342 void *argp2 = 0 ;
6343 int res2 = 0 ;
6344 PyObject * obj0 = 0 ;
6345 PyObject * obj1 = 0 ;
6346 char * kwnames[] = {
6347 (char *) "self",(char *) "cursor", NULL
6348 };
6349
6350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
6351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6352 if (!SWIG_IsOK(res1)) {
6353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6354 }
6355 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6356 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
6357 if (!SWIG_IsOK(res2)) {
6358 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6359 }
6360 if (!argp2) {
6361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6362 }
6363 arg2 = reinterpret_cast< wxCursor * >(argp2);
6364 {
6365 PyThreadState* __tstate = wxPyBeginAllowThreads();
6366 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
6367 wxPyEndAllowThreads(__tstate);
6368 if (PyErr_Occurred()) SWIG_fail;
6369 }
6370 {
6371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6372 }
6373 return resultobj;
6374 fail:
6375 return NULL;
6376 }
6377
6378
6379 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6380 PyObject *resultobj = 0;
6381 wxBitmap *arg1 = (wxBitmap *) 0 ;
6382 wxBitmap *arg2 = (wxBitmap *) 0 ;
6383 bool result;
6384 void *argp1 = 0 ;
6385 int res1 = 0 ;
6386 void *argp2 = 0 ;
6387 int res2 = 0 ;
6388 PyObject * obj0 = 0 ;
6389 PyObject * obj1 = 0 ;
6390 char * kwnames[] = {
6391 (char *) "self",(char *) "other", NULL
6392 };
6393
6394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6396 if (!SWIG_IsOK(res1)) {
6397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6398 }
6399 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6400 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6401 if (!SWIG_IsOK(res2)) {
6402 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6403 }
6404 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6405 {
6406 PyThreadState* __tstate = wxPyBeginAllowThreads();
6407 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6408 wxPyEndAllowThreads(__tstate);
6409 if (PyErr_Occurred()) SWIG_fail;
6410 }
6411 {
6412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6413 }
6414 return resultobj;
6415 fail:
6416 return NULL;
6417 }
6418
6419
6420 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6421 PyObject *resultobj = 0;
6422 wxBitmap *arg1 = (wxBitmap *) 0 ;
6423 wxBitmap *arg2 = (wxBitmap *) 0 ;
6424 bool result;
6425 void *argp1 = 0 ;
6426 int res1 = 0 ;
6427 void *argp2 = 0 ;
6428 int res2 = 0 ;
6429 PyObject * obj0 = 0 ;
6430 PyObject * obj1 = 0 ;
6431 char * kwnames[] = {
6432 (char *) "self",(char *) "other", NULL
6433 };
6434
6435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6437 if (!SWIG_IsOK(res1)) {
6438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6439 }
6440 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6441 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6442 if (!SWIG_IsOK(res2)) {
6443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6444 }
6445 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6446 {
6447 PyThreadState* __tstate = wxPyBeginAllowThreads();
6448 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6449 wxPyEndAllowThreads(__tstate);
6450 if (PyErr_Occurred()) SWIG_fail;
6451 }
6452 {
6453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6454 }
6455 return resultobj;
6456 fail:
6457 return NULL;
6458 }
6459
6460
6461 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6462 PyObject *obj;
6463 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6464 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6465 return SWIG_Py_Void();
6466 }
6467
6468 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6469 return SWIG_Python_InitShadowInstance(args);
6470 }
6471
6472 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6473 PyObject *resultobj = 0;
6474 wxBitmap *arg1 = 0 ;
6475 wxColour const &arg2_defvalue = wxNullColour ;
6476 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6477 wxMask *result = 0 ;
6478 void *argp1 = 0 ;
6479 int res1 = 0 ;
6480 wxColour temp2 ;
6481 PyObject * obj0 = 0 ;
6482 PyObject * obj1 = 0 ;
6483 char * kwnames[] = {
6484 (char *) "bitmap",(char *) "colour", NULL
6485 };
6486
6487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
6488 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6489 if (!SWIG_IsOK(res1)) {
6490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6491 }
6492 if (!argp1) {
6493 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6494 }
6495 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6496 if (obj1) {
6497 {
6498 arg2 = &temp2;
6499 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6500 }
6501 }
6502 {
6503 if (!wxPyCheckForApp()) SWIG_fail;
6504 PyThreadState* __tstate = wxPyBeginAllowThreads();
6505 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
6506 wxPyEndAllowThreads(__tstate);
6507 if (PyErr_Occurred()) SWIG_fail;
6508 }
6509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
6510 return resultobj;
6511 fail:
6512 return NULL;
6513 }
6514
6515
6516 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6517 PyObject *resultobj = 0;
6518 wxMask *arg1 = (wxMask *) 0 ;
6519 void *argp1 = 0 ;
6520 int res1 = 0 ;
6521 PyObject *swig_obj[1] ;
6522
6523 if (!args) SWIG_fail;
6524 swig_obj[0] = args;
6525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6526 if (!SWIG_IsOK(res1)) {
6527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
6528 }
6529 arg1 = reinterpret_cast< wxMask * >(argp1);
6530 {
6531 PyThreadState* __tstate = wxPyBeginAllowThreads();
6532 delete arg1;
6533
6534 wxPyEndAllowThreads(__tstate);
6535 if (PyErr_Occurred()) SWIG_fail;
6536 }
6537 resultobj = SWIG_Py_Void();
6538 return resultobj;
6539 fail:
6540 return NULL;
6541 }
6542
6543
6544 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6545 PyObject *obj;
6546 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6547 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
6548 return SWIG_Py_Void();
6549 }
6550
6551 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6552 return SWIG_Python_InitShadowInstance(args);
6553 }
6554
6555 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6556 PyObject *resultobj = 0;
6557 wxString *arg1 = 0 ;
6558 wxBitmapType arg2 ;
6559 int arg3 = (int) -1 ;
6560 int arg4 = (int) -1 ;
6561 wxIcon *result = 0 ;
6562 bool temp1 = false ;
6563 int val2 ;
6564 int ecode2 = 0 ;
6565 int val3 ;
6566 int ecode3 = 0 ;
6567 int val4 ;
6568 int ecode4 = 0 ;
6569 PyObject * obj0 = 0 ;
6570 PyObject * obj1 = 0 ;
6571 PyObject * obj2 = 0 ;
6572 PyObject * obj3 = 0 ;
6573 char * kwnames[] = {
6574 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
6575 };
6576
6577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6578 {
6579 arg1 = wxString_in_helper(obj0);
6580 if (arg1 == NULL) SWIG_fail;
6581 temp1 = true;
6582 }
6583 ecode2 = SWIG_AsVal_int(obj1, &val2);
6584 if (!SWIG_IsOK(ecode2)) {
6585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
6586 }
6587 arg2 = static_cast< wxBitmapType >(val2);
6588 if (obj2) {
6589 ecode3 = SWIG_AsVal_int(obj2, &val3);
6590 if (!SWIG_IsOK(ecode3)) {
6591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
6592 }
6593 arg3 = static_cast< int >(val3);
6594 }
6595 if (obj3) {
6596 ecode4 = SWIG_AsVal_int(obj3, &val4);
6597 if (!SWIG_IsOK(ecode4)) {
6598 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
6599 }
6600 arg4 = static_cast< int >(val4);
6601 }
6602 {
6603 if (!wxPyCheckForApp()) SWIG_fail;
6604 PyThreadState* __tstate = wxPyBeginAllowThreads();
6605 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
6606 wxPyEndAllowThreads(__tstate);
6607 if (PyErr_Occurred()) SWIG_fail;
6608 }
6609 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
6610 {
6611 if (temp1)
6612 delete arg1;
6613 }
6614 return resultobj;
6615 fail:
6616 {
6617 if (temp1)
6618 delete arg1;
6619 }
6620 return NULL;
6621 }
6622
6623
6624 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6625 PyObject *resultobj = 0;
6626 wxIcon *arg1 = (wxIcon *) 0 ;
6627 void *argp1 = 0 ;
6628 int res1 = 0 ;
6629 PyObject *swig_obj[1] ;
6630
6631 if (!args) SWIG_fail;
6632 swig_obj[0] = args;
6633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
6634 if (!SWIG_IsOK(res1)) {
6635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
6636 }
6637 arg1 = reinterpret_cast< wxIcon * >(argp1);
6638 {
6639 PyThreadState* __tstate = wxPyBeginAllowThreads();
6640 delete arg1;
6641
6642 wxPyEndAllowThreads(__tstate);
6643 if (PyErr_Occurred()) SWIG_fail;
6644 }
6645 resultobj = SWIG_Py_Void();
6646 return resultobj;
6647 fail:
6648 return NULL;
6649 }
6650
6651
6652 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6653 PyObject *resultobj = 0;
6654 wxIcon *result = 0 ;
6655
6656 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
6657 {
6658 if (!wxPyCheckForApp()) SWIG_fail;
6659 PyThreadState* __tstate = wxPyBeginAllowThreads();
6660 result = (wxIcon *)new wxIcon();
6661 wxPyEndAllowThreads(__tstate);
6662 if (PyErr_Occurred()) SWIG_fail;
6663 }
6664 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6665 return resultobj;
6666 fail:
6667 return NULL;
6668 }
6669
6670
6671 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6672 PyObject *resultobj = 0;
6673 wxIconLocation *arg1 = 0 ;
6674 wxIcon *result = 0 ;
6675 void *argp1 = 0 ;
6676 int res1 = 0 ;
6677 PyObject * obj0 = 0 ;
6678 char * kwnames[] = {
6679 (char *) "loc", NULL
6680 };
6681
6682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
6683 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
6684 if (!SWIG_IsOK(res1)) {
6685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6686 }
6687 if (!argp1) {
6688 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6689 }
6690 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6691 {
6692 if (!wxPyCheckForApp()) SWIG_fail;
6693 PyThreadState* __tstate = wxPyBeginAllowThreads();
6694 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
6695 wxPyEndAllowThreads(__tstate);
6696 if (PyErr_Occurred()) SWIG_fail;
6697 }
6698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6699 return resultobj;
6700 fail:
6701 return NULL;
6702 }
6703
6704
6705 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6706 PyObject *resultobj = 0;
6707 wxBitmap *arg1 = 0 ;
6708 wxIcon *result = 0 ;
6709 void *argp1 = 0 ;
6710 int res1 = 0 ;
6711 PyObject * obj0 = 0 ;
6712 char * kwnames[] = {
6713 (char *) "bmp", NULL
6714 };
6715
6716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
6717 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6718 if (!SWIG_IsOK(res1)) {
6719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6720 }
6721 if (!argp1) {
6722 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6723 }
6724 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6725 {
6726 if (!wxPyCheckForApp()) SWIG_fail;
6727 PyThreadState* __tstate = wxPyBeginAllowThreads();
6728 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
6729 wxPyEndAllowThreads(__tstate);
6730 if (PyErr_Occurred()) SWIG_fail;
6731 }
6732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6733 return resultobj;
6734 fail:
6735 return NULL;
6736 }
6737
6738
6739 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6740 PyObject *resultobj = 0;
6741 PyObject *arg1 = (PyObject *) 0 ;
6742 wxIcon *result = 0 ;
6743 PyObject * obj0 = 0 ;
6744 char * kwnames[] = {
6745 (char *) "listOfStrings", NULL
6746 };
6747
6748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
6749 arg1 = obj0;
6750 {
6751 if (!wxPyCheckForApp()) SWIG_fail;
6752 PyThreadState* __tstate = wxPyBeginAllowThreads();
6753 result = (wxIcon *)new_wxIcon(arg1);
6754 wxPyEndAllowThreads(__tstate);
6755 if (PyErr_Occurred()) SWIG_fail;
6756 }
6757 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6758 return resultobj;
6759 fail:
6760 return NULL;
6761 }
6762
6763
6764 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6765 PyObject *resultobj = 0;
6766 wxIcon *arg1 = (wxIcon *) 0 ;
6767 wxString *arg2 = 0 ;
6768 wxBitmapType arg3 ;
6769 bool result;
6770 void *argp1 = 0 ;
6771 int res1 = 0 ;
6772 bool temp2 = false ;
6773 int val3 ;
6774 int ecode3 = 0 ;
6775 PyObject * obj0 = 0 ;
6776 PyObject * obj1 = 0 ;
6777 PyObject * obj2 = 0 ;
6778 char * kwnames[] = {
6779 (char *) "self",(char *) "name",(char *) "type", NULL
6780 };
6781
6782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6784 if (!SWIG_IsOK(res1)) {
6785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
6786 }
6787 arg1 = reinterpret_cast< wxIcon * >(argp1);
6788 {
6789 arg2 = wxString_in_helper(obj1);
6790 if (arg2 == NULL) SWIG_fail;
6791 temp2 = true;
6792 }
6793 ecode3 = SWIG_AsVal_int(obj2, &val3);
6794 if (!SWIG_IsOK(ecode3)) {
6795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6796 }
6797 arg3 = static_cast< wxBitmapType >(val3);
6798 {
6799 PyThreadState* __tstate = wxPyBeginAllowThreads();
6800 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6801 wxPyEndAllowThreads(__tstate);
6802 if (PyErr_Occurred()) SWIG_fail;
6803 }
6804 {
6805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6806 }
6807 {
6808 if (temp2)
6809 delete arg2;
6810 }
6811 return resultobj;
6812 fail:
6813 {
6814 if (temp2)
6815 delete arg2;
6816 }
6817 return NULL;
6818 }
6819
6820
6821 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6822 PyObject *resultobj = 0;
6823 wxIcon *arg1 = (wxIcon *) 0 ;
6824 long result;
6825 void *argp1 = 0 ;
6826 int res1 = 0 ;
6827 PyObject *swig_obj[1] ;
6828
6829 if (!args) SWIG_fail;
6830 swig_obj[0] = args;
6831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6832 if (!SWIG_IsOK(res1)) {
6833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
6834 }
6835 arg1 = reinterpret_cast< wxIcon * >(argp1);
6836 {
6837 PyThreadState* __tstate = wxPyBeginAllowThreads();
6838 result = (long)(arg1)->GetHandle();
6839 wxPyEndAllowThreads(__tstate);
6840 if (PyErr_Occurred()) SWIG_fail;
6841 }
6842 resultobj = SWIG_From_long(static_cast< long >(result));
6843 return resultobj;
6844 fail:
6845 return NULL;
6846 }
6847
6848
6849 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6850 PyObject *resultobj = 0;
6851 wxIcon *arg1 = (wxIcon *) 0 ;
6852 long arg2 ;
6853 void *argp1 = 0 ;
6854 int res1 = 0 ;
6855 long val2 ;
6856 int ecode2 = 0 ;
6857 PyObject * obj0 = 0 ;
6858 PyObject * obj1 = 0 ;
6859 char * kwnames[] = {
6860 (char *) "self",(char *) "handle", NULL
6861 };
6862
6863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6865 if (!SWIG_IsOK(res1)) {
6866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
6867 }
6868 arg1 = reinterpret_cast< wxIcon * >(argp1);
6869 ecode2 = SWIG_AsVal_long(obj1, &val2);
6870 if (!SWIG_IsOK(ecode2)) {
6871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
6872 }
6873 arg2 = static_cast< long >(val2);
6874 {
6875 PyThreadState* __tstate = wxPyBeginAllowThreads();
6876 wxIcon_SetHandle(arg1,arg2);
6877 wxPyEndAllowThreads(__tstate);
6878 if (PyErr_Occurred()) SWIG_fail;
6879 }
6880 resultobj = SWIG_Py_Void();
6881 return resultobj;
6882 fail:
6883 return NULL;
6884 }
6885
6886
6887 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6888 PyObject *resultobj = 0;
6889 wxIcon *arg1 = (wxIcon *) 0 ;
6890 bool result;
6891 void *argp1 = 0 ;
6892 int res1 = 0 ;
6893 PyObject *swig_obj[1] ;
6894
6895 if (!args) SWIG_fail;
6896 swig_obj[0] = args;
6897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6898 if (!SWIG_IsOK(res1)) {
6899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
6900 }
6901 arg1 = reinterpret_cast< wxIcon * >(argp1);
6902 {
6903 PyThreadState* __tstate = wxPyBeginAllowThreads();
6904 result = (bool)(arg1)->Ok();
6905 wxPyEndAllowThreads(__tstate);
6906 if (PyErr_Occurred()) SWIG_fail;
6907 }
6908 {
6909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6910 }
6911 return resultobj;
6912 fail:
6913 return NULL;
6914 }
6915
6916
6917 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6918 PyObject *resultobj = 0;
6919 wxIcon *arg1 = (wxIcon *) 0 ;
6920 int result;
6921 void *argp1 = 0 ;
6922 int res1 = 0 ;
6923 PyObject *swig_obj[1] ;
6924
6925 if (!args) SWIG_fail;
6926 swig_obj[0] = args;
6927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6928 if (!SWIG_IsOK(res1)) {
6929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6930 }
6931 arg1 = reinterpret_cast< wxIcon * >(argp1);
6932 {
6933 PyThreadState* __tstate = wxPyBeginAllowThreads();
6934 result = (int)(arg1)->GetWidth();
6935 wxPyEndAllowThreads(__tstate);
6936 if (PyErr_Occurred()) SWIG_fail;
6937 }
6938 resultobj = SWIG_From_int(static_cast< int >(result));
6939 return resultobj;
6940 fail:
6941 return NULL;
6942 }
6943
6944
6945 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6946 PyObject *resultobj = 0;
6947 wxIcon *arg1 = (wxIcon *) 0 ;
6948 int result;
6949 void *argp1 = 0 ;
6950 int res1 = 0 ;
6951 PyObject *swig_obj[1] ;
6952
6953 if (!args) SWIG_fail;
6954 swig_obj[0] = args;
6955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6956 if (!SWIG_IsOK(res1)) {
6957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6958 }
6959 arg1 = reinterpret_cast< wxIcon * >(argp1);
6960 {
6961 PyThreadState* __tstate = wxPyBeginAllowThreads();
6962 result = (int)(arg1)->GetHeight();
6963 wxPyEndAllowThreads(__tstate);
6964 if (PyErr_Occurred()) SWIG_fail;
6965 }
6966 resultobj = SWIG_From_int(static_cast< int >(result));
6967 return resultobj;
6968 fail:
6969 return NULL;
6970 }
6971
6972
6973 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6974 PyObject *resultobj = 0;
6975 wxIcon *arg1 = (wxIcon *) 0 ;
6976 int result;
6977 void *argp1 = 0 ;
6978 int res1 = 0 ;
6979 PyObject *swig_obj[1] ;
6980
6981 if (!args) SWIG_fail;
6982 swig_obj[0] = args;
6983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6984 if (!SWIG_IsOK(res1)) {
6985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6986 }
6987 arg1 = reinterpret_cast< wxIcon * >(argp1);
6988 {
6989 PyThreadState* __tstate = wxPyBeginAllowThreads();
6990 result = (int)(arg1)->GetDepth();
6991 wxPyEndAllowThreads(__tstate);
6992 if (PyErr_Occurred()) SWIG_fail;
6993 }
6994 resultobj = SWIG_From_int(static_cast< int >(result));
6995 return resultobj;
6996 fail:
6997 return NULL;
6998 }
6999
7000
7001 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7002 PyObject *resultobj = 0;
7003 wxIcon *arg1 = (wxIcon *) 0 ;
7004 int arg2 ;
7005 void *argp1 = 0 ;
7006 int res1 = 0 ;
7007 int val2 ;
7008 int ecode2 = 0 ;
7009 PyObject * obj0 = 0 ;
7010 PyObject * obj1 = 0 ;
7011 char * kwnames[] = {
7012 (char *) "self",(char *) "w", NULL
7013 };
7014
7015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7017 if (!SWIG_IsOK(res1)) {
7018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
7019 }
7020 arg1 = reinterpret_cast< wxIcon * >(argp1);
7021 ecode2 = SWIG_AsVal_int(obj1, &val2);
7022 if (!SWIG_IsOK(ecode2)) {
7023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
7024 }
7025 arg2 = static_cast< int >(val2);
7026 {
7027 PyThreadState* __tstate = wxPyBeginAllowThreads();
7028 (arg1)->SetWidth(arg2);
7029 wxPyEndAllowThreads(__tstate);
7030 if (PyErr_Occurred()) SWIG_fail;
7031 }
7032 resultobj = SWIG_Py_Void();
7033 return resultobj;
7034 fail:
7035 return NULL;
7036 }
7037
7038
7039 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7040 PyObject *resultobj = 0;
7041 wxIcon *arg1 = (wxIcon *) 0 ;
7042 int arg2 ;
7043 void *argp1 = 0 ;
7044 int res1 = 0 ;
7045 int val2 ;
7046 int ecode2 = 0 ;
7047 PyObject * obj0 = 0 ;
7048 PyObject * obj1 = 0 ;
7049 char * kwnames[] = {
7050 (char *) "self",(char *) "h", NULL
7051 };
7052
7053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
7054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7055 if (!SWIG_IsOK(res1)) {
7056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
7057 }
7058 arg1 = reinterpret_cast< wxIcon * >(argp1);
7059 ecode2 = SWIG_AsVal_int(obj1, &val2);
7060 if (!SWIG_IsOK(ecode2)) {
7061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
7062 }
7063 arg2 = static_cast< int >(val2);
7064 {
7065 PyThreadState* __tstate = wxPyBeginAllowThreads();
7066 (arg1)->SetHeight(arg2);
7067 wxPyEndAllowThreads(__tstate);
7068 if (PyErr_Occurred()) SWIG_fail;
7069 }
7070 resultobj = SWIG_Py_Void();
7071 return resultobj;
7072 fail:
7073 return NULL;
7074 }
7075
7076
7077 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7078 PyObject *resultobj = 0;
7079 wxIcon *arg1 = (wxIcon *) 0 ;
7080 int arg2 ;
7081 void *argp1 = 0 ;
7082 int res1 = 0 ;
7083 int val2 ;
7084 int ecode2 = 0 ;
7085 PyObject * obj0 = 0 ;
7086 PyObject * obj1 = 0 ;
7087 char * kwnames[] = {
7088 (char *) "self",(char *) "d", NULL
7089 };
7090
7091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
7092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7093 if (!SWIG_IsOK(res1)) {
7094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
7095 }
7096 arg1 = reinterpret_cast< wxIcon * >(argp1);
7097 ecode2 = SWIG_AsVal_int(obj1, &val2);
7098 if (!SWIG_IsOK(ecode2)) {
7099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
7100 }
7101 arg2 = static_cast< int >(val2);
7102 {
7103 PyThreadState* __tstate = wxPyBeginAllowThreads();
7104 (arg1)->SetDepth(arg2);
7105 wxPyEndAllowThreads(__tstate);
7106 if (PyErr_Occurred()) SWIG_fail;
7107 }
7108 resultobj = SWIG_Py_Void();
7109 return resultobj;
7110 fail:
7111 return NULL;
7112 }
7113
7114
7115 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7116 PyObject *resultobj = 0;
7117 wxIcon *arg1 = (wxIcon *) 0 ;
7118 wxSize *arg2 = 0 ;
7119 void *argp1 = 0 ;
7120 int res1 = 0 ;
7121 wxSize temp2 ;
7122 PyObject * obj0 = 0 ;
7123 PyObject * obj1 = 0 ;
7124 char * kwnames[] = {
7125 (char *) "self",(char *) "size", NULL
7126 };
7127
7128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7130 if (!SWIG_IsOK(res1)) {
7131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
7132 }
7133 arg1 = reinterpret_cast< wxIcon * >(argp1);
7134 {
7135 arg2 = &temp2;
7136 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7137 }
7138 {
7139 PyThreadState* __tstate = wxPyBeginAllowThreads();
7140 (arg1)->SetSize((wxSize const &)*arg2);
7141 wxPyEndAllowThreads(__tstate);
7142 if (PyErr_Occurred()) SWIG_fail;
7143 }
7144 resultobj = SWIG_Py_Void();
7145 return resultobj;
7146 fail:
7147 return NULL;
7148 }
7149
7150
7151 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7152 PyObject *resultobj = 0;
7153 wxIcon *arg1 = (wxIcon *) 0 ;
7154 wxBitmap *arg2 = 0 ;
7155 void *argp1 = 0 ;
7156 int res1 = 0 ;
7157 void *argp2 = 0 ;
7158 int res2 = 0 ;
7159 PyObject * obj0 = 0 ;
7160 PyObject * obj1 = 0 ;
7161 char * kwnames[] = {
7162 (char *) "self",(char *) "bmp", NULL
7163 };
7164
7165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
7166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7167 if (!SWIG_IsOK(res1)) {
7168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
7169 }
7170 arg1 = reinterpret_cast< wxIcon * >(argp1);
7171 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
7172 if (!SWIG_IsOK(res2)) {
7173 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
7174 }
7175 if (!argp2) {
7176 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
7177 }
7178 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7179 {
7180 PyThreadState* __tstate = wxPyBeginAllowThreads();
7181 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
7182 wxPyEndAllowThreads(__tstate);
7183 if (PyErr_Occurred()) SWIG_fail;
7184 }
7185 resultobj = SWIG_Py_Void();
7186 return resultobj;
7187 fail:
7188 return NULL;
7189 }
7190
7191
7192 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7193 PyObject *obj;
7194 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7195 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
7196 return SWIG_Py_Void();
7197 }
7198
7199 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7200 return SWIG_Python_InitShadowInstance(args);
7201 }
7202
7203 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7204 PyObject *resultobj = 0;
7205 wxString *arg1 = (wxString *) &wxPyEmptyString ;
7206 int arg2 = (int) 0 ;
7207 wxIconLocation *result = 0 ;
7208 bool temp1 = false ;
7209 int val2 ;
7210 int ecode2 = 0 ;
7211 PyObject * obj0 = 0 ;
7212 PyObject * obj1 = 0 ;
7213 char * kwnames[] = {
7214 (char *) "filename",(char *) "num", NULL
7215 };
7216
7217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
7218 if (obj0) {
7219 {
7220 arg1 = wxString_in_helper(obj0);
7221 if (arg1 == NULL) SWIG_fail;
7222 temp1 = true;
7223 }
7224 }
7225 if (obj1) {
7226 ecode2 = SWIG_AsVal_int(obj1, &val2);
7227 if (!SWIG_IsOK(ecode2)) {
7228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
7229 }
7230 arg2 = static_cast< int >(val2);
7231 }
7232 {
7233 PyThreadState* __tstate = wxPyBeginAllowThreads();
7234 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
7235 wxPyEndAllowThreads(__tstate);
7236 if (PyErr_Occurred()) SWIG_fail;
7237 }
7238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
7239 {
7240 if (temp1)
7241 delete arg1;
7242 }
7243 return resultobj;
7244 fail:
7245 {
7246 if (temp1)
7247 delete arg1;
7248 }
7249 return NULL;
7250 }
7251
7252
7253 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7254 PyObject *resultobj = 0;
7255 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7256 void *argp1 = 0 ;
7257 int res1 = 0 ;
7258 PyObject *swig_obj[1] ;
7259
7260 if (!args) SWIG_fail;
7261 swig_obj[0] = args;
7262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
7263 if (!SWIG_IsOK(res1)) {
7264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7265 }
7266 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7267 {
7268 PyThreadState* __tstate = wxPyBeginAllowThreads();
7269 delete arg1;
7270
7271 wxPyEndAllowThreads(__tstate);
7272 if (PyErr_Occurred()) SWIG_fail;
7273 }
7274 resultobj = SWIG_Py_Void();
7275 return resultobj;
7276 fail:
7277 return NULL;
7278 }
7279
7280
7281 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7282 PyObject *resultobj = 0;
7283 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7284 bool result;
7285 void *argp1 = 0 ;
7286 int res1 = 0 ;
7287 PyObject *swig_obj[1] ;
7288
7289 if (!args) SWIG_fail;
7290 swig_obj[0] = args;
7291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7292 if (!SWIG_IsOK(res1)) {
7293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7294 }
7295 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7296 {
7297 PyThreadState* __tstate = wxPyBeginAllowThreads();
7298 result = (bool)((wxIconLocation const *)arg1)->IsOk();
7299 wxPyEndAllowThreads(__tstate);
7300 if (PyErr_Occurred()) SWIG_fail;
7301 }
7302 {
7303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7304 }
7305 return resultobj;
7306 fail:
7307 return NULL;
7308 }
7309
7310
7311 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7312 PyObject *resultobj = 0;
7313 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7314 wxString *arg2 = 0 ;
7315 void *argp1 = 0 ;
7316 int res1 = 0 ;
7317 bool temp2 = false ;
7318 PyObject * obj0 = 0 ;
7319 PyObject * obj1 = 0 ;
7320 char * kwnames[] = {
7321 (char *) "self",(char *) "filename", NULL
7322 };
7323
7324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
7325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7326 if (!SWIG_IsOK(res1)) {
7327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7328 }
7329 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7330 {
7331 arg2 = wxString_in_helper(obj1);
7332 if (arg2 == NULL) SWIG_fail;
7333 temp2 = true;
7334 }
7335 {
7336 PyThreadState* __tstate = wxPyBeginAllowThreads();
7337 (arg1)->SetFileName((wxString const &)*arg2);
7338 wxPyEndAllowThreads(__tstate);
7339 if (PyErr_Occurred()) SWIG_fail;
7340 }
7341 resultobj = SWIG_Py_Void();
7342 {
7343 if (temp2)
7344 delete arg2;
7345 }
7346 return resultobj;
7347 fail:
7348 {
7349 if (temp2)
7350 delete arg2;
7351 }
7352 return NULL;
7353 }
7354
7355
7356 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7357 PyObject *resultobj = 0;
7358 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7359 wxString *result = 0 ;
7360 void *argp1 = 0 ;
7361 int res1 = 0 ;
7362 PyObject *swig_obj[1] ;
7363
7364 if (!args) SWIG_fail;
7365 swig_obj[0] = args;
7366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7367 if (!SWIG_IsOK(res1)) {
7368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7369 }
7370 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7371 {
7372 PyThreadState* __tstate = wxPyBeginAllowThreads();
7373 {
7374 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
7375 result = (wxString *) &_result_ref;
7376 }
7377 wxPyEndAllowThreads(__tstate);
7378 if (PyErr_Occurred()) SWIG_fail;
7379 }
7380 {
7381 #if wxUSE_UNICODE
7382 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7383 #else
7384 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7385 #endif
7386 }
7387 return resultobj;
7388 fail:
7389 return NULL;
7390 }
7391
7392
7393 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7394 PyObject *resultobj = 0;
7395 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7396 int arg2 ;
7397 void *argp1 = 0 ;
7398 int res1 = 0 ;
7399 int val2 ;
7400 int ecode2 = 0 ;
7401 PyObject * obj0 = 0 ;
7402 PyObject * obj1 = 0 ;
7403 char * kwnames[] = {
7404 (char *) "self",(char *) "num", NULL
7405 };
7406
7407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
7408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7409 if (!SWIG_IsOK(res1)) {
7410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7411 }
7412 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7413 ecode2 = SWIG_AsVal_int(obj1, &val2);
7414 if (!SWIG_IsOK(ecode2)) {
7415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
7416 }
7417 arg2 = static_cast< int >(val2);
7418 {
7419 PyThreadState* __tstate = wxPyBeginAllowThreads();
7420 wxIconLocation_SetIndex(arg1,arg2);
7421 wxPyEndAllowThreads(__tstate);
7422 if (PyErr_Occurred()) SWIG_fail;
7423 }
7424 resultobj = SWIG_Py_Void();
7425 return resultobj;
7426 fail:
7427 return NULL;
7428 }
7429
7430
7431 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7432 PyObject *resultobj = 0;
7433 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7434 int result;
7435 void *argp1 = 0 ;
7436 int res1 = 0 ;
7437 PyObject *swig_obj[1] ;
7438
7439 if (!args) SWIG_fail;
7440 swig_obj[0] = args;
7441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7442 if (!SWIG_IsOK(res1)) {
7443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7444 }
7445 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7446 {
7447 PyThreadState* __tstate = wxPyBeginAllowThreads();
7448 result = (int)wxIconLocation_GetIndex(arg1);
7449 wxPyEndAllowThreads(__tstate);
7450 if (PyErr_Occurred()) SWIG_fail;
7451 }
7452 resultobj = SWIG_From_int(static_cast< int >(result));
7453 return resultobj;
7454 fail:
7455 return NULL;
7456 }
7457
7458
7459 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7460 PyObject *obj;
7461 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7462 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
7463 return SWIG_Py_Void();
7464 }
7465
7466 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7467 return SWIG_Python_InitShadowInstance(args);
7468 }
7469
7470 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7471 PyObject *resultobj = 0;
7472 wxIconBundle *result = 0 ;
7473
7474 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
7475 {
7476 PyThreadState* __tstate = wxPyBeginAllowThreads();
7477 result = (wxIconBundle *)new wxIconBundle();
7478 wxPyEndAllowThreads(__tstate);
7479 if (PyErr_Occurred()) SWIG_fail;
7480 }
7481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
7482 return resultobj;
7483 fail:
7484 return NULL;
7485 }
7486
7487
7488 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7489 PyObject *resultobj = 0;
7490 wxString *arg1 = 0 ;
7491 long arg2 ;
7492 wxIconBundle *result = 0 ;
7493 bool temp1 = false ;
7494 long val2 ;
7495 int ecode2 = 0 ;
7496 PyObject * obj0 = 0 ;
7497 PyObject * obj1 = 0 ;
7498 char * kwnames[] = {
7499 (char *) "file",(char *) "type", NULL
7500 };
7501
7502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
7503 {
7504 arg1 = wxString_in_helper(obj0);
7505 if (arg1 == NULL) SWIG_fail;
7506 temp1 = true;
7507 }
7508 ecode2 = SWIG_AsVal_long(obj1, &val2);
7509 if (!SWIG_IsOK(ecode2)) {
7510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
7511 }
7512 arg2 = static_cast< long >(val2);
7513 {
7514 PyThreadState* __tstate = wxPyBeginAllowThreads();
7515 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
7516 wxPyEndAllowThreads(__tstate);
7517 if (PyErr_Occurred()) SWIG_fail;
7518 }
7519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7520 {
7521 if (temp1)
7522 delete arg1;
7523 }
7524 return resultobj;
7525 fail:
7526 {
7527 if (temp1)
7528 delete arg1;
7529 }
7530 return NULL;
7531 }
7532
7533
7534 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7535 PyObject *resultobj = 0;
7536 wxIcon *arg1 = 0 ;
7537 wxIconBundle *result = 0 ;
7538 void *argp1 = 0 ;
7539 int res1 = 0 ;
7540 PyObject * obj0 = 0 ;
7541 char * kwnames[] = {
7542 (char *) "icon", NULL
7543 };
7544
7545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
7546 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
7547 if (!SWIG_IsOK(res1)) {
7548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7549 }
7550 if (!argp1) {
7551 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7552 }
7553 arg1 = reinterpret_cast< wxIcon * >(argp1);
7554 {
7555 PyThreadState* __tstate = wxPyBeginAllowThreads();
7556 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
7557 wxPyEndAllowThreads(__tstate);
7558 if (PyErr_Occurred()) SWIG_fail;
7559 }
7560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7561 return resultobj;
7562 fail:
7563 return NULL;
7564 }
7565
7566
7567 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7568 PyObject *resultobj = 0;
7569 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7570 void *argp1 = 0 ;
7571 int res1 = 0 ;
7572 PyObject *swig_obj[1] ;
7573
7574 if (!args) SWIG_fail;
7575 swig_obj[0] = args;
7576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
7577 if (!SWIG_IsOK(res1)) {
7578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7579 }
7580 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7581 {
7582 PyThreadState* __tstate = wxPyBeginAllowThreads();
7583 delete arg1;
7584
7585 wxPyEndAllowThreads(__tstate);
7586 if (PyErr_Occurred()) SWIG_fail;
7587 }
7588 resultobj = SWIG_Py_Void();
7589 return resultobj;
7590 fail:
7591 return NULL;
7592 }
7593
7594
7595 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7596 PyObject *resultobj = 0;
7597 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7598 wxIcon *arg2 = 0 ;
7599 void *argp1 = 0 ;
7600 int res1 = 0 ;
7601 void *argp2 = 0 ;
7602 int res2 = 0 ;
7603 PyObject * obj0 = 0 ;
7604 PyObject * obj1 = 0 ;
7605 char * kwnames[] = {
7606 (char *) "self",(char *) "icon", NULL
7607 };
7608
7609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7611 if (!SWIG_IsOK(res1)) {
7612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7613 }
7614 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7615 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
7616 if (!SWIG_IsOK(res2)) {
7617 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7618 }
7619 if (!argp2) {
7620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7621 }
7622 arg2 = reinterpret_cast< wxIcon * >(argp2);
7623 {
7624 PyThreadState* __tstate = wxPyBeginAllowThreads();
7625 (arg1)->AddIcon((wxIcon const &)*arg2);
7626 wxPyEndAllowThreads(__tstate);
7627 if (PyErr_Occurred()) SWIG_fail;
7628 }
7629 resultobj = SWIG_Py_Void();
7630 return resultobj;
7631 fail:
7632 return NULL;
7633 }
7634
7635
7636 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7637 PyObject *resultobj = 0;
7638 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7639 wxString *arg2 = 0 ;
7640 long arg3 ;
7641 void *argp1 = 0 ;
7642 int res1 = 0 ;
7643 bool temp2 = false ;
7644 long val3 ;
7645 int ecode3 = 0 ;
7646 PyObject * obj0 = 0 ;
7647 PyObject * obj1 = 0 ;
7648 PyObject * obj2 = 0 ;
7649 char * kwnames[] = {
7650 (char *) "self",(char *) "file",(char *) "type", NULL
7651 };
7652
7653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7655 if (!SWIG_IsOK(res1)) {
7656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7657 }
7658 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7659 {
7660 arg2 = wxString_in_helper(obj1);
7661 if (arg2 == NULL) SWIG_fail;
7662 temp2 = true;
7663 }
7664 ecode3 = SWIG_AsVal_long(obj2, &val3);
7665 if (!SWIG_IsOK(ecode3)) {
7666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
7667 }
7668 arg3 = static_cast< long >(val3);
7669 {
7670 PyThreadState* __tstate = wxPyBeginAllowThreads();
7671 (arg1)->AddIcon((wxString const &)*arg2,arg3);
7672 wxPyEndAllowThreads(__tstate);
7673 if (PyErr_Occurred()) SWIG_fail;
7674 }
7675 resultobj = SWIG_Py_Void();
7676 {
7677 if (temp2)
7678 delete arg2;
7679 }
7680 return resultobj;
7681 fail:
7682 {
7683 if (temp2)
7684 delete arg2;
7685 }
7686 return NULL;
7687 }
7688
7689
7690 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7691 PyObject *resultobj = 0;
7692 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7693 wxSize *arg2 = 0 ;
7694 wxIcon *result = 0 ;
7695 void *argp1 = 0 ;
7696 int res1 = 0 ;
7697 wxSize temp2 ;
7698 PyObject * obj0 = 0 ;
7699 PyObject * obj1 = 0 ;
7700 char * kwnames[] = {
7701 (char *) "self",(char *) "size", NULL
7702 };
7703
7704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7706 if (!SWIG_IsOK(res1)) {
7707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
7708 }
7709 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7710 {
7711 arg2 = &temp2;
7712 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7713 }
7714 {
7715 PyThreadState* __tstate = wxPyBeginAllowThreads();
7716 {
7717 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
7718 result = (wxIcon *) &_result_ref;
7719 }
7720 wxPyEndAllowThreads(__tstate);
7721 if (PyErr_Occurred()) SWIG_fail;
7722 }
7723 {
7724 wxIcon* resultptr = new wxIcon(*result);
7725 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
7726 }
7727 return resultobj;
7728 fail:
7729 return NULL;
7730 }
7731
7732
7733 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7734 PyObject *obj;
7735 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7736 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
7737 return SWIG_Py_Void();
7738 }
7739
7740 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7741 return SWIG_Python_InitShadowInstance(args);
7742 }
7743
7744 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7745 PyObject *resultobj = 0;
7746 wxString *arg1 = 0 ;
7747 long arg2 ;
7748 int arg3 = (int) 0 ;
7749 int arg4 = (int) 0 ;
7750 wxCursor *result = 0 ;
7751 bool temp1 = false ;
7752 long val2 ;
7753 int ecode2 = 0 ;
7754 int val3 ;
7755 int ecode3 = 0 ;
7756 int val4 ;
7757 int ecode4 = 0 ;
7758 PyObject * obj0 = 0 ;
7759 PyObject * obj1 = 0 ;
7760 PyObject * obj2 = 0 ;
7761 PyObject * obj3 = 0 ;
7762 char * kwnames[] = {
7763 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
7764 };
7765
7766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7767 {
7768 arg1 = wxString_in_helper(obj0);
7769 if (arg1 == NULL) SWIG_fail;
7770 temp1 = true;
7771 }
7772 ecode2 = SWIG_AsVal_long(obj1, &val2);
7773 if (!SWIG_IsOK(ecode2)) {
7774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
7775 }
7776 arg2 = static_cast< long >(val2);
7777 if (obj2) {
7778 ecode3 = SWIG_AsVal_int(obj2, &val3);
7779 if (!SWIG_IsOK(ecode3)) {
7780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
7781 }
7782 arg3 = static_cast< int >(val3);
7783 }
7784 if (obj3) {
7785 ecode4 = SWIG_AsVal_int(obj3, &val4);
7786 if (!SWIG_IsOK(ecode4)) {
7787 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
7788 }
7789 arg4 = static_cast< int >(val4);
7790 }
7791 {
7792 if (!wxPyCheckForApp()) SWIG_fail;
7793 PyThreadState* __tstate = wxPyBeginAllowThreads();
7794 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
7795 wxPyEndAllowThreads(__tstate);
7796 if (PyErr_Occurred()) SWIG_fail;
7797 }
7798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
7799 {
7800 if (temp1)
7801 delete arg1;
7802 }
7803 return resultobj;
7804 fail:
7805 {
7806 if (temp1)
7807 delete arg1;
7808 }
7809 return NULL;
7810 }
7811
7812
7813 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7814 PyObject *resultobj = 0;
7815 wxCursor *arg1 = (wxCursor *) 0 ;
7816 void *argp1 = 0 ;
7817 int res1 = 0 ;
7818 PyObject *swig_obj[1] ;
7819
7820 if (!args) SWIG_fail;
7821 swig_obj[0] = args;
7822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
7823 if (!SWIG_IsOK(res1)) {
7824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
7825 }
7826 arg1 = reinterpret_cast< wxCursor * >(argp1);
7827 {
7828 PyThreadState* __tstate = wxPyBeginAllowThreads();
7829 delete arg1;
7830
7831 wxPyEndAllowThreads(__tstate);
7832 if (PyErr_Occurred()) SWIG_fail;
7833 }
7834 resultobj = SWIG_Py_Void();
7835 return resultobj;
7836 fail:
7837 return NULL;
7838 }
7839
7840
7841 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7842 PyObject *resultobj = 0;
7843 int arg1 ;
7844 wxCursor *result = 0 ;
7845 int val1 ;
7846 int ecode1 = 0 ;
7847 PyObject * obj0 = 0 ;
7848 char * kwnames[] = {
7849 (char *) "id", NULL
7850 };
7851
7852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
7853 ecode1 = SWIG_AsVal_int(obj0, &val1);
7854 if (!SWIG_IsOK(ecode1)) {
7855 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
7856 }
7857 arg1 = static_cast< int >(val1);
7858 {
7859 if (!wxPyCheckForApp()) SWIG_fail;
7860 PyThreadState* __tstate = wxPyBeginAllowThreads();
7861 result = (wxCursor *)new wxCursor(arg1);
7862 wxPyEndAllowThreads(__tstate);
7863 if (PyErr_Occurred()) SWIG_fail;
7864 }
7865 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7866 return resultobj;
7867 fail:
7868 return NULL;
7869 }
7870
7871
7872 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7873 PyObject *resultobj = 0;
7874 wxImage *arg1 = 0 ;
7875 wxCursor *result = 0 ;
7876 void *argp1 = 0 ;
7877 int res1 = 0 ;
7878 PyObject * obj0 = 0 ;
7879 char * kwnames[] = {
7880 (char *) "image", NULL
7881 };
7882
7883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
7884 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
7885 if (!SWIG_IsOK(res1)) {
7886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7887 }
7888 if (!argp1) {
7889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7890 }
7891 arg1 = reinterpret_cast< wxImage * >(argp1);
7892 {
7893 if (!wxPyCheckForApp()) SWIG_fail;
7894 PyThreadState* __tstate = wxPyBeginAllowThreads();
7895 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
7896 wxPyEndAllowThreads(__tstate);
7897 if (PyErr_Occurred()) SWIG_fail;
7898 }
7899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7900 return resultobj;
7901 fail:
7902 return NULL;
7903 }
7904
7905
7906 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7907 PyObject *resultobj = 0;
7908 wxCursor *arg1 = (wxCursor *) 0 ;
7909 long result;
7910 void *argp1 = 0 ;
7911 int res1 = 0 ;
7912 PyObject *swig_obj[1] ;
7913
7914 if (!args) SWIG_fail;
7915 swig_obj[0] = args;
7916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7917 if (!SWIG_IsOK(res1)) {
7918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
7919 }
7920 arg1 = reinterpret_cast< wxCursor * >(argp1);
7921 {
7922 PyThreadState* __tstate = wxPyBeginAllowThreads();
7923 result = (long)(arg1)->GetHandle();
7924 wxPyEndAllowThreads(__tstate);
7925 if (PyErr_Occurred()) SWIG_fail;
7926 }
7927 resultobj = SWIG_From_long(static_cast< long >(result));
7928 return resultobj;
7929 fail:
7930 return NULL;
7931 }
7932
7933
7934 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7935 PyObject *resultobj = 0;
7936 wxCursor *arg1 = (wxCursor *) 0 ;
7937 long arg2 ;
7938 void *argp1 = 0 ;
7939 int res1 = 0 ;
7940 long val2 ;
7941 int ecode2 = 0 ;
7942 PyObject * obj0 = 0 ;
7943 PyObject * obj1 = 0 ;
7944 char * kwnames[] = {
7945 (char *) "self",(char *) "handle", NULL
7946 };
7947
7948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
7949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7950 if (!SWIG_IsOK(res1)) {
7951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
7952 }
7953 arg1 = reinterpret_cast< wxCursor * >(argp1);
7954 ecode2 = SWIG_AsVal_long(obj1, &val2);
7955 if (!SWIG_IsOK(ecode2)) {
7956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
7957 }
7958 arg2 = static_cast< long >(val2);
7959 {
7960 PyThreadState* __tstate = wxPyBeginAllowThreads();
7961 wxCursor_SetHandle(arg1,arg2);
7962 wxPyEndAllowThreads(__tstate);
7963 if (PyErr_Occurred()) SWIG_fail;
7964 }
7965 resultobj = SWIG_Py_Void();
7966 return resultobj;
7967 fail:
7968 return NULL;
7969 }
7970
7971
7972 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7973 PyObject *resultobj = 0;
7974 wxCursor *arg1 = (wxCursor *) 0 ;
7975 bool result;
7976 void *argp1 = 0 ;
7977 int res1 = 0 ;
7978 PyObject *swig_obj[1] ;
7979
7980 if (!args) SWIG_fail;
7981 swig_obj[0] = args;
7982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7983 if (!SWIG_IsOK(res1)) {
7984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
7985 }
7986 arg1 = reinterpret_cast< wxCursor * >(argp1);
7987 {
7988 PyThreadState* __tstate = wxPyBeginAllowThreads();
7989 result = (bool)(arg1)->Ok();
7990 wxPyEndAllowThreads(__tstate);
7991 if (PyErr_Occurred()) SWIG_fail;
7992 }
7993 {
7994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7995 }
7996 return resultobj;
7997 fail:
7998 return NULL;
7999 }
8000
8001
8002 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8003 PyObject *resultobj = 0;
8004 wxCursor *arg1 = (wxCursor *) 0 ;
8005 int result;
8006 void *argp1 = 0 ;
8007 int res1 = 0 ;
8008 PyObject *swig_obj[1] ;
8009
8010 if (!args) SWIG_fail;
8011 swig_obj[0] = args;
8012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8013 if (!SWIG_IsOK(res1)) {
8014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
8015 }
8016 arg1 = reinterpret_cast< wxCursor * >(argp1);
8017 {
8018 PyThreadState* __tstate = wxPyBeginAllowThreads();
8019 result = (int)(arg1)->GetWidth();
8020 wxPyEndAllowThreads(__tstate);
8021 if (PyErr_Occurred()) SWIG_fail;
8022 }
8023 resultobj = SWIG_From_int(static_cast< int >(result));
8024 return resultobj;
8025 fail:
8026 return NULL;
8027 }
8028
8029
8030 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8031 PyObject *resultobj = 0;
8032 wxCursor *arg1 = (wxCursor *) 0 ;
8033 int result;
8034 void *argp1 = 0 ;
8035 int res1 = 0 ;
8036 PyObject *swig_obj[1] ;
8037
8038 if (!args) SWIG_fail;
8039 swig_obj[0] = args;
8040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8041 if (!SWIG_IsOK(res1)) {
8042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
8043 }
8044 arg1 = reinterpret_cast< wxCursor * >(argp1);
8045 {
8046 PyThreadState* __tstate = wxPyBeginAllowThreads();
8047 result = (int)(arg1)->GetHeight();
8048 wxPyEndAllowThreads(__tstate);
8049 if (PyErr_Occurred()) SWIG_fail;
8050 }
8051 resultobj = SWIG_From_int(static_cast< int >(result));
8052 return resultobj;
8053 fail:
8054 return NULL;
8055 }
8056
8057
8058 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8059 PyObject *resultobj = 0;
8060 wxCursor *arg1 = (wxCursor *) 0 ;
8061 int result;
8062 void *argp1 = 0 ;
8063 int res1 = 0 ;
8064 PyObject *swig_obj[1] ;
8065
8066 if (!args) SWIG_fail;
8067 swig_obj[0] = args;
8068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8069 if (!SWIG_IsOK(res1)) {
8070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
8071 }
8072 arg1 = reinterpret_cast< wxCursor * >(argp1);
8073 {
8074 PyThreadState* __tstate = wxPyBeginAllowThreads();
8075 result = (int)(arg1)->GetDepth();
8076 wxPyEndAllowThreads(__tstate);
8077 if (PyErr_Occurred()) SWIG_fail;
8078 }
8079 resultobj = SWIG_From_int(static_cast< int >(result));
8080 return resultobj;
8081 fail:
8082 return NULL;
8083 }
8084
8085
8086 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8087 PyObject *resultobj = 0;
8088 wxCursor *arg1 = (wxCursor *) 0 ;
8089 int arg2 ;
8090 void *argp1 = 0 ;
8091 int res1 = 0 ;
8092 int val2 ;
8093 int ecode2 = 0 ;
8094 PyObject * obj0 = 0 ;
8095 PyObject * obj1 = 0 ;
8096 char * kwnames[] = {
8097 (char *) "self",(char *) "w", NULL
8098 };
8099
8100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
8101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8102 if (!SWIG_IsOK(res1)) {
8103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
8104 }
8105 arg1 = reinterpret_cast< wxCursor * >(argp1);
8106 ecode2 = SWIG_AsVal_int(obj1, &val2);
8107 if (!SWIG_IsOK(ecode2)) {
8108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
8109 }
8110 arg2 = static_cast< int >(val2);
8111 {
8112 PyThreadState* __tstate = wxPyBeginAllowThreads();
8113 (arg1)->SetWidth(arg2);
8114 wxPyEndAllowThreads(__tstate);
8115 if (PyErr_Occurred()) SWIG_fail;
8116 }
8117 resultobj = SWIG_Py_Void();
8118 return resultobj;
8119 fail:
8120 return NULL;
8121 }
8122
8123
8124 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8125 PyObject *resultobj = 0;
8126 wxCursor *arg1 = (wxCursor *) 0 ;
8127 int arg2 ;
8128 void *argp1 = 0 ;
8129 int res1 = 0 ;
8130 int val2 ;
8131 int ecode2 = 0 ;
8132 PyObject * obj0 = 0 ;
8133 PyObject * obj1 = 0 ;
8134 char * kwnames[] = {
8135 (char *) "self",(char *) "h", NULL
8136 };
8137
8138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
8139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8140 if (!SWIG_IsOK(res1)) {
8141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
8142 }
8143 arg1 = reinterpret_cast< wxCursor * >(argp1);
8144 ecode2 = SWIG_AsVal_int(obj1, &val2);
8145 if (!SWIG_IsOK(ecode2)) {
8146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
8147 }
8148 arg2 = static_cast< int >(val2);
8149 {
8150 PyThreadState* __tstate = wxPyBeginAllowThreads();
8151 (arg1)->SetHeight(arg2);
8152 wxPyEndAllowThreads(__tstate);
8153 if (PyErr_Occurred()) SWIG_fail;
8154 }
8155 resultobj = SWIG_Py_Void();
8156 return resultobj;
8157 fail:
8158 return NULL;
8159 }
8160
8161
8162 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8163 PyObject *resultobj = 0;
8164 wxCursor *arg1 = (wxCursor *) 0 ;
8165 int arg2 ;
8166 void *argp1 = 0 ;
8167 int res1 = 0 ;
8168 int val2 ;
8169 int ecode2 = 0 ;
8170 PyObject * obj0 = 0 ;
8171 PyObject * obj1 = 0 ;
8172 char * kwnames[] = {
8173 (char *) "self",(char *) "d", NULL
8174 };
8175
8176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
8177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8178 if (!SWIG_IsOK(res1)) {
8179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
8180 }
8181 arg1 = reinterpret_cast< wxCursor * >(argp1);
8182 ecode2 = SWIG_AsVal_int(obj1, &val2);
8183 if (!SWIG_IsOK(ecode2)) {
8184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
8185 }
8186 arg2 = static_cast< int >(val2);
8187 {
8188 PyThreadState* __tstate = wxPyBeginAllowThreads();
8189 (arg1)->SetDepth(arg2);
8190 wxPyEndAllowThreads(__tstate);
8191 if (PyErr_Occurred()) SWIG_fail;
8192 }
8193 resultobj = SWIG_Py_Void();
8194 return resultobj;
8195 fail:
8196 return NULL;
8197 }
8198
8199
8200 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8201 PyObject *resultobj = 0;
8202 wxCursor *arg1 = (wxCursor *) 0 ;
8203 wxSize *arg2 = 0 ;
8204 void *argp1 = 0 ;
8205 int res1 = 0 ;
8206 wxSize temp2 ;
8207 PyObject * obj0 = 0 ;
8208 PyObject * obj1 = 0 ;
8209 char * kwnames[] = {
8210 (char *) "self",(char *) "size", NULL
8211 };
8212
8213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
8214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8215 if (!SWIG_IsOK(res1)) {
8216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
8217 }
8218 arg1 = reinterpret_cast< wxCursor * >(argp1);
8219 {
8220 arg2 = &temp2;
8221 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
8222 }
8223 {
8224 PyThreadState* __tstate = wxPyBeginAllowThreads();
8225 (arg1)->SetSize((wxSize const &)*arg2);
8226 wxPyEndAllowThreads(__tstate);
8227 if (PyErr_Occurred()) SWIG_fail;
8228 }
8229 resultobj = SWIG_Py_Void();
8230 return resultobj;
8231 fail:
8232 return NULL;
8233 }
8234
8235
8236 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8237 PyObject *obj;
8238 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8239 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
8240 return SWIG_Py_Void();
8241 }
8242
8243 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8244 return SWIG_Python_InitShadowInstance(args);
8245 }
8246
8247 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8248 PyObject *resultobj = 0;
8249 int arg1 = (int) 0 ;
8250 int arg2 = (int) 0 ;
8251 int arg3 = (int) 0 ;
8252 int arg4 = (int) 0 ;
8253 wxRegion *result = 0 ;
8254 int val1 ;
8255 int ecode1 = 0 ;
8256 int val2 ;
8257 int ecode2 = 0 ;
8258 int val3 ;
8259 int ecode3 = 0 ;
8260 int val4 ;
8261 int ecode4 = 0 ;
8262 PyObject * obj0 = 0 ;
8263 PyObject * obj1 = 0 ;
8264 PyObject * obj2 = 0 ;
8265 PyObject * obj3 = 0 ;
8266 char * kwnames[] = {
8267 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8268 };
8269
8270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8271 if (obj0) {
8272 ecode1 = SWIG_AsVal_int(obj0, &val1);
8273 if (!SWIG_IsOK(ecode1)) {
8274 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
8275 }
8276 arg1 = static_cast< int >(val1);
8277 }
8278 if (obj1) {
8279 ecode2 = SWIG_AsVal_int(obj1, &val2);
8280 if (!SWIG_IsOK(ecode2)) {
8281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
8282 }
8283 arg2 = static_cast< int >(val2);
8284 }
8285 if (obj2) {
8286 ecode3 = SWIG_AsVal_int(obj2, &val3);
8287 if (!SWIG_IsOK(ecode3)) {
8288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
8289 }
8290 arg3 = static_cast< int >(val3);
8291 }
8292 if (obj3) {
8293 ecode4 = SWIG_AsVal_int(obj3, &val4);
8294 if (!SWIG_IsOK(ecode4)) {
8295 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
8296 }
8297 arg4 = static_cast< int >(val4);
8298 }
8299 {
8300 if (!wxPyCheckForApp()) SWIG_fail;
8301 PyThreadState* __tstate = wxPyBeginAllowThreads();
8302 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
8303 wxPyEndAllowThreads(__tstate);
8304 if (PyErr_Occurred()) SWIG_fail;
8305 }
8306 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
8307 return resultobj;
8308 fail:
8309 return NULL;
8310 }
8311
8312
8313 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8314 PyObject *resultobj = 0;
8315 wxBitmap *arg1 = 0 ;
8316 wxRegion *result = 0 ;
8317 void *argp1 = 0 ;
8318 int res1 = 0 ;
8319 PyObject * obj0 = 0 ;
8320 char * kwnames[] = {
8321 (char *) "bmp", NULL
8322 };
8323
8324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
8325 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8326 if (!SWIG_IsOK(res1)) {
8327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8328 }
8329 if (!argp1) {
8330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8331 }
8332 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8333 {
8334 if (!wxPyCheckForApp()) SWIG_fail;
8335 PyThreadState* __tstate = wxPyBeginAllowThreads();
8336 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
8337 wxPyEndAllowThreads(__tstate);
8338 if (PyErr_Occurred()) SWIG_fail;
8339 }
8340 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8341 return resultobj;
8342 fail:
8343 return NULL;
8344 }
8345
8346
8347 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8348 PyObject *resultobj = 0;
8349 wxBitmap *arg1 = 0 ;
8350 wxColour *arg2 = 0 ;
8351 int arg3 = (int) 0 ;
8352 wxRegion *result = 0 ;
8353 void *argp1 = 0 ;
8354 int res1 = 0 ;
8355 wxColour temp2 ;
8356 int val3 ;
8357 int ecode3 = 0 ;
8358 PyObject * obj0 = 0 ;
8359 PyObject * obj1 = 0 ;
8360 PyObject * obj2 = 0 ;
8361 char * kwnames[] = {
8362 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
8363 };
8364
8365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8366 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8367 if (!SWIG_IsOK(res1)) {
8368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8369 }
8370 if (!argp1) {
8371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8372 }
8373 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8374 {
8375 arg2 = &temp2;
8376 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8377 }
8378 if (obj2) {
8379 ecode3 = SWIG_AsVal_int(obj2, &val3);
8380 if (!SWIG_IsOK(ecode3)) {
8381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
8382 }
8383 arg3 = static_cast< int >(val3);
8384 }
8385 {
8386 if (!wxPyCheckForApp()) SWIG_fail;
8387 PyThreadState* __tstate = wxPyBeginAllowThreads();
8388 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
8389 wxPyEndAllowThreads(__tstate);
8390 if (PyErr_Occurred()) SWIG_fail;
8391 }
8392 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8393 return resultobj;
8394 fail:
8395 return NULL;
8396 }
8397
8398
8399 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8400 PyObject *resultobj = 0;
8401 int arg1 ;
8402 wxPoint *arg2 = (wxPoint *) 0 ;
8403 int arg3 = (int) wxWINDING_RULE ;
8404 wxRegion *result = 0 ;
8405 int val3 ;
8406 int ecode3 = 0 ;
8407 PyObject * obj0 = 0 ;
8408 PyObject * obj1 = 0 ;
8409 char * kwnames[] = {
8410 (char *) "points",(char *) "fillStyle", NULL
8411 };
8412
8413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
8414 {
8415 arg2 = wxPoint_LIST_helper(obj0, &arg1);
8416 if (arg2 == NULL) SWIG_fail;
8417 }
8418 if (obj1) {
8419 ecode3 = SWIG_AsVal_int(obj1, &val3);
8420 if (!SWIG_IsOK(ecode3)) {
8421 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
8422 }
8423 arg3 = static_cast< int >(val3);
8424 }
8425 {
8426 if (!wxPyCheckForApp()) SWIG_fail;
8427 PyThreadState* __tstate = wxPyBeginAllowThreads();
8428 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
8429 wxPyEndAllowThreads(__tstate);
8430 if (PyErr_Occurred()) SWIG_fail;
8431 }
8432 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8433 {
8434 if (arg2) delete [] arg2;
8435 }
8436 return resultobj;
8437 fail:
8438 {
8439 if (arg2) delete [] arg2;
8440 }
8441 return NULL;
8442 }
8443
8444
8445 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8446 PyObject *resultobj = 0;
8447 wxRegion *arg1 = (wxRegion *) 0 ;
8448 void *argp1 = 0 ;
8449 int res1 = 0 ;
8450 PyObject *swig_obj[1] ;
8451
8452 if (!args) SWIG_fail;
8453 swig_obj[0] = args;
8454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
8455 if (!SWIG_IsOK(res1)) {
8456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
8457 }
8458 arg1 = reinterpret_cast< wxRegion * >(argp1);
8459 {
8460 PyThreadState* __tstate = wxPyBeginAllowThreads();
8461 delete arg1;
8462
8463 wxPyEndAllowThreads(__tstate);
8464 if (PyErr_Occurred()) SWIG_fail;
8465 }
8466 resultobj = SWIG_Py_Void();
8467 return resultobj;
8468 fail:
8469 return NULL;
8470 }
8471
8472
8473 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8474 PyObject *resultobj = 0;
8475 wxRegion *arg1 = (wxRegion *) 0 ;
8476 void *argp1 = 0 ;
8477 int res1 = 0 ;
8478 PyObject *swig_obj[1] ;
8479
8480 if (!args) SWIG_fail;
8481 swig_obj[0] = args;
8482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8483 if (!SWIG_IsOK(res1)) {
8484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
8485 }
8486 arg1 = reinterpret_cast< wxRegion * >(argp1);
8487 {
8488 PyThreadState* __tstate = wxPyBeginAllowThreads();
8489 (arg1)->Clear();
8490 wxPyEndAllowThreads(__tstate);
8491 if (PyErr_Occurred()) SWIG_fail;
8492 }
8493 resultobj = SWIG_Py_Void();
8494 return resultobj;
8495 fail:
8496 return NULL;
8497 }
8498
8499
8500 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8501 PyObject *resultobj = 0;
8502 wxRegion *arg1 = (wxRegion *) 0 ;
8503 int arg2 ;
8504 int arg3 ;
8505 bool result;
8506 void *argp1 = 0 ;
8507 int res1 = 0 ;
8508 int val2 ;
8509 int ecode2 = 0 ;
8510 int val3 ;
8511 int ecode3 = 0 ;
8512 PyObject * obj0 = 0 ;
8513 PyObject * obj1 = 0 ;
8514 PyObject * obj2 = 0 ;
8515 char * kwnames[] = {
8516 (char *) "self",(char *) "x",(char *) "y", NULL
8517 };
8518
8519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8521 if (!SWIG_IsOK(res1)) {
8522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
8523 }
8524 arg1 = reinterpret_cast< wxRegion * >(argp1);
8525 ecode2 = SWIG_AsVal_int(obj1, &val2);
8526 if (!SWIG_IsOK(ecode2)) {
8527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
8528 }
8529 arg2 = static_cast< int >(val2);
8530 ecode3 = SWIG_AsVal_int(obj2, &val3);
8531 if (!SWIG_IsOK(ecode3)) {
8532 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
8533 }
8534 arg3 = static_cast< int >(val3);
8535 {
8536 PyThreadState* __tstate = wxPyBeginAllowThreads();
8537 result = (bool)(arg1)->Offset(arg2,arg3);
8538 wxPyEndAllowThreads(__tstate);
8539 if (PyErr_Occurred()) SWIG_fail;
8540 }
8541 {
8542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8543 }
8544 return resultobj;
8545 fail:
8546 return NULL;
8547 }
8548
8549
8550 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8551 PyObject *resultobj = 0;
8552 wxRegion *arg1 = (wxRegion *) 0 ;
8553 int arg2 ;
8554 int arg3 ;
8555 wxRegionContain result;
8556 void *argp1 = 0 ;
8557 int res1 = 0 ;
8558 int val2 ;
8559 int ecode2 = 0 ;
8560 int val3 ;
8561 int ecode3 = 0 ;
8562 PyObject * obj0 = 0 ;
8563 PyObject * obj1 = 0 ;
8564 PyObject * obj2 = 0 ;
8565 char * kwnames[] = {
8566 (char *) "self",(char *) "x",(char *) "y", NULL
8567 };
8568
8569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8571 if (!SWIG_IsOK(res1)) {
8572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
8573 }
8574 arg1 = reinterpret_cast< wxRegion * >(argp1);
8575 ecode2 = SWIG_AsVal_int(obj1, &val2);
8576 if (!SWIG_IsOK(ecode2)) {
8577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
8578 }
8579 arg2 = static_cast< int >(val2);
8580 ecode3 = SWIG_AsVal_int(obj2, &val3);
8581 if (!SWIG_IsOK(ecode3)) {
8582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
8583 }
8584 arg3 = static_cast< int >(val3);
8585 {
8586 PyThreadState* __tstate = wxPyBeginAllowThreads();
8587 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
8588 wxPyEndAllowThreads(__tstate);
8589 if (PyErr_Occurred()) SWIG_fail;
8590 }
8591 resultobj = SWIG_From_int(static_cast< int >(result));
8592 return resultobj;
8593 fail:
8594 return NULL;
8595 }
8596
8597
8598 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8599 PyObject *resultobj = 0;
8600 wxRegion *arg1 = (wxRegion *) 0 ;
8601 wxPoint *arg2 = 0 ;
8602 wxRegionContain result;
8603 void *argp1 = 0 ;
8604 int res1 = 0 ;
8605 wxPoint temp2 ;
8606 PyObject * obj0 = 0 ;
8607 PyObject * obj1 = 0 ;
8608 char * kwnames[] = {
8609 (char *) "self",(char *) "pt", NULL
8610 };
8611
8612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
8613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8614 if (!SWIG_IsOK(res1)) {
8615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
8616 }
8617 arg1 = reinterpret_cast< wxRegion * >(argp1);
8618 {
8619 arg2 = &temp2;
8620 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8621 }
8622 {
8623 PyThreadState* __tstate = wxPyBeginAllowThreads();
8624 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
8625 wxPyEndAllowThreads(__tstate);
8626 if (PyErr_Occurred()) SWIG_fail;
8627 }
8628 resultobj = SWIG_From_int(static_cast< int >(result));
8629 return resultobj;
8630 fail:
8631 return NULL;
8632 }
8633
8634
8635 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8636 PyObject *resultobj = 0;
8637 wxRegion *arg1 = (wxRegion *) 0 ;
8638 wxRect *arg2 = 0 ;
8639 wxRegionContain result;
8640 void *argp1 = 0 ;
8641 int res1 = 0 ;
8642 wxRect temp2 ;
8643 PyObject * obj0 = 0 ;
8644 PyObject * obj1 = 0 ;
8645 char * kwnames[] = {
8646 (char *) "self",(char *) "rect", NULL
8647 };
8648
8649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
8650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8651 if (!SWIG_IsOK(res1)) {
8652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8653 }
8654 arg1 = reinterpret_cast< wxRegion * >(argp1);
8655 {
8656 arg2 = &temp2;
8657 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8658 }
8659 {
8660 PyThreadState* __tstate = wxPyBeginAllowThreads();
8661 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
8662 wxPyEndAllowThreads(__tstate);
8663 if (PyErr_Occurred()) SWIG_fail;
8664 }
8665 resultobj = SWIG_From_int(static_cast< int >(result));
8666 return resultobj;
8667 fail:
8668 return NULL;
8669 }
8670
8671
8672 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8673 PyObject *resultobj = 0;
8674 wxRegion *arg1 = (wxRegion *) 0 ;
8675 int arg2 ;
8676 int arg3 ;
8677 int arg4 ;
8678 int arg5 ;
8679 wxRegionContain result;
8680 void *argp1 = 0 ;
8681 int res1 = 0 ;
8682 int val2 ;
8683 int ecode2 = 0 ;
8684 int val3 ;
8685 int ecode3 = 0 ;
8686 int val4 ;
8687 int ecode4 = 0 ;
8688 int val5 ;
8689 int ecode5 = 0 ;
8690 PyObject * obj0 = 0 ;
8691 PyObject * obj1 = 0 ;
8692 PyObject * obj2 = 0 ;
8693 PyObject * obj3 = 0 ;
8694 PyObject * obj4 = 0 ;
8695 char * kwnames[] = {
8696 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
8697 };
8698
8699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8701 if (!SWIG_IsOK(res1)) {
8702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
8703 }
8704 arg1 = reinterpret_cast< wxRegion * >(argp1);
8705 ecode2 = SWIG_AsVal_int(obj1, &val2);
8706 if (!SWIG_IsOK(ecode2)) {
8707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
8708 }
8709 arg2 = static_cast< int >(val2);
8710 ecode3 = SWIG_AsVal_int(obj2, &val3);
8711 if (!SWIG_IsOK(ecode3)) {
8712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
8713 }
8714 arg3 = static_cast< int >(val3);
8715 ecode4 = SWIG_AsVal_int(obj3, &val4);
8716 if (!SWIG_IsOK(ecode4)) {
8717 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
8718 }
8719 arg4 = static_cast< int >(val4);
8720 ecode5 = SWIG_AsVal_int(obj4, &val5);
8721 if (!SWIG_IsOK(ecode5)) {
8722 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
8723 }
8724 arg5 = static_cast< int >(val5);
8725 {
8726 PyThreadState* __tstate = wxPyBeginAllowThreads();
8727 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
8728 wxPyEndAllowThreads(__tstate);
8729 if (PyErr_Occurred()) SWIG_fail;
8730 }
8731 resultobj = SWIG_From_int(static_cast< int >(result));
8732 return resultobj;
8733 fail:
8734 return NULL;
8735 }
8736
8737
8738 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8739 PyObject *resultobj = 0;
8740 wxRegion *arg1 = (wxRegion *) 0 ;
8741 wxRect result;
8742 void *argp1 = 0 ;
8743 int res1 = 0 ;
8744 PyObject *swig_obj[1] ;
8745
8746 if (!args) SWIG_fail;
8747 swig_obj[0] = args;
8748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8749 if (!SWIG_IsOK(res1)) {
8750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
8751 }
8752 arg1 = reinterpret_cast< wxRegion * >(argp1);
8753 {
8754 PyThreadState* __tstate = wxPyBeginAllowThreads();
8755 result = (arg1)->GetBox();
8756 wxPyEndAllowThreads(__tstate);
8757 if (PyErr_Occurred()) SWIG_fail;
8758 }
8759 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
8760 return resultobj;
8761 fail:
8762 return NULL;
8763 }
8764
8765
8766 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8767 PyObject *resultobj = 0;
8768 wxRegion *arg1 = (wxRegion *) 0 ;
8769 int arg2 ;
8770 int arg3 ;
8771 int arg4 ;
8772 int arg5 ;
8773 bool result;
8774 void *argp1 = 0 ;
8775 int res1 = 0 ;
8776 int val2 ;
8777 int ecode2 = 0 ;
8778 int val3 ;
8779 int ecode3 = 0 ;
8780 int val4 ;
8781 int ecode4 = 0 ;
8782 int val5 ;
8783 int ecode5 = 0 ;
8784 PyObject * obj0 = 0 ;
8785 PyObject * obj1 = 0 ;
8786 PyObject * obj2 = 0 ;
8787 PyObject * obj3 = 0 ;
8788 PyObject * obj4 = 0 ;
8789 char * kwnames[] = {
8790 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8791 };
8792
8793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8795 if (!SWIG_IsOK(res1)) {
8796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
8797 }
8798 arg1 = reinterpret_cast< wxRegion * >(argp1);
8799 ecode2 = SWIG_AsVal_int(obj1, &val2);
8800 if (!SWIG_IsOK(ecode2)) {
8801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
8802 }
8803 arg2 = static_cast< int >(val2);
8804 ecode3 = SWIG_AsVal_int(obj2, &val3);
8805 if (!SWIG_IsOK(ecode3)) {
8806 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
8807 }
8808 arg3 = static_cast< int >(val3);
8809 ecode4 = SWIG_AsVal_int(obj3, &val4);
8810 if (!SWIG_IsOK(ecode4)) {
8811 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
8812 }
8813 arg4 = static_cast< int >(val4);
8814 ecode5 = SWIG_AsVal_int(obj4, &val5);
8815 if (!SWIG_IsOK(ecode5)) {
8816 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
8817 }
8818 arg5 = static_cast< int >(val5);
8819 {
8820 PyThreadState* __tstate = wxPyBeginAllowThreads();
8821 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
8822 wxPyEndAllowThreads(__tstate);
8823 if (PyErr_Occurred()) SWIG_fail;
8824 }
8825 {
8826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8827 }
8828 return resultobj;
8829 fail:
8830 return NULL;
8831 }
8832
8833
8834 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8835 PyObject *resultobj = 0;
8836 wxRegion *arg1 = (wxRegion *) 0 ;
8837 wxRect *arg2 = 0 ;
8838 bool result;
8839 void *argp1 = 0 ;
8840 int res1 = 0 ;
8841 wxRect temp2 ;
8842 PyObject * obj0 = 0 ;
8843 PyObject * obj1 = 0 ;
8844 char * kwnames[] = {
8845 (char *) "self",(char *) "rect", NULL
8846 };
8847
8848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8850 if (!SWIG_IsOK(res1)) {
8851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8852 }
8853 arg1 = reinterpret_cast< wxRegion * >(argp1);
8854 {
8855 arg2 = &temp2;
8856 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8857 }
8858 {
8859 PyThreadState* __tstate = wxPyBeginAllowThreads();
8860 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
8861 wxPyEndAllowThreads(__tstate);
8862 if (PyErr_Occurred()) SWIG_fail;
8863 }
8864 {
8865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8866 }
8867 return resultobj;
8868 fail:
8869 return NULL;
8870 }
8871
8872
8873 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8874 PyObject *resultobj = 0;
8875 wxRegion *arg1 = (wxRegion *) 0 ;
8876 wxRegion *arg2 = 0 ;
8877 bool result;
8878 void *argp1 = 0 ;
8879 int res1 = 0 ;
8880 void *argp2 = 0 ;
8881 int res2 = 0 ;
8882 PyObject * obj0 = 0 ;
8883 PyObject * obj1 = 0 ;
8884 char * kwnames[] = {
8885 (char *) "self",(char *) "region", NULL
8886 };
8887
8888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8890 if (!SWIG_IsOK(res1)) {
8891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8892 }
8893 arg1 = reinterpret_cast< wxRegion * >(argp1);
8894 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8895 if (!SWIG_IsOK(res2)) {
8896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8897 }
8898 if (!argp2) {
8899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8900 }
8901 arg2 = reinterpret_cast< wxRegion * >(argp2);
8902 {
8903 PyThreadState* __tstate = wxPyBeginAllowThreads();
8904 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
8905 wxPyEndAllowThreads(__tstate);
8906 if (PyErr_Occurred()) SWIG_fail;
8907 }
8908 {
8909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8910 }
8911 return resultobj;
8912 fail:
8913 return NULL;
8914 }
8915
8916
8917 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8918 PyObject *resultobj = 0;
8919 wxRegion *arg1 = (wxRegion *) 0 ;
8920 bool result;
8921 void *argp1 = 0 ;
8922 int res1 = 0 ;
8923 PyObject *swig_obj[1] ;
8924
8925 if (!args) SWIG_fail;
8926 swig_obj[0] = args;
8927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8928 if (!SWIG_IsOK(res1)) {
8929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
8930 }
8931 arg1 = reinterpret_cast< wxRegion * >(argp1);
8932 {
8933 PyThreadState* __tstate = wxPyBeginAllowThreads();
8934 result = (bool)(arg1)->IsEmpty();
8935 wxPyEndAllowThreads(__tstate);
8936 if (PyErr_Occurred()) SWIG_fail;
8937 }
8938 {
8939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8940 }
8941 return resultobj;
8942 fail:
8943 return NULL;
8944 }
8945
8946
8947 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8948 PyObject *resultobj = 0;
8949 wxRegion *arg1 = (wxRegion *) 0 ;
8950 int arg2 ;
8951 int arg3 ;
8952 int arg4 ;
8953 int arg5 ;
8954 bool result;
8955 void *argp1 = 0 ;
8956 int res1 = 0 ;
8957 int val2 ;
8958 int ecode2 = 0 ;
8959 int val3 ;
8960 int ecode3 = 0 ;
8961 int val4 ;
8962 int ecode4 = 0 ;
8963 int val5 ;
8964 int ecode5 = 0 ;
8965 PyObject * obj0 = 0 ;
8966 PyObject * obj1 = 0 ;
8967 PyObject * obj2 = 0 ;
8968 PyObject * obj3 = 0 ;
8969 PyObject * obj4 = 0 ;
8970 char * kwnames[] = {
8971 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8972 };
8973
8974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8976 if (!SWIG_IsOK(res1)) {
8977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
8978 }
8979 arg1 = reinterpret_cast< wxRegion * >(argp1);
8980 ecode2 = SWIG_AsVal_int(obj1, &val2);
8981 if (!SWIG_IsOK(ecode2)) {
8982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
8983 }
8984 arg2 = static_cast< int >(val2);
8985 ecode3 = SWIG_AsVal_int(obj2, &val3);
8986 if (!SWIG_IsOK(ecode3)) {
8987 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
8988 }
8989 arg3 = static_cast< int >(val3);
8990 ecode4 = SWIG_AsVal_int(obj3, &val4);
8991 if (!SWIG_IsOK(ecode4)) {
8992 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
8993 }
8994 arg4 = static_cast< int >(val4);
8995 ecode5 = SWIG_AsVal_int(obj4, &val5);
8996 if (!SWIG_IsOK(ecode5)) {
8997 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
8998 }
8999 arg5 = static_cast< int >(val5);
9000 {
9001 PyThreadState* __tstate = wxPyBeginAllowThreads();
9002 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
9003 wxPyEndAllowThreads(__tstate);
9004 if (PyErr_Occurred()) SWIG_fail;
9005 }
9006 {
9007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9008 }
9009 return resultobj;
9010 fail:
9011 return NULL;
9012 }
9013
9014
9015 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9016 PyObject *resultobj = 0;
9017 wxRegion *arg1 = (wxRegion *) 0 ;
9018 wxRect *arg2 = 0 ;
9019 bool result;
9020 void *argp1 = 0 ;
9021 int res1 = 0 ;
9022 wxRect temp2 ;
9023 PyObject * obj0 = 0 ;
9024 PyObject * obj1 = 0 ;
9025 char * kwnames[] = {
9026 (char *) "self",(char *) "rect", NULL
9027 };
9028
9029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
9030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9031 if (!SWIG_IsOK(res1)) {
9032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9033 }
9034 arg1 = reinterpret_cast< wxRegion * >(argp1);
9035 {
9036 arg2 = &temp2;
9037 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9038 }
9039 {
9040 PyThreadState* __tstate = wxPyBeginAllowThreads();
9041 result = (bool)(arg1)->Union((wxRect const &)*arg2);
9042 wxPyEndAllowThreads(__tstate);
9043 if (PyErr_Occurred()) SWIG_fail;
9044 }
9045 {
9046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9047 }
9048 return resultobj;
9049 fail:
9050 return NULL;
9051 }
9052
9053
9054 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9055 PyObject *resultobj = 0;
9056 wxRegion *arg1 = (wxRegion *) 0 ;
9057 wxRegion *arg2 = 0 ;
9058 bool result;
9059 void *argp1 = 0 ;
9060 int res1 = 0 ;
9061 void *argp2 = 0 ;
9062 int res2 = 0 ;
9063 PyObject * obj0 = 0 ;
9064 PyObject * obj1 = 0 ;
9065 char * kwnames[] = {
9066 (char *) "self",(char *) "region", NULL
9067 };
9068
9069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9071 if (!SWIG_IsOK(res1)) {
9072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9073 }
9074 arg1 = reinterpret_cast< wxRegion * >(argp1);
9075 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9076 if (!SWIG_IsOK(res2)) {
9077 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9078 }
9079 if (!argp2) {
9080 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9081 }
9082 arg2 = reinterpret_cast< wxRegion * >(argp2);
9083 {
9084 PyThreadState* __tstate = wxPyBeginAllowThreads();
9085 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
9086 wxPyEndAllowThreads(__tstate);
9087 if (PyErr_Occurred()) SWIG_fail;
9088 }
9089 {
9090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9091 }
9092 return resultobj;
9093 fail:
9094 return NULL;
9095 }
9096
9097
9098 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9099 PyObject *resultobj = 0;
9100 wxRegion *arg1 = (wxRegion *) 0 ;
9101 int arg2 ;
9102 int arg3 ;
9103 int arg4 ;
9104 int arg5 ;
9105 bool result;
9106 void *argp1 = 0 ;
9107 int res1 = 0 ;
9108 int val2 ;
9109 int ecode2 = 0 ;
9110 int val3 ;
9111 int ecode3 = 0 ;
9112 int val4 ;
9113 int ecode4 = 0 ;
9114 int val5 ;
9115 int ecode5 = 0 ;
9116 PyObject * obj0 = 0 ;
9117 PyObject * obj1 = 0 ;
9118 PyObject * obj2 = 0 ;
9119 PyObject * obj3 = 0 ;
9120 PyObject * obj4 = 0 ;
9121 char * kwnames[] = {
9122 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9123 };
9124
9125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9127 if (!SWIG_IsOK(res1)) {
9128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
9129 }
9130 arg1 = reinterpret_cast< wxRegion * >(argp1);
9131 ecode2 = SWIG_AsVal_int(obj1, &val2);
9132 if (!SWIG_IsOK(ecode2)) {
9133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
9134 }
9135 arg2 = static_cast< int >(val2);
9136 ecode3 = SWIG_AsVal_int(obj2, &val3);
9137 if (!SWIG_IsOK(ecode3)) {
9138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
9139 }
9140 arg3 = static_cast< int >(val3);
9141 ecode4 = SWIG_AsVal_int(obj3, &val4);
9142 if (!SWIG_IsOK(ecode4)) {
9143 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
9144 }
9145 arg4 = static_cast< int >(val4);
9146 ecode5 = SWIG_AsVal_int(obj4, &val5);
9147 if (!SWIG_IsOK(ecode5)) {
9148 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
9149 }
9150 arg5 = static_cast< int >(val5);
9151 {
9152 PyThreadState* __tstate = wxPyBeginAllowThreads();
9153 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
9154 wxPyEndAllowThreads(__tstate);
9155 if (PyErr_Occurred()) SWIG_fail;
9156 }
9157 {
9158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9159 }
9160 return resultobj;
9161 fail:
9162 return NULL;
9163 }
9164
9165
9166 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9167 PyObject *resultobj = 0;
9168 wxRegion *arg1 = (wxRegion *) 0 ;
9169 wxRect *arg2 = 0 ;
9170 bool result;
9171 void *argp1 = 0 ;
9172 int res1 = 0 ;
9173 wxRect temp2 ;
9174 PyObject * obj0 = 0 ;
9175 PyObject * obj1 = 0 ;
9176 char * kwnames[] = {
9177 (char *) "self",(char *) "rect", NULL
9178 };
9179
9180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
9181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9182 if (!SWIG_IsOK(res1)) {
9183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9184 }
9185 arg1 = reinterpret_cast< wxRegion * >(argp1);
9186 {
9187 arg2 = &temp2;
9188 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9189 }
9190 {
9191 PyThreadState* __tstate = wxPyBeginAllowThreads();
9192 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
9193 wxPyEndAllowThreads(__tstate);
9194 if (PyErr_Occurred()) SWIG_fail;
9195 }
9196 {
9197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9198 }
9199 return resultobj;
9200 fail:
9201 return NULL;
9202 }
9203
9204
9205 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9206 PyObject *resultobj = 0;
9207 wxRegion *arg1 = (wxRegion *) 0 ;
9208 wxRegion *arg2 = 0 ;
9209 bool result;
9210 void *argp1 = 0 ;
9211 int res1 = 0 ;
9212 void *argp2 = 0 ;
9213 int res2 = 0 ;
9214 PyObject * obj0 = 0 ;
9215 PyObject * obj1 = 0 ;
9216 char * kwnames[] = {
9217 (char *) "self",(char *) "region", NULL
9218 };
9219
9220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9222 if (!SWIG_IsOK(res1)) {
9223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9224 }
9225 arg1 = reinterpret_cast< wxRegion * >(argp1);
9226 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9227 if (!SWIG_IsOK(res2)) {
9228 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9229 }
9230 if (!argp2) {
9231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9232 }
9233 arg2 = reinterpret_cast< wxRegion * >(argp2);
9234 {
9235 PyThreadState* __tstate = wxPyBeginAllowThreads();
9236 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
9237 wxPyEndAllowThreads(__tstate);
9238 if (PyErr_Occurred()) SWIG_fail;
9239 }
9240 {
9241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9242 }
9243 return resultobj;
9244 fail:
9245 return NULL;
9246 }
9247
9248
9249 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9250 PyObject *resultobj = 0;
9251 wxRegion *arg1 = (wxRegion *) 0 ;
9252 int arg2 ;
9253 int arg3 ;
9254 int arg4 ;
9255 int arg5 ;
9256 bool result;
9257 void *argp1 = 0 ;
9258 int res1 = 0 ;
9259 int val2 ;
9260 int ecode2 = 0 ;
9261 int val3 ;
9262 int ecode3 = 0 ;
9263 int val4 ;
9264 int ecode4 = 0 ;
9265 int val5 ;
9266 int ecode5 = 0 ;
9267 PyObject * obj0 = 0 ;
9268 PyObject * obj1 = 0 ;
9269 PyObject * obj2 = 0 ;
9270 PyObject * obj3 = 0 ;
9271 PyObject * obj4 = 0 ;
9272 char * kwnames[] = {
9273 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9274 };
9275
9276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9278 if (!SWIG_IsOK(res1)) {
9279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
9280 }
9281 arg1 = reinterpret_cast< wxRegion * >(argp1);
9282 ecode2 = SWIG_AsVal_int(obj1, &val2);
9283 if (!SWIG_IsOK(ecode2)) {
9284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
9285 }
9286 arg2 = static_cast< int >(val2);
9287 ecode3 = SWIG_AsVal_int(obj2, &val3);
9288 if (!SWIG_IsOK(ecode3)) {
9289 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
9290 }
9291 arg3 = static_cast< int >(val3);
9292 ecode4 = SWIG_AsVal_int(obj3, &val4);
9293 if (!SWIG_IsOK(ecode4)) {
9294 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
9295 }
9296 arg4 = static_cast< int >(val4);
9297 ecode5 = SWIG_AsVal_int(obj4, &val5);
9298 if (!SWIG_IsOK(ecode5)) {
9299 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
9300 }
9301 arg5 = static_cast< int >(val5);
9302 {
9303 PyThreadState* __tstate = wxPyBeginAllowThreads();
9304 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
9305 wxPyEndAllowThreads(__tstate);
9306 if (PyErr_Occurred()) SWIG_fail;
9307 }
9308 {
9309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9310 }
9311 return resultobj;
9312 fail:
9313 return NULL;
9314 }
9315
9316
9317 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9318 PyObject *resultobj = 0;
9319 wxRegion *arg1 = (wxRegion *) 0 ;
9320 wxRect *arg2 = 0 ;
9321 bool result;
9322 void *argp1 = 0 ;
9323 int res1 = 0 ;
9324 wxRect temp2 ;
9325 PyObject * obj0 = 0 ;
9326 PyObject * obj1 = 0 ;
9327 char * kwnames[] = {
9328 (char *) "self",(char *) "rect", NULL
9329 };
9330
9331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
9332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9333 if (!SWIG_IsOK(res1)) {
9334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9335 }
9336 arg1 = reinterpret_cast< wxRegion * >(argp1);
9337 {
9338 arg2 = &temp2;
9339 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9340 }
9341 {
9342 PyThreadState* __tstate = wxPyBeginAllowThreads();
9343 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
9344 wxPyEndAllowThreads(__tstate);
9345 if (PyErr_Occurred()) SWIG_fail;
9346 }
9347 {
9348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9349 }
9350 return resultobj;
9351 fail:
9352 return NULL;
9353 }
9354
9355
9356 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9357 PyObject *resultobj = 0;
9358 wxRegion *arg1 = (wxRegion *) 0 ;
9359 wxRegion *arg2 = 0 ;
9360 bool result;
9361 void *argp1 = 0 ;
9362 int res1 = 0 ;
9363 void *argp2 = 0 ;
9364 int res2 = 0 ;
9365 PyObject * obj0 = 0 ;
9366 PyObject * obj1 = 0 ;
9367 char * kwnames[] = {
9368 (char *) "self",(char *) "region", NULL
9369 };
9370
9371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9373 if (!SWIG_IsOK(res1)) {
9374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9375 }
9376 arg1 = reinterpret_cast< wxRegion * >(argp1);
9377 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9378 if (!SWIG_IsOK(res2)) {
9379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9380 }
9381 if (!argp2) {
9382 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9383 }
9384 arg2 = reinterpret_cast< wxRegion * >(argp2);
9385 {
9386 PyThreadState* __tstate = wxPyBeginAllowThreads();
9387 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
9388 wxPyEndAllowThreads(__tstate);
9389 if (PyErr_Occurred()) SWIG_fail;
9390 }
9391 {
9392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9393 }
9394 return resultobj;
9395 fail:
9396 return NULL;
9397 }
9398
9399
9400 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9401 PyObject *resultobj = 0;
9402 wxRegion *arg1 = (wxRegion *) 0 ;
9403 SwigValueWrapper<wxBitmap > result;
9404 void *argp1 = 0 ;
9405 int res1 = 0 ;
9406 PyObject *swig_obj[1] ;
9407
9408 if (!args) SWIG_fail;
9409 swig_obj[0] = args;
9410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9411 if (!SWIG_IsOK(res1)) {
9412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
9413 }
9414 arg1 = reinterpret_cast< wxRegion * >(argp1);
9415 {
9416 PyThreadState* __tstate = wxPyBeginAllowThreads();
9417 result = (arg1)->ConvertToBitmap();
9418 wxPyEndAllowThreads(__tstate);
9419 if (PyErr_Occurred()) SWIG_fail;
9420 }
9421 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
9422 return resultobj;
9423 fail:
9424 return NULL;
9425 }
9426
9427
9428 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9429 PyObject *resultobj = 0;
9430 wxRegion *arg1 = (wxRegion *) 0 ;
9431 wxBitmap *arg2 = 0 ;
9432 bool result;
9433 void *argp1 = 0 ;
9434 int res1 = 0 ;
9435 void *argp2 = 0 ;
9436 int res2 = 0 ;
9437 PyObject * obj0 = 0 ;
9438 PyObject * obj1 = 0 ;
9439 char * kwnames[] = {
9440 (char *) "self",(char *) "bmp", NULL
9441 };
9442
9443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9445 if (!SWIG_IsOK(res1)) {
9446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
9447 }
9448 arg1 = reinterpret_cast< wxRegion * >(argp1);
9449 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9450 if (!SWIG_IsOK(res2)) {
9451 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9452 }
9453 if (!argp2) {
9454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9455 }
9456 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9457 {
9458 PyThreadState* __tstate = wxPyBeginAllowThreads();
9459 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
9460 wxPyEndAllowThreads(__tstate);
9461 if (PyErr_Occurred()) SWIG_fail;
9462 }
9463 {
9464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9465 }
9466 return resultobj;
9467 fail:
9468 return NULL;
9469 }
9470
9471
9472 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9473 PyObject *resultobj = 0;
9474 wxRegion *arg1 = (wxRegion *) 0 ;
9475 wxBitmap *arg2 = 0 ;
9476 wxColour *arg3 = 0 ;
9477 int arg4 = (int) 0 ;
9478 bool result;
9479 void *argp1 = 0 ;
9480 int res1 = 0 ;
9481 void *argp2 = 0 ;
9482 int res2 = 0 ;
9483 wxColour temp3 ;
9484 int val4 ;
9485 int ecode4 = 0 ;
9486 PyObject * obj0 = 0 ;
9487 PyObject * obj1 = 0 ;
9488 PyObject * obj2 = 0 ;
9489 PyObject * obj3 = 0 ;
9490 char * kwnames[] = {
9491 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
9492 };
9493
9494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9496 if (!SWIG_IsOK(res1)) {
9497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
9498 }
9499 arg1 = reinterpret_cast< wxRegion * >(argp1);
9500 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9501 if (!SWIG_IsOK(res2)) {
9502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9503 }
9504 if (!argp2) {
9505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9506 }
9507 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9508 {
9509 arg3 = &temp3;
9510 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9511 }
9512 if (obj3) {
9513 ecode4 = SWIG_AsVal_int(obj3, &val4);
9514 if (!SWIG_IsOK(ecode4)) {
9515 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
9516 }
9517 arg4 = static_cast< int >(val4);
9518 }
9519 {
9520 PyThreadState* __tstate = wxPyBeginAllowThreads();
9521 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
9522 wxPyEndAllowThreads(__tstate);
9523 if (PyErr_Occurred()) SWIG_fail;
9524 }
9525 {
9526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9527 }
9528 return resultobj;
9529 fail:
9530 return NULL;
9531 }
9532
9533
9534 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9535 PyObject *obj;
9536 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9537 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
9538 return SWIG_Py_Void();
9539 }
9540
9541 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9542 return SWIG_Python_InitShadowInstance(args);
9543 }
9544
9545 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9546 PyObject *resultobj = 0;
9547 wxRegion *arg1 = 0 ;
9548 wxRegionIterator *result = 0 ;
9549 void *argp1 = 0 ;
9550 int res1 = 0 ;
9551 PyObject * obj0 = 0 ;
9552 char * kwnames[] = {
9553 (char *) "region", NULL
9554 };
9555
9556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
9557 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
9558 if (!SWIG_IsOK(res1)) {
9559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9560 }
9561 if (!argp1) {
9562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9563 }
9564 arg1 = reinterpret_cast< wxRegion * >(argp1);
9565 {
9566 if (!wxPyCheckForApp()) SWIG_fail;
9567 PyThreadState* __tstate = wxPyBeginAllowThreads();
9568 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
9569 wxPyEndAllowThreads(__tstate);
9570 if (PyErr_Occurred()) SWIG_fail;
9571 }
9572 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
9573 return resultobj;
9574 fail:
9575 return NULL;
9576 }
9577
9578
9579 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9580 PyObject *resultobj = 0;
9581 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9582 void *argp1 = 0 ;
9583 int res1 = 0 ;
9584 PyObject *swig_obj[1] ;
9585
9586 if (!args) SWIG_fail;
9587 swig_obj[0] = args;
9588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
9589 if (!SWIG_IsOK(res1)) {
9590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9591 }
9592 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9593 {
9594 PyThreadState* __tstate = wxPyBeginAllowThreads();
9595 delete arg1;
9596
9597 wxPyEndAllowThreads(__tstate);
9598 if (PyErr_Occurred()) SWIG_fail;
9599 }
9600 resultobj = SWIG_Py_Void();
9601 return resultobj;
9602 fail:
9603 return NULL;
9604 }
9605
9606
9607 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9608 PyObject *resultobj = 0;
9609 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9610 int result;
9611 void *argp1 = 0 ;
9612 int res1 = 0 ;
9613 PyObject *swig_obj[1] ;
9614
9615 if (!args) SWIG_fail;
9616 swig_obj[0] = args;
9617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9618 if (!SWIG_IsOK(res1)) {
9619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9620 }
9621 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9622 {
9623 PyThreadState* __tstate = wxPyBeginAllowThreads();
9624 result = (int)(arg1)->GetX();
9625 wxPyEndAllowThreads(__tstate);
9626 if (PyErr_Occurred()) SWIG_fail;
9627 }
9628 resultobj = SWIG_From_int(static_cast< int >(result));
9629 return resultobj;
9630 fail:
9631 return NULL;
9632 }
9633
9634
9635 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9636 PyObject *resultobj = 0;
9637 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9638 int result;
9639 void *argp1 = 0 ;
9640 int res1 = 0 ;
9641 PyObject *swig_obj[1] ;
9642
9643 if (!args) SWIG_fail;
9644 swig_obj[0] = args;
9645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9646 if (!SWIG_IsOK(res1)) {
9647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9648 }
9649 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9650 {
9651 PyThreadState* __tstate = wxPyBeginAllowThreads();
9652 result = (int)(arg1)->GetY();
9653 wxPyEndAllowThreads(__tstate);
9654 if (PyErr_Occurred()) SWIG_fail;
9655 }
9656 resultobj = SWIG_From_int(static_cast< int >(result));
9657 return resultobj;
9658 fail:
9659 return NULL;
9660 }
9661
9662
9663 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9664 PyObject *resultobj = 0;
9665 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9666 int result;
9667 void *argp1 = 0 ;
9668 int res1 = 0 ;
9669 PyObject *swig_obj[1] ;
9670
9671 if (!args) SWIG_fail;
9672 swig_obj[0] = args;
9673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9674 if (!SWIG_IsOK(res1)) {
9675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9676 }
9677 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9678 {
9679 PyThreadState* __tstate = wxPyBeginAllowThreads();
9680 result = (int)(arg1)->GetW();
9681 wxPyEndAllowThreads(__tstate);
9682 if (PyErr_Occurred()) SWIG_fail;
9683 }
9684 resultobj = SWIG_From_int(static_cast< int >(result));
9685 return resultobj;
9686 fail:
9687 return NULL;
9688 }
9689
9690
9691 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9692 PyObject *resultobj = 0;
9693 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9694 int result;
9695 void *argp1 = 0 ;
9696 int res1 = 0 ;
9697 PyObject *swig_obj[1] ;
9698
9699 if (!args) SWIG_fail;
9700 swig_obj[0] = args;
9701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9702 if (!SWIG_IsOK(res1)) {
9703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9704 }
9705 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9706 {
9707 PyThreadState* __tstate = wxPyBeginAllowThreads();
9708 result = (int)(arg1)->GetWidth();
9709 wxPyEndAllowThreads(__tstate);
9710 if (PyErr_Occurred()) SWIG_fail;
9711 }
9712 resultobj = SWIG_From_int(static_cast< int >(result));
9713 return resultobj;
9714 fail:
9715 return NULL;
9716 }
9717
9718
9719 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9720 PyObject *resultobj = 0;
9721 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9722 int result;
9723 void *argp1 = 0 ;
9724 int res1 = 0 ;
9725 PyObject *swig_obj[1] ;
9726
9727 if (!args) SWIG_fail;
9728 swig_obj[0] = args;
9729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9730 if (!SWIG_IsOK(res1)) {
9731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9732 }
9733 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9734 {
9735 PyThreadState* __tstate = wxPyBeginAllowThreads();
9736 result = (int)(arg1)->GetH();
9737 wxPyEndAllowThreads(__tstate);
9738 if (PyErr_Occurred()) SWIG_fail;
9739 }
9740 resultobj = SWIG_From_int(static_cast< int >(result));
9741 return resultobj;
9742 fail:
9743 return NULL;
9744 }
9745
9746
9747 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9748 PyObject *resultobj = 0;
9749 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9750 int result;
9751 void *argp1 = 0 ;
9752 int res1 = 0 ;
9753 PyObject *swig_obj[1] ;
9754
9755 if (!args) SWIG_fail;
9756 swig_obj[0] = args;
9757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9758 if (!SWIG_IsOK(res1)) {
9759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9760 }
9761 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9762 {
9763 PyThreadState* __tstate = wxPyBeginAllowThreads();
9764 result = (int)(arg1)->GetHeight();
9765 wxPyEndAllowThreads(__tstate);
9766 if (PyErr_Occurred()) SWIG_fail;
9767 }
9768 resultobj = SWIG_From_int(static_cast< int >(result));
9769 return resultobj;
9770 fail:
9771 return NULL;
9772 }
9773
9774
9775 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9776 PyObject *resultobj = 0;
9777 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9778 wxRect result;
9779 void *argp1 = 0 ;
9780 int res1 = 0 ;
9781 PyObject *swig_obj[1] ;
9782
9783 if (!args) SWIG_fail;
9784 swig_obj[0] = args;
9785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9786 if (!SWIG_IsOK(res1)) {
9787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9788 }
9789 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9790 {
9791 PyThreadState* __tstate = wxPyBeginAllowThreads();
9792 result = (arg1)->GetRect();
9793 wxPyEndAllowThreads(__tstate);
9794 if (PyErr_Occurred()) SWIG_fail;
9795 }
9796 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
9797 return resultobj;
9798 fail:
9799 return NULL;
9800 }
9801
9802
9803 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9804 PyObject *resultobj = 0;
9805 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9806 bool result;
9807 void *argp1 = 0 ;
9808 int res1 = 0 ;
9809 PyObject *swig_obj[1] ;
9810
9811 if (!args) SWIG_fail;
9812 swig_obj[0] = args;
9813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9814 if (!SWIG_IsOK(res1)) {
9815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9816 }
9817 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9818 {
9819 PyThreadState* __tstate = wxPyBeginAllowThreads();
9820 result = (bool)(arg1)->HaveRects();
9821 wxPyEndAllowThreads(__tstate);
9822 if (PyErr_Occurred()) SWIG_fail;
9823 }
9824 {
9825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9826 }
9827 return resultobj;
9828 fail:
9829 return NULL;
9830 }
9831
9832
9833 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9834 PyObject *resultobj = 0;
9835 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9836 void *argp1 = 0 ;
9837 int res1 = 0 ;
9838 PyObject *swig_obj[1] ;
9839
9840 if (!args) SWIG_fail;
9841 swig_obj[0] = args;
9842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9843 if (!SWIG_IsOK(res1)) {
9844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9845 }
9846 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9847 {
9848 PyThreadState* __tstate = wxPyBeginAllowThreads();
9849 (arg1)->Reset();
9850 wxPyEndAllowThreads(__tstate);
9851 if (PyErr_Occurred()) SWIG_fail;
9852 }
9853 resultobj = SWIG_Py_Void();
9854 return resultobj;
9855 fail:
9856 return NULL;
9857 }
9858
9859
9860 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9861 PyObject *resultobj = 0;
9862 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9863 void *argp1 = 0 ;
9864 int res1 = 0 ;
9865 PyObject *swig_obj[1] ;
9866
9867 if (!args) SWIG_fail;
9868 swig_obj[0] = args;
9869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9870 if (!SWIG_IsOK(res1)) {
9871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9872 }
9873 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9874 {
9875 PyThreadState* __tstate = wxPyBeginAllowThreads();
9876 wxRegionIterator_Next(arg1);
9877 wxPyEndAllowThreads(__tstate);
9878 if (PyErr_Occurred()) SWIG_fail;
9879 }
9880 resultobj = SWIG_Py_Void();
9881 return resultobj;
9882 fail:
9883 return NULL;
9884 }
9885
9886
9887 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9888 PyObject *resultobj = 0;
9889 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9890 bool result;
9891 void *argp1 = 0 ;
9892 int res1 = 0 ;
9893 PyObject *swig_obj[1] ;
9894
9895 if (!args) SWIG_fail;
9896 swig_obj[0] = args;
9897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9898 if (!SWIG_IsOK(res1)) {
9899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9900 }
9901 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9902 {
9903 PyThreadState* __tstate = wxPyBeginAllowThreads();
9904 result = (bool)wxRegionIterator___nonzero__(arg1);
9905 wxPyEndAllowThreads(__tstate);
9906 if (PyErr_Occurred()) SWIG_fail;
9907 }
9908 {
9909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9910 }
9911 return resultobj;
9912 fail:
9913 return NULL;
9914 }
9915
9916
9917 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9918 PyObject *obj;
9919 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9920 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
9921 return SWIG_Py_Void();
9922 }
9923
9924 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9925 return SWIG_Python_InitShadowInstance(args);
9926 }
9927
9928 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9929 PyObject *resultobj = 0;
9930 wxNativeFontInfo *result = 0 ;
9931
9932 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
9933 {
9934 PyThreadState* __tstate = wxPyBeginAllowThreads();
9935 result = (wxNativeFontInfo *)new wxNativeFontInfo();
9936 wxPyEndAllowThreads(__tstate);
9937 if (PyErr_Occurred()) SWIG_fail;
9938 }
9939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
9940 return resultobj;
9941 fail:
9942 return NULL;
9943 }
9944
9945
9946 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9947 PyObject *resultobj = 0;
9948 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9949 void *argp1 = 0 ;
9950 int res1 = 0 ;
9951 PyObject *swig_obj[1] ;
9952
9953 if (!args) SWIG_fail;
9954 swig_obj[0] = args;
9955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
9956 if (!SWIG_IsOK(res1)) {
9957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9958 }
9959 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9960 {
9961 PyThreadState* __tstate = wxPyBeginAllowThreads();
9962 delete arg1;
9963
9964 wxPyEndAllowThreads(__tstate);
9965 if (PyErr_Occurred()) SWIG_fail;
9966 }
9967 resultobj = SWIG_Py_Void();
9968 return resultobj;
9969 fail:
9970 return NULL;
9971 }
9972
9973
9974 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9975 PyObject *resultobj = 0;
9976 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9977 void *argp1 = 0 ;
9978 int res1 = 0 ;
9979 PyObject *swig_obj[1] ;
9980
9981 if (!args) SWIG_fail;
9982 swig_obj[0] = args;
9983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9984 if (!SWIG_IsOK(res1)) {
9985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9986 }
9987 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9988 {
9989 PyThreadState* __tstate = wxPyBeginAllowThreads();
9990 (arg1)->Init();
9991 wxPyEndAllowThreads(__tstate);
9992 if (PyErr_Occurred()) SWIG_fail;
9993 }
9994 resultobj = SWIG_Py_Void();
9995 return resultobj;
9996 fail:
9997 return NULL;
9998 }
9999
10000
10001 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10002 PyObject *resultobj = 0;
10003 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10004 wxFont *arg2 = 0 ;
10005 void *argp1 = 0 ;
10006 int res1 = 0 ;
10007 void *argp2 = 0 ;
10008 int res2 = 0 ;
10009 PyObject * obj0 = 0 ;
10010 PyObject * obj1 = 0 ;
10011 char * kwnames[] = {
10012 (char *) "self",(char *) "font", NULL
10013 };
10014
10015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
10016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10017 if (!SWIG_IsOK(res1)) {
10018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10019 }
10020 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10021 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10022 if (!SWIG_IsOK(res2)) {
10023 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10024 }
10025 if (!argp2) {
10026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10027 }
10028 arg2 = reinterpret_cast< wxFont * >(argp2);
10029 {
10030 PyThreadState* __tstate = wxPyBeginAllowThreads();
10031 (arg1)->InitFromFont((wxFont const &)*arg2);
10032 wxPyEndAllowThreads(__tstate);
10033 if (PyErr_Occurred()) SWIG_fail;
10034 }
10035 resultobj = SWIG_Py_Void();
10036 return resultobj;
10037 fail:
10038 return NULL;
10039 }
10040
10041
10042 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10043 PyObject *resultobj = 0;
10044 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10045 int result;
10046 void *argp1 = 0 ;
10047 int res1 = 0 ;
10048 PyObject *swig_obj[1] ;
10049
10050 if (!args) SWIG_fail;
10051 swig_obj[0] = args;
10052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10053 if (!SWIG_IsOK(res1)) {
10054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10055 }
10056 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10057 {
10058 PyThreadState* __tstate = wxPyBeginAllowThreads();
10059 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
10060 wxPyEndAllowThreads(__tstate);
10061 if (PyErr_Occurred()) SWIG_fail;
10062 }
10063 resultobj = SWIG_From_int(static_cast< int >(result));
10064 return resultobj;
10065 fail:
10066 return NULL;
10067 }
10068
10069
10070 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10071 PyObject *resultobj = 0;
10072 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10073 wxSize result;
10074 void *argp1 = 0 ;
10075 int res1 = 0 ;
10076 PyObject *swig_obj[1] ;
10077
10078 if (!args) SWIG_fail;
10079 swig_obj[0] = args;
10080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10081 if (!SWIG_IsOK(res1)) {
10082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10083 }
10084 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10085 {
10086 PyThreadState* __tstate = wxPyBeginAllowThreads();
10087 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
10088 wxPyEndAllowThreads(__tstate);
10089 if (PyErr_Occurred()) SWIG_fail;
10090 }
10091 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
10092 return resultobj;
10093 fail:
10094 return NULL;
10095 }
10096
10097
10098 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10099 PyObject *resultobj = 0;
10100 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10101 wxFontStyle result;
10102 void *argp1 = 0 ;
10103 int res1 = 0 ;
10104 PyObject *swig_obj[1] ;
10105
10106 if (!args) SWIG_fail;
10107 swig_obj[0] = args;
10108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10109 if (!SWIG_IsOK(res1)) {
10110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10111 }
10112 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10113 {
10114 PyThreadState* __tstate = wxPyBeginAllowThreads();
10115 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
10116 wxPyEndAllowThreads(__tstate);
10117 if (PyErr_Occurred()) SWIG_fail;
10118 }
10119 resultobj = SWIG_From_int(static_cast< int >(result));
10120 return resultobj;
10121 fail:
10122 return NULL;
10123 }
10124
10125
10126 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10127 PyObject *resultobj = 0;
10128 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10129 wxFontWeight result;
10130 void *argp1 = 0 ;
10131 int res1 = 0 ;
10132 PyObject *swig_obj[1] ;
10133
10134 if (!args) SWIG_fail;
10135 swig_obj[0] = args;
10136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10137 if (!SWIG_IsOK(res1)) {
10138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10139 }
10140 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10141 {
10142 PyThreadState* __tstate = wxPyBeginAllowThreads();
10143 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
10144 wxPyEndAllowThreads(__tstate);
10145 if (PyErr_Occurred()) SWIG_fail;
10146 }
10147 resultobj = SWIG_From_int(static_cast< int >(result));
10148 return resultobj;
10149 fail:
10150 return NULL;
10151 }
10152
10153
10154 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10155 PyObject *resultobj = 0;
10156 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10157 bool result;
10158 void *argp1 = 0 ;
10159 int res1 = 0 ;
10160 PyObject *swig_obj[1] ;
10161
10162 if (!args) SWIG_fail;
10163 swig_obj[0] = args;
10164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10165 if (!SWIG_IsOK(res1)) {
10166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10167 }
10168 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10169 {
10170 PyThreadState* __tstate = wxPyBeginAllowThreads();
10171 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
10172 wxPyEndAllowThreads(__tstate);
10173 if (PyErr_Occurred()) SWIG_fail;
10174 }
10175 {
10176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10177 }
10178 return resultobj;
10179 fail:
10180 return NULL;
10181 }
10182
10183
10184 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10185 PyObject *resultobj = 0;
10186 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10187 wxString result;
10188 void *argp1 = 0 ;
10189 int res1 = 0 ;
10190 PyObject *swig_obj[1] ;
10191
10192 if (!args) SWIG_fail;
10193 swig_obj[0] = args;
10194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10195 if (!SWIG_IsOK(res1)) {
10196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10197 }
10198 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10199 {
10200 PyThreadState* __tstate = wxPyBeginAllowThreads();
10201 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
10202 wxPyEndAllowThreads(__tstate);
10203 if (PyErr_Occurred()) SWIG_fail;
10204 }
10205 {
10206 #if wxUSE_UNICODE
10207 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10208 #else
10209 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10210 #endif
10211 }
10212 return resultobj;
10213 fail:
10214 return NULL;
10215 }
10216
10217
10218 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10219 PyObject *resultobj = 0;
10220 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10221 wxFontFamily result;
10222 void *argp1 = 0 ;
10223 int res1 = 0 ;
10224 PyObject *swig_obj[1] ;
10225
10226 if (!args) SWIG_fail;
10227 swig_obj[0] = args;
10228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10229 if (!SWIG_IsOK(res1)) {
10230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10231 }
10232 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10233 {
10234 PyThreadState* __tstate = wxPyBeginAllowThreads();
10235 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
10236 wxPyEndAllowThreads(__tstate);
10237 if (PyErr_Occurred()) SWIG_fail;
10238 }
10239 resultobj = SWIG_From_int(static_cast< int >(result));
10240 return resultobj;
10241 fail:
10242 return NULL;
10243 }
10244
10245
10246 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10247 PyObject *resultobj = 0;
10248 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10249 wxFontEncoding result;
10250 void *argp1 = 0 ;
10251 int res1 = 0 ;
10252 PyObject *swig_obj[1] ;
10253
10254 if (!args) SWIG_fail;
10255 swig_obj[0] = args;
10256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10257 if (!SWIG_IsOK(res1)) {
10258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10259 }
10260 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10261 {
10262 PyThreadState* __tstate = wxPyBeginAllowThreads();
10263 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
10264 wxPyEndAllowThreads(__tstate);
10265 if (PyErr_Occurred()) SWIG_fail;
10266 }
10267 resultobj = SWIG_From_int(static_cast< int >(result));
10268 return resultobj;
10269 fail:
10270 return NULL;
10271 }
10272
10273
10274 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10275 PyObject *resultobj = 0;
10276 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10277 int arg2 ;
10278 void *argp1 = 0 ;
10279 int res1 = 0 ;
10280 int val2 ;
10281 int ecode2 = 0 ;
10282 PyObject * obj0 = 0 ;
10283 PyObject * obj1 = 0 ;
10284 char * kwnames[] = {
10285 (char *) "self",(char *) "pointsize", NULL
10286 };
10287
10288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
10289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10290 if (!SWIG_IsOK(res1)) {
10291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10292 }
10293 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10294 ecode2 = SWIG_AsVal_int(obj1, &val2);
10295 if (!SWIG_IsOK(ecode2)) {
10296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
10297 }
10298 arg2 = static_cast< int >(val2);
10299 {
10300 PyThreadState* __tstate = wxPyBeginAllowThreads();
10301 (arg1)->SetPointSize(arg2);
10302 wxPyEndAllowThreads(__tstate);
10303 if (PyErr_Occurred()) SWIG_fail;
10304 }
10305 resultobj = SWIG_Py_Void();
10306 return resultobj;
10307 fail:
10308 return NULL;
10309 }
10310
10311
10312 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10313 PyObject *resultobj = 0;
10314 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10315 wxSize *arg2 = 0 ;
10316 void *argp1 = 0 ;
10317 int res1 = 0 ;
10318 wxSize temp2 ;
10319 PyObject * obj0 = 0 ;
10320 PyObject * obj1 = 0 ;
10321 char * kwnames[] = {
10322 (char *) "self",(char *) "pixelSize", NULL
10323 };
10324
10325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
10326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10327 if (!SWIG_IsOK(res1)) {
10328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10329 }
10330 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10331 {
10332 arg2 = &temp2;
10333 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10334 }
10335 {
10336 PyThreadState* __tstate = wxPyBeginAllowThreads();
10337 (arg1)->SetPixelSize((wxSize const &)*arg2);
10338 wxPyEndAllowThreads(__tstate);
10339 if (PyErr_Occurred()) SWIG_fail;
10340 }
10341 resultobj = SWIG_Py_Void();
10342 return resultobj;
10343 fail:
10344 return NULL;
10345 }
10346
10347
10348 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10349 PyObject *resultobj = 0;
10350 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10351 wxFontStyle arg2 ;
10352 void *argp1 = 0 ;
10353 int res1 = 0 ;
10354 int val2 ;
10355 int ecode2 = 0 ;
10356 PyObject * obj0 = 0 ;
10357 PyObject * obj1 = 0 ;
10358 char * kwnames[] = {
10359 (char *) "self",(char *) "style", NULL
10360 };
10361
10362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
10363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10364 if (!SWIG_IsOK(res1)) {
10365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10366 }
10367 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10368 ecode2 = SWIG_AsVal_int(obj1, &val2);
10369 if (!SWIG_IsOK(ecode2)) {
10370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
10371 }
10372 arg2 = static_cast< wxFontStyle >(val2);
10373 {
10374 PyThreadState* __tstate = wxPyBeginAllowThreads();
10375 (arg1)->SetStyle(arg2);
10376 wxPyEndAllowThreads(__tstate);
10377 if (PyErr_Occurred()) SWIG_fail;
10378 }
10379 resultobj = SWIG_Py_Void();
10380 return resultobj;
10381 fail:
10382 return NULL;
10383 }
10384
10385
10386 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10387 PyObject *resultobj = 0;
10388 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10389 wxFontWeight arg2 ;
10390 void *argp1 = 0 ;
10391 int res1 = 0 ;
10392 int val2 ;
10393 int ecode2 = 0 ;
10394 PyObject * obj0 = 0 ;
10395 PyObject * obj1 = 0 ;
10396 char * kwnames[] = {
10397 (char *) "self",(char *) "weight", NULL
10398 };
10399
10400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
10401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10402 if (!SWIG_IsOK(res1)) {
10403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10404 }
10405 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10406 ecode2 = SWIG_AsVal_int(obj1, &val2);
10407 if (!SWIG_IsOK(ecode2)) {
10408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
10409 }
10410 arg2 = static_cast< wxFontWeight >(val2);
10411 {
10412 PyThreadState* __tstate = wxPyBeginAllowThreads();
10413 (arg1)->SetWeight(arg2);
10414 wxPyEndAllowThreads(__tstate);
10415 if (PyErr_Occurred()) SWIG_fail;
10416 }
10417 resultobj = SWIG_Py_Void();
10418 return resultobj;
10419 fail:
10420 return NULL;
10421 }
10422
10423
10424 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10425 PyObject *resultobj = 0;
10426 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10427 bool arg2 ;
10428 void *argp1 = 0 ;
10429 int res1 = 0 ;
10430 bool val2 ;
10431 int ecode2 = 0 ;
10432 PyObject * obj0 = 0 ;
10433 PyObject * obj1 = 0 ;
10434 char * kwnames[] = {
10435 (char *) "self",(char *) "underlined", NULL
10436 };
10437
10438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
10439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10440 if (!SWIG_IsOK(res1)) {
10441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10442 }
10443 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10444 ecode2 = SWIG_AsVal_bool(obj1, &val2);
10445 if (!SWIG_IsOK(ecode2)) {
10446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
10447 }
10448 arg2 = static_cast< bool >(val2);
10449 {
10450 PyThreadState* __tstate = wxPyBeginAllowThreads();
10451 (arg1)->SetUnderlined(arg2);
10452 wxPyEndAllowThreads(__tstate);
10453 if (PyErr_Occurred()) SWIG_fail;
10454 }
10455 resultobj = SWIG_Py_Void();
10456 return resultobj;
10457 fail:
10458 return NULL;
10459 }
10460
10461
10462 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10463 PyObject *resultobj = 0;
10464 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10465 wxString arg2 ;
10466 void *argp1 = 0 ;
10467 int res1 = 0 ;
10468 PyObject * obj0 = 0 ;
10469 PyObject * obj1 = 0 ;
10470 char * kwnames[] = {
10471 (char *) "self",(char *) "facename", NULL
10472 };
10473
10474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
10475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10476 if (!SWIG_IsOK(res1)) {
10477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10478 }
10479 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10480 {
10481 wxString* sptr = wxString_in_helper(obj1);
10482 if (sptr == NULL) SWIG_fail;
10483 arg2 = *sptr;
10484 delete sptr;
10485 }
10486 {
10487 PyThreadState* __tstate = wxPyBeginAllowThreads();
10488 (arg1)->SetFaceName(arg2);
10489 wxPyEndAllowThreads(__tstate);
10490 if (PyErr_Occurred()) SWIG_fail;
10491 }
10492 resultobj = SWIG_Py_Void();
10493 return resultobj;
10494 fail:
10495 return NULL;
10496 }
10497
10498
10499 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10500 PyObject *resultobj = 0;
10501 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10502 wxFontFamily arg2 ;
10503 void *argp1 = 0 ;
10504 int res1 = 0 ;
10505 int val2 ;
10506 int ecode2 = 0 ;
10507 PyObject * obj0 = 0 ;
10508 PyObject * obj1 = 0 ;
10509 char * kwnames[] = {
10510 (char *) "self",(char *) "family", NULL
10511 };
10512
10513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
10514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10515 if (!SWIG_IsOK(res1)) {
10516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10517 }
10518 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10519 ecode2 = SWIG_AsVal_int(obj1, &val2);
10520 if (!SWIG_IsOK(ecode2)) {
10521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
10522 }
10523 arg2 = static_cast< wxFontFamily >(val2);
10524 {
10525 PyThreadState* __tstate = wxPyBeginAllowThreads();
10526 (arg1)->SetFamily(arg2);
10527 wxPyEndAllowThreads(__tstate);
10528 if (PyErr_Occurred()) SWIG_fail;
10529 }
10530 resultobj = SWIG_Py_Void();
10531 return resultobj;
10532 fail:
10533 return NULL;
10534 }
10535
10536
10537 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10538 PyObject *resultobj = 0;
10539 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10540 wxFontEncoding arg2 ;
10541 void *argp1 = 0 ;
10542 int res1 = 0 ;
10543 int val2 ;
10544 int ecode2 = 0 ;
10545 PyObject * obj0 = 0 ;
10546 PyObject * obj1 = 0 ;
10547 char * kwnames[] = {
10548 (char *) "self",(char *) "encoding", NULL
10549 };
10550
10551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
10552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10553 if (!SWIG_IsOK(res1)) {
10554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10555 }
10556 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10557 ecode2 = SWIG_AsVal_int(obj1, &val2);
10558 if (!SWIG_IsOK(ecode2)) {
10559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10560 }
10561 arg2 = static_cast< wxFontEncoding >(val2);
10562 {
10563 PyThreadState* __tstate = wxPyBeginAllowThreads();
10564 (arg1)->SetEncoding(arg2);
10565 wxPyEndAllowThreads(__tstate);
10566 if (PyErr_Occurred()) SWIG_fail;
10567 }
10568 resultobj = SWIG_Py_Void();
10569 return resultobj;
10570 fail:
10571 return NULL;
10572 }
10573
10574
10575 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10576 PyObject *resultobj = 0;
10577 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10578 wxString *arg2 = 0 ;
10579 bool result;
10580 void *argp1 = 0 ;
10581 int res1 = 0 ;
10582 bool temp2 = false ;
10583 PyObject * obj0 = 0 ;
10584 PyObject * obj1 = 0 ;
10585 char * kwnames[] = {
10586 (char *) "self",(char *) "s", NULL
10587 };
10588
10589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10591 if (!SWIG_IsOK(res1)) {
10592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10593 }
10594 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10595 {
10596 arg2 = wxString_in_helper(obj1);
10597 if (arg2 == NULL) SWIG_fail;
10598 temp2 = true;
10599 }
10600 {
10601 PyThreadState* __tstate = wxPyBeginAllowThreads();
10602 result = (bool)(arg1)->FromString((wxString const &)*arg2);
10603 wxPyEndAllowThreads(__tstate);
10604 if (PyErr_Occurred()) SWIG_fail;
10605 }
10606 {
10607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10608 }
10609 {
10610 if (temp2)
10611 delete arg2;
10612 }
10613 return resultobj;
10614 fail:
10615 {
10616 if (temp2)
10617 delete arg2;
10618 }
10619 return NULL;
10620 }
10621
10622
10623 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10624 PyObject *resultobj = 0;
10625 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10626 wxString result;
10627 void *argp1 = 0 ;
10628 int res1 = 0 ;
10629 PyObject *swig_obj[1] ;
10630
10631 if (!args) SWIG_fail;
10632 swig_obj[0] = args;
10633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10634 if (!SWIG_IsOK(res1)) {
10635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10636 }
10637 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10638 {
10639 PyThreadState* __tstate = wxPyBeginAllowThreads();
10640 result = ((wxNativeFontInfo const *)arg1)->ToString();
10641 wxPyEndAllowThreads(__tstate);
10642 if (PyErr_Occurred()) SWIG_fail;
10643 }
10644 {
10645 #if wxUSE_UNICODE
10646 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10647 #else
10648 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10649 #endif
10650 }
10651 return resultobj;
10652 fail:
10653 return NULL;
10654 }
10655
10656
10657 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10658 PyObject *resultobj = 0;
10659 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10660 wxString result;
10661 void *argp1 = 0 ;
10662 int res1 = 0 ;
10663 PyObject *swig_obj[1] ;
10664
10665 if (!args) SWIG_fail;
10666 swig_obj[0] = args;
10667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10668 if (!SWIG_IsOK(res1)) {
10669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10670 }
10671 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10672 {
10673 PyThreadState* __tstate = wxPyBeginAllowThreads();
10674 result = wxNativeFontInfo___str__(arg1);
10675 wxPyEndAllowThreads(__tstate);
10676 if (PyErr_Occurred()) SWIG_fail;
10677 }
10678 {
10679 #if wxUSE_UNICODE
10680 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10681 #else
10682 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10683 #endif
10684 }
10685 return resultobj;
10686 fail:
10687 return NULL;
10688 }
10689
10690
10691 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10692 PyObject *resultobj = 0;
10693 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10694 wxString *arg2 = 0 ;
10695 bool result;
10696 void *argp1 = 0 ;
10697 int res1 = 0 ;
10698 bool temp2 = false ;
10699 PyObject * obj0 = 0 ;
10700 PyObject * obj1 = 0 ;
10701 char * kwnames[] = {
10702 (char *) "self",(char *) "s", NULL
10703 };
10704
10705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
10706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10707 if (!SWIG_IsOK(res1)) {
10708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10709 }
10710 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10711 {
10712 arg2 = wxString_in_helper(obj1);
10713 if (arg2 == NULL) SWIG_fail;
10714 temp2 = true;
10715 }
10716 {
10717 PyThreadState* __tstate = wxPyBeginAllowThreads();
10718 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
10719 wxPyEndAllowThreads(__tstate);
10720 if (PyErr_Occurred()) SWIG_fail;
10721 }
10722 {
10723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10724 }
10725 {
10726 if (temp2)
10727 delete arg2;
10728 }
10729 return resultobj;
10730 fail:
10731 {
10732 if (temp2)
10733 delete arg2;
10734 }
10735 return NULL;
10736 }
10737
10738
10739 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10740 PyObject *resultobj = 0;
10741 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10742 wxString result;
10743 void *argp1 = 0 ;
10744 int res1 = 0 ;
10745 PyObject *swig_obj[1] ;
10746
10747 if (!args) SWIG_fail;
10748 swig_obj[0] = args;
10749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10750 if (!SWIG_IsOK(res1)) {
10751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10752 }
10753 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10754 {
10755 PyThreadState* __tstate = wxPyBeginAllowThreads();
10756 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
10757 wxPyEndAllowThreads(__tstate);
10758 if (PyErr_Occurred()) SWIG_fail;
10759 }
10760 {
10761 #if wxUSE_UNICODE
10762 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10763 #else
10764 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10765 #endif
10766 }
10767 return resultobj;
10768 fail:
10769 return NULL;
10770 }
10771
10772
10773 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10774 PyObject *obj;
10775 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10776 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
10777 return SWIG_Py_Void();
10778 }
10779
10780 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10781 return SWIG_Python_InitShadowInstance(args);
10782 }
10783
10784 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10785 PyObject *resultobj = 0;
10786 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10787 wxString *arg2 = (wxString *) 0 ;
10788 void *argp1 = 0 ;
10789 int res1 = 0 ;
10790 bool temp2 = false ;
10791 PyObject *swig_obj[2] ;
10792
10793 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
10794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10795 if (!SWIG_IsOK(res1)) {
10796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10797 }
10798 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10799 {
10800 arg2 = wxString_in_helper(swig_obj[1]);
10801 if (arg2 == NULL) SWIG_fail;
10802 temp2 = true;
10803 }
10804 if (arg1) (arg1)->facename = *arg2;
10805
10806 resultobj = SWIG_Py_Void();
10807 {
10808 if (temp2)
10809 delete arg2;
10810 }
10811 return resultobj;
10812 fail:
10813 {
10814 if (temp2)
10815 delete arg2;
10816 }
10817 return NULL;
10818 }
10819
10820
10821 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10822 PyObject *resultobj = 0;
10823 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10824 wxString *result = 0 ;
10825 void *argp1 = 0 ;
10826 int res1 = 0 ;
10827 PyObject *swig_obj[1] ;
10828
10829 if (!args) SWIG_fail;
10830 swig_obj[0] = args;
10831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10832 if (!SWIG_IsOK(res1)) {
10833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10834 }
10835 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10836 result = (wxString *)& ((arg1)->facename);
10837 {
10838 #if wxUSE_UNICODE
10839 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10840 #else
10841 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10842 #endif
10843 }
10844 return resultobj;
10845 fail:
10846 return NULL;
10847 }
10848
10849
10850 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10851 PyObject *resultobj = 0;
10852 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10853 wxFontEncoding arg2 ;
10854 void *argp1 = 0 ;
10855 int res1 = 0 ;
10856 int val2 ;
10857 int ecode2 = 0 ;
10858 PyObject *swig_obj[2] ;
10859
10860 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
10861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10862 if (!SWIG_IsOK(res1)) {
10863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10864 }
10865 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10866 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10867 if (!SWIG_IsOK(ecode2)) {
10868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10869 }
10870 arg2 = static_cast< wxFontEncoding >(val2);
10871 if (arg1) (arg1)->encoding = arg2;
10872
10873 resultobj = SWIG_Py_Void();
10874 return resultobj;
10875 fail:
10876 return NULL;
10877 }
10878
10879
10880 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10881 PyObject *resultobj = 0;
10882 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10883 wxFontEncoding result;
10884 void *argp1 = 0 ;
10885 int res1 = 0 ;
10886 PyObject *swig_obj[1] ;
10887
10888 if (!args) SWIG_fail;
10889 swig_obj[0] = args;
10890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10891 if (!SWIG_IsOK(res1)) {
10892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10893 }
10894 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10895 result = (wxFontEncoding) ((arg1)->encoding);
10896 resultobj = SWIG_From_int(static_cast< int >(result));
10897 return resultobj;
10898 fail:
10899 return NULL;
10900 }
10901
10902
10903 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10904 PyObject *resultobj = 0;
10905 wxNativeEncodingInfo *result = 0 ;
10906
10907 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
10908 {
10909 PyThreadState* __tstate = wxPyBeginAllowThreads();
10910 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
10911 wxPyEndAllowThreads(__tstate);
10912 if (PyErr_Occurred()) SWIG_fail;
10913 }
10914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
10915 return resultobj;
10916 fail:
10917 return NULL;
10918 }
10919
10920
10921 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10922 PyObject *resultobj = 0;
10923 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10924 void *argp1 = 0 ;
10925 int res1 = 0 ;
10926 PyObject *swig_obj[1] ;
10927
10928 if (!args) SWIG_fail;
10929 swig_obj[0] = args;
10930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
10931 if (!SWIG_IsOK(res1)) {
10932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10933 }
10934 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10935 {
10936 PyThreadState* __tstate = wxPyBeginAllowThreads();
10937 delete arg1;
10938
10939 wxPyEndAllowThreads(__tstate);
10940 if (PyErr_Occurred()) SWIG_fail;
10941 }
10942 resultobj = SWIG_Py_Void();
10943 return resultobj;
10944 fail:
10945 return NULL;
10946 }
10947
10948
10949 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10950 PyObject *resultobj = 0;
10951 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10952 wxString *arg2 = 0 ;
10953 bool result;
10954 void *argp1 = 0 ;
10955 int res1 = 0 ;
10956 bool temp2 = false ;
10957 PyObject * obj0 = 0 ;
10958 PyObject * obj1 = 0 ;
10959 char * kwnames[] = {
10960 (char *) "self",(char *) "s", NULL
10961 };
10962
10963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10965 if (!SWIG_IsOK(res1)) {
10966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10967 }
10968 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10969 {
10970 arg2 = wxString_in_helper(obj1);
10971 if (arg2 == NULL) SWIG_fail;
10972 temp2 = true;
10973 }
10974 {
10975 PyThreadState* __tstate = wxPyBeginAllowThreads();
10976 result = (bool)(arg1)->FromString((wxString const &)*arg2);
10977 wxPyEndAllowThreads(__tstate);
10978 if (PyErr_Occurred()) SWIG_fail;
10979 }
10980 {
10981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10982 }
10983 {
10984 if (temp2)
10985 delete arg2;
10986 }
10987 return resultobj;
10988 fail:
10989 {
10990 if (temp2)
10991 delete arg2;
10992 }
10993 return NULL;
10994 }
10995
10996
10997 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10998 PyObject *resultobj = 0;
10999 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
11000 wxString result;
11001 void *argp1 = 0 ;
11002 int res1 = 0 ;
11003 PyObject *swig_obj[1] ;
11004
11005 if (!args) SWIG_fail;
11006 swig_obj[0] = args;
11007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11008 if (!SWIG_IsOK(res1)) {
11009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
11010 }
11011 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11012 {
11013 PyThreadState* __tstate = wxPyBeginAllowThreads();
11014 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
11015 wxPyEndAllowThreads(__tstate);
11016 if (PyErr_Occurred()) SWIG_fail;
11017 }
11018 {
11019 #if wxUSE_UNICODE
11020 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11021 #else
11022 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11023 #endif
11024 }
11025 return resultobj;
11026 fail:
11027 return NULL;
11028 }
11029
11030
11031 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11032 PyObject *obj;
11033 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11034 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
11035 return SWIG_Py_Void();
11036 }
11037
11038 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11039 return SWIG_Python_InitShadowInstance(args);
11040 }
11041
11042 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11043 PyObject *resultobj = 0;
11044 wxFontEncoding arg1 ;
11045 wxNativeEncodingInfo *result = 0 ;
11046 int val1 ;
11047 int ecode1 = 0 ;
11048 PyObject * obj0 = 0 ;
11049 char * kwnames[] = {
11050 (char *) "encoding", NULL
11051 };
11052
11053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
11054 ecode1 = SWIG_AsVal_int(obj0, &val1);
11055 if (!SWIG_IsOK(ecode1)) {
11056 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11057 }
11058 arg1 = static_cast< wxFontEncoding >(val1);
11059 {
11060 PyThreadState* __tstate = wxPyBeginAllowThreads();
11061 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
11062 wxPyEndAllowThreads(__tstate);
11063 if (PyErr_Occurred()) SWIG_fail;
11064 }
11065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11066 return resultobj;
11067 fail:
11068 return NULL;
11069 }
11070
11071
11072 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11073 PyObject *resultobj = 0;
11074 wxNativeEncodingInfo *arg1 = 0 ;
11075 bool result;
11076 void *argp1 = 0 ;
11077 int res1 = 0 ;
11078 PyObject * obj0 = 0 ;
11079 char * kwnames[] = {
11080 (char *) "info", NULL
11081 };
11082
11083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
11084 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
11085 if (!SWIG_IsOK(res1)) {
11086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
11087 }
11088 if (!argp1) {
11089 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
11090 }
11091 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11092 {
11093 PyThreadState* __tstate = wxPyBeginAllowThreads();
11094 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
11095 wxPyEndAllowThreads(__tstate);
11096 if (PyErr_Occurred()) SWIG_fail;
11097 }
11098 {
11099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11100 }
11101 return resultobj;
11102 fail:
11103 return NULL;
11104 }
11105
11106
11107 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11108 PyObject *resultobj = 0;
11109 wxFontMapper *result = 0 ;
11110
11111 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
11112 {
11113 PyThreadState* __tstate = wxPyBeginAllowThreads();
11114 result = (wxFontMapper *)new wxFontMapper();
11115 wxPyEndAllowThreads(__tstate);
11116 if (PyErr_Occurred()) SWIG_fail;
11117 }
11118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
11119 return resultobj;
11120 fail:
11121 return NULL;
11122 }
11123
11124
11125 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11126 PyObject *resultobj = 0;
11127 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11128 void *argp1 = 0 ;
11129 int res1 = 0 ;
11130 PyObject *swig_obj[1] ;
11131
11132 if (!args) SWIG_fail;
11133 swig_obj[0] = args;
11134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
11135 if (!SWIG_IsOK(res1)) {
11136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11137 }
11138 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11139 {
11140 PyThreadState* __tstate = wxPyBeginAllowThreads();
11141 delete arg1;
11142
11143 wxPyEndAllowThreads(__tstate);
11144 if (PyErr_Occurred()) SWIG_fail;
11145 }
11146 resultobj = SWIG_Py_Void();
11147 return resultobj;
11148 fail:
11149 return NULL;
11150 }
11151
11152
11153 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11154 PyObject *resultobj = 0;
11155 wxFontMapper *result = 0 ;
11156
11157 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
11158 {
11159 PyThreadState* __tstate = wxPyBeginAllowThreads();
11160 result = (wxFontMapper *)wxFontMapper::Get();
11161 wxPyEndAllowThreads(__tstate);
11162 if (PyErr_Occurred()) SWIG_fail;
11163 }
11164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
11165 return resultobj;
11166 fail:
11167 return NULL;
11168 }
11169
11170
11171 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11172 PyObject *resultobj = 0;
11173 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11174 wxFontMapper *result = 0 ;
11175 void *argp1 = 0 ;
11176 int res1 = 0 ;
11177 PyObject * obj0 = 0 ;
11178 char * kwnames[] = {
11179 (char *) "mapper", NULL
11180 };
11181
11182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
11183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11184 if (!SWIG_IsOK(res1)) {
11185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11186 }
11187 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11188 {
11189 PyThreadState* __tstate = wxPyBeginAllowThreads();
11190 result = (wxFontMapper *)wxFontMapper::Set(arg1);
11191 wxPyEndAllowThreads(__tstate);
11192 if (PyErr_Occurred()) SWIG_fail;
11193 }
11194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
11195 return resultobj;
11196 fail:
11197 return NULL;
11198 }
11199
11200
11201 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11202 PyObject *resultobj = 0;
11203 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11204 wxString *arg2 = 0 ;
11205 bool arg3 = (bool) true ;
11206 wxFontEncoding result;
11207 void *argp1 = 0 ;
11208 int res1 = 0 ;
11209 bool temp2 = false ;
11210 bool val3 ;
11211 int ecode3 = 0 ;
11212 PyObject * obj0 = 0 ;
11213 PyObject * obj1 = 0 ;
11214 PyObject * obj2 = 0 ;
11215 char * kwnames[] = {
11216 (char *) "self",(char *) "charset",(char *) "interactive", NULL
11217 };
11218
11219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11221 if (!SWIG_IsOK(res1)) {
11222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11223 }
11224 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11225 {
11226 arg2 = wxString_in_helper(obj1);
11227 if (arg2 == NULL) SWIG_fail;
11228 temp2 = true;
11229 }
11230 if (obj2) {
11231 ecode3 = SWIG_AsVal_bool(obj2, &val3);
11232 if (!SWIG_IsOK(ecode3)) {
11233 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
11234 }
11235 arg3 = static_cast< bool >(val3);
11236 }
11237 {
11238 PyThreadState* __tstate = wxPyBeginAllowThreads();
11239 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
11240 wxPyEndAllowThreads(__tstate);
11241 if (PyErr_Occurred()) SWIG_fail;
11242 }
11243 resultobj = SWIG_From_int(static_cast< int >(result));
11244 {
11245 if (temp2)
11246 delete arg2;
11247 }
11248 return resultobj;
11249 fail:
11250 {
11251 if (temp2)
11252 delete arg2;
11253 }
11254 return NULL;
11255 }
11256
11257
11258 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11259 PyObject *resultobj = 0;
11260 size_t result;
11261
11262 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
11263 {
11264 PyThreadState* __tstate = wxPyBeginAllowThreads();
11265 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
11266 wxPyEndAllowThreads(__tstate);
11267 if (PyErr_Occurred()) SWIG_fail;
11268 }
11269 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
11270 return resultobj;
11271 fail:
11272 return NULL;
11273 }
11274
11275
11276 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11277 PyObject *resultobj = 0;
11278 size_t arg1 ;
11279 wxFontEncoding result;
11280 size_t val1 ;
11281 int ecode1 = 0 ;
11282 PyObject * obj0 = 0 ;
11283 char * kwnames[] = {
11284 (char *) "n", NULL
11285 };
11286
11287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
11288 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
11289 if (!SWIG_IsOK(ecode1)) {
11290 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
11291 }
11292 arg1 = static_cast< size_t >(val1);
11293 {
11294 PyThreadState* __tstate = wxPyBeginAllowThreads();
11295 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
11296 wxPyEndAllowThreads(__tstate);
11297 if (PyErr_Occurred()) SWIG_fail;
11298 }
11299 resultobj = SWIG_From_int(static_cast< int >(result));
11300 return resultobj;
11301 fail:
11302 return NULL;
11303 }
11304
11305
11306 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11307 PyObject *resultobj = 0;
11308 wxFontEncoding arg1 ;
11309 wxString result;
11310 int val1 ;
11311 int ecode1 = 0 ;
11312 PyObject * obj0 = 0 ;
11313 char * kwnames[] = {
11314 (char *) "encoding", NULL
11315 };
11316
11317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
11318 ecode1 = SWIG_AsVal_int(obj0, &val1);
11319 if (!SWIG_IsOK(ecode1)) {
11320 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11321 }
11322 arg1 = static_cast< wxFontEncoding >(val1);
11323 {
11324 PyThreadState* __tstate = wxPyBeginAllowThreads();
11325 result = wxFontMapper::GetEncodingName(arg1);
11326 wxPyEndAllowThreads(__tstate);
11327 if (PyErr_Occurred()) SWIG_fail;
11328 }
11329 {
11330 #if wxUSE_UNICODE
11331 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11332 #else
11333 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11334 #endif
11335 }
11336 return resultobj;
11337 fail:
11338 return NULL;
11339 }
11340
11341
11342 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11343 PyObject *resultobj = 0;
11344 wxFontEncoding arg1 ;
11345 wxString result;
11346 int val1 ;
11347 int ecode1 = 0 ;
11348 PyObject * obj0 = 0 ;
11349 char * kwnames[] = {
11350 (char *) "encoding", NULL
11351 };
11352
11353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
11354 ecode1 = SWIG_AsVal_int(obj0, &val1);
11355 if (!SWIG_IsOK(ecode1)) {
11356 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11357 }
11358 arg1 = static_cast< wxFontEncoding >(val1);
11359 {
11360 PyThreadState* __tstate = wxPyBeginAllowThreads();
11361 result = wxFontMapper::GetEncodingDescription(arg1);
11362 wxPyEndAllowThreads(__tstate);
11363 if (PyErr_Occurred()) SWIG_fail;
11364 }
11365 {
11366 #if wxUSE_UNICODE
11367 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11368 #else
11369 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11370 #endif
11371 }
11372 return resultobj;
11373 fail:
11374 return NULL;
11375 }
11376
11377
11378 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11379 PyObject *resultobj = 0;
11380 wxString *arg1 = 0 ;
11381 wxFontEncoding result;
11382 bool temp1 = false ;
11383 PyObject * obj0 = 0 ;
11384 char * kwnames[] = {
11385 (char *) "name", NULL
11386 };
11387
11388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
11389 {
11390 arg1 = wxString_in_helper(obj0);
11391 if (arg1 == NULL) SWIG_fail;
11392 temp1 = true;
11393 }
11394 {
11395 PyThreadState* __tstate = wxPyBeginAllowThreads();
11396 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
11397 wxPyEndAllowThreads(__tstate);
11398 if (PyErr_Occurred()) SWIG_fail;
11399 }
11400 resultobj = SWIG_From_int(static_cast< int >(result));
11401 {
11402 if (temp1)
11403 delete arg1;
11404 }
11405 return resultobj;
11406 fail:
11407 {
11408 if (temp1)
11409 delete arg1;
11410 }
11411 return NULL;
11412 }
11413
11414
11415 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11416 PyObject *resultobj = 0;
11417 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11418 wxString *arg2 = 0 ;
11419 void *argp1 = 0 ;
11420 int res1 = 0 ;
11421 bool temp2 = false ;
11422 PyObject * obj0 = 0 ;
11423 PyObject * obj1 = 0 ;
11424 char * kwnames[] = {
11425 (char *) "self",(char *) "prefix", NULL
11426 };
11427
11428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
11429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11430 if (!SWIG_IsOK(res1)) {
11431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11432 }
11433 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11434 {
11435 arg2 = wxString_in_helper(obj1);
11436 if (arg2 == NULL) SWIG_fail;
11437 temp2 = true;
11438 }
11439 {
11440 PyThreadState* __tstate = wxPyBeginAllowThreads();
11441 (arg1)->SetConfigPath((wxString const &)*arg2);
11442 wxPyEndAllowThreads(__tstate);
11443 if (PyErr_Occurred()) SWIG_fail;
11444 }
11445 resultobj = SWIG_Py_Void();
11446 {
11447 if (temp2)
11448 delete arg2;
11449 }
11450 return resultobj;
11451 fail:
11452 {
11453 if (temp2)
11454 delete arg2;
11455 }
11456 return NULL;
11457 }
11458
11459
11460 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11461 PyObject *resultobj = 0;
11462 wxString result;
11463
11464 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
11465 {
11466 PyThreadState* __tstate = wxPyBeginAllowThreads();
11467 result = wxFontMapper::GetDefaultConfigPath();
11468 wxPyEndAllowThreads(__tstate);
11469 if (PyErr_Occurred()) SWIG_fail;
11470 }
11471 {
11472 #if wxUSE_UNICODE
11473 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11474 #else
11475 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11476 #endif
11477 }
11478 return resultobj;
11479 fail:
11480 return NULL;
11481 }
11482
11483
11484 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11485 PyObject *resultobj = 0;
11486 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11487 wxFontEncoding arg2 ;
11488 wxString const &arg3_defvalue = wxPyEmptyString ;
11489 wxString *arg3 = (wxString *) &arg3_defvalue ;
11490 bool arg4 = (bool) true ;
11491 PyObject *result = 0 ;
11492 void *argp1 = 0 ;
11493 int res1 = 0 ;
11494 int val2 ;
11495 int ecode2 = 0 ;
11496 bool temp3 = false ;
11497 bool val4 ;
11498 int ecode4 = 0 ;
11499 PyObject * obj0 = 0 ;
11500 PyObject * obj1 = 0 ;
11501 PyObject * obj2 = 0 ;
11502 PyObject * obj3 = 0 ;
11503 char * kwnames[] = {
11504 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
11505 };
11506
11507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11509 if (!SWIG_IsOK(res1)) {
11510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11511 }
11512 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11513 ecode2 = SWIG_AsVal_int(obj1, &val2);
11514 if (!SWIG_IsOK(ecode2)) {
11515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
11516 }
11517 arg2 = static_cast< wxFontEncoding >(val2);
11518 if (obj2) {
11519 {
11520 arg3 = wxString_in_helper(obj2);
11521 if (arg3 == NULL) SWIG_fail;
11522 temp3 = true;
11523 }
11524 }
11525 if (obj3) {
11526 ecode4 = SWIG_AsVal_bool(obj3, &val4);
11527 if (!SWIG_IsOK(ecode4)) {
11528 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
11529 }
11530 arg4 = static_cast< bool >(val4);
11531 }
11532 {
11533 PyThreadState* __tstate = wxPyBeginAllowThreads();
11534 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
11535 wxPyEndAllowThreads(__tstate);
11536 if (PyErr_Occurred()) SWIG_fail;
11537 }
11538 resultobj = result;
11539 {
11540 if (temp3)
11541 delete arg3;
11542 }
11543 return resultobj;
11544 fail:
11545 {
11546 if (temp3)
11547 delete arg3;
11548 }
11549 return NULL;
11550 }
11551
11552
11553 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11554 PyObject *resultobj = 0;
11555 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11556 wxFontEncoding arg2 ;
11557 wxString const &arg3_defvalue = wxPyEmptyString ;
11558 wxString *arg3 = (wxString *) &arg3_defvalue ;
11559 bool result;
11560 void *argp1 = 0 ;
11561 int res1 = 0 ;
11562 int val2 ;
11563 int ecode2 = 0 ;
11564 bool temp3 = false ;
11565 PyObject * obj0 = 0 ;
11566 PyObject * obj1 = 0 ;
11567 PyObject * obj2 = 0 ;
11568 char * kwnames[] = {
11569 (char *) "self",(char *) "encoding",(char *) "facename", NULL
11570 };
11571
11572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11574 if (!SWIG_IsOK(res1)) {
11575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11576 }
11577 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11578 ecode2 = SWIG_AsVal_int(obj1, &val2);
11579 if (!SWIG_IsOK(ecode2)) {
11580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
11581 }
11582 arg2 = static_cast< wxFontEncoding >(val2);
11583 if (obj2) {
11584 {
11585 arg3 = wxString_in_helper(obj2);
11586 if (arg3 == NULL) SWIG_fail;
11587 temp3 = true;
11588 }
11589 }
11590 {
11591 PyThreadState* __tstate = wxPyBeginAllowThreads();
11592 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
11593 wxPyEndAllowThreads(__tstate);
11594 if (PyErr_Occurred()) SWIG_fail;
11595 }
11596 {
11597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11598 }
11599 {
11600 if (temp3)
11601 delete arg3;
11602 }
11603 return resultobj;
11604 fail:
11605 {
11606 if (temp3)
11607 delete arg3;
11608 }
11609 return NULL;
11610 }
11611
11612
11613 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11614 PyObject *resultobj = 0;
11615 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11616 wxWindow *arg2 = (wxWindow *) 0 ;
11617 void *argp1 = 0 ;
11618 int res1 = 0 ;
11619 void *argp2 = 0 ;
11620 int res2 = 0 ;
11621 PyObject * obj0 = 0 ;
11622 PyObject * obj1 = 0 ;
11623 char * kwnames[] = {
11624 (char *) "self",(char *) "parent", NULL
11625 };
11626
11627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
11628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11629 if (!SWIG_IsOK(res1)) {
11630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11631 }
11632 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11633 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11634 if (!SWIG_IsOK(res2)) {
11635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
11636 }
11637 arg2 = reinterpret_cast< wxWindow * >(argp2);
11638 {
11639 PyThreadState* __tstate = wxPyBeginAllowThreads();
11640 (arg1)->SetDialogParent(arg2);
11641 wxPyEndAllowThreads(__tstate);
11642 if (PyErr_Occurred()) SWIG_fail;
11643 }
11644 resultobj = SWIG_Py_Void();
11645 return resultobj;
11646 fail:
11647 return NULL;
11648 }
11649
11650
11651 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11652 PyObject *resultobj = 0;
11653 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11654 wxString *arg2 = 0 ;
11655 void *argp1 = 0 ;
11656 int res1 = 0 ;
11657 bool temp2 = false ;
11658 PyObject * obj0 = 0 ;
11659 PyObject * obj1 = 0 ;
11660 char * kwnames[] = {
11661 (char *) "self",(char *) "title", NULL
11662 };
11663
11664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
11665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11666 if (!SWIG_IsOK(res1)) {
11667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11668 }
11669 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11670 {
11671 arg2 = wxString_in_helper(obj1);
11672 if (arg2 == NULL) SWIG_fail;
11673 temp2 = true;
11674 }
11675 {
11676 PyThreadState* __tstate = wxPyBeginAllowThreads();
11677 (arg1)->SetDialogTitle((wxString const &)*arg2);
11678 wxPyEndAllowThreads(__tstate);
11679 if (PyErr_Occurred()) SWIG_fail;
11680 }
11681 resultobj = SWIG_Py_Void();
11682 {
11683 if (temp2)
11684 delete arg2;
11685 }
11686 return resultobj;
11687 fail:
11688 {
11689 if (temp2)
11690 delete arg2;
11691 }
11692 return NULL;
11693 }
11694
11695
11696 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11697 PyObject *obj;
11698 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11699 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
11700 return SWIG_Py_Void();
11701 }
11702
11703 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11704 return SWIG_Python_InitShadowInstance(args);
11705 }
11706
11707 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11708 PyObject *resultobj = 0;
11709 int arg1 ;
11710 int arg2 ;
11711 int arg3 ;
11712 int arg4 ;
11713 bool arg5 = (bool) false ;
11714 wxString const &arg6_defvalue = wxPyEmptyString ;
11715 wxString *arg6 = (wxString *) &arg6_defvalue ;
11716 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11717 wxFont *result = 0 ;
11718 int val1 ;
11719 int ecode1 = 0 ;
11720 int val2 ;
11721 int ecode2 = 0 ;
11722 int val3 ;
11723 int ecode3 = 0 ;
11724 int val4 ;
11725 int ecode4 = 0 ;
11726 bool val5 ;
11727 int ecode5 = 0 ;
11728 bool temp6 = false ;
11729 int val7 ;
11730 int ecode7 = 0 ;
11731 PyObject * obj0 = 0 ;
11732 PyObject * obj1 = 0 ;
11733 PyObject * obj2 = 0 ;
11734 PyObject * obj3 = 0 ;
11735 PyObject * obj4 = 0 ;
11736 PyObject * obj5 = 0 ;
11737 PyObject * obj6 = 0 ;
11738 char * kwnames[] = {
11739 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11740 };
11741
11742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11743 ecode1 = SWIG_AsVal_int(obj0, &val1);
11744 if (!SWIG_IsOK(ecode1)) {
11745 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11746 }
11747 arg1 = static_cast< int >(val1);
11748 ecode2 = SWIG_AsVal_int(obj1, &val2);
11749 if (!SWIG_IsOK(ecode2)) {
11750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11751 }
11752 arg2 = static_cast< int >(val2);
11753 ecode3 = SWIG_AsVal_int(obj2, &val3);
11754 if (!SWIG_IsOK(ecode3)) {
11755 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11756 }
11757 arg3 = static_cast< int >(val3);
11758 ecode4 = SWIG_AsVal_int(obj3, &val4);
11759 if (!SWIG_IsOK(ecode4)) {
11760 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11761 }
11762 arg4 = static_cast< int >(val4);
11763 if (obj4) {
11764 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11765 if (!SWIG_IsOK(ecode5)) {
11766 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11767 }
11768 arg5 = static_cast< bool >(val5);
11769 }
11770 if (obj5) {
11771 {
11772 arg6 = wxString_in_helper(obj5);
11773 if (arg6 == NULL) SWIG_fail;
11774 temp6 = true;
11775 }
11776 }
11777 if (obj6) {
11778 ecode7 = SWIG_AsVal_int(obj6, &val7);
11779 if (!SWIG_IsOK(ecode7)) {
11780 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11781 }
11782 arg7 = static_cast< wxFontEncoding >(val7);
11783 }
11784 {
11785 if (!wxPyCheckForApp()) SWIG_fail;
11786 PyThreadState* __tstate = wxPyBeginAllowThreads();
11787 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11788 wxPyEndAllowThreads(__tstate);
11789 if (PyErr_Occurred()) SWIG_fail;
11790 }
11791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
11792 {
11793 if (temp6)
11794 delete arg6;
11795 }
11796 return resultobj;
11797 fail:
11798 {
11799 if (temp6)
11800 delete arg6;
11801 }
11802 return NULL;
11803 }
11804
11805
11806 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11807 PyObject *resultobj = 0;
11808 wxFont *arg1 = (wxFont *) 0 ;
11809 void *argp1 = 0 ;
11810 int res1 = 0 ;
11811 PyObject *swig_obj[1] ;
11812
11813 if (!args) SWIG_fail;
11814 swig_obj[0] = args;
11815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
11816 if (!SWIG_IsOK(res1)) {
11817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11818 }
11819 arg1 = reinterpret_cast< wxFont * >(argp1);
11820 {
11821 PyThreadState* __tstate = wxPyBeginAllowThreads();
11822 delete arg1;
11823
11824 wxPyEndAllowThreads(__tstate);
11825 if (PyErr_Occurred()) SWIG_fail;
11826 }
11827 resultobj = SWIG_Py_Void();
11828 return resultobj;
11829 fail:
11830 return NULL;
11831 }
11832
11833
11834 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11835 PyObject *resultobj = 0;
11836 wxNativeFontInfo *arg1 = 0 ;
11837 wxFont *result = 0 ;
11838 void *argp1 = 0 ;
11839 int res1 = 0 ;
11840 PyObject * obj0 = 0 ;
11841 char * kwnames[] = {
11842 (char *) "info", NULL
11843 };
11844
11845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
11846 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
11847 if (!SWIG_IsOK(res1)) {
11848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11849 }
11850 if (!argp1) {
11851 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11852 }
11853 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11854 {
11855 if (!wxPyCheckForApp()) SWIG_fail;
11856 PyThreadState* __tstate = wxPyBeginAllowThreads();
11857 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
11858 wxPyEndAllowThreads(__tstate);
11859 if (PyErr_Occurred()) SWIG_fail;
11860 }
11861 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11862 return resultobj;
11863 fail:
11864 return NULL;
11865 }
11866
11867
11868 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11869 PyObject *resultobj = 0;
11870 wxString *arg1 = 0 ;
11871 wxFont *result = 0 ;
11872 bool temp1 = false ;
11873 PyObject * obj0 = 0 ;
11874 char * kwnames[] = {
11875 (char *) "info", NULL
11876 };
11877
11878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
11879 {
11880 arg1 = wxString_in_helper(obj0);
11881 if (arg1 == NULL) SWIG_fail;
11882 temp1 = true;
11883 }
11884 {
11885 if (!wxPyCheckForApp()) SWIG_fail;
11886 PyThreadState* __tstate = wxPyBeginAllowThreads();
11887 result = (wxFont *)new_wxFont((wxString const &)*arg1);
11888 wxPyEndAllowThreads(__tstate);
11889 if (PyErr_Occurred()) SWIG_fail;
11890 }
11891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11892 {
11893 if (temp1)
11894 delete arg1;
11895 }
11896 return resultobj;
11897 fail:
11898 {
11899 if (temp1)
11900 delete arg1;
11901 }
11902 return NULL;
11903 }
11904
11905
11906 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11907 PyObject *resultobj = 0;
11908 int arg1 ;
11909 wxFontFamily arg2 ;
11910 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11911 wxString const &arg4_defvalue = wxPyEmptyString ;
11912 wxString *arg4 = (wxString *) &arg4_defvalue ;
11913 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11914 wxFont *result = 0 ;
11915 int val1 ;
11916 int ecode1 = 0 ;
11917 int val2 ;
11918 int ecode2 = 0 ;
11919 int val3 ;
11920 int ecode3 = 0 ;
11921 bool temp4 = false ;
11922 int val5 ;
11923 int ecode5 = 0 ;
11924 PyObject * obj0 = 0 ;
11925 PyObject * obj1 = 0 ;
11926 PyObject * obj2 = 0 ;
11927 PyObject * obj3 = 0 ;
11928 PyObject * obj4 = 0 ;
11929 char * kwnames[] = {
11930 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11931 };
11932
11933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11934 ecode1 = SWIG_AsVal_int(obj0, &val1);
11935 if (!SWIG_IsOK(ecode1)) {
11936 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11937 }
11938 arg1 = static_cast< int >(val1);
11939 ecode2 = SWIG_AsVal_int(obj1, &val2);
11940 if (!SWIG_IsOK(ecode2)) {
11941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
11942 }
11943 arg2 = static_cast< wxFontFamily >(val2);
11944 if (obj2) {
11945 ecode3 = SWIG_AsVal_int(obj2, &val3);
11946 if (!SWIG_IsOK(ecode3)) {
11947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
11948 }
11949 arg3 = static_cast< int >(val3);
11950 }
11951 if (obj3) {
11952 {
11953 arg4 = wxString_in_helper(obj3);
11954 if (arg4 == NULL) SWIG_fail;
11955 temp4 = true;
11956 }
11957 }
11958 if (obj4) {
11959 ecode5 = SWIG_AsVal_int(obj4, &val5);
11960 if (!SWIG_IsOK(ecode5)) {
11961 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11962 }
11963 arg5 = static_cast< wxFontEncoding >(val5);
11964 }
11965 {
11966 if (!wxPyCheckForApp()) SWIG_fail;
11967 PyThreadState* __tstate = wxPyBeginAllowThreads();
11968 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11969 wxPyEndAllowThreads(__tstate);
11970 if (PyErr_Occurred()) SWIG_fail;
11971 }
11972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11973 {
11974 if (temp4)
11975 delete arg4;
11976 }
11977 return resultobj;
11978 fail:
11979 {
11980 if (temp4)
11981 delete arg4;
11982 }
11983 return NULL;
11984 }
11985
11986
11987 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11988 PyObject *resultobj = 0;
11989 wxSize *arg1 = 0 ;
11990 int arg2 ;
11991 int arg3 ;
11992 int arg4 ;
11993 bool arg5 = (bool) false ;
11994 wxString const &arg6_defvalue = wxEmptyString ;
11995 wxString *arg6 = (wxString *) &arg6_defvalue ;
11996 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11997 wxFont *result = 0 ;
11998 wxSize temp1 ;
11999 int val2 ;
12000 int ecode2 = 0 ;
12001 int val3 ;
12002 int ecode3 = 0 ;
12003 int val4 ;
12004 int ecode4 = 0 ;
12005 bool val5 ;
12006 int ecode5 = 0 ;
12007 bool temp6 = false ;
12008 int val7 ;
12009 int ecode7 = 0 ;
12010 PyObject * obj0 = 0 ;
12011 PyObject * obj1 = 0 ;
12012 PyObject * obj2 = 0 ;
12013 PyObject * obj3 = 0 ;
12014 PyObject * obj4 = 0 ;
12015 PyObject * obj5 = 0 ;
12016 PyObject * obj6 = 0 ;
12017 char * kwnames[] = {
12018 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
12019 };
12020
12021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
12022 {
12023 arg1 = &temp1;
12024 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
12025 }
12026 ecode2 = SWIG_AsVal_int(obj1, &val2);
12027 if (!SWIG_IsOK(ecode2)) {
12028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
12029 }
12030 arg2 = static_cast< int >(val2);
12031 ecode3 = SWIG_AsVal_int(obj2, &val3);
12032 if (!SWIG_IsOK(ecode3)) {
12033 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
12034 }
12035 arg3 = static_cast< int >(val3);
12036 ecode4 = SWIG_AsVal_int(obj3, &val4);
12037 if (!SWIG_IsOK(ecode4)) {
12038 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
12039 }
12040 arg4 = static_cast< int >(val4);
12041 if (obj4) {
12042 ecode5 = SWIG_AsVal_bool(obj4, &val5);
12043 if (!SWIG_IsOK(ecode5)) {
12044 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
12045 }
12046 arg5 = static_cast< bool >(val5);
12047 }
12048 if (obj5) {
12049 {
12050 arg6 = wxString_in_helper(obj5);
12051 if (arg6 == NULL) SWIG_fail;
12052 temp6 = true;
12053 }
12054 }
12055 if (obj6) {
12056 ecode7 = SWIG_AsVal_int(obj6, &val7);
12057 if (!SWIG_IsOK(ecode7)) {
12058 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
12059 }
12060 arg7 = static_cast< wxFontEncoding >(val7);
12061 }
12062 {
12063 if (!wxPyCheckForApp()) SWIG_fail;
12064 PyThreadState* __tstate = wxPyBeginAllowThreads();
12065 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
12066 wxPyEndAllowThreads(__tstate);
12067 if (PyErr_Occurred()) SWIG_fail;
12068 }
12069 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12070 {
12071 if (temp6)
12072 delete arg6;
12073 }
12074 return resultobj;
12075 fail:
12076 {
12077 if (temp6)
12078 delete arg6;
12079 }
12080 return NULL;
12081 }
12082
12083
12084 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12085 PyObject *resultobj = 0;
12086 wxSize *arg1 = 0 ;
12087 wxFontFamily arg2 ;
12088 int arg3 = (int) wxFONTFLAG_DEFAULT ;
12089 wxString const &arg4_defvalue = wxEmptyString ;
12090 wxString *arg4 = (wxString *) &arg4_defvalue ;
12091 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
12092 wxFont *result = 0 ;
12093 wxSize temp1 ;
12094 int val2 ;
12095 int ecode2 = 0 ;
12096 int val3 ;
12097 int ecode3 = 0 ;
12098 bool temp4 = false ;
12099 int val5 ;
12100 int ecode5 = 0 ;
12101 PyObject * obj0 = 0 ;
12102 PyObject * obj1 = 0 ;
12103 PyObject * obj2 = 0 ;
12104 PyObject * obj3 = 0 ;
12105 PyObject * obj4 = 0 ;
12106 char * kwnames[] = {
12107 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
12108 };
12109
12110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12111 {
12112 arg1 = &temp1;
12113 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
12114 }
12115 ecode2 = SWIG_AsVal_int(obj1, &val2);
12116 if (!SWIG_IsOK(ecode2)) {
12117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
12118 }
12119 arg2 = static_cast< wxFontFamily >(val2);
12120 if (obj2) {
12121 ecode3 = SWIG_AsVal_int(obj2, &val3);
12122 if (!SWIG_IsOK(ecode3)) {
12123 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
12124 }
12125 arg3 = static_cast< int >(val3);
12126 }
12127 if (obj3) {
12128 {
12129 arg4 = wxString_in_helper(obj3);
12130 if (arg4 == NULL) SWIG_fail;
12131 temp4 = true;
12132 }
12133 }
12134 if (obj4) {
12135 ecode5 = SWIG_AsVal_int(obj4, &val5);
12136 if (!SWIG_IsOK(ecode5)) {
12137 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
12138 }
12139 arg5 = static_cast< wxFontEncoding >(val5);
12140 }
12141 {
12142 if (!wxPyCheckForApp()) SWIG_fail;
12143 PyThreadState* __tstate = wxPyBeginAllowThreads();
12144 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
12145 wxPyEndAllowThreads(__tstate);
12146 if (PyErr_Occurred()) SWIG_fail;
12147 }
12148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12149 {
12150 if (temp4)
12151 delete arg4;
12152 }
12153 return resultobj;
12154 fail:
12155 {
12156 if (temp4)
12157 delete arg4;
12158 }
12159 return NULL;
12160 }
12161
12162
12163 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12164 PyObject *resultobj = 0;
12165 wxFont *arg1 = (wxFont *) 0 ;
12166 bool result;
12167 void *argp1 = 0 ;
12168 int res1 = 0 ;
12169 PyObject *swig_obj[1] ;
12170
12171 if (!args) SWIG_fail;
12172 swig_obj[0] = args;
12173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12174 if (!SWIG_IsOK(res1)) {
12175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
12176 }
12177 arg1 = reinterpret_cast< wxFont * >(argp1);
12178 {
12179 PyThreadState* __tstate = wxPyBeginAllowThreads();
12180 result = (bool)((wxFont const *)arg1)->Ok();
12181 wxPyEndAllowThreads(__tstate);
12182 if (PyErr_Occurred()) SWIG_fail;
12183 }
12184 {
12185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12186 }
12187 return resultobj;
12188 fail:
12189 return NULL;
12190 }
12191
12192
12193 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12194 PyObject *resultobj = 0;
12195 wxFont *arg1 = (wxFont *) 0 ;
12196 wxFont *arg2 = (wxFont *) 0 ;
12197 bool result;
12198 void *argp1 = 0 ;
12199 int res1 = 0 ;
12200 void *argp2 = 0 ;
12201 int res2 = 0 ;
12202 PyObject * obj0 = 0 ;
12203 PyObject * obj1 = 0 ;
12204 char * kwnames[] = {
12205 (char *) "self",(char *) "other", NULL
12206 };
12207
12208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
12209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12210 if (!SWIG_IsOK(res1)) {
12211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
12212 }
12213 arg1 = reinterpret_cast< wxFont * >(argp1);
12214 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
12215 if (!SWIG_IsOK(res2)) {
12216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
12217 }
12218 arg2 = reinterpret_cast< wxFont * >(argp2);
12219 {
12220 PyThreadState* __tstate = wxPyBeginAllowThreads();
12221 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
12222 wxPyEndAllowThreads(__tstate);
12223 if (PyErr_Occurred()) SWIG_fail;
12224 }
12225 {
12226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12227 }
12228 return resultobj;
12229 fail:
12230 return NULL;
12231 }
12232
12233
12234 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12235 PyObject *resultobj = 0;
12236 wxFont *arg1 = (wxFont *) 0 ;
12237 wxFont *arg2 = (wxFont *) 0 ;
12238 bool result;
12239 void *argp1 = 0 ;
12240 int res1 = 0 ;
12241 void *argp2 = 0 ;
12242 int res2 = 0 ;
12243 PyObject * obj0 = 0 ;
12244 PyObject * obj1 = 0 ;
12245 char * kwnames[] = {
12246 (char *) "self",(char *) "other", NULL
12247 };
12248
12249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
12250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12251 if (!SWIG_IsOK(res1)) {
12252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
12253 }
12254 arg1 = reinterpret_cast< wxFont * >(argp1);
12255 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
12256 if (!SWIG_IsOK(res2)) {
12257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
12258 }
12259 arg2 = reinterpret_cast< wxFont * >(argp2);
12260 {
12261 PyThreadState* __tstate = wxPyBeginAllowThreads();
12262 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
12263 wxPyEndAllowThreads(__tstate);
12264 if (PyErr_Occurred()) SWIG_fail;
12265 }
12266 {
12267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12268 }
12269 return resultobj;
12270 fail:
12271 return NULL;
12272 }
12273
12274
12275 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12276 PyObject *resultobj = 0;
12277 wxFont *arg1 = (wxFont *) 0 ;
12278 int result;
12279 void *argp1 = 0 ;
12280 int res1 = 0 ;
12281 PyObject *swig_obj[1] ;
12282
12283 if (!args) SWIG_fail;
12284 swig_obj[0] = args;
12285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12286 if (!SWIG_IsOK(res1)) {
12287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
12288 }
12289 arg1 = reinterpret_cast< wxFont * >(argp1);
12290 {
12291 PyThreadState* __tstate = wxPyBeginAllowThreads();
12292 result = (int)((wxFont const *)arg1)->GetPointSize();
12293 wxPyEndAllowThreads(__tstate);
12294 if (PyErr_Occurred()) SWIG_fail;
12295 }
12296 resultobj = SWIG_From_int(static_cast< int >(result));
12297 return resultobj;
12298 fail:
12299 return NULL;
12300 }
12301
12302
12303 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12304 PyObject *resultobj = 0;
12305 wxFont *arg1 = (wxFont *) 0 ;
12306 wxSize result;
12307 void *argp1 = 0 ;
12308 int res1 = 0 ;
12309 PyObject *swig_obj[1] ;
12310
12311 if (!args) SWIG_fail;
12312 swig_obj[0] = args;
12313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12314 if (!SWIG_IsOK(res1)) {
12315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
12316 }
12317 arg1 = reinterpret_cast< wxFont * >(argp1);
12318 {
12319 PyThreadState* __tstate = wxPyBeginAllowThreads();
12320 result = ((wxFont const *)arg1)->GetPixelSize();
12321 wxPyEndAllowThreads(__tstate);
12322 if (PyErr_Occurred()) SWIG_fail;
12323 }
12324 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12325 return resultobj;
12326 fail:
12327 return NULL;
12328 }
12329
12330
12331 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12332 PyObject *resultobj = 0;
12333 wxFont *arg1 = (wxFont *) 0 ;
12334 bool result;
12335 void *argp1 = 0 ;
12336 int res1 = 0 ;
12337 PyObject *swig_obj[1] ;
12338
12339 if (!args) SWIG_fail;
12340 swig_obj[0] = args;
12341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12342 if (!SWIG_IsOK(res1)) {
12343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
12344 }
12345 arg1 = reinterpret_cast< wxFont * >(argp1);
12346 {
12347 PyThreadState* __tstate = wxPyBeginAllowThreads();
12348 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
12349 wxPyEndAllowThreads(__tstate);
12350 if (PyErr_Occurred()) SWIG_fail;
12351 }
12352 {
12353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12354 }
12355 return resultobj;
12356 fail:
12357 return NULL;
12358 }
12359
12360
12361 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12362 PyObject *resultobj = 0;
12363 wxFont *arg1 = (wxFont *) 0 ;
12364 int result;
12365 void *argp1 = 0 ;
12366 int res1 = 0 ;
12367 PyObject *swig_obj[1] ;
12368
12369 if (!args) SWIG_fail;
12370 swig_obj[0] = args;
12371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12372 if (!SWIG_IsOK(res1)) {
12373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
12374 }
12375 arg1 = reinterpret_cast< wxFont * >(argp1);
12376 {
12377 PyThreadState* __tstate = wxPyBeginAllowThreads();
12378 result = (int)((wxFont const *)arg1)->GetFamily();
12379 wxPyEndAllowThreads(__tstate);
12380 if (PyErr_Occurred()) SWIG_fail;
12381 }
12382 resultobj = SWIG_From_int(static_cast< int >(result));
12383 return resultobj;
12384 fail:
12385 return NULL;
12386 }
12387
12388
12389 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12390 PyObject *resultobj = 0;
12391 wxFont *arg1 = (wxFont *) 0 ;
12392 int result;
12393 void *argp1 = 0 ;
12394 int res1 = 0 ;
12395 PyObject *swig_obj[1] ;
12396
12397 if (!args) SWIG_fail;
12398 swig_obj[0] = args;
12399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12400 if (!SWIG_IsOK(res1)) {
12401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
12402 }
12403 arg1 = reinterpret_cast< wxFont * >(argp1);
12404 {
12405 PyThreadState* __tstate = wxPyBeginAllowThreads();
12406 result = (int)((wxFont const *)arg1)->GetStyle();
12407 wxPyEndAllowThreads(__tstate);
12408 if (PyErr_Occurred()) SWIG_fail;
12409 }
12410 resultobj = SWIG_From_int(static_cast< int >(result));
12411 return resultobj;
12412 fail:
12413 return NULL;
12414 }
12415
12416
12417 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12418 PyObject *resultobj = 0;
12419 wxFont *arg1 = (wxFont *) 0 ;
12420 int result;
12421 void *argp1 = 0 ;
12422 int res1 = 0 ;
12423 PyObject *swig_obj[1] ;
12424
12425 if (!args) SWIG_fail;
12426 swig_obj[0] = args;
12427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12428 if (!SWIG_IsOK(res1)) {
12429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
12430 }
12431 arg1 = reinterpret_cast< wxFont * >(argp1);
12432 {
12433 PyThreadState* __tstate = wxPyBeginAllowThreads();
12434 result = (int)((wxFont const *)arg1)->GetWeight();
12435 wxPyEndAllowThreads(__tstate);
12436 if (PyErr_Occurred()) SWIG_fail;
12437 }
12438 resultobj = SWIG_From_int(static_cast< int >(result));
12439 return resultobj;
12440 fail:
12441 return NULL;
12442 }
12443
12444
12445 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12446 PyObject *resultobj = 0;
12447 wxFont *arg1 = (wxFont *) 0 ;
12448 bool result;
12449 void *argp1 = 0 ;
12450 int res1 = 0 ;
12451 PyObject *swig_obj[1] ;
12452
12453 if (!args) SWIG_fail;
12454 swig_obj[0] = args;
12455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12456 if (!SWIG_IsOK(res1)) {
12457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
12458 }
12459 arg1 = reinterpret_cast< wxFont * >(argp1);
12460 {
12461 PyThreadState* __tstate = wxPyBeginAllowThreads();
12462 result = (bool)((wxFont const *)arg1)->GetUnderlined();
12463 wxPyEndAllowThreads(__tstate);
12464 if (PyErr_Occurred()) SWIG_fail;
12465 }
12466 {
12467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12468 }
12469 return resultobj;
12470 fail:
12471 return NULL;
12472 }
12473
12474
12475 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12476 PyObject *resultobj = 0;
12477 wxFont *arg1 = (wxFont *) 0 ;
12478 wxString result;
12479 void *argp1 = 0 ;
12480 int res1 = 0 ;
12481 PyObject *swig_obj[1] ;
12482
12483 if (!args) SWIG_fail;
12484 swig_obj[0] = args;
12485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12486 if (!SWIG_IsOK(res1)) {
12487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
12488 }
12489 arg1 = reinterpret_cast< wxFont * >(argp1);
12490 {
12491 PyThreadState* __tstate = wxPyBeginAllowThreads();
12492 result = ((wxFont const *)arg1)->GetFaceName();
12493 wxPyEndAllowThreads(__tstate);
12494 if (PyErr_Occurred()) SWIG_fail;
12495 }
12496 {
12497 #if wxUSE_UNICODE
12498 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12499 #else
12500 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12501 #endif
12502 }
12503 return resultobj;
12504 fail:
12505 return NULL;
12506 }
12507
12508
12509 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12510 PyObject *resultobj = 0;
12511 wxFont *arg1 = (wxFont *) 0 ;
12512 wxFontEncoding result;
12513 void *argp1 = 0 ;
12514 int res1 = 0 ;
12515 PyObject *swig_obj[1] ;
12516
12517 if (!args) SWIG_fail;
12518 swig_obj[0] = args;
12519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12520 if (!SWIG_IsOK(res1)) {
12521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
12522 }
12523 arg1 = reinterpret_cast< wxFont * >(argp1);
12524 {
12525 PyThreadState* __tstate = wxPyBeginAllowThreads();
12526 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
12527 wxPyEndAllowThreads(__tstate);
12528 if (PyErr_Occurred()) SWIG_fail;
12529 }
12530 resultobj = SWIG_From_int(static_cast< int >(result));
12531 return resultobj;
12532 fail:
12533 return NULL;
12534 }
12535
12536
12537 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12538 PyObject *resultobj = 0;
12539 wxFont *arg1 = (wxFont *) 0 ;
12540 wxNativeFontInfo *result = 0 ;
12541 void *argp1 = 0 ;
12542 int res1 = 0 ;
12543 PyObject *swig_obj[1] ;
12544
12545 if (!args) SWIG_fail;
12546 swig_obj[0] = args;
12547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12548 if (!SWIG_IsOK(res1)) {
12549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
12550 }
12551 arg1 = reinterpret_cast< wxFont * >(argp1);
12552 {
12553 PyThreadState* __tstate = wxPyBeginAllowThreads();
12554 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
12555 wxPyEndAllowThreads(__tstate);
12556 if (PyErr_Occurred()) SWIG_fail;
12557 }
12558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12559 return resultobj;
12560 fail:
12561 return NULL;
12562 }
12563
12564
12565 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12566 PyObject *resultobj = 0;
12567 wxFont *arg1 = (wxFont *) 0 ;
12568 bool result;
12569 void *argp1 = 0 ;
12570 int res1 = 0 ;
12571 PyObject *swig_obj[1] ;
12572
12573 if (!args) SWIG_fail;
12574 swig_obj[0] = args;
12575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12576 if (!SWIG_IsOK(res1)) {
12577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
12578 }
12579 arg1 = reinterpret_cast< wxFont * >(argp1);
12580 {
12581 PyThreadState* __tstate = wxPyBeginAllowThreads();
12582 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
12583 wxPyEndAllowThreads(__tstate);
12584 if (PyErr_Occurred()) SWIG_fail;
12585 }
12586 {
12587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12588 }
12589 return resultobj;
12590 fail:
12591 return NULL;
12592 }
12593
12594
12595 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12596 PyObject *resultobj = 0;
12597 wxFont *arg1 = (wxFont *) 0 ;
12598 wxString result;
12599 void *argp1 = 0 ;
12600 int res1 = 0 ;
12601 PyObject *swig_obj[1] ;
12602
12603 if (!args) SWIG_fail;
12604 swig_obj[0] = args;
12605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12606 if (!SWIG_IsOK(res1)) {
12607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12608 }
12609 arg1 = reinterpret_cast< wxFont * >(argp1);
12610 {
12611 PyThreadState* __tstate = wxPyBeginAllowThreads();
12612 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
12613 wxPyEndAllowThreads(__tstate);
12614 if (PyErr_Occurred()) SWIG_fail;
12615 }
12616 {
12617 #if wxUSE_UNICODE
12618 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12619 #else
12620 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12621 #endif
12622 }
12623 return resultobj;
12624 fail:
12625 return NULL;
12626 }
12627
12628
12629 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12630 PyObject *resultobj = 0;
12631 wxFont *arg1 = (wxFont *) 0 ;
12632 wxString result;
12633 void *argp1 = 0 ;
12634 int res1 = 0 ;
12635 PyObject *swig_obj[1] ;
12636
12637 if (!args) SWIG_fail;
12638 swig_obj[0] = args;
12639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12640 if (!SWIG_IsOK(res1)) {
12641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12642 }
12643 arg1 = reinterpret_cast< wxFont * >(argp1);
12644 {
12645 PyThreadState* __tstate = wxPyBeginAllowThreads();
12646 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
12647 wxPyEndAllowThreads(__tstate);
12648 if (PyErr_Occurred()) SWIG_fail;
12649 }
12650 {
12651 #if wxUSE_UNICODE
12652 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12653 #else
12654 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12655 #endif
12656 }
12657 return resultobj;
12658 fail:
12659 return NULL;
12660 }
12661
12662
12663 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12664 PyObject *resultobj = 0;
12665 wxFont *arg1 = (wxFont *) 0 ;
12666 int arg2 ;
12667 void *argp1 = 0 ;
12668 int res1 = 0 ;
12669 int val2 ;
12670 int ecode2 = 0 ;
12671 PyObject * obj0 = 0 ;
12672 PyObject * obj1 = 0 ;
12673 char * kwnames[] = {
12674 (char *) "self",(char *) "pointSize", NULL
12675 };
12676
12677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12679 if (!SWIG_IsOK(res1)) {
12680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
12681 }
12682 arg1 = reinterpret_cast< wxFont * >(argp1);
12683 ecode2 = SWIG_AsVal_int(obj1, &val2);
12684 if (!SWIG_IsOK(ecode2)) {
12685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12686 }
12687 arg2 = static_cast< int >(val2);
12688 {
12689 PyThreadState* __tstate = wxPyBeginAllowThreads();
12690 (arg1)->SetPointSize(arg2);
12691 wxPyEndAllowThreads(__tstate);
12692 if (PyErr_Occurred()) SWIG_fail;
12693 }
12694 resultobj = SWIG_Py_Void();
12695 return resultobj;
12696 fail:
12697 return NULL;
12698 }
12699
12700
12701 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12702 PyObject *resultobj = 0;
12703 wxFont *arg1 = (wxFont *) 0 ;
12704 wxSize *arg2 = 0 ;
12705 void *argp1 = 0 ;
12706 int res1 = 0 ;
12707 wxSize temp2 ;
12708 PyObject * obj0 = 0 ;
12709 PyObject * obj1 = 0 ;
12710 char * kwnames[] = {
12711 (char *) "self",(char *) "pixelSize", NULL
12712 };
12713
12714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12716 if (!SWIG_IsOK(res1)) {
12717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12718 }
12719 arg1 = reinterpret_cast< wxFont * >(argp1);
12720 {
12721 arg2 = &temp2;
12722 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12723 }
12724 {
12725 PyThreadState* __tstate = wxPyBeginAllowThreads();
12726 (arg1)->SetPixelSize((wxSize const &)*arg2);
12727 wxPyEndAllowThreads(__tstate);
12728 if (PyErr_Occurred()) SWIG_fail;
12729 }
12730 resultobj = SWIG_Py_Void();
12731 return resultobj;
12732 fail:
12733 return NULL;
12734 }
12735
12736
12737 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12738 PyObject *resultobj = 0;
12739 wxFont *arg1 = (wxFont *) 0 ;
12740 int arg2 ;
12741 void *argp1 = 0 ;
12742 int res1 = 0 ;
12743 int val2 ;
12744 int ecode2 = 0 ;
12745 PyObject * obj0 = 0 ;
12746 PyObject * obj1 = 0 ;
12747 char * kwnames[] = {
12748 (char *) "self",(char *) "family", NULL
12749 };
12750
12751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12753 if (!SWIG_IsOK(res1)) {
12754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12755 }
12756 arg1 = reinterpret_cast< wxFont * >(argp1);
12757 ecode2 = SWIG_AsVal_int(obj1, &val2);
12758 if (!SWIG_IsOK(ecode2)) {
12759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12760 }
12761 arg2 = static_cast< int >(val2);
12762 {
12763 PyThreadState* __tstate = wxPyBeginAllowThreads();
12764 (arg1)->SetFamily(arg2);
12765 wxPyEndAllowThreads(__tstate);
12766 if (PyErr_Occurred()) SWIG_fail;
12767 }
12768 resultobj = SWIG_Py_Void();
12769 return resultobj;
12770 fail:
12771 return NULL;
12772 }
12773
12774
12775 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12776 PyObject *resultobj = 0;
12777 wxFont *arg1 = (wxFont *) 0 ;
12778 int arg2 ;
12779 void *argp1 = 0 ;
12780 int res1 = 0 ;
12781 int val2 ;
12782 int ecode2 = 0 ;
12783 PyObject * obj0 = 0 ;
12784 PyObject * obj1 = 0 ;
12785 char * kwnames[] = {
12786 (char *) "self",(char *) "style", NULL
12787 };
12788
12789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12791 if (!SWIG_IsOK(res1)) {
12792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12793 }
12794 arg1 = reinterpret_cast< wxFont * >(argp1);
12795 ecode2 = SWIG_AsVal_int(obj1, &val2);
12796 if (!SWIG_IsOK(ecode2)) {
12797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12798 }
12799 arg2 = static_cast< int >(val2);
12800 {
12801 PyThreadState* __tstate = wxPyBeginAllowThreads();
12802 (arg1)->SetStyle(arg2);
12803 wxPyEndAllowThreads(__tstate);
12804 if (PyErr_Occurred()) SWIG_fail;
12805 }
12806 resultobj = SWIG_Py_Void();
12807 return resultobj;
12808 fail:
12809 return NULL;
12810 }
12811
12812
12813 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12814 PyObject *resultobj = 0;
12815 wxFont *arg1 = (wxFont *) 0 ;
12816 int arg2 ;
12817 void *argp1 = 0 ;
12818 int res1 = 0 ;
12819 int val2 ;
12820 int ecode2 = 0 ;
12821 PyObject * obj0 = 0 ;
12822 PyObject * obj1 = 0 ;
12823 char * kwnames[] = {
12824 (char *) "self",(char *) "weight", NULL
12825 };
12826
12827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12829 if (!SWIG_IsOK(res1)) {
12830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12831 }
12832 arg1 = reinterpret_cast< wxFont * >(argp1);
12833 ecode2 = SWIG_AsVal_int(obj1, &val2);
12834 if (!SWIG_IsOK(ecode2)) {
12835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12836 }
12837 arg2 = static_cast< int >(val2);
12838 {
12839 PyThreadState* __tstate = wxPyBeginAllowThreads();
12840 (arg1)->SetWeight(arg2);
12841 wxPyEndAllowThreads(__tstate);
12842 if (PyErr_Occurred()) SWIG_fail;
12843 }
12844 resultobj = SWIG_Py_Void();
12845 return resultobj;
12846 fail:
12847 return NULL;
12848 }
12849
12850
12851 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12852 PyObject *resultobj = 0;
12853 wxFont *arg1 = (wxFont *) 0 ;
12854 wxString *arg2 = 0 ;
12855 void *argp1 = 0 ;
12856 int res1 = 0 ;
12857 bool temp2 = false ;
12858 PyObject * obj0 = 0 ;
12859 PyObject * obj1 = 0 ;
12860 char * kwnames[] = {
12861 (char *) "self",(char *) "faceName", NULL
12862 };
12863
12864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12866 if (!SWIG_IsOK(res1)) {
12867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
12868 }
12869 arg1 = reinterpret_cast< wxFont * >(argp1);
12870 {
12871 arg2 = wxString_in_helper(obj1);
12872 if (arg2 == NULL) SWIG_fail;
12873 temp2 = true;
12874 }
12875 {
12876 PyThreadState* __tstate = wxPyBeginAllowThreads();
12877 (arg1)->SetFaceName((wxString const &)*arg2);
12878 wxPyEndAllowThreads(__tstate);
12879 if (PyErr_Occurred()) SWIG_fail;
12880 }
12881 resultobj = SWIG_Py_Void();
12882 {
12883 if (temp2)
12884 delete arg2;
12885 }
12886 return resultobj;
12887 fail:
12888 {
12889 if (temp2)
12890 delete arg2;
12891 }
12892 return NULL;
12893 }
12894
12895
12896 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12897 PyObject *resultobj = 0;
12898 wxFont *arg1 = (wxFont *) 0 ;
12899 bool arg2 ;
12900 void *argp1 = 0 ;
12901 int res1 = 0 ;
12902 bool val2 ;
12903 int ecode2 = 0 ;
12904 PyObject * obj0 = 0 ;
12905 PyObject * obj1 = 0 ;
12906 char * kwnames[] = {
12907 (char *) "self",(char *) "underlined", NULL
12908 };
12909
12910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12912 if (!SWIG_IsOK(res1)) {
12913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12914 }
12915 arg1 = reinterpret_cast< wxFont * >(argp1);
12916 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12917 if (!SWIG_IsOK(ecode2)) {
12918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12919 }
12920 arg2 = static_cast< bool >(val2);
12921 {
12922 PyThreadState* __tstate = wxPyBeginAllowThreads();
12923 (arg1)->SetUnderlined(arg2);
12924 wxPyEndAllowThreads(__tstate);
12925 if (PyErr_Occurred()) SWIG_fail;
12926 }
12927 resultobj = SWIG_Py_Void();
12928 return resultobj;
12929 fail:
12930 return NULL;
12931 }
12932
12933
12934 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12935 PyObject *resultobj = 0;
12936 wxFont *arg1 = (wxFont *) 0 ;
12937 wxFontEncoding arg2 ;
12938 void *argp1 = 0 ;
12939 int res1 = 0 ;
12940 int val2 ;
12941 int ecode2 = 0 ;
12942 PyObject * obj0 = 0 ;
12943 PyObject * obj1 = 0 ;
12944 char * kwnames[] = {
12945 (char *) "self",(char *) "encoding", NULL
12946 };
12947
12948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12950 if (!SWIG_IsOK(res1)) {
12951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
12952 }
12953 arg1 = reinterpret_cast< wxFont * >(argp1);
12954 ecode2 = SWIG_AsVal_int(obj1, &val2);
12955 if (!SWIG_IsOK(ecode2)) {
12956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12957 }
12958 arg2 = static_cast< wxFontEncoding >(val2);
12959 {
12960 PyThreadState* __tstate = wxPyBeginAllowThreads();
12961 (arg1)->SetEncoding(arg2);
12962 wxPyEndAllowThreads(__tstate);
12963 if (PyErr_Occurred()) SWIG_fail;
12964 }
12965 resultobj = SWIG_Py_Void();
12966 return resultobj;
12967 fail:
12968 return NULL;
12969 }
12970
12971
12972 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12973 PyObject *resultobj = 0;
12974 wxFont *arg1 = (wxFont *) 0 ;
12975 wxNativeFontInfo *arg2 = 0 ;
12976 void *argp1 = 0 ;
12977 int res1 = 0 ;
12978 void *argp2 = 0 ;
12979 int res2 = 0 ;
12980 PyObject * obj0 = 0 ;
12981 PyObject * obj1 = 0 ;
12982 char * kwnames[] = {
12983 (char *) "self",(char *) "info", NULL
12984 };
12985
12986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
12987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12988 if (!SWIG_IsOK(res1)) {
12989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
12990 }
12991 arg1 = reinterpret_cast< wxFont * >(argp1);
12992 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
12993 if (!SWIG_IsOK(res2)) {
12994 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12995 }
12996 if (!argp2) {
12997 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12998 }
12999 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
13000 {
13001 PyThreadState* __tstate = wxPyBeginAllowThreads();
13002 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
13003 wxPyEndAllowThreads(__tstate);
13004 if (PyErr_Occurred()) SWIG_fail;
13005 }
13006 resultobj = SWIG_Py_Void();
13007 return resultobj;
13008 fail:
13009 return NULL;
13010 }
13011
13012
13013 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13014 PyObject *resultobj = 0;
13015 wxFont *arg1 = (wxFont *) 0 ;
13016 wxString *arg2 = 0 ;
13017 void *argp1 = 0 ;
13018 int res1 = 0 ;
13019 bool temp2 = false ;
13020 PyObject * obj0 = 0 ;
13021 PyObject * obj1 = 0 ;
13022 char * kwnames[] = {
13023 (char *) "self",(char *) "info", NULL
13024 };
13025
13026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
13027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13028 if (!SWIG_IsOK(res1)) {
13029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
13030 }
13031 arg1 = reinterpret_cast< wxFont * >(argp1);
13032 {
13033 arg2 = wxString_in_helper(obj1);
13034 if (arg2 == NULL) SWIG_fail;
13035 temp2 = true;
13036 }
13037 {
13038 PyThreadState* __tstate = wxPyBeginAllowThreads();
13039 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
13040 wxPyEndAllowThreads(__tstate);
13041 if (PyErr_Occurred()) SWIG_fail;
13042 }
13043 resultobj = SWIG_Py_Void();
13044 {
13045 if (temp2)
13046 delete arg2;
13047 }
13048 return resultobj;
13049 fail:
13050 {
13051 if (temp2)
13052 delete arg2;
13053 }
13054 return NULL;
13055 }
13056
13057
13058 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13059 PyObject *resultobj = 0;
13060 wxFont *arg1 = (wxFont *) 0 ;
13061 wxString *arg2 = 0 ;
13062 void *argp1 = 0 ;
13063 int res1 = 0 ;
13064 bool temp2 = false ;
13065 PyObject * obj0 = 0 ;
13066 PyObject * obj1 = 0 ;
13067 char * kwnames[] = {
13068 (char *) "self",(char *) "info", NULL
13069 };
13070
13071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
13072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13073 if (!SWIG_IsOK(res1)) {
13074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
13075 }
13076 arg1 = reinterpret_cast< wxFont * >(argp1);
13077 {
13078 arg2 = wxString_in_helper(obj1);
13079 if (arg2 == NULL) SWIG_fail;
13080 temp2 = true;
13081 }
13082 {
13083 PyThreadState* __tstate = wxPyBeginAllowThreads();
13084 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
13085 wxPyEndAllowThreads(__tstate);
13086 if (PyErr_Occurred()) SWIG_fail;
13087 }
13088 resultobj = SWIG_Py_Void();
13089 {
13090 if (temp2)
13091 delete arg2;
13092 }
13093 return resultobj;
13094 fail:
13095 {
13096 if (temp2)
13097 delete arg2;
13098 }
13099 return NULL;
13100 }
13101
13102
13103 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13104 PyObject *resultobj = 0;
13105 wxFont *arg1 = (wxFont *) 0 ;
13106 wxString result;
13107 void *argp1 = 0 ;
13108 int res1 = 0 ;
13109 PyObject *swig_obj[1] ;
13110
13111 if (!args) SWIG_fail;
13112 swig_obj[0] = args;
13113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13114 if (!SWIG_IsOK(res1)) {
13115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
13116 }
13117 arg1 = reinterpret_cast< wxFont * >(argp1);
13118 {
13119 PyThreadState* __tstate = wxPyBeginAllowThreads();
13120 result = ((wxFont const *)arg1)->GetFamilyString();
13121 wxPyEndAllowThreads(__tstate);
13122 if (PyErr_Occurred()) SWIG_fail;
13123 }
13124 {
13125 #if wxUSE_UNICODE
13126 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13127 #else
13128 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13129 #endif
13130 }
13131 return resultobj;
13132 fail:
13133 return NULL;
13134 }
13135
13136
13137 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13138 PyObject *resultobj = 0;
13139 wxFont *arg1 = (wxFont *) 0 ;
13140 wxString result;
13141 void *argp1 = 0 ;
13142 int res1 = 0 ;
13143 PyObject *swig_obj[1] ;
13144
13145 if (!args) SWIG_fail;
13146 swig_obj[0] = args;
13147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13148 if (!SWIG_IsOK(res1)) {
13149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
13150 }
13151 arg1 = reinterpret_cast< wxFont * >(argp1);
13152 {
13153 PyThreadState* __tstate = wxPyBeginAllowThreads();
13154 result = ((wxFont const *)arg1)->GetStyleString();
13155 wxPyEndAllowThreads(__tstate);
13156 if (PyErr_Occurred()) SWIG_fail;
13157 }
13158 {
13159 #if wxUSE_UNICODE
13160 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13161 #else
13162 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13163 #endif
13164 }
13165 return resultobj;
13166 fail:
13167 return NULL;
13168 }
13169
13170
13171 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13172 PyObject *resultobj = 0;
13173 wxFont *arg1 = (wxFont *) 0 ;
13174 wxString result;
13175 void *argp1 = 0 ;
13176 int res1 = 0 ;
13177 PyObject *swig_obj[1] ;
13178
13179 if (!args) SWIG_fail;
13180 swig_obj[0] = args;
13181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13182 if (!SWIG_IsOK(res1)) {
13183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
13184 }
13185 arg1 = reinterpret_cast< wxFont * >(argp1);
13186 {
13187 PyThreadState* __tstate = wxPyBeginAllowThreads();
13188 result = ((wxFont const *)arg1)->GetWeightString();
13189 wxPyEndAllowThreads(__tstate);
13190 if (PyErr_Occurred()) SWIG_fail;
13191 }
13192 {
13193 #if wxUSE_UNICODE
13194 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13195 #else
13196 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13197 #endif
13198 }
13199 return resultobj;
13200 fail:
13201 return NULL;
13202 }
13203
13204
13205 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13206 PyObject *resultobj = 0;
13207 wxFont *arg1 = (wxFont *) 0 ;
13208 bool arg2 = (bool) true ;
13209 void *argp1 = 0 ;
13210 int res1 = 0 ;
13211 bool val2 ;
13212 int ecode2 = 0 ;
13213 PyObject * obj0 = 0 ;
13214 PyObject * obj1 = 0 ;
13215 char * kwnames[] = {
13216 (char *) "self",(char *) "no", NULL
13217 };
13218
13219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
13220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13221 if (!SWIG_IsOK(res1)) {
13222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
13223 }
13224 arg1 = reinterpret_cast< wxFont * >(argp1);
13225 if (obj1) {
13226 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13227 if (!SWIG_IsOK(ecode2)) {
13228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
13229 }
13230 arg2 = static_cast< bool >(val2);
13231 }
13232 {
13233 PyThreadState* __tstate = wxPyBeginAllowThreads();
13234 (arg1)->SetNoAntiAliasing(arg2);
13235 wxPyEndAllowThreads(__tstate);
13236 if (PyErr_Occurred()) SWIG_fail;
13237 }
13238 resultobj = SWIG_Py_Void();
13239 return resultobj;
13240 fail:
13241 return NULL;
13242 }
13243
13244
13245 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13246 PyObject *resultobj = 0;
13247 wxFont *arg1 = (wxFont *) 0 ;
13248 bool result;
13249 void *argp1 = 0 ;
13250 int res1 = 0 ;
13251 PyObject *swig_obj[1] ;
13252
13253 if (!args) SWIG_fail;
13254 swig_obj[0] = args;
13255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13256 if (!SWIG_IsOK(res1)) {
13257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
13258 }
13259 arg1 = reinterpret_cast< wxFont * >(argp1);
13260 {
13261 PyThreadState* __tstate = wxPyBeginAllowThreads();
13262 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
13263 wxPyEndAllowThreads(__tstate);
13264 if (PyErr_Occurred()) SWIG_fail;
13265 }
13266 {
13267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13268 }
13269 return resultobj;
13270 fail:
13271 return NULL;
13272 }
13273
13274
13275 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13276 PyObject *resultobj = 0;
13277 wxFontEncoding result;
13278
13279 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
13280 {
13281 if (!wxPyCheckForApp()) SWIG_fail;
13282 PyThreadState* __tstate = wxPyBeginAllowThreads();
13283 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
13284 wxPyEndAllowThreads(__tstate);
13285 if (PyErr_Occurred()) SWIG_fail;
13286 }
13287 resultobj = SWIG_From_int(static_cast< int >(result));
13288 return resultobj;
13289 fail:
13290 return NULL;
13291 }
13292
13293
13294 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13295 PyObject *resultobj = 0;
13296 wxFontEncoding arg1 ;
13297 int val1 ;
13298 int ecode1 = 0 ;
13299 PyObject * obj0 = 0 ;
13300 char * kwnames[] = {
13301 (char *) "encoding", NULL
13302 };
13303
13304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
13305 ecode1 = SWIG_AsVal_int(obj0, &val1);
13306 if (!SWIG_IsOK(ecode1)) {
13307 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13308 }
13309 arg1 = static_cast< wxFontEncoding >(val1);
13310 {
13311 if (!wxPyCheckForApp()) SWIG_fail;
13312 PyThreadState* __tstate = wxPyBeginAllowThreads();
13313 wxFont::SetDefaultEncoding(arg1);
13314 wxPyEndAllowThreads(__tstate);
13315 if (PyErr_Occurred()) SWIG_fail;
13316 }
13317 resultobj = SWIG_Py_Void();
13318 return resultobj;
13319 fail:
13320 return NULL;
13321 }
13322
13323
13324 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13325 PyObject *obj;
13326 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13327 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
13328 return SWIG_Py_Void();
13329 }
13330
13331 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13332 return SWIG_Python_InitShadowInstance(args);
13333 }
13334
13335 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13336 PyObject *resultobj = 0;
13337 wxPyFontEnumerator *result = 0 ;
13338
13339 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
13340 {
13341 if (!wxPyCheckForApp()) SWIG_fail;
13342 PyThreadState* __tstate = wxPyBeginAllowThreads();
13343 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
13344 wxPyEndAllowThreads(__tstate);
13345 if (PyErr_Occurred()) SWIG_fail;
13346 }
13347 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
13348 return resultobj;
13349 fail:
13350 return NULL;
13351 }
13352
13353
13354 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13355 PyObject *resultobj = 0;
13356 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13357 void *argp1 = 0 ;
13358 int res1 = 0 ;
13359 PyObject *swig_obj[1] ;
13360
13361 if (!args) SWIG_fail;
13362 swig_obj[0] = args;
13363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
13364 if (!SWIG_IsOK(res1)) {
13365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13366 }
13367 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13368 {
13369 PyThreadState* __tstate = wxPyBeginAllowThreads();
13370 delete arg1;
13371
13372 wxPyEndAllowThreads(__tstate);
13373 if (PyErr_Occurred()) SWIG_fail;
13374 }
13375 resultobj = SWIG_Py_Void();
13376 return resultobj;
13377 fail:
13378 return NULL;
13379 }
13380
13381
13382 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13383 PyObject *resultobj = 0;
13384 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13385 PyObject *arg2 = (PyObject *) 0 ;
13386 PyObject *arg3 = (PyObject *) 0 ;
13387 bool arg4 ;
13388 void *argp1 = 0 ;
13389 int res1 = 0 ;
13390 bool val4 ;
13391 int ecode4 = 0 ;
13392 PyObject * obj0 = 0 ;
13393 PyObject * obj1 = 0 ;
13394 PyObject * obj2 = 0 ;
13395 PyObject * obj3 = 0 ;
13396 char * kwnames[] = {
13397 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
13398 };
13399
13400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13402 if (!SWIG_IsOK(res1)) {
13403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13404 }
13405 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13406 arg2 = obj1;
13407 arg3 = obj2;
13408 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13409 if (!SWIG_IsOK(ecode4)) {
13410 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
13411 }
13412 arg4 = static_cast< bool >(val4);
13413 {
13414 PyThreadState* __tstate = wxPyBeginAllowThreads();
13415 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
13416 wxPyEndAllowThreads(__tstate);
13417 if (PyErr_Occurred()) SWIG_fail;
13418 }
13419 resultobj = SWIG_Py_Void();
13420 return resultobj;
13421 fail:
13422 return NULL;
13423 }
13424
13425
13426 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13427 PyObject *resultobj = 0;
13428 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13429 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
13430 bool arg3 = (bool) false ;
13431 bool result;
13432 void *argp1 = 0 ;
13433 int res1 = 0 ;
13434 int val2 ;
13435 int ecode2 = 0 ;
13436 bool val3 ;
13437 int ecode3 = 0 ;
13438 PyObject * obj0 = 0 ;
13439 PyObject * obj1 = 0 ;
13440 PyObject * obj2 = 0 ;
13441 char * kwnames[] = {
13442 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
13443 };
13444
13445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13447 if (!SWIG_IsOK(res1)) {
13448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13449 }
13450 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13451 if (obj1) {
13452 ecode2 = SWIG_AsVal_int(obj1, &val2);
13453 if (!SWIG_IsOK(ecode2)) {
13454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13455 }
13456 arg2 = static_cast< wxFontEncoding >(val2);
13457 }
13458 if (obj2) {
13459 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13460 if (!SWIG_IsOK(ecode3)) {
13461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
13462 }
13463 arg3 = static_cast< bool >(val3);
13464 }
13465 {
13466 PyThreadState* __tstate = wxPyBeginAllowThreads();
13467 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
13468 wxPyEndAllowThreads(__tstate);
13469 if (PyErr_Occurred()) SWIG_fail;
13470 }
13471 {
13472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13473 }
13474 return resultobj;
13475 fail:
13476 return NULL;
13477 }
13478
13479
13480 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13481 PyObject *resultobj = 0;
13482 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13483 wxString const &arg2_defvalue = wxPyEmptyString ;
13484 wxString *arg2 = (wxString *) &arg2_defvalue ;
13485 bool result;
13486 void *argp1 = 0 ;
13487 int res1 = 0 ;
13488 bool temp2 = false ;
13489 PyObject * obj0 = 0 ;
13490 PyObject * obj1 = 0 ;
13491 char * kwnames[] = {
13492 (char *) "self",(char *) "facename", NULL
13493 };
13494
13495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
13496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13497 if (!SWIG_IsOK(res1)) {
13498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13499 }
13500 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13501 if (obj1) {
13502 {
13503 arg2 = wxString_in_helper(obj1);
13504 if (arg2 == NULL) SWIG_fail;
13505 temp2 = true;
13506 }
13507 }
13508 {
13509 PyThreadState* __tstate = wxPyBeginAllowThreads();
13510 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
13511 wxPyEndAllowThreads(__tstate);
13512 if (PyErr_Occurred()) SWIG_fail;
13513 }
13514 {
13515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13516 }
13517 {
13518 if (temp2)
13519 delete arg2;
13520 }
13521 return resultobj;
13522 fail:
13523 {
13524 if (temp2)
13525 delete arg2;
13526 }
13527 return NULL;
13528 }
13529
13530
13531 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13532 PyObject *resultobj = 0;
13533 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13534 PyObject *result = 0 ;
13535 void *argp1 = 0 ;
13536 int res1 = 0 ;
13537 PyObject *swig_obj[1] ;
13538
13539 if (!args) SWIG_fail;
13540 swig_obj[0] = args;
13541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13542 if (!SWIG_IsOK(res1)) {
13543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13544 }
13545 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13546 {
13547 PyThreadState* __tstate = wxPyBeginAllowThreads();
13548 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
13549 wxPyEndAllowThreads(__tstate);
13550 if (PyErr_Occurred()) SWIG_fail;
13551 }
13552 resultobj = result;
13553 return resultobj;
13554 fail:
13555 return NULL;
13556 }
13557
13558
13559 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13560 PyObject *resultobj = 0;
13561 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13562 PyObject *result = 0 ;
13563 void *argp1 = 0 ;
13564 int res1 = 0 ;
13565 PyObject *swig_obj[1] ;
13566
13567 if (!args) SWIG_fail;
13568 swig_obj[0] = args;
13569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13570 if (!SWIG_IsOK(res1)) {
13571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13572 }
13573 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13574 {
13575 PyThreadState* __tstate = wxPyBeginAllowThreads();
13576 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
13577 wxPyEndAllowThreads(__tstate);
13578 if (PyErr_Occurred()) SWIG_fail;
13579 }
13580 resultobj = result;
13581 return resultobj;
13582 fail:
13583 return NULL;
13584 }
13585
13586
13587 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13588 PyObject *obj;
13589 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13590 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
13591 return SWIG_Py_Void();
13592 }
13593
13594 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13595 return SWIG_Python_InitShadowInstance(args);
13596 }
13597
13598 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13599 PyObject *resultobj = 0;
13600 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13601 int arg2 ;
13602 void *argp1 = 0 ;
13603 int res1 = 0 ;
13604 int val2 ;
13605 int ecode2 = 0 ;
13606 PyObject *swig_obj[2] ;
13607
13608 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
13609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13610 if (!SWIG_IsOK(res1)) {
13611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13612 }
13613 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13614 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13615 if (!SWIG_IsOK(ecode2)) {
13616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
13617 }
13618 arg2 = static_cast< int >(val2);
13619 if (arg1) (arg1)->Language = arg2;
13620
13621 resultobj = SWIG_Py_Void();
13622 return resultobj;
13623 fail:
13624 return NULL;
13625 }
13626
13627
13628 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13629 PyObject *resultobj = 0;
13630 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13631 int result;
13632 void *argp1 = 0 ;
13633 int res1 = 0 ;
13634 PyObject *swig_obj[1] ;
13635
13636 if (!args) SWIG_fail;
13637 swig_obj[0] = args;
13638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13639 if (!SWIG_IsOK(res1)) {
13640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13641 }
13642 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13643 result = (int) ((arg1)->Language);
13644 resultobj = SWIG_From_int(static_cast< int >(result));
13645 return resultobj;
13646 fail:
13647 return NULL;
13648 }
13649
13650
13651 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13652 PyObject *resultobj = 0;
13653 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13654 wxString *arg2 = (wxString *) 0 ;
13655 void *argp1 = 0 ;
13656 int res1 = 0 ;
13657 bool temp2 = false ;
13658 PyObject *swig_obj[2] ;
13659
13660 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
13661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13662 if (!SWIG_IsOK(res1)) {
13663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13664 }
13665 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13666 {
13667 arg2 = wxString_in_helper(swig_obj[1]);
13668 if (arg2 == NULL) SWIG_fail;
13669 temp2 = true;
13670 }
13671 if (arg1) (arg1)->CanonicalName = *arg2;
13672
13673 resultobj = SWIG_Py_Void();
13674 {
13675 if (temp2)
13676 delete arg2;
13677 }
13678 return resultobj;
13679 fail:
13680 {
13681 if (temp2)
13682 delete arg2;
13683 }
13684 return NULL;
13685 }
13686
13687
13688 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13689 PyObject *resultobj = 0;
13690 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13691 wxString *result = 0 ;
13692 void *argp1 = 0 ;
13693 int res1 = 0 ;
13694 PyObject *swig_obj[1] ;
13695
13696 if (!args) SWIG_fail;
13697 swig_obj[0] = args;
13698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13699 if (!SWIG_IsOK(res1)) {
13700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13701 }
13702 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13703 result = (wxString *)& ((arg1)->CanonicalName);
13704 {
13705 #if wxUSE_UNICODE
13706 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13707 #else
13708 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13709 #endif
13710 }
13711 return resultobj;
13712 fail:
13713 return NULL;
13714 }
13715
13716
13717 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13718 PyObject *resultobj = 0;
13719 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13720 wxString *arg2 = (wxString *) 0 ;
13721 void *argp1 = 0 ;
13722 int res1 = 0 ;
13723 bool temp2 = false ;
13724 PyObject *swig_obj[2] ;
13725
13726 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
13727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13728 if (!SWIG_IsOK(res1)) {
13729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13730 }
13731 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13732 {
13733 arg2 = wxString_in_helper(swig_obj[1]);
13734 if (arg2 == NULL) SWIG_fail;
13735 temp2 = true;
13736 }
13737 if (arg1) (arg1)->Description = *arg2;
13738
13739 resultobj = SWIG_Py_Void();
13740 {
13741 if (temp2)
13742 delete arg2;
13743 }
13744 return resultobj;
13745 fail:
13746 {
13747 if (temp2)
13748 delete arg2;
13749 }
13750 return NULL;
13751 }
13752
13753
13754 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13755 PyObject *resultobj = 0;
13756 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13757 wxString *result = 0 ;
13758 void *argp1 = 0 ;
13759 int res1 = 0 ;
13760 PyObject *swig_obj[1] ;
13761
13762 if (!args) SWIG_fail;
13763 swig_obj[0] = args;
13764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13765 if (!SWIG_IsOK(res1)) {
13766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13767 }
13768 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13769 result = (wxString *)& ((arg1)->Description);
13770 {
13771 #if wxUSE_UNICODE
13772 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13773 #else
13774 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13775 #endif
13776 }
13777 return resultobj;
13778 fail:
13779 return NULL;
13780 }
13781
13782
13783 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13784 PyObject *obj;
13785 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13786 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
13787 return SWIG_Py_Void();
13788 }
13789
13790 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13791 PyObject *resultobj = 0;
13792 int arg1 = (int) -1 ;
13793 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13794 wxLocale *result = 0 ;
13795 int val1 ;
13796 int ecode1 = 0 ;
13797 int val2 ;
13798 int ecode2 = 0 ;
13799 PyObject * obj0 = 0 ;
13800 PyObject * obj1 = 0 ;
13801 char * kwnames[] = {
13802 (char *) "language",(char *) "flags", NULL
13803 };
13804
13805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
13806 if (obj0) {
13807 ecode1 = SWIG_AsVal_int(obj0, &val1);
13808 if (!SWIG_IsOK(ecode1)) {
13809 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13810 }
13811 arg1 = static_cast< int >(val1);
13812 }
13813 if (obj1) {
13814 ecode2 = SWIG_AsVal_int(obj1, &val2);
13815 if (!SWIG_IsOK(ecode2)) {
13816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13817 }
13818 arg2 = static_cast< int >(val2);
13819 }
13820 {
13821 PyThreadState* __tstate = wxPyBeginAllowThreads();
13822 result = (wxLocale *)new_wxLocale(arg1,arg2);
13823 wxPyEndAllowThreads(__tstate);
13824 if (PyErr_Occurred()) SWIG_fail;
13825 }
13826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
13827 return resultobj;
13828 fail:
13829 return NULL;
13830 }
13831
13832
13833 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13834 PyObject *resultobj = 0;
13835 wxLocale *arg1 = (wxLocale *) 0 ;
13836 void *argp1 = 0 ;
13837 int res1 = 0 ;
13838 PyObject *swig_obj[1] ;
13839
13840 if (!args) SWIG_fail;
13841 swig_obj[0] = args;
13842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
13843 if (!SWIG_IsOK(res1)) {
13844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13845 }
13846 arg1 = reinterpret_cast< wxLocale * >(argp1);
13847 {
13848 PyThreadState* __tstate = wxPyBeginAllowThreads();
13849 delete arg1;
13850
13851 wxPyEndAllowThreads(__tstate);
13852 if (PyErr_Occurred()) SWIG_fail;
13853 }
13854 resultobj = SWIG_Py_Void();
13855 return resultobj;
13856 fail:
13857 return NULL;
13858 }
13859
13860
13861 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13862 PyObject *resultobj = 0;
13863 wxLocale *arg1 = (wxLocale *) 0 ;
13864 wxString *arg2 = 0 ;
13865 wxString const &arg3_defvalue = wxPyEmptyString ;
13866 wxString *arg3 = (wxString *) &arg3_defvalue ;
13867 wxString const &arg4_defvalue = wxPyEmptyString ;
13868 wxString *arg4 = (wxString *) &arg4_defvalue ;
13869 bool arg5 = (bool) true ;
13870 bool arg6 = (bool) false ;
13871 bool result;
13872 void *argp1 = 0 ;
13873 int res1 = 0 ;
13874 bool temp2 = false ;
13875 bool temp3 = false ;
13876 bool temp4 = false ;
13877 bool val5 ;
13878 int ecode5 = 0 ;
13879 bool val6 ;
13880 int ecode6 = 0 ;
13881 PyObject * obj0 = 0 ;
13882 PyObject * obj1 = 0 ;
13883 PyObject * obj2 = 0 ;
13884 PyObject * obj3 = 0 ;
13885 PyObject * obj4 = 0 ;
13886 PyObject * obj5 = 0 ;
13887 char * kwnames[] = {
13888 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13889 };
13890
13891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13893 if (!SWIG_IsOK(res1)) {
13894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13895 }
13896 arg1 = reinterpret_cast< wxLocale * >(argp1);
13897 {
13898 arg2 = wxString_in_helper(obj1);
13899 if (arg2 == NULL) SWIG_fail;
13900 temp2 = true;
13901 }
13902 if (obj2) {
13903 {
13904 arg3 = wxString_in_helper(obj2);
13905 if (arg3 == NULL) SWIG_fail;
13906 temp3 = true;
13907 }
13908 }
13909 if (obj3) {
13910 {
13911 arg4 = wxString_in_helper(obj3);
13912 if (arg4 == NULL) SWIG_fail;
13913 temp4 = true;
13914 }
13915 }
13916 if (obj4) {
13917 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13918 if (!SWIG_IsOK(ecode5)) {
13919 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
13920 }
13921 arg5 = static_cast< bool >(val5);
13922 }
13923 if (obj5) {
13924 ecode6 = SWIG_AsVal_bool(obj5, &val6);
13925 if (!SWIG_IsOK(ecode6)) {
13926 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
13927 }
13928 arg6 = static_cast< bool >(val6);
13929 }
13930 {
13931 PyThreadState* __tstate = wxPyBeginAllowThreads();
13932 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
13933 wxPyEndAllowThreads(__tstate);
13934 if (PyErr_Occurred()) SWIG_fail;
13935 }
13936 {
13937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13938 }
13939 {
13940 if (temp2)
13941 delete arg2;
13942 }
13943 {
13944 if (temp3)
13945 delete arg3;
13946 }
13947 {
13948 if (temp4)
13949 delete arg4;
13950 }
13951 return resultobj;
13952 fail:
13953 {
13954 if (temp2)
13955 delete arg2;
13956 }
13957 {
13958 if (temp3)
13959 delete arg3;
13960 }
13961 {
13962 if (temp4)
13963 delete arg4;
13964 }
13965 return NULL;
13966 }
13967
13968
13969 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13970 PyObject *resultobj = 0;
13971 wxLocale *arg1 = (wxLocale *) 0 ;
13972 int arg2 = (int) wxLANGUAGE_DEFAULT ;
13973 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13974 bool result;
13975 void *argp1 = 0 ;
13976 int res1 = 0 ;
13977 int val2 ;
13978 int ecode2 = 0 ;
13979 int val3 ;
13980 int ecode3 = 0 ;
13981 PyObject * obj0 = 0 ;
13982 PyObject * obj1 = 0 ;
13983 PyObject * obj2 = 0 ;
13984 char * kwnames[] = {
13985 (char *) "self",(char *) "language",(char *) "flags", NULL
13986 };
13987
13988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13990 if (!SWIG_IsOK(res1)) {
13991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
13992 }
13993 arg1 = reinterpret_cast< wxLocale * >(argp1);
13994 if (obj1) {
13995 ecode2 = SWIG_AsVal_int(obj1, &val2);
13996 if (!SWIG_IsOK(ecode2)) {
13997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
13998 }
13999 arg2 = static_cast< int >(val2);
14000 }
14001 if (obj2) {
14002 ecode3 = SWIG_AsVal_int(obj2, &val3);
14003 if (!SWIG_IsOK(ecode3)) {
14004 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
14005 }
14006 arg3 = static_cast< int >(val3);
14007 }
14008 {
14009 PyThreadState* __tstate = wxPyBeginAllowThreads();
14010 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
14011 wxPyEndAllowThreads(__tstate);
14012 if (PyErr_Occurred()) SWIG_fail;
14013 }
14014 {
14015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14016 }
14017 return resultobj;
14018 fail:
14019 return NULL;
14020 }
14021
14022
14023 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14024 PyObject *resultobj = 0;
14025 int result;
14026
14027 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
14028 {
14029 PyThreadState* __tstate = wxPyBeginAllowThreads();
14030 result = (int)wxLocale::GetSystemLanguage();
14031 wxPyEndAllowThreads(__tstate);
14032 if (PyErr_Occurred()) SWIG_fail;
14033 }
14034 resultobj = SWIG_From_int(static_cast< int >(result));
14035 return resultobj;
14036 fail:
14037 return NULL;
14038 }
14039
14040
14041 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14042 PyObject *resultobj = 0;
14043 wxFontEncoding result;
14044
14045 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
14046 {
14047 PyThreadState* __tstate = wxPyBeginAllowThreads();
14048 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
14049 wxPyEndAllowThreads(__tstate);
14050 if (PyErr_Occurred()) SWIG_fail;
14051 }
14052 resultobj = SWIG_From_int(static_cast< int >(result));
14053 return resultobj;
14054 fail:
14055 return NULL;
14056 }
14057
14058
14059 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14060 PyObject *resultobj = 0;
14061 wxString result;
14062
14063 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
14064 {
14065 PyThreadState* __tstate = wxPyBeginAllowThreads();
14066 result = wxLocale::GetSystemEncodingName();
14067 wxPyEndAllowThreads(__tstate);
14068 if (PyErr_Occurred()) SWIG_fail;
14069 }
14070 {
14071 #if wxUSE_UNICODE
14072 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14073 #else
14074 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14075 #endif
14076 }
14077 return resultobj;
14078 fail:
14079 return NULL;
14080 }
14081
14082
14083 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14084 PyObject *resultobj = 0;
14085 wxLocale *arg1 = (wxLocale *) 0 ;
14086 bool result;
14087 void *argp1 = 0 ;
14088 int res1 = 0 ;
14089 PyObject *swig_obj[1] ;
14090
14091 if (!args) SWIG_fail;
14092 swig_obj[0] = args;
14093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14094 if (!SWIG_IsOK(res1)) {
14095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
14096 }
14097 arg1 = reinterpret_cast< wxLocale * >(argp1);
14098 {
14099 PyThreadState* __tstate = wxPyBeginAllowThreads();
14100 result = (bool)((wxLocale const *)arg1)->IsOk();
14101 wxPyEndAllowThreads(__tstate);
14102 if (PyErr_Occurred()) SWIG_fail;
14103 }
14104 {
14105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14106 }
14107 return resultobj;
14108 fail:
14109 return NULL;
14110 }
14111
14112
14113 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14114 PyObject *resultobj = 0;
14115 wxLocale *arg1 = (wxLocale *) 0 ;
14116 wxString result;
14117 void *argp1 = 0 ;
14118 int res1 = 0 ;
14119 PyObject *swig_obj[1] ;
14120
14121 if (!args) SWIG_fail;
14122 swig_obj[0] = args;
14123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14124 if (!SWIG_IsOK(res1)) {
14125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
14126 }
14127 arg1 = reinterpret_cast< wxLocale * >(argp1);
14128 {
14129 PyThreadState* __tstate = wxPyBeginAllowThreads();
14130 result = ((wxLocale const *)arg1)->GetLocale();
14131 wxPyEndAllowThreads(__tstate);
14132 if (PyErr_Occurred()) SWIG_fail;
14133 }
14134 {
14135 #if wxUSE_UNICODE
14136 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14137 #else
14138 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14139 #endif
14140 }
14141 return resultobj;
14142 fail:
14143 return NULL;
14144 }
14145
14146
14147 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14148 PyObject *resultobj = 0;
14149 wxLocale *arg1 = (wxLocale *) 0 ;
14150 int result;
14151 void *argp1 = 0 ;
14152 int res1 = 0 ;
14153 PyObject *swig_obj[1] ;
14154
14155 if (!args) SWIG_fail;
14156 swig_obj[0] = args;
14157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14158 if (!SWIG_IsOK(res1)) {
14159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
14160 }
14161 arg1 = reinterpret_cast< wxLocale * >(argp1);
14162 {
14163 PyThreadState* __tstate = wxPyBeginAllowThreads();
14164 result = (int)((wxLocale const *)arg1)->GetLanguage();
14165 wxPyEndAllowThreads(__tstate);
14166 if (PyErr_Occurred()) SWIG_fail;
14167 }
14168 resultobj = SWIG_From_int(static_cast< int >(result));
14169 return resultobj;
14170 fail:
14171 return NULL;
14172 }
14173
14174
14175 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14176 PyObject *resultobj = 0;
14177 wxLocale *arg1 = (wxLocale *) 0 ;
14178 wxString result;
14179 void *argp1 = 0 ;
14180 int res1 = 0 ;
14181 PyObject *swig_obj[1] ;
14182
14183 if (!args) SWIG_fail;
14184 swig_obj[0] = args;
14185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14186 if (!SWIG_IsOK(res1)) {
14187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14188 }
14189 arg1 = reinterpret_cast< wxLocale * >(argp1);
14190 {
14191 PyThreadState* __tstate = wxPyBeginAllowThreads();
14192 result = ((wxLocale const *)arg1)->GetSysName();
14193 wxPyEndAllowThreads(__tstate);
14194 if (PyErr_Occurred()) SWIG_fail;
14195 }
14196 {
14197 #if wxUSE_UNICODE
14198 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14199 #else
14200 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14201 #endif
14202 }
14203 return resultobj;
14204 fail:
14205 return NULL;
14206 }
14207
14208
14209 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14210 PyObject *resultobj = 0;
14211 wxLocale *arg1 = (wxLocale *) 0 ;
14212 wxString result;
14213 void *argp1 = 0 ;
14214 int res1 = 0 ;
14215 PyObject *swig_obj[1] ;
14216
14217 if (!args) SWIG_fail;
14218 swig_obj[0] = args;
14219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14220 if (!SWIG_IsOK(res1)) {
14221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14222 }
14223 arg1 = reinterpret_cast< wxLocale * >(argp1);
14224 {
14225 PyThreadState* __tstate = wxPyBeginAllowThreads();
14226 result = ((wxLocale const *)arg1)->GetCanonicalName();
14227 wxPyEndAllowThreads(__tstate);
14228 if (PyErr_Occurred()) SWIG_fail;
14229 }
14230 {
14231 #if wxUSE_UNICODE
14232 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14233 #else
14234 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14235 #endif
14236 }
14237 return resultobj;
14238 fail:
14239 return NULL;
14240 }
14241
14242
14243 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14244 PyObject *resultobj = 0;
14245 wxString *arg1 = 0 ;
14246 bool temp1 = false ;
14247 PyObject * obj0 = 0 ;
14248 char * kwnames[] = {
14249 (char *) "prefix", NULL
14250 };
14251
14252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
14253 {
14254 arg1 = wxString_in_helper(obj0);
14255 if (arg1 == NULL) SWIG_fail;
14256 temp1 = true;
14257 }
14258 {
14259 PyThreadState* __tstate = wxPyBeginAllowThreads();
14260 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
14261 wxPyEndAllowThreads(__tstate);
14262 if (PyErr_Occurred()) SWIG_fail;
14263 }
14264 resultobj = SWIG_Py_Void();
14265 {
14266 if (temp1)
14267 delete arg1;
14268 }
14269 return resultobj;
14270 fail:
14271 {
14272 if (temp1)
14273 delete arg1;
14274 }
14275 return NULL;
14276 }
14277
14278
14279 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14280 PyObject *resultobj = 0;
14281 wxLocale *arg1 = (wxLocale *) 0 ;
14282 wxString *arg2 = 0 ;
14283 bool result;
14284 void *argp1 = 0 ;
14285 int res1 = 0 ;
14286 bool temp2 = false ;
14287 PyObject * obj0 = 0 ;
14288 PyObject * obj1 = 0 ;
14289 char * kwnames[] = {
14290 (char *) "self",(char *) "szDomain", NULL
14291 };
14292
14293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
14294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14295 if (!SWIG_IsOK(res1)) {
14296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
14297 }
14298 arg1 = reinterpret_cast< wxLocale * >(argp1);
14299 {
14300 arg2 = wxString_in_helper(obj1);
14301 if (arg2 == NULL) SWIG_fail;
14302 temp2 = true;
14303 }
14304 {
14305 PyThreadState* __tstate = wxPyBeginAllowThreads();
14306 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
14307 wxPyEndAllowThreads(__tstate);
14308 if (PyErr_Occurred()) SWIG_fail;
14309 }
14310 {
14311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14312 }
14313 {
14314 if (temp2)
14315 delete arg2;
14316 }
14317 return resultobj;
14318 fail:
14319 {
14320 if (temp2)
14321 delete arg2;
14322 }
14323 return NULL;
14324 }
14325
14326
14327 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(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_IsLoaded",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_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
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)((wxLocale const *)arg1)->IsLoaded((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_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14376 PyObject *resultobj = 0;
14377 int arg1 ;
14378 wxLanguageInfo *result = 0 ;
14379 int val1 ;
14380 int ecode1 = 0 ;
14381 PyObject * obj0 = 0 ;
14382 char * kwnames[] = {
14383 (char *) "lang", NULL
14384 };
14385
14386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
14387 ecode1 = SWIG_AsVal_int(obj0, &val1);
14388 if (!SWIG_IsOK(ecode1)) {
14389 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
14390 }
14391 arg1 = static_cast< int >(val1);
14392 {
14393 PyThreadState* __tstate = wxPyBeginAllowThreads();
14394 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
14395 wxPyEndAllowThreads(__tstate);
14396 if (PyErr_Occurred()) SWIG_fail;
14397 }
14398 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
14399 return resultobj;
14400 fail:
14401 return NULL;
14402 }
14403
14404
14405 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14406 PyObject *resultobj = 0;
14407 int arg1 ;
14408 wxString result;
14409 int val1 ;
14410 int ecode1 = 0 ;
14411 PyObject * obj0 = 0 ;
14412 char * kwnames[] = {
14413 (char *) "lang", NULL
14414 };
14415
14416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
14417 ecode1 = SWIG_AsVal_int(obj0, &val1);
14418 if (!SWIG_IsOK(ecode1)) {
14419 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
14420 }
14421 arg1 = static_cast< int >(val1);
14422 {
14423 PyThreadState* __tstate = wxPyBeginAllowThreads();
14424 result = wxLocale::GetLanguageName(arg1);
14425 wxPyEndAllowThreads(__tstate);
14426 if (PyErr_Occurred()) SWIG_fail;
14427 }
14428 {
14429 #if wxUSE_UNICODE
14430 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14431 #else
14432 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14433 #endif
14434 }
14435 return resultobj;
14436 fail:
14437 return NULL;
14438 }
14439
14440
14441 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14442 PyObject *resultobj = 0;
14443 wxString *arg1 = 0 ;
14444 wxLanguageInfo *result = 0 ;
14445 bool temp1 = false ;
14446 PyObject * obj0 = 0 ;
14447 char * kwnames[] = {
14448 (char *) "locale", NULL
14449 };
14450
14451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
14452 {
14453 arg1 = wxString_in_helper(obj0);
14454 if (arg1 == NULL) SWIG_fail;
14455 temp1 = true;
14456 }
14457 {
14458 PyThreadState* __tstate = wxPyBeginAllowThreads();
14459 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
14460 wxPyEndAllowThreads(__tstate);
14461 if (PyErr_Occurred()) SWIG_fail;
14462 }
14463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
14464 {
14465 if (temp1)
14466 delete arg1;
14467 }
14468 return resultobj;
14469 fail:
14470 {
14471 if (temp1)
14472 delete arg1;
14473 }
14474 return NULL;
14475 }
14476
14477
14478 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14479 PyObject *resultobj = 0;
14480 wxLanguageInfo *arg1 = 0 ;
14481 void *argp1 = 0 ;
14482 int res1 = 0 ;
14483 PyObject * obj0 = 0 ;
14484 char * kwnames[] = {
14485 (char *) "info", NULL
14486 };
14487
14488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
14489 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
14490 if (!SWIG_IsOK(res1)) {
14491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
14492 }
14493 if (!argp1) {
14494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
14495 }
14496 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
14497 {
14498 PyThreadState* __tstate = wxPyBeginAllowThreads();
14499 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
14500 wxPyEndAllowThreads(__tstate);
14501 if (PyErr_Occurred()) SWIG_fail;
14502 }
14503 resultobj = SWIG_Py_Void();
14504 return resultobj;
14505 fail:
14506 return NULL;
14507 }
14508
14509
14510 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14511 PyObject *resultobj = 0;
14512 wxLocale *arg1 = (wxLocale *) 0 ;
14513 wxString *arg2 = 0 ;
14514 wxString const &arg3_defvalue = wxPyEmptyString ;
14515 wxString *arg3 = (wxString *) &arg3_defvalue ;
14516 wxString result;
14517 void *argp1 = 0 ;
14518 int res1 = 0 ;
14519 bool temp2 = false ;
14520 bool temp3 = false ;
14521 PyObject * obj0 = 0 ;
14522 PyObject * obj1 = 0 ;
14523 PyObject * obj2 = 0 ;
14524 char * kwnames[] = {
14525 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
14526 };
14527
14528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14530 if (!SWIG_IsOK(res1)) {
14531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
14532 }
14533 arg1 = reinterpret_cast< wxLocale * >(argp1);
14534 {
14535 arg2 = wxString_in_helper(obj1);
14536 if (arg2 == NULL) SWIG_fail;
14537 temp2 = true;
14538 }
14539 if (obj2) {
14540 {
14541 arg3 = wxString_in_helper(obj2);
14542 if (arg3 == NULL) SWIG_fail;
14543 temp3 = true;
14544 }
14545 }
14546 {
14547 PyThreadState* __tstate = wxPyBeginAllowThreads();
14548 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
14549 wxPyEndAllowThreads(__tstate);
14550 if (PyErr_Occurred()) SWIG_fail;
14551 }
14552 {
14553 #if wxUSE_UNICODE
14554 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14555 #else
14556 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14557 #endif
14558 }
14559 {
14560 if (temp2)
14561 delete arg2;
14562 }
14563 {
14564 if (temp3)
14565 delete arg3;
14566 }
14567 return resultobj;
14568 fail:
14569 {
14570 if (temp2)
14571 delete arg2;
14572 }
14573 {
14574 if (temp3)
14575 delete arg3;
14576 }
14577 return NULL;
14578 }
14579
14580
14581 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14582 PyObject *resultobj = 0;
14583 wxLocale *arg1 = (wxLocale *) 0 ;
14584 wxString *result = 0 ;
14585 void *argp1 = 0 ;
14586 int res1 = 0 ;
14587 PyObject *swig_obj[1] ;
14588
14589 if (!args) SWIG_fail;
14590 swig_obj[0] = args;
14591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14592 if (!SWIG_IsOK(res1)) {
14593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14594 }
14595 arg1 = reinterpret_cast< wxLocale * >(argp1);
14596 {
14597 PyThreadState* __tstate = wxPyBeginAllowThreads();
14598 {
14599 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
14600 result = (wxString *) &_result_ref;
14601 }
14602 wxPyEndAllowThreads(__tstate);
14603 if (PyErr_Occurred()) SWIG_fail;
14604 }
14605 {
14606 #if wxUSE_UNICODE
14607 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14608 #else
14609 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14610 #endif
14611 }
14612 return resultobj;
14613 fail:
14614 return NULL;
14615 }
14616
14617
14618 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14619 PyObject *obj;
14620 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14621 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
14622 return SWIG_Py_Void();
14623 }
14624
14625 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14626 return SWIG_Python_InitShadowInstance(args);
14627 }
14628
14629 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14630 PyObject *resultobj = 0;
14631 wxLocale *result = 0 ;
14632
14633 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
14634 {
14635 PyThreadState* __tstate = wxPyBeginAllowThreads();
14636 result = (wxLocale *)wxGetLocale();
14637 wxPyEndAllowThreads(__tstate);
14638 if (PyErr_Occurred()) SWIG_fail;
14639 }
14640 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
14641 return resultobj;
14642 fail:
14643 return NULL;
14644 }
14645
14646
14647 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14648 PyObject *resultobj = 0;
14649 wxString *arg1 = 0 ;
14650 wxString result;
14651 bool temp1 = false ;
14652
14653 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14654 {
14655 arg1 = wxString_in_helper(swig_obj[0]);
14656 if (arg1 == NULL) SWIG_fail;
14657 temp1 = true;
14658 }
14659 {
14660 PyThreadState* __tstate = wxPyBeginAllowThreads();
14661 result = wxGetTranslation((wxString const &)*arg1);
14662 wxPyEndAllowThreads(__tstate);
14663 if (PyErr_Occurred()) SWIG_fail;
14664 }
14665 {
14666 #if wxUSE_UNICODE
14667 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14668 #else
14669 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14670 #endif
14671 }
14672 {
14673 if (temp1)
14674 delete arg1;
14675 }
14676 return resultobj;
14677 fail:
14678 {
14679 if (temp1)
14680 delete arg1;
14681 }
14682 return NULL;
14683 }
14684
14685
14686 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14687 PyObject *resultobj = 0;
14688 wxString *arg1 = 0 ;
14689 wxString *arg2 = 0 ;
14690 size_t arg3 ;
14691 wxString result;
14692 bool temp1 = false ;
14693 bool temp2 = false ;
14694 size_t val3 ;
14695 int ecode3 = 0 ;
14696
14697 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14698 {
14699 arg1 = wxString_in_helper(swig_obj[0]);
14700 if (arg1 == NULL) SWIG_fail;
14701 temp1 = true;
14702 }
14703 {
14704 arg2 = wxString_in_helper(swig_obj[1]);
14705 if (arg2 == NULL) SWIG_fail;
14706 temp2 = true;
14707 }
14708 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
14709 if (!SWIG_IsOK(ecode3)) {
14710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14711 }
14712 arg3 = static_cast< size_t >(val3);
14713 {
14714 PyThreadState* __tstate = wxPyBeginAllowThreads();
14715 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
14716 wxPyEndAllowThreads(__tstate);
14717 if (PyErr_Occurred()) SWIG_fail;
14718 }
14719 {
14720 #if wxUSE_UNICODE
14721 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14722 #else
14723 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14724 #endif
14725 }
14726 {
14727 if (temp1)
14728 delete arg1;
14729 }
14730 {
14731 if (temp2)
14732 delete arg2;
14733 }
14734 return resultobj;
14735 fail:
14736 {
14737 if (temp1)
14738 delete arg1;
14739 }
14740 {
14741 if (temp2)
14742 delete arg2;
14743 }
14744 return NULL;
14745 }
14746
14747
14748 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
14749 int argc;
14750 PyObject *argv[4];
14751
14752 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail;
14753 --argc;
14754 if (argc == 1) {
14755 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
14756 }
14757 if (argc == 3) {
14758 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
14759 }
14760
14761 fail:
14762 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
14763 return NULL;
14764 }
14765
14766
14767 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14768 PyObject *resultobj = 0;
14769 wxEncodingConverter *result = 0 ;
14770
14771 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
14772 {
14773 PyThreadState* __tstate = wxPyBeginAllowThreads();
14774 result = (wxEncodingConverter *)new wxEncodingConverter();
14775 wxPyEndAllowThreads(__tstate);
14776 if (PyErr_Occurred()) SWIG_fail;
14777 }
14778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
14779 return resultobj;
14780 fail:
14781 return NULL;
14782 }
14783
14784
14785 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14786 PyObject *resultobj = 0;
14787 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14788 void *argp1 = 0 ;
14789 int res1 = 0 ;
14790 PyObject *swig_obj[1] ;
14791
14792 if (!args) SWIG_fail;
14793 swig_obj[0] = args;
14794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
14795 if (!SWIG_IsOK(res1)) {
14796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14797 }
14798 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14799 {
14800 PyThreadState* __tstate = wxPyBeginAllowThreads();
14801 delete arg1;
14802
14803 wxPyEndAllowThreads(__tstate);
14804 if (PyErr_Occurred()) SWIG_fail;
14805 }
14806 resultobj = SWIG_Py_Void();
14807 return resultobj;
14808 fail:
14809 return NULL;
14810 }
14811
14812
14813 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14814 PyObject *resultobj = 0;
14815 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14816 wxFontEncoding arg2 ;
14817 wxFontEncoding arg3 ;
14818 int arg4 = (int) wxCONVERT_STRICT ;
14819 bool result;
14820 void *argp1 = 0 ;
14821 int res1 = 0 ;
14822 int val2 ;
14823 int ecode2 = 0 ;
14824 int val3 ;
14825 int ecode3 = 0 ;
14826 int val4 ;
14827 int ecode4 = 0 ;
14828 PyObject * obj0 = 0 ;
14829 PyObject * obj1 = 0 ;
14830 PyObject * obj2 = 0 ;
14831 PyObject * obj3 = 0 ;
14832 char * kwnames[] = {
14833 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14834 };
14835
14836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14838 if (!SWIG_IsOK(res1)) {
14839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14840 }
14841 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14842 ecode2 = SWIG_AsVal_int(obj1, &val2);
14843 if (!SWIG_IsOK(ecode2)) {
14844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14845 }
14846 arg2 = static_cast< wxFontEncoding >(val2);
14847 ecode3 = SWIG_AsVal_int(obj2, &val3);
14848 if (!SWIG_IsOK(ecode3)) {
14849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14850 }
14851 arg3 = static_cast< wxFontEncoding >(val3);
14852 if (obj3) {
14853 ecode4 = SWIG_AsVal_int(obj3, &val4);
14854 if (!SWIG_IsOK(ecode4)) {
14855 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14856 }
14857 arg4 = static_cast< int >(val4);
14858 }
14859 {
14860 PyThreadState* __tstate = wxPyBeginAllowThreads();
14861 result = (bool)(arg1)->Init(arg2,arg3,arg4);
14862 wxPyEndAllowThreads(__tstate);
14863 if (PyErr_Occurred()) SWIG_fail;
14864 }
14865 {
14866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14867 }
14868 return resultobj;
14869 fail:
14870 return NULL;
14871 }
14872
14873
14874 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14875 PyObject *resultobj = 0;
14876 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14877 wxString *arg2 = 0 ;
14878 wxString result;
14879 void *argp1 = 0 ;
14880 int res1 = 0 ;
14881 bool temp2 = false ;
14882 PyObject * obj0 = 0 ;
14883 PyObject * obj1 = 0 ;
14884 char * kwnames[] = {
14885 (char *) "self",(char *) "input", NULL
14886 };
14887
14888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
14889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14890 if (!SWIG_IsOK(res1)) {
14891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14892 }
14893 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14894 {
14895 arg2 = wxString_in_helper(obj1);
14896 if (arg2 == NULL) SWIG_fail;
14897 temp2 = true;
14898 }
14899 {
14900 PyThreadState* __tstate = wxPyBeginAllowThreads();
14901 result = (arg1)->Convert((wxString const &)*arg2);
14902 wxPyEndAllowThreads(__tstate);
14903 if (PyErr_Occurred()) SWIG_fail;
14904 }
14905 {
14906 #if wxUSE_UNICODE
14907 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14908 #else
14909 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14910 #endif
14911 }
14912 {
14913 if (temp2)
14914 delete arg2;
14915 }
14916 return resultobj;
14917 fail:
14918 {
14919 if (temp2)
14920 delete arg2;
14921 }
14922 return NULL;
14923 }
14924
14925
14926 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14927 PyObject *resultobj = 0;
14928 wxFontEncoding arg1 ;
14929 int arg2 = (int) wxPLATFORM_CURRENT ;
14930 wxFontEncodingArray result;
14931 int val1 ;
14932 int ecode1 = 0 ;
14933 int val2 ;
14934 int ecode2 = 0 ;
14935 PyObject * obj0 = 0 ;
14936 PyObject * obj1 = 0 ;
14937 char * kwnames[] = {
14938 (char *) "enc",(char *) "platform", NULL
14939 };
14940
14941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
14942 ecode1 = SWIG_AsVal_int(obj0, &val1);
14943 if (!SWIG_IsOK(ecode1)) {
14944 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14945 }
14946 arg1 = static_cast< wxFontEncoding >(val1);
14947 if (obj1) {
14948 ecode2 = SWIG_AsVal_int(obj1, &val2);
14949 if (!SWIG_IsOK(ecode2)) {
14950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
14951 }
14952 arg2 = static_cast< int >(val2);
14953 }
14954 {
14955 PyThreadState* __tstate = wxPyBeginAllowThreads();
14956 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
14957 wxPyEndAllowThreads(__tstate);
14958 if (PyErr_Occurred()) SWIG_fail;
14959 }
14960 {
14961 resultobj = PyList_New(0);
14962 for (size_t i=0; i < (&result)->GetCount(); i++) {
14963 PyObject* number = PyInt_FromLong((&result)->Item(i));
14964 PyList_Append(resultobj, number);
14965 Py_DECREF(number);
14966 }
14967 }
14968 return resultobj;
14969 fail:
14970 return NULL;
14971 }
14972
14973
14974 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14975 PyObject *resultobj = 0;
14976 wxFontEncoding arg1 ;
14977 wxFontEncodingArray result;
14978 int val1 ;
14979 int ecode1 = 0 ;
14980 PyObject * obj0 = 0 ;
14981 char * kwnames[] = {
14982 (char *) "enc", NULL
14983 };
14984
14985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
14986 ecode1 = SWIG_AsVal_int(obj0, &val1);
14987 if (!SWIG_IsOK(ecode1)) {
14988 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14989 }
14990 arg1 = static_cast< wxFontEncoding >(val1);
14991 {
14992 PyThreadState* __tstate = wxPyBeginAllowThreads();
14993 result = wxEncodingConverter::GetAllEquivalents(arg1);
14994 wxPyEndAllowThreads(__tstate);
14995 if (PyErr_Occurred()) SWIG_fail;
14996 }
14997 {
14998 resultobj = PyList_New(0);
14999 for (size_t i=0; i < (&result)->GetCount(); i++) {
15000 PyObject* number = PyInt_FromLong((&result)->Item(i));
15001 PyList_Append(resultobj, number);
15002 Py_DECREF(number);
15003 }
15004 }
15005 return resultobj;
15006 fail:
15007 return NULL;
15008 }
15009
15010
15011 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15012 PyObject *resultobj = 0;
15013 wxFontEncoding arg1 ;
15014 wxFontEncoding arg2 ;
15015 bool result;
15016 int val1 ;
15017 int ecode1 = 0 ;
15018 int val2 ;
15019 int ecode2 = 0 ;
15020 PyObject * obj0 = 0 ;
15021 PyObject * obj1 = 0 ;
15022 char * kwnames[] = {
15023 (char *) "encIn",(char *) "encOut", NULL
15024 };
15025
15026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
15027 ecode1 = SWIG_AsVal_int(obj0, &val1);
15028 if (!SWIG_IsOK(ecode1)) {
15029 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15030 }
15031 arg1 = static_cast< wxFontEncoding >(val1);
15032 ecode2 = SWIG_AsVal_int(obj1, &val2);
15033 if (!SWIG_IsOK(ecode2)) {
15034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15035 }
15036 arg2 = static_cast< wxFontEncoding >(val2);
15037 {
15038 PyThreadState* __tstate = wxPyBeginAllowThreads();
15039 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
15040 wxPyEndAllowThreads(__tstate);
15041 if (PyErr_Occurred()) SWIG_fail;
15042 }
15043 {
15044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15045 }
15046 return resultobj;
15047 fail:
15048 return NULL;
15049 }
15050
15051
15052 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15053 PyObject *obj;
15054 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15055 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
15056 return SWIG_Py_Void();
15057 }
15058
15059 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15060 return SWIG_Python_InitShadowInstance(args);
15061 }
15062
15063 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15064 PyObject *resultobj = 0;
15065 wxDC *arg1 = (wxDC *) 0 ;
15066 void *argp1 = 0 ;
15067 int res1 = 0 ;
15068 PyObject *swig_obj[1] ;
15069
15070 if (!args) SWIG_fail;
15071 swig_obj[0] = args;
15072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
15073 if (!SWIG_IsOK(res1)) {
15074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
15075 }
15076 arg1 = reinterpret_cast< wxDC * >(argp1);
15077 {
15078 PyThreadState* __tstate = wxPyBeginAllowThreads();
15079 delete arg1;
15080
15081 wxPyEndAllowThreads(__tstate);
15082 if (PyErr_Occurred()) SWIG_fail;
15083 }
15084 resultobj = SWIG_Py_Void();
15085 return resultobj;
15086 fail:
15087 return NULL;
15088 }
15089
15090
15091 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15092 PyObject *resultobj = 0;
15093 wxDC *arg1 = (wxDC *) 0 ;
15094 int arg2 ;
15095 int arg3 ;
15096 wxColour *arg4 = 0 ;
15097 int arg5 = (int) wxFLOOD_SURFACE ;
15098 bool result;
15099 void *argp1 = 0 ;
15100 int res1 = 0 ;
15101 int val2 ;
15102 int ecode2 = 0 ;
15103 int val3 ;
15104 int ecode3 = 0 ;
15105 wxColour temp4 ;
15106 int val5 ;
15107 int ecode5 = 0 ;
15108 PyObject * obj0 = 0 ;
15109 PyObject * obj1 = 0 ;
15110 PyObject * obj2 = 0 ;
15111 PyObject * obj3 = 0 ;
15112 PyObject * obj4 = 0 ;
15113 char * kwnames[] = {
15114 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
15115 };
15116
15117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15119 if (!SWIG_IsOK(res1)) {
15120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
15121 }
15122 arg1 = reinterpret_cast< wxDC * >(argp1);
15123 ecode2 = SWIG_AsVal_int(obj1, &val2);
15124 if (!SWIG_IsOK(ecode2)) {
15125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
15126 }
15127 arg2 = static_cast< int >(val2);
15128 ecode3 = SWIG_AsVal_int(obj2, &val3);
15129 if (!SWIG_IsOK(ecode3)) {
15130 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
15131 }
15132 arg3 = static_cast< int >(val3);
15133 {
15134 arg4 = &temp4;
15135 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15136 }
15137 if (obj4) {
15138 ecode5 = SWIG_AsVal_int(obj4, &val5);
15139 if (!SWIG_IsOK(ecode5)) {
15140 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
15141 }
15142 arg5 = static_cast< int >(val5);
15143 }
15144 {
15145 PyThreadState* __tstate = wxPyBeginAllowThreads();
15146 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
15147 wxPyEndAllowThreads(__tstate);
15148 if (PyErr_Occurred()) SWIG_fail;
15149 }
15150 {
15151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15152 }
15153 return resultobj;
15154 fail:
15155 return NULL;
15156 }
15157
15158
15159 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15160 PyObject *resultobj = 0;
15161 wxDC *arg1 = (wxDC *) 0 ;
15162 wxPoint *arg2 = 0 ;
15163 wxColour *arg3 = 0 ;
15164 int arg4 = (int) wxFLOOD_SURFACE ;
15165 bool result;
15166 void *argp1 = 0 ;
15167 int res1 = 0 ;
15168 wxPoint temp2 ;
15169 wxColour temp3 ;
15170 int val4 ;
15171 int ecode4 = 0 ;
15172 PyObject * obj0 = 0 ;
15173 PyObject * obj1 = 0 ;
15174 PyObject * obj2 = 0 ;
15175 PyObject * obj3 = 0 ;
15176 char * kwnames[] = {
15177 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
15178 };
15179
15180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15182 if (!SWIG_IsOK(res1)) {
15183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15184 }
15185 arg1 = reinterpret_cast< wxDC * >(argp1);
15186 {
15187 arg2 = &temp2;
15188 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15189 }
15190 {
15191 arg3 = &temp3;
15192 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15193 }
15194 if (obj3) {
15195 ecode4 = SWIG_AsVal_int(obj3, &val4);
15196 if (!SWIG_IsOK(ecode4)) {
15197 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
15198 }
15199 arg4 = static_cast< int >(val4);
15200 }
15201 {
15202 PyThreadState* __tstate = wxPyBeginAllowThreads();
15203 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
15204 wxPyEndAllowThreads(__tstate);
15205 if (PyErr_Occurred()) SWIG_fail;
15206 }
15207 {
15208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15209 }
15210 return resultobj;
15211 fail:
15212 return NULL;
15213 }
15214
15215
15216 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15217 PyObject *resultobj = 0;
15218 wxDC *arg1 = (wxDC *) 0 ;
15219 wxRect *arg2 = 0 ;
15220 wxColour *arg3 = 0 ;
15221 wxColour *arg4 = 0 ;
15222 wxPoint *arg5 = 0 ;
15223 void *argp1 = 0 ;
15224 int res1 = 0 ;
15225 wxRect temp2 ;
15226 wxColour temp3 ;
15227 wxColour temp4 ;
15228 wxPoint temp5 ;
15229 PyObject * obj0 = 0 ;
15230 PyObject * obj1 = 0 ;
15231 PyObject * obj2 = 0 ;
15232 PyObject * obj3 = 0 ;
15233 PyObject * obj4 = 0 ;
15234 char * kwnames[] = {
15235 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
15236 };
15237
15238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15240 if (!SWIG_IsOK(res1)) {
15241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
15242 }
15243 arg1 = reinterpret_cast< wxDC * >(argp1);
15244 {
15245 arg2 = &temp2;
15246 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15247 }
15248 {
15249 arg3 = &temp3;
15250 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15251 }
15252 {
15253 arg4 = &temp4;
15254 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15255 }
15256 {
15257 arg5 = &temp5;
15258 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15259 }
15260 {
15261 PyThreadState* __tstate = wxPyBeginAllowThreads();
15262 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
15263 wxPyEndAllowThreads(__tstate);
15264 if (PyErr_Occurred()) SWIG_fail;
15265 }
15266 resultobj = SWIG_Py_Void();
15267 return resultobj;
15268 fail:
15269 return NULL;
15270 }
15271
15272
15273 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15274 PyObject *resultobj = 0;
15275 wxDC *arg1 = (wxDC *) 0 ;
15276 wxRect *arg2 = 0 ;
15277 wxColour *arg3 = 0 ;
15278 wxColour *arg4 = 0 ;
15279 wxDirection arg5 = (wxDirection) wxEAST ;
15280 void *argp1 = 0 ;
15281 int res1 = 0 ;
15282 wxRect temp2 ;
15283 wxColour temp3 ;
15284 wxColour temp4 ;
15285 int val5 ;
15286 int ecode5 = 0 ;
15287 PyObject * obj0 = 0 ;
15288 PyObject * obj1 = 0 ;
15289 PyObject * obj2 = 0 ;
15290 PyObject * obj3 = 0 ;
15291 PyObject * obj4 = 0 ;
15292 char * kwnames[] = {
15293 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
15294 };
15295
15296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15298 if (!SWIG_IsOK(res1)) {
15299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
15300 }
15301 arg1 = reinterpret_cast< wxDC * >(argp1);
15302 {
15303 arg2 = &temp2;
15304 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15305 }
15306 {
15307 arg3 = &temp3;
15308 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15309 }
15310 {
15311 arg4 = &temp4;
15312 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15313 }
15314 if (obj4) {
15315 ecode5 = SWIG_AsVal_int(obj4, &val5);
15316 if (!SWIG_IsOK(ecode5)) {
15317 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
15318 }
15319 arg5 = static_cast< wxDirection >(val5);
15320 }
15321 {
15322 PyThreadState* __tstate = wxPyBeginAllowThreads();
15323 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
15324 wxPyEndAllowThreads(__tstate);
15325 if (PyErr_Occurred()) SWIG_fail;
15326 }
15327 resultobj = SWIG_Py_Void();
15328 return resultobj;
15329 fail:
15330 return NULL;
15331 }
15332
15333
15334 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15335 PyObject *resultobj = 0;
15336 wxDC *arg1 = (wxDC *) 0 ;
15337 int arg2 ;
15338 int arg3 ;
15339 wxColour result;
15340 void *argp1 = 0 ;
15341 int res1 = 0 ;
15342 int val2 ;
15343 int ecode2 = 0 ;
15344 int val3 ;
15345 int ecode3 = 0 ;
15346 PyObject * obj0 = 0 ;
15347 PyObject * obj1 = 0 ;
15348 PyObject * obj2 = 0 ;
15349 char * kwnames[] = {
15350 (char *) "self",(char *) "x",(char *) "y", NULL
15351 };
15352
15353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15355 if (!SWIG_IsOK(res1)) {
15356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
15357 }
15358 arg1 = reinterpret_cast< wxDC * >(argp1);
15359 ecode2 = SWIG_AsVal_int(obj1, &val2);
15360 if (!SWIG_IsOK(ecode2)) {
15361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
15362 }
15363 arg2 = static_cast< int >(val2);
15364 ecode3 = SWIG_AsVal_int(obj2, &val3);
15365 if (!SWIG_IsOK(ecode3)) {
15366 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
15367 }
15368 arg3 = static_cast< int >(val3);
15369 {
15370 PyThreadState* __tstate = wxPyBeginAllowThreads();
15371 result = wxDC_GetPixel(arg1,arg2,arg3);
15372 wxPyEndAllowThreads(__tstate);
15373 if (PyErr_Occurred()) SWIG_fail;
15374 }
15375 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
15376 return resultobj;
15377 fail:
15378 return NULL;
15379 }
15380
15381
15382 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15383 PyObject *resultobj = 0;
15384 wxDC *arg1 = (wxDC *) 0 ;
15385 wxPoint *arg2 = 0 ;
15386 wxColour result;
15387 void *argp1 = 0 ;
15388 int res1 = 0 ;
15389 wxPoint temp2 ;
15390 PyObject * obj0 = 0 ;
15391 PyObject * obj1 = 0 ;
15392 char * kwnames[] = {
15393 (char *) "self",(char *) "pt", NULL
15394 };
15395
15396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15398 if (!SWIG_IsOK(res1)) {
15399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15400 }
15401 arg1 = reinterpret_cast< wxDC * >(argp1);
15402 {
15403 arg2 = &temp2;
15404 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15405 }
15406 {
15407 PyThreadState* __tstate = wxPyBeginAllowThreads();
15408 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
15409 wxPyEndAllowThreads(__tstate);
15410 if (PyErr_Occurred()) SWIG_fail;
15411 }
15412 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
15413 return resultobj;
15414 fail:
15415 return NULL;
15416 }
15417
15418
15419 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15420 PyObject *resultobj = 0;
15421 wxDC *arg1 = (wxDC *) 0 ;
15422 int arg2 ;
15423 int arg3 ;
15424 int arg4 ;
15425 int arg5 ;
15426 void *argp1 = 0 ;
15427 int res1 = 0 ;
15428 int val2 ;
15429 int ecode2 = 0 ;
15430 int val3 ;
15431 int ecode3 = 0 ;
15432 int val4 ;
15433 int ecode4 = 0 ;
15434 int val5 ;
15435 int ecode5 = 0 ;
15436 PyObject * obj0 = 0 ;
15437 PyObject * obj1 = 0 ;
15438 PyObject * obj2 = 0 ;
15439 PyObject * obj3 = 0 ;
15440 PyObject * obj4 = 0 ;
15441 char * kwnames[] = {
15442 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
15443 };
15444
15445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15447 if (!SWIG_IsOK(res1)) {
15448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
15449 }
15450 arg1 = reinterpret_cast< wxDC * >(argp1);
15451 ecode2 = SWIG_AsVal_int(obj1, &val2);
15452 if (!SWIG_IsOK(ecode2)) {
15453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
15454 }
15455 arg2 = static_cast< int >(val2);
15456 ecode3 = SWIG_AsVal_int(obj2, &val3);
15457 if (!SWIG_IsOK(ecode3)) {
15458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
15459 }
15460 arg3 = static_cast< int >(val3);
15461 ecode4 = SWIG_AsVal_int(obj3, &val4);
15462 if (!SWIG_IsOK(ecode4)) {
15463 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
15464 }
15465 arg4 = static_cast< int >(val4);
15466 ecode5 = SWIG_AsVal_int(obj4, &val5);
15467 if (!SWIG_IsOK(ecode5)) {
15468 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
15469 }
15470 arg5 = static_cast< int >(val5);
15471 {
15472 PyThreadState* __tstate = wxPyBeginAllowThreads();
15473 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
15474 wxPyEndAllowThreads(__tstate);
15475 if (PyErr_Occurred()) SWIG_fail;
15476 }
15477 resultobj = SWIG_Py_Void();
15478 return resultobj;
15479 fail:
15480 return NULL;
15481 }
15482
15483
15484 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15485 PyObject *resultobj = 0;
15486 wxDC *arg1 = (wxDC *) 0 ;
15487 wxPoint *arg2 = 0 ;
15488 wxPoint *arg3 = 0 ;
15489 void *argp1 = 0 ;
15490 int res1 = 0 ;
15491 wxPoint temp2 ;
15492 wxPoint temp3 ;
15493 PyObject * obj0 = 0 ;
15494 PyObject * obj1 = 0 ;
15495 PyObject * obj2 = 0 ;
15496 char * kwnames[] = {
15497 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
15498 };
15499
15500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15502 if (!SWIG_IsOK(res1)) {
15503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15504 }
15505 arg1 = reinterpret_cast< wxDC * >(argp1);
15506 {
15507 arg2 = &temp2;
15508 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15509 }
15510 {
15511 arg3 = &temp3;
15512 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15513 }
15514 {
15515 PyThreadState* __tstate = wxPyBeginAllowThreads();
15516 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
15517 wxPyEndAllowThreads(__tstate);
15518 if (PyErr_Occurred()) SWIG_fail;
15519 }
15520 resultobj = SWIG_Py_Void();
15521 return resultobj;
15522 fail:
15523 return NULL;
15524 }
15525
15526
15527 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15528 PyObject *resultobj = 0;
15529 wxDC *arg1 = (wxDC *) 0 ;
15530 int arg2 ;
15531 int arg3 ;
15532 void *argp1 = 0 ;
15533 int res1 = 0 ;
15534 int val2 ;
15535 int ecode2 = 0 ;
15536 int val3 ;
15537 int ecode3 = 0 ;
15538 PyObject * obj0 = 0 ;
15539 PyObject * obj1 = 0 ;
15540 PyObject * obj2 = 0 ;
15541 char * kwnames[] = {
15542 (char *) "self",(char *) "x",(char *) "y", NULL
15543 };
15544
15545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15547 if (!SWIG_IsOK(res1)) {
15548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
15549 }
15550 arg1 = reinterpret_cast< wxDC * >(argp1);
15551 ecode2 = SWIG_AsVal_int(obj1, &val2);
15552 if (!SWIG_IsOK(ecode2)) {
15553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
15554 }
15555 arg2 = static_cast< int >(val2);
15556 ecode3 = SWIG_AsVal_int(obj2, &val3);
15557 if (!SWIG_IsOK(ecode3)) {
15558 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
15559 }
15560 arg3 = static_cast< int >(val3);
15561 {
15562 PyThreadState* __tstate = wxPyBeginAllowThreads();
15563 (arg1)->CrossHair(arg2,arg3);
15564 wxPyEndAllowThreads(__tstate);
15565 if (PyErr_Occurred()) SWIG_fail;
15566 }
15567 resultobj = SWIG_Py_Void();
15568 return resultobj;
15569 fail:
15570 return NULL;
15571 }
15572
15573
15574 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15575 PyObject *resultobj = 0;
15576 wxDC *arg1 = (wxDC *) 0 ;
15577 wxPoint *arg2 = 0 ;
15578 void *argp1 = 0 ;
15579 int res1 = 0 ;
15580 wxPoint temp2 ;
15581 PyObject * obj0 = 0 ;
15582 PyObject * obj1 = 0 ;
15583 char * kwnames[] = {
15584 (char *) "self",(char *) "pt", NULL
15585 };
15586
15587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15589 if (!SWIG_IsOK(res1)) {
15590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15591 }
15592 arg1 = reinterpret_cast< wxDC * >(argp1);
15593 {
15594 arg2 = &temp2;
15595 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15596 }
15597 {
15598 PyThreadState* __tstate = wxPyBeginAllowThreads();
15599 (arg1)->CrossHair((wxPoint const &)*arg2);
15600 wxPyEndAllowThreads(__tstate);
15601 if (PyErr_Occurred()) SWIG_fail;
15602 }
15603 resultobj = SWIG_Py_Void();
15604 return resultobj;
15605 fail:
15606 return NULL;
15607 }
15608
15609
15610 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15611 PyObject *resultobj = 0;
15612 wxDC *arg1 = (wxDC *) 0 ;
15613 int arg2 ;
15614 int arg3 ;
15615 int arg4 ;
15616 int arg5 ;
15617 int arg6 ;
15618 int arg7 ;
15619 void *argp1 = 0 ;
15620 int res1 = 0 ;
15621 int val2 ;
15622 int ecode2 = 0 ;
15623 int val3 ;
15624 int ecode3 = 0 ;
15625 int val4 ;
15626 int ecode4 = 0 ;
15627 int val5 ;
15628 int ecode5 = 0 ;
15629 int val6 ;
15630 int ecode6 = 0 ;
15631 int val7 ;
15632 int ecode7 = 0 ;
15633 PyObject * obj0 = 0 ;
15634 PyObject * obj1 = 0 ;
15635 PyObject * obj2 = 0 ;
15636 PyObject * obj3 = 0 ;
15637 PyObject * obj4 = 0 ;
15638 PyObject * obj5 = 0 ;
15639 PyObject * obj6 = 0 ;
15640 char * kwnames[] = {
15641 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
15642 };
15643
15644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15646 if (!SWIG_IsOK(res1)) {
15647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
15648 }
15649 arg1 = reinterpret_cast< wxDC * >(argp1);
15650 ecode2 = SWIG_AsVal_int(obj1, &val2);
15651 if (!SWIG_IsOK(ecode2)) {
15652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
15653 }
15654 arg2 = static_cast< int >(val2);
15655 ecode3 = SWIG_AsVal_int(obj2, &val3);
15656 if (!SWIG_IsOK(ecode3)) {
15657 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
15658 }
15659 arg3 = static_cast< int >(val3);
15660 ecode4 = SWIG_AsVal_int(obj3, &val4);
15661 if (!SWIG_IsOK(ecode4)) {
15662 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
15663 }
15664 arg4 = static_cast< int >(val4);
15665 ecode5 = SWIG_AsVal_int(obj4, &val5);
15666 if (!SWIG_IsOK(ecode5)) {
15667 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
15668 }
15669 arg5 = static_cast< int >(val5);
15670 ecode6 = SWIG_AsVal_int(obj5, &val6);
15671 if (!SWIG_IsOK(ecode6)) {
15672 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
15673 }
15674 arg6 = static_cast< int >(val6);
15675 ecode7 = SWIG_AsVal_int(obj6, &val7);
15676 if (!SWIG_IsOK(ecode7)) {
15677 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
15678 }
15679 arg7 = static_cast< int >(val7);
15680 {
15681 PyThreadState* __tstate = wxPyBeginAllowThreads();
15682 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
15683 wxPyEndAllowThreads(__tstate);
15684 if (PyErr_Occurred()) SWIG_fail;
15685 }
15686 resultobj = SWIG_Py_Void();
15687 return resultobj;
15688 fail:
15689 return NULL;
15690 }
15691
15692
15693 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15694 PyObject *resultobj = 0;
15695 wxDC *arg1 = (wxDC *) 0 ;
15696 wxPoint *arg2 = 0 ;
15697 wxPoint *arg3 = 0 ;
15698 wxPoint *arg4 = 0 ;
15699 void *argp1 = 0 ;
15700 int res1 = 0 ;
15701 wxPoint temp2 ;
15702 wxPoint temp3 ;
15703 wxPoint temp4 ;
15704 PyObject * obj0 = 0 ;
15705 PyObject * obj1 = 0 ;
15706 PyObject * obj2 = 0 ;
15707 PyObject * obj3 = 0 ;
15708 char * kwnames[] = {
15709 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15710 };
15711
15712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15714 if (!SWIG_IsOK(res1)) {
15715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15716 }
15717 arg1 = reinterpret_cast< wxDC * >(argp1);
15718 {
15719 arg2 = &temp2;
15720 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15721 }
15722 {
15723 arg3 = &temp3;
15724 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15725 }
15726 {
15727 arg4 = &temp4;
15728 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15729 }
15730 {
15731 PyThreadState* __tstate = wxPyBeginAllowThreads();
15732 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
15733 wxPyEndAllowThreads(__tstate);
15734 if (PyErr_Occurred()) SWIG_fail;
15735 }
15736 resultobj = SWIG_Py_Void();
15737 return resultobj;
15738 fail:
15739 return NULL;
15740 }
15741
15742
15743 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15744 PyObject *resultobj = 0;
15745 wxDC *arg1 = (wxDC *) 0 ;
15746 int arg2 ;
15747 int arg3 ;
15748 int arg4 ;
15749 int arg5 ;
15750 void *argp1 = 0 ;
15751 int res1 = 0 ;
15752 int val2 ;
15753 int ecode2 = 0 ;
15754 int val3 ;
15755 int ecode3 = 0 ;
15756 int val4 ;
15757 int ecode4 = 0 ;
15758 int val5 ;
15759 int ecode5 = 0 ;
15760 PyObject * obj0 = 0 ;
15761 PyObject * obj1 = 0 ;
15762 PyObject * obj2 = 0 ;
15763 PyObject * obj3 = 0 ;
15764 PyObject * obj4 = 0 ;
15765 char * kwnames[] = {
15766 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15767 };
15768
15769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15771 if (!SWIG_IsOK(res1)) {
15772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15773 }
15774 arg1 = reinterpret_cast< wxDC * >(argp1);
15775 ecode2 = SWIG_AsVal_int(obj1, &val2);
15776 if (!SWIG_IsOK(ecode2)) {
15777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15778 }
15779 arg2 = static_cast< int >(val2);
15780 ecode3 = SWIG_AsVal_int(obj2, &val3);
15781 if (!SWIG_IsOK(ecode3)) {
15782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15783 }
15784 arg3 = static_cast< int >(val3);
15785 ecode4 = SWIG_AsVal_int(obj3, &val4);
15786 if (!SWIG_IsOK(ecode4)) {
15787 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15788 }
15789 arg4 = static_cast< int >(val4);
15790 ecode5 = SWIG_AsVal_int(obj4, &val5);
15791 if (!SWIG_IsOK(ecode5)) {
15792 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15793 }
15794 arg5 = static_cast< int >(val5);
15795 {
15796 PyThreadState* __tstate = wxPyBeginAllowThreads();
15797 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
15798 wxPyEndAllowThreads(__tstate);
15799 if (PyErr_Occurred()) SWIG_fail;
15800 }
15801 resultobj = SWIG_Py_Void();
15802 return resultobj;
15803 fail:
15804 return NULL;
15805 }
15806
15807
15808 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15809 PyObject *resultobj = 0;
15810 wxDC *arg1 = (wxDC *) 0 ;
15811 wxRect *arg2 = 0 ;
15812 void *argp1 = 0 ;
15813 int res1 = 0 ;
15814 wxRect temp2 ;
15815 PyObject * obj0 = 0 ;
15816 PyObject * obj1 = 0 ;
15817 char * kwnames[] = {
15818 (char *) "self",(char *) "rect", NULL
15819 };
15820
15821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
15822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15823 if (!SWIG_IsOK(res1)) {
15824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15825 }
15826 arg1 = reinterpret_cast< wxDC * >(argp1);
15827 {
15828 arg2 = &temp2;
15829 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15830 }
15831 {
15832 PyThreadState* __tstate = wxPyBeginAllowThreads();
15833 (arg1)->DrawCheckMark((wxRect const &)*arg2);
15834 wxPyEndAllowThreads(__tstate);
15835 if (PyErr_Occurred()) SWIG_fail;
15836 }
15837 resultobj = SWIG_Py_Void();
15838 return resultobj;
15839 fail:
15840 return NULL;
15841 }
15842
15843
15844 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15845 PyObject *resultobj = 0;
15846 wxDC *arg1 = (wxDC *) 0 ;
15847 int arg2 ;
15848 int arg3 ;
15849 int arg4 ;
15850 int arg5 ;
15851 double arg6 ;
15852 double arg7 ;
15853 void *argp1 = 0 ;
15854 int res1 = 0 ;
15855 int val2 ;
15856 int ecode2 = 0 ;
15857 int val3 ;
15858 int ecode3 = 0 ;
15859 int val4 ;
15860 int ecode4 = 0 ;
15861 int val5 ;
15862 int ecode5 = 0 ;
15863 double val6 ;
15864 int ecode6 = 0 ;
15865 double val7 ;
15866 int ecode7 = 0 ;
15867 PyObject * obj0 = 0 ;
15868 PyObject * obj1 = 0 ;
15869 PyObject * obj2 = 0 ;
15870 PyObject * obj3 = 0 ;
15871 PyObject * obj4 = 0 ;
15872 PyObject * obj5 = 0 ;
15873 PyObject * obj6 = 0 ;
15874 char * kwnames[] = {
15875 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15876 };
15877
15878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15880 if (!SWIG_IsOK(res1)) {
15881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15882 }
15883 arg1 = reinterpret_cast< wxDC * >(argp1);
15884 ecode2 = SWIG_AsVal_int(obj1, &val2);
15885 if (!SWIG_IsOK(ecode2)) {
15886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15887 }
15888 arg2 = static_cast< int >(val2);
15889 ecode3 = SWIG_AsVal_int(obj2, &val3);
15890 if (!SWIG_IsOK(ecode3)) {
15891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15892 }
15893 arg3 = static_cast< int >(val3);
15894 ecode4 = SWIG_AsVal_int(obj3, &val4);
15895 if (!SWIG_IsOK(ecode4)) {
15896 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15897 }
15898 arg4 = static_cast< int >(val4);
15899 ecode5 = SWIG_AsVal_int(obj4, &val5);
15900 if (!SWIG_IsOK(ecode5)) {
15901 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15902 }
15903 arg5 = static_cast< int >(val5);
15904 ecode6 = SWIG_AsVal_double(obj5, &val6);
15905 if (!SWIG_IsOK(ecode6)) {
15906 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15907 }
15908 arg6 = static_cast< double >(val6);
15909 ecode7 = SWIG_AsVal_double(obj6, &val7);
15910 if (!SWIG_IsOK(ecode7)) {
15911 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15912 }
15913 arg7 = static_cast< double >(val7);
15914 {
15915 PyThreadState* __tstate = wxPyBeginAllowThreads();
15916 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
15917 wxPyEndAllowThreads(__tstate);
15918 if (PyErr_Occurred()) SWIG_fail;
15919 }
15920 resultobj = SWIG_Py_Void();
15921 return resultobj;
15922 fail:
15923 return NULL;
15924 }
15925
15926
15927 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15928 PyObject *resultobj = 0;
15929 wxDC *arg1 = (wxDC *) 0 ;
15930 wxPoint *arg2 = 0 ;
15931 wxSize *arg3 = 0 ;
15932 double arg4 ;
15933 double arg5 ;
15934 void *argp1 = 0 ;
15935 int res1 = 0 ;
15936 wxPoint temp2 ;
15937 wxSize temp3 ;
15938 double val4 ;
15939 int ecode4 = 0 ;
15940 double val5 ;
15941 int ecode5 = 0 ;
15942 PyObject * obj0 = 0 ;
15943 PyObject * obj1 = 0 ;
15944 PyObject * obj2 = 0 ;
15945 PyObject * obj3 = 0 ;
15946 PyObject * obj4 = 0 ;
15947 char * kwnames[] = {
15948 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
15949 };
15950
15951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15953 if (!SWIG_IsOK(res1)) {
15954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15955 }
15956 arg1 = reinterpret_cast< wxDC * >(argp1);
15957 {
15958 arg2 = &temp2;
15959 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15960 }
15961 {
15962 arg3 = &temp3;
15963 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15964 }
15965 ecode4 = SWIG_AsVal_double(obj3, &val4);
15966 if (!SWIG_IsOK(ecode4)) {
15967 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
15968 }
15969 arg4 = static_cast< double >(val4);
15970 ecode5 = SWIG_AsVal_double(obj4, &val5);
15971 if (!SWIG_IsOK(ecode5)) {
15972 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
15973 }
15974 arg5 = static_cast< double >(val5);
15975 {
15976 PyThreadState* __tstate = wxPyBeginAllowThreads();
15977 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
15978 wxPyEndAllowThreads(__tstate);
15979 if (PyErr_Occurred()) SWIG_fail;
15980 }
15981 resultobj = SWIG_Py_Void();
15982 return resultobj;
15983 fail:
15984 return NULL;
15985 }
15986
15987
15988 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15989 PyObject *resultobj = 0;
15990 wxDC *arg1 = (wxDC *) 0 ;
15991 int arg2 ;
15992 int arg3 ;
15993 void *argp1 = 0 ;
15994 int res1 = 0 ;
15995 int val2 ;
15996 int ecode2 = 0 ;
15997 int val3 ;
15998 int ecode3 = 0 ;
15999 PyObject * obj0 = 0 ;
16000 PyObject * obj1 = 0 ;
16001 PyObject * obj2 = 0 ;
16002 char * kwnames[] = {
16003 (char *) "self",(char *) "x",(char *) "y", NULL
16004 };
16005
16006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16008 if (!SWIG_IsOK(res1)) {
16009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16010 }
16011 arg1 = reinterpret_cast< wxDC * >(argp1);
16012 ecode2 = SWIG_AsVal_int(obj1, &val2);
16013 if (!SWIG_IsOK(ecode2)) {
16014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
16015 }
16016 arg2 = static_cast< int >(val2);
16017 ecode3 = SWIG_AsVal_int(obj2, &val3);
16018 if (!SWIG_IsOK(ecode3)) {
16019 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
16020 }
16021 arg3 = static_cast< int >(val3);
16022 {
16023 PyThreadState* __tstate = wxPyBeginAllowThreads();
16024 (arg1)->DrawPoint(arg2,arg3);
16025 wxPyEndAllowThreads(__tstate);
16026 if (PyErr_Occurred()) SWIG_fail;
16027 }
16028 resultobj = SWIG_Py_Void();
16029 return resultobj;
16030 fail:
16031 return NULL;
16032 }
16033
16034
16035 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16036 PyObject *resultobj = 0;
16037 wxDC *arg1 = (wxDC *) 0 ;
16038 wxPoint *arg2 = 0 ;
16039 void *argp1 = 0 ;
16040 int res1 = 0 ;
16041 wxPoint temp2 ;
16042 PyObject * obj0 = 0 ;
16043 PyObject * obj1 = 0 ;
16044 char * kwnames[] = {
16045 (char *) "self",(char *) "pt", NULL
16046 };
16047
16048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
16049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16050 if (!SWIG_IsOK(res1)) {
16051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16052 }
16053 arg1 = reinterpret_cast< wxDC * >(argp1);
16054 {
16055 arg2 = &temp2;
16056 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16057 }
16058 {
16059 PyThreadState* __tstate = wxPyBeginAllowThreads();
16060 (arg1)->DrawPoint((wxPoint const &)*arg2);
16061 wxPyEndAllowThreads(__tstate);
16062 if (PyErr_Occurred()) SWIG_fail;
16063 }
16064 resultobj = SWIG_Py_Void();
16065 return resultobj;
16066 fail:
16067 return NULL;
16068 }
16069
16070
16071 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16072 PyObject *resultobj = 0;
16073 wxDC *arg1 = (wxDC *) 0 ;
16074 int arg2 ;
16075 int arg3 ;
16076 int arg4 ;
16077 int arg5 ;
16078 void *argp1 = 0 ;
16079 int res1 = 0 ;
16080 int val2 ;
16081 int ecode2 = 0 ;
16082 int val3 ;
16083 int ecode3 = 0 ;
16084 int val4 ;
16085 int ecode4 = 0 ;
16086 int val5 ;
16087 int ecode5 = 0 ;
16088 PyObject * obj0 = 0 ;
16089 PyObject * obj1 = 0 ;
16090 PyObject * obj2 = 0 ;
16091 PyObject * obj3 = 0 ;
16092 PyObject * obj4 = 0 ;
16093 char * kwnames[] = {
16094 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16095 };
16096
16097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16099 if (!SWIG_IsOK(res1)) {
16100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
16101 }
16102 arg1 = reinterpret_cast< wxDC * >(argp1);
16103 ecode2 = SWIG_AsVal_int(obj1, &val2);
16104 if (!SWIG_IsOK(ecode2)) {
16105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
16106 }
16107 arg2 = static_cast< int >(val2);
16108 ecode3 = SWIG_AsVal_int(obj2, &val3);
16109 if (!SWIG_IsOK(ecode3)) {
16110 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
16111 }
16112 arg3 = static_cast< int >(val3);
16113 ecode4 = SWIG_AsVal_int(obj3, &val4);
16114 if (!SWIG_IsOK(ecode4)) {
16115 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
16116 }
16117 arg4 = static_cast< int >(val4);
16118 ecode5 = SWIG_AsVal_int(obj4, &val5);
16119 if (!SWIG_IsOK(ecode5)) {
16120 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
16121 }
16122 arg5 = static_cast< int >(val5);
16123 {
16124 PyThreadState* __tstate = wxPyBeginAllowThreads();
16125 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
16126 wxPyEndAllowThreads(__tstate);
16127 if (PyErr_Occurred()) SWIG_fail;
16128 }
16129 resultobj = SWIG_Py_Void();
16130 return resultobj;
16131 fail:
16132 return NULL;
16133 }
16134
16135
16136 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16137 PyObject *resultobj = 0;
16138 wxDC *arg1 = (wxDC *) 0 ;
16139 wxRect *arg2 = 0 ;
16140 void *argp1 = 0 ;
16141 int res1 = 0 ;
16142 wxRect temp2 ;
16143 PyObject * obj0 = 0 ;
16144 PyObject * obj1 = 0 ;
16145 char * kwnames[] = {
16146 (char *) "self",(char *) "rect", NULL
16147 };
16148
16149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
16150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16151 if (!SWIG_IsOK(res1)) {
16152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
16153 }
16154 arg1 = reinterpret_cast< wxDC * >(argp1);
16155 {
16156 arg2 = &temp2;
16157 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16158 }
16159 {
16160 PyThreadState* __tstate = wxPyBeginAllowThreads();
16161 (arg1)->DrawRectangle((wxRect const &)*arg2);
16162 wxPyEndAllowThreads(__tstate);
16163 if (PyErr_Occurred()) SWIG_fail;
16164 }
16165 resultobj = SWIG_Py_Void();
16166 return resultobj;
16167 fail:
16168 return NULL;
16169 }
16170
16171
16172 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16173 PyObject *resultobj = 0;
16174 wxDC *arg1 = (wxDC *) 0 ;
16175 wxPoint *arg2 = 0 ;
16176 wxSize *arg3 = 0 ;
16177 void *argp1 = 0 ;
16178 int res1 = 0 ;
16179 wxPoint temp2 ;
16180 wxSize temp3 ;
16181 PyObject * obj0 = 0 ;
16182 PyObject * obj1 = 0 ;
16183 PyObject * obj2 = 0 ;
16184 char * kwnames[] = {
16185 (char *) "self",(char *) "pt",(char *) "sz", NULL
16186 };
16187
16188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16190 if (!SWIG_IsOK(res1)) {
16191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16192 }
16193 arg1 = reinterpret_cast< wxDC * >(argp1);
16194 {
16195 arg2 = &temp2;
16196 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16197 }
16198 {
16199 arg3 = &temp3;
16200 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16201 }
16202 {
16203 PyThreadState* __tstate = wxPyBeginAllowThreads();
16204 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
16205 wxPyEndAllowThreads(__tstate);
16206 if (PyErr_Occurred()) SWIG_fail;
16207 }
16208 resultobj = SWIG_Py_Void();
16209 return resultobj;
16210 fail:
16211 return NULL;
16212 }
16213
16214
16215 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16216 PyObject *resultobj = 0;
16217 wxDC *arg1 = (wxDC *) 0 ;
16218 int arg2 ;
16219 int arg3 ;
16220 int arg4 ;
16221 int arg5 ;
16222 double arg6 ;
16223 void *argp1 = 0 ;
16224 int res1 = 0 ;
16225 int val2 ;
16226 int ecode2 = 0 ;
16227 int val3 ;
16228 int ecode3 = 0 ;
16229 int val4 ;
16230 int ecode4 = 0 ;
16231 int val5 ;
16232 int ecode5 = 0 ;
16233 double val6 ;
16234 int ecode6 = 0 ;
16235 PyObject * obj0 = 0 ;
16236 PyObject * obj1 = 0 ;
16237 PyObject * obj2 = 0 ;
16238 PyObject * obj3 = 0 ;
16239 PyObject * obj4 = 0 ;
16240 PyObject * obj5 = 0 ;
16241 char * kwnames[] = {
16242 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
16243 };
16244
16245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16247 if (!SWIG_IsOK(res1)) {
16248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
16249 }
16250 arg1 = reinterpret_cast< wxDC * >(argp1);
16251 ecode2 = SWIG_AsVal_int(obj1, &val2);
16252 if (!SWIG_IsOK(ecode2)) {
16253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
16254 }
16255 arg2 = static_cast< int >(val2);
16256 ecode3 = SWIG_AsVal_int(obj2, &val3);
16257 if (!SWIG_IsOK(ecode3)) {
16258 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
16259 }
16260 arg3 = static_cast< int >(val3);
16261 ecode4 = SWIG_AsVal_int(obj3, &val4);
16262 if (!SWIG_IsOK(ecode4)) {
16263 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
16264 }
16265 arg4 = static_cast< int >(val4);
16266 ecode5 = SWIG_AsVal_int(obj4, &val5);
16267 if (!SWIG_IsOK(ecode5)) {
16268 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
16269 }
16270 arg5 = static_cast< int >(val5);
16271 ecode6 = SWIG_AsVal_double(obj5, &val6);
16272 if (!SWIG_IsOK(ecode6)) {
16273 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
16274 }
16275 arg6 = static_cast< double >(val6);
16276 {
16277 PyThreadState* __tstate = wxPyBeginAllowThreads();
16278 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
16279 wxPyEndAllowThreads(__tstate);
16280 if (PyErr_Occurred()) SWIG_fail;
16281 }
16282 resultobj = SWIG_Py_Void();
16283 return resultobj;
16284 fail:
16285 return NULL;
16286 }
16287
16288
16289 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16290 PyObject *resultobj = 0;
16291 wxDC *arg1 = (wxDC *) 0 ;
16292 wxRect *arg2 = 0 ;
16293 double arg3 ;
16294 void *argp1 = 0 ;
16295 int res1 = 0 ;
16296 wxRect temp2 ;
16297 double val3 ;
16298 int ecode3 = 0 ;
16299 PyObject * obj0 = 0 ;
16300 PyObject * obj1 = 0 ;
16301 PyObject * obj2 = 0 ;
16302 char * kwnames[] = {
16303 (char *) "self",(char *) "r",(char *) "radius", NULL
16304 };
16305
16306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16308 if (!SWIG_IsOK(res1)) {
16309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
16310 }
16311 arg1 = reinterpret_cast< wxDC * >(argp1);
16312 {
16313 arg2 = &temp2;
16314 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16315 }
16316 ecode3 = SWIG_AsVal_double(obj2, &val3);
16317 if (!SWIG_IsOK(ecode3)) {
16318 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
16319 }
16320 arg3 = static_cast< double >(val3);
16321 {
16322 PyThreadState* __tstate = wxPyBeginAllowThreads();
16323 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
16324 wxPyEndAllowThreads(__tstate);
16325 if (PyErr_Occurred()) SWIG_fail;
16326 }
16327 resultobj = SWIG_Py_Void();
16328 return resultobj;
16329 fail:
16330 return NULL;
16331 }
16332
16333
16334 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16335 PyObject *resultobj = 0;
16336 wxDC *arg1 = (wxDC *) 0 ;
16337 wxPoint *arg2 = 0 ;
16338 wxSize *arg3 = 0 ;
16339 double arg4 ;
16340 void *argp1 = 0 ;
16341 int res1 = 0 ;
16342 wxPoint temp2 ;
16343 wxSize temp3 ;
16344 double val4 ;
16345 int ecode4 = 0 ;
16346 PyObject * obj0 = 0 ;
16347 PyObject * obj1 = 0 ;
16348 PyObject * obj2 = 0 ;
16349 PyObject * obj3 = 0 ;
16350 char * kwnames[] = {
16351 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
16352 };
16353
16354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16358 }
16359 arg1 = reinterpret_cast< wxDC * >(argp1);
16360 {
16361 arg2 = &temp2;
16362 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16363 }
16364 {
16365 arg3 = &temp3;
16366 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16367 }
16368 ecode4 = SWIG_AsVal_double(obj3, &val4);
16369 if (!SWIG_IsOK(ecode4)) {
16370 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
16371 }
16372 arg4 = static_cast< double >(val4);
16373 {
16374 PyThreadState* __tstate = wxPyBeginAllowThreads();
16375 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
16376 wxPyEndAllowThreads(__tstate);
16377 if (PyErr_Occurred()) SWIG_fail;
16378 }
16379 resultobj = SWIG_Py_Void();
16380 return resultobj;
16381 fail:
16382 return NULL;
16383 }
16384
16385
16386 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16387 PyObject *resultobj = 0;
16388 wxDC *arg1 = (wxDC *) 0 ;
16389 int arg2 ;
16390 int arg3 ;
16391 int arg4 ;
16392 void *argp1 = 0 ;
16393 int res1 = 0 ;
16394 int val2 ;
16395 int ecode2 = 0 ;
16396 int val3 ;
16397 int ecode3 = 0 ;
16398 int val4 ;
16399 int ecode4 = 0 ;
16400 PyObject * obj0 = 0 ;
16401 PyObject * obj1 = 0 ;
16402 PyObject * obj2 = 0 ;
16403 PyObject * obj3 = 0 ;
16404 char * kwnames[] = {
16405 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
16406 };
16407
16408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16410 if (!SWIG_IsOK(res1)) {
16411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
16412 }
16413 arg1 = reinterpret_cast< wxDC * >(argp1);
16414 ecode2 = SWIG_AsVal_int(obj1, &val2);
16415 if (!SWIG_IsOK(ecode2)) {
16416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
16417 }
16418 arg2 = static_cast< int >(val2);
16419 ecode3 = SWIG_AsVal_int(obj2, &val3);
16420 if (!SWIG_IsOK(ecode3)) {
16421 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
16422 }
16423 arg3 = static_cast< int >(val3);
16424 ecode4 = SWIG_AsVal_int(obj3, &val4);
16425 if (!SWIG_IsOK(ecode4)) {
16426 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
16427 }
16428 arg4 = static_cast< int >(val4);
16429 {
16430 PyThreadState* __tstate = wxPyBeginAllowThreads();
16431 (arg1)->DrawCircle(arg2,arg3,arg4);
16432 wxPyEndAllowThreads(__tstate);
16433 if (PyErr_Occurred()) SWIG_fail;
16434 }
16435 resultobj = SWIG_Py_Void();
16436 return resultobj;
16437 fail:
16438 return NULL;
16439 }
16440
16441
16442 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16443 PyObject *resultobj = 0;
16444 wxDC *arg1 = (wxDC *) 0 ;
16445 wxPoint *arg2 = 0 ;
16446 int arg3 ;
16447 void *argp1 = 0 ;
16448 int res1 = 0 ;
16449 wxPoint temp2 ;
16450 int val3 ;
16451 int ecode3 = 0 ;
16452 PyObject * obj0 = 0 ;
16453 PyObject * obj1 = 0 ;
16454 PyObject * obj2 = 0 ;
16455 char * kwnames[] = {
16456 (char *) "self",(char *) "pt",(char *) "radius", NULL
16457 };
16458
16459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16461 if (!SWIG_IsOK(res1)) {
16462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
16463 }
16464 arg1 = reinterpret_cast< wxDC * >(argp1);
16465 {
16466 arg2 = &temp2;
16467 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16468 }
16469 ecode3 = SWIG_AsVal_int(obj2, &val3);
16470 if (!SWIG_IsOK(ecode3)) {
16471 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
16472 }
16473 arg3 = static_cast< int >(val3);
16474 {
16475 PyThreadState* __tstate = wxPyBeginAllowThreads();
16476 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
16477 wxPyEndAllowThreads(__tstate);
16478 if (PyErr_Occurred()) SWIG_fail;
16479 }
16480 resultobj = SWIG_Py_Void();
16481 return resultobj;
16482 fail:
16483 return NULL;
16484 }
16485
16486
16487 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16488 PyObject *resultobj = 0;
16489 wxDC *arg1 = (wxDC *) 0 ;
16490 int arg2 ;
16491 int arg3 ;
16492 int arg4 ;
16493 int arg5 ;
16494 void *argp1 = 0 ;
16495 int res1 = 0 ;
16496 int val2 ;
16497 int ecode2 = 0 ;
16498 int val3 ;
16499 int ecode3 = 0 ;
16500 int val4 ;
16501 int ecode4 = 0 ;
16502 int val5 ;
16503 int ecode5 = 0 ;
16504 PyObject * obj0 = 0 ;
16505 PyObject * obj1 = 0 ;
16506 PyObject * obj2 = 0 ;
16507 PyObject * obj3 = 0 ;
16508 PyObject * obj4 = 0 ;
16509 char * kwnames[] = {
16510 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16511 };
16512
16513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16515 if (!SWIG_IsOK(res1)) {
16516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
16517 }
16518 arg1 = reinterpret_cast< wxDC * >(argp1);
16519 ecode2 = SWIG_AsVal_int(obj1, &val2);
16520 if (!SWIG_IsOK(ecode2)) {
16521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
16522 }
16523 arg2 = static_cast< int >(val2);
16524 ecode3 = SWIG_AsVal_int(obj2, &val3);
16525 if (!SWIG_IsOK(ecode3)) {
16526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
16527 }
16528 arg3 = static_cast< int >(val3);
16529 ecode4 = SWIG_AsVal_int(obj3, &val4);
16530 if (!SWIG_IsOK(ecode4)) {
16531 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
16532 }
16533 arg4 = static_cast< int >(val4);
16534 ecode5 = SWIG_AsVal_int(obj4, &val5);
16535 if (!SWIG_IsOK(ecode5)) {
16536 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
16537 }
16538 arg5 = static_cast< int >(val5);
16539 {
16540 PyThreadState* __tstate = wxPyBeginAllowThreads();
16541 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
16542 wxPyEndAllowThreads(__tstate);
16543 if (PyErr_Occurred()) SWIG_fail;
16544 }
16545 resultobj = SWIG_Py_Void();
16546 return resultobj;
16547 fail:
16548 return NULL;
16549 }
16550
16551
16552 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16553 PyObject *resultobj = 0;
16554 wxDC *arg1 = (wxDC *) 0 ;
16555 wxRect *arg2 = 0 ;
16556 void *argp1 = 0 ;
16557 int res1 = 0 ;
16558 wxRect temp2 ;
16559 PyObject * obj0 = 0 ;
16560 PyObject * obj1 = 0 ;
16561 char * kwnames[] = {
16562 (char *) "self",(char *) "rect", NULL
16563 };
16564
16565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
16566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16567 if (!SWIG_IsOK(res1)) {
16568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
16569 }
16570 arg1 = reinterpret_cast< wxDC * >(argp1);
16571 {
16572 arg2 = &temp2;
16573 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16574 }
16575 {
16576 PyThreadState* __tstate = wxPyBeginAllowThreads();
16577 (arg1)->DrawEllipse((wxRect const &)*arg2);
16578 wxPyEndAllowThreads(__tstate);
16579 if (PyErr_Occurred()) SWIG_fail;
16580 }
16581 resultobj = SWIG_Py_Void();
16582 return resultobj;
16583 fail:
16584 return NULL;
16585 }
16586
16587
16588 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16589 PyObject *resultobj = 0;
16590 wxDC *arg1 = (wxDC *) 0 ;
16591 wxPoint *arg2 = 0 ;
16592 wxSize *arg3 = 0 ;
16593 void *argp1 = 0 ;
16594 int res1 = 0 ;
16595 wxPoint temp2 ;
16596 wxSize temp3 ;
16597 PyObject * obj0 = 0 ;
16598 PyObject * obj1 = 0 ;
16599 PyObject * obj2 = 0 ;
16600 char * kwnames[] = {
16601 (char *) "self",(char *) "pt",(char *) "sz", NULL
16602 };
16603
16604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16606 if (!SWIG_IsOK(res1)) {
16607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16608 }
16609 arg1 = reinterpret_cast< wxDC * >(argp1);
16610 {
16611 arg2 = &temp2;
16612 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16613 }
16614 {
16615 arg3 = &temp3;
16616 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16617 }
16618 {
16619 PyThreadState* __tstate = wxPyBeginAllowThreads();
16620 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
16621 wxPyEndAllowThreads(__tstate);
16622 if (PyErr_Occurred()) SWIG_fail;
16623 }
16624 resultobj = SWIG_Py_Void();
16625 return resultobj;
16626 fail:
16627 return NULL;
16628 }
16629
16630
16631 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16632 PyObject *resultobj = 0;
16633 wxDC *arg1 = (wxDC *) 0 ;
16634 wxIcon *arg2 = 0 ;
16635 int arg3 ;
16636 int arg4 ;
16637 void *argp1 = 0 ;
16638 int res1 = 0 ;
16639 void *argp2 = 0 ;
16640 int res2 = 0 ;
16641 int val3 ;
16642 int ecode3 = 0 ;
16643 int val4 ;
16644 int ecode4 = 0 ;
16645 PyObject * obj0 = 0 ;
16646 PyObject * obj1 = 0 ;
16647 PyObject * obj2 = 0 ;
16648 PyObject * obj3 = 0 ;
16649 char * kwnames[] = {
16650 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
16651 };
16652
16653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16655 if (!SWIG_IsOK(res1)) {
16656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
16657 }
16658 arg1 = reinterpret_cast< wxDC * >(argp1);
16659 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16660 if (!SWIG_IsOK(res2)) {
16661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16662 }
16663 if (!argp2) {
16664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16665 }
16666 arg2 = reinterpret_cast< wxIcon * >(argp2);
16667 ecode3 = SWIG_AsVal_int(obj2, &val3);
16668 if (!SWIG_IsOK(ecode3)) {
16669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
16670 }
16671 arg3 = static_cast< int >(val3);
16672 ecode4 = SWIG_AsVal_int(obj3, &val4);
16673 if (!SWIG_IsOK(ecode4)) {
16674 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
16675 }
16676 arg4 = static_cast< int >(val4);
16677 {
16678 PyThreadState* __tstate = wxPyBeginAllowThreads();
16679 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
16680 wxPyEndAllowThreads(__tstate);
16681 if (PyErr_Occurred()) SWIG_fail;
16682 }
16683 resultobj = SWIG_Py_Void();
16684 return resultobj;
16685 fail:
16686 return NULL;
16687 }
16688
16689
16690 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16691 PyObject *resultobj = 0;
16692 wxDC *arg1 = (wxDC *) 0 ;
16693 wxIcon *arg2 = 0 ;
16694 wxPoint *arg3 = 0 ;
16695 void *argp1 = 0 ;
16696 int res1 = 0 ;
16697 void *argp2 = 0 ;
16698 int res2 = 0 ;
16699 wxPoint temp3 ;
16700 PyObject * obj0 = 0 ;
16701 PyObject * obj1 = 0 ;
16702 PyObject * obj2 = 0 ;
16703 char * kwnames[] = {
16704 (char *) "self",(char *) "icon",(char *) "pt", NULL
16705 };
16706
16707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16709 if (!SWIG_IsOK(res1)) {
16710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16711 }
16712 arg1 = reinterpret_cast< wxDC * >(argp1);
16713 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16714 if (!SWIG_IsOK(res2)) {
16715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16716 }
16717 if (!argp2) {
16718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16719 }
16720 arg2 = reinterpret_cast< wxIcon * >(argp2);
16721 {
16722 arg3 = &temp3;
16723 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16724 }
16725 {
16726 PyThreadState* __tstate = wxPyBeginAllowThreads();
16727 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
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_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16739 PyObject *resultobj = 0;
16740 wxDC *arg1 = (wxDC *) 0 ;
16741 wxBitmap *arg2 = 0 ;
16742 int arg3 ;
16743 int arg4 ;
16744 bool arg5 = (bool) false ;
16745 void *argp1 = 0 ;
16746 int res1 = 0 ;
16747 void *argp2 = 0 ;
16748 int res2 = 0 ;
16749 int val3 ;
16750 int ecode3 = 0 ;
16751 int val4 ;
16752 int ecode4 = 0 ;
16753 bool val5 ;
16754 int ecode5 = 0 ;
16755 PyObject * obj0 = 0 ;
16756 PyObject * obj1 = 0 ;
16757 PyObject * obj2 = 0 ;
16758 PyObject * obj3 = 0 ;
16759 PyObject * obj4 = 0 ;
16760 char * kwnames[] = {
16761 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16762 };
16763
16764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16766 if (!SWIG_IsOK(res1)) {
16767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16768 }
16769 arg1 = reinterpret_cast< wxDC * >(argp1);
16770 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16771 if (!SWIG_IsOK(res2)) {
16772 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16773 }
16774 if (!argp2) {
16775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16776 }
16777 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16778 ecode3 = SWIG_AsVal_int(obj2, &val3);
16779 if (!SWIG_IsOK(ecode3)) {
16780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16781 }
16782 arg3 = static_cast< int >(val3);
16783 ecode4 = SWIG_AsVal_int(obj3, &val4);
16784 if (!SWIG_IsOK(ecode4)) {
16785 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16786 }
16787 arg4 = static_cast< int >(val4);
16788 if (obj4) {
16789 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16790 if (!SWIG_IsOK(ecode5)) {
16791 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16792 }
16793 arg5 = static_cast< bool >(val5);
16794 }
16795 {
16796 PyThreadState* __tstate = wxPyBeginAllowThreads();
16797 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
16798 wxPyEndAllowThreads(__tstate);
16799 if (PyErr_Occurred()) SWIG_fail;
16800 }
16801 resultobj = SWIG_Py_Void();
16802 return resultobj;
16803 fail:
16804 return NULL;
16805 }
16806
16807
16808 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16809 PyObject *resultobj = 0;
16810 wxDC *arg1 = (wxDC *) 0 ;
16811 wxBitmap *arg2 = 0 ;
16812 wxPoint *arg3 = 0 ;
16813 bool arg4 = (bool) false ;
16814 void *argp1 = 0 ;
16815 int res1 = 0 ;
16816 void *argp2 = 0 ;
16817 int res2 = 0 ;
16818 wxPoint temp3 ;
16819 bool val4 ;
16820 int ecode4 = 0 ;
16821 PyObject * obj0 = 0 ;
16822 PyObject * obj1 = 0 ;
16823 PyObject * obj2 = 0 ;
16824 PyObject * obj3 = 0 ;
16825 char * kwnames[] = {
16826 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16827 };
16828
16829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16831 if (!SWIG_IsOK(res1)) {
16832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16833 }
16834 arg1 = reinterpret_cast< wxDC * >(argp1);
16835 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16836 if (!SWIG_IsOK(res2)) {
16837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16838 }
16839 if (!argp2) {
16840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16841 }
16842 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16843 {
16844 arg3 = &temp3;
16845 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16846 }
16847 if (obj3) {
16848 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16849 if (!SWIG_IsOK(ecode4)) {
16850 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16851 }
16852 arg4 = static_cast< bool >(val4);
16853 }
16854 {
16855 PyThreadState* __tstate = wxPyBeginAllowThreads();
16856 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
16857 wxPyEndAllowThreads(__tstate);
16858 if (PyErr_Occurred()) SWIG_fail;
16859 }
16860 resultobj = SWIG_Py_Void();
16861 return resultobj;
16862 fail:
16863 return NULL;
16864 }
16865
16866
16867 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16868 PyObject *resultobj = 0;
16869 wxDC *arg1 = (wxDC *) 0 ;
16870 wxString *arg2 = 0 ;
16871 int arg3 ;
16872 int arg4 ;
16873 void *argp1 = 0 ;
16874 int res1 = 0 ;
16875 bool temp2 = false ;
16876 int val3 ;
16877 int ecode3 = 0 ;
16878 int val4 ;
16879 int ecode4 = 0 ;
16880 PyObject * obj0 = 0 ;
16881 PyObject * obj1 = 0 ;
16882 PyObject * obj2 = 0 ;
16883 PyObject * obj3 = 0 ;
16884 char * kwnames[] = {
16885 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16886 };
16887
16888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16890 if (!SWIG_IsOK(res1)) {
16891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16892 }
16893 arg1 = reinterpret_cast< wxDC * >(argp1);
16894 {
16895 arg2 = wxString_in_helper(obj1);
16896 if (arg2 == NULL) SWIG_fail;
16897 temp2 = true;
16898 }
16899 ecode3 = SWIG_AsVal_int(obj2, &val3);
16900 if (!SWIG_IsOK(ecode3)) {
16901 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16902 }
16903 arg3 = static_cast< int >(val3);
16904 ecode4 = SWIG_AsVal_int(obj3, &val4);
16905 if (!SWIG_IsOK(ecode4)) {
16906 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16907 }
16908 arg4 = static_cast< int >(val4);
16909 {
16910 PyThreadState* __tstate = wxPyBeginAllowThreads();
16911 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
16912 wxPyEndAllowThreads(__tstate);
16913 if (PyErr_Occurred()) SWIG_fail;
16914 }
16915 resultobj = SWIG_Py_Void();
16916 {
16917 if (temp2)
16918 delete arg2;
16919 }
16920 return resultobj;
16921 fail:
16922 {
16923 if (temp2)
16924 delete arg2;
16925 }
16926 return NULL;
16927 }
16928
16929
16930 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16931 PyObject *resultobj = 0;
16932 wxDC *arg1 = (wxDC *) 0 ;
16933 wxString *arg2 = 0 ;
16934 wxPoint *arg3 = 0 ;
16935 void *argp1 = 0 ;
16936 int res1 = 0 ;
16937 bool temp2 = false ;
16938 wxPoint temp3 ;
16939 PyObject * obj0 = 0 ;
16940 PyObject * obj1 = 0 ;
16941 PyObject * obj2 = 0 ;
16942 char * kwnames[] = {
16943 (char *) "self",(char *) "text",(char *) "pt", NULL
16944 };
16945
16946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16948 if (!SWIG_IsOK(res1)) {
16949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16950 }
16951 arg1 = reinterpret_cast< wxDC * >(argp1);
16952 {
16953 arg2 = wxString_in_helper(obj1);
16954 if (arg2 == NULL) SWIG_fail;
16955 temp2 = true;
16956 }
16957 {
16958 arg3 = &temp3;
16959 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16960 }
16961 {
16962 PyThreadState* __tstate = wxPyBeginAllowThreads();
16963 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
16964 wxPyEndAllowThreads(__tstate);
16965 if (PyErr_Occurred()) SWIG_fail;
16966 }
16967 resultobj = SWIG_Py_Void();
16968 {
16969 if (temp2)
16970 delete arg2;
16971 }
16972 return resultobj;
16973 fail:
16974 {
16975 if (temp2)
16976 delete arg2;
16977 }
16978 return NULL;
16979 }
16980
16981
16982 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16983 PyObject *resultobj = 0;
16984 wxDC *arg1 = (wxDC *) 0 ;
16985 wxString *arg2 = 0 ;
16986 int arg3 ;
16987 int arg4 ;
16988 double arg5 ;
16989 void *argp1 = 0 ;
16990 int res1 = 0 ;
16991 bool temp2 = false ;
16992 int val3 ;
16993 int ecode3 = 0 ;
16994 int val4 ;
16995 int ecode4 = 0 ;
16996 double val5 ;
16997 int ecode5 = 0 ;
16998 PyObject * obj0 = 0 ;
16999 PyObject * obj1 = 0 ;
17000 PyObject * obj2 = 0 ;
17001 PyObject * obj3 = 0 ;
17002 PyObject * obj4 = 0 ;
17003 char * kwnames[] = {
17004 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
17005 };
17006
17007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17009 if (!SWIG_IsOK(res1)) {
17010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
17011 }
17012 arg1 = reinterpret_cast< wxDC * >(argp1);
17013 {
17014 arg2 = wxString_in_helper(obj1);
17015 if (arg2 == NULL) SWIG_fail;
17016 temp2 = true;
17017 }
17018 ecode3 = SWIG_AsVal_int(obj2, &val3);
17019 if (!SWIG_IsOK(ecode3)) {
17020 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
17021 }
17022 arg3 = static_cast< int >(val3);
17023 ecode4 = SWIG_AsVal_int(obj3, &val4);
17024 if (!SWIG_IsOK(ecode4)) {
17025 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
17026 }
17027 arg4 = static_cast< int >(val4);
17028 ecode5 = SWIG_AsVal_double(obj4, &val5);
17029 if (!SWIG_IsOK(ecode5)) {
17030 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
17031 }
17032 arg5 = static_cast< double >(val5);
17033 {
17034 PyThreadState* __tstate = wxPyBeginAllowThreads();
17035 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
17036 wxPyEndAllowThreads(__tstate);
17037 if (PyErr_Occurred()) SWIG_fail;
17038 }
17039 resultobj = SWIG_Py_Void();
17040 {
17041 if (temp2)
17042 delete arg2;
17043 }
17044 return resultobj;
17045 fail:
17046 {
17047 if (temp2)
17048 delete arg2;
17049 }
17050 return NULL;
17051 }
17052
17053
17054 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17055 PyObject *resultobj = 0;
17056 wxDC *arg1 = (wxDC *) 0 ;
17057 wxString *arg2 = 0 ;
17058 wxPoint *arg3 = 0 ;
17059 double arg4 ;
17060 void *argp1 = 0 ;
17061 int res1 = 0 ;
17062 bool temp2 = false ;
17063 wxPoint temp3 ;
17064 double val4 ;
17065 int ecode4 = 0 ;
17066 PyObject * obj0 = 0 ;
17067 PyObject * obj1 = 0 ;
17068 PyObject * obj2 = 0 ;
17069 PyObject * obj3 = 0 ;
17070 char * kwnames[] = {
17071 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
17072 };
17073
17074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17076 if (!SWIG_IsOK(res1)) {
17077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17078 }
17079 arg1 = reinterpret_cast< wxDC * >(argp1);
17080 {
17081 arg2 = wxString_in_helper(obj1);
17082 if (arg2 == NULL) SWIG_fail;
17083 temp2 = true;
17084 }
17085 {
17086 arg3 = &temp3;
17087 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17088 }
17089 ecode4 = SWIG_AsVal_double(obj3, &val4);
17090 if (!SWIG_IsOK(ecode4)) {
17091 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
17092 }
17093 arg4 = static_cast< double >(val4);
17094 {
17095 PyThreadState* __tstate = wxPyBeginAllowThreads();
17096 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
17097 wxPyEndAllowThreads(__tstate);
17098 if (PyErr_Occurred()) SWIG_fail;
17099 }
17100 resultobj = SWIG_Py_Void();
17101 {
17102 if (temp2)
17103 delete arg2;
17104 }
17105 return resultobj;
17106 fail:
17107 {
17108 if (temp2)
17109 delete arg2;
17110 }
17111 return NULL;
17112 }
17113
17114
17115 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17116 PyObject *resultobj = 0;
17117 wxDC *arg1 = (wxDC *) 0 ;
17118 int arg2 ;
17119 int arg3 ;
17120 int arg4 ;
17121 int arg5 ;
17122 wxDC *arg6 = (wxDC *) 0 ;
17123 int arg7 ;
17124 int arg8 ;
17125 int arg9 = (int) wxCOPY ;
17126 bool arg10 = (bool) false ;
17127 int arg11 = (int) -1 ;
17128 int arg12 = (int) -1 ;
17129 bool result;
17130 void *argp1 = 0 ;
17131 int res1 = 0 ;
17132 int val2 ;
17133 int ecode2 = 0 ;
17134 int val3 ;
17135 int ecode3 = 0 ;
17136 int val4 ;
17137 int ecode4 = 0 ;
17138 int val5 ;
17139 int ecode5 = 0 ;
17140 void *argp6 = 0 ;
17141 int res6 = 0 ;
17142 int val7 ;
17143 int ecode7 = 0 ;
17144 int val8 ;
17145 int ecode8 = 0 ;
17146 int val9 ;
17147 int ecode9 = 0 ;
17148 bool val10 ;
17149 int ecode10 = 0 ;
17150 int val11 ;
17151 int ecode11 = 0 ;
17152 int val12 ;
17153 int ecode12 = 0 ;
17154 PyObject * obj0 = 0 ;
17155 PyObject * obj1 = 0 ;
17156 PyObject * obj2 = 0 ;
17157 PyObject * obj3 = 0 ;
17158 PyObject * obj4 = 0 ;
17159 PyObject * obj5 = 0 ;
17160 PyObject * obj6 = 0 ;
17161 PyObject * obj7 = 0 ;
17162 PyObject * obj8 = 0 ;
17163 PyObject * obj9 = 0 ;
17164 PyObject * obj10 = 0 ;
17165 PyObject * obj11 = 0 ;
17166 char * kwnames[] = {
17167 (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
17168 };
17169
17170 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;
17171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17172 if (!SWIG_IsOK(res1)) {
17173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
17174 }
17175 arg1 = reinterpret_cast< wxDC * >(argp1);
17176 ecode2 = SWIG_AsVal_int(obj1, &val2);
17177 if (!SWIG_IsOK(ecode2)) {
17178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
17179 }
17180 arg2 = static_cast< int >(val2);
17181 ecode3 = SWIG_AsVal_int(obj2, &val3);
17182 if (!SWIG_IsOK(ecode3)) {
17183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
17184 }
17185 arg3 = static_cast< int >(val3);
17186 ecode4 = SWIG_AsVal_int(obj3, &val4);
17187 if (!SWIG_IsOK(ecode4)) {
17188 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
17189 }
17190 arg4 = static_cast< int >(val4);
17191 ecode5 = SWIG_AsVal_int(obj4, &val5);
17192 if (!SWIG_IsOK(ecode5)) {
17193 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
17194 }
17195 arg5 = static_cast< int >(val5);
17196 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
17197 if (!SWIG_IsOK(res6)) {
17198 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
17199 }
17200 arg6 = reinterpret_cast< wxDC * >(argp6);
17201 ecode7 = SWIG_AsVal_int(obj6, &val7);
17202 if (!SWIG_IsOK(ecode7)) {
17203 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
17204 }
17205 arg7 = static_cast< int >(val7);
17206 ecode8 = SWIG_AsVal_int(obj7, &val8);
17207 if (!SWIG_IsOK(ecode8)) {
17208 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
17209 }
17210 arg8 = static_cast< int >(val8);
17211 if (obj8) {
17212 ecode9 = SWIG_AsVal_int(obj8, &val9);
17213 if (!SWIG_IsOK(ecode9)) {
17214 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
17215 }
17216 arg9 = static_cast< int >(val9);
17217 }
17218 if (obj9) {
17219 ecode10 = SWIG_AsVal_bool(obj9, &val10);
17220 if (!SWIG_IsOK(ecode10)) {
17221 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
17222 }
17223 arg10 = static_cast< bool >(val10);
17224 }
17225 if (obj10) {
17226 ecode11 = SWIG_AsVal_int(obj10, &val11);
17227 if (!SWIG_IsOK(ecode11)) {
17228 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
17229 }
17230 arg11 = static_cast< int >(val11);
17231 }
17232 if (obj11) {
17233 ecode12 = SWIG_AsVal_int(obj11, &val12);
17234 if (!SWIG_IsOK(ecode12)) {
17235 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
17236 }
17237 arg12 = static_cast< int >(val12);
17238 }
17239 {
17240 PyThreadState* __tstate = wxPyBeginAllowThreads();
17241 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
17242 wxPyEndAllowThreads(__tstate);
17243 if (PyErr_Occurred()) SWIG_fail;
17244 }
17245 {
17246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17247 }
17248 return resultobj;
17249 fail:
17250 return NULL;
17251 }
17252
17253
17254 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17255 PyObject *resultobj = 0;
17256 wxDC *arg1 = (wxDC *) 0 ;
17257 wxPoint *arg2 = 0 ;
17258 wxSize *arg3 = 0 ;
17259 wxDC *arg4 = (wxDC *) 0 ;
17260 wxPoint *arg5 = 0 ;
17261 int arg6 = (int) wxCOPY ;
17262 bool arg7 = (bool) false ;
17263 wxPoint const &arg8_defvalue = wxDefaultPosition ;
17264 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
17265 bool result;
17266 void *argp1 = 0 ;
17267 int res1 = 0 ;
17268 wxPoint temp2 ;
17269 wxSize temp3 ;
17270 void *argp4 = 0 ;
17271 int res4 = 0 ;
17272 wxPoint temp5 ;
17273 int val6 ;
17274 int ecode6 = 0 ;
17275 bool val7 ;
17276 int ecode7 = 0 ;
17277 wxPoint temp8 ;
17278 PyObject * obj0 = 0 ;
17279 PyObject * obj1 = 0 ;
17280 PyObject * obj2 = 0 ;
17281 PyObject * obj3 = 0 ;
17282 PyObject * obj4 = 0 ;
17283 PyObject * obj5 = 0 ;
17284 PyObject * obj6 = 0 ;
17285 PyObject * obj7 = 0 ;
17286 char * kwnames[] = {
17287 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
17288 };
17289
17290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17292 if (!SWIG_IsOK(res1)) {
17293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17294 }
17295 arg1 = reinterpret_cast< wxDC * >(argp1);
17296 {
17297 arg2 = &temp2;
17298 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17299 }
17300 {
17301 arg3 = &temp3;
17302 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17303 }
17304 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
17305 if (!SWIG_IsOK(res4)) {
17306 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
17307 }
17308 arg4 = reinterpret_cast< wxDC * >(argp4);
17309 {
17310 arg5 = &temp5;
17311 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17312 }
17313 if (obj5) {
17314 ecode6 = SWIG_AsVal_int(obj5, &val6);
17315 if (!SWIG_IsOK(ecode6)) {
17316 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
17317 }
17318 arg6 = static_cast< int >(val6);
17319 }
17320 if (obj6) {
17321 ecode7 = SWIG_AsVal_bool(obj6, &val7);
17322 if (!SWIG_IsOK(ecode7)) {
17323 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
17324 }
17325 arg7 = static_cast< bool >(val7);
17326 }
17327 if (obj7) {
17328 {
17329 arg8 = &temp8;
17330 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
17331 }
17332 }
17333 {
17334 PyThreadState* __tstate = wxPyBeginAllowThreads();
17335 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
17336 wxPyEndAllowThreads(__tstate);
17337 if (PyErr_Occurred()) SWIG_fail;
17338 }
17339 {
17340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17341 }
17342 return resultobj;
17343 fail:
17344 return NULL;
17345 }
17346
17347
17348 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17349 PyObject *resultobj = 0;
17350 wxDC *arg1 = (wxDC *) 0 ;
17351 int arg2 ;
17352 int arg3 ;
17353 int arg4 ;
17354 int arg5 ;
17355 void *argp1 = 0 ;
17356 int res1 = 0 ;
17357 int val2 ;
17358 int ecode2 = 0 ;
17359 int val3 ;
17360 int ecode3 = 0 ;
17361 int val4 ;
17362 int ecode4 = 0 ;
17363 int val5 ;
17364 int ecode5 = 0 ;
17365 PyObject * obj0 = 0 ;
17366 PyObject * obj1 = 0 ;
17367 PyObject * obj2 = 0 ;
17368 PyObject * obj3 = 0 ;
17369 PyObject * obj4 = 0 ;
17370 char * kwnames[] = {
17371 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17372 };
17373
17374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17376 if (!SWIG_IsOK(res1)) {
17377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17378 }
17379 arg1 = reinterpret_cast< wxDC * >(argp1);
17380 ecode2 = SWIG_AsVal_int(obj1, &val2);
17381 if (!SWIG_IsOK(ecode2)) {
17382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
17383 }
17384 arg2 = static_cast< int >(val2);
17385 ecode3 = SWIG_AsVal_int(obj2, &val3);
17386 if (!SWIG_IsOK(ecode3)) {
17387 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
17388 }
17389 arg3 = static_cast< int >(val3);
17390 ecode4 = SWIG_AsVal_int(obj3, &val4);
17391 if (!SWIG_IsOK(ecode4)) {
17392 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
17393 }
17394 arg4 = static_cast< int >(val4);
17395 ecode5 = SWIG_AsVal_int(obj4, &val5);
17396 if (!SWIG_IsOK(ecode5)) {
17397 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
17398 }
17399 arg5 = static_cast< int >(val5);
17400 {
17401 PyThreadState* __tstate = wxPyBeginAllowThreads();
17402 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
17403 wxPyEndAllowThreads(__tstate);
17404 if (PyErr_Occurred()) SWIG_fail;
17405 }
17406 resultobj = SWIG_Py_Void();
17407 return resultobj;
17408 fail:
17409 return NULL;
17410 }
17411
17412
17413 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17414 PyObject *resultobj = 0;
17415 wxDC *arg1 = (wxDC *) 0 ;
17416 wxPoint *arg2 = 0 ;
17417 wxSize *arg3 = 0 ;
17418 void *argp1 = 0 ;
17419 int res1 = 0 ;
17420 wxPoint temp2 ;
17421 wxSize temp3 ;
17422 PyObject * obj0 = 0 ;
17423 PyObject * obj1 = 0 ;
17424 PyObject * obj2 = 0 ;
17425 char * kwnames[] = {
17426 (char *) "self",(char *) "pt",(char *) "sz", NULL
17427 };
17428
17429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17431 if (!SWIG_IsOK(res1)) {
17432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17433 }
17434 arg1 = reinterpret_cast< wxDC * >(argp1);
17435 {
17436 arg2 = &temp2;
17437 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17438 }
17439 {
17440 arg3 = &temp3;
17441 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17442 }
17443 {
17444 PyThreadState* __tstate = wxPyBeginAllowThreads();
17445 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
17446 wxPyEndAllowThreads(__tstate);
17447 if (PyErr_Occurred()) SWIG_fail;
17448 }
17449 resultobj = SWIG_Py_Void();
17450 return resultobj;
17451 fail:
17452 return NULL;
17453 }
17454
17455
17456 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17457 PyObject *resultobj = 0;
17458 wxDC *arg1 = (wxDC *) 0 ;
17459 wxRegion *arg2 = 0 ;
17460 void *argp1 = 0 ;
17461 int res1 = 0 ;
17462 void *argp2 = 0 ;
17463 int res2 = 0 ;
17464 PyObject * obj0 = 0 ;
17465 PyObject * obj1 = 0 ;
17466 char * kwnames[] = {
17467 (char *) "self",(char *) "region", NULL
17468 };
17469
17470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
17471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17472 if (!SWIG_IsOK(res1)) {
17473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17474 }
17475 arg1 = reinterpret_cast< wxDC * >(argp1);
17476 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
17477 if (!SWIG_IsOK(res2)) {
17478 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
17479 }
17480 if (!argp2) {
17481 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
17482 }
17483 arg2 = reinterpret_cast< wxRegion * >(argp2);
17484 {
17485 PyThreadState* __tstate = wxPyBeginAllowThreads();
17486 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
17487 wxPyEndAllowThreads(__tstate);
17488 if (PyErr_Occurred()) SWIG_fail;
17489 }
17490 resultobj = SWIG_Py_Void();
17491 return resultobj;
17492 fail:
17493 return NULL;
17494 }
17495
17496
17497 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17498 PyObject *resultobj = 0;
17499 wxDC *arg1 = (wxDC *) 0 ;
17500 wxRect *arg2 = 0 ;
17501 void *argp1 = 0 ;
17502 int res1 = 0 ;
17503 wxRect temp2 ;
17504 PyObject * obj0 = 0 ;
17505 PyObject * obj1 = 0 ;
17506 char * kwnames[] = {
17507 (char *) "self",(char *) "rect", NULL
17508 };
17509
17510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
17511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17512 if (!SWIG_IsOK(res1)) {
17513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17514 }
17515 arg1 = reinterpret_cast< wxDC * >(argp1);
17516 {
17517 arg2 = &temp2;
17518 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17519 }
17520 {
17521 PyThreadState* __tstate = wxPyBeginAllowThreads();
17522 (arg1)->SetClippingRegion((wxRect const &)*arg2);
17523 wxPyEndAllowThreads(__tstate);
17524 if (PyErr_Occurred()) SWIG_fail;
17525 }
17526 resultobj = SWIG_Py_Void();
17527 return resultobj;
17528 fail:
17529 return NULL;
17530 }
17531
17532
17533 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17534 PyObject *resultobj = 0;
17535 wxDC *arg1 = (wxDC *) 0 ;
17536 int arg2 ;
17537 wxPoint *arg3 = (wxPoint *) 0 ;
17538 int arg4 = (int) 0 ;
17539 int arg5 = (int) 0 ;
17540 void *argp1 = 0 ;
17541 int res1 = 0 ;
17542 int val4 ;
17543 int ecode4 = 0 ;
17544 int val5 ;
17545 int ecode5 = 0 ;
17546 PyObject * obj0 = 0 ;
17547 PyObject * obj1 = 0 ;
17548 PyObject * obj2 = 0 ;
17549 PyObject * obj3 = 0 ;
17550 char * kwnames[] = {
17551 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
17552 };
17553
17554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17556 if (!SWIG_IsOK(res1)) {
17557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
17558 }
17559 arg1 = reinterpret_cast< wxDC * >(argp1);
17560 {
17561 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17562 if (arg3 == NULL) SWIG_fail;
17563 }
17564 if (obj2) {
17565 ecode4 = SWIG_AsVal_int(obj2, &val4);
17566 if (!SWIG_IsOK(ecode4)) {
17567 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
17568 }
17569 arg4 = static_cast< int >(val4);
17570 }
17571 if (obj3) {
17572 ecode5 = SWIG_AsVal_int(obj3, &val5);
17573 if (!SWIG_IsOK(ecode5)) {
17574 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
17575 }
17576 arg5 = static_cast< int >(val5);
17577 }
17578 {
17579 PyThreadState* __tstate = wxPyBeginAllowThreads();
17580 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
17581 wxPyEndAllowThreads(__tstate);
17582 if (PyErr_Occurred()) SWIG_fail;
17583 }
17584 resultobj = SWIG_Py_Void();
17585 {
17586 if (arg3) delete [] arg3;
17587 }
17588 return resultobj;
17589 fail:
17590 {
17591 if (arg3) delete [] arg3;
17592 }
17593 return NULL;
17594 }
17595
17596
17597 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17598 PyObject *resultobj = 0;
17599 wxDC *arg1 = (wxDC *) 0 ;
17600 int arg2 ;
17601 wxPoint *arg3 = (wxPoint *) 0 ;
17602 int arg4 = (int) 0 ;
17603 int arg5 = (int) 0 ;
17604 int arg6 = (int) wxODDEVEN_RULE ;
17605 void *argp1 = 0 ;
17606 int res1 = 0 ;
17607 int val4 ;
17608 int ecode4 = 0 ;
17609 int val5 ;
17610 int ecode5 = 0 ;
17611 int val6 ;
17612 int ecode6 = 0 ;
17613 PyObject * obj0 = 0 ;
17614 PyObject * obj1 = 0 ;
17615 PyObject * obj2 = 0 ;
17616 PyObject * obj3 = 0 ;
17617 PyObject * obj4 = 0 ;
17618 char * kwnames[] = {
17619 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
17620 };
17621
17622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17624 if (!SWIG_IsOK(res1)) {
17625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
17626 }
17627 arg1 = reinterpret_cast< wxDC * >(argp1);
17628 {
17629 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17630 if (arg3 == NULL) SWIG_fail;
17631 }
17632 if (obj2) {
17633 ecode4 = SWIG_AsVal_int(obj2, &val4);
17634 if (!SWIG_IsOK(ecode4)) {
17635 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
17636 }
17637 arg4 = static_cast< int >(val4);
17638 }
17639 if (obj3) {
17640 ecode5 = SWIG_AsVal_int(obj3, &val5);
17641 if (!SWIG_IsOK(ecode5)) {
17642 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
17643 }
17644 arg5 = static_cast< int >(val5);
17645 }
17646 if (obj4) {
17647 ecode6 = SWIG_AsVal_int(obj4, &val6);
17648 if (!SWIG_IsOK(ecode6)) {
17649 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
17650 }
17651 arg6 = static_cast< int >(val6);
17652 }
17653 {
17654 PyThreadState* __tstate = wxPyBeginAllowThreads();
17655 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
17656 wxPyEndAllowThreads(__tstate);
17657 if (PyErr_Occurred()) SWIG_fail;
17658 }
17659 resultobj = SWIG_Py_Void();
17660 {
17661 if (arg3) delete [] arg3;
17662 }
17663 return resultobj;
17664 fail:
17665 {
17666 if (arg3) delete [] arg3;
17667 }
17668 return NULL;
17669 }
17670
17671
17672 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17673 PyObject *resultobj = 0;
17674 wxDC *arg1 = (wxDC *) 0 ;
17675 wxString *arg2 = 0 ;
17676 wxRect *arg3 = 0 ;
17677 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17678 int arg5 = (int) -1 ;
17679 void *argp1 = 0 ;
17680 int res1 = 0 ;
17681 bool temp2 = false ;
17682 wxRect temp3 ;
17683 int val4 ;
17684 int ecode4 = 0 ;
17685 int val5 ;
17686 int ecode5 = 0 ;
17687 PyObject * obj0 = 0 ;
17688 PyObject * obj1 = 0 ;
17689 PyObject * obj2 = 0 ;
17690 PyObject * obj3 = 0 ;
17691 PyObject * obj4 = 0 ;
17692 char * kwnames[] = {
17693 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17694 };
17695
17696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17698 if (!SWIG_IsOK(res1)) {
17699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17700 }
17701 arg1 = reinterpret_cast< wxDC * >(argp1);
17702 {
17703 arg2 = wxString_in_helper(obj1);
17704 if (arg2 == NULL) SWIG_fail;
17705 temp2 = true;
17706 }
17707 {
17708 arg3 = &temp3;
17709 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17710 }
17711 if (obj3) {
17712 ecode4 = SWIG_AsVal_int(obj3, &val4);
17713 if (!SWIG_IsOK(ecode4)) {
17714 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17715 }
17716 arg4 = static_cast< int >(val4);
17717 }
17718 if (obj4) {
17719 ecode5 = SWIG_AsVal_int(obj4, &val5);
17720 if (!SWIG_IsOK(ecode5)) {
17721 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17722 }
17723 arg5 = static_cast< int >(val5);
17724 }
17725 {
17726 PyThreadState* __tstate = wxPyBeginAllowThreads();
17727 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
17728 wxPyEndAllowThreads(__tstate);
17729 if (PyErr_Occurred()) SWIG_fail;
17730 }
17731 resultobj = SWIG_Py_Void();
17732 {
17733 if (temp2)
17734 delete arg2;
17735 }
17736 return resultobj;
17737 fail:
17738 {
17739 if (temp2)
17740 delete arg2;
17741 }
17742 return NULL;
17743 }
17744
17745
17746 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17747 PyObject *resultobj = 0;
17748 wxDC *arg1 = (wxDC *) 0 ;
17749 wxString *arg2 = 0 ;
17750 wxBitmap *arg3 = 0 ;
17751 wxRect *arg4 = 0 ;
17752 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17753 int arg6 = (int) -1 ;
17754 wxRect result;
17755 void *argp1 = 0 ;
17756 int res1 = 0 ;
17757 bool temp2 = false ;
17758 void *argp3 = 0 ;
17759 int res3 = 0 ;
17760 wxRect temp4 ;
17761 int val5 ;
17762 int ecode5 = 0 ;
17763 int val6 ;
17764 int ecode6 = 0 ;
17765 PyObject * obj0 = 0 ;
17766 PyObject * obj1 = 0 ;
17767 PyObject * obj2 = 0 ;
17768 PyObject * obj3 = 0 ;
17769 PyObject * obj4 = 0 ;
17770 PyObject * obj5 = 0 ;
17771 char * kwnames[] = {
17772 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17773 };
17774
17775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17777 if (!SWIG_IsOK(res1)) {
17778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17779 }
17780 arg1 = reinterpret_cast< wxDC * >(argp1);
17781 {
17782 arg2 = wxString_in_helper(obj1);
17783 if (arg2 == NULL) SWIG_fail;
17784 temp2 = true;
17785 }
17786 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
17787 if (!SWIG_IsOK(res3)) {
17788 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17789 }
17790 if (!argp3) {
17791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17792 }
17793 arg3 = reinterpret_cast< wxBitmap * >(argp3);
17794 {
17795 arg4 = &temp4;
17796 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
17797 }
17798 if (obj4) {
17799 ecode5 = SWIG_AsVal_int(obj4, &val5);
17800 if (!SWIG_IsOK(ecode5)) {
17801 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17802 }
17803 arg5 = static_cast< int >(val5);
17804 }
17805 if (obj5) {
17806 ecode6 = SWIG_AsVal_int(obj5, &val6);
17807 if (!SWIG_IsOK(ecode6)) {
17808 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17809 }
17810 arg6 = static_cast< int >(val6);
17811 }
17812 {
17813 PyThreadState* __tstate = wxPyBeginAllowThreads();
17814 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
17815 wxPyEndAllowThreads(__tstate);
17816 if (PyErr_Occurred()) SWIG_fail;
17817 }
17818 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17819 {
17820 if (temp2)
17821 delete arg2;
17822 }
17823 return resultobj;
17824 fail:
17825 {
17826 if (temp2)
17827 delete arg2;
17828 }
17829 return NULL;
17830 }
17831
17832
17833 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17834 PyObject *resultobj = 0;
17835 wxDC *arg1 = (wxDC *) 0 ;
17836 int arg2 ;
17837 wxPoint *arg3 = (wxPoint *) 0 ;
17838 void *argp1 = 0 ;
17839 int res1 = 0 ;
17840 PyObject * obj0 = 0 ;
17841 PyObject * obj1 = 0 ;
17842 char * kwnames[] = {
17843 (char *) "self",(char *) "points", NULL
17844 };
17845
17846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
17847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17848 if (!SWIG_IsOK(res1)) {
17849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17850 }
17851 arg1 = reinterpret_cast< wxDC * >(argp1);
17852 {
17853 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17854 if (arg3 == NULL) SWIG_fail;
17855 }
17856 {
17857 PyThreadState* __tstate = wxPyBeginAllowThreads();
17858 (arg1)->DrawSpline(arg2,arg3);
17859 wxPyEndAllowThreads(__tstate);
17860 if (PyErr_Occurred()) SWIG_fail;
17861 }
17862 resultobj = SWIG_Py_Void();
17863 {
17864 if (arg3) delete [] arg3;
17865 }
17866 return resultobj;
17867 fail:
17868 {
17869 if (arg3) delete [] arg3;
17870 }
17871 return NULL;
17872 }
17873
17874
17875 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17876 PyObject *resultobj = 0;
17877 wxDC *arg1 = (wxDC *) 0 ;
17878 void *argp1 = 0 ;
17879 int res1 = 0 ;
17880 PyObject *swig_obj[1] ;
17881
17882 if (!args) SWIG_fail;
17883 swig_obj[0] = args;
17884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17885 if (!SWIG_IsOK(res1)) {
17886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17887 }
17888 arg1 = reinterpret_cast< wxDC * >(argp1);
17889 {
17890 PyThreadState* __tstate = wxPyBeginAllowThreads();
17891 (arg1)->Clear();
17892 wxPyEndAllowThreads(__tstate);
17893 if (PyErr_Occurred()) SWIG_fail;
17894 }
17895 resultobj = SWIG_Py_Void();
17896 return resultobj;
17897 fail:
17898 return NULL;
17899 }
17900
17901
17902 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17903 PyObject *resultobj = 0;
17904 wxDC *arg1 = (wxDC *) 0 ;
17905 wxString *arg2 = 0 ;
17906 bool result;
17907 void *argp1 = 0 ;
17908 int res1 = 0 ;
17909 bool temp2 = false ;
17910 PyObject * obj0 = 0 ;
17911 PyObject * obj1 = 0 ;
17912 char * kwnames[] = {
17913 (char *) "self",(char *) "message", NULL
17914 };
17915
17916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
17917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17918 if (!SWIG_IsOK(res1)) {
17919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17920 }
17921 arg1 = reinterpret_cast< wxDC * >(argp1);
17922 {
17923 arg2 = wxString_in_helper(obj1);
17924 if (arg2 == NULL) SWIG_fail;
17925 temp2 = true;
17926 }
17927 {
17928 PyThreadState* __tstate = wxPyBeginAllowThreads();
17929 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
17930 wxPyEndAllowThreads(__tstate);
17931 if (PyErr_Occurred()) SWIG_fail;
17932 }
17933 {
17934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17935 }
17936 {
17937 if (temp2)
17938 delete arg2;
17939 }
17940 return resultobj;
17941 fail:
17942 {
17943 if (temp2)
17944 delete arg2;
17945 }
17946 return NULL;
17947 }
17948
17949
17950 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17951 PyObject *resultobj = 0;
17952 wxDC *arg1 = (wxDC *) 0 ;
17953 void *argp1 = 0 ;
17954 int res1 = 0 ;
17955 PyObject *swig_obj[1] ;
17956
17957 if (!args) SWIG_fail;
17958 swig_obj[0] = args;
17959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17960 if (!SWIG_IsOK(res1)) {
17961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17962 }
17963 arg1 = reinterpret_cast< wxDC * >(argp1);
17964 {
17965 PyThreadState* __tstate = wxPyBeginAllowThreads();
17966 (arg1)->EndDoc();
17967 wxPyEndAllowThreads(__tstate);
17968 if (PyErr_Occurred()) SWIG_fail;
17969 }
17970 resultobj = SWIG_Py_Void();
17971 return resultobj;
17972 fail:
17973 return NULL;
17974 }
17975
17976
17977 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17978 PyObject *resultobj = 0;
17979 wxDC *arg1 = (wxDC *) 0 ;
17980 void *argp1 = 0 ;
17981 int res1 = 0 ;
17982 PyObject *swig_obj[1] ;
17983
17984 if (!args) SWIG_fail;
17985 swig_obj[0] = args;
17986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17987 if (!SWIG_IsOK(res1)) {
17988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
17989 }
17990 arg1 = reinterpret_cast< wxDC * >(argp1);
17991 {
17992 PyThreadState* __tstate = wxPyBeginAllowThreads();
17993 (arg1)->StartPage();
17994 wxPyEndAllowThreads(__tstate);
17995 if (PyErr_Occurred()) SWIG_fail;
17996 }
17997 resultobj = SWIG_Py_Void();
17998 return resultobj;
17999 fail:
18000 return NULL;
18001 }
18002
18003
18004 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18005 PyObject *resultobj = 0;
18006 wxDC *arg1 = (wxDC *) 0 ;
18007 void *argp1 = 0 ;
18008 int res1 = 0 ;
18009 PyObject *swig_obj[1] ;
18010
18011 if (!args) SWIG_fail;
18012 swig_obj[0] = args;
18013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18014 if (!SWIG_IsOK(res1)) {
18015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
18016 }
18017 arg1 = reinterpret_cast< wxDC * >(argp1);
18018 {
18019 PyThreadState* __tstate = wxPyBeginAllowThreads();
18020 (arg1)->EndPage();
18021 wxPyEndAllowThreads(__tstate);
18022 if (PyErr_Occurred()) SWIG_fail;
18023 }
18024 resultobj = SWIG_Py_Void();
18025 return resultobj;
18026 fail:
18027 return NULL;
18028 }
18029
18030
18031 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18032 PyObject *resultobj = 0;
18033 wxDC *arg1 = (wxDC *) 0 ;
18034 wxFont *arg2 = 0 ;
18035 void *argp1 = 0 ;
18036 int res1 = 0 ;
18037 void *argp2 = 0 ;
18038 int res2 = 0 ;
18039 PyObject * obj0 = 0 ;
18040 PyObject * obj1 = 0 ;
18041 char * kwnames[] = {
18042 (char *) "self",(char *) "font", NULL
18043 };
18044
18045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
18046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18047 if (!SWIG_IsOK(res1)) {
18048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
18049 }
18050 arg1 = reinterpret_cast< wxDC * >(argp1);
18051 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
18052 if (!SWIG_IsOK(res2)) {
18053 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
18054 }
18055 if (!argp2) {
18056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
18057 }
18058 arg2 = reinterpret_cast< wxFont * >(argp2);
18059 {
18060 PyThreadState* __tstate = wxPyBeginAllowThreads();
18061 (arg1)->SetFont((wxFont const &)*arg2);
18062 wxPyEndAllowThreads(__tstate);
18063 if (PyErr_Occurred()) SWIG_fail;
18064 }
18065 resultobj = SWIG_Py_Void();
18066 return resultobj;
18067 fail:
18068 return NULL;
18069 }
18070
18071
18072 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18073 PyObject *resultobj = 0;
18074 wxDC *arg1 = (wxDC *) 0 ;
18075 wxPen *arg2 = 0 ;
18076 void *argp1 = 0 ;
18077 int res1 = 0 ;
18078 void *argp2 = 0 ;
18079 int res2 = 0 ;
18080 PyObject * obj0 = 0 ;
18081 PyObject * obj1 = 0 ;
18082 char * kwnames[] = {
18083 (char *) "self",(char *) "pen", NULL
18084 };
18085
18086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
18087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18088 if (!SWIG_IsOK(res1)) {
18089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
18090 }
18091 arg1 = reinterpret_cast< wxDC * >(argp1);
18092 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
18093 if (!SWIG_IsOK(res2)) {
18094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
18095 }
18096 if (!argp2) {
18097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
18098 }
18099 arg2 = reinterpret_cast< wxPen * >(argp2);
18100 {
18101 PyThreadState* __tstate = wxPyBeginAllowThreads();
18102 (arg1)->SetPen((wxPen const &)*arg2);
18103 wxPyEndAllowThreads(__tstate);
18104 if (PyErr_Occurred()) SWIG_fail;
18105 }
18106 resultobj = SWIG_Py_Void();
18107 return resultobj;
18108 fail:
18109 return NULL;
18110 }
18111
18112
18113 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18114 PyObject *resultobj = 0;
18115 wxDC *arg1 = (wxDC *) 0 ;
18116 wxBrush *arg2 = 0 ;
18117 void *argp1 = 0 ;
18118 int res1 = 0 ;
18119 void *argp2 = 0 ;
18120 int res2 = 0 ;
18121 PyObject * obj0 = 0 ;
18122 PyObject * obj1 = 0 ;
18123 char * kwnames[] = {
18124 (char *) "self",(char *) "brush", NULL
18125 };
18126
18127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
18128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18129 if (!SWIG_IsOK(res1)) {
18130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
18131 }
18132 arg1 = reinterpret_cast< wxDC * >(argp1);
18133 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
18134 if (!SWIG_IsOK(res2)) {
18135 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
18136 }
18137 if (!argp2) {
18138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
18139 }
18140 arg2 = reinterpret_cast< wxBrush * >(argp2);
18141 {
18142 PyThreadState* __tstate = wxPyBeginAllowThreads();
18143 (arg1)->SetBrush((wxBrush const &)*arg2);
18144 wxPyEndAllowThreads(__tstate);
18145 if (PyErr_Occurred()) SWIG_fail;
18146 }
18147 resultobj = SWIG_Py_Void();
18148 return resultobj;
18149 fail:
18150 return NULL;
18151 }
18152
18153
18154 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18155 PyObject *resultobj = 0;
18156 wxDC *arg1 = (wxDC *) 0 ;
18157 wxBrush *arg2 = 0 ;
18158 void *argp1 = 0 ;
18159 int res1 = 0 ;
18160 void *argp2 = 0 ;
18161 int res2 = 0 ;
18162 PyObject * obj0 = 0 ;
18163 PyObject * obj1 = 0 ;
18164 char * kwnames[] = {
18165 (char *) "self",(char *) "brush", NULL
18166 };
18167
18168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
18169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18170 if (!SWIG_IsOK(res1)) {
18171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
18172 }
18173 arg1 = reinterpret_cast< wxDC * >(argp1);
18174 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
18175 if (!SWIG_IsOK(res2)) {
18176 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
18177 }
18178 if (!argp2) {
18179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
18180 }
18181 arg2 = reinterpret_cast< wxBrush * >(argp2);
18182 {
18183 PyThreadState* __tstate = wxPyBeginAllowThreads();
18184 (arg1)->SetBackground((wxBrush const &)*arg2);
18185 wxPyEndAllowThreads(__tstate);
18186 if (PyErr_Occurred()) SWIG_fail;
18187 }
18188 resultobj = SWIG_Py_Void();
18189 return resultobj;
18190 fail:
18191 return NULL;
18192 }
18193
18194
18195 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18196 PyObject *resultobj = 0;
18197 wxDC *arg1 = (wxDC *) 0 ;
18198 int arg2 ;
18199 void *argp1 = 0 ;
18200 int res1 = 0 ;
18201 int val2 ;
18202 int ecode2 = 0 ;
18203 PyObject * obj0 = 0 ;
18204 PyObject * obj1 = 0 ;
18205 char * kwnames[] = {
18206 (char *) "self",(char *) "mode", NULL
18207 };
18208
18209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
18210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18211 if (!SWIG_IsOK(res1)) {
18212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
18213 }
18214 arg1 = reinterpret_cast< wxDC * >(argp1);
18215 ecode2 = SWIG_AsVal_int(obj1, &val2);
18216 if (!SWIG_IsOK(ecode2)) {
18217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
18218 }
18219 arg2 = static_cast< int >(val2);
18220 {
18221 PyThreadState* __tstate = wxPyBeginAllowThreads();
18222 (arg1)->SetBackgroundMode(arg2);
18223 wxPyEndAllowThreads(__tstate);
18224 if (PyErr_Occurred()) SWIG_fail;
18225 }
18226 resultobj = SWIG_Py_Void();
18227 return resultobj;
18228 fail:
18229 return NULL;
18230 }
18231
18232
18233 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18234 PyObject *resultobj = 0;
18235 wxDC *arg1 = (wxDC *) 0 ;
18236 wxPalette *arg2 = 0 ;
18237 void *argp1 = 0 ;
18238 int res1 = 0 ;
18239 void *argp2 = 0 ;
18240 int res2 = 0 ;
18241 PyObject * obj0 = 0 ;
18242 PyObject * obj1 = 0 ;
18243 char * kwnames[] = {
18244 (char *) "self",(char *) "palette", NULL
18245 };
18246
18247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
18248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18249 if (!SWIG_IsOK(res1)) {
18250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
18251 }
18252 arg1 = reinterpret_cast< wxDC * >(argp1);
18253 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
18254 if (!SWIG_IsOK(res2)) {
18255 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
18256 }
18257 if (!argp2) {
18258 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
18259 }
18260 arg2 = reinterpret_cast< wxPalette * >(argp2);
18261 {
18262 PyThreadState* __tstate = wxPyBeginAllowThreads();
18263 (arg1)->SetPalette((wxPalette const &)*arg2);
18264 wxPyEndAllowThreads(__tstate);
18265 if (PyErr_Occurred()) SWIG_fail;
18266 }
18267 resultobj = SWIG_Py_Void();
18268 return resultobj;
18269 fail:
18270 return NULL;
18271 }
18272
18273
18274 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18275 PyObject *resultobj = 0;
18276 wxDC *arg1 = (wxDC *) 0 ;
18277 void *argp1 = 0 ;
18278 int res1 = 0 ;
18279 PyObject *swig_obj[1] ;
18280
18281 if (!args) SWIG_fail;
18282 swig_obj[0] = args;
18283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18284 if (!SWIG_IsOK(res1)) {
18285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
18286 }
18287 arg1 = reinterpret_cast< wxDC * >(argp1);
18288 {
18289 PyThreadState* __tstate = wxPyBeginAllowThreads();
18290 (arg1)->DestroyClippingRegion();
18291 wxPyEndAllowThreads(__tstate);
18292 if (PyErr_Occurred()) SWIG_fail;
18293 }
18294 resultobj = SWIG_Py_Void();
18295 return resultobj;
18296 fail:
18297 return NULL;
18298 }
18299
18300
18301 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18302 PyObject *resultobj = 0;
18303 wxDC *arg1 = (wxDC *) 0 ;
18304 int *arg2 = (int *) 0 ;
18305 int *arg3 = (int *) 0 ;
18306 int *arg4 = (int *) 0 ;
18307 int *arg5 = (int *) 0 ;
18308 void *argp1 = 0 ;
18309 int res1 = 0 ;
18310 int temp2 ;
18311 int res2 = SWIG_TMPOBJ ;
18312 int temp3 ;
18313 int res3 = SWIG_TMPOBJ ;
18314 int temp4 ;
18315 int res4 = SWIG_TMPOBJ ;
18316 int temp5 ;
18317 int res5 = SWIG_TMPOBJ ;
18318 PyObject *swig_obj[1] ;
18319
18320 arg2 = &temp2;
18321 arg3 = &temp3;
18322 arg4 = &temp4;
18323 arg5 = &temp5;
18324 if (!args) SWIG_fail;
18325 swig_obj[0] = args;
18326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18327 if (!SWIG_IsOK(res1)) {
18328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
18329 }
18330 arg1 = reinterpret_cast< wxDC * >(argp1);
18331 {
18332 PyThreadState* __tstate = wxPyBeginAllowThreads();
18333 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
18334 wxPyEndAllowThreads(__tstate);
18335 if (PyErr_Occurred()) SWIG_fail;
18336 }
18337 resultobj = SWIG_Py_Void();
18338 if (SWIG_IsTmpObj(res2)) {
18339 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18340 } else {
18341 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18342 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18343 }
18344 if (SWIG_IsTmpObj(res3)) {
18345 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18346 } else {
18347 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18348 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18349 }
18350 if (SWIG_IsTmpObj(res4)) {
18351 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18352 } else {
18353 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18354 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18355 }
18356 if (SWIG_IsTmpObj(res5)) {
18357 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18358 } else {
18359 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18360 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18361 }
18362 return resultobj;
18363 fail:
18364 return NULL;
18365 }
18366
18367
18368 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18369 PyObject *resultobj = 0;
18370 wxDC *arg1 = (wxDC *) 0 ;
18371 wxRect result;
18372 void *argp1 = 0 ;
18373 int res1 = 0 ;
18374 PyObject *swig_obj[1] ;
18375
18376 if (!args) SWIG_fail;
18377 swig_obj[0] = args;
18378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18379 if (!SWIG_IsOK(res1)) {
18380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
18381 }
18382 arg1 = reinterpret_cast< wxDC * >(argp1);
18383 {
18384 PyThreadState* __tstate = wxPyBeginAllowThreads();
18385 result = wxDC_GetClippingRect(arg1);
18386 wxPyEndAllowThreads(__tstate);
18387 if (PyErr_Occurred()) SWIG_fail;
18388 }
18389 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
18390 return resultobj;
18391 fail:
18392 return NULL;
18393 }
18394
18395
18396 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18397 PyObject *resultobj = 0;
18398 wxDC *arg1 = (wxDC *) 0 ;
18399 int result;
18400 void *argp1 = 0 ;
18401 int res1 = 0 ;
18402 PyObject *swig_obj[1] ;
18403
18404 if (!args) SWIG_fail;
18405 swig_obj[0] = args;
18406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18407 if (!SWIG_IsOK(res1)) {
18408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
18409 }
18410 arg1 = reinterpret_cast< wxDC * >(argp1);
18411 {
18412 PyThreadState* __tstate = wxPyBeginAllowThreads();
18413 result = (int)((wxDC const *)arg1)->GetCharHeight();
18414 wxPyEndAllowThreads(__tstate);
18415 if (PyErr_Occurred()) SWIG_fail;
18416 }
18417 resultobj = SWIG_From_int(static_cast< int >(result));
18418 return resultobj;
18419 fail:
18420 return NULL;
18421 }
18422
18423
18424 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18425 PyObject *resultobj = 0;
18426 wxDC *arg1 = (wxDC *) 0 ;
18427 int result;
18428 void *argp1 = 0 ;
18429 int res1 = 0 ;
18430 PyObject *swig_obj[1] ;
18431
18432 if (!args) SWIG_fail;
18433 swig_obj[0] = args;
18434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18435 if (!SWIG_IsOK(res1)) {
18436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
18437 }
18438 arg1 = reinterpret_cast< wxDC * >(argp1);
18439 {
18440 PyThreadState* __tstate = wxPyBeginAllowThreads();
18441 result = (int)((wxDC const *)arg1)->GetCharWidth();
18442 wxPyEndAllowThreads(__tstate);
18443 if (PyErr_Occurred()) SWIG_fail;
18444 }
18445 resultobj = SWIG_From_int(static_cast< int >(result));
18446 return resultobj;
18447 fail:
18448 return NULL;
18449 }
18450
18451
18452 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18453 PyObject *resultobj = 0;
18454 wxDC *arg1 = (wxDC *) 0 ;
18455 wxString *arg2 = 0 ;
18456 int *arg3 = (int *) 0 ;
18457 int *arg4 = (int *) 0 ;
18458 void *argp1 = 0 ;
18459 int res1 = 0 ;
18460 bool temp2 = false ;
18461 int temp3 ;
18462 int res3 = SWIG_TMPOBJ ;
18463 int temp4 ;
18464 int res4 = SWIG_TMPOBJ ;
18465 PyObject * obj0 = 0 ;
18466 PyObject * obj1 = 0 ;
18467 char * kwnames[] = {
18468 (char *) "self",(char *) "string", NULL
18469 };
18470
18471 arg3 = &temp3;
18472 arg4 = &temp4;
18473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
18474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18475 if (!SWIG_IsOK(res1)) {
18476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18477 }
18478 arg1 = reinterpret_cast< wxDC * >(argp1);
18479 {
18480 arg2 = wxString_in_helper(obj1);
18481 if (arg2 == NULL) SWIG_fail;
18482 temp2 = true;
18483 }
18484 {
18485 PyThreadState* __tstate = wxPyBeginAllowThreads();
18486 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
18487 wxPyEndAllowThreads(__tstate);
18488 if (PyErr_Occurred()) SWIG_fail;
18489 }
18490 resultobj = SWIG_Py_Void();
18491 if (SWIG_IsTmpObj(res3)) {
18492 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18493 } else {
18494 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18495 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18496 }
18497 if (SWIG_IsTmpObj(res4)) {
18498 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18499 } else {
18500 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18501 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18502 }
18503 {
18504 if (temp2)
18505 delete arg2;
18506 }
18507 return resultobj;
18508 fail:
18509 {
18510 if (temp2)
18511 delete arg2;
18512 }
18513 return NULL;
18514 }
18515
18516
18517 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18518 PyObject *resultobj = 0;
18519 wxDC *arg1 = (wxDC *) 0 ;
18520 wxString *arg2 = 0 ;
18521 int *arg3 = (int *) 0 ;
18522 int *arg4 = (int *) 0 ;
18523 int *arg5 = (int *) 0 ;
18524 int *arg6 = (int *) 0 ;
18525 wxFont *arg7 = (wxFont *) NULL ;
18526 void *argp1 = 0 ;
18527 int res1 = 0 ;
18528 bool temp2 = false ;
18529 int temp3 ;
18530 int res3 = SWIG_TMPOBJ ;
18531 int temp4 ;
18532 int res4 = SWIG_TMPOBJ ;
18533 int temp5 ;
18534 int res5 = SWIG_TMPOBJ ;
18535 int temp6 ;
18536 int res6 = SWIG_TMPOBJ ;
18537 void *argp7 = 0 ;
18538 int res7 = 0 ;
18539 PyObject * obj0 = 0 ;
18540 PyObject * obj1 = 0 ;
18541 PyObject * obj2 = 0 ;
18542 char * kwnames[] = {
18543 (char *) "self",(char *) "string",(char *) "font", NULL
18544 };
18545
18546 arg3 = &temp3;
18547 arg4 = &temp4;
18548 arg5 = &temp5;
18549 arg6 = &temp6;
18550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18552 if (!SWIG_IsOK(res1)) {
18553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18554 }
18555 arg1 = reinterpret_cast< wxDC * >(argp1);
18556 {
18557 arg2 = wxString_in_helper(obj1);
18558 if (arg2 == NULL) SWIG_fail;
18559 temp2 = true;
18560 }
18561 if (obj2) {
18562 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
18563 if (!SWIG_IsOK(res7)) {
18564 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
18565 }
18566 arg7 = reinterpret_cast< wxFont * >(argp7);
18567 }
18568 {
18569 PyThreadState* __tstate = wxPyBeginAllowThreads();
18570 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
18571 wxPyEndAllowThreads(__tstate);
18572 if (PyErr_Occurred()) SWIG_fail;
18573 }
18574 resultobj = SWIG_Py_Void();
18575 if (SWIG_IsTmpObj(res3)) {
18576 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18577 } else {
18578 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18579 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18580 }
18581 if (SWIG_IsTmpObj(res4)) {
18582 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18583 } else {
18584 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18585 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18586 }
18587 if (SWIG_IsTmpObj(res5)) {
18588 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18589 } else {
18590 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18591 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18592 }
18593 if (SWIG_IsTmpObj(res6)) {
18594 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
18595 } else {
18596 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18597 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
18598 }
18599 {
18600 if (temp2)
18601 delete arg2;
18602 }
18603 return resultobj;
18604 fail:
18605 {
18606 if (temp2)
18607 delete arg2;
18608 }
18609 return NULL;
18610 }
18611
18612
18613 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18614 PyObject *resultobj = 0;
18615 wxDC *arg1 = (wxDC *) 0 ;
18616 wxString *arg2 = 0 ;
18617 int *arg3 = (int *) 0 ;
18618 int *arg4 = (int *) 0 ;
18619 int *arg5 = (int *) 0 ;
18620 wxFont *arg6 = (wxFont *) NULL ;
18621 void *argp1 = 0 ;
18622 int res1 = 0 ;
18623 bool temp2 = false ;
18624 int temp3 ;
18625 int res3 = SWIG_TMPOBJ ;
18626 int temp4 ;
18627 int res4 = SWIG_TMPOBJ ;
18628 int temp5 ;
18629 int res5 = SWIG_TMPOBJ ;
18630 void *argp6 = 0 ;
18631 int res6 = 0 ;
18632 PyObject * obj0 = 0 ;
18633 PyObject * obj1 = 0 ;
18634 PyObject * obj2 = 0 ;
18635 char * kwnames[] = {
18636 (char *) "self",(char *) "text",(char *) "font", NULL
18637 };
18638
18639 arg3 = &temp3;
18640 arg4 = &temp4;
18641 arg5 = &temp5;
18642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18644 if (!SWIG_IsOK(res1)) {
18645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18646 }
18647 arg1 = reinterpret_cast< wxDC * >(argp1);
18648 {
18649 arg2 = wxString_in_helper(obj1);
18650 if (arg2 == NULL) SWIG_fail;
18651 temp2 = true;
18652 }
18653 if (obj2) {
18654 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
18655 if (!SWIG_IsOK(res6)) {
18656 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
18657 }
18658 arg6 = reinterpret_cast< wxFont * >(argp6);
18659 }
18660 {
18661 PyThreadState* __tstate = wxPyBeginAllowThreads();
18662 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
18663 wxPyEndAllowThreads(__tstate);
18664 if (PyErr_Occurred()) SWIG_fail;
18665 }
18666 resultobj = SWIG_Py_Void();
18667 if (SWIG_IsTmpObj(res3)) {
18668 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18669 } else {
18670 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18671 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18672 }
18673 if (SWIG_IsTmpObj(res4)) {
18674 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18675 } else {
18676 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18677 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18678 }
18679 if (SWIG_IsTmpObj(res5)) {
18680 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18681 } else {
18682 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18683 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18684 }
18685 {
18686 if (temp2)
18687 delete arg2;
18688 }
18689 return resultobj;
18690 fail:
18691 {
18692 if (temp2)
18693 delete arg2;
18694 }
18695 return NULL;
18696 }
18697
18698
18699 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18700 PyObject *resultobj = 0;
18701 wxDC *arg1 = (wxDC *) 0 ;
18702 wxString *arg2 = 0 ;
18703 wxArrayInt result;
18704 void *argp1 = 0 ;
18705 int res1 = 0 ;
18706 bool temp2 = false ;
18707 PyObject * obj0 = 0 ;
18708 PyObject * obj1 = 0 ;
18709 char * kwnames[] = {
18710 (char *) "self",(char *) "text", NULL
18711 };
18712
18713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
18714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18715 if (!SWIG_IsOK(res1)) {
18716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18717 }
18718 arg1 = reinterpret_cast< wxDC * >(argp1);
18719 {
18720 arg2 = wxString_in_helper(obj1);
18721 if (arg2 == NULL) SWIG_fail;
18722 temp2 = true;
18723 }
18724 {
18725 PyThreadState* __tstate = wxPyBeginAllowThreads();
18726 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
18727 wxPyEndAllowThreads(__tstate);
18728 if (PyErr_Occurred()) SWIG_fail;
18729 }
18730 {
18731 resultobj = PyList_New(0);
18732 size_t idx;
18733 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
18734 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
18735 PyList_Append(resultobj, val);
18736 Py_DECREF(val);
18737 }
18738 }
18739 {
18740 if (temp2)
18741 delete arg2;
18742 }
18743 return resultobj;
18744 fail:
18745 {
18746 if (temp2)
18747 delete arg2;
18748 }
18749 return NULL;
18750 }
18751
18752
18753 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18754 PyObject *resultobj = 0;
18755 wxDC *arg1 = (wxDC *) 0 ;
18756 wxSize result;
18757 void *argp1 = 0 ;
18758 int res1 = 0 ;
18759 PyObject *swig_obj[1] ;
18760
18761 if (!args) SWIG_fail;
18762 swig_obj[0] = args;
18763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18764 if (!SWIG_IsOK(res1)) {
18765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18766 }
18767 arg1 = reinterpret_cast< wxDC * >(argp1);
18768 {
18769 PyThreadState* __tstate = wxPyBeginAllowThreads();
18770 result = (arg1)->GetSize();
18771 wxPyEndAllowThreads(__tstate);
18772 if (PyErr_Occurred()) SWIG_fail;
18773 }
18774 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18775 return resultobj;
18776 fail:
18777 return NULL;
18778 }
18779
18780
18781 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18782 PyObject *resultobj = 0;
18783 wxDC *arg1 = (wxDC *) 0 ;
18784 int *arg2 = (int *) 0 ;
18785 int *arg3 = (int *) 0 ;
18786 void *argp1 = 0 ;
18787 int res1 = 0 ;
18788 int temp2 ;
18789 int res2 = SWIG_TMPOBJ ;
18790 int temp3 ;
18791 int res3 = SWIG_TMPOBJ ;
18792 PyObject *swig_obj[1] ;
18793
18794 arg2 = &temp2;
18795 arg3 = &temp3;
18796 if (!args) SWIG_fail;
18797 swig_obj[0] = args;
18798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18799 if (!SWIG_IsOK(res1)) {
18800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18801 }
18802 arg1 = reinterpret_cast< wxDC * >(argp1);
18803 {
18804 PyThreadState* __tstate = wxPyBeginAllowThreads();
18805 (arg1)->GetSize(arg2,arg3);
18806 wxPyEndAllowThreads(__tstate);
18807 if (PyErr_Occurred()) SWIG_fail;
18808 }
18809 resultobj = SWIG_Py_Void();
18810 if (SWIG_IsTmpObj(res2)) {
18811 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18812 } else {
18813 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18814 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18815 }
18816 if (SWIG_IsTmpObj(res3)) {
18817 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18818 } else {
18819 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18820 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18821 }
18822 return resultobj;
18823 fail:
18824 return NULL;
18825 }
18826
18827
18828 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18829 PyObject *resultobj = 0;
18830 wxDC *arg1 = (wxDC *) 0 ;
18831 wxSize result;
18832 void *argp1 = 0 ;
18833 int res1 = 0 ;
18834 PyObject *swig_obj[1] ;
18835
18836 if (!args) SWIG_fail;
18837 swig_obj[0] = args;
18838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18839 if (!SWIG_IsOK(res1)) {
18840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18841 }
18842 arg1 = reinterpret_cast< wxDC * >(argp1);
18843 {
18844 PyThreadState* __tstate = wxPyBeginAllowThreads();
18845 result = ((wxDC const *)arg1)->GetSizeMM();
18846 wxPyEndAllowThreads(__tstate);
18847 if (PyErr_Occurred()) SWIG_fail;
18848 }
18849 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18850 return resultobj;
18851 fail:
18852 return NULL;
18853 }
18854
18855
18856 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18857 PyObject *resultobj = 0;
18858 wxDC *arg1 = (wxDC *) 0 ;
18859 int *arg2 = (int *) 0 ;
18860 int *arg3 = (int *) 0 ;
18861 void *argp1 = 0 ;
18862 int res1 = 0 ;
18863 int temp2 ;
18864 int res2 = SWIG_TMPOBJ ;
18865 int temp3 ;
18866 int res3 = SWIG_TMPOBJ ;
18867 PyObject *swig_obj[1] ;
18868
18869 arg2 = &temp2;
18870 arg3 = &temp3;
18871 if (!args) SWIG_fail;
18872 swig_obj[0] = args;
18873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18874 if (!SWIG_IsOK(res1)) {
18875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18876 }
18877 arg1 = reinterpret_cast< wxDC * >(argp1);
18878 {
18879 PyThreadState* __tstate = wxPyBeginAllowThreads();
18880 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
18881 wxPyEndAllowThreads(__tstate);
18882 if (PyErr_Occurred()) SWIG_fail;
18883 }
18884 resultobj = SWIG_Py_Void();
18885 if (SWIG_IsTmpObj(res2)) {
18886 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18887 } else {
18888 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18889 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18890 }
18891 if (SWIG_IsTmpObj(res3)) {
18892 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18893 } else {
18894 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18895 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18896 }
18897 return resultobj;
18898 fail:
18899 return NULL;
18900 }
18901
18902
18903 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18904 PyObject *resultobj = 0;
18905 wxDC *arg1 = (wxDC *) 0 ;
18906 int arg2 ;
18907 int result;
18908 void *argp1 = 0 ;
18909 int res1 = 0 ;
18910 int val2 ;
18911 int ecode2 = 0 ;
18912 PyObject * obj0 = 0 ;
18913 PyObject * obj1 = 0 ;
18914 char * kwnames[] = {
18915 (char *) "self",(char *) "x", NULL
18916 };
18917
18918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
18919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18920 if (!SWIG_IsOK(res1)) {
18921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
18922 }
18923 arg1 = reinterpret_cast< wxDC * >(argp1);
18924 ecode2 = SWIG_AsVal_int(obj1, &val2);
18925 if (!SWIG_IsOK(ecode2)) {
18926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
18927 }
18928 arg2 = static_cast< int >(val2);
18929 {
18930 PyThreadState* __tstate = wxPyBeginAllowThreads();
18931 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
18932 wxPyEndAllowThreads(__tstate);
18933 if (PyErr_Occurred()) SWIG_fail;
18934 }
18935 resultobj = SWIG_From_int(static_cast< int >(result));
18936 return resultobj;
18937 fail:
18938 return NULL;
18939 }
18940
18941
18942 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18943 PyObject *resultobj = 0;
18944 wxDC *arg1 = (wxDC *) 0 ;
18945 int arg2 ;
18946 int result;
18947 void *argp1 = 0 ;
18948 int res1 = 0 ;
18949 int val2 ;
18950 int ecode2 = 0 ;
18951 PyObject * obj0 = 0 ;
18952 PyObject * obj1 = 0 ;
18953 char * kwnames[] = {
18954 (char *) "self",(char *) "y", NULL
18955 };
18956
18957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
18958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18959 if (!SWIG_IsOK(res1)) {
18960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
18961 }
18962 arg1 = reinterpret_cast< wxDC * >(argp1);
18963 ecode2 = SWIG_AsVal_int(obj1, &val2);
18964 if (!SWIG_IsOK(ecode2)) {
18965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
18966 }
18967 arg2 = static_cast< int >(val2);
18968 {
18969 PyThreadState* __tstate = wxPyBeginAllowThreads();
18970 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
18971 wxPyEndAllowThreads(__tstate);
18972 if (PyErr_Occurred()) SWIG_fail;
18973 }
18974 resultobj = SWIG_From_int(static_cast< int >(result));
18975 return resultobj;
18976 fail:
18977 return NULL;
18978 }
18979
18980
18981 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18982 PyObject *resultobj = 0;
18983 wxDC *arg1 = (wxDC *) 0 ;
18984 int arg2 ;
18985 int result;
18986 void *argp1 = 0 ;
18987 int res1 = 0 ;
18988 int val2 ;
18989 int ecode2 = 0 ;
18990 PyObject * obj0 = 0 ;
18991 PyObject * obj1 = 0 ;
18992 char * kwnames[] = {
18993 (char *) "self",(char *) "x", NULL
18994 };
18995
18996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18998 if (!SWIG_IsOK(res1)) {
18999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19000 }
19001 arg1 = reinterpret_cast< wxDC * >(argp1);
19002 ecode2 = SWIG_AsVal_int(obj1, &val2);
19003 if (!SWIG_IsOK(ecode2)) {
19004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
19005 }
19006 arg2 = static_cast< int >(val2);
19007 {
19008 PyThreadState* __tstate = wxPyBeginAllowThreads();
19009 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
19010 wxPyEndAllowThreads(__tstate);
19011 if (PyErr_Occurred()) SWIG_fail;
19012 }
19013 resultobj = SWIG_From_int(static_cast< int >(result));
19014 return resultobj;
19015 fail:
19016 return NULL;
19017 }
19018
19019
19020 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19021 PyObject *resultobj = 0;
19022 wxDC *arg1 = (wxDC *) 0 ;
19023 int arg2 ;
19024 int result;
19025 void *argp1 = 0 ;
19026 int res1 = 0 ;
19027 int val2 ;
19028 int ecode2 = 0 ;
19029 PyObject * obj0 = 0 ;
19030 PyObject * obj1 = 0 ;
19031 char * kwnames[] = {
19032 (char *) "self",(char *) "y", NULL
19033 };
19034
19035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
19036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19037 if (!SWIG_IsOK(res1)) {
19038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19039 }
19040 arg1 = reinterpret_cast< wxDC * >(argp1);
19041 ecode2 = SWIG_AsVal_int(obj1, &val2);
19042 if (!SWIG_IsOK(ecode2)) {
19043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
19044 }
19045 arg2 = static_cast< int >(val2);
19046 {
19047 PyThreadState* __tstate = wxPyBeginAllowThreads();
19048 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
19049 wxPyEndAllowThreads(__tstate);
19050 if (PyErr_Occurred()) SWIG_fail;
19051 }
19052 resultobj = SWIG_From_int(static_cast< int >(result));
19053 return resultobj;
19054 fail:
19055 return NULL;
19056 }
19057
19058
19059 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19060 PyObject *resultobj = 0;
19061 wxDC *arg1 = (wxDC *) 0 ;
19062 int arg2 ;
19063 int result;
19064 void *argp1 = 0 ;
19065 int res1 = 0 ;
19066 int val2 ;
19067 int ecode2 = 0 ;
19068 PyObject * obj0 = 0 ;
19069 PyObject * obj1 = 0 ;
19070 char * kwnames[] = {
19071 (char *) "self",(char *) "x", NULL
19072 };
19073
19074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
19075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19076 if (!SWIG_IsOK(res1)) {
19077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
19078 }
19079 arg1 = reinterpret_cast< wxDC * >(argp1);
19080 ecode2 = SWIG_AsVal_int(obj1, &val2);
19081 if (!SWIG_IsOK(ecode2)) {
19082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
19083 }
19084 arg2 = static_cast< int >(val2);
19085 {
19086 PyThreadState* __tstate = wxPyBeginAllowThreads();
19087 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
19088 wxPyEndAllowThreads(__tstate);
19089 if (PyErr_Occurred()) SWIG_fail;
19090 }
19091 resultobj = SWIG_From_int(static_cast< int >(result));
19092 return resultobj;
19093 fail:
19094 return NULL;
19095 }
19096
19097
19098 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19099 PyObject *resultobj = 0;
19100 wxDC *arg1 = (wxDC *) 0 ;
19101 int arg2 ;
19102 int result;
19103 void *argp1 = 0 ;
19104 int res1 = 0 ;
19105 int val2 ;
19106 int ecode2 = 0 ;
19107 PyObject * obj0 = 0 ;
19108 PyObject * obj1 = 0 ;
19109 char * kwnames[] = {
19110 (char *) "self",(char *) "y", NULL
19111 };
19112
19113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
19114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19115 if (!SWIG_IsOK(res1)) {
19116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
19117 }
19118 arg1 = reinterpret_cast< wxDC * >(argp1);
19119 ecode2 = SWIG_AsVal_int(obj1, &val2);
19120 if (!SWIG_IsOK(ecode2)) {
19121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
19122 }
19123 arg2 = static_cast< int >(val2);
19124 {
19125 PyThreadState* __tstate = wxPyBeginAllowThreads();
19126 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
19127 wxPyEndAllowThreads(__tstate);
19128 if (PyErr_Occurred()) SWIG_fail;
19129 }
19130 resultobj = SWIG_From_int(static_cast< int >(result));
19131 return resultobj;
19132 fail:
19133 return NULL;
19134 }
19135
19136
19137 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19138 PyObject *resultobj = 0;
19139 wxDC *arg1 = (wxDC *) 0 ;
19140 int arg2 ;
19141 int result;
19142 void *argp1 = 0 ;
19143 int res1 = 0 ;
19144 int val2 ;
19145 int ecode2 = 0 ;
19146 PyObject * obj0 = 0 ;
19147 PyObject * obj1 = 0 ;
19148 char * kwnames[] = {
19149 (char *) "self",(char *) "x", NULL
19150 };
19151
19152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
19153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19154 if (!SWIG_IsOK(res1)) {
19155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19156 }
19157 arg1 = reinterpret_cast< wxDC * >(argp1);
19158 ecode2 = SWIG_AsVal_int(obj1, &val2);
19159 if (!SWIG_IsOK(ecode2)) {
19160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
19161 }
19162 arg2 = static_cast< int >(val2);
19163 {
19164 PyThreadState* __tstate = wxPyBeginAllowThreads();
19165 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
19166 wxPyEndAllowThreads(__tstate);
19167 if (PyErr_Occurred()) SWIG_fail;
19168 }
19169 resultobj = SWIG_From_int(static_cast< int >(result));
19170 return resultobj;
19171 fail:
19172 return NULL;
19173 }
19174
19175
19176 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19177 PyObject *resultobj = 0;
19178 wxDC *arg1 = (wxDC *) 0 ;
19179 int arg2 ;
19180 int result;
19181 void *argp1 = 0 ;
19182 int res1 = 0 ;
19183 int val2 ;
19184 int ecode2 = 0 ;
19185 PyObject * obj0 = 0 ;
19186 PyObject * obj1 = 0 ;
19187 char * kwnames[] = {
19188 (char *) "self",(char *) "y", NULL
19189 };
19190
19191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
19192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19193 if (!SWIG_IsOK(res1)) {
19194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19195 }
19196 arg1 = reinterpret_cast< wxDC * >(argp1);
19197 ecode2 = SWIG_AsVal_int(obj1, &val2);
19198 if (!SWIG_IsOK(ecode2)) {
19199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
19200 }
19201 arg2 = static_cast< int >(val2);
19202 {
19203 PyThreadState* __tstate = wxPyBeginAllowThreads();
19204 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
19205 wxPyEndAllowThreads(__tstate);
19206 if (PyErr_Occurred()) SWIG_fail;
19207 }
19208 resultobj = SWIG_From_int(static_cast< int >(result));
19209 return resultobj;
19210 fail:
19211 return NULL;
19212 }
19213
19214
19215 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19216 PyObject *resultobj = 0;
19217 wxDC *arg1 = (wxDC *) 0 ;
19218 bool result;
19219 void *argp1 = 0 ;
19220 int res1 = 0 ;
19221 PyObject *swig_obj[1] ;
19222
19223 if (!args) SWIG_fail;
19224 swig_obj[0] = args;
19225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19226 if (!SWIG_IsOK(res1)) {
19227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19228 }
19229 arg1 = reinterpret_cast< wxDC * >(argp1);
19230 {
19231 PyThreadState* __tstate = wxPyBeginAllowThreads();
19232 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
19233 wxPyEndAllowThreads(__tstate);
19234 if (PyErr_Occurred()) SWIG_fail;
19235 }
19236 {
19237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19238 }
19239 return resultobj;
19240 fail:
19241 return NULL;
19242 }
19243
19244
19245 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19246 PyObject *resultobj = 0;
19247 wxDC *arg1 = (wxDC *) 0 ;
19248 bool result;
19249 void *argp1 = 0 ;
19250 int res1 = 0 ;
19251 PyObject *swig_obj[1] ;
19252
19253 if (!args) SWIG_fail;
19254 swig_obj[0] = args;
19255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19256 if (!SWIG_IsOK(res1)) {
19257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
19258 }
19259 arg1 = reinterpret_cast< wxDC * >(argp1);
19260 {
19261 PyThreadState* __tstate = wxPyBeginAllowThreads();
19262 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
19263 wxPyEndAllowThreads(__tstate);
19264 if (PyErr_Occurred()) SWIG_fail;
19265 }
19266 {
19267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19268 }
19269 return resultobj;
19270 fail:
19271 return NULL;
19272 }
19273
19274
19275 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19276 PyObject *resultobj = 0;
19277 wxDC *arg1 = (wxDC *) 0 ;
19278 int result;
19279 void *argp1 = 0 ;
19280 int res1 = 0 ;
19281 PyObject *swig_obj[1] ;
19282
19283 if (!args) SWIG_fail;
19284 swig_obj[0] = args;
19285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19286 if (!SWIG_IsOK(res1)) {
19287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
19288 }
19289 arg1 = reinterpret_cast< wxDC * >(argp1);
19290 {
19291 PyThreadState* __tstate = wxPyBeginAllowThreads();
19292 result = (int)((wxDC const *)arg1)->GetDepth();
19293 wxPyEndAllowThreads(__tstate);
19294 if (PyErr_Occurred()) SWIG_fail;
19295 }
19296 resultobj = SWIG_From_int(static_cast< int >(result));
19297 return resultobj;
19298 fail:
19299 return NULL;
19300 }
19301
19302
19303 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19304 PyObject *resultobj = 0;
19305 wxDC *arg1 = (wxDC *) 0 ;
19306 wxSize result;
19307 void *argp1 = 0 ;
19308 int res1 = 0 ;
19309 PyObject *swig_obj[1] ;
19310
19311 if (!args) SWIG_fail;
19312 swig_obj[0] = args;
19313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19314 if (!SWIG_IsOK(res1)) {
19315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
19316 }
19317 arg1 = reinterpret_cast< wxDC * >(argp1);
19318 {
19319 PyThreadState* __tstate = wxPyBeginAllowThreads();
19320 result = ((wxDC const *)arg1)->GetPPI();
19321 wxPyEndAllowThreads(__tstate);
19322 if (PyErr_Occurred()) SWIG_fail;
19323 }
19324 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19325 return resultobj;
19326 fail:
19327 return NULL;
19328 }
19329
19330
19331 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19332 PyObject *resultobj = 0;
19333 wxDC *arg1 = (wxDC *) 0 ;
19334 bool result;
19335 void *argp1 = 0 ;
19336 int res1 = 0 ;
19337 PyObject *swig_obj[1] ;
19338
19339 if (!args) SWIG_fail;
19340 swig_obj[0] = args;
19341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19342 if (!SWIG_IsOK(res1)) {
19343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
19344 }
19345 arg1 = reinterpret_cast< wxDC * >(argp1);
19346 {
19347 PyThreadState* __tstate = wxPyBeginAllowThreads();
19348 result = (bool)((wxDC const *)arg1)->Ok();
19349 wxPyEndAllowThreads(__tstate);
19350 if (PyErr_Occurred()) SWIG_fail;
19351 }
19352 {
19353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19354 }
19355 return resultobj;
19356 fail:
19357 return NULL;
19358 }
19359
19360
19361 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19362 PyObject *resultobj = 0;
19363 wxDC *arg1 = (wxDC *) 0 ;
19364 int result;
19365 void *argp1 = 0 ;
19366 int res1 = 0 ;
19367 PyObject *swig_obj[1] ;
19368
19369 if (!args) SWIG_fail;
19370 swig_obj[0] = args;
19371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19372 if (!SWIG_IsOK(res1)) {
19373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19374 }
19375 arg1 = reinterpret_cast< wxDC * >(argp1);
19376 {
19377 PyThreadState* __tstate = wxPyBeginAllowThreads();
19378 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
19379 wxPyEndAllowThreads(__tstate);
19380 if (PyErr_Occurred()) SWIG_fail;
19381 }
19382 resultobj = SWIG_From_int(static_cast< int >(result));
19383 return resultobj;
19384 fail:
19385 return NULL;
19386 }
19387
19388
19389 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19390 PyObject *resultobj = 0;
19391 wxDC *arg1 = (wxDC *) 0 ;
19392 wxBrush *result = 0 ;
19393 void *argp1 = 0 ;
19394 int res1 = 0 ;
19395 PyObject *swig_obj[1] ;
19396
19397 if (!args) SWIG_fail;
19398 swig_obj[0] = args;
19399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19400 if (!SWIG_IsOK(res1)) {
19401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
19402 }
19403 arg1 = reinterpret_cast< wxDC * >(argp1);
19404 {
19405 PyThreadState* __tstate = wxPyBeginAllowThreads();
19406 {
19407 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
19408 result = (wxBrush *) &_result_ref;
19409 }
19410 wxPyEndAllowThreads(__tstate);
19411 if (PyErr_Occurred()) SWIG_fail;
19412 }
19413 {
19414 wxBrush* resultptr = new wxBrush(*result);
19415 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
19416 }
19417 return resultobj;
19418 fail:
19419 return NULL;
19420 }
19421
19422
19423 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19424 PyObject *resultobj = 0;
19425 wxDC *arg1 = (wxDC *) 0 ;
19426 wxBrush *result = 0 ;
19427 void *argp1 = 0 ;
19428 int res1 = 0 ;
19429 PyObject *swig_obj[1] ;
19430
19431 if (!args) SWIG_fail;
19432 swig_obj[0] = args;
19433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19434 if (!SWIG_IsOK(res1)) {
19435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
19436 }
19437 arg1 = reinterpret_cast< wxDC * >(argp1);
19438 {
19439 PyThreadState* __tstate = wxPyBeginAllowThreads();
19440 {
19441 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
19442 result = (wxBrush *) &_result_ref;
19443 }
19444 wxPyEndAllowThreads(__tstate);
19445 if (PyErr_Occurred()) SWIG_fail;
19446 }
19447 {
19448 wxBrush* resultptr = new wxBrush(*result);
19449 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
19450 }
19451 return resultobj;
19452 fail:
19453 return NULL;
19454 }
19455
19456
19457 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19458 PyObject *resultobj = 0;
19459 wxDC *arg1 = (wxDC *) 0 ;
19460 wxFont *result = 0 ;
19461 void *argp1 = 0 ;
19462 int res1 = 0 ;
19463 PyObject *swig_obj[1] ;
19464
19465 if (!args) SWIG_fail;
19466 swig_obj[0] = args;
19467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19468 if (!SWIG_IsOK(res1)) {
19469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
19470 }
19471 arg1 = reinterpret_cast< wxDC * >(argp1);
19472 {
19473 PyThreadState* __tstate = wxPyBeginAllowThreads();
19474 {
19475 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
19476 result = (wxFont *) &_result_ref;
19477 }
19478 wxPyEndAllowThreads(__tstate);
19479 if (PyErr_Occurred()) SWIG_fail;
19480 }
19481 {
19482 wxFont* resultptr = new wxFont(*result);
19483 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
19484 }
19485 return resultobj;
19486 fail:
19487 return NULL;
19488 }
19489
19490
19491 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19492 PyObject *resultobj = 0;
19493 wxDC *arg1 = (wxDC *) 0 ;
19494 wxPen *result = 0 ;
19495 void *argp1 = 0 ;
19496 int res1 = 0 ;
19497 PyObject *swig_obj[1] ;
19498
19499 if (!args) SWIG_fail;
19500 swig_obj[0] = args;
19501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19502 if (!SWIG_IsOK(res1)) {
19503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
19504 }
19505 arg1 = reinterpret_cast< wxDC * >(argp1);
19506 {
19507 PyThreadState* __tstate = wxPyBeginAllowThreads();
19508 {
19509 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
19510 result = (wxPen *) &_result_ref;
19511 }
19512 wxPyEndAllowThreads(__tstate);
19513 if (PyErr_Occurred()) SWIG_fail;
19514 }
19515 {
19516 wxPen* resultptr = new wxPen(*result);
19517 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
19518 }
19519 return resultobj;
19520 fail:
19521 return NULL;
19522 }
19523
19524
19525 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19526 PyObject *resultobj = 0;
19527 wxDC *arg1 = (wxDC *) 0 ;
19528 wxColour *result = 0 ;
19529 void *argp1 = 0 ;
19530 int res1 = 0 ;
19531 PyObject *swig_obj[1] ;
19532
19533 if (!args) SWIG_fail;
19534 swig_obj[0] = args;
19535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19536 if (!SWIG_IsOK(res1)) {
19537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
19538 }
19539 arg1 = reinterpret_cast< wxDC * >(argp1);
19540 {
19541 PyThreadState* __tstate = wxPyBeginAllowThreads();
19542 {
19543 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
19544 result = (wxColour *) &_result_ref;
19545 }
19546 wxPyEndAllowThreads(__tstate);
19547 if (PyErr_Occurred()) SWIG_fail;
19548 }
19549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
19550 return resultobj;
19551 fail:
19552 return NULL;
19553 }
19554
19555
19556 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19557 PyObject *resultobj = 0;
19558 wxDC *arg1 = (wxDC *) 0 ;
19559 wxColour *result = 0 ;
19560 void *argp1 = 0 ;
19561 int res1 = 0 ;
19562 PyObject *swig_obj[1] ;
19563
19564 if (!args) SWIG_fail;
19565 swig_obj[0] = args;
19566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19567 if (!SWIG_IsOK(res1)) {
19568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
19569 }
19570 arg1 = reinterpret_cast< wxDC * >(argp1);
19571 {
19572 PyThreadState* __tstate = wxPyBeginAllowThreads();
19573 {
19574 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
19575 result = (wxColour *) &_result_ref;
19576 }
19577 wxPyEndAllowThreads(__tstate);
19578 if (PyErr_Occurred()) SWIG_fail;
19579 }
19580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
19581 return resultobj;
19582 fail:
19583 return NULL;
19584 }
19585
19586
19587 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19588 PyObject *resultobj = 0;
19589 wxDC *arg1 = (wxDC *) 0 ;
19590 wxColour *arg2 = 0 ;
19591 void *argp1 = 0 ;
19592 int res1 = 0 ;
19593 wxColour temp2 ;
19594 PyObject * obj0 = 0 ;
19595 PyObject * obj1 = 0 ;
19596 char * kwnames[] = {
19597 (char *) "self",(char *) "colour", NULL
19598 };
19599
19600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
19601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19602 if (!SWIG_IsOK(res1)) {
19603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
19604 }
19605 arg1 = reinterpret_cast< wxDC * >(argp1);
19606 {
19607 arg2 = &temp2;
19608 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19609 }
19610 {
19611 PyThreadState* __tstate = wxPyBeginAllowThreads();
19612 (arg1)->SetTextForeground((wxColour const &)*arg2);
19613 wxPyEndAllowThreads(__tstate);
19614 if (PyErr_Occurred()) SWIG_fail;
19615 }
19616 resultobj = SWIG_Py_Void();
19617 return resultobj;
19618 fail:
19619 return NULL;
19620 }
19621
19622
19623 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19624 PyObject *resultobj = 0;
19625 wxDC *arg1 = (wxDC *) 0 ;
19626 wxColour *arg2 = 0 ;
19627 void *argp1 = 0 ;
19628 int res1 = 0 ;
19629 wxColour temp2 ;
19630 PyObject * obj0 = 0 ;
19631 PyObject * obj1 = 0 ;
19632 char * kwnames[] = {
19633 (char *) "self",(char *) "colour", NULL
19634 };
19635
19636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
19637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19638 if (!SWIG_IsOK(res1)) {
19639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
19640 }
19641 arg1 = reinterpret_cast< wxDC * >(argp1);
19642 {
19643 arg2 = &temp2;
19644 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19645 }
19646 {
19647 PyThreadState* __tstate = wxPyBeginAllowThreads();
19648 (arg1)->SetTextBackground((wxColour const &)*arg2);
19649 wxPyEndAllowThreads(__tstate);
19650 if (PyErr_Occurred()) SWIG_fail;
19651 }
19652 resultobj = SWIG_Py_Void();
19653 return resultobj;
19654 fail:
19655 return NULL;
19656 }
19657
19658
19659 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19660 PyObject *resultobj = 0;
19661 wxDC *arg1 = (wxDC *) 0 ;
19662 int result;
19663 void *argp1 = 0 ;
19664 int res1 = 0 ;
19665 PyObject *swig_obj[1] ;
19666
19667 if (!args) SWIG_fail;
19668 swig_obj[0] = args;
19669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19670 if (!SWIG_IsOK(res1)) {
19671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19672 }
19673 arg1 = reinterpret_cast< wxDC * >(argp1);
19674 {
19675 PyThreadState* __tstate = wxPyBeginAllowThreads();
19676 result = (int)((wxDC const *)arg1)->GetMapMode();
19677 wxPyEndAllowThreads(__tstate);
19678 if (PyErr_Occurred()) SWIG_fail;
19679 }
19680 resultobj = SWIG_From_int(static_cast< int >(result));
19681 return resultobj;
19682 fail:
19683 return NULL;
19684 }
19685
19686
19687 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19688 PyObject *resultobj = 0;
19689 wxDC *arg1 = (wxDC *) 0 ;
19690 int arg2 ;
19691 void *argp1 = 0 ;
19692 int res1 = 0 ;
19693 int val2 ;
19694 int ecode2 = 0 ;
19695 PyObject * obj0 = 0 ;
19696 PyObject * obj1 = 0 ;
19697 char * kwnames[] = {
19698 (char *) "self",(char *) "mode", NULL
19699 };
19700
19701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
19702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19703 if (!SWIG_IsOK(res1)) {
19704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19705 }
19706 arg1 = reinterpret_cast< wxDC * >(argp1);
19707 ecode2 = SWIG_AsVal_int(obj1, &val2);
19708 if (!SWIG_IsOK(ecode2)) {
19709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19710 }
19711 arg2 = static_cast< int >(val2);
19712 {
19713 PyThreadState* __tstate = wxPyBeginAllowThreads();
19714 (arg1)->SetMapMode(arg2);
19715 wxPyEndAllowThreads(__tstate);
19716 if (PyErr_Occurred()) SWIG_fail;
19717 }
19718 resultobj = SWIG_Py_Void();
19719 return resultobj;
19720 fail:
19721 return NULL;
19722 }
19723
19724
19725 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19726 PyObject *resultobj = 0;
19727 wxDC *arg1 = (wxDC *) 0 ;
19728 double *arg2 = (double *) 0 ;
19729 double *arg3 = (double *) 0 ;
19730 void *argp1 = 0 ;
19731 int res1 = 0 ;
19732 double temp2 ;
19733 int res2 = SWIG_TMPOBJ ;
19734 double temp3 ;
19735 int res3 = SWIG_TMPOBJ ;
19736 PyObject *swig_obj[1] ;
19737
19738 arg2 = &temp2;
19739 arg3 = &temp3;
19740 if (!args) SWIG_fail;
19741 swig_obj[0] = args;
19742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19743 if (!SWIG_IsOK(res1)) {
19744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19745 }
19746 arg1 = reinterpret_cast< wxDC * >(argp1);
19747 {
19748 PyThreadState* __tstate = wxPyBeginAllowThreads();
19749 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
19750 wxPyEndAllowThreads(__tstate);
19751 if (PyErr_Occurred()) SWIG_fail;
19752 }
19753 resultobj = SWIG_Py_Void();
19754 if (SWIG_IsTmpObj(res2)) {
19755 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19756 } else {
19757 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19758 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19759 }
19760 if (SWIG_IsTmpObj(res3)) {
19761 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19762 } else {
19763 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19764 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19765 }
19766 return resultobj;
19767 fail:
19768 return NULL;
19769 }
19770
19771
19772 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19773 PyObject *resultobj = 0;
19774 wxDC *arg1 = (wxDC *) 0 ;
19775 double arg2 ;
19776 double arg3 ;
19777 void *argp1 = 0 ;
19778 int res1 = 0 ;
19779 double val2 ;
19780 int ecode2 = 0 ;
19781 double val3 ;
19782 int ecode3 = 0 ;
19783 PyObject * obj0 = 0 ;
19784 PyObject * obj1 = 0 ;
19785 PyObject * obj2 = 0 ;
19786 char * kwnames[] = {
19787 (char *) "self",(char *) "x",(char *) "y", NULL
19788 };
19789
19790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19792 if (!SWIG_IsOK(res1)) {
19793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19794 }
19795 arg1 = reinterpret_cast< wxDC * >(argp1);
19796 ecode2 = SWIG_AsVal_double(obj1, &val2);
19797 if (!SWIG_IsOK(ecode2)) {
19798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19799 }
19800 arg2 = static_cast< double >(val2);
19801 ecode3 = SWIG_AsVal_double(obj2, &val3);
19802 if (!SWIG_IsOK(ecode3)) {
19803 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19804 }
19805 arg3 = static_cast< double >(val3);
19806 {
19807 PyThreadState* __tstate = wxPyBeginAllowThreads();
19808 (arg1)->SetUserScale(arg2,arg3);
19809 wxPyEndAllowThreads(__tstate);
19810 if (PyErr_Occurred()) SWIG_fail;
19811 }
19812 resultobj = SWIG_Py_Void();
19813 return resultobj;
19814 fail:
19815 return NULL;
19816 }
19817
19818
19819 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19820 PyObject *resultobj = 0;
19821 wxDC *arg1 = (wxDC *) 0 ;
19822 double *arg2 = (double *) 0 ;
19823 double *arg3 = (double *) 0 ;
19824 void *argp1 = 0 ;
19825 int res1 = 0 ;
19826 double temp2 ;
19827 int res2 = SWIG_TMPOBJ ;
19828 double temp3 ;
19829 int res3 = SWIG_TMPOBJ ;
19830 PyObject *swig_obj[1] ;
19831
19832 arg2 = &temp2;
19833 arg3 = &temp3;
19834 if (!args) SWIG_fail;
19835 swig_obj[0] = args;
19836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19837 if (!SWIG_IsOK(res1)) {
19838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19839 }
19840 arg1 = reinterpret_cast< wxDC * >(argp1);
19841 {
19842 PyThreadState* __tstate = wxPyBeginAllowThreads();
19843 (arg1)->GetLogicalScale(arg2,arg3);
19844 wxPyEndAllowThreads(__tstate);
19845 if (PyErr_Occurred()) SWIG_fail;
19846 }
19847 resultobj = SWIG_Py_Void();
19848 if (SWIG_IsTmpObj(res2)) {
19849 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19850 } else {
19851 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19852 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19853 }
19854 if (SWIG_IsTmpObj(res3)) {
19855 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19856 } else {
19857 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19858 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19859 }
19860 return resultobj;
19861 fail:
19862 return NULL;
19863 }
19864
19865
19866 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19867 PyObject *resultobj = 0;
19868 wxDC *arg1 = (wxDC *) 0 ;
19869 double arg2 ;
19870 double arg3 ;
19871 void *argp1 = 0 ;
19872 int res1 = 0 ;
19873 double val2 ;
19874 int ecode2 = 0 ;
19875 double val3 ;
19876 int ecode3 = 0 ;
19877 PyObject * obj0 = 0 ;
19878 PyObject * obj1 = 0 ;
19879 PyObject * obj2 = 0 ;
19880 char * kwnames[] = {
19881 (char *) "self",(char *) "x",(char *) "y", NULL
19882 };
19883
19884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19886 if (!SWIG_IsOK(res1)) {
19887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19888 }
19889 arg1 = reinterpret_cast< wxDC * >(argp1);
19890 ecode2 = SWIG_AsVal_double(obj1, &val2);
19891 if (!SWIG_IsOK(ecode2)) {
19892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19893 }
19894 arg2 = static_cast< double >(val2);
19895 ecode3 = SWIG_AsVal_double(obj2, &val3);
19896 if (!SWIG_IsOK(ecode3)) {
19897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19898 }
19899 arg3 = static_cast< double >(val3);
19900 {
19901 PyThreadState* __tstate = wxPyBeginAllowThreads();
19902 (arg1)->SetLogicalScale(arg2,arg3);
19903 wxPyEndAllowThreads(__tstate);
19904 if (PyErr_Occurred()) SWIG_fail;
19905 }
19906 resultobj = SWIG_Py_Void();
19907 return resultobj;
19908 fail:
19909 return NULL;
19910 }
19911
19912
19913 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19914 PyObject *resultobj = 0;
19915 wxDC *arg1 = (wxDC *) 0 ;
19916 wxPoint result;
19917 void *argp1 = 0 ;
19918 int res1 = 0 ;
19919 PyObject *swig_obj[1] ;
19920
19921 if (!args) SWIG_fail;
19922 swig_obj[0] = args;
19923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19924 if (!SWIG_IsOK(res1)) {
19925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19926 }
19927 arg1 = reinterpret_cast< wxDC * >(argp1);
19928 {
19929 PyThreadState* __tstate = wxPyBeginAllowThreads();
19930 result = ((wxDC const *)arg1)->GetLogicalOrigin();
19931 wxPyEndAllowThreads(__tstate);
19932 if (PyErr_Occurred()) SWIG_fail;
19933 }
19934 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19935 return resultobj;
19936 fail:
19937 return NULL;
19938 }
19939
19940
19941 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19942 PyObject *resultobj = 0;
19943 wxDC *arg1 = (wxDC *) 0 ;
19944 int *arg2 = (int *) 0 ;
19945 int *arg3 = (int *) 0 ;
19946 void *argp1 = 0 ;
19947 int res1 = 0 ;
19948 int temp2 ;
19949 int res2 = SWIG_TMPOBJ ;
19950 int temp3 ;
19951 int res3 = SWIG_TMPOBJ ;
19952 PyObject *swig_obj[1] ;
19953
19954 arg2 = &temp2;
19955 arg3 = &temp3;
19956 if (!args) SWIG_fail;
19957 swig_obj[0] = args;
19958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19959 if (!SWIG_IsOK(res1)) {
19960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19961 }
19962 arg1 = reinterpret_cast< wxDC * >(argp1);
19963 {
19964 PyThreadState* __tstate = wxPyBeginAllowThreads();
19965 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
19966 wxPyEndAllowThreads(__tstate);
19967 if (PyErr_Occurred()) SWIG_fail;
19968 }
19969 resultobj = SWIG_Py_Void();
19970 if (SWIG_IsTmpObj(res2)) {
19971 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19972 } else {
19973 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19974 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19975 }
19976 if (SWIG_IsTmpObj(res3)) {
19977 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19978 } else {
19979 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19980 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19981 }
19982 return resultobj;
19983 fail:
19984 return NULL;
19985 }
19986
19987
19988 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19989 PyObject *resultobj = 0;
19990 wxDC *arg1 = (wxDC *) 0 ;
19991 int arg2 ;
19992 int arg3 ;
19993 void *argp1 = 0 ;
19994 int res1 = 0 ;
19995 int val2 ;
19996 int ecode2 = 0 ;
19997 int val3 ;
19998 int ecode3 = 0 ;
19999 PyObject * obj0 = 0 ;
20000 PyObject * obj1 = 0 ;
20001 PyObject * obj2 = 0 ;
20002 char * kwnames[] = {
20003 (char *) "self",(char *) "x",(char *) "y", NULL
20004 };
20005
20006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20008 if (!SWIG_IsOK(res1)) {
20009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20010 }
20011 arg1 = reinterpret_cast< wxDC * >(argp1);
20012 ecode2 = SWIG_AsVal_int(obj1, &val2);
20013 if (!SWIG_IsOK(ecode2)) {
20014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
20015 }
20016 arg2 = static_cast< int >(val2);
20017 ecode3 = SWIG_AsVal_int(obj2, &val3);
20018 if (!SWIG_IsOK(ecode3)) {
20019 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
20020 }
20021 arg3 = static_cast< int >(val3);
20022 {
20023 PyThreadState* __tstate = wxPyBeginAllowThreads();
20024 (arg1)->SetLogicalOrigin(arg2,arg3);
20025 wxPyEndAllowThreads(__tstate);
20026 if (PyErr_Occurred()) SWIG_fail;
20027 }
20028 resultobj = SWIG_Py_Void();
20029 return resultobj;
20030 fail:
20031 return NULL;
20032 }
20033
20034
20035 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20036 PyObject *resultobj = 0;
20037 wxDC *arg1 = (wxDC *) 0 ;
20038 wxPoint *arg2 = 0 ;
20039 void *argp1 = 0 ;
20040 int res1 = 0 ;
20041 wxPoint temp2 ;
20042 PyObject * obj0 = 0 ;
20043 PyObject * obj1 = 0 ;
20044 char * kwnames[] = {
20045 (char *) "self",(char *) "point", NULL
20046 };
20047
20048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20050 if (!SWIG_IsOK(res1)) {
20051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20052 }
20053 arg1 = reinterpret_cast< wxDC * >(argp1);
20054 {
20055 arg2 = &temp2;
20056 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20057 }
20058 {
20059 PyThreadState* __tstate = wxPyBeginAllowThreads();
20060 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
20061 wxPyEndAllowThreads(__tstate);
20062 if (PyErr_Occurred()) SWIG_fail;
20063 }
20064 resultobj = SWIG_Py_Void();
20065 return resultobj;
20066 fail:
20067 return NULL;
20068 }
20069
20070
20071 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20072 PyObject *resultobj = 0;
20073 wxDC *arg1 = (wxDC *) 0 ;
20074 wxPoint result;
20075 void *argp1 = 0 ;
20076 int res1 = 0 ;
20077 PyObject *swig_obj[1] ;
20078
20079 if (!args) SWIG_fail;
20080 swig_obj[0] = args;
20081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20082 if (!SWIG_IsOK(res1)) {
20083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
20084 }
20085 arg1 = reinterpret_cast< wxDC * >(argp1);
20086 {
20087 PyThreadState* __tstate = wxPyBeginAllowThreads();
20088 result = ((wxDC const *)arg1)->GetDeviceOrigin();
20089 wxPyEndAllowThreads(__tstate);
20090 if (PyErr_Occurred()) SWIG_fail;
20091 }
20092 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
20093 return resultobj;
20094 fail:
20095 return NULL;
20096 }
20097
20098
20099 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20100 PyObject *resultobj = 0;
20101 wxDC *arg1 = (wxDC *) 0 ;
20102 int *arg2 = (int *) 0 ;
20103 int *arg3 = (int *) 0 ;
20104 void *argp1 = 0 ;
20105 int res1 = 0 ;
20106 int temp2 ;
20107 int res2 = SWIG_TMPOBJ ;
20108 int temp3 ;
20109 int res3 = SWIG_TMPOBJ ;
20110 PyObject *swig_obj[1] ;
20111
20112 arg2 = &temp2;
20113 arg3 = &temp3;
20114 if (!args) SWIG_fail;
20115 swig_obj[0] = args;
20116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20117 if (!SWIG_IsOK(res1)) {
20118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20119 }
20120 arg1 = reinterpret_cast< wxDC * >(argp1);
20121 {
20122 PyThreadState* __tstate = wxPyBeginAllowThreads();
20123 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
20124 wxPyEndAllowThreads(__tstate);
20125 if (PyErr_Occurred()) SWIG_fail;
20126 }
20127 resultobj = SWIG_Py_Void();
20128 if (SWIG_IsTmpObj(res2)) {
20129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20130 } else {
20131 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20132 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20133 }
20134 if (SWIG_IsTmpObj(res3)) {
20135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20136 } else {
20137 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20138 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20139 }
20140 return resultobj;
20141 fail:
20142 return NULL;
20143 }
20144
20145
20146 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20147 PyObject *resultobj = 0;
20148 wxDC *arg1 = (wxDC *) 0 ;
20149 int arg2 ;
20150 int arg3 ;
20151 void *argp1 = 0 ;
20152 int res1 = 0 ;
20153 int val2 ;
20154 int ecode2 = 0 ;
20155 int val3 ;
20156 int ecode3 = 0 ;
20157 PyObject * obj0 = 0 ;
20158 PyObject * obj1 = 0 ;
20159 PyObject * obj2 = 0 ;
20160 char * kwnames[] = {
20161 (char *) "self",(char *) "x",(char *) "y", NULL
20162 };
20163
20164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20166 if (!SWIG_IsOK(res1)) {
20167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20168 }
20169 arg1 = reinterpret_cast< wxDC * >(argp1);
20170 ecode2 = SWIG_AsVal_int(obj1, &val2);
20171 if (!SWIG_IsOK(ecode2)) {
20172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
20173 }
20174 arg2 = static_cast< int >(val2);
20175 ecode3 = SWIG_AsVal_int(obj2, &val3);
20176 if (!SWIG_IsOK(ecode3)) {
20177 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
20178 }
20179 arg3 = static_cast< int >(val3);
20180 {
20181 PyThreadState* __tstate = wxPyBeginAllowThreads();
20182 (arg1)->SetDeviceOrigin(arg2,arg3);
20183 wxPyEndAllowThreads(__tstate);
20184 if (PyErr_Occurred()) SWIG_fail;
20185 }
20186 resultobj = SWIG_Py_Void();
20187 return resultobj;
20188 fail:
20189 return NULL;
20190 }
20191
20192
20193 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20194 PyObject *resultobj = 0;
20195 wxDC *arg1 = (wxDC *) 0 ;
20196 wxPoint *arg2 = 0 ;
20197 void *argp1 = 0 ;
20198 int res1 = 0 ;
20199 wxPoint temp2 ;
20200 PyObject * obj0 = 0 ;
20201 PyObject * obj1 = 0 ;
20202 char * kwnames[] = {
20203 (char *) "self",(char *) "point", NULL
20204 };
20205
20206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20208 if (!SWIG_IsOK(res1)) {
20209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20210 }
20211 arg1 = reinterpret_cast< wxDC * >(argp1);
20212 {
20213 arg2 = &temp2;
20214 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20215 }
20216 {
20217 PyThreadState* __tstate = wxPyBeginAllowThreads();
20218 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
20219 wxPyEndAllowThreads(__tstate);
20220 if (PyErr_Occurred()) SWIG_fail;
20221 }
20222 resultobj = SWIG_Py_Void();
20223 return resultobj;
20224 fail:
20225 return NULL;
20226 }
20227
20228
20229 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20230 PyObject *resultobj = 0;
20231 wxDC *arg1 = (wxDC *) 0 ;
20232 bool arg2 ;
20233 bool arg3 ;
20234 void *argp1 = 0 ;
20235 int res1 = 0 ;
20236 bool val2 ;
20237 int ecode2 = 0 ;
20238 bool val3 ;
20239 int ecode3 = 0 ;
20240 PyObject * obj0 = 0 ;
20241 PyObject * obj1 = 0 ;
20242 PyObject * obj2 = 0 ;
20243 char * kwnames[] = {
20244 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
20245 };
20246
20247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20249 if (!SWIG_IsOK(res1)) {
20250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
20251 }
20252 arg1 = reinterpret_cast< wxDC * >(argp1);
20253 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20254 if (!SWIG_IsOK(ecode2)) {
20255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
20256 }
20257 arg2 = static_cast< bool >(val2);
20258 ecode3 = SWIG_AsVal_bool(obj2, &val3);
20259 if (!SWIG_IsOK(ecode3)) {
20260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
20261 }
20262 arg3 = static_cast< bool >(val3);
20263 {
20264 PyThreadState* __tstate = wxPyBeginAllowThreads();
20265 (arg1)->SetAxisOrientation(arg2,arg3);
20266 wxPyEndAllowThreads(__tstate);
20267 if (PyErr_Occurred()) SWIG_fail;
20268 }
20269 resultobj = SWIG_Py_Void();
20270 return resultobj;
20271 fail:
20272 return NULL;
20273 }
20274
20275
20276 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20277 PyObject *resultobj = 0;
20278 wxDC *arg1 = (wxDC *) 0 ;
20279 int result;
20280 void *argp1 = 0 ;
20281 int res1 = 0 ;
20282 PyObject *swig_obj[1] ;
20283
20284 if (!args) SWIG_fail;
20285 swig_obj[0] = args;
20286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20287 if (!SWIG_IsOK(res1)) {
20288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
20289 }
20290 arg1 = reinterpret_cast< wxDC * >(argp1);
20291 {
20292 PyThreadState* __tstate = wxPyBeginAllowThreads();
20293 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
20294 wxPyEndAllowThreads(__tstate);
20295 if (PyErr_Occurred()) SWIG_fail;
20296 }
20297 resultobj = SWIG_From_int(static_cast< int >(result));
20298 return resultobj;
20299 fail:
20300 return NULL;
20301 }
20302
20303
20304 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20305 PyObject *resultobj = 0;
20306 wxDC *arg1 = (wxDC *) 0 ;
20307 int arg2 ;
20308 void *argp1 = 0 ;
20309 int res1 = 0 ;
20310 int val2 ;
20311 int ecode2 = 0 ;
20312 PyObject * obj0 = 0 ;
20313 PyObject * obj1 = 0 ;
20314 char * kwnames[] = {
20315 (char *) "self",(char *) "function", NULL
20316 };
20317
20318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
20319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20320 if (!SWIG_IsOK(res1)) {
20321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
20322 }
20323 arg1 = reinterpret_cast< wxDC * >(argp1);
20324 ecode2 = SWIG_AsVal_int(obj1, &val2);
20325 if (!SWIG_IsOK(ecode2)) {
20326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
20327 }
20328 arg2 = static_cast< int >(val2);
20329 {
20330 PyThreadState* __tstate = wxPyBeginAllowThreads();
20331 (arg1)->SetLogicalFunction(arg2);
20332 wxPyEndAllowThreads(__tstate);
20333 if (PyErr_Occurred()) SWIG_fail;
20334 }
20335 resultobj = SWIG_Py_Void();
20336 return resultobj;
20337 fail:
20338 return NULL;
20339 }
20340
20341
20342 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20343 PyObject *resultobj = 0;
20344 wxDC *arg1 = (wxDC *) 0 ;
20345 void *argp1 = 0 ;
20346 int res1 = 0 ;
20347 PyObject *swig_obj[1] ;
20348
20349 if (!args) SWIG_fail;
20350 swig_obj[0] = args;
20351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20352 if (!SWIG_IsOK(res1)) {
20353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20354 }
20355 arg1 = reinterpret_cast< wxDC * >(argp1);
20356 {
20357 PyThreadState* __tstate = wxPyBeginAllowThreads();
20358 (arg1)->ComputeScaleAndOrigin();
20359 wxPyEndAllowThreads(__tstate);
20360 if (PyErr_Occurred()) SWIG_fail;
20361 }
20362 resultobj = SWIG_Py_Void();
20363 return resultobj;
20364 fail:
20365 return NULL;
20366 }
20367
20368
20369 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20370 PyObject *resultobj = 0;
20371 wxDC *arg1 = (wxDC *) 0 ;
20372 int arg2 ;
20373 int arg3 ;
20374 void *argp1 = 0 ;
20375 int res1 = 0 ;
20376 int val2 ;
20377 int ecode2 = 0 ;
20378 int val3 ;
20379 int ecode3 = 0 ;
20380 PyObject * obj0 = 0 ;
20381 PyObject * obj1 = 0 ;
20382 PyObject * obj2 = 0 ;
20383 char * kwnames[] = {
20384 (char *) "self",(char *) "x",(char *) "y", NULL
20385 };
20386
20387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20389 if (!SWIG_IsOK(res1)) {
20390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20391 }
20392 arg1 = reinterpret_cast< wxDC * >(argp1);
20393 ecode2 = SWIG_AsVal_int(obj1, &val2);
20394 if (!SWIG_IsOK(ecode2)) {
20395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
20396 }
20397 arg2 = static_cast< int >(val2);
20398 ecode3 = SWIG_AsVal_int(obj2, &val3);
20399 if (!SWIG_IsOK(ecode3)) {
20400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
20401 }
20402 arg3 = static_cast< int >(val3);
20403 {
20404 PyThreadState* __tstate = wxPyBeginAllowThreads();
20405 (arg1)->CalcBoundingBox(arg2,arg3);
20406 wxPyEndAllowThreads(__tstate);
20407 if (PyErr_Occurred()) SWIG_fail;
20408 }
20409 resultobj = SWIG_Py_Void();
20410 return resultobj;
20411 fail:
20412 return NULL;
20413 }
20414
20415
20416 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20417 PyObject *resultobj = 0;
20418 wxDC *arg1 = (wxDC *) 0 ;
20419 wxPoint *arg2 = 0 ;
20420 void *argp1 = 0 ;
20421 int res1 = 0 ;
20422 wxPoint temp2 ;
20423 PyObject * obj0 = 0 ;
20424 PyObject * obj1 = 0 ;
20425 char * kwnames[] = {
20426 (char *) "self",(char *) "point", NULL
20427 };
20428
20429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20431 if (!SWIG_IsOK(res1)) {
20432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20433 }
20434 arg1 = reinterpret_cast< wxDC * >(argp1);
20435 {
20436 arg2 = &temp2;
20437 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20438 }
20439 {
20440 PyThreadState* __tstate = wxPyBeginAllowThreads();
20441 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
20442 wxPyEndAllowThreads(__tstate);
20443 if (PyErr_Occurred()) SWIG_fail;
20444 }
20445 resultobj = SWIG_Py_Void();
20446 return resultobj;
20447 fail:
20448 return NULL;
20449 }
20450
20451
20452 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20453 PyObject *resultobj = 0;
20454 wxDC *arg1 = (wxDC *) 0 ;
20455 void *argp1 = 0 ;
20456 int res1 = 0 ;
20457 PyObject *swig_obj[1] ;
20458
20459 if (!args) SWIG_fail;
20460 swig_obj[0] = args;
20461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20462 if (!SWIG_IsOK(res1)) {
20463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20464 }
20465 arg1 = reinterpret_cast< wxDC * >(argp1);
20466 {
20467 PyThreadState* __tstate = wxPyBeginAllowThreads();
20468 (arg1)->ResetBoundingBox();
20469 wxPyEndAllowThreads(__tstate);
20470 if (PyErr_Occurred()) SWIG_fail;
20471 }
20472 resultobj = SWIG_Py_Void();
20473 return resultobj;
20474 fail:
20475 return NULL;
20476 }
20477
20478
20479 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20480 PyObject *resultobj = 0;
20481 wxDC *arg1 = (wxDC *) 0 ;
20482 int result;
20483 void *argp1 = 0 ;
20484 int res1 = 0 ;
20485 PyObject *swig_obj[1] ;
20486
20487 if (!args) SWIG_fail;
20488 swig_obj[0] = args;
20489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20490 if (!SWIG_IsOK(res1)) {
20491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
20492 }
20493 arg1 = reinterpret_cast< wxDC * >(argp1);
20494 {
20495 PyThreadState* __tstate = wxPyBeginAllowThreads();
20496 result = (int)((wxDC const *)arg1)->MinX();
20497 wxPyEndAllowThreads(__tstate);
20498 if (PyErr_Occurred()) SWIG_fail;
20499 }
20500 resultobj = SWIG_From_int(static_cast< int >(result));
20501 return resultobj;
20502 fail:
20503 return NULL;
20504 }
20505
20506
20507 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20508 PyObject *resultobj = 0;
20509 wxDC *arg1 = (wxDC *) 0 ;
20510 int result;
20511 void *argp1 = 0 ;
20512 int res1 = 0 ;
20513 PyObject *swig_obj[1] ;
20514
20515 if (!args) SWIG_fail;
20516 swig_obj[0] = args;
20517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20518 if (!SWIG_IsOK(res1)) {
20519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
20520 }
20521 arg1 = reinterpret_cast< wxDC * >(argp1);
20522 {
20523 PyThreadState* __tstate = wxPyBeginAllowThreads();
20524 result = (int)((wxDC const *)arg1)->MaxX();
20525 wxPyEndAllowThreads(__tstate);
20526 if (PyErr_Occurred()) SWIG_fail;
20527 }
20528 resultobj = SWIG_From_int(static_cast< int >(result));
20529 return resultobj;
20530 fail:
20531 return NULL;
20532 }
20533
20534
20535 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20536 PyObject *resultobj = 0;
20537 wxDC *arg1 = (wxDC *) 0 ;
20538 int result;
20539 void *argp1 = 0 ;
20540 int res1 = 0 ;
20541 PyObject *swig_obj[1] ;
20542
20543 if (!args) SWIG_fail;
20544 swig_obj[0] = args;
20545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20546 if (!SWIG_IsOK(res1)) {
20547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
20548 }
20549 arg1 = reinterpret_cast< wxDC * >(argp1);
20550 {
20551 PyThreadState* __tstate = wxPyBeginAllowThreads();
20552 result = (int)((wxDC const *)arg1)->MinY();
20553 wxPyEndAllowThreads(__tstate);
20554 if (PyErr_Occurred()) SWIG_fail;
20555 }
20556 resultobj = SWIG_From_int(static_cast< int >(result));
20557 return resultobj;
20558 fail:
20559 return NULL;
20560 }
20561
20562
20563 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20564 PyObject *resultobj = 0;
20565 wxDC *arg1 = (wxDC *) 0 ;
20566 int result;
20567 void *argp1 = 0 ;
20568 int res1 = 0 ;
20569 PyObject *swig_obj[1] ;
20570
20571 if (!args) SWIG_fail;
20572 swig_obj[0] = args;
20573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20574 if (!SWIG_IsOK(res1)) {
20575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
20576 }
20577 arg1 = reinterpret_cast< wxDC * >(argp1);
20578 {
20579 PyThreadState* __tstate = wxPyBeginAllowThreads();
20580 result = (int)((wxDC const *)arg1)->MaxY();
20581 wxPyEndAllowThreads(__tstate);
20582 if (PyErr_Occurred()) SWIG_fail;
20583 }
20584 resultobj = SWIG_From_int(static_cast< int >(result));
20585 return resultobj;
20586 fail:
20587 return NULL;
20588 }
20589
20590
20591 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20592 PyObject *resultobj = 0;
20593 wxDC *arg1 = (wxDC *) 0 ;
20594 int *arg2 = (int *) 0 ;
20595 int *arg3 = (int *) 0 ;
20596 int *arg4 = (int *) 0 ;
20597 int *arg5 = (int *) 0 ;
20598 void *argp1 = 0 ;
20599 int res1 = 0 ;
20600 int temp2 ;
20601 int res2 = SWIG_TMPOBJ ;
20602 int temp3 ;
20603 int res3 = SWIG_TMPOBJ ;
20604 int temp4 ;
20605 int res4 = SWIG_TMPOBJ ;
20606 int temp5 ;
20607 int res5 = SWIG_TMPOBJ ;
20608 PyObject *swig_obj[1] ;
20609
20610 arg2 = &temp2;
20611 arg3 = &temp3;
20612 arg4 = &temp4;
20613 arg5 = &temp5;
20614 if (!args) SWIG_fail;
20615 swig_obj[0] = args;
20616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20617 if (!SWIG_IsOK(res1)) {
20618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20619 }
20620 arg1 = reinterpret_cast< wxDC * >(argp1);
20621 {
20622 PyThreadState* __tstate = wxPyBeginAllowThreads();
20623 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
20624 wxPyEndAllowThreads(__tstate);
20625 if (PyErr_Occurred()) SWIG_fail;
20626 }
20627 resultobj = SWIG_Py_Void();
20628 if (SWIG_IsTmpObj(res2)) {
20629 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20630 } else {
20631 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20632 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20633 }
20634 if (SWIG_IsTmpObj(res3)) {
20635 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20636 } else {
20637 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20638 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20639 }
20640 if (SWIG_IsTmpObj(res4)) {
20641 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20642 } else {
20643 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20644 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20645 }
20646 if (SWIG_IsTmpObj(res5)) {
20647 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20648 } else {
20649 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20650 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20651 }
20652 return resultobj;
20653 fail:
20654 return NULL;
20655 }
20656
20657
20658 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20659 PyObject *resultobj = 0;
20660 wxDC *arg1 = (wxDC *) 0 ;
20661 long result;
20662 void *argp1 = 0 ;
20663 int res1 = 0 ;
20664 PyObject *swig_obj[1] ;
20665
20666 if (!args) SWIG_fail;
20667 swig_obj[0] = args;
20668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20669 if (!SWIG_IsOK(res1)) {
20670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
20671 }
20672 arg1 = reinterpret_cast< wxDC * >(argp1);
20673 {
20674 PyThreadState* __tstate = wxPyBeginAllowThreads();
20675 result = (long)(arg1)->GetHDC();
20676 wxPyEndAllowThreads(__tstate);
20677 if (PyErr_Occurred()) SWIG_fail;
20678 }
20679 resultobj = SWIG_From_long(static_cast< long >(result));
20680 return resultobj;
20681 fail:
20682 return NULL;
20683 }
20684
20685
20686 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20687 PyObject *resultobj = 0;
20688 wxDC *arg1 = (wxDC *) 0 ;
20689 PyObject *arg2 = (PyObject *) 0 ;
20690 PyObject *arg3 = (PyObject *) 0 ;
20691 PyObject *arg4 = (PyObject *) 0 ;
20692 PyObject *result = 0 ;
20693 void *argp1 = 0 ;
20694 int res1 = 0 ;
20695 PyObject * obj0 = 0 ;
20696 PyObject * obj1 = 0 ;
20697 PyObject * obj2 = 0 ;
20698 PyObject * obj3 = 0 ;
20699 char * kwnames[] = {
20700 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20701 };
20702
20703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20705 if (!SWIG_IsOK(res1)) {
20706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
20707 }
20708 arg1 = reinterpret_cast< wxDC * >(argp1);
20709 arg2 = obj1;
20710 arg3 = obj2;
20711 arg4 = obj3;
20712 {
20713 PyThreadState* __tstate = wxPyBeginAllowThreads();
20714 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
20715 wxPyEndAllowThreads(__tstate);
20716 if (PyErr_Occurred()) SWIG_fail;
20717 }
20718 resultobj = result;
20719 return resultobj;
20720 fail:
20721 return NULL;
20722 }
20723
20724
20725 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20726 PyObject *resultobj = 0;
20727 wxDC *arg1 = (wxDC *) 0 ;
20728 PyObject *arg2 = (PyObject *) 0 ;
20729 PyObject *arg3 = (PyObject *) 0 ;
20730 PyObject *arg4 = (PyObject *) 0 ;
20731 PyObject *result = 0 ;
20732 void *argp1 = 0 ;
20733 int res1 = 0 ;
20734 PyObject * obj0 = 0 ;
20735 PyObject * obj1 = 0 ;
20736 PyObject * obj2 = 0 ;
20737 PyObject * obj3 = 0 ;
20738 char * kwnames[] = {
20739 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20740 };
20741
20742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20744 if (!SWIG_IsOK(res1)) {
20745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20746 }
20747 arg1 = reinterpret_cast< wxDC * >(argp1);
20748 arg2 = obj1;
20749 arg3 = obj2;
20750 arg4 = obj3;
20751 {
20752 PyThreadState* __tstate = wxPyBeginAllowThreads();
20753 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
20754 wxPyEndAllowThreads(__tstate);
20755 if (PyErr_Occurred()) SWIG_fail;
20756 }
20757 resultobj = result;
20758 return resultobj;
20759 fail:
20760 return NULL;
20761 }
20762
20763
20764 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20765 PyObject *resultobj = 0;
20766 wxDC *arg1 = (wxDC *) 0 ;
20767 PyObject *arg2 = (PyObject *) 0 ;
20768 PyObject *arg3 = (PyObject *) 0 ;
20769 PyObject *arg4 = (PyObject *) 0 ;
20770 PyObject *result = 0 ;
20771 void *argp1 = 0 ;
20772 int res1 = 0 ;
20773 PyObject * obj0 = 0 ;
20774 PyObject * obj1 = 0 ;
20775 PyObject * obj2 = 0 ;
20776 PyObject * obj3 = 0 ;
20777 char * kwnames[] = {
20778 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20779 };
20780
20781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20783 if (!SWIG_IsOK(res1)) {
20784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20785 }
20786 arg1 = reinterpret_cast< wxDC * >(argp1);
20787 arg2 = obj1;
20788 arg3 = obj2;
20789 arg4 = obj3;
20790 {
20791 PyThreadState* __tstate = wxPyBeginAllowThreads();
20792 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
20793 wxPyEndAllowThreads(__tstate);
20794 if (PyErr_Occurred()) SWIG_fail;
20795 }
20796 resultobj = result;
20797 return resultobj;
20798 fail:
20799 return NULL;
20800 }
20801
20802
20803 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20804 PyObject *resultobj = 0;
20805 wxDC *arg1 = (wxDC *) 0 ;
20806 PyObject *arg2 = (PyObject *) 0 ;
20807 PyObject *arg3 = (PyObject *) 0 ;
20808 PyObject *arg4 = (PyObject *) 0 ;
20809 PyObject *result = 0 ;
20810 void *argp1 = 0 ;
20811 int res1 = 0 ;
20812 PyObject * obj0 = 0 ;
20813 PyObject * obj1 = 0 ;
20814 PyObject * obj2 = 0 ;
20815 PyObject * obj3 = 0 ;
20816 char * kwnames[] = {
20817 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20818 };
20819
20820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20822 if (!SWIG_IsOK(res1)) {
20823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20824 }
20825 arg1 = reinterpret_cast< wxDC * >(argp1);
20826 arg2 = obj1;
20827 arg3 = obj2;
20828 arg4 = obj3;
20829 {
20830 PyThreadState* __tstate = wxPyBeginAllowThreads();
20831 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
20832 wxPyEndAllowThreads(__tstate);
20833 if (PyErr_Occurred()) SWIG_fail;
20834 }
20835 resultobj = result;
20836 return resultobj;
20837 fail:
20838 return NULL;
20839 }
20840
20841
20842 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20843 PyObject *resultobj = 0;
20844 wxDC *arg1 = (wxDC *) 0 ;
20845 PyObject *arg2 = (PyObject *) 0 ;
20846 PyObject *arg3 = (PyObject *) 0 ;
20847 PyObject *arg4 = (PyObject *) 0 ;
20848 PyObject *result = 0 ;
20849 void *argp1 = 0 ;
20850 int res1 = 0 ;
20851 PyObject * obj0 = 0 ;
20852 PyObject * obj1 = 0 ;
20853 PyObject * obj2 = 0 ;
20854 PyObject * obj3 = 0 ;
20855 char * kwnames[] = {
20856 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20857 };
20858
20859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20861 if (!SWIG_IsOK(res1)) {
20862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20863 }
20864 arg1 = reinterpret_cast< wxDC * >(argp1);
20865 arg2 = obj1;
20866 arg3 = obj2;
20867 arg4 = obj3;
20868 {
20869 PyThreadState* __tstate = wxPyBeginAllowThreads();
20870 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
20871 wxPyEndAllowThreads(__tstate);
20872 if (PyErr_Occurred()) SWIG_fail;
20873 }
20874 resultobj = result;
20875 return resultobj;
20876 fail:
20877 return NULL;
20878 }
20879
20880
20881 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20882 PyObject *resultobj = 0;
20883 wxDC *arg1 = (wxDC *) 0 ;
20884 PyObject *arg2 = (PyObject *) 0 ;
20885 PyObject *arg3 = (PyObject *) 0 ;
20886 PyObject *arg4 = (PyObject *) 0 ;
20887 PyObject *arg5 = (PyObject *) 0 ;
20888 PyObject *result = 0 ;
20889 void *argp1 = 0 ;
20890 int res1 = 0 ;
20891 PyObject * obj0 = 0 ;
20892 PyObject * obj1 = 0 ;
20893 PyObject * obj2 = 0 ;
20894 PyObject * obj3 = 0 ;
20895 PyObject * obj4 = 0 ;
20896 char * kwnames[] = {
20897 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20898 };
20899
20900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20902 if (!SWIG_IsOK(res1)) {
20903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20904 }
20905 arg1 = reinterpret_cast< wxDC * >(argp1);
20906 arg2 = obj1;
20907 arg3 = obj2;
20908 arg4 = obj3;
20909 arg5 = obj4;
20910 {
20911 PyThreadState* __tstate = wxPyBeginAllowThreads();
20912 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
20913 wxPyEndAllowThreads(__tstate);
20914 if (PyErr_Occurred()) SWIG_fail;
20915 }
20916 resultobj = result;
20917 return resultobj;
20918 fail:
20919 return NULL;
20920 }
20921
20922
20923 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20924 PyObject *obj;
20925 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20926 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
20927 return SWIG_Py_Void();
20928 }
20929
20930 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20931 PyObject *resultobj = 0;
20932 wxMemoryDC *result = 0 ;
20933
20934 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
20935 {
20936 if (!wxPyCheckForApp()) SWIG_fail;
20937 PyThreadState* __tstate = wxPyBeginAllowThreads();
20938 result = (wxMemoryDC *)new wxMemoryDC();
20939 wxPyEndAllowThreads(__tstate);
20940 if (PyErr_Occurred()) SWIG_fail;
20941 }
20942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
20943 return resultobj;
20944 fail:
20945 return NULL;
20946 }
20947
20948
20949 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20950 PyObject *resultobj = 0;
20951 wxDC *arg1 = (wxDC *) 0 ;
20952 wxMemoryDC *result = 0 ;
20953 void *argp1 = 0 ;
20954 int res1 = 0 ;
20955 PyObject * obj0 = 0 ;
20956 char * kwnames[] = {
20957 (char *) "oldDC", NULL
20958 };
20959
20960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
20961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20962 if (!SWIG_IsOK(res1)) {
20963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
20964 }
20965 arg1 = reinterpret_cast< wxDC * >(argp1);
20966 {
20967 if (!wxPyCheckForApp()) SWIG_fail;
20968 PyThreadState* __tstate = wxPyBeginAllowThreads();
20969 result = (wxMemoryDC *)new wxMemoryDC(arg1);
20970 wxPyEndAllowThreads(__tstate);
20971 if (PyErr_Occurred()) SWIG_fail;
20972 }
20973 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
20974 return resultobj;
20975 fail:
20976 return NULL;
20977 }
20978
20979
20980 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20981 PyObject *resultobj = 0;
20982 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
20983 wxBitmap *arg2 = 0 ;
20984 void *argp1 = 0 ;
20985 int res1 = 0 ;
20986 void *argp2 = 0 ;
20987 int res2 = 0 ;
20988 PyObject * obj0 = 0 ;
20989 PyObject * obj1 = 0 ;
20990 char * kwnames[] = {
20991 (char *) "self",(char *) "bitmap", NULL
20992 };
20993
20994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
20995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
20996 if (!SWIG_IsOK(res1)) {
20997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
20998 }
20999 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
21000 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21001 if (!SWIG_IsOK(res2)) {
21002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21003 }
21004 if (!argp2) {
21005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21006 }
21007 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21008 {
21009 PyThreadState* __tstate = wxPyBeginAllowThreads();
21010 (arg1)->SelectObject((wxBitmap const &)*arg2);
21011 wxPyEndAllowThreads(__tstate);
21012 if (PyErr_Occurred()) SWIG_fail;
21013 }
21014 resultobj = SWIG_Py_Void();
21015 return resultobj;
21016 fail:
21017 return NULL;
21018 }
21019
21020
21021 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21022 PyObject *obj;
21023 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21024 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
21025 return SWIG_Py_Void();
21026 }
21027
21028 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21029 return SWIG_Python_InitShadowInstance(args);
21030 }
21031
21032 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21033 PyObject *resultobj = 0;
21034 wxDC *arg1 = (wxDC *) 0 ;
21035 wxBitmap const &arg2_defvalue = wxNullBitmap ;
21036 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
21037 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21038 wxBufferedDC *result = 0 ;
21039 void *argp1 = 0 ;
21040 int res1 = 0 ;
21041 void *argp2 = 0 ;
21042 int res2 = 0 ;
21043 int val3 ;
21044 int ecode3 = 0 ;
21045
21046 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
21047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21048 if (!SWIG_IsOK(res1)) {
21049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
21050 }
21051 arg1 = reinterpret_cast< wxDC * >(argp1);
21052 if (swig_obj[1]) {
21053 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21054 if (!SWIG_IsOK(res2)) {
21055 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21056 }
21057 if (!argp2) {
21058 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21059 }
21060 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21061 }
21062 if (swig_obj[2]) {
21063 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
21064 if (!SWIG_IsOK(ecode3)) {
21065 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
21066 }
21067 arg3 = static_cast< int >(val3);
21068 }
21069 {
21070 if (!wxPyCheckForApp()) SWIG_fail;
21071 PyThreadState* __tstate = wxPyBeginAllowThreads();
21072 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
21073 wxPyEndAllowThreads(__tstate);
21074 if (PyErr_Occurred()) SWIG_fail;
21075 }
21076 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
21077 return resultobj;
21078 fail:
21079 return NULL;
21080 }
21081
21082
21083 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21084 PyObject *resultobj = 0;
21085 wxDC *arg1 = (wxDC *) 0 ;
21086 wxSize *arg2 = 0 ;
21087 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21088 wxBufferedDC *result = 0 ;
21089 void *argp1 = 0 ;
21090 int res1 = 0 ;
21091 wxSize temp2 ;
21092 int val3 ;
21093 int ecode3 = 0 ;
21094
21095 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
21096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21097 if (!SWIG_IsOK(res1)) {
21098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
21099 }
21100 arg1 = reinterpret_cast< wxDC * >(argp1);
21101 {
21102 arg2 = &temp2;
21103 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
21104 }
21105 if (swig_obj[2]) {
21106 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
21107 if (!SWIG_IsOK(ecode3)) {
21108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
21109 }
21110 arg3 = static_cast< int >(val3);
21111 }
21112 {
21113 if (!wxPyCheckForApp()) SWIG_fail;
21114 PyThreadState* __tstate = wxPyBeginAllowThreads();
21115 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
21116 wxPyEndAllowThreads(__tstate);
21117 if (PyErr_Occurred()) SWIG_fail;
21118 }
21119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
21120 return resultobj;
21121 fail:
21122 return NULL;
21123 }
21124
21125
21126 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
21127 int argc;
21128 PyObject *argv[4];
21129
21130 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
21131 --argc;
21132 if ((argc >= 1) && (argc <= 3)) {
21133 int _v = 0;
21134 if (argc > 1) {
21135 {
21136 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
21137 _v = SWIG_CheckState(res);
21138 }
21139 if (!_v) goto check_1;
21140 }
21141 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
21142 }
21143 check_1:
21144
21145 if ((argc >= 2) && (argc <= 3)) {
21146 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
21147 }
21148
21149 fail:
21150 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
21151 return NULL;
21152 }
21153
21154
21155 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21156 PyObject *resultobj = 0;
21157 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
21158 void *argp1 = 0 ;
21159 int res1 = 0 ;
21160 PyObject *swig_obj[1] ;
21161
21162 if (!args) SWIG_fail;
21163 swig_obj[0] = args;
21164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
21165 if (!SWIG_IsOK(res1)) {
21166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
21167 }
21168 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
21169 {
21170 PyThreadState* __tstate = wxPyBeginAllowThreads();
21171 delete arg1;
21172
21173 wxPyEndAllowThreads(__tstate);
21174 if (PyErr_Occurred()) SWIG_fail;
21175 }
21176 resultobj = SWIG_Py_Void();
21177 return resultobj;
21178 fail:
21179 return NULL;
21180 }
21181
21182
21183 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21184 PyObject *resultobj = 0;
21185 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
21186 void *argp1 = 0 ;
21187 int res1 = 0 ;
21188 PyObject *swig_obj[1] ;
21189
21190 if (!args) SWIG_fail;
21191 swig_obj[0] = args;
21192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
21193 if (!SWIG_IsOK(res1)) {
21194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
21195 }
21196 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
21197 {
21198 PyThreadState* __tstate = wxPyBeginAllowThreads();
21199 (arg1)->UnMask();
21200 wxPyEndAllowThreads(__tstate);
21201 if (PyErr_Occurred()) SWIG_fail;
21202 }
21203 resultobj = SWIG_Py_Void();
21204 return resultobj;
21205 fail:
21206 return NULL;
21207 }
21208
21209
21210 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21211 PyObject *obj;
21212 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21213 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
21214 return SWIG_Py_Void();
21215 }
21216
21217 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21218 return SWIG_Python_InitShadowInstance(args);
21219 }
21220
21221 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21222 PyObject *resultobj = 0;
21223 wxWindow *arg1 = (wxWindow *) 0 ;
21224 wxBitmap const &arg2_defvalue = wxNullBitmap ;
21225 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
21226 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21227 wxBufferedPaintDC *result = 0 ;
21228 void *argp1 = 0 ;
21229 int res1 = 0 ;
21230 void *argp2 = 0 ;
21231 int res2 = 0 ;
21232 int val3 ;
21233 int ecode3 = 0 ;
21234 PyObject * obj0 = 0 ;
21235 PyObject * obj1 = 0 ;
21236 PyObject * obj2 = 0 ;
21237 char * kwnames[] = {
21238 (char *) "window",(char *) "buffer",(char *) "style", NULL
21239 };
21240
21241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21243 if (!SWIG_IsOK(res1)) {
21244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21245 }
21246 arg1 = reinterpret_cast< wxWindow * >(argp1);
21247 if (obj1) {
21248 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21249 if (!SWIG_IsOK(res2)) {
21250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21251 }
21252 if (!argp2) {
21253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21254 }
21255 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21256 }
21257 if (obj2) {
21258 ecode3 = SWIG_AsVal_int(obj2, &val3);
21259 if (!SWIG_IsOK(ecode3)) {
21260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
21261 }
21262 arg3 = static_cast< int >(val3);
21263 }
21264 {
21265 if (!wxPyCheckForApp()) SWIG_fail;
21266 PyThreadState* __tstate = wxPyBeginAllowThreads();
21267 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
21268 wxPyEndAllowThreads(__tstate);
21269 if (PyErr_Occurred()) SWIG_fail;
21270 }
21271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
21272 return resultobj;
21273 fail:
21274 return NULL;
21275 }
21276
21277
21278 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21279 PyObject *obj;
21280 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21281 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
21282 return SWIG_Py_Void();
21283 }
21284
21285 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21286 return SWIG_Python_InitShadowInstance(args);
21287 }
21288
21289 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21290 PyObject *resultobj = 0;
21291 wxScreenDC *result = 0 ;
21292
21293 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
21294 {
21295 if (!wxPyCheckForApp()) SWIG_fail;
21296 PyThreadState* __tstate = wxPyBeginAllowThreads();
21297 result = (wxScreenDC *)new wxScreenDC();
21298 wxPyEndAllowThreads(__tstate);
21299 if (PyErr_Occurred()) SWIG_fail;
21300 }
21301 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
21302 return resultobj;
21303 fail:
21304 return NULL;
21305 }
21306
21307
21308 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21309 PyObject *resultobj = 0;
21310 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21311 wxWindow *arg2 = (wxWindow *) 0 ;
21312 bool result;
21313 void *argp1 = 0 ;
21314 int res1 = 0 ;
21315 void *argp2 = 0 ;
21316 int res2 = 0 ;
21317 PyObject * obj0 = 0 ;
21318 PyObject * obj1 = 0 ;
21319 char * kwnames[] = {
21320 (char *) "self",(char *) "window", NULL
21321 };
21322
21323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
21324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21325 if (!SWIG_IsOK(res1)) {
21326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21327 }
21328 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21329 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21330 if (!SWIG_IsOK(res2)) {
21331 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
21332 }
21333 arg2 = reinterpret_cast< wxWindow * >(argp2);
21334 {
21335 PyThreadState* __tstate = wxPyBeginAllowThreads();
21336 result = (bool)(arg1)->StartDrawingOnTop(arg2);
21337 wxPyEndAllowThreads(__tstate);
21338 if (PyErr_Occurred()) SWIG_fail;
21339 }
21340 {
21341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21342 }
21343 return resultobj;
21344 fail:
21345 return NULL;
21346 }
21347
21348
21349 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21350 PyObject *resultobj = 0;
21351 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21352 wxRect *arg2 = (wxRect *) NULL ;
21353 bool result;
21354 void *argp1 = 0 ;
21355 int res1 = 0 ;
21356 void *argp2 = 0 ;
21357 int res2 = 0 ;
21358 PyObject * obj0 = 0 ;
21359 PyObject * obj1 = 0 ;
21360 char * kwnames[] = {
21361 (char *) "self",(char *) "rect", NULL
21362 };
21363
21364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
21365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21366 if (!SWIG_IsOK(res1)) {
21367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21368 }
21369 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21370 if (obj1) {
21371 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
21372 if (!SWIG_IsOK(res2)) {
21373 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
21374 }
21375 arg2 = reinterpret_cast< wxRect * >(argp2);
21376 }
21377 {
21378 PyThreadState* __tstate = wxPyBeginAllowThreads();
21379 result = (bool)(arg1)->StartDrawingOnTop(arg2);
21380 wxPyEndAllowThreads(__tstate);
21381 if (PyErr_Occurred()) SWIG_fail;
21382 }
21383 {
21384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21385 }
21386 return resultobj;
21387 fail:
21388 return NULL;
21389 }
21390
21391
21392 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21393 PyObject *resultobj = 0;
21394 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21395 bool result;
21396 void *argp1 = 0 ;
21397 int res1 = 0 ;
21398 PyObject *swig_obj[1] ;
21399
21400 if (!args) SWIG_fail;
21401 swig_obj[0] = args;
21402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21403 if (!SWIG_IsOK(res1)) {
21404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21405 }
21406 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21407 {
21408 PyThreadState* __tstate = wxPyBeginAllowThreads();
21409 result = (bool)(arg1)->EndDrawingOnTop();
21410 wxPyEndAllowThreads(__tstate);
21411 if (PyErr_Occurred()) SWIG_fail;
21412 }
21413 {
21414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21415 }
21416 return resultobj;
21417 fail:
21418 return NULL;
21419 }
21420
21421
21422 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21423 PyObject *obj;
21424 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21425 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
21426 return SWIG_Py_Void();
21427 }
21428
21429 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21430 return SWIG_Python_InitShadowInstance(args);
21431 }
21432
21433 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21434 PyObject *resultobj = 0;
21435 wxWindow *arg1 = (wxWindow *) 0 ;
21436 wxClientDC *result = 0 ;
21437 void *argp1 = 0 ;
21438 int res1 = 0 ;
21439 PyObject * obj0 = 0 ;
21440 char * kwnames[] = {
21441 (char *) "win", NULL
21442 };
21443
21444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
21445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21446 if (!SWIG_IsOK(res1)) {
21447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21448 }
21449 arg1 = reinterpret_cast< wxWindow * >(argp1);
21450 {
21451 if (!wxPyCheckForApp()) SWIG_fail;
21452 PyThreadState* __tstate = wxPyBeginAllowThreads();
21453 result = (wxClientDC *)new wxClientDC(arg1);
21454 wxPyEndAllowThreads(__tstate);
21455 if (PyErr_Occurred()) SWIG_fail;
21456 }
21457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
21458 return resultobj;
21459 fail:
21460 return NULL;
21461 }
21462
21463
21464 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21465 PyObject *obj;
21466 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21467 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
21468 return SWIG_Py_Void();
21469 }
21470
21471 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21472 return SWIG_Python_InitShadowInstance(args);
21473 }
21474
21475 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21476 PyObject *resultobj = 0;
21477 wxWindow *arg1 = (wxWindow *) 0 ;
21478 wxPaintDC *result = 0 ;
21479 void *argp1 = 0 ;
21480 int res1 = 0 ;
21481 PyObject * obj0 = 0 ;
21482 char * kwnames[] = {
21483 (char *) "win", NULL
21484 };
21485
21486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
21487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21488 if (!SWIG_IsOK(res1)) {
21489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21490 }
21491 arg1 = reinterpret_cast< wxWindow * >(argp1);
21492 {
21493 if (!wxPyCheckForApp()) SWIG_fail;
21494 PyThreadState* __tstate = wxPyBeginAllowThreads();
21495 result = (wxPaintDC *)new wxPaintDC(arg1);
21496 wxPyEndAllowThreads(__tstate);
21497 if (PyErr_Occurred()) SWIG_fail;
21498 }
21499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
21500 return resultobj;
21501 fail:
21502 return NULL;
21503 }
21504
21505
21506 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21507 PyObject *obj;
21508 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21509 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
21510 return SWIG_Py_Void();
21511 }
21512
21513 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21514 return SWIG_Python_InitShadowInstance(args);
21515 }
21516
21517 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21518 PyObject *resultobj = 0;
21519 wxWindow *arg1 = (wxWindow *) 0 ;
21520 wxWindowDC *result = 0 ;
21521 void *argp1 = 0 ;
21522 int res1 = 0 ;
21523 PyObject * obj0 = 0 ;
21524 char * kwnames[] = {
21525 (char *) "win", NULL
21526 };
21527
21528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
21529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21530 if (!SWIG_IsOK(res1)) {
21531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21532 }
21533 arg1 = reinterpret_cast< wxWindow * >(argp1);
21534 {
21535 if (!wxPyCheckForApp()) SWIG_fail;
21536 PyThreadState* __tstate = wxPyBeginAllowThreads();
21537 result = (wxWindowDC *)new wxWindowDC(arg1);
21538 wxPyEndAllowThreads(__tstate);
21539 if (PyErr_Occurred()) SWIG_fail;
21540 }
21541 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
21542 return resultobj;
21543 fail:
21544 return NULL;
21545 }
21546
21547
21548 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21549 PyObject *obj;
21550 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21551 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
21552 return SWIG_Py_Void();
21553 }
21554
21555 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21556 return SWIG_Python_InitShadowInstance(args);
21557 }
21558
21559 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21560 PyObject *resultobj = 0;
21561 wxDC *arg1 = 0 ;
21562 bool arg2 ;
21563 wxMirrorDC *result = 0 ;
21564 void *argp1 = 0 ;
21565 int res1 = 0 ;
21566 bool val2 ;
21567 int ecode2 = 0 ;
21568 PyObject * obj0 = 0 ;
21569 PyObject * obj1 = 0 ;
21570 char * kwnames[] = {
21571 (char *) "dc",(char *) "mirror", NULL
21572 };
21573
21574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
21575 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
21576 if (!SWIG_IsOK(res1)) {
21577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
21578 }
21579 if (!argp1) {
21580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
21581 }
21582 arg1 = reinterpret_cast< wxDC * >(argp1);
21583 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21584 if (!SWIG_IsOK(ecode2)) {
21585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
21586 }
21587 arg2 = static_cast< bool >(val2);
21588 {
21589 if (!wxPyCheckForApp()) SWIG_fail;
21590 PyThreadState* __tstate = wxPyBeginAllowThreads();
21591 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
21592 wxPyEndAllowThreads(__tstate);
21593 if (PyErr_Occurred()) SWIG_fail;
21594 }
21595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
21596 return resultobj;
21597 fail:
21598 return NULL;
21599 }
21600
21601
21602 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21603 PyObject *obj;
21604 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21605 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
21606 return SWIG_Py_Void();
21607 }
21608
21609 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21610 return SWIG_Python_InitShadowInstance(args);
21611 }
21612
21613 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21614 PyObject *resultobj = 0;
21615 wxPrintData *arg1 = 0 ;
21616 wxPostScriptDC *result = 0 ;
21617 void *argp1 = 0 ;
21618 int res1 = 0 ;
21619 PyObject * obj0 = 0 ;
21620 char * kwnames[] = {
21621 (char *) "printData", NULL
21622 };
21623
21624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
21625 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21626 if (!SWIG_IsOK(res1)) {
21627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21628 }
21629 if (!argp1) {
21630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21631 }
21632 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21633 {
21634 if (!wxPyCheckForApp()) SWIG_fail;
21635 PyThreadState* __tstate = wxPyBeginAllowThreads();
21636 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
21637 wxPyEndAllowThreads(__tstate);
21638 if (PyErr_Occurred()) SWIG_fail;
21639 }
21640 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
21641 return resultobj;
21642 fail:
21643 return NULL;
21644 }
21645
21646
21647 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21648 PyObject *resultobj = 0;
21649 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21650 wxPrintData *result = 0 ;
21651 void *argp1 = 0 ;
21652 int res1 = 0 ;
21653 PyObject *swig_obj[1] ;
21654
21655 if (!args) SWIG_fail;
21656 swig_obj[0] = args;
21657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21658 if (!SWIG_IsOK(res1)) {
21659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21660 }
21661 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21662 {
21663 PyThreadState* __tstate = wxPyBeginAllowThreads();
21664 {
21665 wxPrintData &_result_ref = (arg1)->GetPrintData();
21666 result = (wxPrintData *) &_result_ref;
21667 }
21668 wxPyEndAllowThreads(__tstate);
21669 if (PyErr_Occurred()) SWIG_fail;
21670 }
21671 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
21672 return resultobj;
21673 fail:
21674 return NULL;
21675 }
21676
21677
21678 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21679 PyObject *resultobj = 0;
21680 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21681 wxPrintData *arg2 = 0 ;
21682 void *argp1 = 0 ;
21683 int res1 = 0 ;
21684 void *argp2 = 0 ;
21685 int res2 = 0 ;
21686 PyObject * obj0 = 0 ;
21687 PyObject * obj1 = 0 ;
21688 char * kwnames[] = {
21689 (char *) "self",(char *) "data", NULL
21690 };
21691
21692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
21693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21694 if (!SWIG_IsOK(res1)) {
21695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21696 }
21697 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21698 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
21699 if (!SWIG_IsOK(res2)) {
21700 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21701 }
21702 if (!argp2) {
21703 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21704 }
21705 arg2 = reinterpret_cast< wxPrintData * >(argp2);
21706 {
21707 PyThreadState* __tstate = wxPyBeginAllowThreads();
21708 (arg1)->SetPrintData((wxPrintData const &)*arg2);
21709 wxPyEndAllowThreads(__tstate);
21710 if (PyErr_Occurred()) SWIG_fail;
21711 }
21712 resultobj = SWIG_Py_Void();
21713 return resultobj;
21714 fail:
21715 return NULL;
21716 }
21717
21718
21719 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21720 PyObject *resultobj = 0;
21721 int arg1 ;
21722 int val1 ;
21723 int ecode1 = 0 ;
21724 PyObject * obj0 = 0 ;
21725 char * kwnames[] = {
21726 (char *) "ppi", NULL
21727 };
21728
21729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
21730 ecode1 = SWIG_AsVal_int(obj0, &val1);
21731 if (!SWIG_IsOK(ecode1)) {
21732 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21733 }
21734 arg1 = static_cast< int >(val1);
21735 {
21736 PyThreadState* __tstate = wxPyBeginAllowThreads();
21737 wxPostScriptDC::SetResolution(arg1);
21738 wxPyEndAllowThreads(__tstate);
21739 if (PyErr_Occurred()) SWIG_fail;
21740 }
21741 resultobj = SWIG_Py_Void();
21742 return resultobj;
21743 fail:
21744 return NULL;
21745 }
21746
21747
21748 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21749 PyObject *resultobj = 0;
21750 int result;
21751
21752 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
21753 {
21754 PyThreadState* __tstate = wxPyBeginAllowThreads();
21755 result = (int)wxPostScriptDC::GetResolution();
21756 wxPyEndAllowThreads(__tstate);
21757 if (PyErr_Occurred()) SWIG_fail;
21758 }
21759 resultobj = SWIG_From_int(static_cast< int >(result));
21760 return resultobj;
21761 fail:
21762 return NULL;
21763 }
21764
21765
21766 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21767 PyObject *obj;
21768 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21769 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
21770 return SWIG_Py_Void();
21771 }
21772
21773 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21774 return SWIG_Python_InitShadowInstance(args);
21775 }
21776
21777 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21778 PyObject *resultobj = 0;
21779 wxString const &arg1_defvalue = wxPyEmptyString ;
21780 wxString *arg1 = (wxString *) &arg1_defvalue ;
21781 wxMetaFile *result = 0 ;
21782 bool temp1 = false ;
21783 PyObject * obj0 = 0 ;
21784 char * kwnames[] = {
21785 (char *) "filename", NULL
21786 };
21787
21788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
21789 if (obj0) {
21790 {
21791 arg1 = wxString_in_helper(obj0);
21792 if (arg1 == NULL) SWIG_fail;
21793 temp1 = true;
21794 }
21795 }
21796 {
21797 if (!wxPyCheckForApp()) SWIG_fail;
21798 PyThreadState* __tstate = wxPyBeginAllowThreads();
21799 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
21800 wxPyEndAllowThreads(__tstate);
21801 if (PyErr_Occurred()) SWIG_fail;
21802 }
21803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
21804 {
21805 if (temp1)
21806 delete arg1;
21807 }
21808 return resultobj;
21809 fail:
21810 {
21811 if (temp1)
21812 delete arg1;
21813 }
21814 return NULL;
21815 }
21816
21817
21818 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21819 PyObject *resultobj = 0;
21820 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21821 void *argp1 = 0 ;
21822 int res1 = 0 ;
21823 PyObject *swig_obj[1] ;
21824
21825 if (!args) SWIG_fail;
21826 swig_obj[0] = args;
21827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
21828 if (!SWIG_IsOK(res1)) {
21829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21830 }
21831 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21832 {
21833 PyThreadState* __tstate = wxPyBeginAllowThreads();
21834 delete arg1;
21835
21836 wxPyEndAllowThreads(__tstate);
21837 if (PyErr_Occurred()) SWIG_fail;
21838 }
21839 resultobj = SWIG_Py_Void();
21840 return resultobj;
21841 fail:
21842 return NULL;
21843 }
21844
21845
21846 SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21847 PyObject *resultobj = 0;
21848 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21849 bool result;
21850 void *argp1 = 0 ;
21851 int res1 = 0 ;
21852 PyObject *swig_obj[1] ;
21853
21854 if (!args) SWIG_fail;
21855 swig_obj[0] = args;
21856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21857 if (!SWIG_IsOK(res1)) {
21858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21859 }
21860 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21861 {
21862 PyThreadState* __tstate = wxPyBeginAllowThreads();
21863 result = (bool)(arg1)->Ok();
21864 wxPyEndAllowThreads(__tstate);
21865 if (PyErr_Occurred()) SWIG_fail;
21866 }
21867 {
21868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21869 }
21870 return resultobj;
21871 fail:
21872 return NULL;
21873 }
21874
21875
21876 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21877 PyObject *resultobj = 0;
21878 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21879 int arg2 = (int) 0 ;
21880 int arg3 = (int) 0 ;
21881 bool result;
21882 void *argp1 = 0 ;
21883 int res1 = 0 ;
21884 int val2 ;
21885 int ecode2 = 0 ;
21886 int val3 ;
21887 int ecode3 = 0 ;
21888 PyObject * obj0 = 0 ;
21889 PyObject * obj1 = 0 ;
21890 PyObject * obj2 = 0 ;
21891 char * kwnames[] = {
21892 (char *) "self",(char *) "width",(char *) "height", NULL
21893 };
21894
21895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21897 if (!SWIG_IsOK(res1)) {
21898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21899 }
21900 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21901 if (obj1) {
21902 ecode2 = SWIG_AsVal_int(obj1, &val2);
21903 if (!SWIG_IsOK(ecode2)) {
21904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
21905 }
21906 arg2 = static_cast< int >(val2);
21907 }
21908 if (obj2) {
21909 ecode3 = SWIG_AsVal_int(obj2, &val3);
21910 if (!SWIG_IsOK(ecode3)) {
21911 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
21912 }
21913 arg3 = static_cast< int >(val3);
21914 }
21915 {
21916 PyThreadState* __tstate = wxPyBeginAllowThreads();
21917 result = (bool)(arg1)->SetClipboard(arg2,arg3);
21918 wxPyEndAllowThreads(__tstate);
21919 if (PyErr_Occurred()) SWIG_fail;
21920 }
21921 {
21922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21923 }
21924 return resultobj;
21925 fail:
21926 return NULL;
21927 }
21928
21929
21930 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21931 PyObject *resultobj = 0;
21932 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21933 wxSize result;
21934 void *argp1 = 0 ;
21935 int res1 = 0 ;
21936 PyObject *swig_obj[1] ;
21937
21938 if (!args) SWIG_fail;
21939 swig_obj[0] = args;
21940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21941 if (!SWIG_IsOK(res1)) {
21942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21943 }
21944 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21945 {
21946 PyThreadState* __tstate = wxPyBeginAllowThreads();
21947 result = (arg1)->GetSize();
21948 wxPyEndAllowThreads(__tstate);
21949 if (PyErr_Occurred()) SWIG_fail;
21950 }
21951 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21952 return resultobj;
21953 fail:
21954 return NULL;
21955 }
21956
21957
21958 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21959 PyObject *resultobj = 0;
21960 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21961 int result;
21962 void *argp1 = 0 ;
21963 int res1 = 0 ;
21964 PyObject *swig_obj[1] ;
21965
21966 if (!args) SWIG_fail;
21967 swig_obj[0] = args;
21968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21969 if (!SWIG_IsOK(res1)) {
21970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21971 }
21972 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21973 {
21974 PyThreadState* __tstate = wxPyBeginAllowThreads();
21975 result = (int)(arg1)->GetWidth();
21976 wxPyEndAllowThreads(__tstate);
21977 if (PyErr_Occurred()) SWIG_fail;
21978 }
21979 resultobj = SWIG_From_int(static_cast< int >(result));
21980 return resultobj;
21981 fail:
21982 return NULL;
21983 }
21984
21985
21986 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21987 PyObject *resultobj = 0;
21988 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21989 int result;
21990 void *argp1 = 0 ;
21991 int res1 = 0 ;
21992 PyObject *swig_obj[1] ;
21993
21994 if (!args) SWIG_fail;
21995 swig_obj[0] = args;
21996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21997 if (!SWIG_IsOK(res1)) {
21998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21999 }
22000 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22001 {
22002 PyThreadState* __tstate = wxPyBeginAllowThreads();
22003 result = (int)(arg1)->GetHeight();
22004 wxPyEndAllowThreads(__tstate);
22005 if (PyErr_Occurred()) SWIG_fail;
22006 }
22007 resultobj = SWIG_From_int(static_cast< int >(result));
22008 return resultobj;
22009 fail:
22010 return NULL;
22011 }
22012
22013
22014 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22015 PyObject *resultobj = 0;
22016 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22017 wxString *result = 0 ;
22018 void *argp1 = 0 ;
22019 int res1 = 0 ;
22020 PyObject *swig_obj[1] ;
22021
22022 if (!args) SWIG_fail;
22023 swig_obj[0] = args;
22024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22025 if (!SWIG_IsOK(res1)) {
22026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
22027 }
22028 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22029 {
22030 PyThreadState* __tstate = wxPyBeginAllowThreads();
22031 {
22032 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
22033 result = (wxString *) &_result_ref;
22034 }
22035 wxPyEndAllowThreads(__tstate);
22036 if (PyErr_Occurred()) SWIG_fail;
22037 }
22038 {
22039 #if wxUSE_UNICODE
22040 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
22041 #else
22042 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
22043 #endif
22044 }
22045 return resultobj;
22046 fail:
22047 return NULL;
22048 }
22049
22050
22051 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22052 PyObject *obj;
22053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22054 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
22055 return SWIG_Py_Void();
22056 }
22057
22058 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22059 return SWIG_Python_InitShadowInstance(args);
22060 }
22061
22062 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22063 PyObject *resultobj = 0;
22064 wxString const &arg1_defvalue = wxPyEmptyString ;
22065 wxString *arg1 = (wxString *) &arg1_defvalue ;
22066 int arg2 = (int) 0 ;
22067 int arg3 = (int) 0 ;
22068 wxString const &arg4_defvalue = wxPyEmptyString ;
22069 wxString *arg4 = (wxString *) &arg4_defvalue ;
22070 wxMetaFileDC *result = 0 ;
22071 bool temp1 = false ;
22072 int val2 ;
22073 int ecode2 = 0 ;
22074 int val3 ;
22075 int ecode3 = 0 ;
22076 bool temp4 = false ;
22077 PyObject * obj0 = 0 ;
22078 PyObject * obj1 = 0 ;
22079 PyObject * obj2 = 0 ;
22080 PyObject * obj3 = 0 ;
22081 char * kwnames[] = {
22082 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
22083 };
22084
22085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22086 if (obj0) {
22087 {
22088 arg1 = wxString_in_helper(obj0);
22089 if (arg1 == NULL) SWIG_fail;
22090 temp1 = true;
22091 }
22092 }
22093 if (obj1) {
22094 ecode2 = SWIG_AsVal_int(obj1, &val2);
22095 if (!SWIG_IsOK(ecode2)) {
22096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
22097 }
22098 arg2 = static_cast< int >(val2);
22099 }
22100 if (obj2) {
22101 ecode3 = SWIG_AsVal_int(obj2, &val3);
22102 if (!SWIG_IsOK(ecode3)) {
22103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
22104 }
22105 arg3 = static_cast< int >(val3);
22106 }
22107 if (obj3) {
22108 {
22109 arg4 = wxString_in_helper(obj3);
22110 if (arg4 == NULL) SWIG_fail;
22111 temp4 = true;
22112 }
22113 }
22114 {
22115 if (!wxPyCheckForApp()) SWIG_fail;
22116 PyThreadState* __tstate = wxPyBeginAllowThreads();
22117 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
22118 wxPyEndAllowThreads(__tstate);
22119 if (PyErr_Occurred()) SWIG_fail;
22120 }
22121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
22122 {
22123 if (temp1)
22124 delete arg1;
22125 }
22126 {
22127 if (temp4)
22128 delete arg4;
22129 }
22130 return resultobj;
22131 fail:
22132 {
22133 if (temp1)
22134 delete arg1;
22135 }
22136 {
22137 if (temp4)
22138 delete arg4;
22139 }
22140 return NULL;
22141 }
22142
22143
22144 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22145 PyObject *resultobj = 0;
22146 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
22147 wxMetaFile *result = 0 ;
22148 void *argp1 = 0 ;
22149 int res1 = 0 ;
22150 PyObject *swig_obj[1] ;
22151
22152 if (!args) SWIG_fail;
22153 swig_obj[0] = args;
22154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
22155 if (!SWIG_IsOK(res1)) {
22156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
22157 }
22158 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
22159 {
22160 PyThreadState* __tstate = wxPyBeginAllowThreads();
22161 result = (wxMetaFile *)(arg1)->Close();
22162 wxPyEndAllowThreads(__tstate);
22163 if (PyErr_Occurred()) SWIG_fail;
22164 }
22165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
22166 return resultobj;
22167 fail:
22168 return NULL;
22169 }
22170
22171
22172 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22173 PyObject *obj;
22174 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22175 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
22176 return SWIG_Py_Void();
22177 }
22178
22179 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22180 return SWIG_Python_InitShadowInstance(args);
22181 }
22182
22183 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22184 PyObject *resultobj = 0;
22185 wxPrintData *arg1 = 0 ;
22186 wxPrinterDC *result = 0 ;
22187 void *argp1 = 0 ;
22188 int res1 = 0 ;
22189 PyObject * obj0 = 0 ;
22190 char * kwnames[] = {
22191 (char *) "printData", NULL
22192 };
22193
22194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
22195 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
22196 if (!SWIG_IsOK(res1)) {
22197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
22198 }
22199 if (!argp1) {
22200 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
22201 }
22202 arg1 = reinterpret_cast< wxPrintData * >(argp1);
22203 {
22204 if (!wxPyCheckForApp()) SWIG_fail;
22205 PyThreadState* __tstate = wxPyBeginAllowThreads();
22206 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
22207 wxPyEndAllowThreads(__tstate);
22208 if (PyErr_Occurred()) SWIG_fail;
22209 }
22210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
22211 return resultobj;
22212 fail:
22213 return NULL;
22214 }
22215
22216
22217 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22218 PyObject *obj;
22219 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22220 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
22221 return SWIG_Py_Void();
22222 }
22223
22224 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22225 return SWIG_Python_InitShadowInstance(args);
22226 }
22227
22228 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22229 PyObject *resultobj = 0;
22230 int arg1 ;
22231 int arg2 ;
22232 int arg3 = (int) true ;
22233 int arg4 = (int) 1 ;
22234 wxImageList *result = 0 ;
22235 int val1 ;
22236 int ecode1 = 0 ;
22237 int val2 ;
22238 int ecode2 = 0 ;
22239 int val3 ;
22240 int ecode3 = 0 ;
22241 int val4 ;
22242 int ecode4 = 0 ;
22243 PyObject * obj0 = 0 ;
22244 PyObject * obj1 = 0 ;
22245 PyObject * obj2 = 0 ;
22246 PyObject * obj3 = 0 ;
22247 char * kwnames[] = {
22248 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
22249 };
22250
22251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22252 ecode1 = SWIG_AsVal_int(obj0, &val1);
22253 if (!SWIG_IsOK(ecode1)) {
22254 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
22255 }
22256 arg1 = static_cast< int >(val1);
22257 ecode2 = SWIG_AsVal_int(obj1, &val2);
22258 if (!SWIG_IsOK(ecode2)) {
22259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
22260 }
22261 arg2 = static_cast< int >(val2);
22262 if (obj2) {
22263 ecode3 = SWIG_AsVal_int(obj2, &val3);
22264 if (!SWIG_IsOK(ecode3)) {
22265 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
22266 }
22267 arg3 = static_cast< int >(val3);
22268 }
22269 if (obj3) {
22270 ecode4 = SWIG_AsVal_int(obj3, &val4);
22271 if (!SWIG_IsOK(ecode4)) {
22272 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
22273 }
22274 arg4 = static_cast< int >(val4);
22275 }
22276 {
22277 if (!wxPyCheckForApp()) SWIG_fail;
22278 PyThreadState* __tstate = wxPyBeginAllowThreads();
22279 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
22280 wxPyEndAllowThreads(__tstate);
22281 if (PyErr_Occurred()) SWIG_fail;
22282 }
22283 {
22284 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
22285 }
22286 return resultobj;
22287 fail:
22288 return NULL;
22289 }
22290
22291
22292 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22293 PyObject *resultobj = 0;
22294 wxImageList *arg1 = (wxImageList *) 0 ;
22295 void *argp1 = 0 ;
22296 int res1 = 0 ;
22297 PyObject *swig_obj[1] ;
22298
22299 if (!args) SWIG_fail;
22300 swig_obj[0] = args;
22301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
22302 if (!SWIG_IsOK(res1)) {
22303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
22304 }
22305 arg1 = reinterpret_cast< wxImageList * >(argp1);
22306 {
22307 PyThreadState* __tstate = wxPyBeginAllowThreads();
22308 delete arg1;
22309
22310 wxPyEndAllowThreads(__tstate);
22311 if (PyErr_Occurred()) SWIG_fail;
22312 }
22313 resultobj = SWIG_Py_Void();
22314 return resultobj;
22315 fail:
22316 return NULL;
22317 }
22318
22319
22320 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22321 PyObject *resultobj = 0;
22322 wxImageList *arg1 = (wxImageList *) 0 ;
22323 wxBitmap *arg2 = 0 ;
22324 wxBitmap const &arg3_defvalue = wxNullBitmap ;
22325 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
22326 int result;
22327 void *argp1 = 0 ;
22328 int res1 = 0 ;
22329 void *argp2 = 0 ;
22330 int res2 = 0 ;
22331 void *argp3 = 0 ;
22332 int res3 = 0 ;
22333 PyObject * obj0 = 0 ;
22334 PyObject * obj1 = 0 ;
22335 PyObject * obj2 = 0 ;
22336 char * kwnames[] = {
22337 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
22338 };
22339
22340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22342 if (!SWIG_IsOK(res1)) {
22343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
22344 }
22345 arg1 = reinterpret_cast< wxImageList * >(argp1);
22346 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22347 if (!SWIG_IsOK(res2)) {
22348 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22349 }
22350 if (!argp2) {
22351 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22352 }
22353 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22354 if (obj2) {
22355 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
22356 if (!SWIG_IsOK(res3)) {
22357 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22358 }
22359 if (!argp3) {
22360 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22361 }
22362 arg3 = reinterpret_cast< wxBitmap * >(argp3);
22363 }
22364 {
22365 PyThreadState* __tstate = wxPyBeginAllowThreads();
22366 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
22367 wxPyEndAllowThreads(__tstate);
22368 if (PyErr_Occurred()) SWIG_fail;
22369 }
22370 resultobj = SWIG_From_int(static_cast< int >(result));
22371 return resultobj;
22372 fail:
22373 return NULL;
22374 }
22375
22376
22377 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22378 PyObject *resultobj = 0;
22379 wxImageList *arg1 = (wxImageList *) 0 ;
22380 wxBitmap *arg2 = 0 ;
22381 wxColour *arg3 = 0 ;
22382 int result;
22383 void *argp1 = 0 ;
22384 int res1 = 0 ;
22385 void *argp2 = 0 ;
22386 int res2 = 0 ;
22387 wxColour temp3 ;
22388 PyObject * obj0 = 0 ;
22389 PyObject * obj1 = 0 ;
22390 PyObject * obj2 = 0 ;
22391 char * kwnames[] = {
22392 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
22393 };
22394
22395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22397 if (!SWIG_IsOK(res1)) {
22398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
22399 }
22400 arg1 = reinterpret_cast< wxImageList * >(argp1);
22401 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22402 if (!SWIG_IsOK(res2)) {
22403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22404 }
22405 if (!argp2) {
22406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22407 }
22408 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22409 {
22410 arg3 = &temp3;
22411 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22412 }
22413 {
22414 PyThreadState* __tstate = wxPyBeginAllowThreads();
22415 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
22416 wxPyEndAllowThreads(__tstate);
22417 if (PyErr_Occurred()) SWIG_fail;
22418 }
22419 resultobj = SWIG_From_int(static_cast< int >(result));
22420 return resultobj;
22421 fail:
22422 return NULL;
22423 }
22424
22425
22426 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22427 PyObject *resultobj = 0;
22428 wxImageList *arg1 = (wxImageList *) 0 ;
22429 wxIcon *arg2 = 0 ;
22430 int result;
22431 void *argp1 = 0 ;
22432 int res1 = 0 ;
22433 void *argp2 = 0 ;
22434 int res2 = 0 ;
22435 PyObject * obj0 = 0 ;
22436 PyObject * obj1 = 0 ;
22437 char * kwnames[] = {
22438 (char *) "self",(char *) "icon", NULL
22439 };
22440
22441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
22442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22443 if (!SWIG_IsOK(res1)) {
22444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
22445 }
22446 arg1 = reinterpret_cast< wxImageList * >(argp1);
22447 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
22448 if (!SWIG_IsOK(res2)) {
22449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
22450 }
22451 if (!argp2) {
22452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
22453 }
22454 arg2 = reinterpret_cast< wxIcon * >(argp2);
22455 {
22456 PyThreadState* __tstate = wxPyBeginAllowThreads();
22457 result = (int)(arg1)->Add((wxIcon const &)*arg2);
22458 wxPyEndAllowThreads(__tstate);
22459 if (PyErr_Occurred()) SWIG_fail;
22460 }
22461 resultobj = SWIG_From_int(static_cast< int >(result));
22462 return resultobj;
22463 fail:
22464 return NULL;
22465 }
22466
22467
22468 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22469 PyObject *resultobj = 0;
22470 wxImageList *arg1 = (wxImageList *) 0 ;
22471 int arg2 ;
22472 SwigValueWrapper<wxBitmap > result;
22473 void *argp1 = 0 ;
22474 int res1 = 0 ;
22475 int val2 ;
22476 int ecode2 = 0 ;
22477 PyObject * obj0 = 0 ;
22478 PyObject * obj1 = 0 ;
22479 char * kwnames[] = {
22480 (char *) "self",(char *) "index", NULL
22481 };
22482
22483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
22484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22485 if (!SWIG_IsOK(res1)) {
22486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
22487 }
22488 arg1 = reinterpret_cast< wxImageList * >(argp1);
22489 ecode2 = SWIG_AsVal_int(obj1, &val2);
22490 if (!SWIG_IsOK(ecode2)) {
22491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
22492 }
22493 arg2 = static_cast< int >(val2);
22494 {
22495 PyThreadState* __tstate = wxPyBeginAllowThreads();
22496 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
22497 wxPyEndAllowThreads(__tstate);
22498 if (PyErr_Occurred()) SWIG_fail;
22499 }
22500 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22501 return resultobj;
22502 fail:
22503 return NULL;
22504 }
22505
22506
22507 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22508 PyObject *resultobj = 0;
22509 wxImageList *arg1 = (wxImageList *) 0 ;
22510 int arg2 ;
22511 wxIcon result;
22512 void *argp1 = 0 ;
22513 int res1 = 0 ;
22514 int val2 ;
22515 int ecode2 = 0 ;
22516 PyObject * obj0 = 0 ;
22517 PyObject * obj1 = 0 ;
22518 char * kwnames[] = {
22519 (char *) "self",(char *) "index", NULL
22520 };
22521
22522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
22523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22524 if (!SWIG_IsOK(res1)) {
22525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
22526 }
22527 arg1 = reinterpret_cast< wxImageList * >(argp1);
22528 ecode2 = SWIG_AsVal_int(obj1, &val2);
22529 if (!SWIG_IsOK(ecode2)) {
22530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
22531 }
22532 arg2 = static_cast< int >(val2);
22533 {
22534 PyThreadState* __tstate = wxPyBeginAllowThreads();
22535 result = ((wxImageList const *)arg1)->GetIcon(arg2);
22536 wxPyEndAllowThreads(__tstate);
22537 if (PyErr_Occurred()) SWIG_fail;
22538 }
22539 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
22540 return resultobj;
22541 fail:
22542 return NULL;
22543 }
22544
22545
22546 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22547 PyObject *resultobj = 0;
22548 wxImageList *arg1 = (wxImageList *) 0 ;
22549 int arg2 ;
22550 wxBitmap *arg3 = 0 ;
22551 wxBitmap const &arg4_defvalue = wxNullBitmap ;
22552 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
22553 bool result;
22554 void *argp1 = 0 ;
22555 int res1 = 0 ;
22556 int val2 ;
22557 int ecode2 = 0 ;
22558 void *argp3 = 0 ;
22559 int res3 = 0 ;
22560 void *argp4 = 0 ;
22561 int res4 = 0 ;
22562 PyObject * obj0 = 0 ;
22563 PyObject * obj1 = 0 ;
22564 PyObject * obj2 = 0 ;
22565 PyObject * obj3 = 0 ;
22566 char * kwnames[] = {
22567 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
22568 };
22569
22570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
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_Replace" "', expected argument " "2"" of type '" "int""'");
22579 }
22580 arg2 = static_cast< int >(val2);
22581 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
22582 if (!SWIG_IsOK(res3)) {
22583 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22584 }
22585 if (!argp3) {
22586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22587 }
22588 arg3 = reinterpret_cast< wxBitmap * >(argp3);
22589 if (obj3) {
22590 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
22591 if (!SWIG_IsOK(res4)) {
22592 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22593 }
22594 if (!argp4) {
22595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22596 }
22597 arg4 = reinterpret_cast< wxBitmap * >(argp4);
22598 }
22599 {
22600 PyThreadState* __tstate = wxPyBeginAllowThreads();
22601 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
22602 wxPyEndAllowThreads(__tstate);
22603 if (PyErr_Occurred()) SWIG_fail;
22604 }
22605 {
22606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22607 }
22608 return resultobj;
22609 fail:
22610 return NULL;
22611 }
22612
22613
22614 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22615 PyObject *resultobj = 0;
22616 wxImageList *arg1 = (wxImageList *) 0 ;
22617 int arg2 ;
22618 wxDC *arg3 = 0 ;
22619 int arg4 ;
22620 int arg5 ;
22621 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
22622 bool arg7 = (bool) (bool)false ;
22623 bool result;
22624 void *argp1 = 0 ;
22625 int res1 = 0 ;
22626 int val2 ;
22627 int ecode2 = 0 ;
22628 void *argp3 = 0 ;
22629 int res3 = 0 ;
22630 int val4 ;
22631 int ecode4 = 0 ;
22632 int val5 ;
22633 int ecode5 = 0 ;
22634 int val6 ;
22635 int ecode6 = 0 ;
22636 bool val7 ;
22637 int ecode7 = 0 ;
22638 PyObject * obj0 = 0 ;
22639 PyObject * obj1 = 0 ;
22640 PyObject * obj2 = 0 ;
22641 PyObject * obj3 = 0 ;
22642 PyObject * obj4 = 0 ;
22643 PyObject * obj5 = 0 ;
22644 PyObject * obj6 = 0 ;
22645 char * kwnames[] = {
22646 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
22647 };
22648
22649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22651 if (!SWIG_IsOK(res1)) {
22652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
22653 }
22654 arg1 = reinterpret_cast< wxImageList * >(argp1);
22655 ecode2 = SWIG_AsVal_int(obj1, &val2);
22656 if (!SWIG_IsOK(ecode2)) {
22657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
22658 }
22659 arg2 = static_cast< int >(val2);
22660 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
22661 if (!SWIG_IsOK(res3)) {
22662 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22663 }
22664 if (!argp3) {
22665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22666 }
22667 arg3 = reinterpret_cast< wxDC * >(argp3);
22668 ecode4 = SWIG_AsVal_int(obj3, &val4);
22669 if (!SWIG_IsOK(ecode4)) {
22670 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
22671 }
22672 arg4 = static_cast< int >(val4);
22673 ecode5 = SWIG_AsVal_int(obj4, &val5);
22674 if (!SWIG_IsOK(ecode5)) {
22675 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
22676 }
22677 arg5 = static_cast< int >(val5);
22678 if (obj5) {
22679 ecode6 = SWIG_AsVal_int(obj5, &val6);
22680 if (!SWIG_IsOK(ecode6)) {
22681 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
22682 }
22683 arg6 = static_cast< int >(val6);
22684 }
22685 if (obj6) {
22686 ecode7 = SWIG_AsVal_bool(obj6, &val7);
22687 if (!SWIG_IsOK(ecode7)) {
22688 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
22689 }
22690 arg7 = static_cast< bool >(val7);
22691 }
22692 {
22693 PyThreadState* __tstate = wxPyBeginAllowThreads();
22694 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
22695 wxPyEndAllowThreads(__tstate);
22696 if (PyErr_Occurred()) SWIG_fail;
22697 }
22698 {
22699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22700 }
22701 return resultobj;
22702 fail:
22703 return NULL;
22704 }
22705
22706
22707 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22708 PyObject *resultobj = 0;
22709 wxImageList *arg1 = (wxImageList *) 0 ;
22710 int result;
22711 void *argp1 = 0 ;
22712 int res1 = 0 ;
22713 PyObject *swig_obj[1] ;
22714
22715 if (!args) SWIG_fail;
22716 swig_obj[0] = args;
22717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22718 if (!SWIG_IsOK(res1)) {
22719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
22720 }
22721 arg1 = reinterpret_cast< wxImageList * >(argp1);
22722 {
22723 PyThreadState* __tstate = wxPyBeginAllowThreads();
22724 result = (int)(arg1)->GetImageCount();
22725 wxPyEndAllowThreads(__tstate);
22726 if (PyErr_Occurred()) SWIG_fail;
22727 }
22728 resultobj = SWIG_From_int(static_cast< int >(result));
22729 return resultobj;
22730 fail:
22731 return NULL;
22732 }
22733
22734
22735 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22736 PyObject *resultobj = 0;
22737 wxImageList *arg1 = (wxImageList *) 0 ;
22738 int arg2 ;
22739 bool result;
22740 void *argp1 = 0 ;
22741 int res1 = 0 ;
22742 int val2 ;
22743 int ecode2 = 0 ;
22744 PyObject * obj0 = 0 ;
22745 PyObject * obj1 = 0 ;
22746 char * kwnames[] = {
22747 (char *) "self",(char *) "index", NULL
22748 };
22749
22750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
22751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22752 if (!SWIG_IsOK(res1)) {
22753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
22754 }
22755 arg1 = reinterpret_cast< wxImageList * >(argp1);
22756 ecode2 = SWIG_AsVal_int(obj1, &val2);
22757 if (!SWIG_IsOK(ecode2)) {
22758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
22759 }
22760 arg2 = static_cast< int >(val2);
22761 {
22762 PyThreadState* __tstate = wxPyBeginAllowThreads();
22763 result = (bool)(arg1)->Remove(arg2);
22764 wxPyEndAllowThreads(__tstate);
22765 if (PyErr_Occurred()) SWIG_fail;
22766 }
22767 {
22768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22769 }
22770 return resultobj;
22771 fail:
22772 return NULL;
22773 }
22774
22775
22776 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22777 PyObject *resultobj = 0;
22778 wxImageList *arg1 = (wxImageList *) 0 ;
22779 bool result;
22780 void *argp1 = 0 ;
22781 int res1 = 0 ;
22782 PyObject *swig_obj[1] ;
22783
22784 if (!args) SWIG_fail;
22785 swig_obj[0] = args;
22786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22787 if (!SWIG_IsOK(res1)) {
22788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
22789 }
22790 arg1 = reinterpret_cast< wxImageList * >(argp1);
22791 {
22792 PyThreadState* __tstate = wxPyBeginAllowThreads();
22793 result = (bool)(arg1)->RemoveAll();
22794 wxPyEndAllowThreads(__tstate);
22795 if (PyErr_Occurred()) SWIG_fail;
22796 }
22797 {
22798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22799 }
22800 return resultobj;
22801 fail:
22802 return NULL;
22803 }
22804
22805
22806 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22807 PyObject *resultobj = 0;
22808 wxImageList *arg1 = (wxImageList *) 0 ;
22809 int arg2 ;
22810 int *arg3 = 0 ;
22811 int *arg4 = 0 ;
22812 void *argp1 = 0 ;
22813 int res1 = 0 ;
22814 int val2 ;
22815 int ecode2 = 0 ;
22816 int temp3 ;
22817 int res3 = SWIG_TMPOBJ ;
22818 int temp4 ;
22819 int res4 = SWIG_TMPOBJ ;
22820 PyObject * obj0 = 0 ;
22821 PyObject * obj1 = 0 ;
22822 char * kwnames[] = {
22823 (char *) "self",(char *) "index", NULL
22824 };
22825
22826 arg3 = &temp3;
22827 arg4 = &temp4;
22828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
22829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22830 if (!SWIG_IsOK(res1)) {
22831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
22832 }
22833 arg1 = reinterpret_cast< wxImageList * >(argp1);
22834 ecode2 = SWIG_AsVal_int(obj1, &val2);
22835 if (!SWIG_IsOK(ecode2)) {
22836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
22837 }
22838 arg2 = static_cast< int >(val2);
22839 {
22840 PyThreadState* __tstate = wxPyBeginAllowThreads();
22841 (arg1)->GetSize(arg2,*arg3,*arg4);
22842 wxPyEndAllowThreads(__tstate);
22843 if (PyErr_Occurred()) SWIG_fail;
22844 }
22845 resultobj = SWIG_Py_Void();
22846 if (SWIG_IsTmpObj(res3)) {
22847 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22848 } else {
22849 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22850 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22851 }
22852 if (SWIG_IsTmpObj(res4)) {
22853 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22854 } else {
22855 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22856 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22857 }
22858 return resultobj;
22859 fail:
22860 return NULL;
22861 }
22862
22863
22864 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22865 PyObject *obj;
22866 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22867 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
22868 return SWIG_Py_Void();
22869 }
22870
22871 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22872 return SWIG_Python_InitShadowInstance(args);
22873 }
22874
22875 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22876 PyObject *resultobj = 0;
22877 wxStockGDI *result = 0 ;
22878
22879 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
22880 {
22881 PyThreadState* __tstate = wxPyBeginAllowThreads();
22882 result = (wxStockGDI *)new wxStockGDI();
22883 wxPyEndAllowThreads(__tstate);
22884 if (PyErr_Occurred()) SWIG_fail;
22885 }
22886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
22887 return resultobj;
22888 fail:
22889 return NULL;
22890 }
22891
22892
22893 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22894 PyObject *resultobj = 0;
22895 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22896 void *argp1 = 0 ;
22897 int res1 = 0 ;
22898 PyObject *swig_obj[1] ;
22899
22900 if (!args) SWIG_fail;
22901 swig_obj[0] = args;
22902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
22903 if (!SWIG_IsOK(res1)) {
22904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22905 }
22906 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22907 {
22908 PyThreadState* __tstate = wxPyBeginAllowThreads();
22909 delete arg1;
22910
22911 wxPyEndAllowThreads(__tstate);
22912 if (PyErr_Occurred()) SWIG_fail;
22913 }
22914 resultobj = SWIG_Py_Void();
22915 return resultobj;
22916 fail:
22917 return NULL;
22918 }
22919
22920
22921 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22922 PyObject *resultobj = 0;
22923
22924 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
22925 {
22926 PyThreadState* __tstate = wxPyBeginAllowThreads();
22927 wxStockGDI::DeleteAll();
22928 wxPyEndAllowThreads(__tstate);
22929 if (PyErr_Occurred()) SWIG_fail;
22930 }
22931 resultobj = SWIG_Py_Void();
22932 return resultobj;
22933 fail:
22934 return NULL;
22935 }
22936
22937
22938 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22939 PyObject *resultobj = 0;
22940 wxStockGDI *result = 0 ;
22941
22942 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
22943 {
22944 PyThreadState* __tstate = wxPyBeginAllowThreads();
22945 {
22946 wxStockGDI &_result_ref = wxStockGDI::instance();
22947 result = (wxStockGDI *) &_result_ref;
22948 }
22949 wxPyEndAllowThreads(__tstate);
22950 if (PyErr_Occurred()) SWIG_fail;
22951 }
22952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
22953 return resultobj;
22954 fail:
22955 return NULL;
22956 }
22957
22958
22959 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22960 PyObject *resultobj = 0;
22961 wxStockGDI::Item arg1 ;
22962 wxBrush *result = 0 ;
22963 int val1 ;
22964 int ecode1 = 0 ;
22965 PyObject * obj0 = 0 ;
22966 char * kwnames[] = {
22967 (char *) "item", NULL
22968 };
22969
22970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
22971 ecode1 = SWIG_AsVal_int(obj0, &val1);
22972 if (!SWIG_IsOK(ecode1)) {
22973 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22974 }
22975 arg1 = static_cast< wxStockGDI::Item >(val1);
22976 {
22977 PyThreadState* __tstate = wxPyBeginAllowThreads();
22978 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
22979 wxPyEndAllowThreads(__tstate);
22980 if (PyErr_Occurred()) SWIG_fail;
22981 }
22982 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22983 return resultobj;
22984 fail:
22985 return NULL;
22986 }
22987
22988
22989 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22990 PyObject *resultobj = 0;
22991 wxStockGDI::Item arg1 ;
22992 wxColour *result = 0 ;
22993 int val1 ;
22994 int ecode1 = 0 ;
22995 PyObject * obj0 = 0 ;
22996 char * kwnames[] = {
22997 (char *) "item", NULL
22998 };
22999
23000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
23001 ecode1 = SWIG_AsVal_int(obj0, &val1);
23002 if (!SWIG_IsOK(ecode1)) {
23003 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23004 }
23005 arg1 = static_cast< wxStockGDI::Item >(val1);
23006 {
23007 PyThreadState* __tstate = wxPyBeginAllowThreads();
23008 result = (wxColour *)wxStockGDI::GetColour(arg1);
23009 wxPyEndAllowThreads(__tstate);
23010 if (PyErr_Occurred()) SWIG_fail;
23011 }
23012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
23013 return resultobj;
23014 fail:
23015 return NULL;
23016 }
23017
23018
23019 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23020 PyObject *resultobj = 0;
23021 wxStockGDI::Item arg1 ;
23022 wxCursor *result = 0 ;
23023 int val1 ;
23024 int ecode1 = 0 ;
23025 PyObject * obj0 = 0 ;
23026 char * kwnames[] = {
23027 (char *) "item", NULL
23028 };
23029
23030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
23031 ecode1 = SWIG_AsVal_int(obj0, &val1);
23032 if (!SWIG_IsOK(ecode1)) {
23033 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23034 }
23035 arg1 = static_cast< wxStockGDI::Item >(val1);
23036 {
23037 PyThreadState* __tstate = wxPyBeginAllowThreads();
23038 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
23039 wxPyEndAllowThreads(__tstate);
23040 if (PyErr_Occurred()) SWIG_fail;
23041 }
23042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
23043 return resultobj;
23044 fail:
23045 return NULL;
23046 }
23047
23048
23049 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23050 PyObject *resultobj = 0;
23051 wxStockGDI::Item arg1 ;
23052 wxPen *result = 0 ;
23053 int val1 ;
23054 int ecode1 = 0 ;
23055 PyObject * obj0 = 0 ;
23056 char * kwnames[] = {
23057 (char *) "item", NULL
23058 };
23059
23060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
23061 ecode1 = SWIG_AsVal_int(obj0, &val1);
23062 if (!SWIG_IsOK(ecode1)) {
23063 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23064 }
23065 arg1 = static_cast< wxStockGDI::Item >(val1);
23066 {
23067 PyThreadState* __tstate = wxPyBeginAllowThreads();
23068 result = (wxPen *)wxStockGDI::GetPen(arg1);
23069 wxPyEndAllowThreads(__tstate);
23070 if (PyErr_Occurred()) SWIG_fail;
23071 }
23072 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
23073 return resultobj;
23074 fail:
23075 return NULL;
23076 }
23077
23078
23079 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23080 PyObject *resultobj = 0;
23081 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
23082 wxStockGDI::Item arg2 ;
23083 wxFont *result = 0 ;
23084 void *argp1 = 0 ;
23085 int res1 = 0 ;
23086 int val2 ;
23087 int ecode2 = 0 ;
23088 PyObject * obj0 = 0 ;
23089 PyObject * obj1 = 0 ;
23090 char * kwnames[] = {
23091 (char *) "self",(char *) "item", NULL
23092 };
23093
23094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
23095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
23096 if (!SWIG_IsOK(res1)) {
23097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
23098 }
23099 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
23100 ecode2 = SWIG_AsVal_int(obj1, &val2);
23101 if (!SWIG_IsOK(ecode2)) {
23102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
23103 }
23104 arg2 = static_cast< wxStockGDI::Item >(val2);
23105 {
23106 PyThreadState* __tstate = wxPyBeginAllowThreads();
23107 result = (wxFont *)(arg1)->GetFont(arg2);
23108 wxPyEndAllowThreads(__tstate);
23109 if (PyErr_Occurred()) SWIG_fail;
23110 }
23111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
23112 return resultobj;
23113 fail:
23114 return NULL;
23115 }
23116
23117
23118 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23119 PyObject *obj;
23120 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23121 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
23122 return SWIG_Py_Void();
23123 }
23124
23125 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23126 return SWIG_Python_InitShadowInstance(args);
23127 }
23128
23129 SWIGINTERN int NullBitmap_set(PyObject *) {
23130 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
23131 return 1;
23132 }
23133
23134
23135 SWIGINTERN PyObject *NullBitmap_get(void) {
23136 PyObject *pyobj = 0;
23137
23138 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
23139 return pyobj;
23140 }
23141
23142
23143 SWIGINTERN int NullIcon_set(PyObject *) {
23144 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
23145 return 1;
23146 }
23147
23148
23149 SWIGINTERN PyObject *NullIcon_get(void) {
23150 PyObject *pyobj = 0;
23151
23152 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
23153 return pyobj;
23154 }
23155
23156
23157 SWIGINTERN int NullCursor_set(PyObject *) {
23158 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
23159 return 1;
23160 }
23161
23162
23163 SWIGINTERN PyObject *NullCursor_get(void) {
23164 PyObject *pyobj = 0;
23165
23166 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
23167 return pyobj;
23168 }
23169
23170
23171 SWIGINTERN int NullPen_set(PyObject *) {
23172 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
23173 return 1;
23174 }
23175
23176
23177 SWIGINTERN PyObject *NullPen_get(void) {
23178 PyObject *pyobj = 0;
23179
23180 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
23181 return pyobj;
23182 }
23183
23184
23185 SWIGINTERN int NullBrush_set(PyObject *) {
23186 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
23187 return 1;
23188 }
23189
23190
23191 SWIGINTERN PyObject *NullBrush_get(void) {
23192 PyObject *pyobj = 0;
23193
23194 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
23195 return pyobj;
23196 }
23197
23198
23199 SWIGINTERN int NullPalette_set(PyObject *) {
23200 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
23201 return 1;
23202 }
23203
23204
23205 SWIGINTERN PyObject *NullPalette_get(void) {
23206 PyObject *pyobj = 0;
23207
23208 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
23209 return pyobj;
23210 }
23211
23212
23213 SWIGINTERN int NullFont_set(PyObject *) {
23214 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
23215 return 1;
23216 }
23217
23218
23219 SWIGINTERN PyObject *NullFont_get(void) {
23220 PyObject *pyobj = 0;
23221
23222 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
23223 return pyobj;
23224 }
23225
23226
23227 SWIGINTERN int NullColour_set(PyObject *) {
23228 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
23229 return 1;
23230 }
23231
23232
23233 SWIGINTERN PyObject *NullColour_get(void) {
23234 PyObject *pyobj = 0;
23235
23236 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
23237 return pyobj;
23238 }
23239
23240
23241 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23242 PyObject *resultobj = 0;
23243 wxGDIObjListBase *result = 0 ;
23244
23245 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
23246 {
23247 PyThreadState* __tstate = wxPyBeginAllowThreads();
23248 result = (wxGDIObjListBase *)new wxGDIObjListBase();
23249 wxPyEndAllowThreads(__tstate);
23250 if (PyErr_Occurred()) SWIG_fail;
23251 }
23252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
23253 return resultobj;
23254 fail:
23255 return NULL;
23256 }
23257
23258
23259 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23260 PyObject *resultobj = 0;
23261 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
23262 void *argp1 = 0 ;
23263 int res1 = 0 ;
23264 PyObject *swig_obj[1] ;
23265
23266 if (!args) SWIG_fail;
23267 swig_obj[0] = args;
23268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
23269 if (!SWIG_IsOK(res1)) {
23270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
23271 }
23272 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
23273 {
23274 PyThreadState* __tstate = wxPyBeginAllowThreads();
23275 delete arg1;
23276
23277 wxPyEndAllowThreads(__tstate);
23278 if (PyErr_Occurred()) SWIG_fail;
23279 }
23280 resultobj = SWIG_Py_Void();
23281 return resultobj;
23282 fail:
23283 return NULL;
23284 }
23285
23286
23287 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23288 PyObject *obj;
23289 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23290 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
23291 return SWIG_Py_Void();
23292 }
23293
23294 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23295 return SWIG_Python_InitShadowInstance(args);
23296 }
23297
23298 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23299 PyObject *resultobj = 0;
23300 wxPenList *arg1 = (wxPenList *) 0 ;
23301 wxColour *arg2 = 0 ;
23302 int arg3 ;
23303 int arg4 ;
23304 wxPen *result = 0 ;
23305 void *argp1 = 0 ;
23306 int res1 = 0 ;
23307 wxColour temp2 ;
23308 int val3 ;
23309 int ecode3 = 0 ;
23310 int val4 ;
23311 int ecode4 = 0 ;
23312 PyObject * obj0 = 0 ;
23313 PyObject * obj1 = 0 ;
23314 PyObject * obj2 = 0 ;
23315 PyObject * obj3 = 0 ;
23316 char * kwnames[] = {
23317 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
23318 };
23319
23320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23322 if (!SWIG_IsOK(res1)) {
23323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
23324 }
23325 arg1 = reinterpret_cast< wxPenList * >(argp1);
23326 {
23327 arg2 = &temp2;
23328 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23329 }
23330 ecode3 = SWIG_AsVal_int(obj2, &val3);
23331 if (!SWIG_IsOK(ecode3)) {
23332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
23333 }
23334 arg3 = static_cast< int >(val3);
23335 ecode4 = SWIG_AsVal_int(obj3, &val4);
23336 if (!SWIG_IsOK(ecode4)) {
23337 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
23338 }
23339 arg4 = static_cast< int >(val4);
23340 {
23341 PyThreadState* __tstate = wxPyBeginAllowThreads();
23342 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
23343 wxPyEndAllowThreads(__tstate);
23344 if (PyErr_Occurred()) SWIG_fail;
23345 }
23346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
23347 return resultobj;
23348 fail:
23349 return NULL;
23350 }
23351
23352
23353 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23354 PyObject *resultobj = 0;
23355 wxPenList *arg1 = (wxPenList *) 0 ;
23356 wxPen *arg2 = (wxPen *) 0 ;
23357 void *argp1 = 0 ;
23358 int res1 = 0 ;
23359 void *argp2 = 0 ;
23360 int res2 = 0 ;
23361 PyObject * obj0 = 0 ;
23362 PyObject * obj1 = 0 ;
23363 char * kwnames[] = {
23364 (char *) "self",(char *) "pen", NULL
23365 };
23366
23367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
23368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23369 if (!SWIG_IsOK(res1)) {
23370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
23371 }
23372 arg1 = reinterpret_cast< wxPenList * >(argp1);
23373 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
23374 if (!SWIG_IsOK(res2)) {
23375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
23376 }
23377 arg2 = reinterpret_cast< wxPen * >(argp2);
23378 {
23379 PyThreadState* __tstate = wxPyBeginAllowThreads();
23380 (arg1)->AddPen(arg2);
23381 wxPyEndAllowThreads(__tstate);
23382 if (PyErr_Occurred()) SWIG_fail;
23383 }
23384 resultobj = SWIG_Py_Void();
23385 return resultobj;
23386 fail:
23387 return NULL;
23388 }
23389
23390
23391 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23392 PyObject *resultobj = 0;
23393 wxPenList *arg1 = (wxPenList *) 0 ;
23394 wxPen *arg2 = (wxPen *) 0 ;
23395 void *argp1 = 0 ;
23396 int res1 = 0 ;
23397 void *argp2 = 0 ;
23398 int res2 = 0 ;
23399 PyObject * obj0 = 0 ;
23400 PyObject * obj1 = 0 ;
23401 char * kwnames[] = {
23402 (char *) "self",(char *) "pen", NULL
23403 };
23404
23405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
23406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23407 if (!SWIG_IsOK(res1)) {
23408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
23409 }
23410 arg1 = reinterpret_cast< wxPenList * >(argp1);
23411 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
23412 if (!SWIG_IsOK(res2)) {
23413 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
23414 }
23415 arg2 = reinterpret_cast< wxPen * >(argp2);
23416 {
23417 PyThreadState* __tstate = wxPyBeginAllowThreads();
23418 (arg1)->RemovePen(arg2);
23419 wxPyEndAllowThreads(__tstate);
23420 if (PyErr_Occurred()) SWIG_fail;
23421 }
23422 resultobj = SWIG_Py_Void();
23423 return resultobj;
23424 fail:
23425 return NULL;
23426 }
23427
23428
23429 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23430 PyObject *obj;
23431 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23432 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
23433 return SWIG_Py_Void();
23434 }
23435
23436 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23437 PyObject *resultobj = 0;
23438 wxBrushList *arg1 = (wxBrushList *) 0 ;
23439 wxColour *arg2 = 0 ;
23440 int arg3 = (int) wxSOLID ;
23441 wxBrush *result = 0 ;
23442 void *argp1 = 0 ;
23443 int res1 = 0 ;
23444 wxColour temp2 ;
23445 int val3 ;
23446 int ecode3 = 0 ;
23447 PyObject * obj0 = 0 ;
23448 PyObject * obj1 = 0 ;
23449 PyObject * obj2 = 0 ;
23450 char * kwnames[] = {
23451 (char *) "self",(char *) "colour",(char *) "style", NULL
23452 };
23453
23454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23456 if (!SWIG_IsOK(res1)) {
23457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23458 }
23459 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23460 {
23461 arg2 = &temp2;
23462 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23463 }
23464 if (obj2) {
23465 ecode3 = SWIG_AsVal_int(obj2, &val3);
23466 if (!SWIG_IsOK(ecode3)) {
23467 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
23468 }
23469 arg3 = static_cast< int >(val3);
23470 }
23471 {
23472 PyThreadState* __tstate = wxPyBeginAllowThreads();
23473 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
23474 wxPyEndAllowThreads(__tstate);
23475 if (PyErr_Occurred()) SWIG_fail;
23476 }
23477 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
23478 return resultobj;
23479 fail:
23480 return NULL;
23481 }
23482
23483
23484 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23485 PyObject *resultobj = 0;
23486 wxBrushList *arg1 = (wxBrushList *) 0 ;
23487 wxBrush *arg2 = (wxBrush *) 0 ;
23488 void *argp1 = 0 ;
23489 int res1 = 0 ;
23490 void *argp2 = 0 ;
23491 int res2 = 0 ;
23492 PyObject * obj0 = 0 ;
23493 PyObject * obj1 = 0 ;
23494 char * kwnames[] = {
23495 (char *) "self",(char *) "brush", NULL
23496 };
23497
23498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
23499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23500 if (!SWIG_IsOK(res1)) {
23501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23502 }
23503 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23504 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
23505 if (!SWIG_IsOK(res2)) {
23506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
23507 }
23508 arg2 = reinterpret_cast< wxBrush * >(argp2);
23509 {
23510 PyThreadState* __tstate = wxPyBeginAllowThreads();
23511 (arg1)->AddBrush(arg2);
23512 wxPyEndAllowThreads(__tstate);
23513 if (PyErr_Occurred()) SWIG_fail;
23514 }
23515 resultobj = SWIG_Py_Void();
23516 return resultobj;
23517 fail:
23518 return NULL;
23519 }
23520
23521
23522 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23523 PyObject *resultobj = 0;
23524 wxBrushList *arg1 = (wxBrushList *) 0 ;
23525 wxBrush *arg2 = (wxBrush *) 0 ;
23526 void *argp1 = 0 ;
23527 int res1 = 0 ;
23528 void *argp2 = 0 ;
23529 int res2 = 0 ;
23530 PyObject * obj0 = 0 ;
23531 PyObject * obj1 = 0 ;
23532 char * kwnames[] = {
23533 (char *) "self",(char *) "brush", NULL
23534 };
23535
23536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
23537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23538 if (!SWIG_IsOK(res1)) {
23539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23540 }
23541 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23542 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
23543 if (!SWIG_IsOK(res2)) {
23544 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
23545 }
23546 arg2 = reinterpret_cast< wxBrush * >(argp2);
23547 {
23548 PyThreadState* __tstate = wxPyBeginAllowThreads();
23549 (arg1)->RemoveBrush(arg2);
23550 wxPyEndAllowThreads(__tstate);
23551 if (PyErr_Occurred()) SWIG_fail;
23552 }
23553 resultobj = SWIG_Py_Void();
23554 return resultobj;
23555 fail:
23556 return NULL;
23557 }
23558
23559
23560 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23561 PyObject *obj;
23562 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23563 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
23564 return SWIG_Py_Void();
23565 }
23566
23567 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23568 PyObject *resultobj = 0;
23569 wxFontList *arg1 = (wxFontList *) 0 ;
23570 int arg2 ;
23571 int arg3 ;
23572 int arg4 ;
23573 int arg5 ;
23574 bool arg6 = (bool) false ;
23575 wxString const &arg7_defvalue = wxPyEmptyString ;
23576 wxString *arg7 = (wxString *) &arg7_defvalue ;
23577 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
23578 wxFont *result = 0 ;
23579 void *argp1 = 0 ;
23580 int res1 = 0 ;
23581 int val2 ;
23582 int ecode2 = 0 ;
23583 int val3 ;
23584 int ecode3 = 0 ;
23585 int val4 ;
23586 int ecode4 = 0 ;
23587 int val5 ;
23588 int ecode5 = 0 ;
23589 bool val6 ;
23590 int ecode6 = 0 ;
23591 bool temp7 = false ;
23592 int val8 ;
23593 int ecode8 = 0 ;
23594 PyObject * obj0 = 0 ;
23595 PyObject * obj1 = 0 ;
23596 PyObject * obj2 = 0 ;
23597 PyObject * obj3 = 0 ;
23598 PyObject * obj4 = 0 ;
23599 PyObject * obj5 = 0 ;
23600 PyObject * obj6 = 0 ;
23601 PyObject * obj7 = 0 ;
23602 char * kwnames[] = {
23603 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
23604 };
23605
23606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
23607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23608 if (!SWIG_IsOK(res1)) {
23609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23610 }
23611 arg1 = reinterpret_cast< wxFontList * >(argp1);
23612 ecode2 = SWIG_AsVal_int(obj1, &val2);
23613 if (!SWIG_IsOK(ecode2)) {
23614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
23615 }
23616 arg2 = static_cast< int >(val2);
23617 ecode3 = SWIG_AsVal_int(obj2, &val3);
23618 if (!SWIG_IsOK(ecode3)) {
23619 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
23620 }
23621 arg3 = static_cast< int >(val3);
23622 ecode4 = SWIG_AsVal_int(obj3, &val4);
23623 if (!SWIG_IsOK(ecode4)) {
23624 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
23625 }
23626 arg4 = static_cast< int >(val4);
23627 ecode5 = SWIG_AsVal_int(obj4, &val5);
23628 if (!SWIG_IsOK(ecode5)) {
23629 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
23630 }
23631 arg5 = static_cast< int >(val5);
23632 if (obj5) {
23633 ecode6 = SWIG_AsVal_bool(obj5, &val6);
23634 if (!SWIG_IsOK(ecode6)) {
23635 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
23636 }
23637 arg6 = static_cast< bool >(val6);
23638 }
23639 if (obj6) {
23640 {
23641 arg7 = wxString_in_helper(obj6);
23642 if (arg7 == NULL) SWIG_fail;
23643 temp7 = true;
23644 }
23645 }
23646 if (obj7) {
23647 ecode8 = SWIG_AsVal_int(obj7, &val8);
23648 if (!SWIG_IsOK(ecode8)) {
23649 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
23650 }
23651 arg8 = static_cast< wxFontEncoding >(val8);
23652 }
23653 {
23654 PyThreadState* __tstate = wxPyBeginAllowThreads();
23655 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
23656 wxPyEndAllowThreads(__tstate);
23657 if (PyErr_Occurred()) SWIG_fail;
23658 }
23659 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
23660 {
23661 if (temp7)
23662 delete arg7;
23663 }
23664 return resultobj;
23665 fail:
23666 {
23667 if (temp7)
23668 delete arg7;
23669 }
23670 return NULL;
23671 }
23672
23673
23674 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23675 PyObject *resultobj = 0;
23676 wxFontList *arg1 = (wxFontList *) 0 ;
23677 wxFont *arg2 = (wxFont *) 0 ;
23678 void *argp1 = 0 ;
23679 int res1 = 0 ;
23680 void *argp2 = 0 ;
23681 int res2 = 0 ;
23682 PyObject * obj0 = 0 ;
23683 PyObject * obj1 = 0 ;
23684 char * kwnames[] = {
23685 (char *) "self",(char *) "font", NULL
23686 };
23687
23688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
23689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23690 if (!SWIG_IsOK(res1)) {
23691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23692 }
23693 arg1 = reinterpret_cast< wxFontList * >(argp1);
23694 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23695 if (!SWIG_IsOK(res2)) {
23696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
23697 }
23698 arg2 = reinterpret_cast< wxFont * >(argp2);
23699 {
23700 PyThreadState* __tstate = wxPyBeginAllowThreads();
23701 (arg1)->AddFont(arg2);
23702 wxPyEndAllowThreads(__tstate);
23703 if (PyErr_Occurred()) SWIG_fail;
23704 }
23705 resultobj = SWIG_Py_Void();
23706 return resultobj;
23707 fail:
23708 return NULL;
23709 }
23710
23711
23712 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23713 PyObject *resultobj = 0;
23714 wxFontList *arg1 = (wxFontList *) 0 ;
23715 wxFont *arg2 = (wxFont *) 0 ;
23716 void *argp1 = 0 ;
23717 int res1 = 0 ;
23718 void *argp2 = 0 ;
23719 int res2 = 0 ;
23720 PyObject * obj0 = 0 ;
23721 PyObject * obj1 = 0 ;
23722 char * kwnames[] = {
23723 (char *) "self",(char *) "font", NULL
23724 };
23725
23726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
23727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23728 if (!SWIG_IsOK(res1)) {
23729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23730 }
23731 arg1 = reinterpret_cast< wxFontList * >(argp1);
23732 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23733 if (!SWIG_IsOK(res2)) {
23734 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
23735 }
23736 arg2 = reinterpret_cast< wxFont * >(argp2);
23737 {
23738 PyThreadState* __tstate = wxPyBeginAllowThreads();
23739 (arg1)->RemoveFont(arg2);
23740 wxPyEndAllowThreads(__tstate);
23741 if (PyErr_Occurred()) SWIG_fail;
23742 }
23743 resultobj = SWIG_Py_Void();
23744 return resultobj;
23745 fail:
23746 return NULL;
23747 }
23748
23749
23750 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23751 PyObject *obj;
23752 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23753 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
23754 return SWIG_Py_Void();
23755 }
23756
23757 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23758 PyObject *resultobj = 0;
23759 wxColourDatabase *result = 0 ;
23760
23761 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
23762 {
23763 if (!wxPyCheckForApp()) SWIG_fail;
23764 PyThreadState* __tstate = wxPyBeginAllowThreads();
23765 result = (wxColourDatabase *)new wxColourDatabase();
23766 wxPyEndAllowThreads(__tstate);
23767 if (PyErr_Occurred()) SWIG_fail;
23768 }
23769 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
23770 return resultobj;
23771 fail:
23772 return NULL;
23773 }
23774
23775
23776 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23777 PyObject *resultobj = 0;
23778 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23779 void *argp1 = 0 ;
23780 int res1 = 0 ;
23781 PyObject *swig_obj[1] ;
23782
23783 if (!args) SWIG_fail;
23784 swig_obj[0] = args;
23785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
23786 if (!SWIG_IsOK(res1)) {
23787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23788 }
23789 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23790 {
23791 PyThreadState* __tstate = wxPyBeginAllowThreads();
23792 delete arg1;
23793
23794 wxPyEndAllowThreads(__tstate);
23795 if (PyErr_Occurred()) SWIG_fail;
23796 }
23797 resultobj = SWIG_Py_Void();
23798 return resultobj;
23799 fail:
23800 return NULL;
23801 }
23802
23803
23804 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23805 PyObject *resultobj = 0;
23806 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23807 wxString *arg2 = 0 ;
23808 wxColour result;
23809 void *argp1 = 0 ;
23810 int res1 = 0 ;
23811 bool temp2 = false ;
23812 PyObject * obj0 = 0 ;
23813 PyObject * obj1 = 0 ;
23814 char * kwnames[] = {
23815 (char *) "self",(char *) "name", NULL
23816 };
23817
23818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
23819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23820 if (!SWIG_IsOK(res1)) {
23821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23822 }
23823 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23824 {
23825 arg2 = wxString_in_helper(obj1);
23826 if (arg2 == NULL) SWIG_fail;
23827 temp2 = true;
23828 }
23829 {
23830 PyThreadState* __tstate = wxPyBeginAllowThreads();
23831 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
23832 wxPyEndAllowThreads(__tstate);
23833 if (PyErr_Occurred()) SWIG_fail;
23834 }
23835 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23836 {
23837 if (temp2)
23838 delete arg2;
23839 }
23840 return resultobj;
23841 fail:
23842 {
23843 if (temp2)
23844 delete arg2;
23845 }
23846 return NULL;
23847 }
23848
23849
23850 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23851 PyObject *resultobj = 0;
23852 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23853 wxColour *arg2 = 0 ;
23854 wxString result;
23855 void *argp1 = 0 ;
23856 int res1 = 0 ;
23857 wxColour temp2 ;
23858 PyObject * obj0 = 0 ;
23859 PyObject * obj1 = 0 ;
23860 char * kwnames[] = {
23861 (char *) "self",(char *) "colour", NULL
23862 };
23863
23864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
23865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23866 if (!SWIG_IsOK(res1)) {
23867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23868 }
23869 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23870 {
23871 arg2 = &temp2;
23872 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23873 }
23874 {
23875 PyThreadState* __tstate = wxPyBeginAllowThreads();
23876 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
23877 wxPyEndAllowThreads(__tstate);
23878 if (PyErr_Occurred()) SWIG_fail;
23879 }
23880 {
23881 #if wxUSE_UNICODE
23882 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23883 #else
23884 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23885 #endif
23886 }
23887 return resultobj;
23888 fail:
23889 return NULL;
23890 }
23891
23892
23893 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23894 PyObject *resultobj = 0;
23895 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23896 wxString *arg2 = 0 ;
23897 wxColour *arg3 = 0 ;
23898 void *argp1 = 0 ;
23899 int res1 = 0 ;
23900 bool temp2 = false ;
23901 wxColour temp3 ;
23902 PyObject * obj0 = 0 ;
23903 PyObject * obj1 = 0 ;
23904 PyObject * obj2 = 0 ;
23905 char * kwnames[] = {
23906 (char *) "self",(char *) "name",(char *) "colour", NULL
23907 };
23908
23909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23911 if (!SWIG_IsOK(res1)) {
23912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23913 }
23914 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23915 {
23916 arg2 = wxString_in_helper(obj1);
23917 if (arg2 == NULL) SWIG_fail;
23918 temp2 = true;
23919 }
23920 {
23921 arg3 = &temp3;
23922 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23923 }
23924 {
23925 PyThreadState* __tstate = wxPyBeginAllowThreads();
23926 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
23927 wxPyEndAllowThreads(__tstate);
23928 if (PyErr_Occurred()) SWIG_fail;
23929 }
23930 resultobj = SWIG_Py_Void();
23931 {
23932 if (temp2)
23933 delete arg2;
23934 }
23935 return resultobj;
23936 fail:
23937 {
23938 if (temp2)
23939 delete arg2;
23940 }
23941 return NULL;
23942 }
23943
23944
23945 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23946 PyObject *resultobj = 0;
23947 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23948 wxString *arg2 = 0 ;
23949 int arg3 ;
23950 int arg4 ;
23951 int arg5 ;
23952 void *argp1 = 0 ;
23953 int res1 = 0 ;
23954 bool temp2 = false ;
23955 int val3 ;
23956 int ecode3 = 0 ;
23957 int val4 ;
23958 int ecode4 = 0 ;
23959 int val5 ;
23960 int ecode5 = 0 ;
23961 PyObject * obj0 = 0 ;
23962 PyObject * obj1 = 0 ;
23963 PyObject * obj2 = 0 ;
23964 PyObject * obj3 = 0 ;
23965 PyObject * obj4 = 0 ;
23966 char * kwnames[] = {
23967 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
23968 };
23969
23970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23972 if (!SWIG_IsOK(res1)) {
23973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23974 }
23975 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23976 {
23977 arg2 = wxString_in_helper(obj1);
23978 if (arg2 == NULL) SWIG_fail;
23979 temp2 = true;
23980 }
23981 ecode3 = SWIG_AsVal_int(obj2, &val3);
23982 if (!SWIG_IsOK(ecode3)) {
23983 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
23984 }
23985 arg3 = static_cast< int >(val3);
23986 ecode4 = SWIG_AsVal_int(obj3, &val4);
23987 if (!SWIG_IsOK(ecode4)) {
23988 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
23989 }
23990 arg4 = static_cast< int >(val4);
23991 ecode5 = SWIG_AsVal_int(obj4, &val5);
23992 if (!SWIG_IsOK(ecode5)) {
23993 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
23994 }
23995 arg5 = static_cast< int >(val5);
23996 {
23997 PyThreadState* __tstate = wxPyBeginAllowThreads();
23998 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
23999 wxPyEndAllowThreads(__tstate);
24000 if (PyErr_Occurred()) SWIG_fail;
24001 }
24002 resultobj = SWIG_Py_Void();
24003 {
24004 if (temp2)
24005 delete arg2;
24006 }
24007 return resultobj;
24008 fail:
24009 {
24010 if (temp2)
24011 delete arg2;
24012 }
24013 return NULL;
24014 }
24015
24016
24017 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24018 PyObject *obj;
24019 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24020 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
24021 return SWIG_Py_Void();
24022 }
24023
24024 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24025 return SWIG_Python_InitShadowInstance(args);
24026 }
24027
24028 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24029 PyObject *resultobj = 0;
24030 wxFontList *result = 0 ;
24031
24032 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
24033 {
24034 PyThreadState* __tstate = wxPyBeginAllowThreads();
24035 result = (wxFontList *)_wxPyInitTheFontList();
24036 wxPyEndAllowThreads(__tstate);
24037 if (PyErr_Occurred()) SWIG_fail;
24038 }
24039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
24040 return resultobj;
24041 fail:
24042 return NULL;
24043 }
24044
24045
24046 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24047 PyObject *resultobj = 0;
24048 wxPenList *result = 0 ;
24049
24050 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
24051 {
24052 PyThreadState* __tstate = wxPyBeginAllowThreads();
24053 result = (wxPenList *)_wxPyInitThePenList();
24054 wxPyEndAllowThreads(__tstate);
24055 if (PyErr_Occurred()) SWIG_fail;
24056 }
24057 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
24058 return resultobj;
24059 fail:
24060 return NULL;
24061 }
24062
24063
24064 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24065 PyObject *resultobj = 0;
24066 wxBrushList *result = 0 ;
24067
24068 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
24069 {
24070 PyThreadState* __tstate = wxPyBeginAllowThreads();
24071 result = (wxBrushList *)_wxPyInitTheBrushList();
24072 wxPyEndAllowThreads(__tstate);
24073 if (PyErr_Occurred()) SWIG_fail;
24074 }
24075 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
24076 return resultobj;
24077 fail:
24078 return NULL;
24079 }
24080
24081
24082 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24083 PyObject *resultobj = 0;
24084 wxColourDatabase *result = 0 ;
24085
24086 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
24087 {
24088 PyThreadState* __tstate = wxPyBeginAllowThreads();
24089 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
24090 wxPyEndAllowThreads(__tstate);
24091 if (PyErr_Occurred()) SWIG_fail;
24092 }
24093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
24094 return resultobj;
24095 fail:
24096 return NULL;
24097 }
24098
24099
24100 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24101 PyObject *resultobj = 0;
24102 wxEffects *result = 0 ;
24103
24104 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
24105 {
24106 PyThreadState* __tstate = wxPyBeginAllowThreads();
24107 result = (wxEffects *)new wxEffects();
24108 wxPyEndAllowThreads(__tstate);
24109 if (PyErr_Occurred()) SWIG_fail;
24110 }
24111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
24112 return resultobj;
24113 fail:
24114 return NULL;
24115 }
24116
24117
24118 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24119 PyObject *resultobj = 0;
24120 wxEffects *arg1 = (wxEffects *) 0 ;
24121 wxColour result;
24122 void *argp1 = 0 ;
24123 int res1 = 0 ;
24124 PyObject *swig_obj[1] ;
24125
24126 if (!args) SWIG_fail;
24127 swig_obj[0] = args;
24128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24129 if (!SWIG_IsOK(res1)) {
24130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
24131 }
24132 arg1 = reinterpret_cast< wxEffects * >(argp1);
24133 {
24134 PyThreadState* __tstate = wxPyBeginAllowThreads();
24135 result = ((wxEffects const *)arg1)->GetHighlightColour();
24136 wxPyEndAllowThreads(__tstate);
24137 if (PyErr_Occurred()) SWIG_fail;
24138 }
24139 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24140 return resultobj;
24141 fail:
24142 return NULL;
24143 }
24144
24145
24146 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24147 PyObject *resultobj = 0;
24148 wxEffects *arg1 = (wxEffects *) 0 ;
24149 wxColour result;
24150 void *argp1 = 0 ;
24151 int res1 = 0 ;
24152 PyObject *swig_obj[1] ;
24153
24154 if (!args) SWIG_fail;
24155 swig_obj[0] = args;
24156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24157 if (!SWIG_IsOK(res1)) {
24158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24159 }
24160 arg1 = reinterpret_cast< wxEffects * >(argp1);
24161 {
24162 PyThreadState* __tstate = wxPyBeginAllowThreads();
24163 result = ((wxEffects const *)arg1)->GetLightShadow();
24164 wxPyEndAllowThreads(__tstate);
24165 if (PyErr_Occurred()) SWIG_fail;
24166 }
24167 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24168 return resultobj;
24169 fail:
24170 return NULL;
24171 }
24172
24173
24174 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24175 PyObject *resultobj = 0;
24176 wxEffects *arg1 = (wxEffects *) 0 ;
24177 wxColour result;
24178 void *argp1 = 0 ;
24179 int res1 = 0 ;
24180 PyObject *swig_obj[1] ;
24181
24182 if (!args) SWIG_fail;
24183 swig_obj[0] = args;
24184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24185 if (!SWIG_IsOK(res1)) {
24186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
24187 }
24188 arg1 = reinterpret_cast< wxEffects * >(argp1);
24189 {
24190 PyThreadState* __tstate = wxPyBeginAllowThreads();
24191 result = ((wxEffects const *)arg1)->GetFaceColour();
24192 wxPyEndAllowThreads(__tstate);
24193 if (PyErr_Occurred()) SWIG_fail;
24194 }
24195 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24196 return resultobj;
24197 fail:
24198 return NULL;
24199 }
24200
24201
24202 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24203 PyObject *resultobj = 0;
24204 wxEffects *arg1 = (wxEffects *) 0 ;
24205 wxColour result;
24206 void *argp1 = 0 ;
24207 int res1 = 0 ;
24208 PyObject *swig_obj[1] ;
24209
24210 if (!args) SWIG_fail;
24211 swig_obj[0] = args;
24212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24213 if (!SWIG_IsOK(res1)) {
24214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24215 }
24216 arg1 = reinterpret_cast< wxEffects * >(argp1);
24217 {
24218 PyThreadState* __tstate = wxPyBeginAllowThreads();
24219 result = ((wxEffects const *)arg1)->GetMediumShadow();
24220 wxPyEndAllowThreads(__tstate);
24221 if (PyErr_Occurred()) SWIG_fail;
24222 }
24223 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24224 return resultobj;
24225 fail:
24226 return NULL;
24227 }
24228
24229
24230 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24231 PyObject *resultobj = 0;
24232 wxEffects *arg1 = (wxEffects *) 0 ;
24233 wxColour result;
24234 void *argp1 = 0 ;
24235 int res1 = 0 ;
24236 PyObject *swig_obj[1] ;
24237
24238 if (!args) SWIG_fail;
24239 swig_obj[0] = args;
24240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24241 if (!SWIG_IsOK(res1)) {
24242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24243 }
24244 arg1 = reinterpret_cast< wxEffects * >(argp1);
24245 {
24246 PyThreadState* __tstate = wxPyBeginAllowThreads();
24247 result = ((wxEffects const *)arg1)->GetDarkShadow();
24248 wxPyEndAllowThreads(__tstate);
24249 if (PyErr_Occurred()) SWIG_fail;
24250 }
24251 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24252 return resultobj;
24253 fail:
24254 return NULL;
24255 }
24256
24257
24258 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24259 PyObject *resultobj = 0;
24260 wxEffects *arg1 = (wxEffects *) 0 ;
24261 wxColour *arg2 = 0 ;
24262 void *argp1 = 0 ;
24263 int res1 = 0 ;
24264 wxColour temp2 ;
24265 PyObject * obj0 = 0 ;
24266 PyObject * obj1 = 0 ;
24267 char * kwnames[] = {
24268 (char *) "self",(char *) "c", NULL
24269 };
24270
24271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
24272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24273 if (!SWIG_IsOK(res1)) {
24274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
24275 }
24276 arg1 = reinterpret_cast< wxEffects * >(argp1);
24277 {
24278 arg2 = &temp2;
24279 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24280 }
24281 {
24282 PyThreadState* __tstate = wxPyBeginAllowThreads();
24283 (arg1)->SetHighlightColour((wxColour const &)*arg2);
24284 wxPyEndAllowThreads(__tstate);
24285 if (PyErr_Occurred()) SWIG_fail;
24286 }
24287 resultobj = SWIG_Py_Void();
24288 return resultobj;
24289 fail:
24290 return NULL;
24291 }
24292
24293
24294 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24295 PyObject *resultobj = 0;
24296 wxEffects *arg1 = (wxEffects *) 0 ;
24297 wxColour *arg2 = 0 ;
24298 void *argp1 = 0 ;
24299 int res1 = 0 ;
24300 wxColour temp2 ;
24301 PyObject * obj0 = 0 ;
24302 PyObject * obj1 = 0 ;
24303 char * kwnames[] = {
24304 (char *) "self",(char *) "c", NULL
24305 };
24306
24307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24309 if (!SWIG_IsOK(res1)) {
24310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24311 }
24312 arg1 = reinterpret_cast< wxEffects * >(argp1);
24313 {
24314 arg2 = &temp2;
24315 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24316 }
24317 {
24318 PyThreadState* __tstate = wxPyBeginAllowThreads();
24319 (arg1)->SetLightShadow((wxColour const &)*arg2);
24320 wxPyEndAllowThreads(__tstate);
24321 if (PyErr_Occurred()) SWIG_fail;
24322 }
24323 resultobj = SWIG_Py_Void();
24324 return resultobj;
24325 fail:
24326 return NULL;
24327 }
24328
24329
24330 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24331 PyObject *resultobj = 0;
24332 wxEffects *arg1 = (wxEffects *) 0 ;
24333 wxColour *arg2 = 0 ;
24334 void *argp1 = 0 ;
24335 int res1 = 0 ;
24336 wxColour temp2 ;
24337 PyObject * obj0 = 0 ;
24338 PyObject * obj1 = 0 ;
24339 char * kwnames[] = {
24340 (char *) "self",(char *) "c", NULL
24341 };
24342
24343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
24344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24345 if (!SWIG_IsOK(res1)) {
24346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
24347 }
24348 arg1 = reinterpret_cast< wxEffects * >(argp1);
24349 {
24350 arg2 = &temp2;
24351 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24352 }
24353 {
24354 PyThreadState* __tstate = wxPyBeginAllowThreads();
24355 (arg1)->SetFaceColour((wxColour const &)*arg2);
24356 wxPyEndAllowThreads(__tstate);
24357 if (PyErr_Occurred()) SWIG_fail;
24358 }
24359 resultobj = SWIG_Py_Void();
24360 return resultobj;
24361 fail:
24362 return NULL;
24363 }
24364
24365
24366 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24367 PyObject *resultobj = 0;
24368 wxEffects *arg1 = (wxEffects *) 0 ;
24369 wxColour *arg2 = 0 ;
24370 void *argp1 = 0 ;
24371 int res1 = 0 ;
24372 wxColour temp2 ;
24373 PyObject * obj0 = 0 ;
24374 PyObject * obj1 = 0 ;
24375 char * kwnames[] = {
24376 (char *) "self",(char *) "c", NULL
24377 };
24378
24379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24381 if (!SWIG_IsOK(res1)) {
24382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24383 }
24384 arg1 = reinterpret_cast< wxEffects * >(argp1);
24385 {
24386 arg2 = &temp2;
24387 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24388 }
24389 {
24390 PyThreadState* __tstate = wxPyBeginAllowThreads();
24391 (arg1)->SetMediumShadow((wxColour const &)*arg2);
24392 wxPyEndAllowThreads(__tstate);
24393 if (PyErr_Occurred()) SWIG_fail;
24394 }
24395 resultobj = SWIG_Py_Void();
24396 return resultobj;
24397 fail:
24398 return NULL;
24399 }
24400
24401
24402 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24403 PyObject *resultobj = 0;
24404 wxEffects *arg1 = (wxEffects *) 0 ;
24405 wxColour *arg2 = 0 ;
24406 void *argp1 = 0 ;
24407 int res1 = 0 ;
24408 wxColour temp2 ;
24409 PyObject * obj0 = 0 ;
24410 PyObject * obj1 = 0 ;
24411 char * kwnames[] = {
24412 (char *) "self",(char *) "c", NULL
24413 };
24414
24415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24417 if (!SWIG_IsOK(res1)) {
24418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24419 }
24420 arg1 = reinterpret_cast< wxEffects * >(argp1);
24421 {
24422 arg2 = &temp2;
24423 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24424 }
24425 {
24426 PyThreadState* __tstate = wxPyBeginAllowThreads();
24427 (arg1)->SetDarkShadow((wxColour const &)*arg2);
24428 wxPyEndAllowThreads(__tstate);
24429 if (PyErr_Occurred()) SWIG_fail;
24430 }
24431 resultobj = SWIG_Py_Void();
24432 return resultobj;
24433 fail:
24434 return NULL;
24435 }
24436
24437
24438 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24439 PyObject *resultobj = 0;
24440 wxEffects *arg1 = (wxEffects *) 0 ;
24441 wxColour *arg2 = 0 ;
24442 wxColour *arg3 = 0 ;
24443 wxColour *arg4 = 0 ;
24444 wxColour *arg5 = 0 ;
24445 wxColour *arg6 = 0 ;
24446 void *argp1 = 0 ;
24447 int res1 = 0 ;
24448 wxColour temp2 ;
24449 wxColour temp3 ;
24450 wxColour temp4 ;
24451 wxColour temp5 ;
24452 wxColour temp6 ;
24453 PyObject * obj0 = 0 ;
24454 PyObject * obj1 = 0 ;
24455 PyObject * obj2 = 0 ;
24456 PyObject * obj3 = 0 ;
24457 PyObject * obj4 = 0 ;
24458 PyObject * obj5 = 0 ;
24459 char * kwnames[] = {
24460 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
24461 };
24462
24463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) 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_Set" "', 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 arg3 = &temp3;
24475 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24476 }
24477 {
24478 arg4 = &temp4;
24479 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
24480 }
24481 {
24482 arg5 = &temp5;
24483 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
24484 }
24485 {
24486 arg6 = &temp6;
24487 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
24488 }
24489 {
24490 PyThreadState* __tstate = wxPyBeginAllowThreads();
24491 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
24492 wxPyEndAllowThreads(__tstate);
24493 if (PyErr_Occurred()) SWIG_fail;
24494 }
24495 resultobj = SWIG_Py_Void();
24496 return resultobj;
24497 fail:
24498 return NULL;
24499 }
24500
24501
24502 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24503 PyObject *resultobj = 0;
24504 wxEffects *arg1 = (wxEffects *) 0 ;
24505 wxDC *arg2 = 0 ;
24506 wxRect *arg3 = 0 ;
24507 int arg4 = (int) 1 ;
24508 void *argp1 = 0 ;
24509 int res1 = 0 ;
24510 void *argp2 = 0 ;
24511 int res2 = 0 ;
24512 wxRect temp3 ;
24513 int val4 ;
24514 int ecode4 = 0 ;
24515 PyObject * obj0 = 0 ;
24516 PyObject * obj1 = 0 ;
24517 PyObject * obj2 = 0 ;
24518 PyObject * obj3 = 0 ;
24519 char * kwnames[] = {
24520 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
24521 };
24522
24523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24525 if (!SWIG_IsOK(res1)) {
24526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
24527 }
24528 arg1 = reinterpret_cast< wxEffects * >(argp1);
24529 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
24530 if (!SWIG_IsOK(res2)) {
24531 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
24532 }
24533 if (!argp2) {
24534 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
24535 }
24536 arg2 = reinterpret_cast< wxDC * >(argp2);
24537 {
24538 arg3 = &temp3;
24539 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
24540 }
24541 if (obj3) {
24542 ecode4 = SWIG_AsVal_int(obj3, &val4);
24543 if (!SWIG_IsOK(ecode4)) {
24544 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
24545 }
24546 arg4 = static_cast< int >(val4);
24547 }
24548 {
24549 PyThreadState* __tstate = wxPyBeginAllowThreads();
24550 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
24551 wxPyEndAllowThreads(__tstate);
24552 if (PyErr_Occurred()) SWIG_fail;
24553 }
24554 resultobj = SWIG_Py_Void();
24555 return resultobj;
24556 fail:
24557 return NULL;
24558 }
24559
24560
24561 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24562 PyObject *resultobj = 0;
24563 wxEffects *arg1 = (wxEffects *) 0 ;
24564 wxRect *arg2 = 0 ;
24565 wxDC *arg3 = 0 ;
24566 wxBitmap *arg4 = 0 ;
24567 bool result;
24568 void *argp1 = 0 ;
24569 int res1 = 0 ;
24570 wxRect temp2 ;
24571 void *argp3 = 0 ;
24572 int res3 = 0 ;
24573 void *argp4 = 0 ;
24574 int res4 = 0 ;
24575 PyObject * obj0 = 0 ;
24576 PyObject * obj1 = 0 ;
24577 PyObject * obj2 = 0 ;
24578 PyObject * obj3 = 0 ;
24579 char * kwnames[] = {
24580 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
24581 };
24582
24583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24585 if (!SWIG_IsOK(res1)) {
24586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
24587 }
24588 arg1 = reinterpret_cast< wxEffects * >(argp1);
24589 {
24590 arg2 = &temp2;
24591 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
24592 }
24593 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24594 if (!SWIG_IsOK(res3)) {
24595 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
24596 }
24597 if (!argp3) {
24598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
24599 }
24600 arg3 = reinterpret_cast< wxDC * >(argp3);
24601 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
24602 if (!SWIG_IsOK(res4)) {
24603 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
24604 }
24605 if (!argp4) {
24606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
24607 }
24608 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24609 {
24610 PyThreadState* __tstate = wxPyBeginAllowThreads();
24611 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
24612 wxPyEndAllowThreads(__tstate);
24613 if (PyErr_Occurred()) SWIG_fail;
24614 }
24615 {
24616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24617 }
24618 return resultobj;
24619 fail:
24620 return NULL;
24621 }
24622
24623
24624 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24625 PyObject *obj;
24626 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24627 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
24628 return SWIG_Py_Void();
24629 }
24630
24631 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24632 return SWIG_Python_InitShadowInstance(args);
24633 }
24634
24635 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24636 PyObject *resultobj = 0;
24637 int arg1 ;
24638 int arg2 ;
24639 bool arg3 ;
24640 wxSplitterRenderParams *result = 0 ;
24641 int val1 ;
24642 int ecode1 = 0 ;
24643 int val2 ;
24644 int ecode2 = 0 ;
24645 bool val3 ;
24646 int ecode3 = 0 ;
24647 PyObject * obj0 = 0 ;
24648 PyObject * obj1 = 0 ;
24649 PyObject * obj2 = 0 ;
24650 char * kwnames[] = {
24651 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
24652 };
24653
24654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24655 ecode1 = SWIG_AsVal_int(obj0, &val1);
24656 if (!SWIG_IsOK(ecode1)) {
24657 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
24658 }
24659 arg1 = static_cast< int >(val1);
24660 ecode2 = SWIG_AsVal_int(obj1, &val2);
24661 if (!SWIG_IsOK(ecode2)) {
24662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
24663 }
24664 arg2 = static_cast< int >(val2);
24665 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24666 if (!SWIG_IsOK(ecode3)) {
24667 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
24668 }
24669 arg3 = static_cast< bool >(val3);
24670 {
24671 PyThreadState* __tstate = wxPyBeginAllowThreads();
24672 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
24673 wxPyEndAllowThreads(__tstate);
24674 if (PyErr_Occurred()) SWIG_fail;
24675 }
24676 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
24677 return resultobj;
24678 fail:
24679 return NULL;
24680 }
24681
24682
24683 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24684 PyObject *resultobj = 0;
24685 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24686 void *argp1 = 0 ;
24687 int res1 = 0 ;
24688 PyObject *swig_obj[1] ;
24689
24690 if (!args) SWIG_fail;
24691 swig_obj[0] = args;
24692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
24693 if (!SWIG_IsOK(res1)) {
24694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24695 }
24696 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24697 {
24698 PyThreadState* __tstate = wxPyBeginAllowThreads();
24699 delete arg1;
24700
24701 wxPyEndAllowThreads(__tstate);
24702 if (PyErr_Occurred()) SWIG_fail;
24703 }
24704 resultobj = SWIG_Py_Void();
24705 return resultobj;
24706 fail:
24707 return NULL;
24708 }
24709
24710
24711 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24712 PyObject *resultobj = 0;
24713 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24714 int result;
24715 void *argp1 = 0 ;
24716 int res1 = 0 ;
24717 PyObject *swig_obj[1] ;
24718
24719 if (!args) SWIG_fail;
24720 swig_obj[0] = args;
24721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24722 if (!SWIG_IsOK(res1)) {
24723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24724 }
24725 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24726 result = (int)(int) ((arg1)->widthSash);
24727 resultobj = SWIG_From_int(static_cast< int >(result));
24728 return resultobj;
24729 fail:
24730 return NULL;
24731 }
24732
24733
24734 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24735 PyObject *resultobj = 0;
24736 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24737 int result;
24738 void *argp1 = 0 ;
24739 int res1 = 0 ;
24740 PyObject *swig_obj[1] ;
24741
24742 if (!args) SWIG_fail;
24743 swig_obj[0] = args;
24744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24745 if (!SWIG_IsOK(res1)) {
24746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24747 }
24748 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24749 result = (int)(int) ((arg1)->border);
24750 resultobj = SWIG_From_int(static_cast< int >(result));
24751 return resultobj;
24752 fail:
24753 return NULL;
24754 }
24755
24756
24757 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24758 PyObject *resultobj = 0;
24759 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24760 bool result;
24761 void *argp1 = 0 ;
24762 int res1 = 0 ;
24763 PyObject *swig_obj[1] ;
24764
24765 if (!args) SWIG_fail;
24766 swig_obj[0] = args;
24767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24768 if (!SWIG_IsOK(res1)) {
24769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24770 }
24771 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24772 result = (bool)(bool) ((arg1)->isHotSensitive);
24773 resultobj = SWIG_From_bool(static_cast< bool >(result));
24774 return resultobj;
24775 fail:
24776 return NULL;
24777 }
24778
24779
24780 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24781 PyObject *obj;
24782 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24783 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
24784 return SWIG_Py_Void();
24785 }
24786
24787 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24788 return SWIG_Python_InitShadowInstance(args);
24789 }
24790
24791 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24792 PyObject *resultobj = 0;
24793 int arg1 ;
24794 int arg2 ;
24795 wxRendererVersion *result = 0 ;
24796 int val1 ;
24797 int ecode1 = 0 ;
24798 int val2 ;
24799 int ecode2 = 0 ;
24800 PyObject * obj0 = 0 ;
24801 PyObject * obj1 = 0 ;
24802 char * kwnames[] = {
24803 (char *) "version_",(char *) "age_", NULL
24804 };
24805
24806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
24807 ecode1 = SWIG_AsVal_int(obj0, &val1);
24808 if (!SWIG_IsOK(ecode1)) {
24809 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
24810 }
24811 arg1 = static_cast< int >(val1);
24812 ecode2 = SWIG_AsVal_int(obj1, &val2);
24813 if (!SWIG_IsOK(ecode2)) {
24814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
24815 }
24816 arg2 = static_cast< int >(val2);
24817 {
24818 PyThreadState* __tstate = wxPyBeginAllowThreads();
24819 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
24820 wxPyEndAllowThreads(__tstate);
24821 if (PyErr_Occurred()) SWIG_fail;
24822 }
24823 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
24824 return resultobj;
24825 fail:
24826 return NULL;
24827 }
24828
24829
24830 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24831 PyObject *resultobj = 0;
24832 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24833 void *argp1 = 0 ;
24834 int res1 = 0 ;
24835 PyObject *swig_obj[1] ;
24836
24837 if (!args) SWIG_fail;
24838 swig_obj[0] = args;
24839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
24840 if (!SWIG_IsOK(res1)) {
24841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24842 }
24843 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24844 {
24845 PyThreadState* __tstate = wxPyBeginAllowThreads();
24846 delete arg1;
24847
24848 wxPyEndAllowThreads(__tstate);
24849 if (PyErr_Occurred()) SWIG_fail;
24850 }
24851 resultobj = SWIG_Py_Void();
24852 return resultobj;
24853 fail:
24854 return NULL;
24855 }
24856
24857
24858 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24859 PyObject *resultobj = 0;
24860 wxRendererVersion *arg1 = 0 ;
24861 bool result;
24862 void *argp1 = 0 ;
24863 int res1 = 0 ;
24864 PyObject * obj0 = 0 ;
24865 char * kwnames[] = {
24866 (char *) "ver", NULL
24867 };
24868
24869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
24870 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
24871 if (!SWIG_IsOK(res1)) {
24872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24873 }
24874 if (!argp1) {
24875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24876 }
24877 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24878 {
24879 PyThreadState* __tstate = wxPyBeginAllowThreads();
24880 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
24881 wxPyEndAllowThreads(__tstate);
24882 if (PyErr_Occurred()) SWIG_fail;
24883 }
24884 {
24885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24886 }
24887 return resultobj;
24888 fail:
24889 return NULL;
24890 }
24891
24892
24893 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24894 PyObject *resultobj = 0;
24895 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24896 int result;
24897 void *argp1 = 0 ;
24898 int res1 = 0 ;
24899 PyObject *swig_obj[1] ;
24900
24901 if (!args) SWIG_fail;
24902 swig_obj[0] = args;
24903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24904 if (!SWIG_IsOK(res1)) {
24905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24906 }
24907 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24908 result = (int)(int) ((arg1)->version);
24909 resultobj = SWIG_From_int(static_cast< int >(result));
24910 return resultobj;
24911 fail:
24912 return NULL;
24913 }
24914
24915
24916 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24917 PyObject *resultobj = 0;
24918 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24919 int result;
24920 void *argp1 = 0 ;
24921 int res1 = 0 ;
24922 PyObject *swig_obj[1] ;
24923
24924 if (!args) SWIG_fail;
24925 swig_obj[0] = args;
24926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24927 if (!SWIG_IsOK(res1)) {
24928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24929 }
24930 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24931 result = (int)(int) ((arg1)->age);
24932 resultobj = SWIG_From_int(static_cast< int >(result));
24933 return resultobj;
24934 fail:
24935 return NULL;
24936 }
24937
24938
24939 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24940 PyObject *obj;
24941 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24942 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
24943 return SWIG_Py_Void();
24944 }
24945
24946 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24947 return SWIG_Python_InitShadowInstance(args);
24948 }
24949
24950 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24951 PyObject *resultobj = 0;
24952 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24953 wxWindow *arg2 = (wxWindow *) 0 ;
24954 wxDC *arg3 = 0 ;
24955 wxRect *arg4 = 0 ;
24956 int arg5 = (int) 0 ;
24957 void *argp1 = 0 ;
24958 int res1 = 0 ;
24959 void *argp2 = 0 ;
24960 int res2 = 0 ;
24961 void *argp3 = 0 ;
24962 int res3 = 0 ;
24963 wxRect temp4 ;
24964 int val5 ;
24965 int ecode5 = 0 ;
24966 PyObject * obj0 = 0 ;
24967 PyObject * obj1 = 0 ;
24968 PyObject * obj2 = 0 ;
24969 PyObject * obj3 = 0 ;
24970 PyObject * obj4 = 0 ;
24971 char * kwnames[] = {
24972 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24973 };
24974
24975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24977 if (!SWIG_IsOK(res1)) {
24978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24979 }
24980 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24981 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24982 if (!SWIG_IsOK(res2)) {
24983 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24984 }
24985 arg2 = reinterpret_cast< wxWindow * >(argp2);
24986 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24987 if (!SWIG_IsOK(res3)) {
24988 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24989 }
24990 if (!argp3) {
24991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24992 }
24993 arg3 = reinterpret_cast< wxDC * >(argp3);
24994 {
24995 arg4 = &temp4;
24996 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24997 }
24998 if (obj4) {
24999 ecode5 = SWIG_AsVal_int(obj4, &val5);
25000 if (!SWIG_IsOK(ecode5)) {
25001 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
25002 }
25003 arg5 = static_cast< int >(val5);
25004 }
25005 {
25006 PyThreadState* __tstate = wxPyBeginAllowThreads();
25007 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25008 wxPyEndAllowThreads(__tstate);
25009 if (PyErr_Occurred()) SWIG_fail;
25010 }
25011 resultobj = SWIG_Py_Void();
25012 return resultobj;
25013 fail:
25014 return NULL;
25015 }
25016
25017
25018 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25019 PyObject *resultobj = 0;
25020 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25021 wxWindow *arg2 = (wxWindow *) 0 ;
25022 wxDC *arg3 = 0 ;
25023 wxRect *arg4 = 0 ;
25024 int arg5 = (int) 0 ;
25025 void *argp1 = 0 ;
25026 int res1 = 0 ;
25027 void *argp2 = 0 ;
25028 int res2 = 0 ;
25029 void *argp3 = 0 ;
25030 int res3 = 0 ;
25031 wxRect temp4 ;
25032 int val5 ;
25033 int ecode5 = 0 ;
25034 PyObject * obj0 = 0 ;
25035 PyObject * obj1 = 0 ;
25036 PyObject * obj2 = 0 ;
25037 PyObject * obj3 = 0 ;
25038 PyObject * obj4 = 0 ;
25039 char * kwnames[] = {
25040 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25041 };
25042
25043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25045 if (!SWIG_IsOK(res1)) {
25046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25047 }
25048 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25049 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25050 if (!SWIG_IsOK(res2)) {
25051 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25052 }
25053 arg2 = reinterpret_cast< wxWindow * >(argp2);
25054 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25055 if (!SWIG_IsOK(res3)) {
25056 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
25057 }
25058 if (!argp3) {
25059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
25060 }
25061 arg3 = reinterpret_cast< wxDC * >(argp3);
25062 {
25063 arg4 = &temp4;
25064 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25065 }
25066 if (obj4) {
25067 ecode5 = SWIG_AsVal_int(obj4, &val5);
25068 if (!SWIG_IsOK(ecode5)) {
25069 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
25070 }
25071 arg5 = static_cast< int >(val5);
25072 }
25073 {
25074 PyThreadState* __tstate = wxPyBeginAllowThreads();
25075 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25076 wxPyEndAllowThreads(__tstate);
25077 if (PyErr_Occurred()) SWIG_fail;
25078 }
25079 resultobj = SWIG_Py_Void();
25080 return resultobj;
25081 fail:
25082 return NULL;
25083 }
25084
25085
25086 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25087 PyObject *resultobj = 0;
25088 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25089 wxWindow *arg2 = (wxWindow *) 0 ;
25090 wxDC *arg3 = 0 ;
25091 wxRect *arg4 = 0 ;
25092 int arg5 = (int) 0 ;
25093 void *argp1 = 0 ;
25094 int res1 = 0 ;
25095 void *argp2 = 0 ;
25096 int res2 = 0 ;
25097 void *argp3 = 0 ;
25098 int res3 = 0 ;
25099 wxRect temp4 ;
25100 int val5 ;
25101 int ecode5 = 0 ;
25102 PyObject * obj0 = 0 ;
25103 PyObject * obj1 = 0 ;
25104 PyObject * obj2 = 0 ;
25105 PyObject * obj3 = 0 ;
25106 PyObject * obj4 = 0 ;
25107 char * kwnames[] = {
25108 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25109 };
25110
25111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25113 if (!SWIG_IsOK(res1)) {
25114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25115 }
25116 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25117 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25118 if (!SWIG_IsOK(res2)) {
25119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
25120 }
25121 arg2 = reinterpret_cast< wxWindow * >(argp2);
25122 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25123 if (!SWIG_IsOK(res3)) {
25124 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
25125 }
25126 if (!argp3) {
25127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
25128 }
25129 arg3 = reinterpret_cast< wxDC * >(argp3);
25130 {
25131 arg4 = &temp4;
25132 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25133 }
25134 if (obj4) {
25135 ecode5 = SWIG_AsVal_int(obj4, &val5);
25136 if (!SWIG_IsOK(ecode5)) {
25137 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
25138 }
25139 arg5 = static_cast< int >(val5);
25140 }
25141 {
25142 PyThreadState* __tstate = wxPyBeginAllowThreads();
25143 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
25144 wxPyEndAllowThreads(__tstate);
25145 if (PyErr_Occurred()) SWIG_fail;
25146 }
25147 resultobj = SWIG_Py_Void();
25148 return resultobj;
25149 fail:
25150 return NULL;
25151 }
25152
25153
25154 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25155 PyObject *resultobj = 0;
25156 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25157 wxWindow *arg2 = (wxWindow *) 0 ;
25158 wxDC *arg3 = 0 ;
25159 wxSize *arg4 = 0 ;
25160 int arg5 ;
25161 wxOrientation arg6 ;
25162 int arg7 = (int) 0 ;
25163 void *argp1 = 0 ;
25164 int res1 = 0 ;
25165 void *argp2 = 0 ;
25166 int res2 = 0 ;
25167 void *argp3 = 0 ;
25168 int res3 = 0 ;
25169 wxSize temp4 ;
25170 int val5 ;
25171 int ecode5 = 0 ;
25172 int val6 ;
25173 int ecode6 = 0 ;
25174 int val7 ;
25175 int ecode7 = 0 ;
25176 PyObject * obj0 = 0 ;
25177 PyObject * obj1 = 0 ;
25178 PyObject * obj2 = 0 ;
25179 PyObject * obj3 = 0 ;
25180 PyObject * obj4 = 0 ;
25181 PyObject * obj5 = 0 ;
25182 PyObject * obj6 = 0 ;
25183 char * kwnames[] = {
25184 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
25185 };
25186
25187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25189 if (!SWIG_IsOK(res1)) {
25190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25191 }
25192 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25193 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25194 if (!SWIG_IsOK(res2)) {
25195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
25196 }
25197 arg2 = reinterpret_cast< wxWindow * >(argp2);
25198 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25199 if (!SWIG_IsOK(res3)) {
25200 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
25201 }
25202 if (!argp3) {
25203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
25204 }
25205 arg3 = reinterpret_cast< wxDC * >(argp3);
25206 {
25207 arg4 = &temp4;
25208 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25209 }
25210 ecode5 = SWIG_AsVal_int(obj4, &val5);
25211 if (!SWIG_IsOK(ecode5)) {
25212 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
25213 }
25214 arg5 = static_cast< int >(val5);
25215 ecode6 = SWIG_AsVal_int(obj5, &val6);
25216 if (!SWIG_IsOK(ecode6)) {
25217 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
25218 }
25219 arg6 = static_cast< wxOrientation >(val6);
25220 if (obj6) {
25221 ecode7 = SWIG_AsVal_int(obj6, &val7);
25222 if (!SWIG_IsOK(ecode7)) {
25223 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
25224 }
25225 arg7 = static_cast< int >(val7);
25226 }
25227 {
25228 PyThreadState* __tstate = wxPyBeginAllowThreads();
25229 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
25230 wxPyEndAllowThreads(__tstate);
25231 if (PyErr_Occurred()) SWIG_fail;
25232 }
25233 resultobj = SWIG_Py_Void();
25234 return resultobj;
25235 fail:
25236 return NULL;
25237 }
25238
25239
25240 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25241 PyObject *resultobj = 0;
25242 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25243 wxWindow *arg2 = (wxWindow *) 0 ;
25244 wxDC *arg3 = 0 ;
25245 wxRect *arg4 = 0 ;
25246 int arg5 = (int) 0 ;
25247 void *argp1 = 0 ;
25248 int res1 = 0 ;
25249 void *argp2 = 0 ;
25250 int res2 = 0 ;
25251 void *argp3 = 0 ;
25252 int res3 = 0 ;
25253 wxRect temp4 ;
25254 int val5 ;
25255 int ecode5 = 0 ;
25256 PyObject * obj0 = 0 ;
25257 PyObject * obj1 = 0 ;
25258 PyObject * obj2 = 0 ;
25259 PyObject * obj3 = 0 ;
25260 PyObject * obj4 = 0 ;
25261 char * kwnames[] = {
25262 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25263 };
25264
25265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25267 if (!SWIG_IsOK(res1)) {
25268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25269 }
25270 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25271 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25272 if (!SWIG_IsOK(res2)) {
25273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25274 }
25275 arg2 = reinterpret_cast< wxWindow * >(argp2);
25276 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25277 if (!SWIG_IsOK(res3)) {
25278 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
25279 }
25280 if (!argp3) {
25281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
25282 }
25283 arg3 = reinterpret_cast< wxDC * >(argp3);
25284 {
25285 arg4 = &temp4;
25286 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25287 }
25288 if (obj4) {
25289 ecode5 = SWIG_AsVal_int(obj4, &val5);
25290 if (!SWIG_IsOK(ecode5)) {
25291 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
25292 }
25293 arg5 = static_cast< int >(val5);
25294 }
25295 {
25296 PyThreadState* __tstate = wxPyBeginAllowThreads();
25297 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25298 wxPyEndAllowThreads(__tstate);
25299 if (PyErr_Occurred()) SWIG_fail;
25300 }
25301 resultobj = SWIG_Py_Void();
25302 return resultobj;
25303 fail:
25304 return NULL;
25305 }
25306
25307
25308 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25309 PyObject *resultobj = 0;
25310 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25311 wxWindow *arg2 = (wxWindow *) 0 ;
25312 wxDC *arg3 = 0 ;
25313 wxRect *arg4 = 0 ;
25314 int arg5 = (int) 0 ;
25315 void *argp1 = 0 ;
25316 int res1 = 0 ;
25317 void *argp2 = 0 ;
25318 int res2 = 0 ;
25319 void *argp3 = 0 ;
25320 int res3 = 0 ;
25321 wxRect temp4 ;
25322 int val5 ;
25323 int ecode5 = 0 ;
25324 PyObject * obj0 = 0 ;
25325 PyObject * obj1 = 0 ;
25326 PyObject * obj2 = 0 ;
25327 PyObject * obj3 = 0 ;
25328 PyObject * obj4 = 0 ;
25329 char * kwnames[] = {
25330 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25331 };
25332
25333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25335 if (!SWIG_IsOK(res1)) {
25336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25337 }
25338 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25339 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25340 if (!SWIG_IsOK(res2)) {
25341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
25342 }
25343 arg2 = reinterpret_cast< wxWindow * >(argp2);
25344 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25345 if (!SWIG_IsOK(res3)) {
25346 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
25347 }
25348 if (!argp3) {
25349 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
25350 }
25351 arg3 = reinterpret_cast< wxDC * >(argp3);
25352 {
25353 arg4 = &temp4;
25354 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25355 }
25356 if (obj4) {
25357 ecode5 = SWIG_AsVal_int(obj4, &val5);
25358 if (!SWIG_IsOK(ecode5)) {
25359 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
25360 }
25361 arg5 = static_cast< int >(val5);
25362 }
25363 {
25364 PyThreadState* __tstate = wxPyBeginAllowThreads();
25365 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
25366 wxPyEndAllowThreads(__tstate);
25367 if (PyErr_Occurred()) SWIG_fail;
25368 }
25369 resultobj = SWIG_Py_Void();
25370 return resultobj;
25371 fail:
25372 return NULL;
25373 }
25374
25375
25376 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25377 PyObject *resultobj = 0;
25378 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25379 wxWindow *arg2 = (wxWindow *) 0 ;
25380 wxDC *arg3 = 0 ;
25381 wxRect *arg4 = 0 ;
25382 int arg5 = (int) 0 ;
25383 void *argp1 = 0 ;
25384 int res1 = 0 ;
25385 void *argp2 = 0 ;
25386 int res2 = 0 ;
25387 void *argp3 = 0 ;
25388 int res3 = 0 ;
25389 wxRect temp4 ;
25390 int val5 ;
25391 int ecode5 = 0 ;
25392 PyObject * obj0 = 0 ;
25393 PyObject * obj1 = 0 ;
25394 PyObject * obj2 = 0 ;
25395 PyObject * obj3 = 0 ;
25396 PyObject * obj4 = 0 ;
25397 char * kwnames[] = {
25398 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25399 };
25400
25401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25403 if (!SWIG_IsOK(res1)) {
25404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25405 }
25406 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25407 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25408 if (!SWIG_IsOK(res2)) {
25409 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25410 }
25411 arg2 = reinterpret_cast< wxWindow * >(argp2);
25412 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25413 if (!SWIG_IsOK(res3)) {
25414 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckButton" "', expected argument " "3"" of type '" "wxDC &""'");
25415 }
25416 if (!argp3) {
25417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckButton" "', expected argument " "3"" of type '" "wxDC &""'");
25418 }
25419 arg3 = reinterpret_cast< wxDC * >(argp3);
25420 {
25421 arg4 = &temp4;
25422 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25423 }
25424 if (obj4) {
25425 ecode5 = SWIG_AsVal_int(obj4, &val5);
25426 if (!SWIG_IsOK(ecode5)) {
25427 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckButton" "', expected argument " "5"" of type '" "int""'");
25428 }
25429 arg5 = static_cast< int >(val5);
25430 }
25431 {
25432 PyThreadState* __tstate = wxPyBeginAllowThreads();
25433 (arg1)->DrawCheckButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25434 wxPyEndAllowThreads(__tstate);
25435 if (PyErr_Occurred()) SWIG_fail;
25436 }
25437 resultobj = SWIG_Py_Void();
25438 return resultobj;
25439 fail:
25440 return NULL;
25441 }
25442
25443
25444 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25445 PyObject *resultobj = 0;
25446 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25447 wxWindow *arg2 = (wxWindow *) 0 ;
25448 SwigValueWrapper<wxSplitterRenderParams > result;
25449 void *argp1 = 0 ;
25450 int res1 = 0 ;
25451 void *argp2 = 0 ;
25452 int res2 = 0 ;
25453 PyObject * obj0 = 0 ;
25454 PyObject * obj1 = 0 ;
25455 char * kwnames[] = {
25456 (char *) "self",(char *) "win", NULL
25457 };
25458
25459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
25460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25461 if (!SWIG_IsOK(res1)) {
25462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25463 }
25464 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25465 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25466 if (!SWIG_IsOK(res2)) {
25467 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
25468 }
25469 arg2 = reinterpret_cast< wxWindow * >(argp2);
25470 {
25471 PyThreadState* __tstate = wxPyBeginAllowThreads();
25472 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
25473 wxPyEndAllowThreads(__tstate);
25474 if (PyErr_Occurred()) SWIG_fail;
25475 }
25476 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
25477 return resultobj;
25478 fail:
25479 return NULL;
25480 }
25481
25482
25483 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25484 PyObject *resultobj = 0;
25485 wxRendererNative *result = 0 ;
25486
25487 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
25488 {
25489 PyThreadState* __tstate = wxPyBeginAllowThreads();
25490 {
25491 wxRendererNative &_result_ref = wxRendererNative::Get();
25492 result = (wxRendererNative *) &_result_ref;
25493 }
25494 wxPyEndAllowThreads(__tstate);
25495 if (PyErr_Occurred()) SWIG_fail;
25496 }
25497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25498 return resultobj;
25499 fail:
25500 return NULL;
25501 }
25502
25503
25504 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25505 PyObject *resultobj = 0;
25506 wxRendererNative *result = 0 ;
25507
25508 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
25509 {
25510 PyThreadState* __tstate = wxPyBeginAllowThreads();
25511 {
25512 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
25513 result = (wxRendererNative *) &_result_ref;
25514 }
25515 wxPyEndAllowThreads(__tstate);
25516 if (PyErr_Occurred()) SWIG_fail;
25517 }
25518 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25519 return resultobj;
25520 fail:
25521 return NULL;
25522 }
25523
25524
25525 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25526 PyObject *resultobj = 0;
25527 wxRendererNative *result = 0 ;
25528
25529 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
25530 {
25531 PyThreadState* __tstate = wxPyBeginAllowThreads();
25532 {
25533 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
25534 result = (wxRendererNative *) &_result_ref;
25535 }
25536 wxPyEndAllowThreads(__tstate);
25537 if (PyErr_Occurred()) SWIG_fail;
25538 }
25539 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25540 return resultobj;
25541 fail:
25542 return NULL;
25543 }
25544
25545
25546 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25547 PyObject *resultobj = 0;
25548 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25549 wxRendererNative *result = 0 ;
25550 void *argp1 = 0 ;
25551 int res1 = 0 ;
25552 PyObject * obj0 = 0 ;
25553 char * kwnames[] = {
25554 (char *) "renderer", NULL
25555 };
25556
25557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
25558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25559 if (!SWIG_IsOK(res1)) {
25560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25561 }
25562 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25563 {
25564 PyThreadState* __tstate = wxPyBeginAllowThreads();
25565 result = (wxRendererNative *)wxRendererNative::Set(arg1);
25566 wxPyEndAllowThreads(__tstate);
25567 if (PyErr_Occurred()) SWIG_fail;
25568 }
25569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25570 return resultobj;
25571 fail:
25572 return NULL;
25573 }
25574
25575
25576 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25577 PyObject *resultobj = 0;
25578 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25579 SwigValueWrapper<wxRendererVersion > result;
25580 void *argp1 = 0 ;
25581 int res1 = 0 ;
25582 PyObject *swig_obj[1] ;
25583
25584 if (!args) SWIG_fail;
25585 swig_obj[0] = args;
25586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25587 if (!SWIG_IsOK(res1)) {
25588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
25589 }
25590 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25591 {
25592 PyThreadState* __tstate = wxPyBeginAllowThreads();
25593 result = ((wxRendererNative const *)arg1)->GetVersion();
25594 wxPyEndAllowThreads(__tstate);
25595 if (PyErr_Occurred()) SWIG_fail;
25596 }
25597 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
25598 return resultobj;
25599 fail:
25600 return NULL;
25601 }
25602
25603
25604 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25605 PyObject *obj;
25606 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25607 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
25608 return SWIG_Py_Void();
25609 }
25610
25611 static PyMethodDef SwigMethods[] = {
25612 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
25613 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
25614 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
25615 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
25616 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
25617 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
25618 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
25619 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25620 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
25621 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
25622 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
25623 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
25624 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
25625 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25626 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25627 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
25628 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
25629 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25630 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25631 { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL},
25632 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
25633 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
25634 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
25635 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
25636 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
25637 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
25638 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25639 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
25640 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
25641 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
25642 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
25643 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
25644 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
25645 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
25646 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
25647 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
25648 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
25649 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
25650 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
25651 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
25652 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25653 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
25654 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25655 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25656 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
25657 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
25658 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
25659 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
25660 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
25661 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
25662 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25663 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25664 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
25665 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
25666 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
25667 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25668 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
25669 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25670 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25671 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
25672 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
25673 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
25674 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
25675 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
25676 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
25677 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
25678 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
25679 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25680 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
25681 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25682 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25683 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
25684 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
25685 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
25686 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
25687 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
25688 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
25689 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
25690 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
25691 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
25692 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
25693 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
25694 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
25695 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
25696 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
25697 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25698 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
25699 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
25700 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
25701 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
25702 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25703 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25704 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25705 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25706 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25707 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25708 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25709 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25710 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
25711 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
25712 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
25713 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
25714 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
25715 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
25716 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
25717 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
25718 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
25719 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
25720 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25721 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
25722 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
25723 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
25724 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
25725 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
25726 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
25727 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
25728 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
25729 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25730 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25731 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25732 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25733 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25734 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
25735 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
25736 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
25737 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
25738 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
25739 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
25740 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
25741 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
25742 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
25743 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
25744 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
25745 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
25746 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
25747 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25748 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
25749 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25750 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
25751 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25752 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
25753 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
25754 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
25755 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
25756 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25757 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
25758 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
25759 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
25760 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
25761 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
25762 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
25763 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
25764 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25765 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25766 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25767 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25768 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
25769 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
25770 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
25771 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25772 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25773 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
25774 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
25775 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
25776 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
25777 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
25778 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25779 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
25780 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
25781 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
25782 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
25783 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
25784 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25785 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
25786 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
25787 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
25788 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25789 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
25790 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
25791 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25792 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
25793 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
25794 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25795 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
25796 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25797 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25798 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
25799 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
25800 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
25801 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
25802 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
25803 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
25804 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
25805 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
25806 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
25807 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
25808 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
25809 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
25810 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
25811 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
25812 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
25813 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
25814 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
25815 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
25816 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
25817 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
25818 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
25819 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
25820 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
25821 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
25822 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
25823 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
25824 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
25825 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
25826 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
25827 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25828 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25829 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25830 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
25831 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
25832 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
25833 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
25834 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25835 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
25836 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
25837 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
25838 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
25839 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
25840 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
25841 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
25842 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
25843 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
25844 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
25845 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
25846 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
25847 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
25848 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
25849 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
25850 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
25851 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
25852 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25853 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25854 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
25855 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
25856 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
25857 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25858 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25859 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
25860 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25861 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
25862 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
25863 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
25864 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
25865 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
25866 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25867 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
25868 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
25869 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
25870 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
25871 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
25872 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
25873 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
25874 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25875 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
25876 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
25877 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25878 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25879 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
25880 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25881 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25882 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
25883 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
25884 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
25885 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
25886 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
25887 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
25888 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
25889 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
25890 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
25891 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
25892 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
25893 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
25894 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
25895 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25896 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25897 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
25898 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25899 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
25900 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
25901 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
25902 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25903 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25904 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
25905 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
25906 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
25907 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
25908 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
25909 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
25910 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
25911 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
25912 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25913 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
25914 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
25915 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
25916 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
25917 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25918 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
25919 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
25920 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_O, NULL},
25921 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_O, NULL},
25922 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
25923 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
25924 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
25925 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
25926 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
25927 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
25928 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
25929 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
25930 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
25931 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
25932 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
25933 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
25934 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
25935 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
25936 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
25937 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
25938 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
25939 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
25940 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
25941 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
25942 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
25943 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
25944 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
25945 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
25946 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25947 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
25948 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25949 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
25950 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
25951 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
25952 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
25953 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
25954 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
25955 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
25956 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
25957 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
25958 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
25959 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
25960 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
25961 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
25962 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
25963 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
25964 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
25965 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
25966 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
25967 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25968 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
25969 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
25970 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
25971 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25972 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
25973 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
25974 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
25975 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25976 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
25977 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25978 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
25979 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
25980 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
25981 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25982 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25983 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25984 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
25985 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
25986 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25987 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
25988 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
25989 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25990 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
25991 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
25992 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
25993 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
25994 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25995 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25996 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25997 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25998 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25999 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
26000 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26001 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
26002 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26003 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
26004 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26005 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
26006 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26007 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
26008 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
26009 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
26010 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
26011 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
26012 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
26013 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
26014 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
26015 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
26016 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
26017 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
26018 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
26019 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
26020 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
26021 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26022 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
26023 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
26024 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
26025 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
26026 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
26027 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
26028 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
26029 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
26030 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
26031 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
26032 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
26033 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
26034 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
26035 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
26036 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
26037 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
26038 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
26039 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
26040 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
26041 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
26042 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
26043 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
26044 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
26045 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
26046 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
26047 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
26048 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
26049 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
26050 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
26051 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
26052 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
26053 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
26054 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
26055 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
26056 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
26057 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
26058 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
26059 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
26060 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
26061 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
26062 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
26063 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
26064 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
26065 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
26066 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
26067 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
26068 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
26069 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26070 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
26071 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
26072 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
26073 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26074 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
26075 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
26076 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
26077 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
26078 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
26079 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26080 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
26081 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
26082 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
26083 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
26084 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
26085 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
26086 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
26087 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
26088 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
26089 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
26090 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
26091 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
26092 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
26093 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
26094 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
26095 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
26096 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
26097 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
26098 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
26099 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
26100 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
26101 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
26102 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
26103 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
26104 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
26105 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
26106 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
26107 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
26108 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
26109 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
26110 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
26111 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
26112 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
26113 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
26114 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
26115 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
26116 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
26117 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
26118 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
26119 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
26120 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
26121 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
26122 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
26123 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
26124 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
26125 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
26126 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
26127 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
26128 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
26129 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
26130 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
26131 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
26132 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
26133 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
26134 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
26135 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
26136 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
26137 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
26138 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
26139 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
26140 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
26141 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
26142 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
26143 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
26144 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
26145 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
26146 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
26147 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
26148 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
26149 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
26150 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
26151 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
26152 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
26153 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
26154 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
26155 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
26156 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
26157 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
26158 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
26159 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
26160 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
26161 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
26162 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
26163 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
26164 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
26165 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
26166 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
26167 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
26168 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26169 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
26170 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
26171 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
26172 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
26173 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
26174 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
26175 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
26176 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
26177 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
26178 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
26179 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
26180 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
26181 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
26182 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
26183 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26184 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26185 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26186 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
26187 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
26188 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
26189 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
26190 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
26191 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
26192 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
26193 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
26194 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
26195 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
26196 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
26197 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
26198 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
26199 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
26200 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
26201 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
26202 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
26203 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
26204 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
26205 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
26206 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
26207 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
26208 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
26209 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
26210 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
26211 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
26212 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
26213 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
26214 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
26215 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
26216 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
26217 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
26218 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
26219 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
26220 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
26221 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
26222 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
26223 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
26224 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
26225 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
26226 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
26227 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
26228 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
26229 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
26230 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
26231 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
26232 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
26233 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
26234 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
26235 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
26236 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
26237 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
26238 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
26239 { (char *)"RendererNative_DrawCheckButton", (PyCFunction) _wrap_RendererNative_DrawCheckButton, METH_VARARGS | METH_KEYWORDS, NULL},
26240 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
26241 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
26242 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
26243 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
26244 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
26245 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
26246 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
26247 { NULL, NULL, 0, NULL }
26248 };
26249
26250
26251 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
26252
26253 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
26254 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
26255 }
26256 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
26257 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
26258 }
26259 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
26260 return (void *)((wxGDIObject *) ((wxIcon *) x));
26261 }
26262 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
26263 return (void *)((wxGDIObject *) ((wxPalette *) x));
26264 }
26265 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
26266 return (void *)((wxGDIObject *) ((wxPen *) x));
26267 }
26268 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
26269 return (void *)((wxGDIObject *) ((wxFont *) x));
26270 }
26271 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
26272 return (void *)((wxGDIObject *) ((wxCursor *) x));
26273 }
26274 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
26275 return (void *)((wxGDIObject *) ((wxBitmap *) x));
26276 }
26277 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
26278 return (void *)((wxGDIObject *) ((wxRegion *) x));
26279 }
26280 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
26281 return (void *)((wxGDIObject *) ((wxBrush *) x));
26282 }
26283 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
26284 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
26285 }
26286 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
26287 return (void *)((wxDC *) ((wxScreenDC *) x));
26288 }
26289 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
26290 return (void *)((wxDC *) ((wxMirrorDC *) x));
26291 }
26292 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
26293 return (void *)((wxDC *) ((wxMemoryDC *) x));
26294 }
26295 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
26296 return (void *)((wxDC *) ((wxWindowDC *) x));
26297 }
26298 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
26299 return (void *)((wxDC *) ((wxMetaFileDC *) x));
26300 }
26301 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
26302 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
26303 }
26304 static void *_p_wxClientDCTo_p_wxDC(void *x) {
26305 return (void *)((wxDC *) ((wxClientDC *) x));
26306 }
26307 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
26308 return (void *)((wxDC *) ((wxPaintDC *) x));
26309 }
26310 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
26311 return (void *)((wxDC *) ((wxPostScriptDC *) x));
26312 }
26313 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
26314 return (void *)((wxDC *) ((wxPrinterDC *) x));
26315 }
26316 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
26317 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
26318 }
26319 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
26320 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
26321 }
26322 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
26323 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
26324 }
26325 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
26326 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
26327 }
26328 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
26329 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
26330 }
26331 static void *_p_wxPenTo_p_wxObject(void *x) {
26332 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
26333 }
26334 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
26335 return (void *)((wxObject *) ((wxRegionIterator *) x));
26336 }
26337 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
26338 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
26339 }
26340 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
26341 return (void *)((wxObject *) ((wxSizerItem *) x));
26342 }
26343 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
26344 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
26345 }
26346 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
26347 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
26348 }
26349 static void *_p_wxIconTo_p_wxObject(void *x) {
26350 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
26351 }
26352 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
26353 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
26354 }
26355 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
26356 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
26357 }
26358 static void *_p_wxSizerTo_p_wxObject(void *x) {
26359 return (void *)((wxObject *) ((wxSizer *) x));
26360 }
26361 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
26362 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
26363 }
26364 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
26365 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
26366 }
26367 static void *_p_wxEventTo_p_wxObject(void *x) {
26368 return (void *)((wxObject *) ((wxEvent *) x));
26369 }
26370 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
26371 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
26372 }
26373 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
26374 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
26375 }
26376 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
26377 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
26378 }
26379 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
26380 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
26381 }
26382 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
26383 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
26384 }
26385 static void *_p_wxDCTo_p_wxObject(void *x) {
26386 return (void *)((wxObject *) ((wxDC *) x));
26387 }
26388 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
26389 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
26390 }
26391 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
26392 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
26393 }
26394 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
26395 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
26396 }
26397 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
26398 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
26399 }
26400 static void *_p_wxControlTo_p_wxObject(void *x) {
26401 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
26402 }
26403 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
26404 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
26405 }
26406 static void *_p_wxClientDCTo_p_wxObject(void *x) {
26407 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
26408 }
26409 static void *_p_wxFSFileTo_p_wxObject(void *x) {
26410 return (void *)((wxObject *) ((wxFSFile *) x));
26411 }
26412 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
26413 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
26414 }
26415 static void *_p_wxRegionTo_p_wxObject(void *x) {
26416 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
26417 }
26418 static void *_p_wxPySizerTo_p_wxObject(void *x) {
26419 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
26420 }
26421 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
26422 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
26423 }
26424 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
26425 return (void *)((wxObject *) ((wxGDIObject *) x));
26426 }
26427 static void *_p_wxEffectsTo_p_wxObject(void *x) {
26428 return (void *)((wxObject *) ((wxEffects *) x));
26429 }
26430 static void *_p_wxPyEventTo_p_wxObject(void *x) {
26431 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
26432 }
26433 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
26434 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
26435 }
26436 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
26437 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
26438 }
26439 static void *_p_wxShowEventTo_p_wxObject(void *x) {
26440 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
26441 }
26442 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
26443 return (void *)((wxObject *) ((wxMenuItem *) x));
26444 }
26445 static void *_p_wxDateEventTo_p_wxObject(void *x) {
26446 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
26447 }
26448 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
26449 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
26450 }
26451 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
26452 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
26453 }
26454 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
26455 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
26456 }
26457 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
26458 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
26459 }
26460 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
26461 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
26462 }
26463 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
26464 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
26465 }
26466 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
26467 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
26468 }
26469 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
26470 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
26471 }
26472 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
26473 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
26474 }
26475 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
26476 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
26477 }
26478 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
26479 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
26480 }
26481 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
26482 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
26483 }
26484 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
26485 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
26486 }
26487 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
26488 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
26489 }
26490 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
26491 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
26492 }
26493 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
26494 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
26495 }
26496 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
26497 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
26498 }
26499 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
26500 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
26501 }
26502 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
26503 return (void *)((wxObject *) ((wxImageHandler *) x));
26504 }
26505 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
26506 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
26507 }
26508 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
26509 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
26510 }
26511 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
26512 return (void *)((wxObject *) ((wxEvtHandler *) x));
26513 }
26514 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
26515 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
26516 }
26517 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
26518 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
26519 }
26520 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
26521 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
26522 }
26523 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
26524 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
26525 }
26526 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
26527 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
26528 }
26529 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
26530 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
26531 }
26532 static void *_p_wxImageTo_p_wxObject(void *x) {
26533 return (void *)((wxObject *) ((wxImage *) x));
26534 }
26535 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
26536 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
26537 }
26538 static void *_p_wxPaletteTo_p_wxObject(void *x) {
26539 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
26540 }
26541 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
26542 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
26543 }
26544 static void *_p_wxImageListTo_p_wxObject(void *x) {
26545 return (void *)((wxObject *) ((wxImageList *) x));
26546 }
26547 static void *_p_wxCursorTo_p_wxObject(void *x) {
26548 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
26549 }
26550 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
26551 return (void *)((wxObject *) ((wxEncodingConverter *) x));
26552 }
26553 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
26554 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
26555 }
26556 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
26557 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
26558 }
26559 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
26560 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
26561 }
26562 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
26563 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
26564 }
26565 static void *_p_wxWindowTo_p_wxObject(void *x) {
26566 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
26567 }
26568 static void *_p_wxMenuTo_p_wxObject(void *x) {
26569 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
26570 }
26571 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
26572 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
26573 }
26574 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
26575 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
26576 }
26577 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
26578 return (void *)((wxObject *) ((wxFileSystem *) x));
26579 }
26580 static void *_p_wxBitmapTo_p_wxObject(void *x) {
26581 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
26582 }
26583 static void *_p_wxMaskTo_p_wxObject(void *x) {
26584 return (void *)((wxObject *) ((wxMask *) x));
26585 }
26586 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
26587 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
26588 }
26589 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
26590 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
26591 }
26592 static void *_p_wxPyAppTo_p_wxObject(void *x) {
26593 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
26594 }
26595 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
26596 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
26597 }
26598 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
26599 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
26600 }
26601 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
26602 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
26603 }
26604 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
26605 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
26606 }
26607 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
26608 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
26609 }
26610 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
26611 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
26612 }
26613 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
26614 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
26615 }
26616 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
26617 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
26618 }
26619 static void *_p_wxFontTo_p_wxObject(void *x) {
26620 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
26621 }
26622 static void *_p_wxBrushTo_p_wxObject(void *x) {
26623 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
26624 }
26625 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
26626 return (void *)((wxObject *) ((wxMetaFile *) x));
26627 }
26628 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
26629 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
26630 }
26631 static void *_p_wxColourTo_p_wxObject(void *x) {
26632 return (void *)((wxObject *) ((wxColour *) x));
26633 }
26634 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
26635 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
26636 }
26637 static void *_p_wxValidatorTo_p_wxObject(void *x) {
26638 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
26639 }
26640 static void *_p_wxControlTo_p_wxWindow(void *x) {
26641 return (void *)((wxWindow *) ((wxControl *) x));
26642 }
26643 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
26644 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
26645 }
26646 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
26647 return (void *)((wxWindow *) ((wxMenuBar *) x));
26648 }
26649 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
26650 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
26651 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};
26652 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
26653 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
26654 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
26655 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
26656 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
26657 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
26658 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
26659 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
26660 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
26661 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
26662 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
26663 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
26664 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
26665 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
26666 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
26667 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
26668 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
26669 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
26670 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
26671 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
26672 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
26673 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
26674 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
26675 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
26676 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
26677 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
26678 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
26679 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
26680 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
26681 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
26682 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
26683 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
26684 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
26685 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
26686 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
26687 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
26688 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
26689 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
26690 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
26691 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
26692 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
26693 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
26694 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
26695 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
26696 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
26697 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
26698 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
26699 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
26700 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
26701 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
26702 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
26703 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
26704 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
26705 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
26706 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
26707 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
26708 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
26709 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
26710 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
26711 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
26712 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
26713 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
26714 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
26715 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
26716 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
26717 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
26718 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
26719 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
26720 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
26721 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
26722 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
26723 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
26724 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
26725 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
26726 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
26727 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
26728 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
26729 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
26730 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
26731 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
26732 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
26733 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
26734 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
26735 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
26736 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
26737 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
26738 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
26739 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
26740 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
26741 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
26742 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
26743 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
26744 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
26745 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
26746 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
26747 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
26748 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
26749 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
26750 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
26751 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
26752 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
26753 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
26754 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
26755 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
26756 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
26757 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
26758 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
26759 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
26760 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
26761 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
26762 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
26763 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
26764 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
26765 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
26766 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
26767 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
26768 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
26769 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
26770 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
26771 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
26772 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
26773 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
26774 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
26775 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
26776 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
26777 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
26778 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
26779 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
26780 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
26781 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
26782 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
26783 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
26784 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
26785 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
26786
26787 static swig_type_info *swig_type_initial[] = {
26788 &_swigt__p_char,
26789 &_swigt__p_double,
26790 &_swigt__p_form_ops_t,
26791 &_swigt__p_int,
26792 &_swigt__p_unsigned_char,
26793 &_swigt__p_unsigned_int,
26794 &_swigt__p_unsigned_long,
26795 &_swigt__p_wxANIHandler,
26796 &_swigt__p_wxAcceleratorTable,
26797 &_swigt__p_wxActivateEvent,
26798 &_swigt__p_wxBMPHandler,
26799 &_swigt__p_wxBitmap,
26800 &_swigt__p_wxBoxSizer,
26801 &_swigt__p_wxBrush,
26802 &_swigt__p_wxBrushList,
26803 &_swigt__p_wxBufferedDC,
26804 &_swigt__p_wxBufferedPaintDC,
26805 &_swigt__p_wxCURHandler,
26806 &_swigt__p_wxChildFocusEvent,
26807 &_swigt__p_wxClientDC,
26808 &_swigt__p_wxCloseEvent,
26809 &_swigt__p_wxColour,
26810 &_swigt__p_wxColourDatabase,
26811 &_swigt__p_wxCommandEvent,
26812 &_swigt__p_wxContextMenuEvent,
26813 &_swigt__p_wxControl,
26814 &_swigt__p_wxControlWithItems,
26815 &_swigt__p_wxCursor,
26816 &_swigt__p_wxDC,
26817 &_swigt__p_wxDash,
26818 &_swigt__p_wxDateEvent,
26819 &_swigt__p_wxDisplayChangedEvent,
26820 &_swigt__p_wxDropFilesEvent,
26821 &_swigt__p_wxDuplexMode,
26822 &_swigt__p_wxEffects,
26823 &_swigt__p_wxEncodingConverter,
26824 &_swigt__p_wxEraseEvent,
26825 &_swigt__p_wxEvent,
26826 &_swigt__p_wxEvtHandler,
26827 &_swigt__p_wxFSFile,
26828 &_swigt__p_wxFileSystem,
26829 &_swigt__p_wxFlexGridSizer,
26830 &_swigt__p_wxFocusEvent,
26831 &_swigt__p_wxFont,
26832 &_swigt__p_wxFontList,
26833 &_swigt__p_wxFontMapper,
26834 &_swigt__p_wxGBSizerItem,
26835 &_swigt__p_wxGDIObjListBase,
26836 &_swigt__p_wxGDIObject,
26837 &_swigt__p_wxGIFHandler,
26838 &_swigt__p_wxGridBagSizer,
26839 &_swigt__p_wxGridSizer,
26840 &_swigt__p_wxICOHandler,
26841 &_swigt__p_wxIcon,
26842 &_swigt__p_wxIconBundle,
26843 &_swigt__p_wxIconLocation,
26844 &_swigt__p_wxIconizeEvent,
26845 &_swigt__p_wxIdleEvent,
26846 &_swigt__p_wxImage,
26847 &_swigt__p_wxImageHandler,
26848 &_swigt__p_wxImageList,
26849 &_swigt__p_wxIndividualLayoutConstraint,
26850 &_swigt__p_wxInitDialogEvent,
26851 &_swigt__p_wxJPEGHandler,
26852 &_swigt__p_wxKeyEvent,
26853 &_swigt__p_wxLanguageInfo,
26854 &_swigt__p_wxLayoutConstraints,
26855 &_swigt__p_wxLocale,
26856 &_swigt__p_wxMask,
26857 &_swigt__p_wxMaximizeEvent,
26858 &_swigt__p_wxMemoryDC,
26859 &_swigt__p_wxMenu,
26860 &_swigt__p_wxMenuBar,
26861 &_swigt__p_wxMenuEvent,
26862 &_swigt__p_wxMenuItem,
26863 &_swigt__p_wxMetaFile,
26864 &_swigt__p_wxMetaFileDC,
26865 &_swigt__p_wxMirrorDC,
26866 &_swigt__p_wxMouseCaptureChangedEvent,
26867 &_swigt__p_wxMouseEvent,
26868 &_swigt__p_wxMoveEvent,
26869 &_swigt__p_wxNativeEncodingInfo,
26870 &_swigt__p_wxNativeFontInfo,
26871 &_swigt__p_wxNavigationKeyEvent,
26872 &_swigt__p_wxNcPaintEvent,
26873 &_swigt__p_wxNotifyEvent,
26874 &_swigt__p_wxObject,
26875 &_swigt__p_wxPCXHandler,
26876 &_swigt__p_wxPNGHandler,
26877 &_swigt__p_wxPNMHandler,
26878 &_swigt__p_wxPaintDC,
26879 &_swigt__p_wxPaintEvent,
26880 &_swigt__p_wxPalette,
26881 &_swigt__p_wxPaletteChangedEvent,
26882 &_swigt__p_wxPaperSize,
26883 &_swigt__p_wxPen,
26884 &_swigt__p_wxPenList,
26885 &_swigt__p_wxPoint,
26886 &_swigt__p_wxPostScriptDC,
26887 &_swigt__p_wxPrintData,
26888 &_swigt__p_wxPrinterDC,
26889 &_swigt__p_wxPyApp,
26890 &_swigt__p_wxPyCommandEvent,
26891 &_swigt__p_wxPyEvent,
26892 &_swigt__p_wxPyFontEnumerator,
26893 &_swigt__p_wxPyImageHandler,
26894 &_swigt__p_wxPySizer,
26895 &_swigt__p_wxPyValidator,
26896 &_swigt__p_wxQueryNewPaletteEvent,
26897 &_swigt__p_wxRect,
26898 &_swigt__p_wxRegion,
26899 &_swigt__p_wxRegionIterator,
26900 &_swigt__p_wxRendererNative,
26901 &_swigt__p_wxRendererVersion,
26902 &_swigt__p_wxScreenDC,
26903 &_swigt__p_wxScrollEvent,
26904 &_swigt__p_wxScrollWinEvent,
26905 &_swigt__p_wxSetCursorEvent,
26906 &_swigt__p_wxShowEvent,
26907 &_swigt__p_wxSize,
26908 &_swigt__p_wxSizeEvent,
26909 &_swigt__p_wxSizer,
26910 &_swigt__p_wxSizerItem,
26911 &_swigt__p_wxSplitterRenderParams,
26912 &_swigt__p_wxStaticBoxSizer,
26913 &_swigt__p_wxStdDialogButtonSizer,
26914 &_swigt__p_wxStockGDI,
26915 &_swigt__p_wxString,
26916 &_swigt__p_wxSysColourChangedEvent,
26917 &_swigt__p_wxTIFFHandler,
26918 &_swigt__p_wxUpdateUIEvent,
26919 &_swigt__p_wxValidator,
26920 &_swigt__p_wxWindow,
26921 &_swigt__p_wxWindowCreateEvent,
26922 &_swigt__p_wxWindowDC,
26923 &_swigt__p_wxWindowDestroyEvent,
26924 &_swigt__p_wxXPMHandler,
26925 };
26926
26927 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
26928 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
26929 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
26930 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
26931 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
26932 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
26933 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
26934 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
26935 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
26936 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
26937 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}};
26938 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
26939 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
26940 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
26941 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
26942 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
26943 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}};
26944 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
26945 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
26946 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
26947 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
26948 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
26949 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
26950 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
26951 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}};
26952 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}};
26953 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
26954 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
26955 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
26956 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
26957 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
26958 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
26959 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
26960 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
26961 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}};
26962 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
26963 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
26964 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
26965 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
26966 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
26967 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
26968 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
26969 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
26970 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
26971 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
26972 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
26973 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
26974 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
26975 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
26976 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
26977 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
26978 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
26979 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
26980 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
26981 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
26982 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
26983 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
26984 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26985 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26986 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26987 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26988 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
26989 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
26990 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
26991 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
26992 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
26993 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
26994 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
26995 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
26996 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
26997 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
26998 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
26999 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
27000 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
27001 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
27002 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
27003 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
27004 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
27005 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
27006 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
27007 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27008 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
27009 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
27010 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
27011 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
27012 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
27013 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
27014 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
27015 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
27016 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
27017 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
27018 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
27019 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
27020 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
27021 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
27022 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
27023 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
27024 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
27025 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
27026 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
27027 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
27028 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
27029 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
27030 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
27031 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
27032 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
27033 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
27034 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
27035 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
27036 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
27037 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
27038 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
27039 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
27040 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
27041 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_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_wxGIFHandler, _p_wxGIFHandlerTo_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_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}};
27042 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
27043 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
27044 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
27045 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
27046 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
27047 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
27048 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
27049 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
27050 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27051 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
27052 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
27053 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
27054 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
27055 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
27056 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
27057 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
27058 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
27059 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
27060 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
27061 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
27062 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}};
27063 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
27064
27065 static swig_cast_info *swig_cast_initial[] = {
27066 _swigc__p_char,
27067 _swigc__p_double,
27068 _swigc__p_form_ops_t,
27069 _swigc__p_int,
27070 _swigc__p_unsigned_char,
27071 _swigc__p_unsigned_int,
27072 _swigc__p_unsigned_long,
27073 _swigc__p_wxANIHandler,
27074 _swigc__p_wxAcceleratorTable,
27075 _swigc__p_wxActivateEvent,
27076 _swigc__p_wxBMPHandler,
27077 _swigc__p_wxBitmap,
27078 _swigc__p_wxBoxSizer,
27079 _swigc__p_wxBrush,
27080 _swigc__p_wxBrushList,
27081 _swigc__p_wxBufferedDC,
27082 _swigc__p_wxBufferedPaintDC,
27083 _swigc__p_wxCURHandler,
27084 _swigc__p_wxChildFocusEvent,
27085 _swigc__p_wxClientDC,
27086 _swigc__p_wxCloseEvent,
27087 _swigc__p_wxColour,
27088 _swigc__p_wxColourDatabase,
27089 _swigc__p_wxCommandEvent,
27090 _swigc__p_wxContextMenuEvent,
27091 _swigc__p_wxControl,
27092 _swigc__p_wxControlWithItems,
27093 _swigc__p_wxCursor,
27094 _swigc__p_wxDC,
27095 _swigc__p_wxDash,
27096 _swigc__p_wxDateEvent,
27097 _swigc__p_wxDisplayChangedEvent,
27098 _swigc__p_wxDropFilesEvent,
27099 _swigc__p_wxDuplexMode,
27100 _swigc__p_wxEffects,
27101 _swigc__p_wxEncodingConverter,
27102 _swigc__p_wxEraseEvent,
27103 _swigc__p_wxEvent,
27104 _swigc__p_wxEvtHandler,
27105 _swigc__p_wxFSFile,
27106 _swigc__p_wxFileSystem,
27107 _swigc__p_wxFlexGridSizer,
27108 _swigc__p_wxFocusEvent,
27109 _swigc__p_wxFont,
27110 _swigc__p_wxFontList,
27111 _swigc__p_wxFontMapper,
27112 _swigc__p_wxGBSizerItem,
27113 _swigc__p_wxGDIObjListBase,
27114 _swigc__p_wxGDIObject,
27115 _swigc__p_wxGIFHandler,
27116 _swigc__p_wxGridBagSizer,
27117 _swigc__p_wxGridSizer,
27118 _swigc__p_wxICOHandler,
27119 _swigc__p_wxIcon,
27120 _swigc__p_wxIconBundle,
27121 _swigc__p_wxIconLocation,
27122 _swigc__p_wxIconizeEvent,
27123 _swigc__p_wxIdleEvent,
27124 _swigc__p_wxImage,
27125 _swigc__p_wxImageHandler,
27126 _swigc__p_wxImageList,
27127 _swigc__p_wxIndividualLayoutConstraint,
27128 _swigc__p_wxInitDialogEvent,
27129 _swigc__p_wxJPEGHandler,
27130 _swigc__p_wxKeyEvent,
27131 _swigc__p_wxLanguageInfo,
27132 _swigc__p_wxLayoutConstraints,
27133 _swigc__p_wxLocale,
27134 _swigc__p_wxMask,
27135 _swigc__p_wxMaximizeEvent,
27136 _swigc__p_wxMemoryDC,
27137 _swigc__p_wxMenu,
27138 _swigc__p_wxMenuBar,
27139 _swigc__p_wxMenuEvent,
27140 _swigc__p_wxMenuItem,
27141 _swigc__p_wxMetaFile,
27142 _swigc__p_wxMetaFileDC,
27143 _swigc__p_wxMirrorDC,
27144 _swigc__p_wxMouseCaptureChangedEvent,
27145 _swigc__p_wxMouseEvent,
27146 _swigc__p_wxMoveEvent,
27147 _swigc__p_wxNativeEncodingInfo,
27148 _swigc__p_wxNativeFontInfo,
27149 _swigc__p_wxNavigationKeyEvent,
27150 _swigc__p_wxNcPaintEvent,
27151 _swigc__p_wxNotifyEvent,
27152 _swigc__p_wxObject,
27153 _swigc__p_wxPCXHandler,
27154 _swigc__p_wxPNGHandler,
27155 _swigc__p_wxPNMHandler,
27156 _swigc__p_wxPaintDC,
27157 _swigc__p_wxPaintEvent,
27158 _swigc__p_wxPalette,
27159 _swigc__p_wxPaletteChangedEvent,
27160 _swigc__p_wxPaperSize,
27161 _swigc__p_wxPen,
27162 _swigc__p_wxPenList,
27163 _swigc__p_wxPoint,
27164 _swigc__p_wxPostScriptDC,
27165 _swigc__p_wxPrintData,
27166 _swigc__p_wxPrinterDC,
27167 _swigc__p_wxPyApp,
27168 _swigc__p_wxPyCommandEvent,
27169 _swigc__p_wxPyEvent,
27170 _swigc__p_wxPyFontEnumerator,
27171 _swigc__p_wxPyImageHandler,
27172 _swigc__p_wxPySizer,
27173 _swigc__p_wxPyValidator,
27174 _swigc__p_wxQueryNewPaletteEvent,
27175 _swigc__p_wxRect,
27176 _swigc__p_wxRegion,
27177 _swigc__p_wxRegionIterator,
27178 _swigc__p_wxRendererNative,
27179 _swigc__p_wxRendererVersion,
27180 _swigc__p_wxScreenDC,
27181 _swigc__p_wxScrollEvent,
27182 _swigc__p_wxScrollWinEvent,
27183 _swigc__p_wxSetCursorEvent,
27184 _swigc__p_wxShowEvent,
27185 _swigc__p_wxSize,
27186 _swigc__p_wxSizeEvent,
27187 _swigc__p_wxSizer,
27188 _swigc__p_wxSizerItem,
27189 _swigc__p_wxSplitterRenderParams,
27190 _swigc__p_wxStaticBoxSizer,
27191 _swigc__p_wxStdDialogButtonSizer,
27192 _swigc__p_wxStockGDI,
27193 _swigc__p_wxString,
27194 _swigc__p_wxSysColourChangedEvent,
27195 _swigc__p_wxTIFFHandler,
27196 _swigc__p_wxUpdateUIEvent,
27197 _swigc__p_wxValidator,
27198 _swigc__p_wxWindow,
27199 _swigc__p_wxWindowCreateEvent,
27200 _swigc__p_wxWindowDC,
27201 _swigc__p_wxWindowDestroyEvent,
27202 _swigc__p_wxXPMHandler,
27203 };
27204
27205
27206 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
27207
27208 static swig_const_info swig_const_table[] = {
27209 {0, 0, 0, 0.0, 0, 0}};
27210
27211 #ifdef __cplusplus
27212 }
27213 #endif
27214 /* -----------------------------------------------------------------------------
27215 * Type initialization:
27216 * This problem is tough by the requirement that no dynamic
27217 * memory is used. Also, since swig_type_info structures store pointers to
27218 * swig_cast_info structures and swig_cast_info structures store pointers back
27219 * to swig_type_info structures, we need some lookup code at initialization.
27220 * The idea is that swig generates all the structures that are needed.
27221 * The runtime then collects these partially filled structures.
27222 * The SWIG_InitializeModule function takes these initial arrays out of
27223 * swig_module, and does all the lookup, filling in the swig_module.types
27224 * array with the correct data and linking the correct swig_cast_info
27225 * structures together.
27226 *
27227 * The generated swig_type_info structures are assigned staticly to an initial
27228 * array. We just loop though that array, and handle each type individually.
27229 * First we lookup if this type has been already loaded, and if so, use the
27230 * loaded structure instead of the generated one. Then we have to fill in the
27231 * cast linked list. The cast data is initially stored in something like a
27232 * two-dimensional array. Each row corresponds to a type (there are the same
27233 * number of rows as there are in the swig_type_initial array). Each entry in
27234 * a column is one of the swig_cast_info structures for that type.
27235 * The cast_initial array is actually an array of arrays, because each row has
27236 * a variable number of columns. So to actually build the cast linked list,
27237 * we find the array of casts associated with the type, and loop through it
27238 * adding the casts to the list. The one last trick we need to do is making
27239 * sure the type pointer in the swig_cast_info struct is correct.
27240 *
27241 * First off, we lookup the cast->type name to see if it is already loaded.
27242 * There are three cases to handle:
27243 * 1) If the cast->type has already been loaded AND the type we are adding
27244 * casting info to has not been loaded (it is in this module), THEN we
27245 * replace the cast->type pointer with the type pointer that has already
27246 * been loaded.
27247 * 2) If BOTH types (the one we are adding casting info to, and the
27248 * cast->type) are loaded, THEN the cast info has already been loaded by
27249 * the previous module so we just ignore it.
27250 * 3) Finally, if cast->type has not already been loaded, then we add that
27251 * swig_cast_info to the linked list (because the cast->type) pointer will
27252 * be correct.
27253 * ----------------------------------------------------------------------------- */
27254
27255 #ifdef __cplusplus
27256 extern "C" {
27257 #if 0
27258 } /* c-mode */
27259 #endif
27260 #endif
27261
27262 #if 0
27263 #define SWIGRUNTIME_DEBUG
27264 #endif
27265
27266 SWIGRUNTIME void
27267 SWIG_InitializeModule(void *clientdata) {
27268 size_t i;
27269 swig_module_info *module_head;
27270 static int init_run = 0;
27271
27272 clientdata = clientdata;
27273
27274 if (init_run) return;
27275 init_run = 1;
27276
27277 /* Initialize the swig_module */
27278 swig_module.type_initial = swig_type_initial;
27279 swig_module.cast_initial = swig_cast_initial;
27280
27281 /* Try and load any already created modules */
27282 module_head = SWIG_GetModule(clientdata);
27283 if (module_head) {
27284 swig_module.next = module_head->next;
27285 module_head->next = &swig_module;
27286 } else {
27287 /* This is the first module loaded */
27288 swig_module.next = &swig_module;
27289 SWIG_SetModule(clientdata, &swig_module);
27290 }
27291
27292 /* Now work on filling in swig_module.types */
27293 #ifdef SWIGRUNTIME_DEBUG
27294 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
27295 #endif
27296 for (i = 0; i < swig_module.size; ++i) {
27297 swig_type_info *type = 0;
27298 swig_type_info *ret;
27299 swig_cast_info *cast;
27300
27301 #ifdef SWIGRUNTIME_DEBUG
27302 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
27303 #endif
27304
27305 /* if there is another module already loaded */
27306 if (swig_module.next != &swig_module) {
27307 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
27308 }
27309 if (type) {
27310 /* Overwrite clientdata field */
27311 #ifdef SWIGRUNTIME_DEBUG
27312 printf("SWIG_InitializeModule: found type %s\n", type->name);
27313 #endif
27314 if (swig_module.type_initial[i]->clientdata) {
27315 type->clientdata = swig_module.type_initial[i]->clientdata;
27316 #ifdef SWIGRUNTIME_DEBUG
27317 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
27318 #endif
27319 }
27320 } else {
27321 type = swig_module.type_initial[i];
27322 }
27323
27324 /* Insert casting types */
27325 cast = swig_module.cast_initial[i];
27326 while (cast->type) {
27327 /* Don't need to add information already in the list */
27328 ret = 0;
27329 #ifdef SWIGRUNTIME_DEBUG
27330 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
27331 #endif
27332 if (swig_module.next != &swig_module) {
27333 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
27334 #ifdef SWIGRUNTIME_DEBUG
27335 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
27336 #endif
27337 }
27338 if (ret) {
27339 if (type == swig_module.type_initial[i]) {
27340 #ifdef SWIGRUNTIME_DEBUG
27341 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
27342 #endif
27343 cast->type = ret;
27344 ret = 0;
27345 } else {
27346 /* Check for casting already in the list */
27347 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
27348 #ifdef SWIGRUNTIME_DEBUG
27349 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
27350 #endif
27351 if (!ocast) ret = 0;
27352 }
27353 }
27354
27355 if (!ret) {
27356 #ifdef SWIGRUNTIME_DEBUG
27357 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
27358 #endif
27359 if (type->cast) {
27360 type->cast->prev = cast;
27361 cast->next = type->cast;
27362 }
27363 type->cast = cast;
27364 }
27365 cast++;
27366 }
27367 /* Set entry in modules->types array equal to the type */
27368 swig_module.types[i] = type;
27369 }
27370 swig_module.types[i] = 0;
27371
27372 #ifdef SWIGRUNTIME_DEBUG
27373 printf("**** SWIG_InitializeModule: Cast List ******\n");
27374 for (i = 0; i < swig_module.size; ++i) {
27375 int j = 0;
27376 swig_cast_info *cast = swig_module.cast_initial[i];
27377 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
27378 while (cast->type) {
27379 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
27380 cast++;
27381 ++j;
27382 }
27383 printf("---- Total casts: %d\n",j);
27384 }
27385 printf("**** SWIG_InitializeModule: Cast List ******\n");
27386 #endif
27387 }
27388
27389 /* This function will propagate the clientdata field of type to
27390 * any new swig_type_info structures that have been added into the list
27391 * of equivalent types. It is like calling
27392 * SWIG_TypeClientData(type, clientdata) a second time.
27393 */
27394 SWIGRUNTIME void
27395 SWIG_PropagateClientData(void) {
27396 size_t i;
27397 swig_cast_info *equiv;
27398 static int init_run = 0;
27399
27400 if (init_run) return;
27401 init_run = 1;
27402
27403 for (i = 0; i < swig_module.size; i++) {
27404 if (swig_module.types[i]->clientdata) {
27405 equiv = swig_module.types[i]->cast;
27406 while (equiv) {
27407 if (!equiv->converter) {
27408 if (equiv->type && !equiv->type->clientdata)
27409 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
27410 }
27411 equiv = equiv->next;
27412 }
27413 }
27414 }
27415 }
27416
27417 #ifdef __cplusplus
27418 #if 0
27419 {
27420 /* c-mode */
27421 #endif
27422 }
27423 #endif
27424
27425
27426
27427 #ifdef __cplusplus
27428 extern "C" {
27429 #endif
27430
27431 /* Python-specific SWIG API */
27432 #define SWIG_newvarlink() SWIG_Python_newvarlink()
27433 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
27434 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
27435
27436 /* -----------------------------------------------------------------------------
27437 * global variable support code.
27438 * ----------------------------------------------------------------------------- */
27439
27440 typedef struct swig_globalvar {
27441 char *name; /* Name of global variable */
27442 PyObject *(*get_attr)(void); /* Return the current value */
27443 int (*set_attr)(PyObject *); /* Set the value */
27444 struct swig_globalvar *next;
27445 } swig_globalvar;
27446
27447 typedef struct swig_varlinkobject {
27448 PyObject_HEAD
27449 swig_globalvar *vars;
27450 } swig_varlinkobject;
27451
27452 SWIGINTERN PyObject *
27453 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
27454 return PyString_FromString("<Swig global variables>");
27455 }
27456
27457 SWIGINTERN PyObject *
27458 swig_varlink_str(swig_varlinkobject *v) {
27459 PyObject *str = PyString_FromString("(");
27460 swig_globalvar *var;
27461 for (var = v->vars; var; var=var->next) {
27462 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
27463 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
27464 }
27465 PyString_ConcatAndDel(&str,PyString_FromString(")"));
27466 return str;
27467 }
27468
27469 SWIGINTERN int
27470 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
27471 PyObject *str = swig_varlink_str(v);
27472 fprintf(fp,"Swig global variables ");
27473 fprintf(fp,"%s\n", PyString_AsString(str));
27474 Py_DECREF(str);
27475 return 0;
27476 }
27477
27478 SWIGINTERN void
27479 swig_varlink_dealloc(swig_varlinkobject *v) {
27480 swig_globalvar *var = v->vars;
27481 while (var) {
27482 swig_globalvar *n = var->next;
27483 free(var->name);
27484 free(var);
27485 var = n;
27486 }
27487 }
27488
27489 SWIGINTERN PyObject *
27490 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
27491 PyObject *res = NULL;
27492 swig_globalvar *var = v->vars;
27493 while (var) {
27494 if (strcmp(var->name,n) == 0) {
27495 res = (*var->get_attr)();
27496 break;
27497 }
27498 var = var->next;
27499 }
27500 if (res == NULL && !PyErr_Occurred()) {
27501 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
27502 }
27503 return res;
27504 }
27505
27506 SWIGINTERN int
27507 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
27508 int res = 1;
27509 swig_globalvar *var = v->vars;
27510 while (var) {
27511 if (strcmp(var->name,n) == 0) {
27512 res = (*var->set_attr)(p);
27513 break;
27514 }
27515 var = var->next;
27516 }
27517 if (res == 1 && !PyErr_Occurred()) {
27518 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
27519 }
27520 return res;
27521 }
27522
27523 SWIGINTERN PyTypeObject*
27524 swig_varlink_type(void) {
27525 static char varlink__doc__[] = "Swig var link object";
27526 static PyTypeObject varlink_type;
27527 static int type_init = 0;
27528 if (!type_init) {
27529 const PyTypeObject tmp
27530 = {
27531 PyObject_HEAD_INIT(NULL)
27532 0, /* Number of items in variable part (ob_size) */
27533 (char *)"swigvarlink", /* Type name (tp_name) */
27534 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
27535 0, /* Itemsize (tp_itemsize) */
27536 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
27537 (printfunc) swig_varlink_print, /* Print (tp_print) */
27538 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
27539 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
27540 0, /* tp_compare */
27541 (reprfunc) swig_varlink_repr, /* tp_repr */
27542 0, /* tp_as_number */
27543 0, /* tp_as_sequence */
27544 0, /* tp_as_mapping */
27545 0, /* tp_hash */
27546 0, /* tp_call */
27547 (reprfunc)swig_varlink_str, /* tp_str */
27548 0, /* tp_getattro */
27549 0, /* tp_setattro */
27550 0, /* tp_as_buffer */
27551 0, /* tp_flags */
27552 varlink__doc__, /* tp_doc */
27553 0, /* tp_traverse */
27554 0, /* tp_clear */
27555 0, /* tp_richcompare */
27556 0, /* tp_weaklistoffset */
27557 #if PY_VERSION_HEX >= 0x02020000
27558 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
27559 #endif
27560 #if PY_VERSION_HEX >= 0x02030000
27561 0, /* tp_del */
27562 #endif
27563 #ifdef COUNT_ALLOCS
27564 0,0,0,0 /* tp_alloc -> tp_next */
27565 #endif
27566 };
27567 varlink_type = tmp;
27568 varlink_type.ob_type = &PyType_Type;
27569 type_init = 1;
27570 }
27571 return &varlink_type;
27572 }
27573
27574 /* Create a variable linking object for use later */
27575 SWIGINTERN PyObject *
27576 SWIG_Python_newvarlink(void) {
27577 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
27578 if (result) {
27579 result->vars = 0;
27580 }
27581 return ((PyObject*) result);
27582 }
27583
27584 SWIGINTERN void
27585 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
27586 swig_varlinkobject *v = (swig_varlinkobject *) p;
27587 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
27588 if (gv) {
27589 size_t size = strlen(name)+1;
27590 gv->name = (char *)malloc(size);
27591 if (gv->name) {
27592 strncpy(gv->name,name,size);
27593 gv->get_attr = get_attr;
27594 gv->set_attr = set_attr;
27595 gv->next = v->vars;
27596 }
27597 }
27598 v->vars = gv;
27599 }
27600
27601 SWIGINTERN PyObject *
27602 SWIG_globals() {
27603 static PyObject *_SWIG_globals = 0;
27604 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
27605 return _SWIG_globals;
27606 }
27607
27608 /* -----------------------------------------------------------------------------
27609 * constants/methods manipulation
27610 * ----------------------------------------------------------------------------- */
27611
27612 /* Install Constants */
27613 SWIGINTERN void
27614 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
27615 PyObject *obj = 0;
27616 size_t i;
27617 for (i = 0; constants[i].type; ++i) {
27618 switch(constants[i].type) {
27619 case SWIG_PY_POINTER:
27620 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
27621 break;
27622 case SWIG_PY_BINARY:
27623 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
27624 break;
27625 default:
27626 obj = 0;
27627 break;
27628 }
27629 if (obj) {
27630 PyDict_SetItemString(d, constants[i].name, obj);
27631 Py_DECREF(obj);
27632 }
27633 }
27634 }
27635
27636 /* -----------------------------------------------------------------------------*/
27637 /* Fix SwigMethods to carry the callback ptrs when needed */
27638 /* -----------------------------------------------------------------------------*/
27639
27640 SWIGINTERN void
27641 SWIG_Python_FixMethods(PyMethodDef *methods,
27642 swig_const_info *const_table,
27643 swig_type_info **types,
27644 swig_type_info **types_initial) {
27645 size_t i;
27646 for (i = 0; methods[i].ml_name; ++i) {
27647 char *c = methods[i].ml_doc;
27648 if (c && (c = strstr(c, "swig_ptr: "))) {
27649 int j;
27650 swig_const_info *ci = 0;
27651 char *name = c + 10;
27652 for (j = 0; const_table[j].type; ++j) {
27653 if (strncmp(const_table[j].name, name,
27654 strlen(const_table[j].name)) == 0) {
27655 ci = &(const_table[j]);
27656 break;
27657 }
27658 }
27659 if (ci) {
27660 size_t shift = (ci->ptype) - types;
27661 swig_type_info *ty = types_initial[shift];
27662 size_t ldoc = (c - methods[i].ml_doc);
27663 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
27664 char *ndoc = (char*)malloc(ldoc + lptr + 10);
27665 if (ndoc) {
27666 char *buff = ndoc;
27667 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
27668 if (ptr) {
27669 strncpy(buff, methods[i].ml_doc, ldoc);
27670 buff += ldoc;
27671 strncpy(buff, "swig_ptr: ", 10);
27672 buff += 10;
27673 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
27674 methods[i].ml_doc = ndoc;
27675 }
27676 }
27677 }
27678 }
27679 }
27680 }
27681
27682 #ifdef __cplusplus
27683 }
27684 #endif
27685
27686 /* -----------------------------------------------------------------------------*
27687 * Partial Init method
27688 * -----------------------------------------------------------------------------*/
27689
27690 #ifdef __cplusplus
27691 extern "C"
27692 #endif
27693 SWIGEXPORT void SWIG_init(void) {
27694 PyObject *m, *d;
27695
27696 /* Fix SwigMethods to carry the callback ptrs when needed */
27697 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
27698
27699 m = Py_InitModule((char *) SWIG_name, SwigMethods);
27700 d = PyModule_GetDict(m);
27701
27702 SWIG_InitializeModule(0);
27703 SWIG_InstallConstants(d,swig_const_table);
27704
27705
27706 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
27707 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
27708 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
27709 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
27710 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
27711 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
27712 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
27713 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
27714 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
27715 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
27716 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
27717 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
27718 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
27719 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
27720 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
27721 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
27722 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
27723 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
27724 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
27725 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
27726 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
27727 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
27728 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
27729 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
27730 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
27731 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
27732 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
27733 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
27734 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
27735 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
27736 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
27737 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
27738 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
27739 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
27740 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
27741 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
27742 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
27743 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
27744 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
27745 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
27746 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
27747 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
27748 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
27749 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
27750 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
27751 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
27752 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
27753 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
27754 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
27755 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
27756 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
27757 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
27758 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
27759 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
27760 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
27761 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
27762 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
27763 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
27764 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
27765 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
27766 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
27767 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
27768 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
27769 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
27770 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
27771 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
27772 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
27773 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
27774 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
27775 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
27776 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
27777 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
27778 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
27779 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
27780 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
27781 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
27782 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
27783 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
27784 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
27785 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
27786 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
27787 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
27788 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
27789 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
27790 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
27791 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
27792 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
27793 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
27794 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
27795 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
27796 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
27797 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
27798 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
27799 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
27800 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
27801 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
27802 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
27803 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
27804 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
27805 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
27806 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
27807 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
27808 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
27809 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
27810 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
27811 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
27812 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
27813 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
27814 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
27815 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
27816 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
27817 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
27818 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
27819 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
27820 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
27821 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
27822 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
27823 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
27824 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
27825 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
27826 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
27827 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
27828 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
27829 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
27830 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
27831 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
27832 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
27833
27834 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
27835
27836 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
27837 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
27838 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
27839 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
27840 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
27841 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
27842 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
27843 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
27844 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
27845 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
27846 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
27847 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
27848 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
27849 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
27850 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
27851 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
27852 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
27853 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
27854 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
27855 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
27856 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
27857 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
27858 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
27859 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
27860 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
27861 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
27862 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
27863 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
27864 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
27865 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
27866 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
27867 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
27868 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
27869 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
27870 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
27871 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
27872 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
27873 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
27874 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
27875 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
27876 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
27877 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
27878 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
27879 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
27880 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
27881 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
27882 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
27883 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
27884 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
27885 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
27886 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
27887 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
27888 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
27889 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
27890 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
27891 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
27892 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
27893 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
27894 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
27895 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
27896 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
27897 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
27898 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
27899 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
27900 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
27901 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
27902 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
27903 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
27904 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
27905 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
27906 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
27907 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
27908 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
27909 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
27910 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
27911 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
27912 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
27913 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
27914 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
27915 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
27916 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
27917 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
27918 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
27919 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
27920 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
27921 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
27922 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
27923 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
27924 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
27925 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
27926 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
27927 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
27928 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
27929 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
27930 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
27931 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
27932 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
27933 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
27934 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
27935 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
27936 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
27937 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
27938 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
27939 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
27940 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
27941 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
27942 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
27943 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
27944 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
27945 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
27946 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
27947 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
27948 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
27949 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
27950 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
27951 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
27952 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
27953 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
27954 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
27955 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
27956 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
27957 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
27958 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
27959 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
27960 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
27961 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
27962 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
27963 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
27964 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
27965 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
27966 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
27967 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
27968 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
27969 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
27970 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
27971 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
27972 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
27973 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
27974 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
27975 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
27976 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
27977 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
27978 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
27979 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
27980 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
27981 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
27982 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
27983 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
27984 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
27985 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
27986 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
27987 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
27988 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
27989 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
27990 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
27991 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
27992 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
27993 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
27994 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
27995 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
27996 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
27997 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
27998 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
27999 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
28000 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
28001 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
28002 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
28003 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
28004 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
28005 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
28006 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
28007 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
28008 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
28009 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
28010 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
28011 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
28012 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
28013 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
28014 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
28015 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
28016 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
28017 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
28018 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
28019 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
28020 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
28021 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
28022 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
28023 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
28024 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
28025 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
28026 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
28027 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
28028 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
28029 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
28030 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
28031 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
28032 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
28033 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
28034 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
28035 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
28036 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
28037 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
28038 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
28039 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
28040 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
28041 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
28042 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
28043 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
28044 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
28045 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
28046 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
28047 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
28048 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
28049 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
28050 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
28051 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
28052 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
28053 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
28054 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
28055 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
28056 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
28057 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
28058 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
28059 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
28060 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
28061 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
28062 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
28063 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
28064 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
28065 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
28066 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
28067 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
28068 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
28069 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
28070 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
28071 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
28072 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
28073 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
28074 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
28075 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
28076 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
28077 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
28078 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
28079 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
28080 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
28081 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
28082 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
28083 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
28084 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
28085 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
28086 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
28087 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
28088 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
28089 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
28090 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
28091 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
28092 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
28093 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
28094 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
28095 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
28096 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
28097 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
28098 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
28099 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
28100 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
28101 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
28102 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
28103 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
28104 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
28105 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
28106 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
28107 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
28108 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
28109 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
28110 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
28111 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
28112 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
28113 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
28114 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
28115 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
28116 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
28117 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
28118 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
28119 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
28120 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
28121 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
28122 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
28123 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
28124 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
28125 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
28126 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
28127 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
28128 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
28129 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
28130 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
28131 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
28132 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
28133 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
28134 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
28135 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
28136 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
28137 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
28138 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
28139 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
28140 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
28141 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
28142 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
28143 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
28144 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
28145 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
28146 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
28147 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
28148 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
28149 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
28150
28151 // Work around a chicken/egg problem in drawlist.cpp
28152 wxPyDrawList_SetAPIPtr();
28153
28154 }
28155