]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
don't use static buffer needing a critical section to protect it for logging; this...
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_wxANIHandler swig_types[8]
2475 #define SWIGTYPE_p_wxAcceleratorTable swig_types[9]
2476 #define SWIGTYPE_p_wxActivateEvent swig_types[10]
2477 #define SWIGTYPE_p_wxAlphaPixelData swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[12]
2479 #define SWIGTYPE_p_wxBMPHandler swig_types[13]
2480 #define SWIGTYPE_p_wxBitmap swig_types[14]
2481 #define SWIGTYPE_p_wxBoxSizer swig_types[15]
2482 #define SWIGTYPE_p_wxBrush swig_types[16]
2483 #define SWIGTYPE_p_wxBrushList swig_types[17]
2484 #define SWIGTYPE_p_wxBufferedDC swig_types[18]
2485 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[19]
2486 #define SWIGTYPE_p_wxCURHandler swig_types[20]
2487 #define SWIGTYPE_p_wxChar swig_types[21]
2488 #define SWIGTYPE_p_wxChildFocusEvent swig_types[22]
2489 #define SWIGTYPE_p_wxClientDC swig_types[23]
2490 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[24]
2491 #define SWIGTYPE_p_wxCloseEvent swig_types[25]
2492 #define SWIGTYPE_p_wxColour swig_types[26]
2493 #define SWIGTYPE_p_wxColourDatabase swig_types[27]
2494 #define SWIGTYPE_p_wxCommandEvent swig_types[28]
2495 #define SWIGTYPE_p_wxContextMenuEvent swig_types[29]
2496 #define SWIGTYPE_p_wxControl swig_types[30]
2497 #define SWIGTYPE_p_wxControlWithItems swig_types[31]
2498 #define SWIGTYPE_p_wxCursor swig_types[32]
2499 #define SWIGTYPE_p_wxDC swig_types[33]
2500 #define SWIGTYPE_p_wxDash swig_types[34]
2501 #define SWIGTYPE_p_wxDateEvent swig_types[35]
2502 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[36]
2503 #define SWIGTYPE_p_wxDropFilesEvent swig_types[37]
2504 #define SWIGTYPE_p_wxDuplexMode swig_types[38]
2505 #define SWIGTYPE_p_wxEffects swig_types[39]
2506 #define SWIGTYPE_p_wxEncodingConverter swig_types[40]
2507 #define SWIGTYPE_p_wxEraseEvent swig_types[41]
2508 #define SWIGTYPE_p_wxEvent swig_types[42]
2509 #define SWIGTYPE_p_wxEvtHandler swig_types[43]
2510 #define SWIGTYPE_p_wxFSFile swig_types[44]
2511 #define SWIGTYPE_p_wxFileSystem swig_types[45]
2512 #define SWIGTYPE_p_wxFlexGridSizer swig_types[46]
2513 #define SWIGTYPE_p_wxFocusEvent swig_types[47]
2514 #define SWIGTYPE_p_wxFont swig_types[48]
2515 #define SWIGTYPE_p_wxFontList swig_types[49]
2516 #define SWIGTYPE_p_wxFontMapper swig_types[50]
2517 #define SWIGTYPE_p_wxGBSizerItem swig_types[51]
2518 #define SWIGTYPE_p_wxGDIObjListBase swig_types[52]
2519 #define SWIGTYPE_p_wxGDIObject swig_types[53]
2520 #define SWIGTYPE_p_wxGIFHandler swig_types[54]
2521 #define SWIGTYPE_p_wxGridBagSizer swig_types[55]
2522 #define SWIGTYPE_p_wxGridSizer swig_types[56]
2523 #define SWIGTYPE_p_wxICOHandler swig_types[57]
2524 #define SWIGTYPE_p_wxIcon swig_types[58]
2525 #define SWIGTYPE_p_wxIconBundle swig_types[59]
2526 #define SWIGTYPE_p_wxIconLocation swig_types[60]
2527 #define SWIGTYPE_p_wxIconizeEvent swig_types[61]
2528 #define SWIGTYPE_p_wxIdleEvent swig_types[62]
2529 #define SWIGTYPE_p_wxImage swig_types[63]
2530 #define SWIGTYPE_p_wxImageHandler swig_types[64]
2531 #define SWIGTYPE_p_wxImageList swig_types[65]
2532 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[66]
2533 #define SWIGTYPE_p_wxInitDialogEvent swig_types[67]
2534 #define SWIGTYPE_p_wxJPEGHandler swig_types[68]
2535 #define SWIGTYPE_p_wxKeyEvent swig_types[69]
2536 #define SWIGTYPE_p_wxLanguageInfo swig_types[70]
2537 #define SWIGTYPE_p_wxLayoutConstraints swig_types[71]
2538 #define SWIGTYPE_p_wxLocale swig_types[72]
2539 #define SWIGTYPE_p_wxMask swig_types[73]
2540 #define SWIGTYPE_p_wxMaximizeEvent swig_types[74]
2541 #define SWIGTYPE_p_wxMemoryDC swig_types[75]
2542 #define SWIGTYPE_p_wxMenu swig_types[76]
2543 #define SWIGTYPE_p_wxMenuBar swig_types[77]
2544 #define SWIGTYPE_p_wxMenuEvent swig_types[78]
2545 #define SWIGTYPE_p_wxMenuItem swig_types[79]
2546 #define SWIGTYPE_p_wxMetaFile swig_types[80]
2547 #define SWIGTYPE_p_wxMetaFileDC swig_types[81]
2548 #define SWIGTYPE_p_wxMirrorDC swig_types[82]
2549 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[83]
2550 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[84]
2551 #define SWIGTYPE_p_wxMouseEvent swig_types[85]
2552 #define SWIGTYPE_p_wxMoveEvent swig_types[86]
2553 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[87]
2554 #define SWIGTYPE_p_wxNativeFontInfo swig_types[88]
2555 #define SWIGTYPE_p_wxNativePixelData swig_types[89]
2556 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[90]
2557 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[91]
2558 #define SWIGTYPE_p_wxNcPaintEvent swig_types[92]
2559 #define SWIGTYPE_p_wxNotifyEvent swig_types[93]
2560 #define SWIGTYPE_p_wxObject swig_types[94]
2561 #define SWIGTYPE_p_wxPCXHandler swig_types[95]
2562 #define SWIGTYPE_p_wxPNGHandler swig_types[96]
2563 #define SWIGTYPE_p_wxPNMHandler swig_types[97]
2564 #define SWIGTYPE_p_wxPaintDC swig_types[98]
2565 #define SWIGTYPE_p_wxPaintEvent swig_types[99]
2566 #define SWIGTYPE_p_wxPalette swig_types[100]
2567 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxPaperSize swig_types[102]
2569 #define SWIGTYPE_p_wxPen swig_types[103]
2570 #define SWIGTYPE_p_wxPenList swig_types[104]
2571 #define SWIGTYPE_p_wxPixelDataBase swig_types[105]
2572 #define SWIGTYPE_p_wxPoint swig_types[106]
2573 #define SWIGTYPE_p_wxPostScriptDC swig_types[107]
2574 #define SWIGTYPE_p_wxPrintData swig_types[108]
2575 #define SWIGTYPE_p_wxPrinterDC swig_types[109]
2576 #define SWIGTYPE_p_wxPseudoDC swig_types[110]
2577 #define SWIGTYPE_p_wxPyApp swig_types[111]
2578 #define SWIGTYPE_p_wxPyCommandEvent swig_types[112]
2579 #define SWIGTYPE_p_wxPyEvent swig_types[113]
2580 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[114]
2581 #define SWIGTYPE_p_wxPyImageHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPyLocale swig_types[116]
2583 #define SWIGTYPE_p_wxPySizer swig_types[117]
2584 #define SWIGTYPE_p_wxPyValidator swig_types[118]
2585 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[119]
2586 #define SWIGTYPE_p_wxRect swig_types[120]
2587 #define SWIGTYPE_p_wxRegion swig_types[121]
2588 #define SWIGTYPE_p_wxRegionIterator swig_types[122]
2589 #define SWIGTYPE_p_wxRendererNative swig_types[123]
2590 #define SWIGTYPE_p_wxRendererVersion swig_types[124]
2591 #define SWIGTYPE_p_wxScreenDC swig_types[125]
2592 #define SWIGTYPE_p_wxScrollEvent swig_types[126]
2593 #define SWIGTYPE_p_wxScrollWinEvent swig_types[127]
2594 #define SWIGTYPE_p_wxSetCursorEvent swig_types[128]
2595 #define SWIGTYPE_p_wxShowEvent swig_types[129]
2596 #define SWIGTYPE_p_wxSize swig_types[130]
2597 #define SWIGTYPE_p_wxSizeEvent swig_types[131]
2598 #define SWIGTYPE_p_wxSizer swig_types[132]
2599 #define SWIGTYPE_p_wxSizerItem swig_types[133]
2600 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[134]
2601 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[135]
2602 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[136]
2603 #define SWIGTYPE_p_wxStockGDI swig_types[137]
2604 #define SWIGTYPE_p_wxString swig_types[138]
2605 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[139]
2606 #define SWIGTYPE_p_wxTIFFHandler swig_types[140]
2607 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[141]
2608 #define SWIGTYPE_p_wxValidator swig_types[142]
2609 #define SWIGTYPE_p_wxWindow swig_types[143]
2610 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[144]
2611 #define SWIGTYPE_p_wxWindowDC swig_types[145]
2612 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[146]
2613 #define SWIGTYPE_p_wxXPMHandler swig_types[147]
2614 static swig_type_info *swig_types[149];
2615 static swig_module_info swig_module = {swig_types, 148, 0, 0, 0, 0};
2616 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2617 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2618
2619 /* -------- TYPES TABLE (END) -------- */
2620
2621 #if (PY_VERSION_HEX <= 0x02000000)
2622 # if !defined(SWIG_PYTHON_CLASSIC)
2623 # error "This python version requires to use swig with the '-classic' option"
2624 # endif
2625 #endif
2626 #if (PY_VERSION_HEX <= 0x02020000)
2627 # error "This python version requires to use swig with the '-nomodern' option"
2628 #endif
2629 #if (PY_VERSION_HEX <= 0x02020000)
2630 # error "This python version requires to use swig with the '-nomodernargs' option"
2631 #endif
2632 #ifndef METH_O
2633 # error "This python version requires to use swig with the '-nofastunpack' option"
2634 #endif
2635
2636 /*-----------------------------------------------
2637 @(target):= _gdi_.so
2638 ------------------------------------------------*/
2639 #define SWIG_init init_gdi_
2640
2641 #define SWIG_name "_gdi_"
2642
2643 #define SWIGVERSION 0x010329
2644
2645
2646 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2647 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2648
2649
2650 #include <stdexcept>
2651
2652
2653 namespace swig {
2654 class PyObject_ptr {
2655 protected:
2656 PyObject *_obj;
2657
2658 public:
2659 PyObject_ptr() :_obj(0)
2660 {
2661 }
2662
2663 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2664 {
2665 Py_XINCREF(_obj);
2666 }
2667
2668 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2669 {
2670 if (initial_ref) Py_XINCREF(_obj);
2671 }
2672
2673 PyObject_ptr & operator=(const PyObject_ptr& item)
2674 {
2675 Py_XINCREF(item._obj);
2676 Py_XDECREF(_obj);
2677 _obj = item._obj;
2678 return *this;
2679 }
2680
2681 ~PyObject_ptr()
2682 {
2683 Py_XDECREF(_obj);
2684 }
2685
2686 operator PyObject *() const
2687 {
2688 return _obj;
2689 }
2690
2691 PyObject *operator->() const
2692 {
2693 return _obj;
2694 }
2695 };
2696 }
2697
2698
2699 namespace swig {
2700 struct PyObject_var : PyObject_ptr {
2701 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2702
2703 PyObject_var & operator = (PyObject* obj)
2704 {
2705 Py_XDECREF(_obj);
2706 _obj = obj;
2707 return *this;
2708 }
2709 };
2710 }
2711
2712
2713 #include "wx/wxPython/wxPython.h"
2714 #include "wx/wxPython/pyclasses.h"
2715
2716
2717 static const wxString wxPyEmptyString(wxEmptyString);
2718
2719 #define SWIG_From_long PyInt_FromLong
2720
2721
2722 SWIGINTERNINLINE PyObject *
2723 SWIG_From_int (int value)
2724 {
2725 return SWIG_From_long (value);
2726 }
2727
2728
2729 #include <limits.h>
2730 #ifndef LLONG_MIN
2731 # define LLONG_MIN LONG_LONG_MIN
2732 #endif
2733 #ifndef LLONG_MAX
2734 # define LLONG_MAX LONG_LONG_MAX
2735 #endif
2736 #ifndef ULLONG_MAX
2737 # define ULLONG_MAX ULONG_LONG_MAX
2738 #endif
2739
2740
2741 SWIGINTERN int
2742 SWIG_AsVal_long (PyObject* obj, long* val)
2743 {
2744 if (PyNumber_Check(obj)) {
2745 if (val) *val = PyInt_AsLong(obj);
2746 return SWIG_OK;
2747 }
2748 return SWIG_TypeError;
2749 }
2750
2751
2752 SWIGINTERN int
2753 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2754 {
2755 long v = 0;
2756 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2757 return SWIG_TypeError;
2758 }
2759 else if (val)
2760 *val = (unsigned long)v;
2761 return SWIG_OK;
2762 }
2763
2764
2765 SWIGINTERN int
2766 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2767 {
2768 unsigned long v;
2769 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2770 if (SWIG_IsOK(res)) {
2771 if ((v > UCHAR_MAX)) {
2772 return SWIG_OverflowError;
2773 } else {
2774 if (val) *val = static_cast< unsigned char >(v);
2775 }
2776 }
2777 return res;
2778 }
2779
2780
2781 SWIGINTERNINLINE PyObject*
2782 SWIG_From_unsigned_SS_long (unsigned long value)
2783 {
2784 return (value > LONG_MAX) ?
2785 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2786 }
2787
2788
2789 SWIGINTERNINLINE PyObject *
2790 SWIG_From_unsigned_SS_char (unsigned char value)
2791 {
2792 return SWIG_From_unsigned_SS_long (value);
2793 }
2794
2795 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2796 wxColour temp, *obj = &temp;
2797 if ( other == Py_None ) return false;
2798 if ( ! wxColour_helper(other, &obj) ) {
2799 PyErr_Clear();
2800 return false;
2801 }
2802 return self->operator==(*obj);
2803 }
2804 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2805 wxColour temp, *obj = &temp;
2806 if ( other == Py_None ) return true;
2807 if ( ! wxColour_helper(other, &obj)) {
2808 PyErr_Clear();
2809 return true;
2810 }
2811 return self->operator!=(*obj);
2812 }
2813
2814 SWIGINTERN int
2815 SWIG_AsVal_bool (PyObject *obj, bool *val)
2816 {
2817 if (obj == Py_True) {
2818 if (val) *val = true;
2819 return SWIG_OK;
2820 } else if (obj == Py_False) {
2821 if (val) *val = false;
2822 return SWIG_OK;
2823 } else {
2824 long v = 0;
2825 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2826 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2827 return res;
2828 }
2829 }
2830
2831 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2832 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2833 int red = -1;
2834 int green = -1;
2835 int blue = -1;
2836 int alpha = wxALPHA_OPAQUE;
2837 if (self->Ok()) {
2838 red = self->Red();
2839 green = self->Green();
2840 blue = self->Blue();
2841 alpha = self->Alpha();
2842 }
2843 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2844 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2845 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2846 if (includeAlpha)
2847 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2848 return rv;
2849 }
2850 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2851 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2852 }
2853
2854 SWIGINTERN int
2855 SWIG_AsVal_int (PyObject * obj, int *val)
2856 {
2857 long v;
2858 int res = SWIG_AsVal_long (obj, &v);
2859 if (SWIG_IsOK(res)) {
2860 if ((v < INT_MIN || v > INT_MAX)) {
2861 return SWIG_OverflowError;
2862 } else {
2863 if (val) *val = static_cast< int >(v);
2864 }
2865 }
2866 return res;
2867 }
2868
2869 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2870 wxDash* dashes;
2871 int count = self->GetDashes(&dashes);
2872 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2873 PyObject* retval = PyList_New(0);
2874 for (int x=0; x<count; x++) {
2875 PyObject* pyint = PyInt_FromLong(dashes[x]);
2876 PyList_Append(retval, pyint);
2877 Py_DECREF(pyint);
2878 }
2879 wxPyEndBlockThreads(blocked);
2880 return retval;
2881 }
2882 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2883 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2884 int size = PyList_Size(pyDashes);
2885 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2886
2887 // black magic warning! The array of wxDashes needs to exist as
2888 // long as the pen does because wxPen does not copy the array. So
2889 // stick a copy in a Python string object and attach it to _self,
2890 // and then call SetDashes with a pointer to that array. Then
2891 // when the Python pen object is destroyed the array will be
2892 // cleaned up too.
2893 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2894 PyObject_SetAttrString(_self, "_dashes", strDashes);
2895
2896 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2897 delete [] dashes;
2898 Py_DECREF(strDashes);
2899 wxPyEndBlockThreads(blocked);
2900 }
2901 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2902 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2903
2904 SWIGINTERNINLINE PyObject *
2905 SWIG_From_short (short value)
2906 {
2907 return SWIG_From_long (value);
2908 }
2909
2910
2911 SWIGINTERN int
2912 SWIG_AsVal_short (PyObject * obj, short *val)
2913 {
2914 long v;
2915 int res = SWIG_AsVal_long (obj, &v);
2916 if (SWIG_IsOK(res)) {
2917 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2918 return SWIG_OverflowError;
2919 } else {
2920 if (val) *val = static_cast< short >(v);
2921 }
2922 }
2923 return res;
2924 }
2925
2926
2927 #include <wx/rawbmp.h>
2928
2929
2930 #include <wx/image.h>
2931
2932 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2933 char** cArray = NULL;
2934 int count;
2935
2936 if (!PyList_Check(listOfStrings)) {
2937 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2938 return NULL;
2939 }
2940 count = PyList_Size(listOfStrings);
2941 cArray = new char*[count];
2942
2943 for(int x=0; x<count; x++) {
2944 // TODO: Need some validation and error checking here
2945 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2946 }
2947 return cArray;
2948 }
2949
2950
2951 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2952 char** cArray = NULL;
2953 wxBitmap* bmp;
2954
2955 cArray = ConvertListOfStrings(listOfStrings);
2956 if (! cArray)
2957 return NULL;
2958 bmp = new wxBitmap(cArray);
2959 delete [] cArray;
2960 return bmp;
2961 }
2962 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2963 char* buf;
2964 Py_ssize_t length;
2965 PyString_AsStringAndSize(bits, &buf, &length);
2966 return new wxBitmap(buf, width, height, depth);
2967 }
2968 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2969 wxSize size(self->GetWidth(), self->GetHeight());
2970 return size;
2971 }
2972 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2973 wxMask *mask = new wxMask(*self, colour);
2974 self->SetMask(mask);
2975 }
2976 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2977 self->SetWidth(size.x);
2978 self->SetHeight(size.y);
2979 }
2980 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2981 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2982
2983 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2984 // appears to me that the other platforms are already doing it, so I'll just
2985 // automatically do it for wxMSW here.
2986 #ifdef __WXMSW__
2987 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2988 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2989 #else
2990 #define wxPy_premultiply(p, a) (p)
2991 #define wxPy_unpremultiply(p, a) (p)
2992 #endif
2993
2994
2995 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2996 buffer data, int DATASIZE,
2997 buffer alpha, int ALPHASIZE)
2998 {
2999 if (DATASIZE != width*height*3) {
3000 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3001 return NULL;
3002 }
3003
3004 if (ALPHASIZE != width*height) {
3005 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3006 return NULL;
3007 }
3008
3009 wxBitmap* bmp = new wxBitmap(width, height, 32);
3010 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3011 if (! pixData) {
3012 // raise an exception...
3013 wxPyErr_SetString(PyExc_RuntimeError,
3014 "Failed to gain raw access to bitmap data.");
3015 return NULL;
3016 }
3017
3018 pixData.UseAlpha();
3019 wxAlphaPixelData::Iterator p(pixData);
3020 for (int y=0; y<height; y++) {
3021 wxAlphaPixelData::Iterator rowStart = p;
3022 for (int x=0; x<width; x++) {
3023 byte a = *(alpha++);
3024 p.Red() = wxPy_premultiply(*(data++), a);
3025 p.Green() = wxPy_premultiply(*(data++), a);
3026 p.Blue() = wxPy_premultiply(*(data++), a);
3027 p.Alpha() = a;
3028 ++p;
3029 }
3030 p = rowStart;
3031 p.OffsetY(pixData, 1);
3032 }
3033 return bmp;
3034 }
3035
3036 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3037 {
3038 if (DATASIZE != width*height*3) {
3039 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3040 return NULL;
3041 }
3042
3043 wxBitmap* bmp = new wxBitmap(width, height, 24);
3044 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3045 if (! pixData) {
3046 // raise an exception...
3047 wxPyErr_SetString(PyExc_RuntimeError,
3048 "Failed to gain raw access to bitmap data.");
3049 return NULL;
3050 }
3051
3052 wxNativePixelData::Iterator p(pixData);
3053 for (int y=0; y<height; y++) {
3054 wxNativePixelData::Iterator rowStart = p;
3055 for (int x=0; x<width; x++) {
3056 p.Red() = *(data++);
3057 p.Green() = *(data++);
3058 p.Blue() = *(data++);
3059 ++p;
3060 }
3061 p = rowStart;
3062 p.OffsetY(pixData, 1);
3063 }
3064 return bmp;
3065 }
3066
3067
3068 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3069 {
3070 if (DATASIZE != width*height*4) {
3071 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3072 return NULL;
3073 }
3074
3075 wxBitmap* bmp = new wxBitmap(width, height, 32);
3076 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3077 if (! pixData) {
3078 // raise an exception...
3079 wxPyErr_SetString(PyExc_RuntimeError,
3080 "Failed to gain raw access to bitmap data.");
3081 return NULL;
3082 }
3083
3084 pixData.UseAlpha();
3085 wxAlphaPixelData::Iterator p(pixData);
3086 for (int y=0; y<height; y++) {
3087 wxAlphaPixelData::Iterator rowStart = p;
3088 for (int x=0; x<width; x++) {
3089 byte a = data[3];
3090 p.Red() = wxPy_premultiply(*(data++), a);
3091 p.Green() = wxPy_premultiply(*(data++), a);
3092 p.Blue() = wxPy_premultiply(*(data++), a);
3093 p.Alpha() = a; data++;
3094 ++p;
3095 }
3096 p = rowStart;
3097 p.OffsetY(pixData, 1);
3098 }
3099 return bmp;
3100 }
3101
3102
3103 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3104
3105 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3106 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3107 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3108 self->Red() = red;
3109 self->Green() = green;
3110 self->Blue() = blue;
3111 }
3112 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3113 PyObject* rv = PyTuple_New(3);
3114 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3115 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3116 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3117 return rv;
3118 }
3119
3120 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3121
3122 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3123 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3124 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3125 self->Red() = wxPy_premultiply(red, alpha);
3126 self->Green() = wxPy_premultiply(green, alpha);
3127 self->Blue() = wxPy_premultiply(blue, alpha);
3128 self->Alpha() = alpha;
3129 }
3130 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3131 PyObject* rv = PyTuple_New(4);
3132 int red = self->Red();
3133 int green = self->Green();
3134 int blue = self->Blue();
3135 int alpha = self->Alpha();
3136
3137 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3138 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3139 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3140 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3141 return rv;
3142 }
3143 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3144 if ( !colour.Ok() )
3145 return new wxMask(bitmap, *wxBLACK);
3146 else
3147 return new wxMask(bitmap, colour);
3148 }
3149
3150 #include <wx/iconbndl.h>
3151
3152 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3153 wxIcon* icon = new wxIcon();
3154 icon->CopyFromBitmap(bmp);
3155 return icon;
3156 }
3157 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3158 char** cArray = NULL;
3159 wxIcon* icon;
3160
3161 cArray = ConvertListOfStrings(listOfStrings);
3162 if (! cArray)
3163 return NULL;
3164 icon = new wxIcon(cArray);
3165 delete [] cArray;
3166 return icon;
3167 }
3168 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3169
3170
3171
3172 return new wxIconLocation(*filename);
3173
3174 }
3175 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3176
3177
3178
3179 // do nothing
3180
3181 }
3182 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3183
3184
3185
3186 return -1;
3187
3188 }
3189 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3190 #ifdef __WXGTK__
3191 wxImage img(cursorName, type);
3192 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3193 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3194 return new wxCursor(img);
3195 #else
3196 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3197 #endif
3198 }
3199
3200
3201 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3202 (*self) ++;
3203 }
3204 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3205 return self->operator bool();
3206 }
3207
3208 #include <wx/fontutil.h>
3209 #include <wx/fontmap.h>
3210 #include <wx/fontenum.h>
3211
3212 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3213 return self->ToString();
3214 }
3215
3216 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3217 static wxNativeEncodingInfo info;
3218 if ( wxGetNativeFontEncoding(encoding, &info) )
3219 return &info;
3220 else
3221 return NULL;
3222 }
3223
3224
3225 SWIGINTERNINLINE PyObject *
3226 SWIG_From_size_t (size_t value)
3227 {
3228 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3229 }
3230
3231
3232 SWIGINTERNINLINE int
3233 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3234 {
3235 unsigned long v;
3236 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3237 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3238 return res;
3239 }
3240
3241 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3242 wxFontEncoding alt_enc;
3243 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3244 return PyInt_FromLong(alt_enc);
3245 else {
3246 Py_INCREF(Py_None);
3247 return Py_None;
3248 }
3249 }
3250 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3251 wxNativeFontInfo nfi;
3252 nfi.FromString(info);
3253 return new wxFont(nfi);
3254 }
3255 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3256 return wxFont::New(pointSize, family, flags, face, encoding);
3257 }
3258 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3259 return wxFontBase::New(pixelSize, family,
3260 style, weight, underlined,
3261 face, encoding);
3262 }
3263 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3264 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3265 }
3266 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3267 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3268
3269 class wxPyFontEnumerator : public wxFontEnumerator {
3270 public:
3271 wxPyFontEnumerator() {}
3272 ~wxPyFontEnumerator() {}
3273
3274 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3275 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3276
3277 PYPRIVATE;
3278 };
3279
3280 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3281 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3282
3283
3284 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3285 PyObject* ret;
3286 wxArrayString arr = wxFontEnumerator::GetEncodings();
3287 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3288 ret = wxArrayString2PyList_helper(arr);
3289 wxPyEndBlockThreads(blocked);
3290 return ret;
3291 }
3292 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3293 PyObject* ret;
3294 wxArrayString arr = wxFontEnumerator::GetFacenames();
3295 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3296 ret = wxArrayString2PyList_helper(arr);
3297 wxPyEndBlockThreads(blocked);
3298 return ret;
3299 }
3300
3301 #include <locale.h>
3302
3303 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3304 wxLocale* loc;
3305 if (language == -1)
3306 loc = new wxLocale();
3307 else
3308 loc = new wxLocale(language, flags);
3309 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3310 // for the floating point conversions and such to work right.
3311 #if PY_VERSION_HEX < 0x02040000
3312 setlocale(LC_NUMERIC, "C");
3313 #endif
3314 return loc;
3315 }
3316 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3317 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3318 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3319 // for the floating point conversions and such to work right.
3320 #if PY_VERSION_HEX < 0x02040000
3321 setlocale(LC_NUMERIC, "C");
3322 #endif
3323 return rc;
3324 }
3325 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3326 bool rc = self->Init(language, flags);
3327 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3328 // for the floating point conversions and such to work right.
3329 #if PY_VERSION_HEX < 0x02040000
3330 setlocale(LC_NUMERIC, "C");
3331 #endif
3332 return rc;
3333 }
3334
3335 class wxPyLocale : public wxLocale
3336 {
3337 public:
3338 wxPyLocale();
3339
3340 wxPyLocale(const wxChar *szName, // name (for messages)
3341 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3342 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3343 bool bLoadDefault = true, // preload wxstd.mo?
3344 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3345
3346 wxPyLocale(int language, // wxLanguage id or custom language
3347 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3348
3349 ~wxPyLocale();
3350
3351 virtual const wxChar *GetString(const wxChar *szOrigString,
3352 const wxChar *szDomain = NULL) const;
3353 virtual const wxChar *GetString(const wxChar *szOrigString,
3354 const wxChar *szOrigString2, size_t n,
3355 const wxChar *szDomain = NULL) const;
3356
3357 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3358 const wxChar *szDomain = NULL) const;
3359 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3360 const wxChar *szOrigString2, size_t n,
3361 const wxChar *szDomain = NULL) const;
3362
3363 PYPRIVATE;
3364 private:
3365 DECLARE_NO_COPY_CLASS(wxPyLocale)
3366 };
3367
3368 wxPyLocale::wxPyLocale() : wxLocale()
3369 {
3370 }
3371
3372 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3373 const wxChar *szShort, // dir prefix (for msg files)
3374 const wxChar *szLocale, // locale (for setlocale)
3375 bool bLoadDefault, // preload wxstd.mo?
3376 bool bConvertEncoding) // convert Win<->Unix if necessary?
3377 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3378 {
3379 }
3380
3381 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3382 int flags) : wxLocale(language, flags)
3383 {
3384 }
3385
3386 wxPyLocale::~wxPyLocale()
3387 {
3388 }
3389
3390 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3391 const wxChar *szDomain) const
3392 {
3393 wxChar *str = GetSingularString(szOrigString, szDomain);
3394 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3395 }
3396
3397 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3398 const wxChar *szOrigString2, size_t n,
3399 const wxChar *szDomain) const
3400 {
3401 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3402 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3403 }
3404
3405 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3406 const wxChar *szDomain) const
3407 {
3408 bool found;
3409 static wxString str;
3410 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3411 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3412 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3413 PyObject* param1 = wx2PyString(szOrigString);
3414 PyObject* param2 = wx2PyString(szDomain);
3415 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3416 Py_DECREF(param1);
3417 Py_DECREF(param2);
3418 if (ret) {
3419 str = Py2wxString(ret);
3420 Py_DECREF(ret);
3421 }
3422 }
3423 wxPyEndBlockThreads(blocked);
3424 return (found ? (wxChar*)str.c_str() : NULL);
3425 }
3426
3427 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3428 const wxChar *szOrigString2, size_t n,
3429 const wxChar *szDomain) const
3430 {
3431 bool found;
3432 static wxString str;
3433 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3434 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3435 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3436 PyObject* param1 = wx2PyString(szOrigString);
3437 PyObject* param2 = wx2PyString(szOrigString2);
3438 PyObject* param4 = wx2PyString(szDomain);
3439 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3440 Py_DECREF(param1);
3441 Py_DECREF(param2);
3442 Py_DECREF(param4);
3443 if( ret) {
3444 str = Py2wxString(ret);
3445 Py_DECREF(ret);
3446 }
3447 }
3448 wxPyEndBlockThreads(blocked);
3449 return (found ? (wxChar*)str.c_str() : NULL);
3450 }
3451
3452 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3453 wxPyLocale* loc;
3454 if (language == -1)
3455 loc = new wxPyLocale();
3456 else
3457 loc = new wxPyLocale(language, flags);
3458 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3459 // for the floating point conversions and such to work right.
3460 #if PY_VERSION_HEX < 0x02040000
3461 setlocale(LC_NUMERIC, "C");
3462 #endif
3463 return loc;
3464 }
3465
3466 #include "wx/wxPython/pydrawxxx.h"
3467
3468 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3469 wxColour col;
3470 self->GetPixel(x, y, &col);
3471 return col;
3472 }
3473 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3474 wxColour col;
3475 self->GetPixel(pt, &col);
3476 return col;
3477 }
3478
3479 SWIGINTERN int
3480 SWIG_AsVal_double (PyObject *obj, double* val)
3481 {
3482 if (PyNumber_Check(obj)) {
3483 if (val) *val = PyFloat_AsDouble(obj);
3484 return SWIG_OK;
3485 }
3486 return SWIG_TypeError;
3487 }
3488
3489 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3490 wxRect rv;
3491 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3492 return rv;
3493 }
3494 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3495 wxRect rect;
3496 self->GetClippingBox(rect);
3497 return rect;
3498 }
3499 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3500 wxArrayInt widths;
3501 self->GetPartialTextExtents(text, widths);
3502 return widths;
3503 }
3504
3505 #define SWIG_From_double PyFloat_FromDouble
3506
3507 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3508 self->SetLogicalOrigin(point.x, point.y);
3509 }
3510 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3511 self->SetDeviceOrigin(point.x, point.y);
3512 }
3513 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3514 self->CalcBoundingBox(point.x, point.y);
3515 }
3516 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3517 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3518 }
3519 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3520 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3521 }
3522 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3523 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3524 }
3525 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3526 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3527 }
3528 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3529 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3530 }
3531 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3532 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3533 }
3534
3535 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3536 *x1 = dc->MinX();
3537 *y1 = dc->MinY();
3538 *x2 = dc->MaxX();
3539 *y2 = dc->MaxY();
3540 }
3541
3542
3543 #include <wx/dcbuffer.h>
3544
3545
3546 #include <wx/dcps.h>
3547
3548
3549 #include <wx/metafile.h>
3550
3551
3552
3553 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3554 self->AddColour(name, wxColour(red, green, blue));
3555 }
3556
3557 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3558 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3559 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3560 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3561
3562
3563 #include <wx/effects.h>
3564
3565
3566 #include "wx/renderer.h"
3567
3568
3569 SWIGINTERNINLINE PyObject*
3570 SWIG_From_bool (bool value)
3571 {
3572 return PyBool_FromLong(value ? 1 : 0);
3573 }
3574
3575
3576 #include "wx/wxPython/pseudodc.h"
3577
3578 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3579 wxRect rect;
3580 self->GetIdBounds(id, rect);
3581 return rect;
3582 }
3583 #ifdef __cplusplus
3584 extern "C" {
3585 #endif
3586 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3587 PyObject *resultobj = 0;
3588 wxGDIObject *result = 0 ;
3589
3590 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3591 {
3592 if (!wxPyCheckForApp()) SWIG_fail;
3593 PyThreadState* __tstate = wxPyBeginAllowThreads();
3594 result = (wxGDIObject *)new wxGDIObject();
3595 wxPyEndAllowThreads(__tstate);
3596 if (PyErr_Occurred()) SWIG_fail;
3597 }
3598 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3599 return resultobj;
3600 fail:
3601 return NULL;
3602 }
3603
3604
3605 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3606 PyObject *resultobj = 0;
3607 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3608 void *argp1 = 0 ;
3609 int res1 = 0 ;
3610 PyObject *swig_obj[1] ;
3611
3612 if (!args) SWIG_fail;
3613 swig_obj[0] = args;
3614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3615 if (!SWIG_IsOK(res1)) {
3616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3617 }
3618 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3619 {
3620 PyThreadState* __tstate = wxPyBeginAllowThreads();
3621 delete arg1;
3622
3623 wxPyEndAllowThreads(__tstate);
3624 if (PyErr_Occurred()) SWIG_fail;
3625 }
3626 resultobj = SWIG_Py_Void();
3627 return resultobj;
3628 fail:
3629 return NULL;
3630 }
3631
3632
3633 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3634 PyObject *resultobj = 0;
3635 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3636 bool result;
3637 void *argp1 = 0 ;
3638 int res1 = 0 ;
3639 PyObject *swig_obj[1] ;
3640
3641 if (!args) SWIG_fail;
3642 swig_obj[0] = args;
3643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3644 if (!SWIG_IsOK(res1)) {
3645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3646 }
3647 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3648 {
3649 PyThreadState* __tstate = wxPyBeginAllowThreads();
3650 result = (bool)(arg1)->IsNull();
3651 wxPyEndAllowThreads(__tstate);
3652 if (PyErr_Occurred()) SWIG_fail;
3653 }
3654 {
3655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3656 }
3657 return resultobj;
3658 fail:
3659 return NULL;
3660 }
3661
3662
3663 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3664 PyObject *obj;
3665 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3666 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3667 return SWIG_Py_Void();
3668 }
3669
3670 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3671 return SWIG_Python_InitShadowInstance(args);
3672 }
3673
3674 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3675 PyObject *resultobj = 0;
3676 byte arg1 = (byte) 0 ;
3677 byte arg2 = (byte) 0 ;
3678 byte arg3 = (byte) 0 ;
3679 byte arg4 = (byte) wxALPHA_OPAQUE ;
3680 wxColour *result = 0 ;
3681 unsigned char val1 ;
3682 int ecode1 = 0 ;
3683 unsigned char val2 ;
3684 int ecode2 = 0 ;
3685 unsigned char val3 ;
3686 int ecode3 = 0 ;
3687 unsigned char val4 ;
3688 int ecode4 = 0 ;
3689 PyObject * obj0 = 0 ;
3690 PyObject * obj1 = 0 ;
3691 PyObject * obj2 = 0 ;
3692 PyObject * obj3 = 0 ;
3693 char * kwnames[] = {
3694 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3695 };
3696
3697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3698 if (obj0) {
3699 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3700 if (!SWIG_IsOK(ecode1)) {
3701 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3702 }
3703 arg1 = static_cast< byte >(val1);
3704 }
3705 if (obj1) {
3706 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3707 if (!SWIG_IsOK(ecode2)) {
3708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3709 }
3710 arg2 = static_cast< byte >(val2);
3711 }
3712 if (obj2) {
3713 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3714 if (!SWIG_IsOK(ecode3)) {
3715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3716 }
3717 arg3 = static_cast< byte >(val3);
3718 }
3719 if (obj3) {
3720 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3721 if (!SWIG_IsOK(ecode4)) {
3722 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3723 }
3724 arg4 = static_cast< byte >(val4);
3725 }
3726 {
3727 PyThreadState* __tstate = wxPyBeginAllowThreads();
3728 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3729 wxPyEndAllowThreads(__tstate);
3730 if (PyErr_Occurred()) SWIG_fail;
3731 }
3732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3733 return resultobj;
3734 fail:
3735 return NULL;
3736 }
3737
3738
3739 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3740 PyObject *resultobj = 0;
3741 wxString *arg1 = 0 ;
3742 wxColour *result = 0 ;
3743 bool temp1 = false ;
3744 PyObject * obj0 = 0 ;
3745 char * kwnames[] = {
3746 (char *) "colorName", NULL
3747 };
3748
3749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3750 {
3751 arg1 = wxString_in_helper(obj0);
3752 if (arg1 == NULL) SWIG_fail;
3753 temp1 = true;
3754 }
3755 {
3756 if (!wxPyCheckForApp()) SWIG_fail;
3757 PyThreadState* __tstate = wxPyBeginAllowThreads();
3758 result = (wxColour *)new wxColour((wxString const &)*arg1);
3759 wxPyEndAllowThreads(__tstate);
3760 if (PyErr_Occurred()) SWIG_fail;
3761 }
3762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3763 {
3764 if (temp1)
3765 delete arg1;
3766 }
3767 return resultobj;
3768 fail:
3769 {
3770 if (temp1)
3771 delete arg1;
3772 }
3773 return NULL;
3774 }
3775
3776
3777 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3778 PyObject *resultobj = 0;
3779 unsigned long arg1 ;
3780 wxColour *result = 0 ;
3781 unsigned long val1 ;
3782 int ecode1 = 0 ;
3783 PyObject * obj0 = 0 ;
3784 char * kwnames[] = {
3785 (char *) "colRGB", NULL
3786 };
3787
3788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3789 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3790 if (!SWIG_IsOK(ecode1)) {
3791 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3792 }
3793 arg1 = static_cast< unsigned long >(val1);
3794 {
3795 PyThreadState* __tstate = wxPyBeginAllowThreads();
3796 result = (wxColour *)new wxColour(arg1);
3797 wxPyEndAllowThreads(__tstate);
3798 if (PyErr_Occurred()) SWIG_fail;
3799 }
3800 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3801 return resultobj;
3802 fail:
3803 return NULL;
3804 }
3805
3806
3807 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3808 PyObject *resultobj = 0;
3809 wxColour *arg1 = (wxColour *) 0 ;
3810 void *argp1 = 0 ;
3811 int res1 = 0 ;
3812 PyObject *swig_obj[1] ;
3813
3814 if (!args) SWIG_fail;
3815 swig_obj[0] = args;
3816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3817 if (!SWIG_IsOK(res1)) {
3818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3819 }
3820 arg1 = reinterpret_cast< wxColour * >(argp1);
3821 {
3822 PyThreadState* __tstate = wxPyBeginAllowThreads();
3823 delete arg1;
3824
3825 wxPyEndAllowThreads(__tstate);
3826 if (PyErr_Occurred()) SWIG_fail;
3827 }
3828 resultobj = SWIG_Py_Void();
3829 return resultobj;
3830 fail:
3831 return NULL;
3832 }
3833
3834
3835 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3836 PyObject *resultobj = 0;
3837 wxColour *arg1 = (wxColour *) 0 ;
3838 byte result;
3839 void *argp1 = 0 ;
3840 int res1 = 0 ;
3841 PyObject *swig_obj[1] ;
3842
3843 if (!args) SWIG_fail;
3844 swig_obj[0] = args;
3845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3846 if (!SWIG_IsOK(res1)) {
3847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3848 }
3849 arg1 = reinterpret_cast< wxColour * >(argp1);
3850 {
3851 PyThreadState* __tstate = wxPyBeginAllowThreads();
3852 result = (byte)(arg1)->Red();
3853 wxPyEndAllowThreads(__tstate);
3854 if (PyErr_Occurred()) SWIG_fail;
3855 }
3856 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3857 return resultobj;
3858 fail:
3859 return NULL;
3860 }
3861
3862
3863 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3864 PyObject *resultobj = 0;
3865 wxColour *arg1 = (wxColour *) 0 ;
3866 byte result;
3867 void *argp1 = 0 ;
3868 int res1 = 0 ;
3869 PyObject *swig_obj[1] ;
3870
3871 if (!args) SWIG_fail;
3872 swig_obj[0] = args;
3873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3874 if (!SWIG_IsOK(res1)) {
3875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3876 }
3877 arg1 = reinterpret_cast< wxColour * >(argp1);
3878 {
3879 PyThreadState* __tstate = wxPyBeginAllowThreads();
3880 result = (byte)(arg1)->Green();
3881 wxPyEndAllowThreads(__tstate);
3882 if (PyErr_Occurred()) SWIG_fail;
3883 }
3884 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3885 return resultobj;
3886 fail:
3887 return NULL;
3888 }
3889
3890
3891 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3892 PyObject *resultobj = 0;
3893 wxColour *arg1 = (wxColour *) 0 ;
3894 byte result;
3895 void *argp1 = 0 ;
3896 int res1 = 0 ;
3897 PyObject *swig_obj[1] ;
3898
3899 if (!args) SWIG_fail;
3900 swig_obj[0] = args;
3901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3902 if (!SWIG_IsOK(res1)) {
3903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3904 }
3905 arg1 = reinterpret_cast< wxColour * >(argp1);
3906 {
3907 PyThreadState* __tstate = wxPyBeginAllowThreads();
3908 result = (byte)(arg1)->Blue();
3909 wxPyEndAllowThreads(__tstate);
3910 if (PyErr_Occurred()) SWIG_fail;
3911 }
3912 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3913 return resultobj;
3914 fail:
3915 return NULL;
3916 }
3917
3918
3919 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3920 PyObject *resultobj = 0;
3921 wxColour *arg1 = (wxColour *) 0 ;
3922 byte result;
3923 void *argp1 = 0 ;
3924 int res1 = 0 ;
3925 PyObject *swig_obj[1] ;
3926
3927 if (!args) SWIG_fail;
3928 swig_obj[0] = args;
3929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3930 if (!SWIG_IsOK(res1)) {
3931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
3932 }
3933 arg1 = reinterpret_cast< wxColour * >(argp1);
3934 {
3935 PyThreadState* __tstate = wxPyBeginAllowThreads();
3936 result = (byte)(arg1)->Alpha();
3937 wxPyEndAllowThreads(__tstate);
3938 if (PyErr_Occurred()) SWIG_fail;
3939 }
3940 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3941 return resultobj;
3942 fail:
3943 return NULL;
3944 }
3945
3946
3947 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3948 PyObject *resultobj = 0;
3949 wxColour *arg1 = (wxColour *) 0 ;
3950 bool result;
3951 void *argp1 = 0 ;
3952 int res1 = 0 ;
3953 PyObject *swig_obj[1] ;
3954
3955 if (!args) SWIG_fail;
3956 swig_obj[0] = args;
3957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3958 if (!SWIG_IsOK(res1)) {
3959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3960 }
3961 arg1 = reinterpret_cast< wxColour * >(argp1);
3962 {
3963 PyThreadState* __tstate = wxPyBeginAllowThreads();
3964 result = (bool)(arg1)->Ok();
3965 wxPyEndAllowThreads(__tstate);
3966 if (PyErr_Occurred()) SWIG_fail;
3967 }
3968 {
3969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3970 }
3971 return resultobj;
3972 fail:
3973 return NULL;
3974 }
3975
3976
3977 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3978 PyObject *resultobj = 0;
3979 wxColour *arg1 = (wxColour *) 0 ;
3980 byte arg2 ;
3981 byte arg3 ;
3982 byte arg4 ;
3983 byte arg5 = (byte) wxALPHA_OPAQUE ;
3984 void *argp1 = 0 ;
3985 int res1 = 0 ;
3986 unsigned char val2 ;
3987 int ecode2 = 0 ;
3988 unsigned char val3 ;
3989 int ecode3 = 0 ;
3990 unsigned char val4 ;
3991 int ecode4 = 0 ;
3992 unsigned char val5 ;
3993 int ecode5 = 0 ;
3994 PyObject * obj0 = 0 ;
3995 PyObject * obj1 = 0 ;
3996 PyObject * obj2 = 0 ;
3997 PyObject * obj3 = 0 ;
3998 PyObject * obj4 = 0 ;
3999 char * kwnames[] = {
4000 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4001 };
4002
4003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4005 if (!SWIG_IsOK(res1)) {
4006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4007 }
4008 arg1 = reinterpret_cast< wxColour * >(argp1);
4009 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4010 if (!SWIG_IsOK(ecode2)) {
4011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4012 }
4013 arg2 = static_cast< byte >(val2);
4014 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4015 if (!SWIG_IsOK(ecode3)) {
4016 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4017 }
4018 arg3 = static_cast< byte >(val3);
4019 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4020 if (!SWIG_IsOK(ecode4)) {
4021 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4022 }
4023 arg4 = static_cast< byte >(val4);
4024 if (obj4) {
4025 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4026 if (!SWIG_IsOK(ecode5)) {
4027 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4028 }
4029 arg5 = static_cast< byte >(val5);
4030 }
4031 {
4032 PyThreadState* __tstate = wxPyBeginAllowThreads();
4033 (arg1)->Set(arg2,arg3,arg4,arg5);
4034 wxPyEndAllowThreads(__tstate);
4035 if (PyErr_Occurred()) SWIG_fail;
4036 }
4037 resultobj = SWIG_Py_Void();
4038 return resultobj;
4039 fail:
4040 return NULL;
4041 }
4042
4043
4044 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4045 PyObject *resultobj = 0;
4046 wxColour *arg1 = (wxColour *) 0 ;
4047 unsigned long arg2 ;
4048 void *argp1 = 0 ;
4049 int res1 = 0 ;
4050 unsigned long val2 ;
4051 int ecode2 = 0 ;
4052 PyObject * obj0 = 0 ;
4053 PyObject * obj1 = 0 ;
4054 char * kwnames[] = {
4055 (char *) "self",(char *) "colRGB", NULL
4056 };
4057
4058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4060 if (!SWIG_IsOK(res1)) {
4061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4062 }
4063 arg1 = reinterpret_cast< wxColour * >(argp1);
4064 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4065 if (!SWIG_IsOK(ecode2)) {
4066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4067 }
4068 arg2 = static_cast< unsigned long >(val2);
4069 {
4070 PyThreadState* __tstate = wxPyBeginAllowThreads();
4071 (arg1)->Set(arg2);
4072 wxPyEndAllowThreads(__tstate);
4073 if (PyErr_Occurred()) SWIG_fail;
4074 }
4075 resultobj = SWIG_Py_Void();
4076 return resultobj;
4077 fail:
4078 return NULL;
4079 }
4080
4081
4082 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4083 PyObject *resultobj = 0;
4084 wxColour *arg1 = (wxColour *) 0 ;
4085 wxString *arg2 = 0 ;
4086 void *argp1 = 0 ;
4087 int res1 = 0 ;
4088 bool temp2 = false ;
4089 PyObject * obj0 = 0 ;
4090 PyObject * obj1 = 0 ;
4091 char * kwnames[] = {
4092 (char *) "self",(char *) "colourName", NULL
4093 };
4094
4095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4097 if (!SWIG_IsOK(res1)) {
4098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4099 }
4100 arg1 = reinterpret_cast< wxColour * >(argp1);
4101 {
4102 arg2 = wxString_in_helper(obj1);
4103 if (arg2 == NULL) SWIG_fail;
4104 temp2 = true;
4105 }
4106 {
4107 PyThreadState* __tstate = wxPyBeginAllowThreads();
4108 (arg1)->InitFromName((wxString const &)*arg2);
4109 wxPyEndAllowThreads(__tstate);
4110 if (PyErr_Occurred()) SWIG_fail;
4111 }
4112 resultobj = SWIG_Py_Void();
4113 {
4114 if (temp2)
4115 delete arg2;
4116 }
4117 return resultobj;
4118 fail:
4119 {
4120 if (temp2)
4121 delete arg2;
4122 }
4123 return NULL;
4124 }
4125
4126
4127 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4128 PyObject *resultobj = 0;
4129 wxColour *arg1 = (wxColour *) 0 ;
4130 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4131 wxString result;
4132 void *argp1 = 0 ;
4133 int res1 = 0 ;
4134 long val2 ;
4135 int ecode2 = 0 ;
4136 PyObject * obj0 = 0 ;
4137 PyObject * obj1 = 0 ;
4138 char * kwnames[] = {
4139 (char *) "self",(char *) "flags", NULL
4140 };
4141
4142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4144 if (!SWIG_IsOK(res1)) {
4145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4146 }
4147 arg1 = reinterpret_cast< wxColour * >(argp1);
4148 if (obj1) {
4149 ecode2 = SWIG_AsVal_long(obj1, &val2);
4150 if (!SWIG_IsOK(ecode2)) {
4151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4152 }
4153 arg2 = static_cast< long >(val2);
4154 }
4155 {
4156 PyThreadState* __tstate = wxPyBeginAllowThreads();
4157 result = ((wxColour const *)arg1)->GetAsString(arg2);
4158 wxPyEndAllowThreads(__tstate);
4159 if (PyErr_Occurred()) SWIG_fail;
4160 }
4161 {
4162 #if wxUSE_UNICODE
4163 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4164 #else
4165 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4166 #endif
4167 }
4168 return resultobj;
4169 fail:
4170 return NULL;
4171 }
4172
4173
4174 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4175 PyObject *resultobj = 0;
4176 wxColour *arg1 = (wxColour *) 0 ;
4177 long result;
4178 void *argp1 = 0 ;
4179 int res1 = 0 ;
4180 PyObject *swig_obj[1] ;
4181
4182 if (!args) SWIG_fail;
4183 swig_obj[0] = args;
4184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4185 if (!SWIG_IsOK(res1)) {
4186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4187 }
4188 arg1 = reinterpret_cast< wxColour * >(argp1);
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 result = (long)((wxColour const *)arg1)->GetPixel();
4192 wxPyEndAllowThreads(__tstate);
4193 if (PyErr_Occurred()) SWIG_fail;
4194 }
4195 resultobj = SWIG_From_long(static_cast< long >(result));
4196 return resultobj;
4197 fail:
4198 return NULL;
4199 }
4200
4201
4202 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4203 PyObject *resultobj = 0;
4204 wxColour *arg1 = (wxColour *) 0 ;
4205 PyObject *arg2 = (PyObject *) 0 ;
4206 bool result;
4207 void *argp1 = 0 ;
4208 int res1 = 0 ;
4209 PyObject * obj0 = 0 ;
4210 PyObject * obj1 = 0 ;
4211 char * kwnames[] = {
4212 (char *) "self",(char *) "other", NULL
4213 };
4214
4215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4217 if (!SWIG_IsOK(res1)) {
4218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4219 }
4220 arg1 = reinterpret_cast< wxColour * >(argp1);
4221 arg2 = obj1;
4222 {
4223 result = (bool)wxColour___eq__(arg1,arg2);
4224 if (PyErr_Occurred()) SWIG_fail;
4225 }
4226 {
4227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4228 }
4229 return resultobj;
4230 fail:
4231 return NULL;
4232 }
4233
4234
4235 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4236 PyObject *resultobj = 0;
4237 wxColour *arg1 = (wxColour *) 0 ;
4238 PyObject *arg2 = (PyObject *) 0 ;
4239 bool result;
4240 void *argp1 = 0 ;
4241 int res1 = 0 ;
4242 PyObject * obj0 = 0 ;
4243 PyObject * obj1 = 0 ;
4244 char * kwnames[] = {
4245 (char *) "self",(char *) "other", NULL
4246 };
4247
4248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4250 if (!SWIG_IsOK(res1)) {
4251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4252 }
4253 arg1 = reinterpret_cast< wxColour * >(argp1);
4254 arg2 = obj1;
4255 {
4256 result = (bool)wxColour___ne__(arg1,arg2);
4257 if (PyErr_Occurred()) SWIG_fail;
4258 }
4259 {
4260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4261 }
4262 return resultobj;
4263 fail:
4264 return NULL;
4265 }
4266
4267
4268 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4269 PyObject *resultobj = 0;
4270 wxColour *arg1 = (wxColour *) 0 ;
4271 bool arg2 = (bool) false ;
4272 PyObject *result = 0 ;
4273 void *argp1 = 0 ;
4274 int res1 = 0 ;
4275 bool val2 ;
4276 int ecode2 = 0 ;
4277 PyObject * obj0 = 0 ;
4278 PyObject * obj1 = 0 ;
4279 char * kwnames[] = {
4280 (char *) "self",(char *) "includeAlpha", NULL
4281 };
4282
4283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4285 if (!SWIG_IsOK(res1)) {
4286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4287 }
4288 arg1 = reinterpret_cast< wxColour * >(argp1);
4289 if (obj1) {
4290 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4291 if (!SWIG_IsOK(ecode2)) {
4292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4293 }
4294 arg2 = static_cast< bool >(val2);
4295 }
4296 {
4297 result = (PyObject *)wxColour_Get(arg1,arg2);
4298 if (PyErr_Occurred()) SWIG_fail;
4299 }
4300 resultobj = result;
4301 return resultobj;
4302 fail:
4303 return NULL;
4304 }
4305
4306
4307 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4308 PyObject *resultobj = 0;
4309 wxColour *arg1 = (wxColour *) 0 ;
4310 unsigned long result;
4311 void *argp1 = 0 ;
4312 int res1 = 0 ;
4313 PyObject *swig_obj[1] ;
4314
4315 if (!args) SWIG_fail;
4316 swig_obj[0] = args;
4317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4318 if (!SWIG_IsOK(res1)) {
4319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4320 }
4321 arg1 = reinterpret_cast< wxColour * >(argp1);
4322 {
4323 result = (unsigned long)wxColour_GetRGB(arg1);
4324 if (PyErr_Occurred()) SWIG_fail;
4325 }
4326 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4327 return resultobj;
4328 fail:
4329 return NULL;
4330 }
4331
4332
4333 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4334 PyObject *obj;
4335 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4336 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4337 return SWIG_Py_Void();
4338 }
4339
4340 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4341 return SWIG_Python_InitShadowInstance(args);
4342 }
4343
4344 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4345 PyObject *resultobj = 0;
4346 int arg1 ;
4347 unsigned char *arg2 = (unsigned char *) 0 ;
4348 unsigned char *arg3 = (unsigned char *) 0 ;
4349 unsigned char *arg4 = (unsigned char *) 0 ;
4350 wxPalette *result = 0 ;
4351 int val1 ;
4352 int ecode1 = 0 ;
4353 void *argp2 = 0 ;
4354 int res2 = 0 ;
4355 void *argp3 = 0 ;
4356 int res3 = 0 ;
4357 void *argp4 = 0 ;
4358 int res4 = 0 ;
4359 PyObject * obj0 = 0 ;
4360 PyObject * obj1 = 0 ;
4361 PyObject * obj2 = 0 ;
4362 PyObject * obj3 = 0 ;
4363 char * kwnames[] = {
4364 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4365 };
4366
4367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4368 ecode1 = SWIG_AsVal_int(obj0, &val1);
4369 if (!SWIG_IsOK(ecode1)) {
4370 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4371 }
4372 arg1 = static_cast< int >(val1);
4373 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4374 if (!SWIG_IsOK(res2)) {
4375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4376 }
4377 arg2 = reinterpret_cast< unsigned char * >(argp2);
4378 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4379 if (!SWIG_IsOK(res3)) {
4380 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4381 }
4382 arg3 = reinterpret_cast< unsigned char * >(argp3);
4383 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4384 if (!SWIG_IsOK(res4)) {
4385 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4386 }
4387 arg4 = reinterpret_cast< unsigned char * >(argp4);
4388 {
4389 if (!wxPyCheckForApp()) SWIG_fail;
4390 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4392 wxPyEndAllowThreads(__tstate);
4393 if (PyErr_Occurred()) SWIG_fail;
4394 }
4395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4396 return resultobj;
4397 fail:
4398 return NULL;
4399 }
4400
4401
4402 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4403 PyObject *resultobj = 0;
4404 wxPalette *arg1 = (wxPalette *) 0 ;
4405 void *argp1 = 0 ;
4406 int res1 = 0 ;
4407 PyObject *swig_obj[1] ;
4408
4409 if (!args) SWIG_fail;
4410 swig_obj[0] = args;
4411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4412 if (!SWIG_IsOK(res1)) {
4413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4414 }
4415 arg1 = reinterpret_cast< wxPalette * >(argp1);
4416 {
4417 PyThreadState* __tstate = wxPyBeginAllowThreads();
4418 delete arg1;
4419
4420 wxPyEndAllowThreads(__tstate);
4421 if (PyErr_Occurred()) SWIG_fail;
4422 }
4423 resultobj = SWIG_Py_Void();
4424 return resultobj;
4425 fail:
4426 return NULL;
4427 }
4428
4429
4430 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4431 PyObject *resultobj = 0;
4432 wxPalette *arg1 = (wxPalette *) 0 ;
4433 byte arg2 ;
4434 byte arg3 ;
4435 byte arg4 ;
4436 int result;
4437 void *argp1 = 0 ;
4438 int res1 = 0 ;
4439 unsigned char val2 ;
4440 int ecode2 = 0 ;
4441 unsigned char val3 ;
4442 int ecode3 = 0 ;
4443 unsigned char val4 ;
4444 int ecode4 = 0 ;
4445 PyObject * obj0 = 0 ;
4446 PyObject * obj1 = 0 ;
4447 PyObject * obj2 = 0 ;
4448 PyObject * obj3 = 0 ;
4449 char * kwnames[] = {
4450 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4451 };
4452
4453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4455 if (!SWIG_IsOK(res1)) {
4456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4457 }
4458 arg1 = reinterpret_cast< wxPalette * >(argp1);
4459 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4460 if (!SWIG_IsOK(ecode2)) {
4461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4462 }
4463 arg2 = static_cast< byte >(val2);
4464 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4465 if (!SWIG_IsOK(ecode3)) {
4466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4467 }
4468 arg3 = static_cast< byte >(val3);
4469 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4470 if (!SWIG_IsOK(ecode4)) {
4471 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4472 }
4473 arg4 = static_cast< byte >(val4);
4474 {
4475 PyThreadState* __tstate = wxPyBeginAllowThreads();
4476 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4477 wxPyEndAllowThreads(__tstate);
4478 if (PyErr_Occurred()) SWIG_fail;
4479 }
4480 resultobj = SWIG_From_int(static_cast< int >(result));
4481 return resultobj;
4482 fail:
4483 return NULL;
4484 }
4485
4486
4487 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4488 PyObject *resultobj = 0;
4489 wxPalette *arg1 = (wxPalette *) 0 ;
4490 int arg2 ;
4491 byte *arg3 = (byte *) 0 ;
4492 byte *arg4 = (byte *) 0 ;
4493 byte *arg5 = (byte *) 0 ;
4494 bool result;
4495 void *argp1 = 0 ;
4496 int res1 = 0 ;
4497 int val2 ;
4498 int ecode2 = 0 ;
4499 byte temp3 ;
4500 int res3 = SWIG_TMPOBJ ;
4501 byte temp4 ;
4502 int res4 = SWIG_TMPOBJ ;
4503 byte temp5 ;
4504 int res5 = SWIG_TMPOBJ ;
4505 PyObject * obj0 = 0 ;
4506 PyObject * obj1 = 0 ;
4507 char * kwnames[] = {
4508 (char *) "self",(char *) "pixel", NULL
4509 };
4510
4511 arg3 = &temp3;
4512 arg4 = &temp4;
4513 arg5 = &temp5;
4514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4516 if (!SWIG_IsOK(res1)) {
4517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4518 }
4519 arg1 = reinterpret_cast< wxPalette * >(argp1);
4520 ecode2 = SWIG_AsVal_int(obj1, &val2);
4521 if (!SWIG_IsOK(ecode2)) {
4522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4523 }
4524 arg2 = static_cast< int >(val2);
4525 {
4526 PyThreadState* __tstate = wxPyBeginAllowThreads();
4527 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4528 wxPyEndAllowThreads(__tstate);
4529 if (PyErr_Occurred()) SWIG_fail;
4530 }
4531 {
4532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4533 }
4534 if (SWIG_IsTmpObj(res3)) {
4535 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4536 } else {
4537 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4538 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4539 }
4540 if (SWIG_IsTmpObj(res4)) {
4541 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4542 } else {
4543 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4544 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4545 }
4546 if (SWIG_IsTmpObj(res5)) {
4547 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4548 } else {
4549 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4550 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4551 }
4552 return resultobj;
4553 fail:
4554 return NULL;
4555 }
4556
4557
4558 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4559 PyObject *resultobj = 0;
4560 wxPalette *arg1 = (wxPalette *) 0 ;
4561 int result;
4562 void *argp1 = 0 ;
4563 int res1 = 0 ;
4564 PyObject *swig_obj[1] ;
4565
4566 if (!args) SWIG_fail;
4567 swig_obj[0] = args;
4568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4569 if (!SWIG_IsOK(res1)) {
4570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4571 }
4572 arg1 = reinterpret_cast< wxPalette * >(argp1);
4573 {
4574 PyThreadState* __tstate = wxPyBeginAllowThreads();
4575 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4576 wxPyEndAllowThreads(__tstate);
4577 if (PyErr_Occurred()) SWIG_fail;
4578 }
4579 resultobj = SWIG_From_int(static_cast< int >(result));
4580 return resultobj;
4581 fail:
4582 return NULL;
4583 }
4584
4585
4586 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4587 PyObject *resultobj = 0;
4588 wxPalette *arg1 = (wxPalette *) 0 ;
4589 bool result;
4590 void *argp1 = 0 ;
4591 int res1 = 0 ;
4592 PyObject *swig_obj[1] ;
4593
4594 if (!args) SWIG_fail;
4595 swig_obj[0] = args;
4596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4597 if (!SWIG_IsOK(res1)) {
4598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4599 }
4600 arg1 = reinterpret_cast< wxPalette * >(argp1);
4601 {
4602 PyThreadState* __tstate = wxPyBeginAllowThreads();
4603 result = (bool)(arg1)->Ok();
4604 wxPyEndAllowThreads(__tstate);
4605 if (PyErr_Occurred()) SWIG_fail;
4606 }
4607 {
4608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4609 }
4610 return resultobj;
4611 fail:
4612 return NULL;
4613 }
4614
4615
4616 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4617 PyObject *obj;
4618 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4619 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4620 return SWIG_Py_Void();
4621 }
4622
4623 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4624 return SWIG_Python_InitShadowInstance(args);
4625 }
4626
4627 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4628 PyObject *resultobj = 0;
4629 wxColour *arg1 = 0 ;
4630 int arg2 = (int) 1 ;
4631 int arg3 = (int) wxSOLID ;
4632 wxPen *result = 0 ;
4633 wxColour temp1 ;
4634 int val2 ;
4635 int ecode2 = 0 ;
4636 int val3 ;
4637 int ecode3 = 0 ;
4638 PyObject * obj0 = 0 ;
4639 PyObject * obj1 = 0 ;
4640 PyObject * obj2 = 0 ;
4641 char * kwnames[] = {
4642 (char *) "colour",(char *) "width",(char *) "style", NULL
4643 };
4644
4645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4646 {
4647 arg1 = &temp1;
4648 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4649 }
4650 if (obj1) {
4651 ecode2 = SWIG_AsVal_int(obj1, &val2);
4652 if (!SWIG_IsOK(ecode2)) {
4653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4654 }
4655 arg2 = static_cast< int >(val2);
4656 }
4657 if (obj2) {
4658 ecode3 = SWIG_AsVal_int(obj2, &val3);
4659 if (!SWIG_IsOK(ecode3)) {
4660 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4661 }
4662 arg3 = static_cast< int >(val3);
4663 }
4664 {
4665 if (!wxPyCheckForApp()) SWIG_fail;
4666 PyThreadState* __tstate = wxPyBeginAllowThreads();
4667 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4668 wxPyEndAllowThreads(__tstate);
4669 if (PyErr_Occurred()) SWIG_fail;
4670 }
4671 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4672 return resultobj;
4673 fail:
4674 return NULL;
4675 }
4676
4677
4678 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4679 PyObject *resultobj = 0;
4680 wxPen *arg1 = (wxPen *) 0 ;
4681 void *argp1 = 0 ;
4682 int res1 = 0 ;
4683 PyObject *swig_obj[1] ;
4684
4685 if (!args) SWIG_fail;
4686 swig_obj[0] = args;
4687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4688 if (!SWIG_IsOK(res1)) {
4689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4690 }
4691 arg1 = reinterpret_cast< wxPen * >(argp1);
4692 {
4693 PyThreadState* __tstate = wxPyBeginAllowThreads();
4694 delete arg1;
4695
4696 wxPyEndAllowThreads(__tstate);
4697 if (PyErr_Occurred()) SWIG_fail;
4698 }
4699 resultobj = SWIG_Py_Void();
4700 return resultobj;
4701 fail:
4702 return NULL;
4703 }
4704
4705
4706 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4707 PyObject *resultobj = 0;
4708 wxPen *arg1 = (wxPen *) 0 ;
4709 int result;
4710 void *argp1 = 0 ;
4711 int res1 = 0 ;
4712 PyObject *swig_obj[1] ;
4713
4714 if (!args) SWIG_fail;
4715 swig_obj[0] = args;
4716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4717 if (!SWIG_IsOK(res1)) {
4718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4719 }
4720 arg1 = reinterpret_cast< wxPen * >(argp1);
4721 {
4722 PyThreadState* __tstate = wxPyBeginAllowThreads();
4723 result = (int)(arg1)->GetCap();
4724 wxPyEndAllowThreads(__tstate);
4725 if (PyErr_Occurred()) SWIG_fail;
4726 }
4727 resultobj = SWIG_From_int(static_cast< int >(result));
4728 return resultobj;
4729 fail:
4730 return NULL;
4731 }
4732
4733
4734 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4735 PyObject *resultobj = 0;
4736 wxPen *arg1 = (wxPen *) 0 ;
4737 wxColour result;
4738 void *argp1 = 0 ;
4739 int res1 = 0 ;
4740 PyObject *swig_obj[1] ;
4741
4742 if (!args) SWIG_fail;
4743 swig_obj[0] = args;
4744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4745 if (!SWIG_IsOK(res1)) {
4746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4747 }
4748 arg1 = reinterpret_cast< wxPen * >(argp1);
4749 {
4750 PyThreadState* __tstate = wxPyBeginAllowThreads();
4751 result = (arg1)->GetColour();
4752 wxPyEndAllowThreads(__tstate);
4753 if (PyErr_Occurred()) SWIG_fail;
4754 }
4755 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4756 return resultobj;
4757 fail:
4758 return NULL;
4759 }
4760
4761
4762 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4763 PyObject *resultobj = 0;
4764 wxPen *arg1 = (wxPen *) 0 ;
4765 int result;
4766 void *argp1 = 0 ;
4767 int res1 = 0 ;
4768 PyObject *swig_obj[1] ;
4769
4770 if (!args) SWIG_fail;
4771 swig_obj[0] = args;
4772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4773 if (!SWIG_IsOK(res1)) {
4774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4775 }
4776 arg1 = reinterpret_cast< wxPen * >(argp1);
4777 {
4778 PyThreadState* __tstate = wxPyBeginAllowThreads();
4779 result = (int)(arg1)->GetJoin();
4780 wxPyEndAllowThreads(__tstate);
4781 if (PyErr_Occurred()) SWIG_fail;
4782 }
4783 resultobj = SWIG_From_int(static_cast< int >(result));
4784 return resultobj;
4785 fail:
4786 return NULL;
4787 }
4788
4789
4790 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4791 PyObject *resultobj = 0;
4792 wxPen *arg1 = (wxPen *) 0 ;
4793 int result;
4794 void *argp1 = 0 ;
4795 int res1 = 0 ;
4796 PyObject *swig_obj[1] ;
4797
4798 if (!args) SWIG_fail;
4799 swig_obj[0] = args;
4800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4801 if (!SWIG_IsOK(res1)) {
4802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4803 }
4804 arg1 = reinterpret_cast< wxPen * >(argp1);
4805 {
4806 PyThreadState* __tstate = wxPyBeginAllowThreads();
4807 result = (int)(arg1)->GetStyle();
4808 wxPyEndAllowThreads(__tstate);
4809 if (PyErr_Occurred()) SWIG_fail;
4810 }
4811 resultobj = SWIG_From_int(static_cast< int >(result));
4812 return resultobj;
4813 fail:
4814 return NULL;
4815 }
4816
4817
4818 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4819 PyObject *resultobj = 0;
4820 wxPen *arg1 = (wxPen *) 0 ;
4821 int result;
4822 void *argp1 = 0 ;
4823 int res1 = 0 ;
4824 PyObject *swig_obj[1] ;
4825
4826 if (!args) SWIG_fail;
4827 swig_obj[0] = args;
4828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4829 if (!SWIG_IsOK(res1)) {
4830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4831 }
4832 arg1 = reinterpret_cast< wxPen * >(argp1);
4833 {
4834 PyThreadState* __tstate = wxPyBeginAllowThreads();
4835 result = (int)(arg1)->GetWidth();
4836 wxPyEndAllowThreads(__tstate);
4837 if (PyErr_Occurred()) SWIG_fail;
4838 }
4839 resultobj = SWIG_From_int(static_cast< int >(result));
4840 return resultobj;
4841 fail:
4842 return NULL;
4843 }
4844
4845
4846 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4847 PyObject *resultobj = 0;
4848 wxPen *arg1 = (wxPen *) 0 ;
4849 bool result;
4850 void *argp1 = 0 ;
4851 int res1 = 0 ;
4852 PyObject *swig_obj[1] ;
4853
4854 if (!args) SWIG_fail;
4855 swig_obj[0] = args;
4856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4857 if (!SWIG_IsOK(res1)) {
4858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4859 }
4860 arg1 = reinterpret_cast< wxPen * >(argp1);
4861 {
4862 PyThreadState* __tstate = wxPyBeginAllowThreads();
4863 result = (bool)(arg1)->Ok();
4864 wxPyEndAllowThreads(__tstate);
4865 if (PyErr_Occurred()) SWIG_fail;
4866 }
4867 {
4868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4869 }
4870 return resultobj;
4871 fail:
4872 return NULL;
4873 }
4874
4875
4876 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4877 PyObject *resultobj = 0;
4878 wxPen *arg1 = (wxPen *) 0 ;
4879 int arg2 ;
4880 void *argp1 = 0 ;
4881 int res1 = 0 ;
4882 int val2 ;
4883 int ecode2 = 0 ;
4884 PyObject * obj0 = 0 ;
4885 PyObject * obj1 = 0 ;
4886 char * kwnames[] = {
4887 (char *) "self",(char *) "cap_style", NULL
4888 };
4889
4890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4892 if (!SWIG_IsOK(res1)) {
4893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4894 }
4895 arg1 = reinterpret_cast< wxPen * >(argp1);
4896 ecode2 = SWIG_AsVal_int(obj1, &val2);
4897 if (!SWIG_IsOK(ecode2)) {
4898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4899 }
4900 arg2 = static_cast< int >(val2);
4901 {
4902 PyThreadState* __tstate = wxPyBeginAllowThreads();
4903 (arg1)->SetCap(arg2);
4904 wxPyEndAllowThreads(__tstate);
4905 if (PyErr_Occurred()) SWIG_fail;
4906 }
4907 resultobj = SWIG_Py_Void();
4908 return resultobj;
4909 fail:
4910 return NULL;
4911 }
4912
4913
4914 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4915 PyObject *resultobj = 0;
4916 wxPen *arg1 = (wxPen *) 0 ;
4917 wxColour *arg2 = 0 ;
4918 void *argp1 = 0 ;
4919 int res1 = 0 ;
4920 wxColour temp2 ;
4921 PyObject * obj0 = 0 ;
4922 PyObject * obj1 = 0 ;
4923 char * kwnames[] = {
4924 (char *) "self",(char *) "colour", NULL
4925 };
4926
4927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4929 if (!SWIG_IsOK(res1)) {
4930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4931 }
4932 arg1 = reinterpret_cast< wxPen * >(argp1);
4933 {
4934 arg2 = &temp2;
4935 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4936 }
4937 {
4938 PyThreadState* __tstate = wxPyBeginAllowThreads();
4939 (arg1)->SetColour(*arg2);
4940 wxPyEndAllowThreads(__tstate);
4941 if (PyErr_Occurred()) SWIG_fail;
4942 }
4943 resultobj = SWIG_Py_Void();
4944 return resultobj;
4945 fail:
4946 return NULL;
4947 }
4948
4949
4950 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4951 PyObject *resultobj = 0;
4952 wxPen *arg1 = (wxPen *) 0 ;
4953 int arg2 ;
4954 void *argp1 = 0 ;
4955 int res1 = 0 ;
4956 int val2 ;
4957 int ecode2 = 0 ;
4958 PyObject * obj0 = 0 ;
4959 PyObject * obj1 = 0 ;
4960 char * kwnames[] = {
4961 (char *) "self",(char *) "join_style", NULL
4962 };
4963
4964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4966 if (!SWIG_IsOK(res1)) {
4967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4968 }
4969 arg1 = reinterpret_cast< wxPen * >(argp1);
4970 ecode2 = SWIG_AsVal_int(obj1, &val2);
4971 if (!SWIG_IsOK(ecode2)) {
4972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4973 }
4974 arg2 = static_cast< int >(val2);
4975 {
4976 PyThreadState* __tstate = wxPyBeginAllowThreads();
4977 (arg1)->SetJoin(arg2);
4978 wxPyEndAllowThreads(__tstate);
4979 if (PyErr_Occurred()) SWIG_fail;
4980 }
4981 resultobj = SWIG_Py_Void();
4982 return resultobj;
4983 fail:
4984 return NULL;
4985 }
4986
4987
4988 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4989 PyObject *resultobj = 0;
4990 wxPen *arg1 = (wxPen *) 0 ;
4991 int arg2 ;
4992 void *argp1 = 0 ;
4993 int res1 = 0 ;
4994 int val2 ;
4995 int ecode2 = 0 ;
4996 PyObject * obj0 = 0 ;
4997 PyObject * obj1 = 0 ;
4998 char * kwnames[] = {
4999 (char *) "self",(char *) "style", NULL
5000 };
5001
5002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5004 if (!SWIG_IsOK(res1)) {
5005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5006 }
5007 arg1 = reinterpret_cast< wxPen * >(argp1);
5008 ecode2 = SWIG_AsVal_int(obj1, &val2);
5009 if (!SWIG_IsOK(ecode2)) {
5010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5011 }
5012 arg2 = static_cast< int >(val2);
5013 {
5014 PyThreadState* __tstate = wxPyBeginAllowThreads();
5015 (arg1)->SetStyle(arg2);
5016 wxPyEndAllowThreads(__tstate);
5017 if (PyErr_Occurred()) SWIG_fail;
5018 }
5019 resultobj = SWIG_Py_Void();
5020 return resultobj;
5021 fail:
5022 return NULL;
5023 }
5024
5025
5026 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5027 PyObject *resultobj = 0;
5028 wxPen *arg1 = (wxPen *) 0 ;
5029 int arg2 ;
5030 void *argp1 = 0 ;
5031 int res1 = 0 ;
5032 int val2 ;
5033 int ecode2 = 0 ;
5034 PyObject * obj0 = 0 ;
5035 PyObject * obj1 = 0 ;
5036 char * kwnames[] = {
5037 (char *) "self",(char *) "width", NULL
5038 };
5039
5040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5042 if (!SWIG_IsOK(res1)) {
5043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5044 }
5045 arg1 = reinterpret_cast< wxPen * >(argp1);
5046 ecode2 = SWIG_AsVal_int(obj1, &val2);
5047 if (!SWIG_IsOK(ecode2)) {
5048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5049 }
5050 arg2 = static_cast< int >(val2);
5051 {
5052 PyThreadState* __tstate = wxPyBeginAllowThreads();
5053 (arg1)->SetWidth(arg2);
5054 wxPyEndAllowThreads(__tstate);
5055 if (PyErr_Occurred()) SWIG_fail;
5056 }
5057 resultobj = SWIG_Py_Void();
5058 return resultobj;
5059 fail:
5060 return NULL;
5061 }
5062
5063
5064 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5065 PyObject *resultobj = 0;
5066 wxPen *arg1 = (wxPen *) 0 ;
5067 int arg2 ;
5068 wxDash *arg3 = (wxDash *) 0 ;
5069 void *argp1 = 0 ;
5070 int res1 = 0 ;
5071 PyObject * obj0 = 0 ;
5072 PyObject * obj1 = 0 ;
5073 char * kwnames[] = {
5074 (char *) "self",(char *) "dashes", NULL
5075 };
5076
5077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5079 if (!SWIG_IsOK(res1)) {
5080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5081 }
5082 arg1 = reinterpret_cast< wxPen * >(argp1);
5083 {
5084 arg2 = PyList_Size(obj1);
5085 arg3 = (wxDash*)byte_LIST_helper(obj1);
5086 if (arg3 == NULL) SWIG_fail;
5087 }
5088 {
5089 PyThreadState* __tstate = wxPyBeginAllowThreads();
5090 (arg1)->SetDashes(arg2,arg3);
5091 wxPyEndAllowThreads(__tstate);
5092 if (PyErr_Occurred()) SWIG_fail;
5093 }
5094 resultobj = SWIG_Py_Void();
5095 {
5096 if (arg3) delete [] arg3;
5097 }
5098 return resultobj;
5099 fail:
5100 {
5101 if (arg3) delete [] arg3;
5102 }
5103 return NULL;
5104 }
5105
5106
5107 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5108 PyObject *resultobj = 0;
5109 wxPen *arg1 = (wxPen *) 0 ;
5110 PyObject *result = 0 ;
5111 void *argp1 = 0 ;
5112 int res1 = 0 ;
5113 PyObject *swig_obj[1] ;
5114
5115 if (!args) SWIG_fail;
5116 swig_obj[0] = args;
5117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5118 if (!SWIG_IsOK(res1)) {
5119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5120 }
5121 arg1 = reinterpret_cast< wxPen * >(argp1);
5122 {
5123 PyThreadState* __tstate = wxPyBeginAllowThreads();
5124 result = (PyObject *)wxPen_GetDashes(arg1);
5125 wxPyEndAllowThreads(__tstate);
5126 if (PyErr_Occurred()) SWIG_fail;
5127 }
5128 resultobj = result;
5129 return resultobj;
5130 fail:
5131 return NULL;
5132 }
5133
5134
5135 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5136 PyObject *resultobj = 0;
5137 wxPen *arg1 = (wxPen *) 0 ;
5138 PyObject *arg2 = (PyObject *) 0 ;
5139 PyObject *arg3 = (PyObject *) 0 ;
5140 void *argp1 = 0 ;
5141 int res1 = 0 ;
5142 PyObject * obj0 = 0 ;
5143 PyObject * obj1 = 0 ;
5144 PyObject * obj2 = 0 ;
5145 char * kwnames[] = {
5146 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5147 };
5148
5149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5151 if (!SWIG_IsOK(res1)) {
5152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5153 }
5154 arg1 = reinterpret_cast< wxPen * >(argp1);
5155 arg2 = obj1;
5156 arg3 = obj2;
5157 {
5158 PyThreadState* __tstate = wxPyBeginAllowThreads();
5159 wxPen__SetDashes(arg1,arg2,arg3);
5160 wxPyEndAllowThreads(__tstate);
5161 if (PyErr_Occurred()) SWIG_fail;
5162 }
5163 resultobj = SWIG_Py_Void();
5164 return resultobj;
5165 fail:
5166 return NULL;
5167 }
5168
5169
5170 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5171 PyObject *resultobj = 0;
5172 wxPen *arg1 = (wxPen *) 0 ;
5173 wxPen *arg2 = (wxPen *) 0 ;
5174 bool result;
5175 void *argp1 = 0 ;
5176 int res1 = 0 ;
5177 void *argp2 = 0 ;
5178 int res2 = 0 ;
5179 PyObject * obj0 = 0 ;
5180 PyObject * obj1 = 0 ;
5181 char * kwnames[] = {
5182 (char *) "self",(char *) "other", NULL
5183 };
5184
5185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5187 if (!SWIG_IsOK(res1)) {
5188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5189 }
5190 arg1 = reinterpret_cast< wxPen * >(argp1);
5191 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5192 if (!SWIG_IsOK(res2)) {
5193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5194 }
5195 arg2 = reinterpret_cast< wxPen * >(argp2);
5196 {
5197 PyThreadState* __tstate = wxPyBeginAllowThreads();
5198 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5199 wxPyEndAllowThreads(__tstate);
5200 if (PyErr_Occurred()) SWIG_fail;
5201 }
5202 {
5203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5204 }
5205 return resultobj;
5206 fail:
5207 return NULL;
5208 }
5209
5210
5211 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5212 PyObject *resultobj = 0;
5213 wxPen *arg1 = (wxPen *) 0 ;
5214 wxPen *arg2 = (wxPen *) 0 ;
5215 bool result;
5216 void *argp1 = 0 ;
5217 int res1 = 0 ;
5218 void *argp2 = 0 ;
5219 int res2 = 0 ;
5220 PyObject * obj0 = 0 ;
5221 PyObject * obj1 = 0 ;
5222 char * kwnames[] = {
5223 (char *) "self",(char *) "other", NULL
5224 };
5225
5226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5228 if (!SWIG_IsOK(res1)) {
5229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5230 }
5231 arg1 = reinterpret_cast< wxPen * >(argp1);
5232 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5233 if (!SWIG_IsOK(res2)) {
5234 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5235 }
5236 arg2 = reinterpret_cast< wxPen * >(argp2);
5237 {
5238 PyThreadState* __tstate = wxPyBeginAllowThreads();
5239 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5240 wxPyEndAllowThreads(__tstate);
5241 if (PyErr_Occurred()) SWIG_fail;
5242 }
5243 {
5244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5245 }
5246 return resultobj;
5247 fail:
5248 return NULL;
5249 }
5250
5251
5252 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5253 PyObject *obj;
5254 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5255 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5256 return SWIG_Py_Void();
5257 }
5258
5259 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5260 return SWIG_Python_InitShadowInstance(args);
5261 }
5262
5263 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5264 PyObject *resultobj = 0;
5265 wxColour *arg1 = 0 ;
5266 int arg2 = (int) wxSOLID ;
5267 wxBrush *result = 0 ;
5268 wxColour temp1 ;
5269 int val2 ;
5270 int ecode2 = 0 ;
5271 PyObject * obj0 = 0 ;
5272 PyObject * obj1 = 0 ;
5273 char * kwnames[] = {
5274 (char *) "colour",(char *) "style", NULL
5275 };
5276
5277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5278 {
5279 arg1 = &temp1;
5280 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5281 }
5282 if (obj1) {
5283 ecode2 = SWIG_AsVal_int(obj1, &val2);
5284 if (!SWIG_IsOK(ecode2)) {
5285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5286 }
5287 arg2 = static_cast< int >(val2);
5288 }
5289 {
5290 if (!wxPyCheckForApp()) SWIG_fail;
5291 PyThreadState* __tstate = wxPyBeginAllowThreads();
5292 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5293 wxPyEndAllowThreads(__tstate);
5294 if (PyErr_Occurred()) SWIG_fail;
5295 }
5296 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5297 return resultobj;
5298 fail:
5299 return NULL;
5300 }
5301
5302
5303 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5304 PyObject *resultobj = 0;
5305 wxBitmap *arg1 = 0 ;
5306 wxBrush *result = 0 ;
5307 void *argp1 = 0 ;
5308 int res1 = 0 ;
5309 PyObject * obj0 = 0 ;
5310 char * kwnames[] = {
5311 (char *) "stippleBitmap", NULL
5312 };
5313
5314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5315 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5316 if (!SWIG_IsOK(res1)) {
5317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5318 }
5319 if (!argp1) {
5320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5321 }
5322 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5323 {
5324 if (!wxPyCheckForApp()) SWIG_fail;
5325 PyThreadState* __tstate = wxPyBeginAllowThreads();
5326 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5327 wxPyEndAllowThreads(__tstate);
5328 if (PyErr_Occurred()) SWIG_fail;
5329 }
5330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5331 return resultobj;
5332 fail:
5333 return NULL;
5334 }
5335
5336
5337 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5338 PyObject *resultobj = 0;
5339 wxBrush *arg1 = (wxBrush *) 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_wxBrush, SWIG_POINTER_DISOWN | 0 );
5347 if (!SWIG_IsOK(res1)) {
5348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5349 }
5350 arg1 = reinterpret_cast< wxBrush * >(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_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5366 PyObject *resultobj = 0;
5367 wxBrush *arg1 = (wxBrush *) 0 ;
5368 wxColour *arg2 = 0 ;
5369 void *argp1 = 0 ;
5370 int res1 = 0 ;
5371 wxColour temp2 ;
5372 PyObject * obj0 = 0 ;
5373 PyObject * obj1 = 0 ;
5374 char * kwnames[] = {
5375 (char *) "self",(char *) "col", NULL
5376 };
5377
5378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5380 if (!SWIG_IsOK(res1)) {
5381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5382 }
5383 arg1 = reinterpret_cast< wxBrush * >(argp1);
5384 {
5385 arg2 = &temp2;
5386 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5387 }
5388 {
5389 PyThreadState* __tstate = wxPyBeginAllowThreads();
5390 (arg1)->SetColour((wxColour const &)*arg2);
5391 wxPyEndAllowThreads(__tstate);
5392 if (PyErr_Occurred()) SWIG_fail;
5393 }
5394 resultobj = SWIG_Py_Void();
5395 return resultobj;
5396 fail:
5397 return NULL;
5398 }
5399
5400
5401 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5402 PyObject *resultobj = 0;
5403 wxBrush *arg1 = (wxBrush *) 0 ;
5404 int arg2 ;
5405 void *argp1 = 0 ;
5406 int res1 = 0 ;
5407 int val2 ;
5408 int ecode2 = 0 ;
5409 PyObject * obj0 = 0 ;
5410 PyObject * obj1 = 0 ;
5411 char * kwnames[] = {
5412 (char *) "self",(char *) "style", NULL
5413 };
5414
5415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5417 if (!SWIG_IsOK(res1)) {
5418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5419 }
5420 arg1 = reinterpret_cast< wxBrush * >(argp1);
5421 ecode2 = SWIG_AsVal_int(obj1, &val2);
5422 if (!SWIG_IsOK(ecode2)) {
5423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5424 }
5425 arg2 = static_cast< int >(val2);
5426 {
5427 PyThreadState* __tstate = wxPyBeginAllowThreads();
5428 (arg1)->SetStyle(arg2);
5429 wxPyEndAllowThreads(__tstate);
5430 if (PyErr_Occurred()) SWIG_fail;
5431 }
5432 resultobj = SWIG_Py_Void();
5433 return resultobj;
5434 fail:
5435 return NULL;
5436 }
5437
5438
5439 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5440 PyObject *resultobj = 0;
5441 wxBrush *arg1 = (wxBrush *) 0 ;
5442 wxBitmap *arg2 = 0 ;
5443 void *argp1 = 0 ;
5444 int res1 = 0 ;
5445 void *argp2 = 0 ;
5446 int res2 = 0 ;
5447 PyObject * obj0 = 0 ;
5448 PyObject * obj1 = 0 ;
5449 char * kwnames[] = {
5450 (char *) "self",(char *) "stipple", NULL
5451 };
5452
5453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5455 if (!SWIG_IsOK(res1)) {
5456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5457 }
5458 arg1 = reinterpret_cast< wxBrush * >(argp1);
5459 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5460 if (!SWIG_IsOK(res2)) {
5461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5462 }
5463 if (!argp2) {
5464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5465 }
5466 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5467 {
5468 PyThreadState* __tstate = wxPyBeginAllowThreads();
5469 (arg1)->SetStipple((wxBitmap const &)*arg2);
5470 wxPyEndAllowThreads(__tstate);
5471 if (PyErr_Occurred()) SWIG_fail;
5472 }
5473 resultobj = SWIG_Py_Void();
5474 return resultobj;
5475 fail:
5476 return NULL;
5477 }
5478
5479
5480 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5481 PyObject *resultobj = 0;
5482 wxBrush *arg1 = (wxBrush *) 0 ;
5483 wxColour result;
5484 void *argp1 = 0 ;
5485 int res1 = 0 ;
5486 PyObject *swig_obj[1] ;
5487
5488 if (!args) SWIG_fail;
5489 swig_obj[0] = args;
5490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5491 if (!SWIG_IsOK(res1)) {
5492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5493 }
5494 arg1 = reinterpret_cast< wxBrush * >(argp1);
5495 {
5496 PyThreadState* __tstate = wxPyBeginAllowThreads();
5497 result = ((wxBrush const *)arg1)->GetColour();
5498 wxPyEndAllowThreads(__tstate);
5499 if (PyErr_Occurred()) SWIG_fail;
5500 }
5501 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5502 return resultobj;
5503 fail:
5504 return NULL;
5505 }
5506
5507
5508 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5509 PyObject *resultobj = 0;
5510 wxBrush *arg1 = (wxBrush *) 0 ;
5511 int result;
5512 void *argp1 = 0 ;
5513 int res1 = 0 ;
5514 PyObject *swig_obj[1] ;
5515
5516 if (!args) SWIG_fail;
5517 swig_obj[0] = args;
5518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5519 if (!SWIG_IsOK(res1)) {
5520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5521 }
5522 arg1 = reinterpret_cast< wxBrush * >(argp1);
5523 {
5524 PyThreadState* __tstate = wxPyBeginAllowThreads();
5525 result = (int)((wxBrush const *)arg1)->GetStyle();
5526 wxPyEndAllowThreads(__tstate);
5527 if (PyErr_Occurred()) SWIG_fail;
5528 }
5529 resultobj = SWIG_From_int(static_cast< int >(result));
5530 return resultobj;
5531 fail:
5532 return NULL;
5533 }
5534
5535
5536 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5537 PyObject *resultobj = 0;
5538 wxBrush *arg1 = (wxBrush *) 0 ;
5539 wxBitmap *result = 0 ;
5540 void *argp1 = 0 ;
5541 int res1 = 0 ;
5542 PyObject *swig_obj[1] ;
5543
5544 if (!args) SWIG_fail;
5545 swig_obj[0] = args;
5546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5547 if (!SWIG_IsOK(res1)) {
5548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5549 }
5550 arg1 = reinterpret_cast< wxBrush * >(argp1);
5551 {
5552 PyThreadState* __tstate = wxPyBeginAllowThreads();
5553 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5554 wxPyEndAllowThreads(__tstate);
5555 if (PyErr_Occurred()) SWIG_fail;
5556 }
5557 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5558 return resultobj;
5559 fail:
5560 return NULL;
5561 }
5562
5563
5564 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5565 PyObject *resultobj = 0;
5566 wxBrush *arg1 = (wxBrush *) 0 ;
5567 bool result;
5568 void *argp1 = 0 ;
5569 int res1 = 0 ;
5570 PyObject *swig_obj[1] ;
5571
5572 if (!args) SWIG_fail;
5573 swig_obj[0] = args;
5574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5575 if (!SWIG_IsOK(res1)) {
5576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5577 }
5578 arg1 = reinterpret_cast< wxBrush * >(argp1);
5579 {
5580 PyThreadState* __tstate = wxPyBeginAllowThreads();
5581 result = (bool)((wxBrush const *)arg1)->IsHatch();
5582 wxPyEndAllowThreads(__tstate);
5583 if (PyErr_Occurred()) SWIG_fail;
5584 }
5585 {
5586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5587 }
5588 return resultobj;
5589 fail:
5590 return NULL;
5591 }
5592
5593
5594 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5595 PyObject *resultobj = 0;
5596 wxBrush *arg1 = (wxBrush *) 0 ;
5597 bool result;
5598 void *argp1 = 0 ;
5599 int res1 = 0 ;
5600 PyObject *swig_obj[1] ;
5601
5602 if (!args) SWIG_fail;
5603 swig_obj[0] = args;
5604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5605 if (!SWIG_IsOK(res1)) {
5606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5607 }
5608 arg1 = reinterpret_cast< wxBrush * >(argp1);
5609 {
5610 PyThreadState* __tstate = wxPyBeginAllowThreads();
5611 result = (bool)(arg1)->Ok();
5612 wxPyEndAllowThreads(__tstate);
5613 if (PyErr_Occurred()) SWIG_fail;
5614 }
5615 {
5616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5617 }
5618 return resultobj;
5619 fail:
5620 return NULL;
5621 }
5622
5623
5624 SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5625 PyObject *resultobj = 0;
5626 wxBrush *arg1 = (wxBrush *) 0 ;
5627 short result;
5628 void *argp1 = 0 ;
5629 int res1 = 0 ;
5630 PyObject *swig_obj[1] ;
5631
5632 if (!args) SWIG_fail;
5633 swig_obj[0] = args;
5634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5635 if (!SWIG_IsOK(res1)) {
5636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5637 }
5638 arg1 = reinterpret_cast< wxBrush * >(argp1);
5639 {
5640 PyThreadState* __tstate = wxPyBeginAllowThreads();
5641 result = (short)(arg1)->MacGetTheme();
5642 wxPyEndAllowThreads(__tstate);
5643 if (PyErr_Occurred()) SWIG_fail;
5644 }
5645 resultobj = SWIG_From_short(static_cast< short >(result));
5646 return resultobj;
5647 fail:
5648 return NULL;
5649 }
5650
5651
5652 SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5653 PyObject *resultobj = 0;
5654 wxBrush *arg1 = (wxBrush *) 0 ;
5655 short arg2 ;
5656 void *argp1 = 0 ;
5657 int res1 = 0 ;
5658 short val2 ;
5659 int ecode2 = 0 ;
5660 PyObject * obj0 = 0 ;
5661 PyObject * obj1 = 0 ;
5662 char * kwnames[] = {
5663 (char *) "self",(char *) "macThemeBrush", NULL
5664 };
5665
5666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
5667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5668 if (!SWIG_IsOK(res1)) {
5669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5670 }
5671 arg1 = reinterpret_cast< wxBrush * >(argp1);
5672 ecode2 = SWIG_AsVal_short(obj1, &val2);
5673 if (!SWIG_IsOK(ecode2)) {
5674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
5675 }
5676 arg2 = static_cast< short >(val2);
5677 {
5678 PyThreadState* __tstate = wxPyBeginAllowThreads();
5679 (arg1)->MacSetTheme(arg2);
5680 wxPyEndAllowThreads(__tstate);
5681 if (PyErr_Occurred()) SWIG_fail;
5682 }
5683 resultobj = SWIG_Py_Void();
5684 return resultobj;
5685 fail:
5686 return NULL;
5687 }
5688
5689
5690 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5691 PyObject *obj;
5692 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5693 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5694 return SWIG_Py_Void();
5695 }
5696
5697 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5698 return SWIG_Python_InitShadowInstance(args);
5699 }
5700
5701 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5702 PyObject *resultobj = 0;
5703 wxString *arg1 = 0 ;
5704 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5705 wxBitmap *result = 0 ;
5706 bool temp1 = false ;
5707 int val2 ;
5708 int ecode2 = 0 ;
5709 PyObject * obj0 = 0 ;
5710 PyObject * obj1 = 0 ;
5711 char * kwnames[] = {
5712 (char *) "name",(char *) "type", NULL
5713 };
5714
5715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5716 {
5717 arg1 = wxString_in_helper(obj0);
5718 if (arg1 == NULL) SWIG_fail;
5719 temp1 = true;
5720 }
5721 if (obj1) {
5722 ecode2 = SWIG_AsVal_int(obj1, &val2);
5723 if (!SWIG_IsOK(ecode2)) {
5724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5725 }
5726 arg2 = static_cast< wxBitmapType >(val2);
5727 }
5728 {
5729 if (!wxPyCheckForApp()) SWIG_fail;
5730 PyThreadState* __tstate = wxPyBeginAllowThreads();
5731 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5732 wxPyEndAllowThreads(__tstate);
5733 if (PyErr_Occurred()) SWIG_fail;
5734 }
5735 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5736 {
5737 if (temp1)
5738 delete arg1;
5739 }
5740 return resultobj;
5741 fail:
5742 {
5743 if (temp1)
5744 delete arg1;
5745 }
5746 return NULL;
5747 }
5748
5749
5750 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5751 PyObject *resultobj = 0;
5752 wxBitmap *arg1 = (wxBitmap *) 0 ;
5753 void *argp1 = 0 ;
5754 int res1 = 0 ;
5755 PyObject *swig_obj[1] ;
5756
5757 if (!args) SWIG_fail;
5758 swig_obj[0] = args;
5759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5760 if (!SWIG_IsOK(res1)) {
5761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5762 }
5763 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5764 {
5765 delete arg1;
5766
5767 if (PyErr_Occurred()) SWIG_fail;
5768 }
5769 resultobj = SWIG_Py_Void();
5770 return resultobj;
5771 fail:
5772 return NULL;
5773 }
5774
5775
5776 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5777 PyObject *resultobj = 0;
5778 int arg1 ;
5779 int arg2 ;
5780 int arg3 = (int) -1 ;
5781 wxBitmap *result = 0 ;
5782 int val1 ;
5783 int ecode1 = 0 ;
5784 int val2 ;
5785 int ecode2 = 0 ;
5786 int val3 ;
5787 int ecode3 = 0 ;
5788 PyObject * obj0 = 0 ;
5789 PyObject * obj1 = 0 ;
5790 PyObject * obj2 = 0 ;
5791 char * kwnames[] = {
5792 (char *) "width",(char *) "height",(char *) "depth", NULL
5793 };
5794
5795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5796 ecode1 = SWIG_AsVal_int(obj0, &val1);
5797 if (!SWIG_IsOK(ecode1)) {
5798 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5799 }
5800 arg1 = static_cast< int >(val1);
5801 ecode2 = SWIG_AsVal_int(obj1, &val2);
5802 if (!SWIG_IsOK(ecode2)) {
5803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5804 }
5805 arg2 = static_cast< int >(val2);
5806 if (obj2) {
5807 ecode3 = SWIG_AsVal_int(obj2, &val3);
5808 if (!SWIG_IsOK(ecode3)) {
5809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5810 }
5811 arg3 = static_cast< int >(val3);
5812 }
5813 {
5814 if (!wxPyCheckForApp()) SWIG_fail;
5815 PyThreadState* __tstate = wxPyBeginAllowThreads();
5816 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5817 wxPyEndAllowThreads(__tstate);
5818 if (PyErr_Occurred()) SWIG_fail;
5819 }
5820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5821 return resultobj;
5822 fail:
5823 return NULL;
5824 }
5825
5826
5827 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5828 PyObject *resultobj = 0;
5829 wxIcon *arg1 = 0 ;
5830 wxBitmap *result = 0 ;
5831 void *argp1 = 0 ;
5832 int res1 = 0 ;
5833 PyObject * obj0 = 0 ;
5834 char * kwnames[] = {
5835 (char *) "icon", NULL
5836 };
5837
5838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5839 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5840 if (!SWIG_IsOK(res1)) {
5841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5842 }
5843 if (!argp1) {
5844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5845 }
5846 arg1 = reinterpret_cast< wxIcon * >(argp1);
5847 {
5848 if (!wxPyCheckForApp()) SWIG_fail;
5849 PyThreadState* __tstate = wxPyBeginAllowThreads();
5850 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5851 wxPyEndAllowThreads(__tstate);
5852 if (PyErr_Occurred()) SWIG_fail;
5853 }
5854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5855 return resultobj;
5856 fail:
5857 return NULL;
5858 }
5859
5860
5861 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5862 PyObject *resultobj = 0;
5863 wxImage *arg1 = 0 ;
5864 int arg2 = (int) -1 ;
5865 wxBitmap *result = 0 ;
5866 void *argp1 = 0 ;
5867 int res1 = 0 ;
5868 int val2 ;
5869 int ecode2 = 0 ;
5870 PyObject * obj0 = 0 ;
5871 PyObject * obj1 = 0 ;
5872 char * kwnames[] = {
5873 (char *) "image",(char *) "depth", NULL
5874 };
5875
5876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5877 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5878 if (!SWIG_IsOK(res1)) {
5879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5880 }
5881 if (!argp1) {
5882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5883 }
5884 arg1 = reinterpret_cast< wxImage * >(argp1);
5885 if (obj1) {
5886 ecode2 = SWIG_AsVal_int(obj1, &val2);
5887 if (!SWIG_IsOK(ecode2)) {
5888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5889 }
5890 arg2 = static_cast< int >(val2);
5891 }
5892 {
5893 if (!wxPyCheckForApp()) SWIG_fail;
5894 PyThreadState* __tstate = wxPyBeginAllowThreads();
5895 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5896 wxPyEndAllowThreads(__tstate);
5897 if (PyErr_Occurred()) SWIG_fail;
5898 }
5899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5900 return resultobj;
5901 fail:
5902 return NULL;
5903 }
5904
5905
5906 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5907 PyObject *resultobj = 0;
5908 PyObject *arg1 = (PyObject *) 0 ;
5909 wxBitmap *result = 0 ;
5910 PyObject * obj0 = 0 ;
5911 char * kwnames[] = {
5912 (char *) "listOfStrings", NULL
5913 };
5914
5915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5916 arg1 = obj0;
5917 {
5918 if (!wxPyCheckForApp()) SWIG_fail;
5919 PyThreadState* __tstate = wxPyBeginAllowThreads();
5920 result = (wxBitmap *)new_wxBitmap(arg1);
5921 wxPyEndAllowThreads(__tstate);
5922 if (PyErr_Occurred()) SWIG_fail;
5923 }
5924 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5925 return resultobj;
5926 fail:
5927 return NULL;
5928 }
5929
5930
5931 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5932 PyObject *resultobj = 0;
5933 PyObject *arg1 = (PyObject *) 0 ;
5934 int arg2 ;
5935 int arg3 ;
5936 int arg4 = (int) 1 ;
5937 wxBitmap *result = 0 ;
5938 int val2 ;
5939 int ecode2 = 0 ;
5940 int val3 ;
5941 int ecode3 = 0 ;
5942 int val4 ;
5943 int ecode4 = 0 ;
5944 PyObject * obj0 = 0 ;
5945 PyObject * obj1 = 0 ;
5946 PyObject * obj2 = 0 ;
5947 PyObject * obj3 = 0 ;
5948 char * kwnames[] = {
5949 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5950 };
5951
5952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5953 arg1 = obj0;
5954 ecode2 = SWIG_AsVal_int(obj1, &val2);
5955 if (!SWIG_IsOK(ecode2)) {
5956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5957 }
5958 arg2 = static_cast< int >(val2);
5959 ecode3 = SWIG_AsVal_int(obj2, &val3);
5960 if (!SWIG_IsOK(ecode3)) {
5961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5962 }
5963 arg3 = static_cast< int >(val3);
5964 if (obj3) {
5965 ecode4 = SWIG_AsVal_int(obj3, &val4);
5966 if (!SWIG_IsOK(ecode4)) {
5967 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5968 }
5969 arg4 = static_cast< int >(val4);
5970 }
5971 {
5972 if (!wxPyCheckForApp()) SWIG_fail;
5973 PyThreadState* __tstate = wxPyBeginAllowThreads();
5974 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5975 wxPyEndAllowThreads(__tstate);
5976 if (PyErr_Occurred()) SWIG_fail;
5977 }
5978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5979 return resultobj;
5980 fail:
5981 return NULL;
5982 }
5983
5984
5985 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5986 PyObject *resultobj = 0;
5987 wxBitmap *arg1 = (wxBitmap *) 0 ;
5988 bool result;
5989 void *argp1 = 0 ;
5990 int res1 = 0 ;
5991 PyObject *swig_obj[1] ;
5992
5993 if (!args) SWIG_fail;
5994 swig_obj[0] = args;
5995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5996 if (!SWIG_IsOK(res1)) {
5997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5998 }
5999 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6000 {
6001 result = (bool)(arg1)->Ok();
6002 if (PyErr_Occurred()) SWIG_fail;
6003 }
6004 {
6005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6006 }
6007 return resultobj;
6008 fail:
6009 return NULL;
6010 }
6011
6012
6013 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6014 PyObject *resultobj = 0;
6015 wxBitmap *arg1 = (wxBitmap *) 0 ;
6016 int result;
6017 void *argp1 = 0 ;
6018 int res1 = 0 ;
6019 PyObject *swig_obj[1] ;
6020
6021 if (!args) SWIG_fail;
6022 swig_obj[0] = args;
6023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6024 if (!SWIG_IsOK(res1)) {
6025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6026 }
6027 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6028 {
6029 result = (int)(arg1)->GetWidth();
6030 if (PyErr_Occurred()) SWIG_fail;
6031 }
6032 resultobj = SWIG_From_int(static_cast< int >(result));
6033 return resultobj;
6034 fail:
6035 return NULL;
6036 }
6037
6038
6039 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6040 PyObject *resultobj = 0;
6041 wxBitmap *arg1 = (wxBitmap *) 0 ;
6042 int result;
6043 void *argp1 = 0 ;
6044 int res1 = 0 ;
6045 PyObject *swig_obj[1] ;
6046
6047 if (!args) SWIG_fail;
6048 swig_obj[0] = args;
6049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6050 if (!SWIG_IsOK(res1)) {
6051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6052 }
6053 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6054 {
6055 result = (int)(arg1)->GetHeight();
6056 if (PyErr_Occurred()) SWIG_fail;
6057 }
6058 resultobj = SWIG_From_int(static_cast< int >(result));
6059 return resultobj;
6060 fail:
6061 return NULL;
6062 }
6063
6064
6065 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6066 PyObject *resultobj = 0;
6067 wxBitmap *arg1 = (wxBitmap *) 0 ;
6068 int result;
6069 void *argp1 = 0 ;
6070 int res1 = 0 ;
6071 PyObject *swig_obj[1] ;
6072
6073 if (!args) SWIG_fail;
6074 swig_obj[0] = args;
6075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6076 if (!SWIG_IsOK(res1)) {
6077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6078 }
6079 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6080 {
6081 result = (int)(arg1)->GetDepth();
6082 if (PyErr_Occurred()) SWIG_fail;
6083 }
6084 resultobj = SWIG_From_int(static_cast< int >(result));
6085 return resultobj;
6086 fail:
6087 return NULL;
6088 }
6089
6090
6091 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6092 PyObject *resultobj = 0;
6093 wxBitmap *arg1 = (wxBitmap *) 0 ;
6094 wxSize result;
6095 void *argp1 = 0 ;
6096 int res1 = 0 ;
6097 PyObject *swig_obj[1] ;
6098
6099 if (!args) SWIG_fail;
6100 swig_obj[0] = args;
6101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6102 if (!SWIG_IsOK(res1)) {
6103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6104 }
6105 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6106 {
6107 result = wxBitmap_GetSize(arg1);
6108 if (PyErr_Occurred()) SWIG_fail;
6109 }
6110 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6111 return resultobj;
6112 fail:
6113 return NULL;
6114 }
6115
6116
6117 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6118 PyObject *resultobj = 0;
6119 wxBitmap *arg1 = (wxBitmap *) 0 ;
6120 SwigValueWrapper<wxImage > result;
6121 void *argp1 = 0 ;
6122 int res1 = 0 ;
6123 PyObject *swig_obj[1] ;
6124
6125 if (!args) SWIG_fail;
6126 swig_obj[0] = args;
6127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6128 if (!SWIG_IsOK(res1)) {
6129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6130 }
6131 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6132 {
6133 result = ((wxBitmap const *)arg1)->ConvertToImage();
6134 if (PyErr_Occurred()) SWIG_fail;
6135 }
6136 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6137 return resultobj;
6138 fail:
6139 return NULL;
6140 }
6141
6142
6143 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6144 PyObject *resultobj = 0;
6145 wxBitmap *arg1 = (wxBitmap *) 0 ;
6146 wxMask *result = 0 ;
6147 void *argp1 = 0 ;
6148 int res1 = 0 ;
6149 PyObject *swig_obj[1] ;
6150
6151 if (!args) SWIG_fail;
6152 swig_obj[0] = args;
6153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6154 if (!SWIG_IsOK(res1)) {
6155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6156 }
6157 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6158 {
6159 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6160 if (PyErr_Occurred()) SWIG_fail;
6161 }
6162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6163 return resultobj;
6164 fail:
6165 return NULL;
6166 }
6167
6168
6169 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6170 PyObject *resultobj = 0;
6171 wxBitmap *arg1 = (wxBitmap *) 0 ;
6172 wxMask *arg2 = (wxMask *) 0 ;
6173 void *argp1 = 0 ;
6174 int res1 = 0 ;
6175 int res2 = 0 ;
6176 PyObject * obj0 = 0 ;
6177 PyObject * obj1 = 0 ;
6178 char * kwnames[] = {
6179 (char *) "self",(char *) "mask", NULL
6180 };
6181
6182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6184 if (!SWIG_IsOK(res1)) {
6185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6186 }
6187 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6188 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6189 if (!SWIG_IsOK(res2)) {
6190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6191 }
6192 {
6193 (arg1)->SetMask(arg2);
6194 if (PyErr_Occurred()) SWIG_fail;
6195 }
6196 resultobj = SWIG_Py_Void();
6197 return resultobj;
6198 fail:
6199 return NULL;
6200 }
6201
6202
6203 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6204 PyObject *resultobj = 0;
6205 wxBitmap *arg1 = (wxBitmap *) 0 ;
6206 wxColour *arg2 = 0 ;
6207 void *argp1 = 0 ;
6208 int res1 = 0 ;
6209 wxColour temp2 ;
6210 PyObject * obj0 = 0 ;
6211 PyObject * obj1 = 0 ;
6212 char * kwnames[] = {
6213 (char *) "self",(char *) "colour", NULL
6214 };
6215
6216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6218 if (!SWIG_IsOK(res1)) {
6219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6220 }
6221 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6222 {
6223 arg2 = &temp2;
6224 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6225 }
6226 {
6227 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6228 if (PyErr_Occurred()) SWIG_fail;
6229 }
6230 resultobj = SWIG_Py_Void();
6231 return resultobj;
6232 fail:
6233 return NULL;
6234 }
6235
6236
6237 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6238 PyObject *resultobj = 0;
6239 wxBitmap *arg1 = (wxBitmap *) 0 ;
6240 wxRect *arg2 = 0 ;
6241 SwigValueWrapper<wxBitmap > result;
6242 void *argp1 = 0 ;
6243 int res1 = 0 ;
6244 wxRect temp2 ;
6245 PyObject * obj0 = 0 ;
6246 PyObject * obj1 = 0 ;
6247 char * kwnames[] = {
6248 (char *) "self",(char *) "rect", NULL
6249 };
6250
6251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6253 if (!SWIG_IsOK(res1)) {
6254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6255 }
6256 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6257 {
6258 arg2 = &temp2;
6259 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6260 }
6261 {
6262 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6263 if (PyErr_Occurred()) SWIG_fail;
6264 }
6265 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6266 return resultobj;
6267 fail:
6268 return NULL;
6269 }
6270
6271
6272 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6273 PyObject *resultobj = 0;
6274 wxBitmap *arg1 = (wxBitmap *) 0 ;
6275 wxString *arg2 = 0 ;
6276 wxBitmapType arg3 ;
6277 wxPalette *arg4 = (wxPalette *) NULL ;
6278 bool result;
6279 void *argp1 = 0 ;
6280 int res1 = 0 ;
6281 bool temp2 = false ;
6282 int val3 ;
6283 int ecode3 = 0 ;
6284 void *argp4 = 0 ;
6285 int res4 = 0 ;
6286 PyObject * obj0 = 0 ;
6287 PyObject * obj1 = 0 ;
6288 PyObject * obj2 = 0 ;
6289 PyObject * obj3 = 0 ;
6290 char * kwnames[] = {
6291 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6292 };
6293
6294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6296 if (!SWIG_IsOK(res1)) {
6297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6298 }
6299 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6300 {
6301 arg2 = wxString_in_helper(obj1);
6302 if (arg2 == NULL) SWIG_fail;
6303 temp2 = true;
6304 }
6305 ecode3 = SWIG_AsVal_int(obj2, &val3);
6306 if (!SWIG_IsOK(ecode3)) {
6307 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6308 }
6309 arg3 = static_cast< wxBitmapType >(val3);
6310 if (obj3) {
6311 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6312 if (!SWIG_IsOK(res4)) {
6313 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6314 }
6315 arg4 = reinterpret_cast< wxPalette * >(argp4);
6316 }
6317 {
6318 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6319 if (PyErr_Occurred()) SWIG_fail;
6320 }
6321 {
6322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6323 }
6324 {
6325 if (temp2)
6326 delete arg2;
6327 }
6328 return resultobj;
6329 fail:
6330 {
6331 if (temp2)
6332 delete arg2;
6333 }
6334 return NULL;
6335 }
6336
6337
6338 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6339 PyObject *resultobj = 0;
6340 wxBitmap *arg1 = (wxBitmap *) 0 ;
6341 wxString *arg2 = 0 ;
6342 wxBitmapType arg3 ;
6343 bool result;
6344 void *argp1 = 0 ;
6345 int res1 = 0 ;
6346 bool temp2 = false ;
6347 int val3 ;
6348 int ecode3 = 0 ;
6349 PyObject * obj0 = 0 ;
6350 PyObject * obj1 = 0 ;
6351 PyObject * obj2 = 0 ;
6352 char * kwnames[] = {
6353 (char *) "self",(char *) "name",(char *) "type", NULL
6354 };
6355
6356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6358 if (!SWIG_IsOK(res1)) {
6359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6360 }
6361 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6362 {
6363 arg2 = wxString_in_helper(obj1);
6364 if (arg2 == NULL) SWIG_fail;
6365 temp2 = true;
6366 }
6367 ecode3 = SWIG_AsVal_int(obj2, &val3);
6368 if (!SWIG_IsOK(ecode3)) {
6369 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6370 }
6371 arg3 = static_cast< wxBitmapType >(val3);
6372 {
6373 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6374 if (PyErr_Occurred()) SWIG_fail;
6375 }
6376 {
6377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6378 }
6379 {
6380 if (temp2)
6381 delete arg2;
6382 }
6383 return resultobj;
6384 fail:
6385 {
6386 if (temp2)
6387 delete arg2;
6388 }
6389 return NULL;
6390 }
6391
6392
6393 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6394 PyObject *resultobj = 0;
6395 wxBitmap *arg1 = (wxBitmap *) 0 ;
6396 wxPalette *result = 0 ;
6397 void *argp1 = 0 ;
6398 int res1 = 0 ;
6399 PyObject *swig_obj[1] ;
6400
6401 if (!args) SWIG_fail;
6402 swig_obj[0] = args;
6403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6404 if (!SWIG_IsOK(res1)) {
6405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6406 }
6407 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6408 {
6409 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6410 if (PyErr_Occurred()) SWIG_fail;
6411 }
6412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6413 return resultobj;
6414 fail:
6415 return NULL;
6416 }
6417
6418
6419 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6420 PyObject *resultobj = 0;
6421 wxBitmap *arg1 = (wxBitmap *) 0 ;
6422 wxIcon *arg2 = 0 ;
6423 bool result;
6424 void *argp1 = 0 ;
6425 int res1 = 0 ;
6426 void *argp2 = 0 ;
6427 int res2 = 0 ;
6428 PyObject * obj0 = 0 ;
6429 PyObject * obj1 = 0 ;
6430 char * kwnames[] = {
6431 (char *) "self",(char *) "icon", NULL
6432 };
6433
6434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6436 if (!SWIG_IsOK(res1)) {
6437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6438 }
6439 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6440 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6441 if (!SWIG_IsOK(res2)) {
6442 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6443 }
6444 if (!argp2) {
6445 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6446 }
6447 arg2 = reinterpret_cast< wxIcon * >(argp2);
6448 {
6449 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
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 *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6462 PyObject *resultobj = 0;
6463 wxBitmap *arg1 = (wxBitmap *) 0 ;
6464 int arg2 ;
6465 void *argp1 = 0 ;
6466 int res1 = 0 ;
6467 int val2 ;
6468 int ecode2 = 0 ;
6469 PyObject * obj0 = 0 ;
6470 PyObject * obj1 = 0 ;
6471 char * kwnames[] = {
6472 (char *) "self",(char *) "height", NULL
6473 };
6474
6475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6477 if (!SWIG_IsOK(res1)) {
6478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6479 }
6480 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6481 ecode2 = SWIG_AsVal_int(obj1, &val2);
6482 if (!SWIG_IsOK(ecode2)) {
6483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6484 }
6485 arg2 = static_cast< int >(val2);
6486 {
6487 (arg1)->SetHeight(arg2);
6488 if (PyErr_Occurred()) SWIG_fail;
6489 }
6490 resultobj = SWIG_Py_Void();
6491 return resultobj;
6492 fail:
6493 return NULL;
6494 }
6495
6496
6497 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6498 PyObject *resultobj = 0;
6499 wxBitmap *arg1 = (wxBitmap *) 0 ;
6500 int arg2 ;
6501 void *argp1 = 0 ;
6502 int res1 = 0 ;
6503 int val2 ;
6504 int ecode2 = 0 ;
6505 PyObject * obj0 = 0 ;
6506 PyObject * obj1 = 0 ;
6507 char * kwnames[] = {
6508 (char *) "self",(char *) "width", NULL
6509 };
6510
6511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6513 if (!SWIG_IsOK(res1)) {
6514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6515 }
6516 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6517 ecode2 = SWIG_AsVal_int(obj1, &val2);
6518 if (!SWIG_IsOK(ecode2)) {
6519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6520 }
6521 arg2 = static_cast< int >(val2);
6522 {
6523 (arg1)->SetWidth(arg2);
6524 if (PyErr_Occurred()) SWIG_fail;
6525 }
6526 resultobj = SWIG_Py_Void();
6527 return resultobj;
6528 fail:
6529 return NULL;
6530 }
6531
6532
6533 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6534 PyObject *resultobj = 0;
6535 wxBitmap *arg1 = (wxBitmap *) 0 ;
6536 int arg2 ;
6537 void *argp1 = 0 ;
6538 int res1 = 0 ;
6539 int val2 ;
6540 int ecode2 = 0 ;
6541 PyObject * obj0 = 0 ;
6542 PyObject * obj1 = 0 ;
6543 char * kwnames[] = {
6544 (char *) "self",(char *) "depth", NULL
6545 };
6546
6547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6549 if (!SWIG_IsOK(res1)) {
6550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6551 }
6552 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6553 ecode2 = SWIG_AsVal_int(obj1, &val2);
6554 if (!SWIG_IsOK(ecode2)) {
6555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6556 }
6557 arg2 = static_cast< int >(val2);
6558 {
6559 (arg1)->SetDepth(arg2);
6560 if (PyErr_Occurred()) SWIG_fail;
6561 }
6562 resultobj = SWIG_Py_Void();
6563 return resultobj;
6564 fail:
6565 return NULL;
6566 }
6567
6568
6569 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6570 PyObject *resultobj = 0;
6571 wxBitmap *arg1 = (wxBitmap *) 0 ;
6572 wxSize *arg2 = 0 ;
6573 void *argp1 = 0 ;
6574 int res1 = 0 ;
6575 wxSize temp2 ;
6576 PyObject * obj0 = 0 ;
6577 PyObject * obj1 = 0 ;
6578 char * kwnames[] = {
6579 (char *) "self",(char *) "size", NULL
6580 };
6581
6582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6584 if (!SWIG_IsOK(res1)) {
6585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6586 }
6587 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6588 {
6589 arg2 = &temp2;
6590 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6591 }
6592 {
6593 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6594 if (PyErr_Occurred()) SWIG_fail;
6595 }
6596 resultobj = SWIG_Py_Void();
6597 return resultobj;
6598 fail:
6599 return NULL;
6600 }
6601
6602
6603 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6604 PyObject *resultobj = 0;
6605 wxBitmap *arg1 = (wxBitmap *) 0 ;
6606 wxBitmap *arg2 = (wxBitmap *) 0 ;
6607 bool result;
6608 void *argp1 = 0 ;
6609 int res1 = 0 ;
6610 void *argp2 = 0 ;
6611 int res2 = 0 ;
6612 PyObject * obj0 = 0 ;
6613 PyObject * obj1 = 0 ;
6614 char * kwnames[] = {
6615 (char *) "self",(char *) "other", NULL
6616 };
6617
6618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6620 if (!SWIG_IsOK(res1)) {
6621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6622 }
6623 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6624 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6625 if (!SWIG_IsOK(res2)) {
6626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6627 }
6628 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6629 {
6630 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6631 if (PyErr_Occurred()) SWIG_fail;
6632 }
6633 {
6634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6635 }
6636 return resultobj;
6637 fail:
6638 return NULL;
6639 }
6640
6641
6642 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6643 PyObject *resultobj = 0;
6644 wxBitmap *arg1 = (wxBitmap *) 0 ;
6645 wxBitmap *arg2 = (wxBitmap *) 0 ;
6646 bool result;
6647 void *argp1 = 0 ;
6648 int res1 = 0 ;
6649 void *argp2 = 0 ;
6650 int res2 = 0 ;
6651 PyObject * obj0 = 0 ;
6652 PyObject * obj1 = 0 ;
6653 char * kwnames[] = {
6654 (char *) "self",(char *) "other", NULL
6655 };
6656
6657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6659 if (!SWIG_IsOK(res1)) {
6660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6661 }
6662 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6663 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6664 if (!SWIG_IsOK(res2)) {
6665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6666 }
6667 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6668 {
6669 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6670 if (PyErr_Occurred()) SWIG_fail;
6671 }
6672 {
6673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6674 }
6675 return resultobj;
6676 fail:
6677 return NULL;
6678 }
6679
6680
6681 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6682 PyObject *obj;
6683 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6684 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6685 return SWIG_Py_Void();
6686 }
6687
6688 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6689 return SWIG_Python_InitShadowInstance(args);
6690 }
6691
6692 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6693 PyObject *resultobj = 0;
6694 int arg1 ;
6695 int arg2 ;
6696 buffer arg3 ;
6697 int arg4 ;
6698 buffer arg5 ;
6699 int arg6 ;
6700 wxBitmap *result = 0 ;
6701 int val1 ;
6702 int ecode1 = 0 ;
6703 int val2 ;
6704 int ecode2 = 0 ;
6705 PyObject * obj0 = 0 ;
6706 PyObject * obj1 = 0 ;
6707 PyObject * obj2 = 0 ;
6708 PyObject * obj3 = 0 ;
6709 char * kwnames[] = {
6710 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6711 };
6712
6713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6714 ecode1 = SWIG_AsVal_int(obj0, &val1);
6715 if (!SWIG_IsOK(ecode1)) {
6716 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6717 }
6718 arg1 = static_cast< int >(val1);
6719 ecode2 = SWIG_AsVal_int(obj1, &val2);
6720 if (!SWIG_IsOK(ecode2)) {
6721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6722 }
6723 arg2 = static_cast< int >(val2);
6724 {
6725 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &arg4) == -1) SWIG_fail;
6726 }
6727 {
6728 if (obj3 != Py_None) {
6729 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &arg6) == -1) SWIG_fail;
6730 }
6731 }
6732 {
6733 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6734 if (PyErr_Occurred()) SWIG_fail;
6735 }
6736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6737 return resultobj;
6738 fail:
6739 return NULL;
6740 }
6741
6742
6743 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6744 PyObject *resultobj = 0;
6745 int arg1 ;
6746 int arg2 ;
6747 buffer arg3 ;
6748 int arg4 ;
6749 wxBitmap *result = 0 ;
6750 int val1 ;
6751 int ecode1 = 0 ;
6752 int val2 ;
6753 int ecode2 = 0 ;
6754 PyObject * obj0 = 0 ;
6755 PyObject * obj1 = 0 ;
6756 PyObject * obj2 = 0 ;
6757 char * kwnames[] = {
6758 (char *) "width",(char *) "height",(char *) "data", NULL
6759 };
6760
6761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6762 ecode1 = SWIG_AsVal_int(obj0, &val1);
6763 if (!SWIG_IsOK(ecode1)) {
6764 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6765 }
6766 arg1 = static_cast< int >(val1);
6767 ecode2 = SWIG_AsVal_int(obj1, &val2);
6768 if (!SWIG_IsOK(ecode2)) {
6769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6770 }
6771 arg2 = static_cast< int >(val2);
6772 {
6773 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &arg4) == -1) SWIG_fail;
6774 }
6775 {
6776 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6777 if (PyErr_Occurred()) SWIG_fail;
6778 }
6779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6780 return resultobj;
6781 fail:
6782 return NULL;
6783 }
6784
6785
6786 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6787 PyObject *resultobj = 0;
6788 int arg1 ;
6789 int arg2 ;
6790 buffer arg3 ;
6791 int arg4 ;
6792 wxBitmap *result = 0 ;
6793 int val1 ;
6794 int ecode1 = 0 ;
6795 int val2 ;
6796 int ecode2 = 0 ;
6797 PyObject * obj0 = 0 ;
6798 PyObject * obj1 = 0 ;
6799 PyObject * obj2 = 0 ;
6800 char * kwnames[] = {
6801 (char *) "width",(char *) "height",(char *) "data", NULL
6802 };
6803
6804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6805 ecode1 = SWIG_AsVal_int(obj0, &val1);
6806 if (!SWIG_IsOK(ecode1)) {
6807 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6808 }
6809 arg1 = static_cast< int >(val1);
6810 ecode2 = SWIG_AsVal_int(obj1, &val2);
6811 if (!SWIG_IsOK(ecode2)) {
6812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6813 }
6814 arg2 = static_cast< int >(val2);
6815 {
6816 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &arg4) == -1) SWIG_fail;
6817 }
6818 {
6819 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6820 if (PyErr_Occurred()) SWIG_fail;
6821 }
6822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6823 return resultobj;
6824 fail:
6825 return NULL;
6826 }
6827
6828
6829 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6830 PyObject *resultobj = 0;
6831 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6832 wxPoint result;
6833 void *argp1 = 0 ;
6834 int res1 = 0 ;
6835 PyObject *swig_obj[1] ;
6836
6837 if (!args) SWIG_fail;
6838 swig_obj[0] = args;
6839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6840 if (!SWIG_IsOK(res1)) {
6841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6842 }
6843 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6844 {
6845 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
6846 if (PyErr_Occurred()) SWIG_fail;
6847 }
6848 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6849 return resultobj;
6850 fail:
6851 return NULL;
6852 }
6853
6854
6855 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6856 PyObject *resultobj = 0;
6857 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6858 int result;
6859 void *argp1 = 0 ;
6860 int res1 = 0 ;
6861 PyObject *swig_obj[1] ;
6862
6863 if (!args) SWIG_fail;
6864 swig_obj[0] = args;
6865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6866 if (!SWIG_IsOK(res1)) {
6867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6868 }
6869 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6870 {
6871 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
6872 if (PyErr_Occurred()) SWIG_fail;
6873 }
6874 resultobj = SWIG_From_int(static_cast< int >(result));
6875 return resultobj;
6876 fail:
6877 return NULL;
6878 }
6879
6880
6881 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6882 PyObject *resultobj = 0;
6883 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6884 int result;
6885 void *argp1 = 0 ;
6886 int res1 = 0 ;
6887 PyObject *swig_obj[1] ;
6888
6889 if (!args) SWIG_fail;
6890 swig_obj[0] = args;
6891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6892 if (!SWIG_IsOK(res1)) {
6893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6894 }
6895 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6896 {
6897 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
6898 if (PyErr_Occurred()) SWIG_fail;
6899 }
6900 resultobj = SWIG_From_int(static_cast< int >(result));
6901 return resultobj;
6902 fail:
6903 return NULL;
6904 }
6905
6906
6907 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6908 PyObject *resultobj = 0;
6909 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6910 wxSize result;
6911 void *argp1 = 0 ;
6912 int res1 = 0 ;
6913 PyObject *swig_obj[1] ;
6914
6915 if (!args) SWIG_fail;
6916 swig_obj[0] = args;
6917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6918 if (!SWIG_IsOK(res1)) {
6919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6920 }
6921 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6922 {
6923 result = ((wxPixelDataBase const *)arg1)->GetSize();
6924 if (PyErr_Occurred()) SWIG_fail;
6925 }
6926 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6927 return resultobj;
6928 fail:
6929 return NULL;
6930 }
6931
6932
6933 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6934 PyObject *resultobj = 0;
6935 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6936 int result;
6937 void *argp1 = 0 ;
6938 int res1 = 0 ;
6939 PyObject *swig_obj[1] ;
6940
6941 if (!args) SWIG_fail;
6942 swig_obj[0] = args;
6943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6944 if (!SWIG_IsOK(res1)) {
6945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6946 }
6947 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6948 {
6949 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
6950 if (PyErr_Occurred()) SWIG_fail;
6951 }
6952 resultobj = SWIG_From_int(static_cast< int >(result));
6953 return resultobj;
6954 fail:
6955 return NULL;
6956 }
6957
6958
6959 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6960 PyObject *obj;
6961 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6962 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
6963 return SWIG_Py_Void();
6964 }
6965
6966 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
6967 PyObject *resultobj = 0;
6968 wxBitmap *arg1 = 0 ;
6969 wxNativePixelData *result = 0 ;
6970 void *argp1 = 0 ;
6971 int res1 = 0 ;
6972
6973 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
6974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
6975 if (!SWIG_IsOK(res1)) {
6976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6977 }
6978 if (!argp1) {
6979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6980 }
6981 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6982 {
6983 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
6984 if (PyErr_Occurred()) SWIG_fail;
6985 }
6986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
6987 return resultobj;
6988 fail:
6989 return NULL;
6990 }
6991
6992
6993 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
6994 PyObject *resultobj = 0;
6995 wxBitmap *arg1 = 0 ;
6996 wxRect *arg2 = 0 ;
6997 wxNativePixelData *result = 0 ;
6998 void *argp1 = 0 ;
6999 int res1 = 0 ;
7000 wxRect temp2 ;
7001
7002 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7004 if (!SWIG_IsOK(res1)) {
7005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7006 }
7007 if (!argp1) {
7008 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7009 }
7010 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7011 {
7012 arg2 = &temp2;
7013 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7014 }
7015 {
7016 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7017 if (PyErr_Occurred()) SWIG_fail;
7018 }
7019 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7020 return resultobj;
7021 fail:
7022 return NULL;
7023 }
7024
7025
7026 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7027 PyObject *resultobj = 0;
7028 wxBitmap *arg1 = 0 ;
7029 wxPoint *arg2 = 0 ;
7030 wxSize *arg3 = 0 ;
7031 wxNativePixelData *result = 0 ;
7032 void *argp1 = 0 ;
7033 int res1 = 0 ;
7034 wxPoint temp2 ;
7035 wxSize temp3 ;
7036
7037 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7039 if (!SWIG_IsOK(res1)) {
7040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7041 }
7042 if (!argp1) {
7043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7044 }
7045 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7046 {
7047 arg2 = &temp2;
7048 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7049 }
7050 {
7051 arg3 = &temp3;
7052 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7053 }
7054 {
7055 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7056 if (PyErr_Occurred()) SWIG_fail;
7057 }
7058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7059 return resultobj;
7060 fail:
7061 return NULL;
7062 }
7063
7064
7065 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7066 int argc;
7067 PyObject *argv[4];
7068
7069 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7070 --argc;
7071 if (argc == 1) {
7072 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7073 }
7074 if (argc == 2) {
7075 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7076 }
7077 if (argc == 3) {
7078 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7079 }
7080
7081 fail:
7082 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7083 return NULL;
7084 }
7085
7086
7087 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7088 PyObject *resultobj = 0;
7089 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7090 void *argp1 = 0 ;
7091 int res1 = 0 ;
7092 PyObject *swig_obj[1] ;
7093
7094 if (!args) SWIG_fail;
7095 swig_obj[0] = args;
7096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7097 if (!SWIG_IsOK(res1)) {
7098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7099 }
7100 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7101 {
7102 delete arg1;
7103
7104 if (PyErr_Occurred()) SWIG_fail;
7105 }
7106 resultobj = SWIG_Py_Void();
7107 return resultobj;
7108 fail:
7109 return NULL;
7110 }
7111
7112
7113 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7114 PyObject *resultobj = 0;
7115 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7116 wxNativePixelData_Accessor result;
7117 void *argp1 = 0 ;
7118 int res1 = 0 ;
7119 PyObject *swig_obj[1] ;
7120
7121 if (!args) SWIG_fail;
7122 swig_obj[0] = args;
7123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7124 if (!SWIG_IsOK(res1)) {
7125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7126 }
7127 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7128 {
7129 result = ((wxNativePixelData const *)arg1)->GetPixels();
7130 if (PyErr_Occurred()) SWIG_fail;
7131 }
7132 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7133 return resultobj;
7134 fail:
7135 return NULL;
7136 }
7137
7138
7139 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7140 PyObject *resultobj = 0;
7141 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7142 void *argp1 = 0 ;
7143 int res1 = 0 ;
7144 PyObject *swig_obj[1] ;
7145
7146 if (!args) SWIG_fail;
7147 swig_obj[0] = args;
7148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7149 if (!SWIG_IsOK(res1)) {
7150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7151 }
7152 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7153 {
7154 (arg1)->UseAlpha();
7155 if (PyErr_Occurred()) SWIG_fail;
7156 }
7157 resultobj = SWIG_Py_Void();
7158 return resultobj;
7159 fail:
7160 return NULL;
7161 }
7162
7163
7164 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7165 PyObject *resultobj = 0;
7166 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7167 bool result;
7168 void *argp1 = 0 ;
7169 int res1 = 0 ;
7170 PyObject *swig_obj[1] ;
7171
7172 if (!args) SWIG_fail;
7173 swig_obj[0] = args;
7174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7175 if (!SWIG_IsOK(res1)) {
7176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7177 }
7178 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7179 {
7180 result = (bool)wxNativePixelData___nonzero__(arg1);
7181 if (PyErr_Occurred()) SWIG_fail;
7182 }
7183 {
7184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7185 }
7186 return resultobj;
7187 fail:
7188 return NULL;
7189 }
7190
7191
7192 SWIGINTERN PyObject *NativePixelData_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_wxNativePixelData, SWIG_NewClientData(obj));
7196 return SWIG_Py_Void();
7197 }
7198
7199 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7200 return SWIG_Python_InitShadowInstance(args);
7201 }
7202
7203 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7204 PyObject *resultobj = 0;
7205 wxNativePixelData *arg1 = 0 ;
7206 wxNativePixelData_Accessor *result = 0 ;
7207 void *argp1 = 0 ;
7208 int res1 = 0 ;
7209
7210 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7212 if (!SWIG_IsOK(res1)) {
7213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7214 }
7215 if (!argp1) {
7216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7217 }
7218 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7219 {
7220 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7221 if (PyErr_Occurred()) SWIG_fail;
7222 }
7223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7224 return resultobj;
7225 fail:
7226 return NULL;
7227 }
7228
7229
7230 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7231 PyObject *resultobj = 0;
7232 wxBitmap *arg1 = 0 ;
7233 wxNativePixelData *arg2 = 0 ;
7234 wxNativePixelData_Accessor *result = 0 ;
7235 void *argp1 = 0 ;
7236 int res1 = 0 ;
7237 void *argp2 = 0 ;
7238 int res2 = 0 ;
7239
7240 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7242 if (!SWIG_IsOK(res1)) {
7243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7244 }
7245 if (!argp1) {
7246 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7247 }
7248 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7249 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7250 if (!SWIG_IsOK(res2)) {
7251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7252 }
7253 if (!argp2) {
7254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7255 }
7256 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7257 {
7258 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7259 if (PyErr_Occurred()) SWIG_fail;
7260 }
7261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7262 return resultobj;
7263 fail:
7264 return NULL;
7265 }
7266
7267
7268 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7269 PyObject *resultobj = 0;
7270 wxNativePixelData_Accessor *result = 0 ;
7271
7272 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7273 {
7274 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7275 if (PyErr_Occurred()) SWIG_fail;
7276 }
7277 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7278 return resultobj;
7279 fail:
7280 return NULL;
7281 }
7282
7283
7284 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7285 int argc;
7286 PyObject *argv[3];
7287
7288 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7289 --argc;
7290 if (argc == 0) {
7291 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7292 }
7293 if (argc == 1) {
7294 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7295 }
7296 if (argc == 2) {
7297 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7298 }
7299
7300 fail:
7301 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7302 return NULL;
7303 }
7304
7305
7306 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7307 PyObject *resultobj = 0;
7308 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7309 void *argp1 = 0 ;
7310 int res1 = 0 ;
7311 PyObject *swig_obj[1] ;
7312
7313 if (!args) SWIG_fail;
7314 swig_obj[0] = args;
7315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7316 if (!SWIG_IsOK(res1)) {
7317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7318 }
7319 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7320 {
7321 delete arg1;
7322
7323 if (PyErr_Occurred()) SWIG_fail;
7324 }
7325 resultobj = SWIG_Py_Void();
7326 return resultobj;
7327 fail:
7328 return NULL;
7329 }
7330
7331
7332 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7333 PyObject *resultobj = 0;
7334 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7335 wxNativePixelData *arg2 = 0 ;
7336 void *argp1 = 0 ;
7337 int res1 = 0 ;
7338 void *argp2 = 0 ;
7339 int res2 = 0 ;
7340 PyObject * obj0 = 0 ;
7341 PyObject * obj1 = 0 ;
7342 char * kwnames[] = {
7343 (char *) "self",(char *) "data", NULL
7344 };
7345
7346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7348 if (!SWIG_IsOK(res1)) {
7349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7350 }
7351 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7352 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7353 if (!SWIG_IsOK(res2)) {
7354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7355 }
7356 if (!argp2) {
7357 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7358 }
7359 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7360 {
7361 (arg1)->Reset((wxNativePixelData const &)*arg2);
7362 if (PyErr_Occurred()) SWIG_fail;
7363 }
7364 resultobj = SWIG_Py_Void();
7365 return resultobj;
7366 fail:
7367 return NULL;
7368 }
7369
7370
7371 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7372 PyObject *resultobj = 0;
7373 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7374 bool result;
7375 void *argp1 = 0 ;
7376 int res1 = 0 ;
7377 PyObject *swig_obj[1] ;
7378
7379 if (!args) SWIG_fail;
7380 swig_obj[0] = args;
7381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7382 if (!SWIG_IsOK(res1)) {
7383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7384 }
7385 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7386 {
7387 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7388 if (PyErr_Occurred()) SWIG_fail;
7389 }
7390 {
7391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7392 }
7393 return resultobj;
7394 fail:
7395 return NULL;
7396 }
7397
7398
7399 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7400 PyObject *resultobj = 0;
7401 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7402 void *argp1 = 0 ;
7403 int res1 = 0 ;
7404 PyObject *swig_obj[1] ;
7405
7406 if (!args) SWIG_fail;
7407 swig_obj[0] = args;
7408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7409 if (!SWIG_IsOK(res1)) {
7410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7411 }
7412 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7413 {
7414 wxNativePixelData_Accessor_nextPixel(arg1);
7415 if (PyErr_Occurred()) SWIG_fail;
7416 }
7417 resultobj = SWIG_Py_Void();
7418 return resultobj;
7419 fail:
7420 return NULL;
7421 }
7422
7423
7424 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7425 PyObject *resultobj = 0;
7426 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7427 wxNativePixelData *arg2 = 0 ;
7428 int arg3 ;
7429 int arg4 ;
7430 void *argp1 = 0 ;
7431 int res1 = 0 ;
7432 void *argp2 = 0 ;
7433 int res2 = 0 ;
7434 int val3 ;
7435 int ecode3 = 0 ;
7436 int val4 ;
7437 int ecode4 = 0 ;
7438 PyObject * obj0 = 0 ;
7439 PyObject * obj1 = 0 ;
7440 PyObject * obj2 = 0 ;
7441 PyObject * obj3 = 0 ;
7442 char * kwnames[] = {
7443 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7444 };
7445
7446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7448 if (!SWIG_IsOK(res1)) {
7449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7450 }
7451 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7452 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7453 if (!SWIG_IsOK(res2)) {
7454 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7455 }
7456 if (!argp2) {
7457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7458 }
7459 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7460 ecode3 = SWIG_AsVal_int(obj2, &val3);
7461 if (!SWIG_IsOK(ecode3)) {
7462 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7463 }
7464 arg3 = static_cast< int >(val3);
7465 ecode4 = SWIG_AsVal_int(obj3, &val4);
7466 if (!SWIG_IsOK(ecode4)) {
7467 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7468 }
7469 arg4 = static_cast< int >(val4);
7470 {
7471 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7472 if (PyErr_Occurred()) SWIG_fail;
7473 }
7474 resultobj = SWIG_Py_Void();
7475 return resultobj;
7476 fail:
7477 return NULL;
7478 }
7479
7480
7481 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7482 PyObject *resultobj = 0;
7483 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7484 wxNativePixelData *arg2 = 0 ;
7485 int arg3 ;
7486 void *argp1 = 0 ;
7487 int res1 = 0 ;
7488 void *argp2 = 0 ;
7489 int res2 = 0 ;
7490 int val3 ;
7491 int ecode3 = 0 ;
7492 PyObject * obj0 = 0 ;
7493 PyObject * obj1 = 0 ;
7494 PyObject * obj2 = 0 ;
7495 char * kwnames[] = {
7496 (char *) "self",(char *) "data",(char *) "x", NULL
7497 };
7498
7499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7501 if (!SWIG_IsOK(res1)) {
7502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7503 }
7504 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7505 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7506 if (!SWIG_IsOK(res2)) {
7507 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7508 }
7509 if (!argp2) {
7510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7511 }
7512 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7513 ecode3 = SWIG_AsVal_int(obj2, &val3);
7514 if (!SWIG_IsOK(ecode3)) {
7515 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7516 }
7517 arg3 = static_cast< int >(val3);
7518 {
7519 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7520 if (PyErr_Occurred()) SWIG_fail;
7521 }
7522 resultobj = SWIG_Py_Void();
7523 return resultobj;
7524 fail:
7525 return NULL;
7526 }
7527
7528
7529 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7530 PyObject *resultobj = 0;
7531 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7532 wxNativePixelData *arg2 = 0 ;
7533 int arg3 ;
7534 void *argp1 = 0 ;
7535 int res1 = 0 ;
7536 void *argp2 = 0 ;
7537 int res2 = 0 ;
7538 int val3 ;
7539 int ecode3 = 0 ;
7540 PyObject * obj0 = 0 ;
7541 PyObject * obj1 = 0 ;
7542 PyObject * obj2 = 0 ;
7543 char * kwnames[] = {
7544 (char *) "self",(char *) "data",(char *) "y", NULL
7545 };
7546
7547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7549 if (!SWIG_IsOK(res1)) {
7550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7551 }
7552 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7553 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7554 if (!SWIG_IsOK(res2)) {
7555 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7556 }
7557 if (!argp2) {
7558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7559 }
7560 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7561 ecode3 = SWIG_AsVal_int(obj2, &val3);
7562 if (!SWIG_IsOK(ecode3)) {
7563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7564 }
7565 arg3 = static_cast< int >(val3);
7566 {
7567 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7568 if (PyErr_Occurred()) SWIG_fail;
7569 }
7570 resultobj = SWIG_Py_Void();
7571 return resultobj;
7572 fail:
7573 return NULL;
7574 }
7575
7576
7577 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7578 PyObject *resultobj = 0;
7579 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7580 wxNativePixelData *arg2 = 0 ;
7581 int arg3 ;
7582 int arg4 ;
7583 void *argp1 = 0 ;
7584 int res1 = 0 ;
7585 void *argp2 = 0 ;
7586 int res2 = 0 ;
7587 int val3 ;
7588 int ecode3 = 0 ;
7589 int val4 ;
7590 int ecode4 = 0 ;
7591 PyObject * obj0 = 0 ;
7592 PyObject * obj1 = 0 ;
7593 PyObject * obj2 = 0 ;
7594 PyObject * obj3 = 0 ;
7595 char * kwnames[] = {
7596 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7597 };
7598
7599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7601 if (!SWIG_IsOK(res1)) {
7602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7603 }
7604 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7605 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7606 if (!SWIG_IsOK(res2)) {
7607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7608 }
7609 if (!argp2) {
7610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7611 }
7612 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7613 ecode3 = SWIG_AsVal_int(obj2, &val3);
7614 if (!SWIG_IsOK(ecode3)) {
7615 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7616 }
7617 arg3 = static_cast< int >(val3);
7618 ecode4 = SWIG_AsVal_int(obj3, &val4);
7619 if (!SWIG_IsOK(ecode4)) {
7620 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7621 }
7622 arg4 = static_cast< int >(val4);
7623 {
7624 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7625 if (PyErr_Occurred()) SWIG_fail;
7626 }
7627 resultobj = SWIG_Py_Void();
7628 return resultobj;
7629 fail:
7630 return NULL;
7631 }
7632
7633
7634 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7635 PyObject *resultobj = 0;
7636 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7637 byte arg2 ;
7638 byte arg3 ;
7639 byte arg4 ;
7640 void *argp1 = 0 ;
7641 int res1 = 0 ;
7642 unsigned char val2 ;
7643 int ecode2 = 0 ;
7644 unsigned char val3 ;
7645 int ecode3 = 0 ;
7646 unsigned char val4 ;
7647 int ecode4 = 0 ;
7648 PyObject * obj0 = 0 ;
7649 PyObject * obj1 = 0 ;
7650 PyObject * obj2 = 0 ;
7651 PyObject * obj3 = 0 ;
7652 char * kwnames[] = {
7653 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7654 };
7655
7656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7658 if (!SWIG_IsOK(res1)) {
7659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7660 }
7661 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7662 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7663 if (!SWIG_IsOK(ecode2)) {
7664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7665 }
7666 arg2 = static_cast< byte >(val2);
7667 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7668 if (!SWIG_IsOK(ecode3)) {
7669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7670 }
7671 arg3 = static_cast< byte >(val3);
7672 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7673 if (!SWIG_IsOK(ecode4)) {
7674 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7675 }
7676 arg4 = static_cast< byte >(val4);
7677 {
7678 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7679 if (PyErr_Occurred()) SWIG_fail;
7680 }
7681 resultobj = SWIG_Py_Void();
7682 return resultobj;
7683 fail:
7684 return NULL;
7685 }
7686
7687
7688 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7689 PyObject *resultobj = 0;
7690 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7691 PyObject *result = 0 ;
7692 void *argp1 = 0 ;
7693 int res1 = 0 ;
7694 PyObject *swig_obj[1] ;
7695
7696 if (!args) SWIG_fail;
7697 swig_obj[0] = args;
7698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7699 if (!SWIG_IsOK(res1)) {
7700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7701 }
7702 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7703 {
7704 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7705 if (PyErr_Occurred()) SWIG_fail;
7706 }
7707 resultobj = result;
7708 return resultobj;
7709 fail:
7710 return NULL;
7711 }
7712
7713
7714 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7715 PyObject *obj;
7716 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7717 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7718 return SWIG_Py_Void();
7719 }
7720
7721 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7722 return SWIG_Python_InitShadowInstance(args);
7723 }
7724
7725 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7726 PyObject *resultobj = 0;
7727 wxBitmap *arg1 = 0 ;
7728 wxAlphaPixelData *result = 0 ;
7729 void *argp1 = 0 ;
7730 int res1 = 0 ;
7731
7732 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7734 if (!SWIG_IsOK(res1)) {
7735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7736 }
7737 if (!argp1) {
7738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7739 }
7740 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7741 {
7742 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7743 if (PyErr_Occurred()) SWIG_fail;
7744 }
7745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7746 return resultobj;
7747 fail:
7748 return NULL;
7749 }
7750
7751
7752 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7753 PyObject *resultobj = 0;
7754 wxBitmap *arg1 = 0 ;
7755 wxRect *arg2 = 0 ;
7756 wxAlphaPixelData *result = 0 ;
7757 void *argp1 = 0 ;
7758 int res1 = 0 ;
7759 wxRect temp2 ;
7760
7761 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7763 if (!SWIG_IsOK(res1)) {
7764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7765 }
7766 if (!argp1) {
7767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7768 }
7769 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7770 {
7771 arg2 = &temp2;
7772 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7773 }
7774 {
7775 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7776 if (PyErr_Occurred()) SWIG_fail;
7777 }
7778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7779 return resultobj;
7780 fail:
7781 return NULL;
7782 }
7783
7784
7785 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7786 PyObject *resultobj = 0;
7787 wxBitmap *arg1 = 0 ;
7788 wxPoint *arg2 = 0 ;
7789 wxSize *arg3 = 0 ;
7790 wxAlphaPixelData *result = 0 ;
7791 void *argp1 = 0 ;
7792 int res1 = 0 ;
7793 wxPoint temp2 ;
7794 wxSize temp3 ;
7795
7796 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7798 if (!SWIG_IsOK(res1)) {
7799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7800 }
7801 if (!argp1) {
7802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7803 }
7804 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7805 {
7806 arg2 = &temp2;
7807 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7808 }
7809 {
7810 arg3 = &temp3;
7811 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7812 }
7813 {
7814 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7815 if (PyErr_Occurred()) SWIG_fail;
7816 }
7817 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7818 return resultobj;
7819 fail:
7820 return NULL;
7821 }
7822
7823
7824 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7825 int argc;
7826 PyObject *argv[4];
7827
7828 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7829 --argc;
7830 if (argc == 1) {
7831 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7832 }
7833 if (argc == 2) {
7834 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7835 }
7836 if (argc == 3) {
7837 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7838 }
7839
7840 fail:
7841 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7842 return NULL;
7843 }
7844
7845
7846 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7847 PyObject *resultobj = 0;
7848 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7849 void *argp1 = 0 ;
7850 int res1 = 0 ;
7851 PyObject *swig_obj[1] ;
7852
7853 if (!args) SWIG_fail;
7854 swig_obj[0] = args;
7855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
7856 if (!SWIG_IsOK(res1)) {
7857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7858 }
7859 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7860 {
7861 delete arg1;
7862
7863 if (PyErr_Occurred()) SWIG_fail;
7864 }
7865 resultobj = SWIG_Py_Void();
7866 return resultobj;
7867 fail:
7868 return NULL;
7869 }
7870
7871
7872 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7873 PyObject *resultobj = 0;
7874 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7875 wxAlphaPixelData_Accessor result;
7876 void *argp1 = 0 ;
7877 int res1 = 0 ;
7878 PyObject *swig_obj[1] ;
7879
7880 if (!args) SWIG_fail;
7881 swig_obj[0] = args;
7882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7883 if (!SWIG_IsOK(res1)) {
7884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
7885 }
7886 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7887 {
7888 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
7889 if (PyErr_Occurred()) SWIG_fail;
7890 }
7891 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
7892 return resultobj;
7893 fail:
7894 return NULL;
7895 }
7896
7897
7898 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7899 PyObject *resultobj = 0;
7900 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7901 void *argp1 = 0 ;
7902 int res1 = 0 ;
7903 PyObject *swig_obj[1] ;
7904
7905 if (!args) SWIG_fail;
7906 swig_obj[0] = args;
7907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7908 if (!SWIG_IsOK(res1)) {
7909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7910 }
7911 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7912 {
7913 (arg1)->UseAlpha();
7914 if (PyErr_Occurred()) SWIG_fail;
7915 }
7916 resultobj = SWIG_Py_Void();
7917 return resultobj;
7918 fail:
7919 return NULL;
7920 }
7921
7922
7923 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7924 PyObject *resultobj = 0;
7925 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7926 bool result;
7927 void *argp1 = 0 ;
7928 int res1 = 0 ;
7929 PyObject *swig_obj[1] ;
7930
7931 if (!args) SWIG_fail;
7932 swig_obj[0] = args;
7933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7934 if (!SWIG_IsOK(res1)) {
7935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7936 }
7937 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7938 {
7939 result = (bool)wxAlphaPixelData___nonzero__(arg1);
7940 if (PyErr_Occurred()) SWIG_fail;
7941 }
7942 {
7943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7944 }
7945 return resultobj;
7946 fail:
7947 return NULL;
7948 }
7949
7950
7951 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7952 PyObject *obj;
7953 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7954 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
7955 return SWIG_Py_Void();
7956 }
7957
7958 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7959 return SWIG_Python_InitShadowInstance(args);
7960 }
7961
7962 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7963 PyObject *resultobj = 0;
7964 wxAlphaPixelData *arg1 = 0 ;
7965 wxAlphaPixelData_Accessor *result = 0 ;
7966 void *argp1 = 0 ;
7967 int res1 = 0 ;
7968
7969 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
7971 if (!SWIG_IsOK(res1)) {
7972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
7973 }
7974 if (!argp1) {
7975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
7976 }
7977 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7978 {
7979 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
7980 if (PyErr_Occurred()) SWIG_fail;
7981 }
7982 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
7983 return resultobj;
7984 fail:
7985 return NULL;
7986 }
7987
7988
7989 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7990 PyObject *resultobj = 0;
7991 wxBitmap *arg1 = 0 ;
7992 wxAlphaPixelData *arg2 = 0 ;
7993 wxAlphaPixelData_Accessor *result = 0 ;
7994 void *argp1 = 0 ;
7995 int res1 = 0 ;
7996 void *argp2 = 0 ;
7997 int res2 = 0 ;
7998
7999 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8001 if (!SWIG_IsOK(res1)) {
8002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8003 }
8004 if (!argp1) {
8005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8006 }
8007 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8008 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8009 if (!SWIG_IsOK(res2)) {
8010 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8011 }
8012 if (!argp2) {
8013 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8014 }
8015 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8016 {
8017 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8018 if (PyErr_Occurred()) SWIG_fail;
8019 }
8020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8021 return resultobj;
8022 fail:
8023 return NULL;
8024 }
8025
8026
8027 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8028 PyObject *resultobj = 0;
8029 wxAlphaPixelData_Accessor *result = 0 ;
8030
8031 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8032 {
8033 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8034 if (PyErr_Occurred()) SWIG_fail;
8035 }
8036 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8037 return resultobj;
8038 fail:
8039 return NULL;
8040 }
8041
8042
8043 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8044 int argc;
8045 PyObject *argv[3];
8046
8047 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8048 --argc;
8049 if (argc == 0) {
8050 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8051 }
8052 if (argc == 1) {
8053 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8054 }
8055 if (argc == 2) {
8056 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8057 }
8058
8059 fail:
8060 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8061 return NULL;
8062 }
8063
8064
8065 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8066 PyObject *resultobj = 0;
8067 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8068 void *argp1 = 0 ;
8069 int res1 = 0 ;
8070 PyObject *swig_obj[1] ;
8071
8072 if (!args) SWIG_fail;
8073 swig_obj[0] = args;
8074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8075 if (!SWIG_IsOK(res1)) {
8076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8077 }
8078 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8079 {
8080 delete arg1;
8081
8082 if (PyErr_Occurred()) SWIG_fail;
8083 }
8084 resultobj = SWIG_Py_Void();
8085 return resultobj;
8086 fail:
8087 return NULL;
8088 }
8089
8090
8091 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8092 PyObject *resultobj = 0;
8093 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8094 wxAlphaPixelData *arg2 = 0 ;
8095 void *argp1 = 0 ;
8096 int res1 = 0 ;
8097 void *argp2 = 0 ;
8098 int res2 = 0 ;
8099 PyObject * obj0 = 0 ;
8100 PyObject * obj1 = 0 ;
8101 char * kwnames[] = {
8102 (char *) "self",(char *) "data", NULL
8103 };
8104
8105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8107 if (!SWIG_IsOK(res1)) {
8108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8109 }
8110 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8111 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8112 if (!SWIG_IsOK(res2)) {
8113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8114 }
8115 if (!argp2) {
8116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8117 }
8118 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8119 {
8120 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8121 if (PyErr_Occurred()) SWIG_fail;
8122 }
8123 resultobj = SWIG_Py_Void();
8124 return resultobj;
8125 fail:
8126 return NULL;
8127 }
8128
8129
8130 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8131 PyObject *resultobj = 0;
8132 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8133 bool result;
8134 void *argp1 = 0 ;
8135 int res1 = 0 ;
8136 PyObject *swig_obj[1] ;
8137
8138 if (!args) SWIG_fail;
8139 swig_obj[0] = args;
8140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8141 if (!SWIG_IsOK(res1)) {
8142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8143 }
8144 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8145 {
8146 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8147 if (PyErr_Occurred()) SWIG_fail;
8148 }
8149 {
8150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8151 }
8152 return resultobj;
8153 fail:
8154 return NULL;
8155 }
8156
8157
8158 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8159 PyObject *resultobj = 0;
8160 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8161 void *argp1 = 0 ;
8162 int res1 = 0 ;
8163 PyObject *swig_obj[1] ;
8164
8165 if (!args) SWIG_fail;
8166 swig_obj[0] = args;
8167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8168 if (!SWIG_IsOK(res1)) {
8169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8170 }
8171 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8172 {
8173 wxAlphaPixelData_Accessor_nextPixel(arg1);
8174 if (PyErr_Occurred()) SWIG_fail;
8175 }
8176 resultobj = SWIG_Py_Void();
8177 return resultobj;
8178 fail:
8179 return NULL;
8180 }
8181
8182
8183 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8184 PyObject *resultobj = 0;
8185 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8186 wxAlphaPixelData *arg2 = 0 ;
8187 int arg3 ;
8188 int arg4 ;
8189 void *argp1 = 0 ;
8190 int res1 = 0 ;
8191 void *argp2 = 0 ;
8192 int res2 = 0 ;
8193 int val3 ;
8194 int ecode3 = 0 ;
8195 int val4 ;
8196 int ecode4 = 0 ;
8197 PyObject * obj0 = 0 ;
8198 PyObject * obj1 = 0 ;
8199 PyObject * obj2 = 0 ;
8200 PyObject * obj3 = 0 ;
8201 char * kwnames[] = {
8202 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8203 };
8204
8205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8207 if (!SWIG_IsOK(res1)) {
8208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8209 }
8210 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8211 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8212 if (!SWIG_IsOK(res2)) {
8213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8214 }
8215 if (!argp2) {
8216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8217 }
8218 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8219 ecode3 = SWIG_AsVal_int(obj2, &val3);
8220 if (!SWIG_IsOK(ecode3)) {
8221 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8222 }
8223 arg3 = static_cast< int >(val3);
8224 ecode4 = SWIG_AsVal_int(obj3, &val4);
8225 if (!SWIG_IsOK(ecode4)) {
8226 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8227 }
8228 arg4 = static_cast< int >(val4);
8229 {
8230 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8231 if (PyErr_Occurred()) SWIG_fail;
8232 }
8233 resultobj = SWIG_Py_Void();
8234 return resultobj;
8235 fail:
8236 return NULL;
8237 }
8238
8239
8240 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8241 PyObject *resultobj = 0;
8242 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8243 wxAlphaPixelData *arg2 = 0 ;
8244 int arg3 ;
8245 void *argp1 = 0 ;
8246 int res1 = 0 ;
8247 void *argp2 = 0 ;
8248 int res2 = 0 ;
8249 int val3 ;
8250 int ecode3 = 0 ;
8251 PyObject * obj0 = 0 ;
8252 PyObject * obj1 = 0 ;
8253 PyObject * obj2 = 0 ;
8254 char * kwnames[] = {
8255 (char *) "self",(char *) "data",(char *) "x", NULL
8256 };
8257
8258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8260 if (!SWIG_IsOK(res1)) {
8261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8262 }
8263 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8264 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8265 if (!SWIG_IsOK(res2)) {
8266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8267 }
8268 if (!argp2) {
8269 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8270 }
8271 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8272 ecode3 = SWIG_AsVal_int(obj2, &val3);
8273 if (!SWIG_IsOK(ecode3)) {
8274 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8275 }
8276 arg3 = static_cast< int >(val3);
8277 {
8278 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8279 if (PyErr_Occurred()) SWIG_fail;
8280 }
8281 resultobj = SWIG_Py_Void();
8282 return resultobj;
8283 fail:
8284 return NULL;
8285 }
8286
8287
8288 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8289 PyObject *resultobj = 0;
8290 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8291 wxAlphaPixelData *arg2 = 0 ;
8292 int arg3 ;
8293 void *argp1 = 0 ;
8294 int res1 = 0 ;
8295 void *argp2 = 0 ;
8296 int res2 = 0 ;
8297 int val3 ;
8298 int ecode3 = 0 ;
8299 PyObject * obj0 = 0 ;
8300 PyObject * obj1 = 0 ;
8301 PyObject * obj2 = 0 ;
8302 char * kwnames[] = {
8303 (char *) "self",(char *) "data",(char *) "y", NULL
8304 };
8305
8306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8308 if (!SWIG_IsOK(res1)) {
8309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8310 }
8311 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8312 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8313 if (!SWIG_IsOK(res2)) {
8314 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8315 }
8316 if (!argp2) {
8317 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8318 }
8319 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8320 ecode3 = SWIG_AsVal_int(obj2, &val3);
8321 if (!SWIG_IsOK(ecode3)) {
8322 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8323 }
8324 arg3 = static_cast< int >(val3);
8325 {
8326 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8327 if (PyErr_Occurred()) SWIG_fail;
8328 }
8329 resultobj = SWIG_Py_Void();
8330 return resultobj;
8331 fail:
8332 return NULL;
8333 }
8334
8335
8336 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8337 PyObject *resultobj = 0;
8338 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8339 wxAlphaPixelData *arg2 = 0 ;
8340 int arg3 ;
8341 int arg4 ;
8342 void *argp1 = 0 ;
8343 int res1 = 0 ;
8344 void *argp2 = 0 ;
8345 int res2 = 0 ;
8346 int val3 ;
8347 int ecode3 = 0 ;
8348 int val4 ;
8349 int ecode4 = 0 ;
8350 PyObject * obj0 = 0 ;
8351 PyObject * obj1 = 0 ;
8352 PyObject * obj2 = 0 ;
8353 PyObject * obj3 = 0 ;
8354 char * kwnames[] = {
8355 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8356 };
8357
8358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8360 if (!SWIG_IsOK(res1)) {
8361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8362 }
8363 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8364 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8365 if (!SWIG_IsOK(res2)) {
8366 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8367 }
8368 if (!argp2) {
8369 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8370 }
8371 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8372 ecode3 = SWIG_AsVal_int(obj2, &val3);
8373 if (!SWIG_IsOK(ecode3)) {
8374 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8375 }
8376 arg3 = static_cast< int >(val3);
8377 ecode4 = SWIG_AsVal_int(obj3, &val4);
8378 if (!SWIG_IsOK(ecode4)) {
8379 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8380 }
8381 arg4 = static_cast< int >(val4);
8382 {
8383 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8384 if (PyErr_Occurred()) SWIG_fail;
8385 }
8386 resultobj = SWIG_Py_Void();
8387 return resultobj;
8388 fail:
8389 return NULL;
8390 }
8391
8392
8393 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8394 PyObject *resultobj = 0;
8395 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8396 byte arg2 ;
8397 byte arg3 ;
8398 byte arg4 ;
8399 byte arg5 ;
8400 void *argp1 = 0 ;
8401 int res1 = 0 ;
8402 unsigned char val2 ;
8403 int ecode2 = 0 ;
8404 unsigned char val3 ;
8405 int ecode3 = 0 ;
8406 unsigned char val4 ;
8407 int ecode4 = 0 ;
8408 unsigned char val5 ;
8409 int ecode5 = 0 ;
8410 PyObject * obj0 = 0 ;
8411 PyObject * obj1 = 0 ;
8412 PyObject * obj2 = 0 ;
8413 PyObject * obj3 = 0 ;
8414 PyObject * obj4 = 0 ;
8415 char * kwnames[] = {
8416 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8417 };
8418
8419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8421 if (!SWIG_IsOK(res1)) {
8422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8423 }
8424 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8425 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8426 if (!SWIG_IsOK(ecode2)) {
8427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8428 }
8429 arg2 = static_cast< byte >(val2);
8430 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8431 if (!SWIG_IsOK(ecode3)) {
8432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8433 }
8434 arg3 = static_cast< byte >(val3);
8435 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8436 if (!SWIG_IsOK(ecode4)) {
8437 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8438 }
8439 arg4 = static_cast< byte >(val4);
8440 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8441 if (!SWIG_IsOK(ecode5)) {
8442 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8443 }
8444 arg5 = static_cast< byte >(val5);
8445 {
8446 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8447 if (PyErr_Occurred()) SWIG_fail;
8448 }
8449 resultobj = SWIG_Py_Void();
8450 return resultobj;
8451 fail:
8452 return NULL;
8453 }
8454
8455
8456 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8457 PyObject *resultobj = 0;
8458 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8459 PyObject *result = 0 ;
8460 void *argp1 = 0 ;
8461 int res1 = 0 ;
8462 PyObject *swig_obj[1] ;
8463
8464 if (!args) SWIG_fail;
8465 swig_obj[0] = args;
8466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8467 if (!SWIG_IsOK(res1)) {
8468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8469 }
8470 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8471 {
8472 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8473 if (PyErr_Occurred()) SWIG_fail;
8474 }
8475 resultobj = result;
8476 return resultobj;
8477 fail:
8478 return NULL;
8479 }
8480
8481
8482 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8483 PyObject *obj;
8484 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8485 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8486 return SWIG_Py_Void();
8487 }
8488
8489 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8490 return SWIG_Python_InitShadowInstance(args);
8491 }
8492
8493 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8494 PyObject *resultobj = 0;
8495 wxBitmap *arg1 = 0 ;
8496 wxColour const &arg2_defvalue = wxNullColour ;
8497 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8498 wxMask *result = 0 ;
8499 void *argp1 = 0 ;
8500 int res1 = 0 ;
8501 wxColour temp2 ;
8502 PyObject * obj0 = 0 ;
8503 PyObject * obj1 = 0 ;
8504 char * kwnames[] = {
8505 (char *) "bitmap",(char *) "colour", NULL
8506 };
8507
8508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8509 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8510 if (!SWIG_IsOK(res1)) {
8511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8512 }
8513 if (!argp1) {
8514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8515 }
8516 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8517 if (obj1) {
8518 {
8519 arg2 = &temp2;
8520 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8521 }
8522 }
8523 {
8524 if (!wxPyCheckForApp()) SWIG_fail;
8525 PyThreadState* __tstate = wxPyBeginAllowThreads();
8526 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8527 wxPyEndAllowThreads(__tstate);
8528 if (PyErr_Occurred()) SWIG_fail;
8529 }
8530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8531 return resultobj;
8532 fail:
8533 return NULL;
8534 }
8535
8536
8537 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8538 PyObject *resultobj = 0;
8539 wxMask *arg1 = (wxMask *) 0 ;
8540 void *argp1 = 0 ;
8541 int res1 = 0 ;
8542 PyObject *swig_obj[1] ;
8543
8544 if (!args) SWIG_fail;
8545 swig_obj[0] = args;
8546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8547 if (!SWIG_IsOK(res1)) {
8548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8549 }
8550 arg1 = reinterpret_cast< wxMask * >(argp1);
8551 {
8552 delete arg1;
8553
8554 if (PyErr_Occurred()) SWIG_fail;
8555 }
8556 resultobj = SWIG_Py_Void();
8557 return resultobj;
8558 fail:
8559 return NULL;
8560 }
8561
8562
8563 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8564 PyObject *obj;
8565 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8566 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8567 return SWIG_Py_Void();
8568 }
8569
8570 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8571 return SWIG_Python_InitShadowInstance(args);
8572 }
8573
8574 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8575 PyObject *resultobj = 0;
8576 wxString *arg1 = 0 ;
8577 wxBitmapType arg2 ;
8578 int arg3 = (int) -1 ;
8579 int arg4 = (int) -1 ;
8580 wxIcon *result = 0 ;
8581 bool temp1 = false ;
8582 int val2 ;
8583 int ecode2 = 0 ;
8584 int val3 ;
8585 int ecode3 = 0 ;
8586 int val4 ;
8587 int ecode4 = 0 ;
8588 PyObject * obj0 = 0 ;
8589 PyObject * obj1 = 0 ;
8590 PyObject * obj2 = 0 ;
8591 PyObject * obj3 = 0 ;
8592 char * kwnames[] = {
8593 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8594 };
8595
8596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8597 {
8598 arg1 = wxString_in_helper(obj0);
8599 if (arg1 == NULL) SWIG_fail;
8600 temp1 = true;
8601 }
8602 ecode2 = SWIG_AsVal_int(obj1, &val2);
8603 if (!SWIG_IsOK(ecode2)) {
8604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8605 }
8606 arg2 = static_cast< wxBitmapType >(val2);
8607 if (obj2) {
8608 ecode3 = SWIG_AsVal_int(obj2, &val3);
8609 if (!SWIG_IsOK(ecode3)) {
8610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8611 }
8612 arg3 = static_cast< int >(val3);
8613 }
8614 if (obj3) {
8615 ecode4 = SWIG_AsVal_int(obj3, &val4);
8616 if (!SWIG_IsOK(ecode4)) {
8617 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8618 }
8619 arg4 = static_cast< int >(val4);
8620 }
8621 {
8622 if (!wxPyCheckForApp()) SWIG_fail;
8623 PyThreadState* __tstate = wxPyBeginAllowThreads();
8624 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8625 wxPyEndAllowThreads(__tstate);
8626 if (PyErr_Occurred()) SWIG_fail;
8627 }
8628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8629 {
8630 if (temp1)
8631 delete arg1;
8632 }
8633 return resultobj;
8634 fail:
8635 {
8636 if (temp1)
8637 delete arg1;
8638 }
8639 return NULL;
8640 }
8641
8642
8643 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8644 PyObject *resultobj = 0;
8645 wxIcon *arg1 = (wxIcon *) 0 ;
8646 void *argp1 = 0 ;
8647 int res1 = 0 ;
8648 PyObject *swig_obj[1] ;
8649
8650 if (!args) SWIG_fail;
8651 swig_obj[0] = args;
8652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8653 if (!SWIG_IsOK(res1)) {
8654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8655 }
8656 arg1 = reinterpret_cast< wxIcon * >(argp1);
8657 {
8658 PyThreadState* __tstate = wxPyBeginAllowThreads();
8659 delete arg1;
8660
8661 wxPyEndAllowThreads(__tstate);
8662 if (PyErr_Occurred()) SWIG_fail;
8663 }
8664 resultobj = SWIG_Py_Void();
8665 return resultobj;
8666 fail:
8667 return NULL;
8668 }
8669
8670
8671 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8672 PyObject *resultobj = 0;
8673 wxIcon *result = 0 ;
8674
8675 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8676 {
8677 if (!wxPyCheckForApp()) SWIG_fail;
8678 PyThreadState* __tstate = wxPyBeginAllowThreads();
8679 result = (wxIcon *)new wxIcon();
8680 wxPyEndAllowThreads(__tstate);
8681 if (PyErr_Occurred()) SWIG_fail;
8682 }
8683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8684 return resultobj;
8685 fail:
8686 return NULL;
8687 }
8688
8689
8690 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8691 PyObject *resultobj = 0;
8692 wxIconLocation *arg1 = 0 ;
8693 wxIcon *result = 0 ;
8694 void *argp1 = 0 ;
8695 int res1 = 0 ;
8696 PyObject * obj0 = 0 ;
8697 char * kwnames[] = {
8698 (char *) "loc", NULL
8699 };
8700
8701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8702 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8703 if (!SWIG_IsOK(res1)) {
8704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8705 }
8706 if (!argp1) {
8707 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8708 }
8709 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8710 {
8711 if (!wxPyCheckForApp()) SWIG_fail;
8712 PyThreadState* __tstate = wxPyBeginAllowThreads();
8713 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8714 wxPyEndAllowThreads(__tstate);
8715 if (PyErr_Occurred()) SWIG_fail;
8716 }
8717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8718 return resultobj;
8719 fail:
8720 return NULL;
8721 }
8722
8723
8724 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8725 PyObject *resultobj = 0;
8726 wxBitmap *arg1 = 0 ;
8727 wxIcon *result = 0 ;
8728 void *argp1 = 0 ;
8729 int res1 = 0 ;
8730 PyObject * obj0 = 0 ;
8731 char * kwnames[] = {
8732 (char *) "bmp", NULL
8733 };
8734
8735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8736 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8737 if (!SWIG_IsOK(res1)) {
8738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8739 }
8740 if (!argp1) {
8741 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8742 }
8743 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8744 {
8745 if (!wxPyCheckForApp()) SWIG_fail;
8746 PyThreadState* __tstate = wxPyBeginAllowThreads();
8747 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8748 wxPyEndAllowThreads(__tstate);
8749 if (PyErr_Occurred()) SWIG_fail;
8750 }
8751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8752 return resultobj;
8753 fail:
8754 return NULL;
8755 }
8756
8757
8758 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8759 PyObject *resultobj = 0;
8760 PyObject *arg1 = (PyObject *) 0 ;
8761 wxIcon *result = 0 ;
8762 PyObject * obj0 = 0 ;
8763 char * kwnames[] = {
8764 (char *) "listOfStrings", NULL
8765 };
8766
8767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8768 arg1 = obj0;
8769 {
8770 if (!wxPyCheckForApp()) SWIG_fail;
8771 PyThreadState* __tstate = wxPyBeginAllowThreads();
8772 result = (wxIcon *)new_wxIcon(arg1);
8773 wxPyEndAllowThreads(__tstate);
8774 if (PyErr_Occurred()) SWIG_fail;
8775 }
8776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8777 return resultobj;
8778 fail:
8779 return NULL;
8780 }
8781
8782
8783 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8784 PyObject *resultobj = 0;
8785 wxIcon *arg1 = (wxIcon *) 0 ;
8786 bool result;
8787 void *argp1 = 0 ;
8788 int res1 = 0 ;
8789 PyObject *swig_obj[1] ;
8790
8791 if (!args) SWIG_fail;
8792 swig_obj[0] = args;
8793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8794 if (!SWIG_IsOK(res1)) {
8795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
8796 }
8797 arg1 = reinterpret_cast< wxIcon * >(argp1);
8798 {
8799 PyThreadState* __tstate = wxPyBeginAllowThreads();
8800 result = (bool)(arg1)->Ok();
8801 wxPyEndAllowThreads(__tstate);
8802 if (PyErr_Occurred()) SWIG_fail;
8803 }
8804 {
8805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8806 }
8807 return resultobj;
8808 fail:
8809 return NULL;
8810 }
8811
8812
8813 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8814 PyObject *resultobj = 0;
8815 wxIcon *arg1 = (wxIcon *) 0 ;
8816 int result;
8817 void *argp1 = 0 ;
8818 int res1 = 0 ;
8819 PyObject *swig_obj[1] ;
8820
8821 if (!args) SWIG_fail;
8822 swig_obj[0] = args;
8823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8824 if (!SWIG_IsOK(res1)) {
8825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8826 }
8827 arg1 = reinterpret_cast< wxIcon * >(argp1);
8828 {
8829 PyThreadState* __tstate = wxPyBeginAllowThreads();
8830 result = (int)(arg1)->GetWidth();
8831 wxPyEndAllowThreads(__tstate);
8832 if (PyErr_Occurred()) SWIG_fail;
8833 }
8834 resultobj = SWIG_From_int(static_cast< int >(result));
8835 return resultobj;
8836 fail:
8837 return NULL;
8838 }
8839
8840
8841 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8842 PyObject *resultobj = 0;
8843 wxIcon *arg1 = (wxIcon *) 0 ;
8844 int result;
8845 void *argp1 = 0 ;
8846 int res1 = 0 ;
8847 PyObject *swig_obj[1] ;
8848
8849 if (!args) SWIG_fail;
8850 swig_obj[0] = args;
8851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8852 if (!SWIG_IsOK(res1)) {
8853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
8854 }
8855 arg1 = reinterpret_cast< wxIcon * >(argp1);
8856 {
8857 PyThreadState* __tstate = wxPyBeginAllowThreads();
8858 result = (int)(arg1)->GetHeight();
8859 wxPyEndAllowThreads(__tstate);
8860 if (PyErr_Occurred()) SWIG_fail;
8861 }
8862 resultobj = SWIG_From_int(static_cast< int >(result));
8863 return resultobj;
8864 fail:
8865 return NULL;
8866 }
8867
8868
8869 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8870 PyObject *resultobj = 0;
8871 wxIcon *arg1 = (wxIcon *) 0 ;
8872 int result;
8873 void *argp1 = 0 ;
8874 int res1 = 0 ;
8875 PyObject *swig_obj[1] ;
8876
8877 if (!args) SWIG_fail;
8878 swig_obj[0] = args;
8879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8880 if (!SWIG_IsOK(res1)) {
8881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
8882 }
8883 arg1 = reinterpret_cast< wxIcon * >(argp1);
8884 {
8885 PyThreadState* __tstate = wxPyBeginAllowThreads();
8886 result = (int)(arg1)->GetDepth();
8887 wxPyEndAllowThreads(__tstate);
8888 if (PyErr_Occurred()) SWIG_fail;
8889 }
8890 resultobj = SWIG_From_int(static_cast< int >(result));
8891 return resultobj;
8892 fail:
8893 return NULL;
8894 }
8895
8896
8897 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8898 PyObject *resultobj = 0;
8899 wxIcon *arg1 = (wxIcon *) 0 ;
8900 int arg2 ;
8901 void *argp1 = 0 ;
8902 int res1 = 0 ;
8903 int val2 ;
8904 int ecode2 = 0 ;
8905 PyObject * obj0 = 0 ;
8906 PyObject * obj1 = 0 ;
8907 char * kwnames[] = {
8908 (char *) "self",(char *) "w", NULL
8909 };
8910
8911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
8912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8913 if (!SWIG_IsOK(res1)) {
8914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8915 }
8916 arg1 = reinterpret_cast< wxIcon * >(argp1);
8917 ecode2 = SWIG_AsVal_int(obj1, &val2);
8918 if (!SWIG_IsOK(ecode2)) {
8919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
8920 }
8921 arg2 = static_cast< int >(val2);
8922 {
8923 PyThreadState* __tstate = wxPyBeginAllowThreads();
8924 (arg1)->SetWidth(arg2);
8925 wxPyEndAllowThreads(__tstate);
8926 if (PyErr_Occurred()) SWIG_fail;
8927 }
8928 resultobj = SWIG_Py_Void();
8929 return resultobj;
8930 fail:
8931 return NULL;
8932 }
8933
8934
8935 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8936 PyObject *resultobj = 0;
8937 wxIcon *arg1 = (wxIcon *) 0 ;
8938 int arg2 ;
8939 void *argp1 = 0 ;
8940 int res1 = 0 ;
8941 int val2 ;
8942 int ecode2 = 0 ;
8943 PyObject * obj0 = 0 ;
8944 PyObject * obj1 = 0 ;
8945 char * kwnames[] = {
8946 (char *) "self",(char *) "h", NULL
8947 };
8948
8949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
8950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8951 if (!SWIG_IsOK(res1)) {
8952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
8953 }
8954 arg1 = reinterpret_cast< wxIcon * >(argp1);
8955 ecode2 = SWIG_AsVal_int(obj1, &val2);
8956 if (!SWIG_IsOK(ecode2)) {
8957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
8958 }
8959 arg2 = static_cast< int >(val2);
8960 {
8961 PyThreadState* __tstate = wxPyBeginAllowThreads();
8962 (arg1)->SetHeight(arg2);
8963 wxPyEndAllowThreads(__tstate);
8964 if (PyErr_Occurred()) SWIG_fail;
8965 }
8966 resultobj = SWIG_Py_Void();
8967 return resultobj;
8968 fail:
8969 return NULL;
8970 }
8971
8972
8973 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8974 PyObject *resultobj = 0;
8975 wxIcon *arg1 = (wxIcon *) 0 ;
8976 int arg2 ;
8977 void *argp1 = 0 ;
8978 int res1 = 0 ;
8979 int val2 ;
8980 int ecode2 = 0 ;
8981 PyObject * obj0 = 0 ;
8982 PyObject * obj1 = 0 ;
8983 char * kwnames[] = {
8984 (char *) "self",(char *) "d", NULL
8985 };
8986
8987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
8988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8989 if (!SWIG_IsOK(res1)) {
8990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
8991 }
8992 arg1 = reinterpret_cast< wxIcon * >(argp1);
8993 ecode2 = SWIG_AsVal_int(obj1, &val2);
8994 if (!SWIG_IsOK(ecode2)) {
8995 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
8996 }
8997 arg2 = static_cast< int >(val2);
8998 {
8999 PyThreadState* __tstate = wxPyBeginAllowThreads();
9000 (arg1)->SetDepth(arg2);
9001 wxPyEndAllowThreads(__tstate);
9002 if (PyErr_Occurred()) SWIG_fail;
9003 }
9004 resultobj = SWIG_Py_Void();
9005 return resultobj;
9006 fail:
9007 return NULL;
9008 }
9009
9010
9011 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9012 PyObject *resultobj = 0;
9013 wxIcon *arg1 = (wxIcon *) 0 ;
9014 wxBitmap *arg2 = 0 ;
9015 void *argp1 = 0 ;
9016 int res1 = 0 ;
9017 void *argp2 = 0 ;
9018 int res2 = 0 ;
9019 PyObject * obj0 = 0 ;
9020 PyObject * obj1 = 0 ;
9021 char * kwnames[] = {
9022 (char *) "self",(char *) "bmp", NULL
9023 };
9024
9025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9027 if (!SWIG_IsOK(res1)) {
9028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9029 }
9030 arg1 = reinterpret_cast< wxIcon * >(argp1);
9031 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9032 if (!SWIG_IsOK(res2)) {
9033 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9034 }
9035 if (!argp2) {
9036 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9037 }
9038 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9039 {
9040 PyThreadState* __tstate = wxPyBeginAllowThreads();
9041 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9042 wxPyEndAllowThreads(__tstate);
9043 if (PyErr_Occurred()) SWIG_fail;
9044 }
9045 resultobj = SWIG_Py_Void();
9046 return resultobj;
9047 fail:
9048 return NULL;
9049 }
9050
9051
9052 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9053 PyObject *obj;
9054 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9055 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9056 return SWIG_Py_Void();
9057 }
9058
9059 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9060 return SWIG_Python_InitShadowInstance(args);
9061 }
9062
9063 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9064 PyObject *resultobj = 0;
9065 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9066 int arg2 = (int) 0 ;
9067 wxIconLocation *result = 0 ;
9068 bool temp1 = false ;
9069 int val2 ;
9070 int ecode2 = 0 ;
9071 PyObject * obj0 = 0 ;
9072 PyObject * obj1 = 0 ;
9073 char * kwnames[] = {
9074 (char *) "filename",(char *) "num", NULL
9075 };
9076
9077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9078 if (obj0) {
9079 {
9080 arg1 = wxString_in_helper(obj0);
9081 if (arg1 == NULL) SWIG_fail;
9082 temp1 = true;
9083 }
9084 }
9085 if (obj1) {
9086 ecode2 = SWIG_AsVal_int(obj1, &val2);
9087 if (!SWIG_IsOK(ecode2)) {
9088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9089 }
9090 arg2 = static_cast< int >(val2);
9091 }
9092 {
9093 PyThreadState* __tstate = wxPyBeginAllowThreads();
9094 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9095 wxPyEndAllowThreads(__tstate);
9096 if (PyErr_Occurred()) SWIG_fail;
9097 }
9098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9099 {
9100 if (temp1)
9101 delete arg1;
9102 }
9103 return resultobj;
9104 fail:
9105 {
9106 if (temp1)
9107 delete arg1;
9108 }
9109 return NULL;
9110 }
9111
9112
9113 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9114 PyObject *resultobj = 0;
9115 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9116 void *argp1 = 0 ;
9117 int res1 = 0 ;
9118 PyObject *swig_obj[1] ;
9119
9120 if (!args) SWIG_fail;
9121 swig_obj[0] = args;
9122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9123 if (!SWIG_IsOK(res1)) {
9124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9125 }
9126 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9127 {
9128 PyThreadState* __tstate = wxPyBeginAllowThreads();
9129 delete arg1;
9130
9131 wxPyEndAllowThreads(__tstate);
9132 if (PyErr_Occurred()) SWIG_fail;
9133 }
9134 resultobj = SWIG_Py_Void();
9135 return resultobj;
9136 fail:
9137 return NULL;
9138 }
9139
9140
9141 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9142 PyObject *resultobj = 0;
9143 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9144 bool result;
9145 void *argp1 = 0 ;
9146 int res1 = 0 ;
9147 PyObject *swig_obj[1] ;
9148
9149 if (!args) SWIG_fail;
9150 swig_obj[0] = args;
9151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9152 if (!SWIG_IsOK(res1)) {
9153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9154 }
9155 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9156 {
9157 PyThreadState* __tstate = wxPyBeginAllowThreads();
9158 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9159 wxPyEndAllowThreads(__tstate);
9160 if (PyErr_Occurred()) SWIG_fail;
9161 }
9162 {
9163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9164 }
9165 return resultobj;
9166 fail:
9167 return NULL;
9168 }
9169
9170
9171 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9172 PyObject *resultobj = 0;
9173 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9174 wxString *arg2 = 0 ;
9175 void *argp1 = 0 ;
9176 int res1 = 0 ;
9177 bool temp2 = false ;
9178 PyObject * obj0 = 0 ;
9179 PyObject * obj1 = 0 ;
9180 char * kwnames[] = {
9181 (char *) "self",(char *) "filename", NULL
9182 };
9183
9184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9186 if (!SWIG_IsOK(res1)) {
9187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9188 }
9189 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9190 {
9191 arg2 = wxString_in_helper(obj1);
9192 if (arg2 == NULL) SWIG_fail;
9193 temp2 = true;
9194 }
9195 {
9196 PyThreadState* __tstate = wxPyBeginAllowThreads();
9197 (arg1)->SetFileName((wxString const &)*arg2);
9198 wxPyEndAllowThreads(__tstate);
9199 if (PyErr_Occurred()) SWIG_fail;
9200 }
9201 resultobj = SWIG_Py_Void();
9202 {
9203 if (temp2)
9204 delete arg2;
9205 }
9206 return resultobj;
9207 fail:
9208 {
9209 if (temp2)
9210 delete arg2;
9211 }
9212 return NULL;
9213 }
9214
9215
9216 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9217 PyObject *resultobj = 0;
9218 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9219 wxString *result = 0 ;
9220 void *argp1 = 0 ;
9221 int res1 = 0 ;
9222 PyObject *swig_obj[1] ;
9223
9224 if (!args) SWIG_fail;
9225 swig_obj[0] = args;
9226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9227 if (!SWIG_IsOK(res1)) {
9228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9229 }
9230 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9231 {
9232 PyThreadState* __tstate = wxPyBeginAllowThreads();
9233 {
9234 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9235 result = (wxString *) &_result_ref;
9236 }
9237 wxPyEndAllowThreads(__tstate);
9238 if (PyErr_Occurred()) SWIG_fail;
9239 }
9240 {
9241 #if wxUSE_UNICODE
9242 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9243 #else
9244 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9245 #endif
9246 }
9247 return resultobj;
9248 fail:
9249 return NULL;
9250 }
9251
9252
9253 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9254 PyObject *resultobj = 0;
9255 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9256 int arg2 ;
9257 void *argp1 = 0 ;
9258 int res1 = 0 ;
9259 int val2 ;
9260 int ecode2 = 0 ;
9261 PyObject * obj0 = 0 ;
9262 PyObject * obj1 = 0 ;
9263 char * kwnames[] = {
9264 (char *) "self",(char *) "num", NULL
9265 };
9266
9267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9269 if (!SWIG_IsOK(res1)) {
9270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9271 }
9272 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9273 ecode2 = SWIG_AsVal_int(obj1, &val2);
9274 if (!SWIG_IsOK(ecode2)) {
9275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9276 }
9277 arg2 = static_cast< int >(val2);
9278 {
9279 PyThreadState* __tstate = wxPyBeginAllowThreads();
9280 wxIconLocation_SetIndex(arg1,arg2);
9281 wxPyEndAllowThreads(__tstate);
9282 if (PyErr_Occurred()) SWIG_fail;
9283 }
9284 resultobj = SWIG_Py_Void();
9285 return resultobj;
9286 fail:
9287 return NULL;
9288 }
9289
9290
9291 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9292 PyObject *resultobj = 0;
9293 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9294 int result;
9295 void *argp1 = 0 ;
9296 int res1 = 0 ;
9297 PyObject *swig_obj[1] ;
9298
9299 if (!args) SWIG_fail;
9300 swig_obj[0] = args;
9301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9302 if (!SWIG_IsOK(res1)) {
9303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9304 }
9305 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9306 {
9307 PyThreadState* __tstate = wxPyBeginAllowThreads();
9308 result = (int)wxIconLocation_GetIndex(arg1);
9309 wxPyEndAllowThreads(__tstate);
9310 if (PyErr_Occurred()) SWIG_fail;
9311 }
9312 resultobj = SWIG_From_int(static_cast< int >(result));
9313 return resultobj;
9314 fail:
9315 return NULL;
9316 }
9317
9318
9319 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9320 PyObject *obj;
9321 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9322 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9323 return SWIG_Py_Void();
9324 }
9325
9326 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9327 return SWIG_Python_InitShadowInstance(args);
9328 }
9329
9330 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9331 PyObject *resultobj = 0;
9332 wxIconBundle *result = 0 ;
9333
9334 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9335 {
9336 PyThreadState* __tstate = wxPyBeginAllowThreads();
9337 result = (wxIconBundle *)new wxIconBundle();
9338 wxPyEndAllowThreads(__tstate);
9339 if (PyErr_Occurred()) SWIG_fail;
9340 }
9341 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9342 return resultobj;
9343 fail:
9344 return NULL;
9345 }
9346
9347
9348 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9349 PyObject *resultobj = 0;
9350 wxString *arg1 = 0 ;
9351 long arg2 ;
9352 wxIconBundle *result = 0 ;
9353 bool temp1 = false ;
9354 long val2 ;
9355 int ecode2 = 0 ;
9356 PyObject * obj0 = 0 ;
9357 PyObject * obj1 = 0 ;
9358 char * kwnames[] = {
9359 (char *) "file",(char *) "type", NULL
9360 };
9361
9362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9363 {
9364 arg1 = wxString_in_helper(obj0);
9365 if (arg1 == NULL) SWIG_fail;
9366 temp1 = true;
9367 }
9368 ecode2 = SWIG_AsVal_long(obj1, &val2);
9369 if (!SWIG_IsOK(ecode2)) {
9370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9371 }
9372 arg2 = static_cast< long >(val2);
9373 {
9374 PyThreadState* __tstate = wxPyBeginAllowThreads();
9375 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9376 wxPyEndAllowThreads(__tstate);
9377 if (PyErr_Occurred()) SWIG_fail;
9378 }
9379 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9380 {
9381 if (temp1)
9382 delete arg1;
9383 }
9384 return resultobj;
9385 fail:
9386 {
9387 if (temp1)
9388 delete arg1;
9389 }
9390 return NULL;
9391 }
9392
9393
9394 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9395 PyObject *resultobj = 0;
9396 wxIcon *arg1 = 0 ;
9397 wxIconBundle *result = 0 ;
9398 void *argp1 = 0 ;
9399 int res1 = 0 ;
9400 PyObject * obj0 = 0 ;
9401 char * kwnames[] = {
9402 (char *) "icon", NULL
9403 };
9404
9405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9406 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9407 if (!SWIG_IsOK(res1)) {
9408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9409 }
9410 if (!argp1) {
9411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9412 }
9413 arg1 = reinterpret_cast< wxIcon * >(argp1);
9414 {
9415 PyThreadState* __tstate = wxPyBeginAllowThreads();
9416 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9417 wxPyEndAllowThreads(__tstate);
9418 if (PyErr_Occurred()) SWIG_fail;
9419 }
9420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9421 return resultobj;
9422 fail:
9423 return NULL;
9424 }
9425
9426
9427 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9428 PyObject *resultobj = 0;
9429 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9430 void *argp1 = 0 ;
9431 int res1 = 0 ;
9432 PyObject *swig_obj[1] ;
9433
9434 if (!args) SWIG_fail;
9435 swig_obj[0] = args;
9436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9437 if (!SWIG_IsOK(res1)) {
9438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9439 }
9440 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9441 {
9442 PyThreadState* __tstate = wxPyBeginAllowThreads();
9443 delete arg1;
9444
9445 wxPyEndAllowThreads(__tstate);
9446 if (PyErr_Occurred()) SWIG_fail;
9447 }
9448 resultobj = SWIG_Py_Void();
9449 return resultobj;
9450 fail:
9451 return NULL;
9452 }
9453
9454
9455 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9456 PyObject *resultobj = 0;
9457 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9458 wxIcon *arg2 = 0 ;
9459 void *argp1 = 0 ;
9460 int res1 = 0 ;
9461 void *argp2 = 0 ;
9462 int res2 = 0 ;
9463 PyObject * obj0 = 0 ;
9464 PyObject * obj1 = 0 ;
9465 char * kwnames[] = {
9466 (char *) "self",(char *) "icon", NULL
9467 };
9468
9469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9471 if (!SWIG_IsOK(res1)) {
9472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9473 }
9474 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9475 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9476 if (!SWIG_IsOK(res2)) {
9477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9478 }
9479 if (!argp2) {
9480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9481 }
9482 arg2 = reinterpret_cast< wxIcon * >(argp2);
9483 {
9484 PyThreadState* __tstate = wxPyBeginAllowThreads();
9485 (arg1)->AddIcon((wxIcon const &)*arg2);
9486 wxPyEndAllowThreads(__tstate);
9487 if (PyErr_Occurred()) SWIG_fail;
9488 }
9489 resultobj = SWIG_Py_Void();
9490 return resultobj;
9491 fail:
9492 return NULL;
9493 }
9494
9495
9496 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9497 PyObject *resultobj = 0;
9498 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9499 wxString *arg2 = 0 ;
9500 long arg3 ;
9501 void *argp1 = 0 ;
9502 int res1 = 0 ;
9503 bool temp2 = false ;
9504 long val3 ;
9505 int ecode3 = 0 ;
9506 PyObject * obj0 = 0 ;
9507 PyObject * obj1 = 0 ;
9508 PyObject * obj2 = 0 ;
9509 char * kwnames[] = {
9510 (char *) "self",(char *) "file",(char *) "type", NULL
9511 };
9512
9513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9515 if (!SWIG_IsOK(res1)) {
9516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9517 }
9518 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9519 {
9520 arg2 = wxString_in_helper(obj1);
9521 if (arg2 == NULL) SWIG_fail;
9522 temp2 = true;
9523 }
9524 ecode3 = SWIG_AsVal_long(obj2, &val3);
9525 if (!SWIG_IsOK(ecode3)) {
9526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9527 }
9528 arg3 = static_cast< long >(val3);
9529 {
9530 PyThreadState* __tstate = wxPyBeginAllowThreads();
9531 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9532 wxPyEndAllowThreads(__tstate);
9533 if (PyErr_Occurred()) SWIG_fail;
9534 }
9535 resultobj = SWIG_Py_Void();
9536 {
9537 if (temp2)
9538 delete arg2;
9539 }
9540 return resultobj;
9541 fail:
9542 {
9543 if (temp2)
9544 delete arg2;
9545 }
9546 return NULL;
9547 }
9548
9549
9550 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9551 PyObject *resultobj = 0;
9552 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9553 wxSize *arg2 = 0 ;
9554 wxIcon *result = 0 ;
9555 void *argp1 = 0 ;
9556 int res1 = 0 ;
9557 wxSize temp2 ;
9558 PyObject * obj0 = 0 ;
9559 PyObject * obj1 = 0 ;
9560 char * kwnames[] = {
9561 (char *) "self",(char *) "size", NULL
9562 };
9563
9564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9566 if (!SWIG_IsOK(res1)) {
9567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9568 }
9569 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9570 {
9571 arg2 = &temp2;
9572 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9573 }
9574 {
9575 PyThreadState* __tstate = wxPyBeginAllowThreads();
9576 {
9577 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9578 result = (wxIcon *) &_result_ref;
9579 }
9580 wxPyEndAllowThreads(__tstate);
9581 if (PyErr_Occurred()) SWIG_fail;
9582 }
9583 {
9584 wxIcon* resultptr = new wxIcon(*result);
9585 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9586 }
9587 return resultobj;
9588 fail:
9589 return NULL;
9590 }
9591
9592
9593 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9594 PyObject *obj;
9595 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9596 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9597 return SWIG_Py_Void();
9598 }
9599
9600 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9601 return SWIG_Python_InitShadowInstance(args);
9602 }
9603
9604 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9605 PyObject *resultobj = 0;
9606 wxString *arg1 = 0 ;
9607 long arg2 ;
9608 int arg3 = (int) 0 ;
9609 int arg4 = (int) 0 ;
9610 wxCursor *result = 0 ;
9611 bool temp1 = false ;
9612 long val2 ;
9613 int ecode2 = 0 ;
9614 int val3 ;
9615 int ecode3 = 0 ;
9616 int val4 ;
9617 int ecode4 = 0 ;
9618 PyObject * obj0 = 0 ;
9619 PyObject * obj1 = 0 ;
9620 PyObject * obj2 = 0 ;
9621 PyObject * obj3 = 0 ;
9622 char * kwnames[] = {
9623 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9624 };
9625
9626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9627 {
9628 arg1 = wxString_in_helper(obj0);
9629 if (arg1 == NULL) SWIG_fail;
9630 temp1 = true;
9631 }
9632 ecode2 = SWIG_AsVal_long(obj1, &val2);
9633 if (!SWIG_IsOK(ecode2)) {
9634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9635 }
9636 arg2 = static_cast< long >(val2);
9637 if (obj2) {
9638 ecode3 = SWIG_AsVal_int(obj2, &val3);
9639 if (!SWIG_IsOK(ecode3)) {
9640 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9641 }
9642 arg3 = static_cast< int >(val3);
9643 }
9644 if (obj3) {
9645 ecode4 = SWIG_AsVal_int(obj3, &val4);
9646 if (!SWIG_IsOK(ecode4)) {
9647 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9648 }
9649 arg4 = static_cast< int >(val4);
9650 }
9651 {
9652 if (!wxPyCheckForApp()) SWIG_fail;
9653 PyThreadState* __tstate = wxPyBeginAllowThreads();
9654 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9655 wxPyEndAllowThreads(__tstate);
9656 if (PyErr_Occurred()) SWIG_fail;
9657 }
9658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9659 {
9660 if (temp1)
9661 delete arg1;
9662 }
9663 return resultobj;
9664 fail:
9665 {
9666 if (temp1)
9667 delete arg1;
9668 }
9669 return NULL;
9670 }
9671
9672
9673 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9674 PyObject *resultobj = 0;
9675 wxCursor *arg1 = (wxCursor *) 0 ;
9676 void *argp1 = 0 ;
9677 int res1 = 0 ;
9678 PyObject *swig_obj[1] ;
9679
9680 if (!args) SWIG_fail;
9681 swig_obj[0] = args;
9682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9683 if (!SWIG_IsOK(res1)) {
9684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9685 }
9686 arg1 = reinterpret_cast< wxCursor * >(argp1);
9687 {
9688 PyThreadState* __tstate = wxPyBeginAllowThreads();
9689 delete arg1;
9690
9691 wxPyEndAllowThreads(__tstate);
9692 if (PyErr_Occurred()) SWIG_fail;
9693 }
9694 resultobj = SWIG_Py_Void();
9695 return resultobj;
9696 fail:
9697 return NULL;
9698 }
9699
9700
9701 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9702 PyObject *resultobj = 0;
9703 int arg1 ;
9704 wxCursor *result = 0 ;
9705 int val1 ;
9706 int ecode1 = 0 ;
9707 PyObject * obj0 = 0 ;
9708 char * kwnames[] = {
9709 (char *) "id", NULL
9710 };
9711
9712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9713 ecode1 = SWIG_AsVal_int(obj0, &val1);
9714 if (!SWIG_IsOK(ecode1)) {
9715 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9716 }
9717 arg1 = static_cast< int >(val1);
9718 {
9719 if (!wxPyCheckForApp()) SWIG_fail;
9720 PyThreadState* __tstate = wxPyBeginAllowThreads();
9721 result = (wxCursor *)new wxCursor(arg1);
9722 wxPyEndAllowThreads(__tstate);
9723 if (PyErr_Occurred()) SWIG_fail;
9724 }
9725 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9726 return resultobj;
9727 fail:
9728 return NULL;
9729 }
9730
9731
9732 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9733 PyObject *resultobj = 0;
9734 wxImage *arg1 = 0 ;
9735 wxCursor *result = 0 ;
9736 void *argp1 = 0 ;
9737 int res1 = 0 ;
9738 PyObject * obj0 = 0 ;
9739 char * kwnames[] = {
9740 (char *) "image", NULL
9741 };
9742
9743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9744 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9745 if (!SWIG_IsOK(res1)) {
9746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9747 }
9748 if (!argp1) {
9749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9750 }
9751 arg1 = reinterpret_cast< wxImage * >(argp1);
9752 {
9753 if (!wxPyCheckForApp()) SWIG_fail;
9754 PyThreadState* __tstate = wxPyBeginAllowThreads();
9755 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9756 wxPyEndAllowThreads(__tstate);
9757 if (PyErr_Occurred()) SWIG_fail;
9758 }
9759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9760 return resultobj;
9761 fail:
9762 return NULL;
9763 }
9764
9765
9766 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9767 PyObject *resultobj = 0;
9768 wxCursor *arg1 = (wxCursor *) 0 ;
9769 bool result;
9770 void *argp1 = 0 ;
9771 int res1 = 0 ;
9772 PyObject *swig_obj[1] ;
9773
9774 if (!args) SWIG_fail;
9775 swig_obj[0] = args;
9776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9777 if (!SWIG_IsOK(res1)) {
9778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
9779 }
9780 arg1 = reinterpret_cast< wxCursor * >(argp1);
9781 {
9782 PyThreadState* __tstate = wxPyBeginAllowThreads();
9783 result = (bool)(arg1)->Ok();
9784 wxPyEndAllowThreads(__tstate);
9785 if (PyErr_Occurred()) SWIG_fail;
9786 }
9787 {
9788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9789 }
9790 return resultobj;
9791 fail:
9792 return NULL;
9793 }
9794
9795
9796 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9797 PyObject *obj;
9798 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9799 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9800 return SWIG_Py_Void();
9801 }
9802
9803 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9804 return SWIG_Python_InitShadowInstance(args);
9805 }
9806
9807 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9808 PyObject *resultobj = 0;
9809 int arg1 = (int) 0 ;
9810 int arg2 = (int) 0 ;
9811 int arg3 = (int) 0 ;
9812 int arg4 = (int) 0 ;
9813 wxRegion *result = 0 ;
9814 int val1 ;
9815 int ecode1 = 0 ;
9816 int val2 ;
9817 int ecode2 = 0 ;
9818 int val3 ;
9819 int ecode3 = 0 ;
9820 int val4 ;
9821 int ecode4 = 0 ;
9822 PyObject * obj0 = 0 ;
9823 PyObject * obj1 = 0 ;
9824 PyObject * obj2 = 0 ;
9825 PyObject * obj3 = 0 ;
9826 char * kwnames[] = {
9827 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9828 };
9829
9830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9831 if (obj0) {
9832 ecode1 = SWIG_AsVal_int(obj0, &val1);
9833 if (!SWIG_IsOK(ecode1)) {
9834 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
9835 }
9836 arg1 = static_cast< int >(val1);
9837 }
9838 if (obj1) {
9839 ecode2 = SWIG_AsVal_int(obj1, &val2);
9840 if (!SWIG_IsOK(ecode2)) {
9841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
9842 }
9843 arg2 = static_cast< int >(val2);
9844 }
9845 if (obj2) {
9846 ecode3 = SWIG_AsVal_int(obj2, &val3);
9847 if (!SWIG_IsOK(ecode3)) {
9848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
9849 }
9850 arg3 = static_cast< int >(val3);
9851 }
9852 if (obj3) {
9853 ecode4 = SWIG_AsVal_int(obj3, &val4);
9854 if (!SWIG_IsOK(ecode4)) {
9855 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
9856 }
9857 arg4 = static_cast< int >(val4);
9858 }
9859 {
9860 if (!wxPyCheckForApp()) SWIG_fail;
9861 PyThreadState* __tstate = wxPyBeginAllowThreads();
9862 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
9863 wxPyEndAllowThreads(__tstate);
9864 if (PyErr_Occurred()) SWIG_fail;
9865 }
9866 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
9867 return resultobj;
9868 fail:
9869 return NULL;
9870 }
9871
9872
9873 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9874 PyObject *resultobj = 0;
9875 wxBitmap *arg1 = 0 ;
9876 wxRegion *result = 0 ;
9877 void *argp1 = 0 ;
9878 int res1 = 0 ;
9879 PyObject * obj0 = 0 ;
9880 char * kwnames[] = {
9881 (char *) "bmp", NULL
9882 };
9883
9884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
9885 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9886 if (!SWIG_IsOK(res1)) {
9887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9888 }
9889 if (!argp1) {
9890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9891 }
9892 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9893 {
9894 if (!wxPyCheckForApp()) SWIG_fail;
9895 PyThreadState* __tstate = wxPyBeginAllowThreads();
9896 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
9897 wxPyEndAllowThreads(__tstate);
9898 if (PyErr_Occurred()) SWIG_fail;
9899 }
9900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
9901 return resultobj;
9902 fail:
9903 return NULL;
9904 }
9905
9906
9907 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9908 PyObject *resultobj = 0;
9909 wxBitmap *arg1 = 0 ;
9910 wxColour *arg2 = 0 ;
9911 int arg3 = (int) 0 ;
9912 wxRegion *result = 0 ;
9913 void *argp1 = 0 ;
9914 int res1 = 0 ;
9915 wxColour temp2 ;
9916 int val3 ;
9917 int ecode3 = 0 ;
9918 PyObject * obj0 = 0 ;
9919 PyObject * obj1 = 0 ;
9920 PyObject * obj2 = 0 ;
9921 char * kwnames[] = {
9922 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
9923 };
9924
9925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9926 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9927 if (!SWIG_IsOK(res1)) {
9928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9929 }
9930 if (!argp1) {
9931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9932 }
9933 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9934 {
9935 arg2 = &temp2;
9936 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9937 }
9938 if (obj2) {
9939 ecode3 = SWIG_AsVal_int(obj2, &val3);
9940 if (!SWIG_IsOK(ecode3)) {
9941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
9942 }
9943 arg3 = static_cast< int >(val3);
9944 }
9945 {
9946 if (!wxPyCheckForApp()) SWIG_fail;
9947 PyThreadState* __tstate = wxPyBeginAllowThreads();
9948 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
9949 wxPyEndAllowThreads(__tstate);
9950 if (PyErr_Occurred()) SWIG_fail;
9951 }
9952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
9953 return resultobj;
9954 fail:
9955 return NULL;
9956 }
9957
9958
9959 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9960 PyObject *resultobj = 0;
9961 int arg1 ;
9962 wxPoint *arg2 = (wxPoint *) 0 ;
9963 int arg3 = (int) wxWINDING_RULE ;
9964 wxRegion *result = 0 ;
9965 int val3 ;
9966 int ecode3 = 0 ;
9967 PyObject * obj0 = 0 ;
9968 PyObject * obj1 = 0 ;
9969 char * kwnames[] = {
9970 (char *) "points",(char *) "fillStyle", NULL
9971 };
9972
9973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
9974 {
9975 arg2 = wxPoint_LIST_helper(obj0, &arg1);
9976 if (arg2 == NULL) SWIG_fail;
9977 }
9978 if (obj1) {
9979 ecode3 = SWIG_AsVal_int(obj1, &val3);
9980 if (!SWIG_IsOK(ecode3)) {
9981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
9982 }
9983 arg3 = static_cast< int >(val3);
9984 }
9985 {
9986 if (!wxPyCheckForApp()) SWIG_fail;
9987 PyThreadState* __tstate = wxPyBeginAllowThreads();
9988 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
9989 wxPyEndAllowThreads(__tstate);
9990 if (PyErr_Occurred()) SWIG_fail;
9991 }
9992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
9993 {
9994 if (arg2) delete [] arg2;
9995 }
9996 return resultobj;
9997 fail:
9998 {
9999 if (arg2) delete [] arg2;
10000 }
10001 return NULL;
10002 }
10003
10004
10005 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10006 PyObject *resultobj = 0;
10007 wxRegion *arg1 = (wxRegion *) 0 ;
10008 void *argp1 = 0 ;
10009 int res1 = 0 ;
10010 PyObject *swig_obj[1] ;
10011
10012 if (!args) SWIG_fail;
10013 swig_obj[0] = args;
10014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10015 if (!SWIG_IsOK(res1)) {
10016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10017 }
10018 arg1 = reinterpret_cast< wxRegion * >(argp1);
10019 {
10020 PyThreadState* __tstate = wxPyBeginAllowThreads();
10021 delete arg1;
10022
10023 wxPyEndAllowThreads(__tstate);
10024 if (PyErr_Occurred()) SWIG_fail;
10025 }
10026 resultobj = SWIG_Py_Void();
10027 return resultobj;
10028 fail:
10029 return NULL;
10030 }
10031
10032
10033 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10034 PyObject *resultobj = 0;
10035 wxRegion *arg1 = (wxRegion *) 0 ;
10036 void *argp1 = 0 ;
10037 int res1 = 0 ;
10038 PyObject *swig_obj[1] ;
10039
10040 if (!args) SWIG_fail;
10041 swig_obj[0] = args;
10042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10043 if (!SWIG_IsOK(res1)) {
10044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10045 }
10046 arg1 = reinterpret_cast< wxRegion * >(argp1);
10047 {
10048 PyThreadState* __tstate = wxPyBeginAllowThreads();
10049 (arg1)->Clear();
10050 wxPyEndAllowThreads(__tstate);
10051 if (PyErr_Occurred()) SWIG_fail;
10052 }
10053 resultobj = SWIG_Py_Void();
10054 return resultobj;
10055 fail:
10056 return NULL;
10057 }
10058
10059
10060 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10061 PyObject *resultobj = 0;
10062 wxRegion *arg1 = (wxRegion *) 0 ;
10063 int arg2 ;
10064 int arg3 ;
10065 bool result;
10066 void *argp1 = 0 ;
10067 int res1 = 0 ;
10068 int val2 ;
10069 int ecode2 = 0 ;
10070 int val3 ;
10071 int ecode3 = 0 ;
10072 PyObject * obj0 = 0 ;
10073 PyObject * obj1 = 0 ;
10074 PyObject * obj2 = 0 ;
10075 char * kwnames[] = {
10076 (char *) "self",(char *) "x",(char *) "y", NULL
10077 };
10078
10079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10081 if (!SWIG_IsOK(res1)) {
10082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10083 }
10084 arg1 = reinterpret_cast< wxRegion * >(argp1);
10085 ecode2 = SWIG_AsVal_int(obj1, &val2);
10086 if (!SWIG_IsOK(ecode2)) {
10087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10088 }
10089 arg2 = static_cast< int >(val2);
10090 ecode3 = SWIG_AsVal_int(obj2, &val3);
10091 if (!SWIG_IsOK(ecode3)) {
10092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10093 }
10094 arg3 = static_cast< int >(val3);
10095 {
10096 PyThreadState* __tstate = wxPyBeginAllowThreads();
10097 result = (bool)(arg1)->Offset(arg2,arg3);
10098 wxPyEndAllowThreads(__tstate);
10099 if (PyErr_Occurred()) SWIG_fail;
10100 }
10101 {
10102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10103 }
10104 return resultobj;
10105 fail:
10106 return NULL;
10107 }
10108
10109
10110 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10111 PyObject *resultobj = 0;
10112 wxRegion *arg1 = (wxRegion *) 0 ;
10113 int arg2 ;
10114 int arg3 ;
10115 wxRegionContain result;
10116 void *argp1 = 0 ;
10117 int res1 = 0 ;
10118 int val2 ;
10119 int ecode2 = 0 ;
10120 int val3 ;
10121 int ecode3 = 0 ;
10122 PyObject * obj0 = 0 ;
10123 PyObject * obj1 = 0 ;
10124 PyObject * obj2 = 0 ;
10125 char * kwnames[] = {
10126 (char *) "self",(char *) "x",(char *) "y", NULL
10127 };
10128
10129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10131 if (!SWIG_IsOK(res1)) {
10132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10133 }
10134 arg1 = reinterpret_cast< wxRegion * >(argp1);
10135 ecode2 = SWIG_AsVal_int(obj1, &val2);
10136 if (!SWIG_IsOK(ecode2)) {
10137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10138 }
10139 arg2 = static_cast< int >(val2);
10140 ecode3 = SWIG_AsVal_int(obj2, &val3);
10141 if (!SWIG_IsOK(ecode3)) {
10142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10143 }
10144 arg3 = static_cast< int >(val3);
10145 {
10146 PyThreadState* __tstate = wxPyBeginAllowThreads();
10147 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10148 wxPyEndAllowThreads(__tstate);
10149 if (PyErr_Occurred()) SWIG_fail;
10150 }
10151 resultobj = SWIG_From_int(static_cast< int >(result));
10152 return resultobj;
10153 fail:
10154 return NULL;
10155 }
10156
10157
10158 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10159 PyObject *resultobj = 0;
10160 wxRegion *arg1 = (wxRegion *) 0 ;
10161 wxPoint *arg2 = 0 ;
10162 wxRegionContain result;
10163 void *argp1 = 0 ;
10164 int res1 = 0 ;
10165 wxPoint temp2 ;
10166 PyObject * obj0 = 0 ;
10167 PyObject * obj1 = 0 ;
10168 char * kwnames[] = {
10169 (char *) "self",(char *) "pt", NULL
10170 };
10171
10172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10174 if (!SWIG_IsOK(res1)) {
10175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10176 }
10177 arg1 = reinterpret_cast< wxRegion * >(argp1);
10178 {
10179 arg2 = &temp2;
10180 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10181 }
10182 {
10183 PyThreadState* __tstate = wxPyBeginAllowThreads();
10184 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10185 wxPyEndAllowThreads(__tstate);
10186 if (PyErr_Occurred()) SWIG_fail;
10187 }
10188 resultobj = SWIG_From_int(static_cast< int >(result));
10189 return resultobj;
10190 fail:
10191 return NULL;
10192 }
10193
10194
10195 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10196 PyObject *resultobj = 0;
10197 wxRegion *arg1 = (wxRegion *) 0 ;
10198 wxRect *arg2 = 0 ;
10199 wxRegionContain result;
10200 void *argp1 = 0 ;
10201 int res1 = 0 ;
10202 wxRect temp2 ;
10203 PyObject * obj0 = 0 ;
10204 PyObject * obj1 = 0 ;
10205 char * kwnames[] = {
10206 (char *) "self",(char *) "rect", NULL
10207 };
10208
10209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10211 if (!SWIG_IsOK(res1)) {
10212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10213 }
10214 arg1 = reinterpret_cast< wxRegion * >(argp1);
10215 {
10216 arg2 = &temp2;
10217 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10218 }
10219 {
10220 PyThreadState* __tstate = wxPyBeginAllowThreads();
10221 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10222 wxPyEndAllowThreads(__tstate);
10223 if (PyErr_Occurred()) SWIG_fail;
10224 }
10225 resultobj = SWIG_From_int(static_cast< int >(result));
10226 return resultobj;
10227 fail:
10228 return NULL;
10229 }
10230
10231
10232 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10233 PyObject *resultobj = 0;
10234 wxRegion *arg1 = (wxRegion *) 0 ;
10235 int arg2 ;
10236 int arg3 ;
10237 int arg4 ;
10238 int arg5 ;
10239 wxRegionContain result;
10240 void *argp1 = 0 ;
10241 int res1 = 0 ;
10242 int val2 ;
10243 int ecode2 = 0 ;
10244 int val3 ;
10245 int ecode3 = 0 ;
10246 int val4 ;
10247 int ecode4 = 0 ;
10248 int val5 ;
10249 int ecode5 = 0 ;
10250 PyObject * obj0 = 0 ;
10251 PyObject * obj1 = 0 ;
10252 PyObject * obj2 = 0 ;
10253 PyObject * obj3 = 0 ;
10254 PyObject * obj4 = 0 ;
10255 char * kwnames[] = {
10256 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10257 };
10258
10259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10261 if (!SWIG_IsOK(res1)) {
10262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10263 }
10264 arg1 = reinterpret_cast< wxRegion * >(argp1);
10265 ecode2 = SWIG_AsVal_int(obj1, &val2);
10266 if (!SWIG_IsOK(ecode2)) {
10267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10268 }
10269 arg2 = static_cast< int >(val2);
10270 ecode3 = SWIG_AsVal_int(obj2, &val3);
10271 if (!SWIG_IsOK(ecode3)) {
10272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10273 }
10274 arg3 = static_cast< int >(val3);
10275 ecode4 = SWIG_AsVal_int(obj3, &val4);
10276 if (!SWIG_IsOK(ecode4)) {
10277 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10278 }
10279 arg4 = static_cast< int >(val4);
10280 ecode5 = SWIG_AsVal_int(obj4, &val5);
10281 if (!SWIG_IsOK(ecode5)) {
10282 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10283 }
10284 arg5 = static_cast< int >(val5);
10285 {
10286 PyThreadState* __tstate = wxPyBeginAllowThreads();
10287 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10288 wxPyEndAllowThreads(__tstate);
10289 if (PyErr_Occurred()) SWIG_fail;
10290 }
10291 resultobj = SWIG_From_int(static_cast< int >(result));
10292 return resultobj;
10293 fail:
10294 return NULL;
10295 }
10296
10297
10298 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10299 PyObject *resultobj = 0;
10300 wxRegion *arg1 = (wxRegion *) 0 ;
10301 wxRect result;
10302 void *argp1 = 0 ;
10303 int res1 = 0 ;
10304 PyObject *swig_obj[1] ;
10305
10306 if (!args) SWIG_fail;
10307 swig_obj[0] = args;
10308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10309 if (!SWIG_IsOK(res1)) {
10310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10311 }
10312 arg1 = reinterpret_cast< wxRegion * >(argp1);
10313 {
10314 PyThreadState* __tstate = wxPyBeginAllowThreads();
10315 result = (arg1)->GetBox();
10316 wxPyEndAllowThreads(__tstate);
10317 if (PyErr_Occurred()) SWIG_fail;
10318 }
10319 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10320 return resultobj;
10321 fail:
10322 return NULL;
10323 }
10324
10325
10326 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10327 PyObject *resultobj = 0;
10328 wxRegion *arg1 = (wxRegion *) 0 ;
10329 int arg2 ;
10330 int arg3 ;
10331 int arg4 ;
10332 int arg5 ;
10333 bool result;
10334 void *argp1 = 0 ;
10335 int res1 = 0 ;
10336 int val2 ;
10337 int ecode2 = 0 ;
10338 int val3 ;
10339 int ecode3 = 0 ;
10340 int val4 ;
10341 int ecode4 = 0 ;
10342 int val5 ;
10343 int ecode5 = 0 ;
10344 PyObject * obj0 = 0 ;
10345 PyObject * obj1 = 0 ;
10346 PyObject * obj2 = 0 ;
10347 PyObject * obj3 = 0 ;
10348 PyObject * obj4 = 0 ;
10349 char * kwnames[] = {
10350 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10351 };
10352
10353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10355 if (!SWIG_IsOK(res1)) {
10356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10357 }
10358 arg1 = reinterpret_cast< wxRegion * >(argp1);
10359 ecode2 = SWIG_AsVal_int(obj1, &val2);
10360 if (!SWIG_IsOK(ecode2)) {
10361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10362 }
10363 arg2 = static_cast< int >(val2);
10364 ecode3 = SWIG_AsVal_int(obj2, &val3);
10365 if (!SWIG_IsOK(ecode3)) {
10366 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10367 }
10368 arg3 = static_cast< int >(val3);
10369 ecode4 = SWIG_AsVal_int(obj3, &val4);
10370 if (!SWIG_IsOK(ecode4)) {
10371 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10372 }
10373 arg4 = static_cast< int >(val4);
10374 ecode5 = SWIG_AsVal_int(obj4, &val5);
10375 if (!SWIG_IsOK(ecode5)) {
10376 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10377 }
10378 arg5 = static_cast< int >(val5);
10379 {
10380 PyThreadState* __tstate = wxPyBeginAllowThreads();
10381 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10382 wxPyEndAllowThreads(__tstate);
10383 if (PyErr_Occurred()) SWIG_fail;
10384 }
10385 {
10386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10387 }
10388 return resultobj;
10389 fail:
10390 return NULL;
10391 }
10392
10393
10394 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10395 PyObject *resultobj = 0;
10396 wxRegion *arg1 = (wxRegion *) 0 ;
10397 wxRect *arg2 = 0 ;
10398 bool result;
10399 void *argp1 = 0 ;
10400 int res1 = 0 ;
10401 wxRect temp2 ;
10402 PyObject * obj0 = 0 ;
10403 PyObject * obj1 = 0 ;
10404 char * kwnames[] = {
10405 (char *) "self",(char *) "rect", NULL
10406 };
10407
10408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10410 if (!SWIG_IsOK(res1)) {
10411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10412 }
10413 arg1 = reinterpret_cast< wxRegion * >(argp1);
10414 {
10415 arg2 = &temp2;
10416 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10417 }
10418 {
10419 PyThreadState* __tstate = wxPyBeginAllowThreads();
10420 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10421 wxPyEndAllowThreads(__tstate);
10422 if (PyErr_Occurred()) SWIG_fail;
10423 }
10424 {
10425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10426 }
10427 return resultobj;
10428 fail:
10429 return NULL;
10430 }
10431
10432
10433 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10434 PyObject *resultobj = 0;
10435 wxRegion *arg1 = (wxRegion *) 0 ;
10436 wxRegion *arg2 = 0 ;
10437 bool result;
10438 void *argp1 = 0 ;
10439 int res1 = 0 ;
10440 void *argp2 = 0 ;
10441 int res2 = 0 ;
10442 PyObject * obj0 = 0 ;
10443 PyObject * obj1 = 0 ;
10444 char * kwnames[] = {
10445 (char *) "self",(char *) "region", NULL
10446 };
10447
10448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10450 if (!SWIG_IsOK(res1)) {
10451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10452 }
10453 arg1 = reinterpret_cast< wxRegion * >(argp1);
10454 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10455 if (!SWIG_IsOK(res2)) {
10456 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10457 }
10458 if (!argp2) {
10459 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10460 }
10461 arg2 = reinterpret_cast< wxRegion * >(argp2);
10462 {
10463 PyThreadState* __tstate = wxPyBeginAllowThreads();
10464 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10465 wxPyEndAllowThreads(__tstate);
10466 if (PyErr_Occurred()) SWIG_fail;
10467 }
10468 {
10469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10470 }
10471 return resultobj;
10472 fail:
10473 return NULL;
10474 }
10475
10476
10477 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10478 PyObject *resultobj = 0;
10479 wxRegion *arg1 = (wxRegion *) 0 ;
10480 bool result;
10481 void *argp1 = 0 ;
10482 int res1 = 0 ;
10483 PyObject *swig_obj[1] ;
10484
10485 if (!args) SWIG_fail;
10486 swig_obj[0] = args;
10487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10488 if (!SWIG_IsOK(res1)) {
10489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10490 }
10491 arg1 = reinterpret_cast< wxRegion * >(argp1);
10492 {
10493 PyThreadState* __tstate = wxPyBeginAllowThreads();
10494 result = (bool)(arg1)->IsEmpty();
10495 wxPyEndAllowThreads(__tstate);
10496 if (PyErr_Occurred()) SWIG_fail;
10497 }
10498 {
10499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10500 }
10501 return resultobj;
10502 fail:
10503 return NULL;
10504 }
10505
10506
10507 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10508 PyObject *resultobj = 0;
10509 wxRegion *arg1 = (wxRegion *) 0 ;
10510 int arg2 ;
10511 int arg3 ;
10512 int arg4 ;
10513 int arg5 ;
10514 bool result;
10515 void *argp1 = 0 ;
10516 int res1 = 0 ;
10517 int val2 ;
10518 int ecode2 = 0 ;
10519 int val3 ;
10520 int ecode3 = 0 ;
10521 int val4 ;
10522 int ecode4 = 0 ;
10523 int val5 ;
10524 int ecode5 = 0 ;
10525 PyObject * obj0 = 0 ;
10526 PyObject * obj1 = 0 ;
10527 PyObject * obj2 = 0 ;
10528 PyObject * obj3 = 0 ;
10529 PyObject * obj4 = 0 ;
10530 char * kwnames[] = {
10531 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10532 };
10533
10534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10536 if (!SWIG_IsOK(res1)) {
10537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10538 }
10539 arg1 = reinterpret_cast< wxRegion * >(argp1);
10540 ecode2 = SWIG_AsVal_int(obj1, &val2);
10541 if (!SWIG_IsOK(ecode2)) {
10542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10543 }
10544 arg2 = static_cast< int >(val2);
10545 ecode3 = SWIG_AsVal_int(obj2, &val3);
10546 if (!SWIG_IsOK(ecode3)) {
10547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10548 }
10549 arg3 = static_cast< int >(val3);
10550 ecode4 = SWIG_AsVal_int(obj3, &val4);
10551 if (!SWIG_IsOK(ecode4)) {
10552 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10553 }
10554 arg4 = static_cast< int >(val4);
10555 ecode5 = SWIG_AsVal_int(obj4, &val5);
10556 if (!SWIG_IsOK(ecode5)) {
10557 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10558 }
10559 arg5 = static_cast< int >(val5);
10560 {
10561 PyThreadState* __tstate = wxPyBeginAllowThreads();
10562 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10563 wxPyEndAllowThreads(__tstate);
10564 if (PyErr_Occurred()) SWIG_fail;
10565 }
10566 {
10567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10568 }
10569 return resultobj;
10570 fail:
10571 return NULL;
10572 }
10573
10574
10575 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10576 PyObject *resultobj = 0;
10577 wxRegion *arg1 = (wxRegion *) 0 ;
10578 wxRect *arg2 = 0 ;
10579 bool result;
10580 void *argp1 = 0 ;
10581 int res1 = 0 ;
10582 wxRect temp2 ;
10583 PyObject * obj0 = 0 ;
10584 PyObject * obj1 = 0 ;
10585 char * kwnames[] = {
10586 (char *) "self",(char *) "rect", NULL
10587 };
10588
10589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10591 if (!SWIG_IsOK(res1)) {
10592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10593 }
10594 arg1 = reinterpret_cast< wxRegion * >(argp1);
10595 {
10596 arg2 = &temp2;
10597 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10598 }
10599 {
10600 PyThreadState* __tstate = wxPyBeginAllowThreads();
10601 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10602 wxPyEndAllowThreads(__tstate);
10603 if (PyErr_Occurred()) SWIG_fail;
10604 }
10605 {
10606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10607 }
10608 return resultobj;
10609 fail:
10610 return NULL;
10611 }
10612
10613
10614 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10615 PyObject *resultobj = 0;
10616 wxRegion *arg1 = (wxRegion *) 0 ;
10617 wxRegion *arg2 = 0 ;
10618 bool result;
10619 void *argp1 = 0 ;
10620 int res1 = 0 ;
10621 void *argp2 = 0 ;
10622 int res2 = 0 ;
10623 PyObject * obj0 = 0 ;
10624 PyObject * obj1 = 0 ;
10625 char * kwnames[] = {
10626 (char *) "self",(char *) "region", NULL
10627 };
10628
10629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10631 if (!SWIG_IsOK(res1)) {
10632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10633 }
10634 arg1 = reinterpret_cast< wxRegion * >(argp1);
10635 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10636 if (!SWIG_IsOK(res2)) {
10637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10638 }
10639 if (!argp2) {
10640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10641 }
10642 arg2 = reinterpret_cast< wxRegion * >(argp2);
10643 {
10644 PyThreadState* __tstate = wxPyBeginAllowThreads();
10645 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10646 wxPyEndAllowThreads(__tstate);
10647 if (PyErr_Occurred()) SWIG_fail;
10648 }
10649 {
10650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10651 }
10652 return resultobj;
10653 fail:
10654 return NULL;
10655 }
10656
10657
10658 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10659 PyObject *resultobj = 0;
10660 wxRegion *arg1 = (wxRegion *) 0 ;
10661 int arg2 ;
10662 int arg3 ;
10663 int arg4 ;
10664 int arg5 ;
10665 bool result;
10666 void *argp1 = 0 ;
10667 int res1 = 0 ;
10668 int val2 ;
10669 int ecode2 = 0 ;
10670 int val3 ;
10671 int ecode3 = 0 ;
10672 int val4 ;
10673 int ecode4 = 0 ;
10674 int val5 ;
10675 int ecode5 = 0 ;
10676 PyObject * obj0 = 0 ;
10677 PyObject * obj1 = 0 ;
10678 PyObject * obj2 = 0 ;
10679 PyObject * obj3 = 0 ;
10680 PyObject * obj4 = 0 ;
10681 char * kwnames[] = {
10682 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10683 };
10684
10685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10687 if (!SWIG_IsOK(res1)) {
10688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10689 }
10690 arg1 = reinterpret_cast< wxRegion * >(argp1);
10691 ecode2 = SWIG_AsVal_int(obj1, &val2);
10692 if (!SWIG_IsOK(ecode2)) {
10693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10694 }
10695 arg2 = static_cast< int >(val2);
10696 ecode3 = SWIG_AsVal_int(obj2, &val3);
10697 if (!SWIG_IsOK(ecode3)) {
10698 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10699 }
10700 arg3 = static_cast< int >(val3);
10701 ecode4 = SWIG_AsVal_int(obj3, &val4);
10702 if (!SWIG_IsOK(ecode4)) {
10703 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10704 }
10705 arg4 = static_cast< int >(val4);
10706 ecode5 = SWIG_AsVal_int(obj4, &val5);
10707 if (!SWIG_IsOK(ecode5)) {
10708 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10709 }
10710 arg5 = static_cast< int >(val5);
10711 {
10712 PyThreadState* __tstate = wxPyBeginAllowThreads();
10713 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10714 wxPyEndAllowThreads(__tstate);
10715 if (PyErr_Occurred()) SWIG_fail;
10716 }
10717 {
10718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10719 }
10720 return resultobj;
10721 fail:
10722 return NULL;
10723 }
10724
10725
10726 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10727 PyObject *resultobj = 0;
10728 wxRegion *arg1 = (wxRegion *) 0 ;
10729 wxRect *arg2 = 0 ;
10730 bool result;
10731 void *argp1 = 0 ;
10732 int res1 = 0 ;
10733 wxRect temp2 ;
10734 PyObject * obj0 = 0 ;
10735 PyObject * obj1 = 0 ;
10736 char * kwnames[] = {
10737 (char *) "self",(char *) "rect", NULL
10738 };
10739
10740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10742 if (!SWIG_IsOK(res1)) {
10743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10744 }
10745 arg1 = reinterpret_cast< wxRegion * >(argp1);
10746 {
10747 arg2 = &temp2;
10748 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10749 }
10750 {
10751 PyThreadState* __tstate = wxPyBeginAllowThreads();
10752 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10753 wxPyEndAllowThreads(__tstate);
10754 if (PyErr_Occurred()) SWIG_fail;
10755 }
10756 {
10757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10758 }
10759 return resultobj;
10760 fail:
10761 return NULL;
10762 }
10763
10764
10765 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10766 PyObject *resultobj = 0;
10767 wxRegion *arg1 = (wxRegion *) 0 ;
10768 wxRegion *arg2 = 0 ;
10769 bool result;
10770 void *argp1 = 0 ;
10771 int res1 = 0 ;
10772 void *argp2 = 0 ;
10773 int res2 = 0 ;
10774 PyObject * obj0 = 0 ;
10775 PyObject * obj1 = 0 ;
10776 char * kwnames[] = {
10777 (char *) "self",(char *) "region", NULL
10778 };
10779
10780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10782 if (!SWIG_IsOK(res1)) {
10783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10784 }
10785 arg1 = reinterpret_cast< wxRegion * >(argp1);
10786 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10787 if (!SWIG_IsOK(res2)) {
10788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10789 }
10790 if (!argp2) {
10791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10792 }
10793 arg2 = reinterpret_cast< wxRegion * >(argp2);
10794 {
10795 PyThreadState* __tstate = wxPyBeginAllowThreads();
10796 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
10797 wxPyEndAllowThreads(__tstate);
10798 if (PyErr_Occurred()) SWIG_fail;
10799 }
10800 {
10801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10802 }
10803 return resultobj;
10804 fail:
10805 return NULL;
10806 }
10807
10808
10809 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10810 PyObject *resultobj = 0;
10811 wxRegion *arg1 = (wxRegion *) 0 ;
10812 int arg2 ;
10813 int arg3 ;
10814 int arg4 ;
10815 int arg5 ;
10816 bool result;
10817 void *argp1 = 0 ;
10818 int res1 = 0 ;
10819 int val2 ;
10820 int ecode2 = 0 ;
10821 int val3 ;
10822 int ecode3 = 0 ;
10823 int val4 ;
10824 int ecode4 = 0 ;
10825 int val5 ;
10826 int ecode5 = 0 ;
10827 PyObject * obj0 = 0 ;
10828 PyObject * obj1 = 0 ;
10829 PyObject * obj2 = 0 ;
10830 PyObject * obj3 = 0 ;
10831 PyObject * obj4 = 0 ;
10832 char * kwnames[] = {
10833 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10834 };
10835
10836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10838 if (!SWIG_IsOK(res1)) {
10839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
10840 }
10841 arg1 = reinterpret_cast< wxRegion * >(argp1);
10842 ecode2 = SWIG_AsVal_int(obj1, &val2);
10843 if (!SWIG_IsOK(ecode2)) {
10844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
10845 }
10846 arg2 = static_cast< int >(val2);
10847 ecode3 = SWIG_AsVal_int(obj2, &val3);
10848 if (!SWIG_IsOK(ecode3)) {
10849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
10850 }
10851 arg3 = static_cast< int >(val3);
10852 ecode4 = SWIG_AsVal_int(obj3, &val4);
10853 if (!SWIG_IsOK(ecode4)) {
10854 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
10855 }
10856 arg4 = static_cast< int >(val4);
10857 ecode5 = SWIG_AsVal_int(obj4, &val5);
10858 if (!SWIG_IsOK(ecode5)) {
10859 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
10860 }
10861 arg5 = static_cast< int >(val5);
10862 {
10863 PyThreadState* __tstate = wxPyBeginAllowThreads();
10864 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
10865 wxPyEndAllowThreads(__tstate);
10866 if (PyErr_Occurred()) SWIG_fail;
10867 }
10868 {
10869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10870 }
10871 return resultobj;
10872 fail:
10873 return NULL;
10874 }
10875
10876
10877 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10878 PyObject *resultobj = 0;
10879 wxRegion *arg1 = (wxRegion *) 0 ;
10880 wxRect *arg2 = 0 ;
10881 bool result;
10882 void *argp1 = 0 ;
10883 int res1 = 0 ;
10884 wxRect temp2 ;
10885 PyObject * obj0 = 0 ;
10886 PyObject * obj1 = 0 ;
10887 char * kwnames[] = {
10888 (char *) "self",(char *) "rect", NULL
10889 };
10890
10891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
10892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10893 if (!SWIG_IsOK(res1)) {
10894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10895 }
10896 arg1 = reinterpret_cast< wxRegion * >(argp1);
10897 {
10898 arg2 = &temp2;
10899 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10900 }
10901 {
10902 PyThreadState* __tstate = wxPyBeginAllowThreads();
10903 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
10904 wxPyEndAllowThreads(__tstate);
10905 if (PyErr_Occurred()) SWIG_fail;
10906 }
10907 {
10908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10909 }
10910 return resultobj;
10911 fail:
10912 return NULL;
10913 }
10914
10915
10916 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10917 PyObject *resultobj = 0;
10918 wxRegion *arg1 = (wxRegion *) 0 ;
10919 wxRegion *arg2 = 0 ;
10920 bool result;
10921 void *argp1 = 0 ;
10922 int res1 = 0 ;
10923 void *argp2 = 0 ;
10924 int res2 = 0 ;
10925 PyObject * obj0 = 0 ;
10926 PyObject * obj1 = 0 ;
10927 char * kwnames[] = {
10928 (char *) "self",(char *) "region", NULL
10929 };
10930
10931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10933 if (!SWIG_IsOK(res1)) {
10934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10935 }
10936 arg1 = reinterpret_cast< wxRegion * >(argp1);
10937 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10938 if (!SWIG_IsOK(res2)) {
10939 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10940 }
10941 if (!argp2) {
10942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10943 }
10944 arg2 = reinterpret_cast< wxRegion * >(argp2);
10945 {
10946 PyThreadState* __tstate = wxPyBeginAllowThreads();
10947 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
10948 wxPyEndAllowThreads(__tstate);
10949 if (PyErr_Occurred()) SWIG_fail;
10950 }
10951 {
10952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10953 }
10954 return resultobj;
10955 fail:
10956 return NULL;
10957 }
10958
10959
10960 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10961 PyObject *resultobj = 0;
10962 wxRegion *arg1 = (wxRegion *) 0 ;
10963 SwigValueWrapper<wxBitmap > result;
10964 void *argp1 = 0 ;
10965 int res1 = 0 ;
10966 PyObject *swig_obj[1] ;
10967
10968 if (!args) SWIG_fail;
10969 swig_obj[0] = args;
10970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10971 if (!SWIG_IsOK(res1)) {
10972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
10973 }
10974 arg1 = reinterpret_cast< wxRegion * >(argp1);
10975 {
10976 PyThreadState* __tstate = wxPyBeginAllowThreads();
10977 result = (arg1)->ConvertToBitmap();
10978 wxPyEndAllowThreads(__tstate);
10979 if (PyErr_Occurred()) SWIG_fail;
10980 }
10981 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
10982 return resultobj;
10983 fail:
10984 return NULL;
10985 }
10986
10987
10988 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10989 PyObject *resultobj = 0;
10990 wxRegion *arg1 = (wxRegion *) 0 ;
10991 wxBitmap *arg2 = 0 ;
10992 bool result;
10993 void *argp1 = 0 ;
10994 int res1 = 0 ;
10995 void *argp2 = 0 ;
10996 int res2 = 0 ;
10997 PyObject * obj0 = 0 ;
10998 PyObject * obj1 = 0 ;
10999 char * kwnames[] = {
11000 (char *) "self",(char *) "bmp", NULL
11001 };
11002
11003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11005 if (!SWIG_IsOK(res1)) {
11006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11007 }
11008 arg1 = reinterpret_cast< wxRegion * >(argp1);
11009 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11010 if (!SWIG_IsOK(res2)) {
11011 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11012 }
11013 if (!argp2) {
11014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11015 }
11016 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11017 {
11018 PyThreadState* __tstate = wxPyBeginAllowThreads();
11019 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11020 wxPyEndAllowThreads(__tstate);
11021 if (PyErr_Occurred()) SWIG_fail;
11022 }
11023 {
11024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11025 }
11026 return resultobj;
11027 fail:
11028 return NULL;
11029 }
11030
11031
11032 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11033 PyObject *resultobj = 0;
11034 wxRegion *arg1 = (wxRegion *) 0 ;
11035 wxBitmap *arg2 = 0 ;
11036 wxColour *arg3 = 0 ;
11037 int arg4 = (int) 0 ;
11038 bool result;
11039 void *argp1 = 0 ;
11040 int res1 = 0 ;
11041 void *argp2 = 0 ;
11042 int res2 = 0 ;
11043 wxColour temp3 ;
11044 int val4 ;
11045 int ecode4 = 0 ;
11046 PyObject * obj0 = 0 ;
11047 PyObject * obj1 = 0 ;
11048 PyObject * obj2 = 0 ;
11049 PyObject * obj3 = 0 ;
11050 char * kwnames[] = {
11051 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11052 };
11053
11054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11056 if (!SWIG_IsOK(res1)) {
11057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11058 }
11059 arg1 = reinterpret_cast< wxRegion * >(argp1);
11060 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11061 if (!SWIG_IsOK(res2)) {
11062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11063 }
11064 if (!argp2) {
11065 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11066 }
11067 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11068 {
11069 arg3 = &temp3;
11070 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11071 }
11072 if (obj3) {
11073 ecode4 = SWIG_AsVal_int(obj3, &val4);
11074 if (!SWIG_IsOK(ecode4)) {
11075 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11076 }
11077 arg4 = static_cast< int >(val4);
11078 }
11079 {
11080 PyThreadState* __tstate = wxPyBeginAllowThreads();
11081 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11082 wxPyEndAllowThreads(__tstate);
11083 if (PyErr_Occurred()) SWIG_fail;
11084 }
11085 {
11086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11087 }
11088 return resultobj;
11089 fail:
11090 return NULL;
11091 }
11092
11093
11094 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11095 PyObject *obj;
11096 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11097 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11098 return SWIG_Py_Void();
11099 }
11100
11101 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11102 return SWIG_Python_InitShadowInstance(args);
11103 }
11104
11105 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11106 PyObject *resultobj = 0;
11107 wxRegion *arg1 = 0 ;
11108 wxRegionIterator *result = 0 ;
11109 void *argp1 = 0 ;
11110 int res1 = 0 ;
11111 PyObject * obj0 = 0 ;
11112 char * kwnames[] = {
11113 (char *) "region", NULL
11114 };
11115
11116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11117 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11118 if (!SWIG_IsOK(res1)) {
11119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11120 }
11121 if (!argp1) {
11122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11123 }
11124 arg1 = reinterpret_cast< wxRegion * >(argp1);
11125 {
11126 if (!wxPyCheckForApp()) SWIG_fail;
11127 PyThreadState* __tstate = wxPyBeginAllowThreads();
11128 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11129 wxPyEndAllowThreads(__tstate);
11130 if (PyErr_Occurred()) SWIG_fail;
11131 }
11132 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11133 return resultobj;
11134 fail:
11135 return NULL;
11136 }
11137
11138
11139 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11140 PyObject *resultobj = 0;
11141 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11142 void *argp1 = 0 ;
11143 int res1 = 0 ;
11144 PyObject *swig_obj[1] ;
11145
11146 if (!args) SWIG_fail;
11147 swig_obj[0] = args;
11148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11149 if (!SWIG_IsOK(res1)) {
11150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11151 }
11152 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11153 {
11154 PyThreadState* __tstate = wxPyBeginAllowThreads();
11155 delete arg1;
11156
11157 wxPyEndAllowThreads(__tstate);
11158 if (PyErr_Occurred()) SWIG_fail;
11159 }
11160 resultobj = SWIG_Py_Void();
11161 return resultobj;
11162 fail:
11163 return NULL;
11164 }
11165
11166
11167 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11168 PyObject *resultobj = 0;
11169 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11170 int result;
11171 void *argp1 = 0 ;
11172 int res1 = 0 ;
11173 PyObject *swig_obj[1] ;
11174
11175 if (!args) SWIG_fail;
11176 swig_obj[0] = args;
11177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11178 if (!SWIG_IsOK(res1)) {
11179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11180 }
11181 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11182 {
11183 PyThreadState* __tstate = wxPyBeginAllowThreads();
11184 result = (int)(arg1)->GetX();
11185 wxPyEndAllowThreads(__tstate);
11186 if (PyErr_Occurred()) SWIG_fail;
11187 }
11188 resultobj = SWIG_From_int(static_cast< int >(result));
11189 return resultobj;
11190 fail:
11191 return NULL;
11192 }
11193
11194
11195 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11196 PyObject *resultobj = 0;
11197 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11198 int result;
11199 void *argp1 = 0 ;
11200 int res1 = 0 ;
11201 PyObject *swig_obj[1] ;
11202
11203 if (!args) SWIG_fail;
11204 swig_obj[0] = args;
11205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11206 if (!SWIG_IsOK(res1)) {
11207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11208 }
11209 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11210 {
11211 PyThreadState* __tstate = wxPyBeginAllowThreads();
11212 result = (int)(arg1)->GetY();
11213 wxPyEndAllowThreads(__tstate);
11214 if (PyErr_Occurred()) SWIG_fail;
11215 }
11216 resultobj = SWIG_From_int(static_cast< int >(result));
11217 return resultobj;
11218 fail:
11219 return NULL;
11220 }
11221
11222
11223 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11224 PyObject *resultobj = 0;
11225 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11226 int result;
11227 void *argp1 = 0 ;
11228 int res1 = 0 ;
11229 PyObject *swig_obj[1] ;
11230
11231 if (!args) SWIG_fail;
11232 swig_obj[0] = args;
11233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11234 if (!SWIG_IsOK(res1)) {
11235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11236 }
11237 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11238 {
11239 PyThreadState* __tstate = wxPyBeginAllowThreads();
11240 result = (int)(arg1)->GetW();
11241 wxPyEndAllowThreads(__tstate);
11242 if (PyErr_Occurred()) SWIG_fail;
11243 }
11244 resultobj = SWIG_From_int(static_cast< int >(result));
11245 return resultobj;
11246 fail:
11247 return NULL;
11248 }
11249
11250
11251 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11252 PyObject *resultobj = 0;
11253 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11254 int result;
11255 void *argp1 = 0 ;
11256 int res1 = 0 ;
11257 PyObject *swig_obj[1] ;
11258
11259 if (!args) SWIG_fail;
11260 swig_obj[0] = args;
11261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11262 if (!SWIG_IsOK(res1)) {
11263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11264 }
11265 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11266 {
11267 PyThreadState* __tstate = wxPyBeginAllowThreads();
11268 result = (int)(arg1)->GetWidth();
11269 wxPyEndAllowThreads(__tstate);
11270 if (PyErr_Occurred()) SWIG_fail;
11271 }
11272 resultobj = SWIG_From_int(static_cast< int >(result));
11273 return resultobj;
11274 fail:
11275 return NULL;
11276 }
11277
11278
11279 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11280 PyObject *resultobj = 0;
11281 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11282 int result;
11283 void *argp1 = 0 ;
11284 int res1 = 0 ;
11285 PyObject *swig_obj[1] ;
11286
11287 if (!args) SWIG_fail;
11288 swig_obj[0] = args;
11289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11290 if (!SWIG_IsOK(res1)) {
11291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11292 }
11293 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11294 {
11295 PyThreadState* __tstate = wxPyBeginAllowThreads();
11296 result = (int)(arg1)->GetH();
11297 wxPyEndAllowThreads(__tstate);
11298 if (PyErr_Occurred()) SWIG_fail;
11299 }
11300 resultobj = SWIG_From_int(static_cast< int >(result));
11301 return resultobj;
11302 fail:
11303 return NULL;
11304 }
11305
11306
11307 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11308 PyObject *resultobj = 0;
11309 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11310 int result;
11311 void *argp1 = 0 ;
11312 int res1 = 0 ;
11313 PyObject *swig_obj[1] ;
11314
11315 if (!args) SWIG_fail;
11316 swig_obj[0] = args;
11317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11318 if (!SWIG_IsOK(res1)) {
11319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11320 }
11321 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11322 {
11323 PyThreadState* __tstate = wxPyBeginAllowThreads();
11324 result = (int)(arg1)->GetHeight();
11325 wxPyEndAllowThreads(__tstate);
11326 if (PyErr_Occurred()) SWIG_fail;
11327 }
11328 resultobj = SWIG_From_int(static_cast< int >(result));
11329 return resultobj;
11330 fail:
11331 return NULL;
11332 }
11333
11334
11335 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11336 PyObject *resultobj = 0;
11337 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11338 wxRect result;
11339 void *argp1 = 0 ;
11340 int res1 = 0 ;
11341 PyObject *swig_obj[1] ;
11342
11343 if (!args) SWIG_fail;
11344 swig_obj[0] = args;
11345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11346 if (!SWIG_IsOK(res1)) {
11347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11348 }
11349 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11350 {
11351 PyThreadState* __tstate = wxPyBeginAllowThreads();
11352 result = (arg1)->GetRect();
11353 wxPyEndAllowThreads(__tstate);
11354 if (PyErr_Occurred()) SWIG_fail;
11355 }
11356 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11357 return resultobj;
11358 fail:
11359 return NULL;
11360 }
11361
11362
11363 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11364 PyObject *resultobj = 0;
11365 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11366 bool result;
11367 void *argp1 = 0 ;
11368 int res1 = 0 ;
11369 PyObject *swig_obj[1] ;
11370
11371 if (!args) SWIG_fail;
11372 swig_obj[0] = args;
11373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11374 if (!SWIG_IsOK(res1)) {
11375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11376 }
11377 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11378 {
11379 PyThreadState* __tstate = wxPyBeginAllowThreads();
11380 result = (bool)(arg1)->HaveRects();
11381 wxPyEndAllowThreads(__tstate);
11382 if (PyErr_Occurred()) SWIG_fail;
11383 }
11384 {
11385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11386 }
11387 return resultobj;
11388 fail:
11389 return NULL;
11390 }
11391
11392
11393 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11394 PyObject *resultobj = 0;
11395 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11396 void *argp1 = 0 ;
11397 int res1 = 0 ;
11398 PyObject *swig_obj[1] ;
11399
11400 if (!args) SWIG_fail;
11401 swig_obj[0] = args;
11402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11403 if (!SWIG_IsOK(res1)) {
11404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11405 }
11406 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11407 {
11408 PyThreadState* __tstate = wxPyBeginAllowThreads();
11409 (arg1)->Reset();
11410 wxPyEndAllowThreads(__tstate);
11411 if (PyErr_Occurred()) SWIG_fail;
11412 }
11413 resultobj = SWIG_Py_Void();
11414 return resultobj;
11415 fail:
11416 return NULL;
11417 }
11418
11419
11420 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11421 PyObject *resultobj = 0;
11422 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11423 void *argp1 = 0 ;
11424 int res1 = 0 ;
11425 PyObject *swig_obj[1] ;
11426
11427 if (!args) SWIG_fail;
11428 swig_obj[0] = args;
11429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11430 if (!SWIG_IsOK(res1)) {
11431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11432 }
11433 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11434 {
11435 PyThreadState* __tstate = wxPyBeginAllowThreads();
11436 wxRegionIterator_Next(arg1);
11437 wxPyEndAllowThreads(__tstate);
11438 if (PyErr_Occurred()) SWIG_fail;
11439 }
11440 resultobj = SWIG_Py_Void();
11441 return resultobj;
11442 fail:
11443 return NULL;
11444 }
11445
11446
11447 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11448 PyObject *resultobj = 0;
11449 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11450 bool result;
11451 void *argp1 = 0 ;
11452 int res1 = 0 ;
11453 PyObject *swig_obj[1] ;
11454
11455 if (!args) SWIG_fail;
11456 swig_obj[0] = args;
11457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11458 if (!SWIG_IsOK(res1)) {
11459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11460 }
11461 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11462 {
11463 PyThreadState* __tstate = wxPyBeginAllowThreads();
11464 result = (bool)wxRegionIterator___nonzero__(arg1);
11465 wxPyEndAllowThreads(__tstate);
11466 if (PyErr_Occurred()) SWIG_fail;
11467 }
11468 {
11469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11470 }
11471 return resultobj;
11472 fail:
11473 return NULL;
11474 }
11475
11476
11477 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11478 PyObject *obj;
11479 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11480 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11481 return SWIG_Py_Void();
11482 }
11483
11484 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11485 return SWIG_Python_InitShadowInstance(args);
11486 }
11487
11488 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11489 PyObject *resultobj = 0;
11490 wxNativeFontInfo *result = 0 ;
11491
11492 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11493 {
11494 PyThreadState* __tstate = wxPyBeginAllowThreads();
11495 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11496 wxPyEndAllowThreads(__tstate);
11497 if (PyErr_Occurred()) SWIG_fail;
11498 }
11499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11500 return resultobj;
11501 fail:
11502 return NULL;
11503 }
11504
11505
11506 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11507 PyObject *resultobj = 0;
11508 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11509 void *argp1 = 0 ;
11510 int res1 = 0 ;
11511 PyObject *swig_obj[1] ;
11512
11513 if (!args) SWIG_fail;
11514 swig_obj[0] = args;
11515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11516 if (!SWIG_IsOK(res1)) {
11517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11518 }
11519 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11520 {
11521 PyThreadState* __tstate = wxPyBeginAllowThreads();
11522 delete arg1;
11523
11524 wxPyEndAllowThreads(__tstate);
11525 if (PyErr_Occurred()) SWIG_fail;
11526 }
11527 resultobj = SWIG_Py_Void();
11528 return resultobj;
11529 fail:
11530 return NULL;
11531 }
11532
11533
11534 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11535 PyObject *resultobj = 0;
11536 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11537 void *argp1 = 0 ;
11538 int res1 = 0 ;
11539 PyObject *swig_obj[1] ;
11540
11541 if (!args) SWIG_fail;
11542 swig_obj[0] = args;
11543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11544 if (!SWIG_IsOK(res1)) {
11545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11546 }
11547 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11548 {
11549 PyThreadState* __tstate = wxPyBeginAllowThreads();
11550 (arg1)->Init();
11551 wxPyEndAllowThreads(__tstate);
11552 if (PyErr_Occurred()) SWIG_fail;
11553 }
11554 resultobj = SWIG_Py_Void();
11555 return resultobj;
11556 fail:
11557 return NULL;
11558 }
11559
11560
11561 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11562 PyObject *resultobj = 0;
11563 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11564 wxFont *arg2 = 0 ;
11565 void *argp1 = 0 ;
11566 int res1 = 0 ;
11567 void *argp2 = 0 ;
11568 int res2 = 0 ;
11569 PyObject * obj0 = 0 ;
11570 PyObject * obj1 = 0 ;
11571 char * kwnames[] = {
11572 (char *) "self",(char *) "font", NULL
11573 };
11574
11575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11577 if (!SWIG_IsOK(res1)) {
11578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11579 }
11580 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11581 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11582 if (!SWIG_IsOK(res2)) {
11583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11584 }
11585 if (!argp2) {
11586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11587 }
11588 arg2 = reinterpret_cast< wxFont * >(argp2);
11589 {
11590 PyThreadState* __tstate = wxPyBeginAllowThreads();
11591 (arg1)->InitFromFont((wxFont const &)*arg2);
11592 wxPyEndAllowThreads(__tstate);
11593 if (PyErr_Occurred()) SWIG_fail;
11594 }
11595 resultobj = SWIG_Py_Void();
11596 return resultobj;
11597 fail:
11598 return NULL;
11599 }
11600
11601
11602 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11603 PyObject *resultobj = 0;
11604 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11605 int result;
11606 void *argp1 = 0 ;
11607 int res1 = 0 ;
11608 PyObject *swig_obj[1] ;
11609
11610 if (!args) SWIG_fail;
11611 swig_obj[0] = args;
11612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11613 if (!SWIG_IsOK(res1)) {
11614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11615 }
11616 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11617 {
11618 PyThreadState* __tstate = wxPyBeginAllowThreads();
11619 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11620 wxPyEndAllowThreads(__tstate);
11621 if (PyErr_Occurred()) SWIG_fail;
11622 }
11623 resultobj = SWIG_From_int(static_cast< int >(result));
11624 return resultobj;
11625 fail:
11626 return NULL;
11627 }
11628
11629
11630 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11631 PyObject *resultobj = 0;
11632 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11633 wxFontStyle result;
11634 void *argp1 = 0 ;
11635 int res1 = 0 ;
11636 PyObject *swig_obj[1] ;
11637
11638 if (!args) SWIG_fail;
11639 swig_obj[0] = args;
11640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11641 if (!SWIG_IsOK(res1)) {
11642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11643 }
11644 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11645 {
11646 PyThreadState* __tstate = wxPyBeginAllowThreads();
11647 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11648 wxPyEndAllowThreads(__tstate);
11649 if (PyErr_Occurred()) SWIG_fail;
11650 }
11651 resultobj = SWIG_From_int(static_cast< int >(result));
11652 return resultobj;
11653 fail:
11654 return NULL;
11655 }
11656
11657
11658 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11659 PyObject *resultobj = 0;
11660 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11661 wxFontWeight result;
11662 void *argp1 = 0 ;
11663 int res1 = 0 ;
11664 PyObject *swig_obj[1] ;
11665
11666 if (!args) SWIG_fail;
11667 swig_obj[0] = args;
11668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11669 if (!SWIG_IsOK(res1)) {
11670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11671 }
11672 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11673 {
11674 PyThreadState* __tstate = wxPyBeginAllowThreads();
11675 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11676 wxPyEndAllowThreads(__tstate);
11677 if (PyErr_Occurred()) SWIG_fail;
11678 }
11679 resultobj = SWIG_From_int(static_cast< int >(result));
11680 return resultobj;
11681 fail:
11682 return NULL;
11683 }
11684
11685
11686 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11687 PyObject *resultobj = 0;
11688 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11689 bool result;
11690 void *argp1 = 0 ;
11691 int res1 = 0 ;
11692 PyObject *swig_obj[1] ;
11693
11694 if (!args) SWIG_fail;
11695 swig_obj[0] = args;
11696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11697 if (!SWIG_IsOK(res1)) {
11698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11699 }
11700 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11701 {
11702 PyThreadState* __tstate = wxPyBeginAllowThreads();
11703 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11704 wxPyEndAllowThreads(__tstate);
11705 if (PyErr_Occurred()) SWIG_fail;
11706 }
11707 {
11708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11709 }
11710 return resultobj;
11711 fail:
11712 return NULL;
11713 }
11714
11715
11716 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11717 PyObject *resultobj = 0;
11718 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11719 wxString result;
11720 void *argp1 = 0 ;
11721 int res1 = 0 ;
11722 PyObject *swig_obj[1] ;
11723
11724 if (!args) SWIG_fail;
11725 swig_obj[0] = args;
11726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11727 if (!SWIG_IsOK(res1)) {
11728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11729 }
11730 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11731 {
11732 PyThreadState* __tstate = wxPyBeginAllowThreads();
11733 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11734 wxPyEndAllowThreads(__tstate);
11735 if (PyErr_Occurred()) SWIG_fail;
11736 }
11737 {
11738 #if wxUSE_UNICODE
11739 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11740 #else
11741 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11742 #endif
11743 }
11744 return resultobj;
11745 fail:
11746 return NULL;
11747 }
11748
11749
11750 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11751 PyObject *resultobj = 0;
11752 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11753 wxFontFamily result;
11754 void *argp1 = 0 ;
11755 int res1 = 0 ;
11756 PyObject *swig_obj[1] ;
11757
11758 if (!args) SWIG_fail;
11759 swig_obj[0] = args;
11760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11761 if (!SWIG_IsOK(res1)) {
11762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11763 }
11764 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11765 {
11766 PyThreadState* __tstate = wxPyBeginAllowThreads();
11767 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11768 wxPyEndAllowThreads(__tstate);
11769 if (PyErr_Occurred()) SWIG_fail;
11770 }
11771 resultobj = SWIG_From_int(static_cast< int >(result));
11772 return resultobj;
11773 fail:
11774 return NULL;
11775 }
11776
11777
11778 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11779 PyObject *resultobj = 0;
11780 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11781 wxFontEncoding result;
11782 void *argp1 = 0 ;
11783 int res1 = 0 ;
11784 PyObject *swig_obj[1] ;
11785
11786 if (!args) SWIG_fail;
11787 swig_obj[0] = args;
11788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11789 if (!SWIG_IsOK(res1)) {
11790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11791 }
11792 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11793 {
11794 PyThreadState* __tstate = wxPyBeginAllowThreads();
11795 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
11796 wxPyEndAllowThreads(__tstate);
11797 if (PyErr_Occurred()) SWIG_fail;
11798 }
11799 resultobj = SWIG_From_int(static_cast< int >(result));
11800 return resultobj;
11801 fail:
11802 return NULL;
11803 }
11804
11805
11806 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11807 PyObject *resultobj = 0;
11808 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11809 int arg2 ;
11810 void *argp1 = 0 ;
11811 int res1 = 0 ;
11812 int val2 ;
11813 int ecode2 = 0 ;
11814 PyObject * obj0 = 0 ;
11815 PyObject * obj1 = 0 ;
11816 char * kwnames[] = {
11817 (char *) "self",(char *) "pointsize", NULL
11818 };
11819
11820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
11821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11822 if (!SWIG_IsOK(res1)) {
11823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11824 }
11825 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11826 ecode2 = SWIG_AsVal_int(obj1, &val2);
11827 if (!SWIG_IsOK(ecode2)) {
11828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
11829 }
11830 arg2 = static_cast< int >(val2);
11831 {
11832 PyThreadState* __tstate = wxPyBeginAllowThreads();
11833 (arg1)->SetPointSize(arg2);
11834 wxPyEndAllowThreads(__tstate);
11835 if (PyErr_Occurred()) SWIG_fail;
11836 }
11837 resultobj = SWIG_Py_Void();
11838 return resultobj;
11839 fail:
11840 return NULL;
11841 }
11842
11843
11844 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11845 PyObject *resultobj = 0;
11846 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11847 wxFontStyle arg2 ;
11848 void *argp1 = 0 ;
11849 int res1 = 0 ;
11850 int val2 ;
11851 int ecode2 = 0 ;
11852 PyObject * obj0 = 0 ;
11853 PyObject * obj1 = 0 ;
11854 char * kwnames[] = {
11855 (char *) "self",(char *) "style", NULL
11856 };
11857
11858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
11859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11860 if (!SWIG_IsOK(res1)) {
11861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11862 }
11863 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11864 ecode2 = SWIG_AsVal_int(obj1, &val2);
11865 if (!SWIG_IsOK(ecode2)) {
11866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
11867 }
11868 arg2 = static_cast< wxFontStyle >(val2);
11869 {
11870 PyThreadState* __tstate = wxPyBeginAllowThreads();
11871 (arg1)->SetStyle(arg2);
11872 wxPyEndAllowThreads(__tstate);
11873 if (PyErr_Occurred()) SWIG_fail;
11874 }
11875 resultobj = SWIG_Py_Void();
11876 return resultobj;
11877 fail:
11878 return NULL;
11879 }
11880
11881
11882 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11883 PyObject *resultobj = 0;
11884 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11885 wxFontWeight arg2 ;
11886 void *argp1 = 0 ;
11887 int res1 = 0 ;
11888 int val2 ;
11889 int ecode2 = 0 ;
11890 PyObject * obj0 = 0 ;
11891 PyObject * obj1 = 0 ;
11892 char * kwnames[] = {
11893 (char *) "self",(char *) "weight", NULL
11894 };
11895
11896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
11897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11898 if (!SWIG_IsOK(res1)) {
11899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11900 }
11901 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11902 ecode2 = SWIG_AsVal_int(obj1, &val2);
11903 if (!SWIG_IsOK(ecode2)) {
11904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
11905 }
11906 arg2 = static_cast< wxFontWeight >(val2);
11907 {
11908 PyThreadState* __tstate = wxPyBeginAllowThreads();
11909 (arg1)->SetWeight(arg2);
11910 wxPyEndAllowThreads(__tstate);
11911 if (PyErr_Occurred()) SWIG_fail;
11912 }
11913 resultobj = SWIG_Py_Void();
11914 return resultobj;
11915 fail:
11916 return NULL;
11917 }
11918
11919
11920 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11921 PyObject *resultobj = 0;
11922 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11923 bool arg2 ;
11924 void *argp1 = 0 ;
11925 int res1 = 0 ;
11926 bool val2 ;
11927 int ecode2 = 0 ;
11928 PyObject * obj0 = 0 ;
11929 PyObject * obj1 = 0 ;
11930 char * kwnames[] = {
11931 (char *) "self",(char *) "underlined", NULL
11932 };
11933
11934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
11935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11936 if (!SWIG_IsOK(res1)) {
11937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11938 }
11939 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11940 ecode2 = SWIG_AsVal_bool(obj1, &val2);
11941 if (!SWIG_IsOK(ecode2)) {
11942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
11943 }
11944 arg2 = static_cast< bool >(val2);
11945 {
11946 PyThreadState* __tstate = wxPyBeginAllowThreads();
11947 (arg1)->SetUnderlined(arg2);
11948 wxPyEndAllowThreads(__tstate);
11949 if (PyErr_Occurred()) SWIG_fail;
11950 }
11951 resultobj = SWIG_Py_Void();
11952 return resultobj;
11953 fail:
11954 return NULL;
11955 }
11956
11957
11958 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11959 PyObject *resultobj = 0;
11960 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11961 wxString arg2 ;
11962 bool result;
11963 void *argp1 = 0 ;
11964 int res1 = 0 ;
11965 PyObject * obj0 = 0 ;
11966 PyObject * obj1 = 0 ;
11967 char * kwnames[] = {
11968 (char *) "self",(char *) "facename", NULL
11969 };
11970
11971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
11972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11973 if (!SWIG_IsOK(res1)) {
11974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11975 }
11976 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11977 {
11978 wxString* sptr = wxString_in_helper(obj1);
11979 if (sptr == NULL) SWIG_fail;
11980 arg2 = *sptr;
11981 delete sptr;
11982 }
11983 {
11984 PyThreadState* __tstate = wxPyBeginAllowThreads();
11985 result = (bool)(arg1)->SetFaceName(arg2);
11986 wxPyEndAllowThreads(__tstate);
11987 if (PyErr_Occurred()) SWIG_fail;
11988 }
11989 {
11990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11991 }
11992 return resultobj;
11993 fail:
11994 return NULL;
11995 }
11996
11997
11998 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11999 PyObject *resultobj = 0;
12000 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12001 wxFontFamily arg2 ;
12002 void *argp1 = 0 ;
12003 int res1 = 0 ;
12004 int val2 ;
12005 int ecode2 = 0 ;
12006 PyObject * obj0 = 0 ;
12007 PyObject * obj1 = 0 ;
12008 char * kwnames[] = {
12009 (char *) "self",(char *) "family", NULL
12010 };
12011
12012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12014 if (!SWIG_IsOK(res1)) {
12015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12016 }
12017 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12018 ecode2 = SWIG_AsVal_int(obj1, &val2);
12019 if (!SWIG_IsOK(ecode2)) {
12020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12021 }
12022 arg2 = static_cast< wxFontFamily >(val2);
12023 {
12024 PyThreadState* __tstate = wxPyBeginAllowThreads();
12025 (arg1)->SetFamily(arg2);
12026 wxPyEndAllowThreads(__tstate);
12027 if (PyErr_Occurred()) SWIG_fail;
12028 }
12029 resultobj = SWIG_Py_Void();
12030 return resultobj;
12031 fail:
12032 return NULL;
12033 }
12034
12035
12036 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12037 PyObject *resultobj = 0;
12038 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12039 wxFontEncoding arg2 ;
12040 void *argp1 = 0 ;
12041 int res1 = 0 ;
12042 int val2 ;
12043 int ecode2 = 0 ;
12044 PyObject * obj0 = 0 ;
12045 PyObject * obj1 = 0 ;
12046 char * kwnames[] = {
12047 (char *) "self",(char *) "encoding", NULL
12048 };
12049
12050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12052 if (!SWIG_IsOK(res1)) {
12053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12054 }
12055 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12056 ecode2 = SWIG_AsVal_int(obj1, &val2);
12057 if (!SWIG_IsOK(ecode2)) {
12058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12059 }
12060 arg2 = static_cast< wxFontEncoding >(val2);
12061 {
12062 PyThreadState* __tstate = wxPyBeginAllowThreads();
12063 (arg1)->SetEncoding(arg2);
12064 wxPyEndAllowThreads(__tstate);
12065 if (PyErr_Occurred()) SWIG_fail;
12066 }
12067 resultobj = SWIG_Py_Void();
12068 return resultobj;
12069 fail:
12070 return NULL;
12071 }
12072
12073
12074 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12075 PyObject *resultobj = 0;
12076 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12077 wxString *arg2 = 0 ;
12078 bool result;
12079 void *argp1 = 0 ;
12080 int res1 = 0 ;
12081 bool temp2 = false ;
12082 PyObject * obj0 = 0 ;
12083 PyObject * obj1 = 0 ;
12084 char * kwnames[] = {
12085 (char *) "self",(char *) "s", NULL
12086 };
12087
12088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12090 if (!SWIG_IsOK(res1)) {
12091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12092 }
12093 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12094 {
12095 arg2 = wxString_in_helper(obj1);
12096 if (arg2 == NULL) SWIG_fail;
12097 temp2 = true;
12098 }
12099 {
12100 PyThreadState* __tstate = wxPyBeginAllowThreads();
12101 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12102 wxPyEndAllowThreads(__tstate);
12103 if (PyErr_Occurred()) SWIG_fail;
12104 }
12105 {
12106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12107 }
12108 {
12109 if (temp2)
12110 delete arg2;
12111 }
12112 return resultobj;
12113 fail:
12114 {
12115 if (temp2)
12116 delete arg2;
12117 }
12118 return NULL;
12119 }
12120
12121
12122 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12123 PyObject *resultobj = 0;
12124 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12125 wxString result;
12126 void *argp1 = 0 ;
12127 int res1 = 0 ;
12128 PyObject *swig_obj[1] ;
12129
12130 if (!args) SWIG_fail;
12131 swig_obj[0] = args;
12132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12133 if (!SWIG_IsOK(res1)) {
12134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12135 }
12136 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12137 {
12138 PyThreadState* __tstate = wxPyBeginAllowThreads();
12139 result = ((wxNativeFontInfo const *)arg1)->ToString();
12140 wxPyEndAllowThreads(__tstate);
12141 if (PyErr_Occurred()) SWIG_fail;
12142 }
12143 {
12144 #if wxUSE_UNICODE
12145 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12146 #else
12147 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12148 #endif
12149 }
12150 return resultobj;
12151 fail:
12152 return NULL;
12153 }
12154
12155
12156 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12157 PyObject *resultobj = 0;
12158 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12159 wxString result;
12160 void *argp1 = 0 ;
12161 int res1 = 0 ;
12162 PyObject *swig_obj[1] ;
12163
12164 if (!args) SWIG_fail;
12165 swig_obj[0] = args;
12166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12167 if (!SWIG_IsOK(res1)) {
12168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12169 }
12170 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12171 {
12172 PyThreadState* __tstate = wxPyBeginAllowThreads();
12173 result = wxNativeFontInfo___str__(arg1);
12174 wxPyEndAllowThreads(__tstate);
12175 if (PyErr_Occurred()) SWIG_fail;
12176 }
12177 {
12178 #if wxUSE_UNICODE
12179 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12180 #else
12181 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12182 #endif
12183 }
12184 return resultobj;
12185 fail:
12186 return NULL;
12187 }
12188
12189
12190 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12191 PyObject *resultobj = 0;
12192 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12193 wxString *arg2 = 0 ;
12194 bool result;
12195 void *argp1 = 0 ;
12196 int res1 = 0 ;
12197 bool temp2 = false ;
12198 PyObject * obj0 = 0 ;
12199 PyObject * obj1 = 0 ;
12200 char * kwnames[] = {
12201 (char *) "self",(char *) "s", NULL
12202 };
12203
12204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12206 if (!SWIG_IsOK(res1)) {
12207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12208 }
12209 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12210 {
12211 arg2 = wxString_in_helper(obj1);
12212 if (arg2 == NULL) SWIG_fail;
12213 temp2 = true;
12214 }
12215 {
12216 PyThreadState* __tstate = wxPyBeginAllowThreads();
12217 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12218 wxPyEndAllowThreads(__tstate);
12219 if (PyErr_Occurred()) SWIG_fail;
12220 }
12221 {
12222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12223 }
12224 {
12225 if (temp2)
12226 delete arg2;
12227 }
12228 return resultobj;
12229 fail:
12230 {
12231 if (temp2)
12232 delete arg2;
12233 }
12234 return NULL;
12235 }
12236
12237
12238 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12239 PyObject *resultobj = 0;
12240 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12241 wxString result;
12242 void *argp1 = 0 ;
12243 int res1 = 0 ;
12244 PyObject *swig_obj[1] ;
12245
12246 if (!args) SWIG_fail;
12247 swig_obj[0] = args;
12248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12249 if (!SWIG_IsOK(res1)) {
12250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12251 }
12252 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12253 {
12254 PyThreadState* __tstate = wxPyBeginAllowThreads();
12255 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12256 wxPyEndAllowThreads(__tstate);
12257 if (PyErr_Occurred()) SWIG_fail;
12258 }
12259 {
12260 #if wxUSE_UNICODE
12261 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12262 #else
12263 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12264 #endif
12265 }
12266 return resultobj;
12267 fail:
12268 return NULL;
12269 }
12270
12271
12272 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12273 PyObject *obj;
12274 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12275 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12276 return SWIG_Py_Void();
12277 }
12278
12279 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12280 return SWIG_Python_InitShadowInstance(args);
12281 }
12282
12283 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12284 PyObject *resultobj = 0;
12285 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12286 wxString *arg2 = (wxString *) 0 ;
12287 void *argp1 = 0 ;
12288 int res1 = 0 ;
12289 bool temp2 = false ;
12290 PyObject *swig_obj[2] ;
12291
12292 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12294 if (!SWIG_IsOK(res1)) {
12295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12296 }
12297 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12298 {
12299 arg2 = wxString_in_helper(swig_obj[1]);
12300 if (arg2 == NULL) SWIG_fail;
12301 temp2 = true;
12302 }
12303 if (arg1) (arg1)->facename = *arg2;
12304
12305 resultobj = SWIG_Py_Void();
12306 {
12307 if (temp2)
12308 delete arg2;
12309 }
12310 return resultobj;
12311 fail:
12312 {
12313 if (temp2)
12314 delete arg2;
12315 }
12316 return NULL;
12317 }
12318
12319
12320 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12321 PyObject *resultobj = 0;
12322 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12323 wxString *result = 0 ;
12324 void *argp1 = 0 ;
12325 int res1 = 0 ;
12326 PyObject *swig_obj[1] ;
12327
12328 if (!args) SWIG_fail;
12329 swig_obj[0] = args;
12330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12331 if (!SWIG_IsOK(res1)) {
12332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12333 }
12334 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12335 result = (wxString *)& ((arg1)->facename);
12336 {
12337 #if wxUSE_UNICODE
12338 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12339 #else
12340 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12341 #endif
12342 }
12343 return resultobj;
12344 fail:
12345 return NULL;
12346 }
12347
12348
12349 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12350 PyObject *resultobj = 0;
12351 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12352 wxFontEncoding arg2 ;
12353 void *argp1 = 0 ;
12354 int res1 = 0 ;
12355 int val2 ;
12356 int ecode2 = 0 ;
12357 PyObject *swig_obj[2] ;
12358
12359 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12361 if (!SWIG_IsOK(res1)) {
12362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12363 }
12364 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12365 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12366 if (!SWIG_IsOK(ecode2)) {
12367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12368 }
12369 arg2 = static_cast< wxFontEncoding >(val2);
12370 if (arg1) (arg1)->encoding = arg2;
12371
12372 resultobj = SWIG_Py_Void();
12373 return resultobj;
12374 fail:
12375 return NULL;
12376 }
12377
12378
12379 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12380 PyObject *resultobj = 0;
12381 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12382 wxFontEncoding result;
12383 void *argp1 = 0 ;
12384 int res1 = 0 ;
12385 PyObject *swig_obj[1] ;
12386
12387 if (!args) SWIG_fail;
12388 swig_obj[0] = args;
12389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12390 if (!SWIG_IsOK(res1)) {
12391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12392 }
12393 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12394 result = (wxFontEncoding) ((arg1)->encoding);
12395 resultobj = SWIG_From_int(static_cast< int >(result));
12396 return resultobj;
12397 fail:
12398 return NULL;
12399 }
12400
12401
12402 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12403 PyObject *resultobj = 0;
12404 wxNativeEncodingInfo *result = 0 ;
12405
12406 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12407 {
12408 PyThreadState* __tstate = wxPyBeginAllowThreads();
12409 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12410 wxPyEndAllowThreads(__tstate);
12411 if (PyErr_Occurred()) SWIG_fail;
12412 }
12413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12414 return resultobj;
12415 fail:
12416 return NULL;
12417 }
12418
12419
12420 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12421 PyObject *resultobj = 0;
12422 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12423 void *argp1 = 0 ;
12424 int res1 = 0 ;
12425 PyObject *swig_obj[1] ;
12426
12427 if (!args) SWIG_fail;
12428 swig_obj[0] = args;
12429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12430 if (!SWIG_IsOK(res1)) {
12431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12432 }
12433 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12434 {
12435 PyThreadState* __tstate = wxPyBeginAllowThreads();
12436 delete arg1;
12437
12438 wxPyEndAllowThreads(__tstate);
12439 if (PyErr_Occurred()) SWIG_fail;
12440 }
12441 resultobj = SWIG_Py_Void();
12442 return resultobj;
12443 fail:
12444 return NULL;
12445 }
12446
12447
12448 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12449 PyObject *resultobj = 0;
12450 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12451 wxString *arg2 = 0 ;
12452 bool result;
12453 void *argp1 = 0 ;
12454 int res1 = 0 ;
12455 bool temp2 = false ;
12456 PyObject * obj0 = 0 ;
12457 PyObject * obj1 = 0 ;
12458 char * kwnames[] = {
12459 (char *) "self",(char *) "s", NULL
12460 };
12461
12462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12464 if (!SWIG_IsOK(res1)) {
12465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12466 }
12467 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12468 {
12469 arg2 = wxString_in_helper(obj1);
12470 if (arg2 == NULL) SWIG_fail;
12471 temp2 = true;
12472 }
12473 {
12474 PyThreadState* __tstate = wxPyBeginAllowThreads();
12475 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12476 wxPyEndAllowThreads(__tstate);
12477 if (PyErr_Occurred()) SWIG_fail;
12478 }
12479 {
12480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12481 }
12482 {
12483 if (temp2)
12484 delete arg2;
12485 }
12486 return resultobj;
12487 fail:
12488 {
12489 if (temp2)
12490 delete arg2;
12491 }
12492 return NULL;
12493 }
12494
12495
12496 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12497 PyObject *resultobj = 0;
12498 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12499 wxString result;
12500 void *argp1 = 0 ;
12501 int res1 = 0 ;
12502 PyObject *swig_obj[1] ;
12503
12504 if (!args) SWIG_fail;
12505 swig_obj[0] = args;
12506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12507 if (!SWIG_IsOK(res1)) {
12508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12509 }
12510 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12511 {
12512 PyThreadState* __tstate = wxPyBeginAllowThreads();
12513 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12514 wxPyEndAllowThreads(__tstate);
12515 if (PyErr_Occurred()) SWIG_fail;
12516 }
12517 {
12518 #if wxUSE_UNICODE
12519 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12520 #else
12521 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12522 #endif
12523 }
12524 return resultobj;
12525 fail:
12526 return NULL;
12527 }
12528
12529
12530 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12531 PyObject *obj;
12532 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12533 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12534 return SWIG_Py_Void();
12535 }
12536
12537 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12538 return SWIG_Python_InitShadowInstance(args);
12539 }
12540
12541 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12542 PyObject *resultobj = 0;
12543 wxFontEncoding arg1 ;
12544 wxNativeEncodingInfo *result = 0 ;
12545 int val1 ;
12546 int ecode1 = 0 ;
12547 PyObject * obj0 = 0 ;
12548 char * kwnames[] = {
12549 (char *) "encoding", NULL
12550 };
12551
12552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12553 ecode1 = SWIG_AsVal_int(obj0, &val1);
12554 if (!SWIG_IsOK(ecode1)) {
12555 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12556 }
12557 arg1 = static_cast< wxFontEncoding >(val1);
12558 {
12559 PyThreadState* __tstate = wxPyBeginAllowThreads();
12560 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12561 wxPyEndAllowThreads(__tstate);
12562 if (PyErr_Occurred()) SWIG_fail;
12563 }
12564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12565 return resultobj;
12566 fail:
12567 return NULL;
12568 }
12569
12570
12571 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12572 PyObject *resultobj = 0;
12573 wxNativeEncodingInfo *arg1 = 0 ;
12574 bool result;
12575 void *argp1 = 0 ;
12576 int res1 = 0 ;
12577 PyObject * obj0 = 0 ;
12578 char * kwnames[] = {
12579 (char *) "info", NULL
12580 };
12581
12582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12583 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12584 if (!SWIG_IsOK(res1)) {
12585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12586 }
12587 if (!argp1) {
12588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12589 }
12590 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12591 {
12592 PyThreadState* __tstate = wxPyBeginAllowThreads();
12593 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12594 wxPyEndAllowThreads(__tstate);
12595 if (PyErr_Occurred()) SWIG_fail;
12596 }
12597 {
12598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12599 }
12600 return resultobj;
12601 fail:
12602 return NULL;
12603 }
12604
12605
12606 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12607 PyObject *resultobj = 0;
12608 wxFontMapper *result = 0 ;
12609
12610 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12611 {
12612 PyThreadState* __tstate = wxPyBeginAllowThreads();
12613 result = (wxFontMapper *)new wxFontMapper();
12614 wxPyEndAllowThreads(__tstate);
12615 if (PyErr_Occurred()) SWIG_fail;
12616 }
12617 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12618 return resultobj;
12619 fail:
12620 return NULL;
12621 }
12622
12623
12624 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12625 PyObject *resultobj = 0;
12626 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12627 void *argp1 = 0 ;
12628 int res1 = 0 ;
12629 PyObject *swig_obj[1] ;
12630
12631 if (!args) SWIG_fail;
12632 swig_obj[0] = args;
12633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12634 if (!SWIG_IsOK(res1)) {
12635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12636 }
12637 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12638 {
12639 PyThreadState* __tstate = wxPyBeginAllowThreads();
12640 delete arg1;
12641
12642 wxPyEndAllowThreads(__tstate);
12643 if (PyErr_Occurred()) SWIG_fail;
12644 }
12645 resultobj = SWIG_Py_Void();
12646 return resultobj;
12647 fail:
12648 return NULL;
12649 }
12650
12651
12652 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12653 PyObject *resultobj = 0;
12654 wxFontMapper *result = 0 ;
12655
12656 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12657 {
12658 PyThreadState* __tstate = wxPyBeginAllowThreads();
12659 result = (wxFontMapper *)wxFontMapper::Get();
12660 wxPyEndAllowThreads(__tstate);
12661 if (PyErr_Occurred()) SWIG_fail;
12662 }
12663 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12664 return resultobj;
12665 fail:
12666 return NULL;
12667 }
12668
12669
12670 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12671 PyObject *resultobj = 0;
12672 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12673 wxFontMapper *result = 0 ;
12674 void *argp1 = 0 ;
12675 int res1 = 0 ;
12676 PyObject * obj0 = 0 ;
12677 char * kwnames[] = {
12678 (char *) "mapper", NULL
12679 };
12680
12681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12683 if (!SWIG_IsOK(res1)) {
12684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12685 }
12686 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12687 {
12688 PyThreadState* __tstate = wxPyBeginAllowThreads();
12689 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12690 wxPyEndAllowThreads(__tstate);
12691 if (PyErr_Occurred()) SWIG_fail;
12692 }
12693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12694 return resultobj;
12695 fail:
12696 return NULL;
12697 }
12698
12699
12700 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12701 PyObject *resultobj = 0;
12702 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12703 wxString *arg2 = 0 ;
12704 bool arg3 = (bool) true ;
12705 wxFontEncoding result;
12706 void *argp1 = 0 ;
12707 int res1 = 0 ;
12708 bool temp2 = false ;
12709 bool val3 ;
12710 int ecode3 = 0 ;
12711 PyObject * obj0 = 0 ;
12712 PyObject * obj1 = 0 ;
12713 PyObject * obj2 = 0 ;
12714 char * kwnames[] = {
12715 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12716 };
12717
12718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12720 if (!SWIG_IsOK(res1)) {
12721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12722 }
12723 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12724 {
12725 arg2 = wxString_in_helper(obj1);
12726 if (arg2 == NULL) SWIG_fail;
12727 temp2 = true;
12728 }
12729 if (obj2) {
12730 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12731 if (!SWIG_IsOK(ecode3)) {
12732 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12733 }
12734 arg3 = static_cast< bool >(val3);
12735 }
12736 {
12737 PyThreadState* __tstate = wxPyBeginAllowThreads();
12738 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12739 wxPyEndAllowThreads(__tstate);
12740 if (PyErr_Occurred()) SWIG_fail;
12741 }
12742 resultobj = SWIG_From_int(static_cast< int >(result));
12743 {
12744 if (temp2)
12745 delete arg2;
12746 }
12747 return resultobj;
12748 fail:
12749 {
12750 if (temp2)
12751 delete arg2;
12752 }
12753 return NULL;
12754 }
12755
12756
12757 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12758 PyObject *resultobj = 0;
12759 size_t result;
12760
12761 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12762 {
12763 PyThreadState* __tstate = wxPyBeginAllowThreads();
12764 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12765 wxPyEndAllowThreads(__tstate);
12766 if (PyErr_Occurred()) SWIG_fail;
12767 }
12768 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12769 return resultobj;
12770 fail:
12771 return NULL;
12772 }
12773
12774
12775 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12776 PyObject *resultobj = 0;
12777 size_t arg1 ;
12778 wxFontEncoding result;
12779 size_t val1 ;
12780 int ecode1 = 0 ;
12781 PyObject * obj0 = 0 ;
12782 char * kwnames[] = {
12783 (char *) "n", NULL
12784 };
12785
12786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
12787 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
12788 if (!SWIG_IsOK(ecode1)) {
12789 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
12790 }
12791 arg1 = static_cast< size_t >(val1);
12792 {
12793 PyThreadState* __tstate = wxPyBeginAllowThreads();
12794 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
12795 wxPyEndAllowThreads(__tstate);
12796 if (PyErr_Occurred()) SWIG_fail;
12797 }
12798 resultobj = SWIG_From_int(static_cast< int >(result));
12799 return resultobj;
12800 fail:
12801 return NULL;
12802 }
12803
12804
12805 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12806 PyObject *resultobj = 0;
12807 wxFontEncoding arg1 ;
12808 wxString result;
12809 int val1 ;
12810 int ecode1 = 0 ;
12811 PyObject * obj0 = 0 ;
12812 char * kwnames[] = {
12813 (char *) "encoding", NULL
12814 };
12815
12816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
12817 ecode1 = SWIG_AsVal_int(obj0, &val1);
12818 if (!SWIG_IsOK(ecode1)) {
12819 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12820 }
12821 arg1 = static_cast< wxFontEncoding >(val1);
12822 {
12823 PyThreadState* __tstate = wxPyBeginAllowThreads();
12824 result = wxFontMapper::GetEncodingName(arg1);
12825 wxPyEndAllowThreads(__tstate);
12826 if (PyErr_Occurred()) SWIG_fail;
12827 }
12828 {
12829 #if wxUSE_UNICODE
12830 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12831 #else
12832 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12833 #endif
12834 }
12835 return resultobj;
12836 fail:
12837 return NULL;
12838 }
12839
12840
12841 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12842 PyObject *resultobj = 0;
12843 wxFontEncoding arg1 ;
12844 wxString result;
12845 int val1 ;
12846 int ecode1 = 0 ;
12847 PyObject * obj0 = 0 ;
12848 char * kwnames[] = {
12849 (char *) "encoding", NULL
12850 };
12851
12852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
12853 ecode1 = SWIG_AsVal_int(obj0, &val1);
12854 if (!SWIG_IsOK(ecode1)) {
12855 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12856 }
12857 arg1 = static_cast< wxFontEncoding >(val1);
12858 {
12859 PyThreadState* __tstate = wxPyBeginAllowThreads();
12860 result = wxFontMapper::GetEncodingDescription(arg1);
12861 wxPyEndAllowThreads(__tstate);
12862 if (PyErr_Occurred()) SWIG_fail;
12863 }
12864 {
12865 #if wxUSE_UNICODE
12866 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12867 #else
12868 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12869 #endif
12870 }
12871 return resultobj;
12872 fail:
12873 return NULL;
12874 }
12875
12876
12877 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12878 PyObject *resultobj = 0;
12879 wxString *arg1 = 0 ;
12880 wxFontEncoding result;
12881 bool temp1 = false ;
12882 PyObject * obj0 = 0 ;
12883 char * kwnames[] = {
12884 (char *) "name", NULL
12885 };
12886
12887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
12888 {
12889 arg1 = wxString_in_helper(obj0);
12890 if (arg1 == NULL) SWIG_fail;
12891 temp1 = true;
12892 }
12893 {
12894 PyThreadState* __tstate = wxPyBeginAllowThreads();
12895 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
12896 wxPyEndAllowThreads(__tstate);
12897 if (PyErr_Occurred()) SWIG_fail;
12898 }
12899 resultobj = SWIG_From_int(static_cast< int >(result));
12900 {
12901 if (temp1)
12902 delete arg1;
12903 }
12904 return resultobj;
12905 fail:
12906 {
12907 if (temp1)
12908 delete arg1;
12909 }
12910 return NULL;
12911 }
12912
12913
12914 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12915 PyObject *resultobj = 0;
12916 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12917 wxString *arg2 = 0 ;
12918 void *argp1 = 0 ;
12919 int res1 = 0 ;
12920 bool temp2 = false ;
12921 PyObject * obj0 = 0 ;
12922 PyObject * obj1 = 0 ;
12923 char * kwnames[] = {
12924 (char *) "self",(char *) "prefix", NULL
12925 };
12926
12927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
12928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12929 if (!SWIG_IsOK(res1)) {
12930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12931 }
12932 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12933 {
12934 arg2 = wxString_in_helper(obj1);
12935 if (arg2 == NULL) SWIG_fail;
12936 temp2 = true;
12937 }
12938 {
12939 PyThreadState* __tstate = wxPyBeginAllowThreads();
12940 (arg1)->SetConfigPath((wxString const &)*arg2);
12941 wxPyEndAllowThreads(__tstate);
12942 if (PyErr_Occurred()) SWIG_fail;
12943 }
12944 resultobj = SWIG_Py_Void();
12945 {
12946 if (temp2)
12947 delete arg2;
12948 }
12949 return resultobj;
12950 fail:
12951 {
12952 if (temp2)
12953 delete arg2;
12954 }
12955 return NULL;
12956 }
12957
12958
12959 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12960 PyObject *resultobj = 0;
12961 wxString result;
12962
12963 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
12964 {
12965 PyThreadState* __tstate = wxPyBeginAllowThreads();
12966 result = wxFontMapper::GetDefaultConfigPath();
12967 wxPyEndAllowThreads(__tstate);
12968 if (PyErr_Occurred()) SWIG_fail;
12969 }
12970 {
12971 #if wxUSE_UNICODE
12972 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12973 #else
12974 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12975 #endif
12976 }
12977 return resultobj;
12978 fail:
12979 return NULL;
12980 }
12981
12982
12983 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12984 PyObject *resultobj = 0;
12985 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12986 wxFontEncoding arg2 ;
12987 wxString const &arg3_defvalue = wxPyEmptyString ;
12988 wxString *arg3 = (wxString *) &arg3_defvalue ;
12989 bool arg4 = (bool) true ;
12990 PyObject *result = 0 ;
12991 void *argp1 = 0 ;
12992 int res1 = 0 ;
12993 int val2 ;
12994 int ecode2 = 0 ;
12995 bool temp3 = false ;
12996 bool val4 ;
12997 int ecode4 = 0 ;
12998 PyObject * obj0 = 0 ;
12999 PyObject * obj1 = 0 ;
13000 PyObject * obj2 = 0 ;
13001 PyObject * obj3 = 0 ;
13002 char * kwnames[] = {
13003 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13004 };
13005
13006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13008 if (!SWIG_IsOK(res1)) {
13009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13010 }
13011 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13012 ecode2 = SWIG_AsVal_int(obj1, &val2);
13013 if (!SWIG_IsOK(ecode2)) {
13014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13015 }
13016 arg2 = static_cast< wxFontEncoding >(val2);
13017 if (obj2) {
13018 {
13019 arg3 = wxString_in_helper(obj2);
13020 if (arg3 == NULL) SWIG_fail;
13021 temp3 = true;
13022 }
13023 }
13024 if (obj3) {
13025 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13026 if (!SWIG_IsOK(ecode4)) {
13027 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13028 }
13029 arg4 = static_cast< bool >(val4);
13030 }
13031 {
13032 PyThreadState* __tstate = wxPyBeginAllowThreads();
13033 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13034 wxPyEndAllowThreads(__tstate);
13035 if (PyErr_Occurred()) SWIG_fail;
13036 }
13037 resultobj = result;
13038 {
13039 if (temp3)
13040 delete arg3;
13041 }
13042 return resultobj;
13043 fail:
13044 {
13045 if (temp3)
13046 delete arg3;
13047 }
13048 return NULL;
13049 }
13050
13051
13052 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13053 PyObject *resultobj = 0;
13054 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13055 wxFontEncoding arg2 ;
13056 wxString const &arg3_defvalue = wxPyEmptyString ;
13057 wxString *arg3 = (wxString *) &arg3_defvalue ;
13058 bool result;
13059 void *argp1 = 0 ;
13060 int res1 = 0 ;
13061 int val2 ;
13062 int ecode2 = 0 ;
13063 bool temp3 = false ;
13064 PyObject * obj0 = 0 ;
13065 PyObject * obj1 = 0 ;
13066 PyObject * obj2 = 0 ;
13067 char * kwnames[] = {
13068 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13069 };
13070
13071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13073 if (!SWIG_IsOK(res1)) {
13074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13075 }
13076 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13077 ecode2 = SWIG_AsVal_int(obj1, &val2);
13078 if (!SWIG_IsOK(ecode2)) {
13079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13080 }
13081 arg2 = static_cast< wxFontEncoding >(val2);
13082 if (obj2) {
13083 {
13084 arg3 = wxString_in_helper(obj2);
13085 if (arg3 == NULL) SWIG_fail;
13086 temp3 = true;
13087 }
13088 }
13089 {
13090 PyThreadState* __tstate = wxPyBeginAllowThreads();
13091 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13092 wxPyEndAllowThreads(__tstate);
13093 if (PyErr_Occurred()) SWIG_fail;
13094 }
13095 {
13096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13097 }
13098 {
13099 if (temp3)
13100 delete arg3;
13101 }
13102 return resultobj;
13103 fail:
13104 {
13105 if (temp3)
13106 delete arg3;
13107 }
13108 return NULL;
13109 }
13110
13111
13112 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13113 PyObject *resultobj = 0;
13114 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13115 wxWindow *arg2 = (wxWindow *) 0 ;
13116 void *argp1 = 0 ;
13117 int res1 = 0 ;
13118 void *argp2 = 0 ;
13119 int res2 = 0 ;
13120 PyObject * obj0 = 0 ;
13121 PyObject * obj1 = 0 ;
13122 char * kwnames[] = {
13123 (char *) "self",(char *) "parent", NULL
13124 };
13125
13126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13128 if (!SWIG_IsOK(res1)) {
13129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13130 }
13131 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13132 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13133 if (!SWIG_IsOK(res2)) {
13134 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13135 }
13136 arg2 = reinterpret_cast< wxWindow * >(argp2);
13137 {
13138 PyThreadState* __tstate = wxPyBeginAllowThreads();
13139 (arg1)->SetDialogParent(arg2);
13140 wxPyEndAllowThreads(__tstate);
13141 if (PyErr_Occurred()) SWIG_fail;
13142 }
13143 resultobj = SWIG_Py_Void();
13144 return resultobj;
13145 fail:
13146 return NULL;
13147 }
13148
13149
13150 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13151 PyObject *resultobj = 0;
13152 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13153 wxString *arg2 = 0 ;
13154 void *argp1 = 0 ;
13155 int res1 = 0 ;
13156 bool temp2 = false ;
13157 PyObject * obj0 = 0 ;
13158 PyObject * obj1 = 0 ;
13159 char * kwnames[] = {
13160 (char *) "self",(char *) "title", NULL
13161 };
13162
13163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13165 if (!SWIG_IsOK(res1)) {
13166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13167 }
13168 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13169 {
13170 arg2 = wxString_in_helper(obj1);
13171 if (arg2 == NULL) SWIG_fail;
13172 temp2 = true;
13173 }
13174 {
13175 PyThreadState* __tstate = wxPyBeginAllowThreads();
13176 (arg1)->SetDialogTitle((wxString const &)*arg2);
13177 wxPyEndAllowThreads(__tstate);
13178 if (PyErr_Occurred()) SWIG_fail;
13179 }
13180 resultobj = SWIG_Py_Void();
13181 {
13182 if (temp2)
13183 delete arg2;
13184 }
13185 return resultobj;
13186 fail:
13187 {
13188 if (temp2)
13189 delete arg2;
13190 }
13191 return NULL;
13192 }
13193
13194
13195 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13196 PyObject *obj;
13197 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13198 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13199 return SWIG_Py_Void();
13200 }
13201
13202 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13203 return SWIG_Python_InitShadowInstance(args);
13204 }
13205
13206 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13207 PyObject *resultobj = 0;
13208 int arg1 ;
13209 int arg2 ;
13210 int arg3 ;
13211 int arg4 ;
13212 bool arg5 = (bool) false ;
13213 wxString const &arg6_defvalue = wxPyEmptyString ;
13214 wxString *arg6 = (wxString *) &arg6_defvalue ;
13215 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13216 wxFont *result = 0 ;
13217 int val1 ;
13218 int ecode1 = 0 ;
13219 int val2 ;
13220 int ecode2 = 0 ;
13221 int val3 ;
13222 int ecode3 = 0 ;
13223 int val4 ;
13224 int ecode4 = 0 ;
13225 bool val5 ;
13226 int ecode5 = 0 ;
13227 bool temp6 = false ;
13228 int val7 ;
13229 int ecode7 = 0 ;
13230 PyObject * obj0 = 0 ;
13231 PyObject * obj1 = 0 ;
13232 PyObject * obj2 = 0 ;
13233 PyObject * obj3 = 0 ;
13234 PyObject * obj4 = 0 ;
13235 PyObject * obj5 = 0 ;
13236 PyObject * obj6 = 0 ;
13237 char * kwnames[] = {
13238 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13239 };
13240
13241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13242 ecode1 = SWIG_AsVal_int(obj0, &val1);
13243 if (!SWIG_IsOK(ecode1)) {
13244 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13245 }
13246 arg1 = static_cast< int >(val1);
13247 ecode2 = SWIG_AsVal_int(obj1, &val2);
13248 if (!SWIG_IsOK(ecode2)) {
13249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13250 }
13251 arg2 = static_cast< int >(val2);
13252 ecode3 = SWIG_AsVal_int(obj2, &val3);
13253 if (!SWIG_IsOK(ecode3)) {
13254 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13255 }
13256 arg3 = static_cast< int >(val3);
13257 ecode4 = SWIG_AsVal_int(obj3, &val4);
13258 if (!SWIG_IsOK(ecode4)) {
13259 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13260 }
13261 arg4 = static_cast< int >(val4);
13262 if (obj4) {
13263 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13264 if (!SWIG_IsOK(ecode5)) {
13265 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13266 }
13267 arg5 = static_cast< bool >(val5);
13268 }
13269 if (obj5) {
13270 {
13271 arg6 = wxString_in_helper(obj5);
13272 if (arg6 == NULL) SWIG_fail;
13273 temp6 = true;
13274 }
13275 }
13276 if (obj6) {
13277 ecode7 = SWIG_AsVal_int(obj6, &val7);
13278 if (!SWIG_IsOK(ecode7)) {
13279 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13280 }
13281 arg7 = static_cast< wxFontEncoding >(val7);
13282 }
13283 {
13284 if (!wxPyCheckForApp()) SWIG_fail;
13285 PyThreadState* __tstate = wxPyBeginAllowThreads();
13286 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13287 wxPyEndAllowThreads(__tstate);
13288 if (PyErr_Occurred()) SWIG_fail;
13289 }
13290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13291 {
13292 if (temp6)
13293 delete arg6;
13294 }
13295 return resultobj;
13296 fail:
13297 {
13298 if (temp6)
13299 delete arg6;
13300 }
13301 return NULL;
13302 }
13303
13304
13305 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13306 PyObject *resultobj = 0;
13307 wxFont *arg1 = (wxFont *) 0 ;
13308 void *argp1 = 0 ;
13309 int res1 = 0 ;
13310 PyObject *swig_obj[1] ;
13311
13312 if (!args) SWIG_fail;
13313 swig_obj[0] = args;
13314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13315 if (!SWIG_IsOK(res1)) {
13316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13317 }
13318 arg1 = reinterpret_cast< wxFont * >(argp1);
13319 {
13320 PyThreadState* __tstate = wxPyBeginAllowThreads();
13321 delete arg1;
13322
13323 wxPyEndAllowThreads(__tstate);
13324 if (PyErr_Occurred()) SWIG_fail;
13325 }
13326 resultobj = SWIG_Py_Void();
13327 return resultobj;
13328 fail:
13329 return NULL;
13330 }
13331
13332
13333 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13334 PyObject *resultobj = 0;
13335 wxNativeFontInfo *arg1 = 0 ;
13336 wxFont *result = 0 ;
13337 void *argp1 = 0 ;
13338 int res1 = 0 ;
13339 PyObject * obj0 = 0 ;
13340 char * kwnames[] = {
13341 (char *) "info", NULL
13342 };
13343
13344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13345 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13346 if (!SWIG_IsOK(res1)) {
13347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13348 }
13349 if (!argp1) {
13350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13351 }
13352 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13353 {
13354 if (!wxPyCheckForApp()) SWIG_fail;
13355 PyThreadState* __tstate = wxPyBeginAllowThreads();
13356 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13357 wxPyEndAllowThreads(__tstate);
13358 if (PyErr_Occurred()) SWIG_fail;
13359 }
13360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13361 return resultobj;
13362 fail:
13363 return NULL;
13364 }
13365
13366
13367 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13368 PyObject *resultobj = 0;
13369 wxString *arg1 = 0 ;
13370 wxFont *result = 0 ;
13371 bool temp1 = false ;
13372 PyObject * obj0 = 0 ;
13373 char * kwnames[] = {
13374 (char *) "info", NULL
13375 };
13376
13377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13378 {
13379 arg1 = wxString_in_helper(obj0);
13380 if (arg1 == NULL) SWIG_fail;
13381 temp1 = true;
13382 }
13383 {
13384 if (!wxPyCheckForApp()) SWIG_fail;
13385 PyThreadState* __tstate = wxPyBeginAllowThreads();
13386 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13387 wxPyEndAllowThreads(__tstate);
13388 if (PyErr_Occurred()) SWIG_fail;
13389 }
13390 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13391 {
13392 if (temp1)
13393 delete arg1;
13394 }
13395 return resultobj;
13396 fail:
13397 {
13398 if (temp1)
13399 delete arg1;
13400 }
13401 return NULL;
13402 }
13403
13404
13405 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13406 PyObject *resultobj = 0;
13407 int arg1 ;
13408 wxFontFamily arg2 ;
13409 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13410 wxString const &arg4_defvalue = wxPyEmptyString ;
13411 wxString *arg4 = (wxString *) &arg4_defvalue ;
13412 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13413 wxFont *result = 0 ;
13414 int val1 ;
13415 int ecode1 = 0 ;
13416 int val2 ;
13417 int ecode2 = 0 ;
13418 int val3 ;
13419 int ecode3 = 0 ;
13420 bool temp4 = false ;
13421 int val5 ;
13422 int ecode5 = 0 ;
13423 PyObject * obj0 = 0 ;
13424 PyObject * obj1 = 0 ;
13425 PyObject * obj2 = 0 ;
13426 PyObject * obj3 = 0 ;
13427 PyObject * obj4 = 0 ;
13428 char * kwnames[] = {
13429 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13430 };
13431
13432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13433 ecode1 = SWIG_AsVal_int(obj0, &val1);
13434 if (!SWIG_IsOK(ecode1)) {
13435 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13436 }
13437 arg1 = static_cast< int >(val1);
13438 ecode2 = SWIG_AsVal_int(obj1, &val2);
13439 if (!SWIG_IsOK(ecode2)) {
13440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13441 }
13442 arg2 = static_cast< wxFontFamily >(val2);
13443 if (obj2) {
13444 ecode3 = SWIG_AsVal_int(obj2, &val3);
13445 if (!SWIG_IsOK(ecode3)) {
13446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13447 }
13448 arg3 = static_cast< int >(val3);
13449 }
13450 if (obj3) {
13451 {
13452 arg4 = wxString_in_helper(obj3);
13453 if (arg4 == NULL) SWIG_fail;
13454 temp4 = true;
13455 }
13456 }
13457 if (obj4) {
13458 ecode5 = SWIG_AsVal_int(obj4, &val5);
13459 if (!SWIG_IsOK(ecode5)) {
13460 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13461 }
13462 arg5 = static_cast< wxFontEncoding >(val5);
13463 }
13464 {
13465 if (!wxPyCheckForApp()) SWIG_fail;
13466 PyThreadState* __tstate = wxPyBeginAllowThreads();
13467 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13468 wxPyEndAllowThreads(__tstate);
13469 if (PyErr_Occurred()) SWIG_fail;
13470 }
13471 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13472 {
13473 if (temp4)
13474 delete arg4;
13475 }
13476 return resultobj;
13477 fail:
13478 {
13479 if (temp4)
13480 delete arg4;
13481 }
13482 return NULL;
13483 }
13484
13485
13486 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13487 PyObject *resultobj = 0;
13488 wxSize *arg1 = 0 ;
13489 int arg2 ;
13490 int arg3 ;
13491 int arg4 ;
13492 bool arg5 = (bool) false ;
13493 wxString const &arg6_defvalue = wxEmptyString ;
13494 wxString *arg6 = (wxString *) &arg6_defvalue ;
13495 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13496 wxFont *result = 0 ;
13497 wxSize temp1 ;
13498 int val2 ;
13499 int ecode2 = 0 ;
13500 int val3 ;
13501 int ecode3 = 0 ;
13502 int val4 ;
13503 int ecode4 = 0 ;
13504 bool val5 ;
13505 int ecode5 = 0 ;
13506 bool temp6 = false ;
13507 int val7 ;
13508 int ecode7 = 0 ;
13509 PyObject * obj0 = 0 ;
13510 PyObject * obj1 = 0 ;
13511 PyObject * obj2 = 0 ;
13512 PyObject * obj3 = 0 ;
13513 PyObject * obj4 = 0 ;
13514 PyObject * obj5 = 0 ;
13515 PyObject * obj6 = 0 ;
13516 char * kwnames[] = {
13517 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13518 };
13519
13520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13521 {
13522 arg1 = &temp1;
13523 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13524 }
13525 ecode2 = SWIG_AsVal_int(obj1, &val2);
13526 if (!SWIG_IsOK(ecode2)) {
13527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13528 }
13529 arg2 = static_cast< int >(val2);
13530 ecode3 = SWIG_AsVal_int(obj2, &val3);
13531 if (!SWIG_IsOK(ecode3)) {
13532 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13533 }
13534 arg3 = static_cast< int >(val3);
13535 ecode4 = SWIG_AsVal_int(obj3, &val4);
13536 if (!SWIG_IsOK(ecode4)) {
13537 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13538 }
13539 arg4 = static_cast< int >(val4);
13540 if (obj4) {
13541 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13542 if (!SWIG_IsOK(ecode5)) {
13543 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13544 }
13545 arg5 = static_cast< bool >(val5);
13546 }
13547 if (obj5) {
13548 {
13549 arg6 = wxString_in_helper(obj5);
13550 if (arg6 == NULL) SWIG_fail;
13551 temp6 = true;
13552 }
13553 }
13554 if (obj6) {
13555 ecode7 = SWIG_AsVal_int(obj6, &val7);
13556 if (!SWIG_IsOK(ecode7)) {
13557 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13558 }
13559 arg7 = static_cast< wxFontEncoding >(val7);
13560 }
13561 {
13562 if (!wxPyCheckForApp()) SWIG_fail;
13563 PyThreadState* __tstate = wxPyBeginAllowThreads();
13564 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13565 wxPyEndAllowThreads(__tstate);
13566 if (PyErr_Occurred()) SWIG_fail;
13567 }
13568 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13569 {
13570 if (temp6)
13571 delete arg6;
13572 }
13573 return resultobj;
13574 fail:
13575 {
13576 if (temp6)
13577 delete arg6;
13578 }
13579 return NULL;
13580 }
13581
13582
13583 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13584 PyObject *resultobj = 0;
13585 wxSize *arg1 = 0 ;
13586 wxFontFamily arg2 ;
13587 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13588 wxString const &arg4_defvalue = wxEmptyString ;
13589 wxString *arg4 = (wxString *) &arg4_defvalue ;
13590 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13591 wxFont *result = 0 ;
13592 wxSize temp1 ;
13593 int val2 ;
13594 int ecode2 = 0 ;
13595 int val3 ;
13596 int ecode3 = 0 ;
13597 bool temp4 = false ;
13598 int val5 ;
13599 int ecode5 = 0 ;
13600 PyObject * obj0 = 0 ;
13601 PyObject * obj1 = 0 ;
13602 PyObject * obj2 = 0 ;
13603 PyObject * obj3 = 0 ;
13604 PyObject * obj4 = 0 ;
13605 char * kwnames[] = {
13606 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13607 };
13608
13609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13610 {
13611 arg1 = &temp1;
13612 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13613 }
13614 ecode2 = SWIG_AsVal_int(obj1, &val2);
13615 if (!SWIG_IsOK(ecode2)) {
13616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13617 }
13618 arg2 = static_cast< wxFontFamily >(val2);
13619 if (obj2) {
13620 ecode3 = SWIG_AsVal_int(obj2, &val3);
13621 if (!SWIG_IsOK(ecode3)) {
13622 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13623 }
13624 arg3 = static_cast< int >(val3);
13625 }
13626 if (obj3) {
13627 {
13628 arg4 = wxString_in_helper(obj3);
13629 if (arg4 == NULL) SWIG_fail;
13630 temp4 = true;
13631 }
13632 }
13633 if (obj4) {
13634 ecode5 = SWIG_AsVal_int(obj4, &val5);
13635 if (!SWIG_IsOK(ecode5)) {
13636 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13637 }
13638 arg5 = static_cast< wxFontEncoding >(val5);
13639 }
13640 {
13641 if (!wxPyCheckForApp()) SWIG_fail;
13642 PyThreadState* __tstate = wxPyBeginAllowThreads();
13643 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13644 wxPyEndAllowThreads(__tstate);
13645 if (PyErr_Occurred()) SWIG_fail;
13646 }
13647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13648 {
13649 if (temp4)
13650 delete arg4;
13651 }
13652 return resultobj;
13653 fail:
13654 {
13655 if (temp4)
13656 delete arg4;
13657 }
13658 return NULL;
13659 }
13660
13661
13662 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13663 PyObject *resultobj = 0;
13664 wxFont *arg1 = (wxFont *) 0 ;
13665 bool result;
13666 void *argp1 = 0 ;
13667 int res1 = 0 ;
13668 PyObject *swig_obj[1] ;
13669
13670 if (!args) SWIG_fail;
13671 swig_obj[0] = args;
13672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13673 if (!SWIG_IsOK(res1)) {
13674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
13675 }
13676 arg1 = reinterpret_cast< wxFont * >(argp1);
13677 {
13678 PyThreadState* __tstate = wxPyBeginAllowThreads();
13679 result = (bool)((wxFont const *)arg1)->Ok();
13680 wxPyEndAllowThreads(__tstate);
13681 if (PyErr_Occurred()) SWIG_fail;
13682 }
13683 {
13684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13685 }
13686 return resultobj;
13687 fail:
13688 return NULL;
13689 }
13690
13691
13692 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13693 PyObject *resultobj = 0;
13694 wxFont *arg1 = (wxFont *) 0 ;
13695 wxFont *arg2 = (wxFont *) 0 ;
13696 bool result;
13697 void *argp1 = 0 ;
13698 int res1 = 0 ;
13699 void *argp2 = 0 ;
13700 int res2 = 0 ;
13701 PyObject * obj0 = 0 ;
13702 PyObject * obj1 = 0 ;
13703 char * kwnames[] = {
13704 (char *) "self",(char *) "other", NULL
13705 };
13706
13707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13709 if (!SWIG_IsOK(res1)) {
13710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13711 }
13712 arg1 = reinterpret_cast< wxFont * >(argp1);
13713 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13714 if (!SWIG_IsOK(res2)) {
13715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13716 }
13717 arg2 = reinterpret_cast< wxFont * >(argp2);
13718 {
13719 PyThreadState* __tstate = wxPyBeginAllowThreads();
13720 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13721 wxPyEndAllowThreads(__tstate);
13722 if (PyErr_Occurred()) SWIG_fail;
13723 }
13724 {
13725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13726 }
13727 return resultobj;
13728 fail:
13729 return NULL;
13730 }
13731
13732
13733 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13734 PyObject *resultobj = 0;
13735 wxFont *arg1 = (wxFont *) 0 ;
13736 wxFont *arg2 = (wxFont *) 0 ;
13737 bool result;
13738 void *argp1 = 0 ;
13739 int res1 = 0 ;
13740 void *argp2 = 0 ;
13741 int res2 = 0 ;
13742 PyObject * obj0 = 0 ;
13743 PyObject * obj1 = 0 ;
13744 char * kwnames[] = {
13745 (char *) "self",(char *) "other", NULL
13746 };
13747
13748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13750 if (!SWIG_IsOK(res1)) {
13751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13752 }
13753 arg1 = reinterpret_cast< wxFont * >(argp1);
13754 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13755 if (!SWIG_IsOK(res2)) {
13756 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13757 }
13758 arg2 = reinterpret_cast< wxFont * >(argp2);
13759 {
13760 PyThreadState* __tstate = wxPyBeginAllowThreads();
13761 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13762 wxPyEndAllowThreads(__tstate);
13763 if (PyErr_Occurred()) SWIG_fail;
13764 }
13765 {
13766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13767 }
13768 return resultobj;
13769 fail:
13770 return NULL;
13771 }
13772
13773
13774 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13775 PyObject *resultobj = 0;
13776 wxFont *arg1 = (wxFont *) 0 ;
13777 int result;
13778 void *argp1 = 0 ;
13779 int res1 = 0 ;
13780 PyObject *swig_obj[1] ;
13781
13782 if (!args) SWIG_fail;
13783 swig_obj[0] = args;
13784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13785 if (!SWIG_IsOK(res1)) {
13786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13787 }
13788 arg1 = reinterpret_cast< wxFont * >(argp1);
13789 {
13790 PyThreadState* __tstate = wxPyBeginAllowThreads();
13791 result = (int)((wxFont const *)arg1)->GetPointSize();
13792 wxPyEndAllowThreads(__tstate);
13793 if (PyErr_Occurred()) SWIG_fail;
13794 }
13795 resultobj = SWIG_From_int(static_cast< int >(result));
13796 return resultobj;
13797 fail:
13798 return NULL;
13799 }
13800
13801
13802 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13803 PyObject *resultobj = 0;
13804 wxFont *arg1 = (wxFont *) 0 ;
13805 wxSize result;
13806 void *argp1 = 0 ;
13807 int res1 = 0 ;
13808 PyObject *swig_obj[1] ;
13809
13810 if (!args) SWIG_fail;
13811 swig_obj[0] = args;
13812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13813 if (!SWIG_IsOK(res1)) {
13814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13815 }
13816 arg1 = reinterpret_cast< wxFont * >(argp1);
13817 {
13818 PyThreadState* __tstate = wxPyBeginAllowThreads();
13819 result = ((wxFont const *)arg1)->GetPixelSize();
13820 wxPyEndAllowThreads(__tstate);
13821 if (PyErr_Occurred()) SWIG_fail;
13822 }
13823 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
13824 return resultobj;
13825 fail:
13826 return NULL;
13827 }
13828
13829
13830 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13831 PyObject *resultobj = 0;
13832 wxFont *arg1 = (wxFont *) 0 ;
13833 bool result;
13834 void *argp1 = 0 ;
13835 int res1 = 0 ;
13836 PyObject *swig_obj[1] ;
13837
13838 if (!args) SWIG_fail;
13839 swig_obj[0] = args;
13840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13841 if (!SWIG_IsOK(res1)) {
13842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
13843 }
13844 arg1 = reinterpret_cast< wxFont * >(argp1);
13845 {
13846 PyThreadState* __tstate = wxPyBeginAllowThreads();
13847 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
13848 wxPyEndAllowThreads(__tstate);
13849 if (PyErr_Occurred()) SWIG_fail;
13850 }
13851 {
13852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13853 }
13854 return resultobj;
13855 fail:
13856 return NULL;
13857 }
13858
13859
13860 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13861 PyObject *resultobj = 0;
13862 wxFont *arg1 = (wxFont *) 0 ;
13863 int result;
13864 void *argp1 = 0 ;
13865 int res1 = 0 ;
13866 PyObject *swig_obj[1] ;
13867
13868 if (!args) SWIG_fail;
13869 swig_obj[0] = args;
13870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13871 if (!SWIG_IsOK(res1)) {
13872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
13873 }
13874 arg1 = reinterpret_cast< wxFont * >(argp1);
13875 {
13876 PyThreadState* __tstate = wxPyBeginAllowThreads();
13877 result = (int)((wxFont const *)arg1)->GetFamily();
13878 wxPyEndAllowThreads(__tstate);
13879 if (PyErr_Occurred()) SWIG_fail;
13880 }
13881 resultobj = SWIG_From_int(static_cast< int >(result));
13882 return resultobj;
13883 fail:
13884 return NULL;
13885 }
13886
13887
13888 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13889 PyObject *resultobj = 0;
13890 wxFont *arg1 = (wxFont *) 0 ;
13891 int result;
13892 void *argp1 = 0 ;
13893 int res1 = 0 ;
13894 PyObject *swig_obj[1] ;
13895
13896 if (!args) SWIG_fail;
13897 swig_obj[0] = args;
13898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13899 if (!SWIG_IsOK(res1)) {
13900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
13901 }
13902 arg1 = reinterpret_cast< wxFont * >(argp1);
13903 {
13904 PyThreadState* __tstate = wxPyBeginAllowThreads();
13905 result = (int)((wxFont const *)arg1)->GetStyle();
13906 wxPyEndAllowThreads(__tstate);
13907 if (PyErr_Occurred()) SWIG_fail;
13908 }
13909 resultobj = SWIG_From_int(static_cast< int >(result));
13910 return resultobj;
13911 fail:
13912 return NULL;
13913 }
13914
13915
13916 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13917 PyObject *resultobj = 0;
13918 wxFont *arg1 = (wxFont *) 0 ;
13919 int result;
13920 void *argp1 = 0 ;
13921 int res1 = 0 ;
13922 PyObject *swig_obj[1] ;
13923
13924 if (!args) SWIG_fail;
13925 swig_obj[0] = args;
13926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13927 if (!SWIG_IsOK(res1)) {
13928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
13929 }
13930 arg1 = reinterpret_cast< wxFont * >(argp1);
13931 {
13932 PyThreadState* __tstate = wxPyBeginAllowThreads();
13933 result = (int)((wxFont const *)arg1)->GetWeight();
13934 wxPyEndAllowThreads(__tstate);
13935 if (PyErr_Occurred()) SWIG_fail;
13936 }
13937 resultobj = SWIG_From_int(static_cast< int >(result));
13938 return resultobj;
13939 fail:
13940 return NULL;
13941 }
13942
13943
13944 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13945 PyObject *resultobj = 0;
13946 wxFont *arg1 = (wxFont *) 0 ;
13947 bool result;
13948 void *argp1 = 0 ;
13949 int res1 = 0 ;
13950 PyObject *swig_obj[1] ;
13951
13952 if (!args) SWIG_fail;
13953 swig_obj[0] = args;
13954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13955 if (!SWIG_IsOK(res1)) {
13956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
13957 }
13958 arg1 = reinterpret_cast< wxFont * >(argp1);
13959 {
13960 PyThreadState* __tstate = wxPyBeginAllowThreads();
13961 result = (bool)((wxFont const *)arg1)->GetUnderlined();
13962 wxPyEndAllowThreads(__tstate);
13963 if (PyErr_Occurred()) SWIG_fail;
13964 }
13965 {
13966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13967 }
13968 return resultobj;
13969 fail:
13970 return NULL;
13971 }
13972
13973
13974 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13975 PyObject *resultobj = 0;
13976 wxFont *arg1 = (wxFont *) 0 ;
13977 wxString result;
13978 void *argp1 = 0 ;
13979 int res1 = 0 ;
13980 PyObject *swig_obj[1] ;
13981
13982 if (!args) SWIG_fail;
13983 swig_obj[0] = args;
13984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13985 if (!SWIG_IsOK(res1)) {
13986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
13987 }
13988 arg1 = reinterpret_cast< wxFont * >(argp1);
13989 {
13990 PyThreadState* __tstate = wxPyBeginAllowThreads();
13991 result = ((wxFont const *)arg1)->GetFaceName();
13992 wxPyEndAllowThreads(__tstate);
13993 if (PyErr_Occurred()) SWIG_fail;
13994 }
13995 {
13996 #if wxUSE_UNICODE
13997 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13998 #else
13999 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14000 #endif
14001 }
14002 return resultobj;
14003 fail:
14004 return NULL;
14005 }
14006
14007
14008 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14009 PyObject *resultobj = 0;
14010 wxFont *arg1 = (wxFont *) 0 ;
14011 wxFontEncoding result;
14012 void *argp1 = 0 ;
14013 int res1 = 0 ;
14014 PyObject *swig_obj[1] ;
14015
14016 if (!args) SWIG_fail;
14017 swig_obj[0] = args;
14018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14019 if (!SWIG_IsOK(res1)) {
14020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14021 }
14022 arg1 = reinterpret_cast< wxFont * >(argp1);
14023 {
14024 PyThreadState* __tstate = wxPyBeginAllowThreads();
14025 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14026 wxPyEndAllowThreads(__tstate);
14027 if (PyErr_Occurred()) SWIG_fail;
14028 }
14029 resultobj = SWIG_From_int(static_cast< int >(result));
14030 return resultobj;
14031 fail:
14032 return NULL;
14033 }
14034
14035
14036 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14037 PyObject *resultobj = 0;
14038 wxFont *arg1 = (wxFont *) 0 ;
14039 wxNativeFontInfo *result = 0 ;
14040 void *argp1 = 0 ;
14041 int res1 = 0 ;
14042 PyObject *swig_obj[1] ;
14043
14044 if (!args) SWIG_fail;
14045 swig_obj[0] = args;
14046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14047 if (!SWIG_IsOK(res1)) {
14048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14049 }
14050 arg1 = reinterpret_cast< wxFont * >(argp1);
14051 {
14052 PyThreadState* __tstate = wxPyBeginAllowThreads();
14053 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14054 wxPyEndAllowThreads(__tstate);
14055 if (PyErr_Occurred()) SWIG_fail;
14056 }
14057 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14058 return resultobj;
14059 fail:
14060 return NULL;
14061 }
14062
14063
14064 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14065 PyObject *resultobj = 0;
14066 wxFont *arg1 = (wxFont *) 0 ;
14067 bool result;
14068 void *argp1 = 0 ;
14069 int res1 = 0 ;
14070 PyObject *swig_obj[1] ;
14071
14072 if (!args) SWIG_fail;
14073 swig_obj[0] = args;
14074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14075 if (!SWIG_IsOK(res1)) {
14076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14077 }
14078 arg1 = reinterpret_cast< wxFont * >(argp1);
14079 {
14080 PyThreadState* __tstate = wxPyBeginAllowThreads();
14081 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14082 wxPyEndAllowThreads(__tstate);
14083 if (PyErr_Occurred()) SWIG_fail;
14084 }
14085 {
14086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14087 }
14088 return resultobj;
14089 fail:
14090 return NULL;
14091 }
14092
14093
14094 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14095 PyObject *resultobj = 0;
14096 wxFont *arg1 = (wxFont *) 0 ;
14097 wxString result;
14098 void *argp1 = 0 ;
14099 int res1 = 0 ;
14100 PyObject *swig_obj[1] ;
14101
14102 if (!args) SWIG_fail;
14103 swig_obj[0] = args;
14104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14105 if (!SWIG_IsOK(res1)) {
14106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14107 }
14108 arg1 = reinterpret_cast< wxFont * >(argp1);
14109 {
14110 PyThreadState* __tstate = wxPyBeginAllowThreads();
14111 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14112 wxPyEndAllowThreads(__tstate);
14113 if (PyErr_Occurred()) SWIG_fail;
14114 }
14115 {
14116 #if wxUSE_UNICODE
14117 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14118 #else
14119 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14120 #endif
14121 }
14122 return resultobj;
14123 fail:
14124 return NULL;
14125 }
14126
14127
14128 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14129 PyObject *resultobj = 0;
14130 wxFont *arg1 = (wxFont *) 0 ;
14131 wxString result;
14132 void *argp1 = 0 ;
14133 int res1 = 0 ;
14134 PyObject *swig_obj[1] ;
14135
14136 if (!args) SWIG_fail;
14137 swig_obj[0] = args;
14138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14139 if (!SWIG_IsOK(res1)) {
14140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14141 }
14142 arg1 = reinterpret_cast< wxFont * >(argp1);
14143 {
14144 PyThreadState* __tstate = wxPyBeginAllowThreads();
14145 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14146 wxPyEndAllowThreads(__tstate);
14147 if (PyErr_Occurred()) SWIG_fail;
14148 }
14149 {
14150 #if wxUSE_UNICODE
14151 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14152 #else
14153 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14154 #endif
14155 }
14156 return resultobj;
14157 fail:
14158 return NULL;
14159 }
14160
14161
14162 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14163 PyObject *resultobj = 0;
14164 wxFont *arg1 = (wxFont *) 0 ;
14165 int arg2 ;
14166 void *argp1 = 0 ;
14167 int res1 = 0 ;
14168 int val2 ;
14169 int ecode2 = 0 ;
14170 PyObject * obj0 = 0 ;
14171 PyObject * obj1 = 0 ;
14172 char * kwnames[] = {
14173 (char *) "self",(char *) "pointSize", NULL
14174 };
14175
14176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14178 if (!SWIG_IsOK(res1)) {
14179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14180 }
14181 arg1 = reinterpret_cast< wxFont * >(argp1);
14182 ecode2 = SWIG_AsVal_int(obj1, &val2);
14183 if (!SWIG_IsOK(ecode2)) {
14184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14185 }
14186 arg2 = static_cast< int >(val2);
14187 {
14188 PyThreadState* __tstate = wxPyBeginAllowThreads();
14189 (arg1)->SetPointSize(arg2);
14190 wxPyEndAllowThreads(__tstate);
14191 if (PyErr_Occurred()) SWIG_fail;
14192 }
14193 resultobj = SWIG_Py_Void();
14194 return resultobj;
14195 fail:
14196 return NULL;
14197 }
14198
14199
14200 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14201 PyObject *resultobj = 0;
14202 wxFont *arg1 = (wxFont *) 0 ;
14203 wxSize *arg2 = 0 ;
14204 void *argp1 = 0 ;
14205 int res1 = 0 ;
14206 wxSize temp2 ;
14207 PyObject * obj0 = 0 ;
14208 PyObject * obj1 = 0 ;
14209 char * kwnames[] = {
14210 (char *) "self",(char *) "pixelSize", NULL
14211 };
14212
14213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14215 if (!SWIG_IsOK(res1)) {
14216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14217 }
14218 arg1 = reinterpret_cast< wxFont * >(argp1);
14219 {
14220 arg2 = &temp2;
14221 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14222 }
14223 {
14224 PyThreadState* __tstate = wxPyBeginAllowThreads();
14225 (arg1)->SetPixelSize((wxSize const &)*arg2);
14226 wxPyEndAllowThreads(__tstate);
14227 if (PyErr_Occurred()) SWIG_fail;
14228 }
14229 resultobj = SWIG_Py_Void();
14230 return resultobj;
14231 fail:
14232 return NULL;
14233 }
14234
14235
14236 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14237 PyObject *resultobj = 0;
14238 wxFont *arg1 = (wxFont *) 0 ;
14239 int arg2 ;
14240 void *argp1 = 0 ;
14241 int res1 = 0 ;
14242 int val2 ;
14243 int ecode2 = 0 ;
14244 PyObject * obj0 = 0 ;
14245 PyObject * obj1 = 0 ;
14246 char * kwnames[] = {
14247 (char *) "self",(char *) "family", NULL
14248 };
14249
14250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14252 if (!SWIG_IsOK(res1)) {
14253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14254 }
14255 arg1 = reinterpret_cast< wxFont * >(argp1);
14256 ecode2 = SWIG_AsVal_int(obj1, &val2);
14257 if (!SWIG_IsOK(ecode2)) {
14258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14259 }
14260 arg2 = static_cast< int >(val2);
14261 {
14262 PyThreadState* __tstate = wxPyBeginAllowThreads();
14263 (arg1)->SetFamily(arg2);
14264 wxPyEndAllowThreads(__tstate);
14265 if (PyErr_Occurred()) SWIG_fail;
14266 }
14267 resultobj = SWIG_Py_Void();
14268 return resultobj;
14269 fail:
14270 return NULL;
14271 }
14272
14273
14274 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14275 PyObject *resultobj = 0;
14276 wxFont *arg1 = (wxFont *) 0 ;
14277 int arg2 ;
14278 void *argp1 = 0 ;
14279 int res1 = 0 ;
14280 int val2 ;
14281 int ecode2 = 0 ;
14282 PyObject * obj0 = 0 ;
14283 PyObject * obj1 = 0 ;
14284 char * kwnames[] = {
14285 (char *) "self",(char *) "style", NULL
14286 };
14287
14288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14290 if (!SWIG_IsOK(res1)) {
14291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14292 }
14293 arg1 = reinterpret_cast< wxFont * >(argp1);
14294 ecode2 = SWIG_AsVal_int(obj1, &val2);
14295 if (!SWIG_IsOK(ecode2)) {
14296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14297 }
14298 arg2 = static_cast< int >(val2);
14299 {
14300 PyThreadState* __tstate = wxPyBeginAllowThreads();
14301 (arg1)->SetStyle(arg2);
14302 wxPyEndAllowThreads(__tstate);
14303 if (PyErr_Occurred()) SWIG_fail;
14304 }
14305 resultobj = SWIG_Py_Void();
14306 return resultobj;
14307 fail:
14308 return NULL;
14309 }
14310
14311
14312 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14313 PyObject *resultobj = 0;
14314 wxFont *arg1 = (wxFont *) 0 ;
14315 int arg2 ;
14316 void *argp1 = 0 ;
14317 int res1 = 0 ;
14318 int val2 ;
14319 int ecode2 = 0 ;
14320 PyObject * obj0 = 0 ;
14321 PyObject * obj1 = 0 ;
14322 char * kwnames[] = {
14323 (char *) "self",(char *) "weight", NULL
14324 };
14325
14326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14328 if (!SWIG_IsOK(res1)) {
14329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14330 }
14331 arg1 = reinterpret_cast< wxFont * >(argp1);
14332 ecode2 = SWIG_AsVal_int(obj1, &val2);
14333 if (!SWIG_IsOK(ecode2)) {
14334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14335 }
14336 arg2 = static_cast< int >(val2);
14337 {
14338 PyThreadState* __tstate = wxPyBeginAllowThreads();
14339 (arg1)->SetWeight(arg2);
14340 wxPyEndAllowThreads(__tstate);
14341 if (PyErr_Occurred()) SWIG_fail;
14342 }
14343 resultobj = SWIG_Py_Void();
14344 return resultobj;
14345 fail:
14346 return NULL;
14347 }
14348
14349
14350 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14351 PyObject *resultobj = 0;
14352 wxFont *arg1 = (wxFont *) 0 ;
14353 wxString *arg2 = 0 ;
14354 bool result;
14355 void *argp1 = 0 ;
14356 int res1 = 0 ;
14357 bool temp2 = false ;
14358 PyObject * obj0 = 0 ;
14359 PyObject * obj1 = 0 ;
14360 char * kwnames[] = {
14361 (char *) "self",(char *) "faceName", NULL
14362 };
14363
14364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14366 if (!SWIG_IsOK(res1)) {
14367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14368 }
14369 arg1 = reinterpret_cast< wxFont * >(argp1);
14370 {
14371 arg2 = wxString_in_helper(obj1);
14372 if (arg2 == NULL) SWIG_fail;
14373 temp2 = true;
14374 }
14375 {
14376 PyThreadState* __tstate = wxPyBeginAllowThreads();
14377 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14378 wxPyEndAllowThreads(__tstate);
14379 if (PyErr_Occurred()) SWIG_fail;
14380 }
14381 {
14382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14383 }
14384 {
14385 if (temp2)
14386 delete arg2;
14387 }
14388 return resultobj;
14389 fail:
14390 {
14391 if (temp2)
14392 delete arg2;
14393 }
14394 return NULL;
14395 }
14396
14397
14398 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14399 PyObject *resultobj = 0;
14400 wxFont *arg1 = (wxFont *) 0 ;
14401 bool arg2 ;
14402 void *argp1 = 0 ;
14403 int res1 = 0 ;
14404 bool val2 ;
14405 int ecode2 = 0 ;
14406 PyObject * obj0 = 0 ;
14407 PyObject * obj1 = 0 ;
14408 char * kwnames[] = {
14409 (char *) "self",(char *) "underlined", NULL
14410 };
14411
14412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14414 if (!SWIG_IsOK(res1)) {
14415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14416 }
14417 arg1 = reinterpret_cast< wxFont * >(argp1);
14418 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14419 if (!SWIG_IsOK(ecode2)) {
14420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14421 }
14422 arg2 = static_cast< bool >(val2);
14423 {
14424 PyThreadState* __tstate = wxPyBeginAllowThreads();
14425 (arg1)->SetUnderlined(arg2);
14426 wxPyEndAllowThreads(__tstate);
14427 if (PyErr_Occurred()) SWIG_fail;
14428 }
14429 resultobj = SWIG_Py_Void();
14430 return resultobj;
14431 fail:
14432 return NULL;
14433 }
14434
14435
14436 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14437 PyObject *resultobj = 0;
14438 wxFont *arg1 = (wxFont *) 0 ;
14439 wxFontEncoding arg2 ;
14440 void *argp1 = 0 ;
14441 int res1 = 0 ;
14442 int val2 ;
14443 int ecode2 = 0 ;
14444 PyObject * obj0 = 0 ;
14445 PyObject * obj1 = 0 ;
14446 char * kwnames[] = {
14447 (char *) "self",(char *) "encoding", NULL
14448 };
14449
14450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14452 if (!SWIG_IsOK(res1)) {
14453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14454 }
14455 arg1 = reinterpret_cast< wxFont * >(argp1);
14456 ecode2 = SWIG_AsVal_int(obj1, &val2);
14457 if (!SWIG_IsOK(ecode2)) {
14458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14459 }
14460 arg2 = static_cast< wxFontEncoding >(val2);
14461 {
14462 PyThreadState* __tstate = wxPyBeginAllowThreads();
14463 (arg1)->SetEncoding(arg2);
14464 wxPyEndAllowThreads(__tstate);
14465 if (PyErr_Occurred()) SWIG_fail;
14466 }
14467 resultobj = SWIG_Py_Void();
14468 return resultobj;
14469 fail:
14470 return NULL;
14471 }
14472
14473
14474 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14475 PyObject *resultobj = 0;
14476 wxFont *arg1 = (wxFont *) 0 ;
14477 wxNativeFontInfo *arg2 = 0 ;
14478 void *argp1 = 0 ;
14479 int res1 = 0 ;
14480 void *argp2 = 0 ;
14481 int res2 = 0 ;
14482 PyObject * obj0 = 0 ;
14483 PyObject * obj1 = 0 ;
14484 char * kwnames[] = {
14485 (char *) "self",(char *) "info", NULL
14486 };
14487
14488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14490 if (!SWIG_IsOK(res1)) {
14491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14492 }
14493 arg1 = reinterpret_cast< wxFont * >(argp1);
14494 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14495 if (!SWIG_IsOK(res2)) {
14496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14497 }
14498 if (!argp2) {
14499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14500 }
14501 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14502 {
14503 PyThreadState* __tstate = wxPyBeginAllowThreads();
14504 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14505 wxPyEndAllowThreads(__tstate);
14506 if (PyErr_Occurred()) SWIG_fail;
14507 }
14508 resultobj = SWIG_Py_Void();
14509 return resultobj;
14510 fail:
14511 return NULL;
14512 }
14513
14514
14515 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14516 PyObject *resultobj = 0;
14517 wxFont *arg1 = (wxFont *) 0 ;
14518 wxString *arg2 = 0 ;
14519 bool result;
14520 void *argp1 = 0 ;
14521 int res1 = 0 ;
14522 bool temp2 = false ;
14523 PyObject * obj0 = 0 ;
14524 PyObject * obj1 = 0 ;
14525 char * kwnames[] = {
14526 (char *) "self",(char *) "info", NULL
14527 };
14528
14529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14531 if (!SWIG_IsOK(res1)) {
14532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14533 }
14534 arg1 = reinterpret_cast< wxFont * >(argp1);
14535 {
14536 arg2 = wxString_in_helper(obj1);
14537 if (arg2 == NULL) SWIG_fail;
14538 temp2 = true;
14539 }
14540 {
14541 PyThreadState* __tstate = wxPyBeginAllowThreads();
14542 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
14543 wxPyEndAllowThreads(__tstate);
14544 if (PyErr_Occurred()) SWIG_fail;
14545 }
14546 {
14547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14548 }
14549 {
14550 if (temp2)
14551 delete arg2;
14552 }
14553 return resultobj;
14554 fail:
14555 {
14556 if (temp2)
14557 delete arg2;
14558 }
14559 return NULL;
14560 }
14561
14562
14563 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14564 PyObject *resultobj = 0;
14565 wxFont *arg1 = (wxFont *) 0 ;
14566 wxString *arg2 = 0 ;
14567 bool result;
14568 void *argp1 = 0 ;
14569 int res1 = 0 ;
14570 bool temp2 = false ;
14571 PyObject * obj0 = 0 ;
14572 PyObject * obj1 = 0 ;
14573 char * kwnames[] = {
14574 (char *) "self",(char *) "info", NULL
14575 };
14576
14577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14579 if (!SWIG_IsOK(res1)) {
14580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14581 }
14582 arg1 = reinterpret_cast< wxFont * >(argp1);
14583 {
14584 arg2 = wxString_in_helper(obj1);
14585 if (arg2 == NULL) SWIG_fail;
14586 temp2 = true;
14587 }
14588 {
14589 PyThreadState* __tstate = wxPyBeginAllowThreads();
14590 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
14591 wxPyEndAllowThreads(__tstate);
14592 if (PyErr_Occurred()) SWIG_fail;
14593 }
14594 {
14595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14596 }
14597 {
14598 if (temp2)
14599 delete arg2;
14600 }
14601 return resultobj;
14602 fail:
14603 {
14604 if (temp2)
14605 delete arg2;
14606 }
14607 return NULL;
14608 }
14609
14610
14611 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14612 PyObject *resultobj = 0;
14613 wxFont *arg1 = (wxFont *) 0 ;
14614 wxString result;
14615 void *argp1 = 0 ;
14616 int res1 = 0 ;
14617 PyObject *swig_obj[1] ;
14618
14619 if (!args) SWIG_fail;
14620 swig_obj[0] = args;
14621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14622 if (!SWIG_IsOK(res1)) {
14623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14624 }
14625 arg1 = reinterpret_cast< wxFont * >(argp1);
14626 {
14627 PyThreadState* __tstate = wxPyBeginAllowThreads();
14628 result = ((wxFont const *)arg1)->GetFamilyString();
14629 wxPyEndAllowThreads(__tstate);
14630 if (PyErr_Occurred()) SWIG_fail;
14631 }
14632 {
14633 #if wxUSE_UNICODE
14634 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14635 #else
14636 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14637 #endif
14638 }
14639 return resultobj;
14640 fail:
14641 return NULL;
14642 }
14643
14644
14645 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14646 PyObject *resultobj = 0;
14647 wxFont *arg1 = (wxFont *) 0 ;
14648 wxString result;
14649 void *argp1 = 0 ;
14650 int res1 = 0 ;
14651 PyObject *swig_obj[1] ;
14652
14653 if (!args) SWIG_fail;
14654 swig_obj[0] = args;
14655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14656 if (!SWIG_IsOK(res1)) {
14657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14658 }
14659 arg1 = reinterpret_cast< wxFont * >(argp1);
14660 {
14661 PyThreadState* __tstate = wxPyBeginAllowThreads();
14662 result = ((wxFont const *)arg1)->GetStyleString();
14663 wxPyEndAllowThreads(__tstate);
14664 if (PyErr_Occurred()) SWIG_fail;
14665 }
14666 {
14667 #if wxUSE_UNICODE
14668 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14669 #else
14670 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14671 #endif
14672 }
14673 return resultobj;
14674 fail:
14675 return NULL;
14676 }
14677
14678
14679 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14680 PyObject *resultobj = 0;
14681 wxFont *arg1 = (wxFont *) 0 ;
14682 wxString result;
14683 void *argp1 = 0 ;
14684 int res1 = 0 ;
14685 PyObject *swig_obj[1] ;
14686
14687 if (!args) SWIG_fail;
14688 swig_obj[0] = args;
14689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14690 if (!SWIG_IsOK(res1)) {
14691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14692 }
14693 arg1 = reinterpret_cast< wxFont * >(argp1);
14694 {
14695 PyThreadState* __tstate = wxPyBeginAllowThreads();
14696 result = ((wxFont const *)arg1)->GetWeightString();
14697 wxPyEndAllowThreads(__tstate);
14698 if (PyErr_Occurred()) SWIG_fail;
14699 }
14700 {
14701 #if wxUSE_UNICODE
14702 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14703 #else
14704 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14705 #endif
14706 }
14707 return resultobj;
14708 fail:
14709 return NULL;
14710 }
14711
14712
14713 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14714 PyObject *resultobj = 0;
14715 wxFont *arg1 = (wxFont *) 0 ;
14716 bool arg2 = (bool) true ;
14717 void *argp1 = 0 ;
14718 int res1 = 0 ;
14719 bool val2 ;
14720 int ecode2 = 0 ;
14721 PyObject * obj0 = 0 ;
14722 PyObject * obj1 = 0 ;
14723 char * kwnames[] = {
14724 (char *) "self",(char *) "no", NULL
14725 };
14726
14727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14729 if (!SWIG_IsOK(res1)) {
14730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14731 }
14732 arg1 = reinterpret_cast< wxFont * >(argp1);
14733 if (obj1) {
14734 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14735 if (!SWIG_IsOK(ecode2)) {
14736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14737 }
14738 arg2 = static_cast< bool >(val2);
14739 }
14740 {
14741 PyThreadState* __tstate = wxPyBeginAllowThreads();
14742 (arg1)->SetNoAntiAliasing(arg2);
14743 wxPyEndAllowThreads(__tstate);
14744 if (PyErr_Occurred()) SWIG_fail;
14745 }
14746 resultobj = SWIG_Py_Void();
14747 return resultobj;
14748 fail:
14749 return NULL;
14750 }
14751
14752
14753 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14754 PyObject *resultobj = 0;
14755 wxFont *arg1 = (wxFont *) 0 ;
14756 bool result;
14757 void *argp1 = 0 ;
14758 int res1 = 0 ;
14759 PyObject *swig_obj[1] ;
14760
14761 if (!args) SWIG_fail;
14762 swig_obj[0] = args;
14763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14764 if (!SWIG_IsOK(res1)) {
14765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14766 }
14767 arg1 = reinterpret_cast< wxFont * >(argp1);
14768 {
14769 PyThreadState* __tstate = wxPyBeginAllowThreads();
14770 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14771 wxPyEndAllowThreads(__tstate);
14772 if (PyErr_Occurred()) SWIG_fail;
14773 }
14774 {
14775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14776 }
14777 return resultobj;
14778 fail:
14779 return NULL;
14780 }
14781
14782
14783 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14784 PyObject *resultobj = 0;
14785 wxFontEncoding result;
14786
14787 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
14788 {
14789 if (!wxPyCheckForApp()) SWIG_fail;
14790 PyThreadState* __tstate = wxPyBeginAllowThreads();
14791 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
14792 wxPyEndAllowThreads(__tstate);
14793 if (PyErr_Occurred()) SWIG_fail;
14794 }
14795 resultobj = SWIG_From_int(static_cast< int >(result));
14796 return resultobj;
14797 fail:
14798 return NULL;
14799 }
14800
14801
14802 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14803 PyObject *resultobj = 0;
14804 wxFontEncoding arg1 ;
14805 int val1 ;
14806 int ecode1 = 0 ;
14807 PyObject * obj0 = 0 ;
14808 char * kwnames[] = {
14809 (char *) "encoding", NULL
14810 };
14811
14812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
14813 ecode1 = SWIG_AsVal_int(obj0, &val1);
14814 if (!SWIG_IsOK(ecode1)) {
14815 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14816 }
14817 arg1 = static_cast< wxFontEncoding >(val1);
14818 {
14819 if (!wxPyCheckForApp()) SWIG_fail;
14820 PyThreadState* __tstate = wxPyBeginAllowThreads();
14821 wxFont::SetDefaultEncoding(arg1);
14822 wxPyEndAllowThreads(__tstate);
14823 if (PyErr_Occurred()) SWIG_fail;
14824 }
14825 resultobj = SWIG_Py_Void();
14826 return resultobj;
14827 fail:
14828 return NULL;
14829 }
14830
14831
14832 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14833 PyObject *obj;
14834 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14835 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
14836 return SWIG_Py_Void();
14837 }
14838
14839 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14840 return SWIG_Python_InitShadowInstance(args);
14841 }
14842
14843 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14844 PyObject *resultobj = 0;
14845 wxPyFontEnumerator *result = 0 ;
14846
14847 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
14848 {
14849 if (!wxPyCheckForApp()) SWIG_fail;
14850 PyThreadState* __tstate = wxPyBeginAllowThreads();
14851 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
14852 wxPyEndAllowThreads(__tstate);
14853 if (PyErr_Occurred()) SWIG_fail;
14854 }
14855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
14856 return resultobj;
14857 fail:
14858 return NULL;
14859 }
14860
14861
14862 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14863 PyObject *resultobj = 0;
14864 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14865 void *argp1 = 0 ;
14866 int res1 = 0 ;
14867 PyObject *swig_obj[1] ;
14868
14869 if (!args) SWIG_fail;
14870 swig_obj[0] = args;
14871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
14872 if (!SWIG_IsOK(res1)) {
14873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
14874 }
14875 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
14876 {
14877 PyThreadState* __tstate = wxPyBeginAllowThreads();
14878 delete arg1;
14879
14880 wxPyEndAllowThreads(__tstate);
14881 if (PyErr_Occurred()) SWIG_fail;
14882 }
14883 resultobj = SWIG_Py_Void();
14884 return resultobj;
14885 fail:
14886 return NULL;
14887 }
14888
14889
14890 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14891 PyObject *resultobj = 0;
14892 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14893 PyObject *arg2 = (PyObject *) 0 ;
14894 PyObject *arg3 = (PyObject *) 0 ;
14895 bool arg4 ;
14896 void *argp1 = 0 ;
14897 int res1 = 0 ;
14898 bool val4 ;
14899 int ecode4 = 0 ;
14900 PyObject * obj0 = 0 ;
14901 PyObject * obj1 = 0 ;
14902 PyObject * obj2 = 0 ;
14903 PyObject * obj3 = 0 ;
14904 char * kwnames[] = {
14905 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
14906 };
14907
14908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
14910 if (!SWIG_IsOK(res1)) {
14911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
14912 }
14913 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
14914 arg2 = obj1;
14915 arg3 = obj2;
14916 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14917 if (!SWIG_IsOK(ecode4)) {
14918 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
14919 }
14920 arg4 = static_cast< bool >(val4);
14921 {
14922 PyThreadState* __tstate = wxPyBeginAllowThreads();
14923 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
14924 wxPyEndAllowThreads(__tstate);
14925 if (PyErr_Occurred()) SWIG_fail;
14926 }
14927 resultobj = SWIG_Py_Void();
14928 return resultobj;
14929 fail:
14930 return NULL;
14931 }
14932
14933
14934 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14935 PyObject *resultobj = 0;
14936 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14937 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
14938 bool arg3 = (bool) false ;
14939 bool result;
14940 void *argp1 = 0 ;
14941 int res1 = 0 ;
14942 int val2 ;
14943 int ecode2 = 0 ;
14944 bool val3 ;
14945 int ecode3 = 0 ;
14946 PyObject * obj0 = 0 ;
14947 PyObject * obj1 = 0 ;
14948 PyObject * obj2 = 0 ;
14949 char * kwnames[] = {
14950 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
14951 };
14952
14953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
14955 if (!SWIG_IsOK(res1)) {
14956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
14957 }
14958 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
14959 if (obj1) {
14960 ecode2 = SWIG_AsVal_int(obj1, &val2);
14961 if (!SWIG_IsOK(ecode2)) {
14962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14963 }
14964 arg2 = static_cast< wxFontEncoding >(val2);
14965 }
14966 if (obj2) {
14967 ecode3 = SWIG_AsVal_bool(obj2, &val3);
14968 if (!SWIG_IsOK(ecode3)) {
14969 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
14970 }
14971 arg3 = static_cast< bool >(val3);
14972 }
14973 {
14974 PyThreadState* __tstate = wxPyBeginAllowThreads();
14975 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
14976 wxPyEndAllowThreads(__tstate);
14977 if (PyErr_Occurred()) SWIG_fail;
14978 }
14979 {
14980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14981 }
14982 return resultobj;
14983 fail:
14984 return NULL;
14985 }
14986
14987
14988 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14989 PyObject *resultobj = 0;
14990 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14991 wxString const &arg2_defvalue = wxPyEmptyString ;
14992 wxString *arg2 = (wxString *) &arg2_defvalue ;
14993 bool result;
14994 void *argp1 = 0 ;
14995 int res1 = 0 ;
14996 bool temp2 = false ;
14997 PyObject * obj0 = 0 ;
14998 PyObject * obj1 = 0 ;
14999 char * kwnames[] = {
15000 (char *) "self",(char *) "facename", NULL
15001 };
15002
15003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15005 if (!SWIG_IsOK(res1)) {
15006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15007 }
15008 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15009 if (obj1) {
15010 {
15011 arg2 = wxString_in_helper(obj1);
15012 if (arg2 == NULL) SWIG_fail;
15013 temp2 = true;
15014 }
15015 }
15016 {
15017 PyThreadState* __tstate = wxPyBeginAllowThreads();
15018 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15019 wxPyEndAllowThreads(__tstate);
15020 if (PyErr_Occurred()) SWIG_fail;
15021 }
15022 {
15023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15024 }
15025 {
15026 if (temp2)
15027 delete arg2;
15028 }
15029 return resultobj;
15030 fail:
15031 {
15032 if (temp2)
15033 delete arg2;
15034 }
15035 return NULL;
15036 }
15037
15038
15039 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15040 PyObject *resultobj = 0;
15041 PyObject *result = 0 ;
15042
15043 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15044 {
15045 PyThreadState* __tstate = wxPyBeginAllowThreads();
15046 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15047 wxPyEndAllowThreads(__tstate);
15048 if (PyErr_Occurred()) SWIG_fail;
15049 }
15050 resultobj = result;
15051 return resultobj;
15052 fail:
15053 return NULL;
15054 }
15055
15056
15057 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15058 PyObject *resultobj = 0;
15059 PyObject *result = 0 ;
15060
15061 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15062 {
15063 PyThreadState* __tstate = wxPyBeginAllowThreads();
15064 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15065 wxPyEndAllowThreads(__tstate);
15066 if (PyErr_Occurred()) SWIG_fail;
15067 }
15068 resultobj = result;
15069 return resultobj;
15070 fail:
15071 return NULL;
15072 }
15073
15074
15075 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15076 PyObject *resultobj = 0;
15077 wxString *arg1 = 0 ;
15078 bool result;
15079 bool temp1 = false ;
15080 PyObject * obj0 = 0 ;
15081 char * kwnames[] = {
15082 (char *) "str", NULL
15083 };
15084
15085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15086 {
15087 arg1 = wxString_in_helper(obj0);
15088 if (arg1 == NULL) SWIG_fail;
15089 temp1 = true;
15090 }
15091 {
15092 PyThreadState* __tstate = wxPyBeginAllowThreads();
15093 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15094 wxPyEndAllowThreads(__tstate);
15095 if (PyErr_Occurred()) SWIG_fail;
15096 }
15097 {
15098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15099 }
15100 {
15101 if (temp1)
15102 delete arg1;
15103 }
15104 return resultobj;
15105 fail:
15106 {
15107 if (temp1)
15108 delete arg1;
15109 }
15110 return NULL;
15111 }
15112
15113
15114 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15115 PyObject *obj;
15116 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15117 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15118 return SWIG_Py_Void();
15119 }
15120
15121 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15122 return SWIG_Python_InitShadowInstance(args);
15123 }
15124
15125 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15126 PyObject *resultobj = 0;
15127 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15128 int arg2 ;
15129 void *argp1 = 0 ;
15130 int res1 = 0 ;
15131 int val2 ;
15132 int ecode2 = 0 ;
15133 PyObject *swig_obj[2] ;
15134
15135 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15137 if (!SWIG_IsOK(res1)) {
15138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15139 }
15140 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15141 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15142 if (!SWIG_IsOK(ecode2)) {
15143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15144 }
15145 arg2 = static_cast< int >(val2);
15146 if (arg1) (arg1)->Language = arg2;
15147
15148 resultobj = SWIG_Py_Void();
15149 return resultobj;
15150 fail:
15151 return NULL;
15152 }
15153
15154
15155 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15156 PyObject *resultobj = 0;
15157 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15158 int result;
15159 void *argp1 = 0 ;
15160 int res1 = 0 ;
15161 PyObject *swig_obj[1] ;
15162
15163 if (!args) SWIG_fail;
15164 swig_obj[0] = args;
15165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15166 if (!SWIG_IsOK(res1)) {
15167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15168 }
15169 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15170 result = (int) ((arg1)->Language);
15171 resultobj = SWIG_From_int(static_cast< int >(result));
15172 return resultobj;
15173 fail:
15174 return NULL;
15175 }
15176
15177
15178 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15179 PyObject *resultobj = 0;
15180 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15181 wxString *arg2 = (wxString *) 0 ;
15182 void *argp1 = 0 ;
15183 int res1 = 0 ;
15184 bool temp2 = false ;
15185 PyObject *swig_obj[2] ;
15186
15187 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15189 if (!SWIG_IsOK(res1)) {
15190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15191 }
15192 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15193 {
15194 arg2 = wxString_in_helper(swig_obj[1]);
15195 if (arg2 == NULL) SWIG_fail;
15196 temp2 = true;
15197 }
15198 if (arg1) (arg1)->CanonicalName = *arg2;
15199
15200 resultobj = SWIG_Py_Void();
15201 {
15202 if (temp2)
15203 delete arg2;
15204 }
15205 return resultobj;
15206 fail:
15207 {
15208 if (temp2)
15209 delete arg2;
15210 }
15211 return NULL;
15212 }
15213
15214
15215 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15216 PyObject *resultobj = 0;
15217 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15218 wxString *result = 0 ;
15219 void *argp1 = 0 ;
15220 int res1 = 0 ;
15221 PyObject *swig_obj[1] ;
15222
15223 if (!args) SWIG_fail;
15224 swig_obj[0] = args;
15225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15226 if (!SWIG_IsOK(res1)) {
15227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15228 }
15229 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15230 result = (wxString *)& ((arg1)->CanonicalName);
15231 {
15232 #if wxUSE_UNICODE
15233 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15234 #else
15235 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15236 #endif
15237 }
15238 return resultobj;
15239 fail:
15240 return NULL;
15241 }
15242
15243
15244 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15245 PyObject *resultobj = 0;
15246 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15247 wxString *arg2 = (wxString *) 0 ;
15248 void *argp1 = 0 ;
15249 int res1 = 0 ;
15250 bool temp2 = false ;
15251 PyObject *swig_obj[2] ;
15252
15253 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15255 if (!SWIG_IsOK(res1)) {
15256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15257 }
15258 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15259 {
15260 arg2 = wxString_in_helper(swig_obj[1]);
15261 if (arg2 == NULL) SWIG_fail;
15262 temp2 = true;
15263 }
15264 if (arg1) (arg1)->Description = *arg2;
15265
15266 resultobj = SWIG_Py_Void();
15267 {
15268 if (temp2)
15269 delete arg2;
15270 }
15271 return resultobj;
15272 fail:
15273 {
15274 if (temp2)
15275 delete arg2;
15276 }
15277 return NULL;
15278 }
15279
15280
15281 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15282 PyObject *resultobj = 0;
15283 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15284 wxString *result = 0 ;
15285 void *argp1 = 0 ;
15286 int res1 = 0 ;
15287 PyObject *swig_obj[1] ;
15288
15289 if (!args) SWIG_fail;
15290 swig_obj[0] = args;
15291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15292 if (!SWIG_IsOK(res1)) {
15293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15294 }
15295 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15296 result = (wxString *)& ((arg1)->Description);
15297 {
15298 #if wxUSE_UNICODE
15299 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15300 #else
15301 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15302 #endif
15303 }
15304 return resultobj;
15305 fail:
15306 return NULL;
15307 }
15308
15309
15310 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15311 PyObject *obj;
15312 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15313 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15314 return SWIG_Py_Void();
15315 }
15316
15317 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15318 PyObject *resultobj = 0;
15319 int arg1 = (int) -1 ;
15320 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15321 wxLocale *result = 0 ;
15322 int val1 ;
15323 int ecode1 = 0 ;
15324 int val2 ;
15325 int ecode2 = 0 ;
15326 PyObject * obj0 = 0 ;
15327 PyObject * obj1 = 0 ;
15328 char * kwnames[] = {
15329 (char *) "language",(char *) "flags", NULL
15330 };
15331
15332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15333 if (obj0) {
15334 ecode1 = SWIG_AsVal_int(obj0, &val1);
15335 if (!SWIG_IsOK(ecode1)) {
15336 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15337 }
15338 arg1 = static_cast< int >(val1);
15339 }
15340 if (obj1) {
15341 ecode2 = SWIG_AsVal_int(obj1, &val2);
15342 if (!SWIG_IsOK(ecode2)) {
15343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15344 }
15345 arg2 = static_cast< int >(val2);
15346 }
15347 {
15348 PyThreadState* __tstate = wxPyBeginAllowThreads();
15349 result = (wxLocale *)new_wxLocale(arg1,arg2);
15350 wxPyEndAllowThreads(__tstate);
15351 if (PyErr_Occurred()) SWIG_fail;
15352 }
15353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15354 return resultobj;
15355 fail:
15356 return NULL;
15357 }
15358
15359
15360 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15361 PyObject *resultobj = 0;
15362 wxLocale *arg1 = (wxLocale *) 0 ;
15363 void *argp1 = 0 ;
15364 int res1 = 0 ;
15365 PyObject *swig_obj[1] ;
15366
15367 if (!args) SWIG_fail;
15368 swig_obj[0] = args;
15369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15370 if (!SWIG_IsOK(res1)) {
15371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15372 }
15373 arg1 = reinterpret_cast< wxLocale * >(argp1);
15374 {
15375 PyThreadState* __tstate = wxPyBeginAllowThreads();
15376 delete arg1;
15377
15378 wxPyEndAllowThreads(__tstate);
15379 if (PyErr_Occurred()) SWIG_fail;
15380 }
15381 resultobj = SWIG_Py_Void();
15382 return resultobj;
15383 fail:
15384 return NULL;
15385 }
15386
15387
15388 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15389 PyObject *resultobj = 0;
15390 wxLocale *arg1 = (wxLocale *) 0 ;
15391 wxString *arg2 = 0 ;
15392 wxString const &arg3_defvalue = wxPyEmptyString ;
15393 wxString *arg3 = (wxString *) &arg3_defvalue ;
15394 wxString const &arg4_defvalue = wxPyEmptyString ;
15395 wxString *arg4 = (wxString *) &arg4_defvalue ;
15396 bool arg5 = (bool) true ;
15397 bool arg6 = (bool) false ;
15398 bool result;
15399 void *argp1 = 0 ;
15400 int res1 = 0 ;
15401 bool temp2 = false ;
15402 bool temp3 = false ;
15403 bool temp4 = false ;
15404 bool val5 ;
15405 int ecode5 = 0 ;
15406 bool val6 ;
15407 int ecode6 = 0 ;
15408 PyObject * obj0 = 0 ;
15409 PyObject * obj1 = 0 ;
15410 PyObject * obj2 = 0 ;
15411 PyObject * obj3 = 0 ;
15412 PyObject * obj4 = 0 ;
15413 PyObject * obj5 = 0 ;
15414 char * kwnames[] = {
15415 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15416 };
15417
15418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15420 if (!SWIG_IsOK(res1)) {
15421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15422 }
15423 arg1 = reinterpret_cast< wxLocale * >(argp1);
15424 {
15425 arg2 = wxString_in_helper(obj1);
15426 if (arg2 == NULL) SWIG_fail;
15427 temp2 = true;
15428 }
15429 if (obj2) {
15430 {
15431 arg3 = wxString_in_helper(obj2);
15432 if (arg3 == NULL) SWIG_fail;
15433 temp3 = true;
15434 }
15435 }
15436 if (obj3) {
15437 {
15438 arg4 = wxString_in_helper(obj3);
15439 if (arg4 == NULL) SWIG_fail;
15440 temp4 = true;
15441 }
15442 }
15443 if (obj4) {
15444 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15445 if (!SWIG_IsOK(ecode5)) {
15446 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15447 }
15448 arg5 = static_cast< bool >(val5);
15449 }
15450 if (obj5) {
15451 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15452 if (!SWIG_IsOK(ecode6)) {
15453 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15454 }
15455 arg6 = static_cast< bool >(val6);
15456 }
15457 {
15458 PyThreadState* __tstate = wxPyBeginAllowThreads();
15459 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15460 wxPyEndAllowThreads(__tstate);
15461 if (PyErr_Occurred()) SWIG_fail;
15462 }
15463 {
15464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15465 }
15466 {
15467 if (temp2)
15468 delete arg2;
15469 }
15470 {
15471 if (temp3)
15472 delete arg3;
15473 }
15474 {
15475 if (temp4)
15476 delete arg4;
15477 }
15478 return resultobj;
15479 fail:
15480 {
15481 if (temp2)
15482 delete arg2;
15483 }
15484 {
15485 if (temp3)
15486 delete arg3;
15487 }
15488 {
15489 if (temp4)
15490 delete arg4;
15491 }
15492 return NULL;
15493 }
15494
15495
15496 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15497 PyObject *resultobj = 0;
15498 wxLocale *arg1 = (wxLocale *) 0 ;
15499 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15500 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15501 bool result;
15502 void *argp1 = 0 ;
15503 int res1 = 0 ;
15504 int val2 ;
15505 int ecode2 = 0 ;
15506 int val3 ;
15507 int ecode3 = 0 ;
15508 PyObject * obj0 = 0 ;
15509 PyObject * obj1 = 0 ;
15510 PyObject * obj2 = 0 ;
15511 char * kwnames[] = {
15512 (char *) "self",(char *) "language",(char *) "flags", NULL
15513 };
15514
15515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15517 if (!SWIG_IsOK(res1)) {
15518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15519 }
15520 arg1 = reinterpret_cast< wxLocale * >(argp1);
15521 if (obj1) {
15522 ecode2 = SWIG_AsVal_int(obj1, &val2);
15523 if (!SWIG_IsOK(ecode2)) {
15524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15525 }
15526 arg2 = static_cast< int >(val2);
15527 }
15528 if (obj2) {
15529 ecode3 = SWIG_AsVal_int(obj2, &val3);
15530 if (!SWIG_IsOK(ecode3)) {
15531 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15532 }
15533 arg3 = static_cast< int >(val3);
15534 }
15535 {
15536 PyThreadState* __tstate = wxPyBeginAllowThreads();
15537 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15538 wxPyEndAllowThreads(__tstate);
15539 if (PyErr_Occurred()) SWIG_fail;
15540 }
15541 {
15542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15543 }
15544 return resultobj;
15545 fail:
15546 return NULL;
15547 }
15548
15549
15550 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15551 PyObject *resultobj = 0;
15552 int result;
15553
15554 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15555 {
15556 PyThreadState* __tstate = wxPyBeginAllowThreads();
15557 result = (int)wxLocale::GetSystemLanguage();
15558 wxPyEndAllowThreads(__tstate);
15559 if (PyErr_Occurred()) SWIG_fail;
15560 }
15561 resultobj = SWIG_From_int(static_cast< int >(result));
15562 return resultobj;
15563 fail:
15564 return NULL;
15565 }
15566
15567
15568 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15569 PyObject *resultobj = 0;
15570 wxFontEncoding result;
15571
15572 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15573 {
15574 PyThreadState* __tstate = wxPyBeginAllowThreads();
15575 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15576 wxPyEndAllowThreads(__tstate);
15577 if (PyErr_Occurred()) SWIG_fail;
15578 }
15579 resultobj = SWIG_From_int(static_cast< int >(result));
15580 return resultobj;
15581 fail:
15582 return NULL;
15583 }
15584
15585
15586 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15587 PyObject *resultobj = 0;
15588 wxString result;
15589
15590 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15591 {
15592 PyThreadState* __tstate = wxPyBeginAllowThreads();
15593 result = wxLocale::GetSystemEncodingName();
15594 wxPyEndAllowThreads(__tstate);
15595 if (PyErr_Occurred()) SWIG_fail;
15596 }
15597 {
15598 #if wxUSE_UNICODE
15599 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15600 #else
15601 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15602 #endif
15603 }
15604 return resultobj;
15605 fail:
15606 return NULL;
15607 }
15608
15609
15610 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15611 PyObject *resultobj = 0;
15612 wxLocale *arg1 = (wxLocale *) 0 ;
15613 bool result;
15614 void *argp1 = 0 ;
15615 int res1 = 0 ;
15616 PyObject *swig_obj[1] ;
15617
15618 if (!args) SWIG_fail;
15619 swig_obj[0] = args;
15620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15621 if (!SWIG_IsOK(res1)) {
15622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15623 }
15624 arg1 = reinterpret_cast< wxLocale * >(argp1);
15625 {
15626 PyThreadState* __tstate = wxPyBeginAllowThreads();
15627 result = (bool)((wxLocale const *)arg1)->IsOk();
15628 wxPyEndAllowThreads(__tstate);
15629 if (PyErr_Occurred()) SWIG_fail;
15630 }
15631 {
15632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15633 }
15634 return resultobj;
15635 fail:
15636 return NULL;
15637 }
15638
15639
15640 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15641 PyObject *resultobj = 0;
15642 wxLocale *arg1 = (wxLocale *) 0 ;
15643 wxString result;
15644 void *argp1 = 0 ;
15645 int res1 = 0 ;
15646 PyObject *swig_obj[1] ;
15647
15648 if (!args) SWIG_fail;
15649 swig_obj[0] = args;
15650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15651 if (!SWIG_IsOK(res1)) {
15652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15653 }
15654 arg1 = reinterpret_cast< wxLocale * >(argp1);
15655 {
15656 PyThreadState* __tstate = wxPyBeginAllowThreads();
15657 result = ((wxLocale const *)arg1)->GetLocale();
15658 wxPyEndAllowThreads(__tstate);
15659 if (PyErr_Occurred()) SWIG_fail;
15660 }
15661 {
15662 #if wxUSE_UNICODE
15663 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15664 #else
15665 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15666 #endif
15667 }
15668 return resultobj;
15669 fail:
15670 return NULL;
15671 }
15672
15673
15674 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15675 PyObject *resultobj = 0;
15676 wxLocale *arg1 = (wxLocale *) 0 ;
15677 int result;
15678 void *argp1 = 0 ;
15679 int res1 = 0 ;
15680 PyObject *swig_obj[1] ;
15681
15682 if (!args) SWIG_fail;
15683 swig_obj[0] = args;
15684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15685 if (!SWIG_IsOK(res1)) {
15686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15687 }
15688 arg1 = reinterpret_cast< wxLocale * >(argp1);
15689 {
15690 PyThreadState* __tstate = wxPyBeginAllowThreads();
15691 result = (int)((wxLocale const *)arg1)->GetLanguage();
15692 wxPyEndAllowThreads(__tstate);
15693 if (PyErr_Occurred()) SWIG_fail;
15694 }
15695 resultobj = SWIG_From_int(static_cast< int >(result));
15696 return resultobj;
15697 fail:
15698 return NULL;
15699 }
15700
15701
15702 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15703 PyObject *resultobj = 0;
15704 wxLocale *arg1 = (wxLocale *) 0 ;
15705 wxString result;
15706 void *argp1 = 0 ;
15707 int res1 = 0 ;
15708 PyObject *swig_obj[1] ;
15709
15710 if (!args) SWIG_fail;
15711 swig_obj[0] = args;
15712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15713 if (!SWIG_IsOK(res1)) {
15714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15715 }
15716 arg1 = reinterpret_cast< wxLocale * >(argp1);
15717 {
15718 PyThreadState* __tstate = wxPyBeginAllowThreads();
15719 result = ((wxLocale const *)arg1)->GetSysName();
15720 wxPyEndAllowThreads(__tstate);
15721 if (PyErr_Occurred()) SWIG_fail;
15722 }
15723 {
15724 #if wxUSE_UNICODE
15725 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15726 #else
15727 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15728 #endif
15729 }
15730 return resultobj;
15731 fail:
15732 return NULL;
15733 }
15734
15735
15736 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15737 PyObject *resultobj = 0;
15738 wxLocale *arg1 = (wxLocale *) 0 ;
15739 wxString result;
15740 void *argp1 = 0 ;
15741 int res1 = 0 ;
15742 PyObject *swig_obj[1] ;
15743
15744 if (!args) SWIG_fail;
15745 swig_obj[0] = args;
15746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15747 if (!SWIG_IsOK(res1)) {
15748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15749 }
15750 arg1 = reinterpret_cast< wxLocale * >(argp1);
15751 {
15752 PyThreadState* __tstate = wxPyBeginAllowThreads();
15753 result = ((wxLocale const *)arg1)->GetCanonicalName();
15754 wxPyEndAllowThreads(__tstate);
15755 if (PyErr_Occurred()) SWIG_fail;
15756 }
15757 {
15758 #if wxUSE_UNICODE
15759 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15760 #else
15761 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15762 #endif
15763 }
15764 return resultobj;
15765 fail:
15766 return NULL;
15767 }
15768
15769
15770 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15771 PyObject *resultobj = 0;
15772 wxString *arg1 = 0 ;
15773 bool temp1 = false ;
15774 PyObject * obj0 = 0 ;
15775 char * kwnames[] = {
15776 (char *) "prefix", NULL
15777 };
15778
15779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
15780 {
15781 arg1 = wxString_in_helper(obj0);
15782 if (arg1 == NULL) SWIG_fail;
15783 temp1 = true;
15784 }
15785 {
15786 PyThreadState* __tstate = wxPyBeginAllowThreads();
15787 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
15788 wxPyEndAllowThreads(__tstate);
15789 if (PyErr_Occurred()) SWIG_fail;
15790 }
15791 resultobj = SWIG_Py_Void();
15792 {
15793 if (temp1)
15794 delete arg1;
15795 }
15796 return resultobj;
15797 fail:
15798 {
15799 if (temp1)
15800 delete arg1;
15801 }
15802 return NULL;
15803 }
15804
15805
15806 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15807 PyObject *resultobj = 0;
15808 wxLocale *arg1 = (wxLocale *) 0 ;
15809 wxString *arg2 = 0 ;
15810 bool result;
15811 void *argp1 = 0 ;
15812 int res1 = 0 ;
15813 bool temp2 = false ;
15814 PyObject * obj0 = 0 ;
15815 PyObject * obj1 = 0 ;
15816 char * kwnames[] = {
15817 (char *) "self",(char *) "szDomain", NULL
15818 };
15819
15820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
15821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15822 if (!SWIG_IsOK(res1)) {
15823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
15824 }
15825 arg1 = reinterpret_cast< wxLocale * >(argp1);
15826 {
15827 arg2 = wxString_in_helper(obj1);
15828 if (arg2 == NULL) SWIG_fail;
15829 temp2 = true;
15830 }
15831 {
15832 PyThreadState* __tstate = wxPyBeginAllowThreads();
15833 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
15834 wxPyEndAllowThreads(__tstate);
15835 if (PyErr_Occurred()) SWIG_fail;
15836 }
15837 {
15838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15839 }
15840 {
15841 if (temp2)
15842 delete arg2;
15843 }
15844 return resultobj;
15845 fail:
15846 {
15847 if (temp2)
15848 delete arg2;
15849 }
15850 return NULL;
15851 }
15852
15853
15854 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15855 PyObject *resultobj = 0;
15856 wxLocale *arg1 = (wxLocale *) 0 ;
15857 wxString *arg2 = 0 ;
15858 bool result;
15859 void *argp1 = 0 ;
15860 int res1 = 0 ;
15861 bool temp2 = false ;
15862 PyObject * obj0 = 0 ;
15863 PyObject * obj1 = 0 ;
15864 char * kwnames[] = {
15865 (char *) "self",(char *) "szDomain", NULL
15866 };
15867
15868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
15869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15870 if (!SWIG_IsOK(res1)) {
15871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
15872 }
15873 arg1 = reinterpret_cast< wxLocale * >(argp1);
15874 {
15875 arg2 = wxString_in_helper(obj1);
15876 if (arg2 == NULL) SWIG_fail;
15877 temp2 = true;
15878 }
15879 {
15880 PyThreadState* __tstate = wxPyBeginAllowThreads();
15881 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
15882 wxPyEndAllowThreads(__tstate);
15883 if (PyErr_Occurred()) SWIG_fail;
15884 }
15885 {
15886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15887 }
15888 {
15889 if (temp2)
15890 delete arg2;
15891 }
15892 return resultobj;
15893 fail:
15894 {
15895 if (temp2)
15896 delete arg2;
15897 }
15898 return NULL;
15899 }
15900
15901
15902 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15903 PyObject *resultobj = 0;
15904 int arg1 ;
15905 wxLanguageInfo *result = 0 ;
15906 int val1 ;
15907 int ecode1 = 0 ;
15908 PyObject * obj0 = 0 ;
15909 char * kwnames[] = {
15910 (char *) "lang", NULL
15911 };
15912
15913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
15914 ecode1 = SWIG_AsVal_int(obj0, &val1);
15915 if (!SWIG_IsOK(ecode1)) {
15916 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
15917 }
15918 arg1 = static_cast< int >(val1);
15919 {
15920 PyThreadState* __tstate = wxPyBeginAllowThreads();
15921 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
15922 wxPyEndAllowThreads(__tstate);
15923 if (PyErr_Occurred()) SWIG_fail;
15924 }
15925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15926 return resultobj;
15927 fail:
15928 return NULL;
15929 }
15930
15931
15932 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15933 PyObject *resultobj = 0;
15934 int arg1 ;
15935 wxString result;
15936 int val1 ;
15937 int ecode1 = 0 ;
15938 PyObject * obj0 = 0 ;
15939 char * kwnames[] = {
15940 (char *) "lang", NULL
15941 };
15942
15943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
15944 ecode1 = SWIG_AsVal_int(obj0, &val1);
15945 if (!SWIG_IsOK(ecode1)) {
15946 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
15947 }
15948 arg1 = static_cast< int >(val1);
15949 {
15950 PyThreadState* __tstate = wxPyBeginAllowThreads();
15951 result = wxLocale::GetLanguageName(arg1);
15952 wxPyEndAllowThreads(__tstate);
15953 if (PyErr_Occurred()) SWIG_fail;
15954 }
15955 {
15956 #if wxUSE_UNICODE
15957 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15958 #else
15959 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15960 #endif
15961 }
15962 return resultobj;
15963 fail:
15964 return NULL;
15965 }
15966
15967
15968 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15969 PyObject *resultobj = 0;
15970 wxString *arg1 = 0 ;
15971 wxLanguageInfo *result = 0 ;
15972 bool temp1 = false ;
15973 PyObject * obj0 = 0 ;
15974 char * kwnames[] = {
15975 (char *) "locale", NULL
15976 };
15977
15978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
15979 {
15980 arg1 = wxString_in_helper(obj0);
15981 if (arg1 == NULL) SWIG_fail;
15982 temp1 = true;
15983 }
15984 {
15985 PyThreadState* __tstate = wxPyBeginAllowThreads();
15986 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
15987 wxPyEndAllowThreads(__tstate);
15988 if (PyErr_Occurred()) SWIG_fail;
15989 }
15990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15991 {
15992 if (temp1)
15993 delete arg1;
15994 }
15995 return resultobj;
15996 fail:
15997 {
15998 if (temp1)
15999 delete arg1;
16000 }
16001 return NULL;
16002 }
16003
16004
16005 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16006 PyObject *resultobj = 0;
16007 wxLanguageInfo *arg1 = 0 ;
16008 void *argp1 = 0 ;
16009 int res1 = 0 ;
16010 PyObject * obj0 = 0 ;
16011 char * kwnames[] = {
16012 (char *) "info", NULL
16013 };
16014
16015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16016 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16017 if (!SWIG_IsOK(res1)) {
16018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16019 }
16020 if (!argp1) {
16021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16022 }
16023 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16024 {
16025 PyThreadState* __tstate = wxPyBeginAllowThreads();
16026 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16027 wxPyEndAllowThreads(__tstate);
16028 if (PyErr_Occurred()) SWIG_fail;
16029 }
16030 resultobj = SWIG_Py_Void();
16031 return resultobj;
16032 fail:
16033 return NULL;
16034 }
16035
16036
16037 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16038 PyObject *resultobj = 0;
16039 wxLocale *arg1 = (wxLocale *) 0 ;
16040 wxString *arg2 = 0 ;
16041 wxString const &arg3_defvalue = wxPyEmptyString ;
16042 wxString *arg3 = (wxString *) &arg3_defvalue ;
16043 wxString result;
16044 void *argp1 = 0 ;
16045 int res1 = 0 ;
16046 bool temp2 = false ;
16047 bool temp3 = false ;
16048 PyObject * obj0 = 0 ;
16049 PyObject * obj1 = 0 ;
16050 PyObject * obj2 = 0 ;
16051 char * kwnames[] = {
16052 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16053 };
16054
16055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16057 if (!SWIG_IsOK(res1)) {
16058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16059 }
16060 arg1 = reinterpret_cast< wxLocale * >(argp1);
16061 {
16062 arg2 = wxString_in_helper(obj1);
16063 if (arg2 == NULL) SWIG_fail;
16064 temp2 = true;
16065 }
16066 if (obj2) {
16067 {
16068 arg3 = wxString_in_helper(obj2);
16069 if (arg3 == NULL) SWIG_fail;
16070 temp3 = true;
16071 }
16072 }
16073 {
16074 PyThreadState* __tstate = wxPyBeginAllowThreads();
16075 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16076 wxPyEndAllowThreads(__tstate);
16077 if (PyErr_Occurred()) SWIG_fail;
16078 }
16079 {
16080 #if wxUSE_UNICODE
16081 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16082 #else
16083 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16084 #endif
16085 }
16086 {
16087 if (temp2)
16088 delete arg2;
16089 }
16090 {
16091 if (temp3)
16092 delete arg3;
16093 }
16094 return resultobj;
16095 fail:
16096 {
16097 if (temp2)
16098 delete arg2;
16099 }
16100 {
16101 if (temp3)
16102 delete arg3;
16103 }
16104 return NULL;
16105 }
16106
16107
16108 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16109 PyObject *resultobj = 0;
16110 wxLocale *arg1 = (wxLocale *) 0 ;
16111 wxString *result = 0 ;
16112 void *argp1 = 0 ;
16113 int res1 = 0 ;
16114 PyObject *swig_obj[1] ;
16115
16116 if (!args) SWIG_fail;
16117 swig_obj[0] = args;
16118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16119 if (!SWIG_IsOK(res1)) {
16120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16121 }
16122 arg1 = reinterpret_cast< wxLocale * >(argp1);
16123 {
16124 PyThreadState* __tstate = wxPyBeginAllowThreads();
16125 {
16126 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16127 result = (wxString *) &_result_ref;
16128 }
16129 wxPyEndAllowThreads(__tstate);
16130 if (PyErr_Occurred()) SWIG_fail;
16131 }
16132 {
16133 #if wxUSE_UNICODE
16134 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16135 #else
16136 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16137 #endif
16138 }
16139 return resultobj;
16140 fail:
16141 return NULL;
16142 }
16143
16144
16145 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16146 PyObject *obj;
16147 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16148 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16149 return SWIG_Py_Void();
16150 }
16151
16152 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16153 return SWIG_Python_InitShadowInstance(args);
16154 }
16155
16156 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16157 PyObject *resultobj = 0;
16158 int arg1 = (int) -1 ;
16159 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16160 wxPyLocale *result = 0 ;
16161 int val1 ;
16162 int ecode1 = 0 ;
16163 int val2 ;
16164 int ecode2 = 0 ;
16165 PyObject * obj0 = 0 ;
16166 PyObject * obj1 = 0 ;
16167 char * kwnames[] = {
16168 (char *) "language",(char *) "flags", NULL
16169 };
16170
16171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16172 if (obj0) {
16173 ecode1 = SWIG_AsVal_int(obj0, &val1);
16174 if (!SWIG_IsOK(ecode1)) {
16175 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16176 }
16177 arg1 = static_cast< int >(val1);
16178 }
16179 if (obj1) {
16180 ecode2 = SWIG_AsVal_int(obj1, &val2);
16181 if (!SWIG_IsOK(ecode2)) {
16182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16183 }
16184 arg2 = static_cast< int >(val2);
16185 }
16186 {
16187 PyThreadState* __tstate = wxPyBeginAllowThreads();
16188 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16189 wxPyEndAllowThreads(__tstate);
16190 if (PyErr_Occurred()) SWIG_fail;
16191 }
16192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16193 return resultobj;
16194 fail:
16195 return NULL;
16196 }
16197
16198
16199 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16200 PyObject *resultobj = 0;
16201 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16202 void *argp1 = 0 ;
16203 int res1 = 0 ;
16204 PyObject *swig_obj[1] ;
16205
16206 if (!args) SWIG_fail;
16207 swig_obj[0] = args;
16208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16209 if (!SWIG_IsOK(res1)) {
16210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16211 }
16212 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16213 {
16214 PyThreadState* __tstate = wxPyBeginAllowThreads();
16215 delete arg1;
16216
16217 wxPyEndAllowThreads(__tstate);
16218 if (PyErr_Occurred()) SWIG_fail;
16219 }
16220 resultobj = SWIG_Py_Void();
16221 return resultobj;
16222 fail:
16223 return NULL;
16224 }
16225
16226
16227 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16228 PyObject *resultobj = 0;
16229 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16230 PyObject *arg2 = (PyObject *) 0 ;
16231 PyObject *arg3 = (PyObject *) 0 ;
16232 void *argp1 = 0 ;
16233 int res1 = 0 ;
16234 PyObject * obj0 = 0 ;
16235 PyObject * obj1 = 0 ;
16236 PyObject * obj2 = 0 ;
16237 char * kwnames[] = {
16238 (char *) "self",(char *) "self",(char *) "_class", NULL
16239 };
16240
16241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16243 if (!SWIG_IsOK(res1)) {
16244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16245 }
16246 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16247 arg2 = obj1;
16248 arg3 = obj2;
16249 {
16250 PyThreadState* __tstate = wxPyBeginAllowThreads();
16251 (arg1)->_setCallbackInfo(arg2,arg3);
16252 wxPyEndAllowThreads(__tstate);
16253 if (PyErr_Occurred()) SWIG_fail;
16254 }
16255 resultobj = SWIG_Py_Void();
16256 return resultobj;
16257 fail:
16258 return NULL;
16259 }
16260
16261
16262 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16263 PyObject *resultobj = 0;
16264 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16265 wxChar *arg2 = (wxChar *) 0 ;
16266 wxChar *arg3 = (wxChar *) NULL ;
16267 wxChar *result = 0 ;
16268 void *argp1 = 0 ;
16269 int res1 = 0 ;
16270 void *argp2 = 0 ;
16271 int res2 = 0 ;
16272 void *argp3 = 0 ;
16273 int res3 = 0 ;
16274 PyObject * obj0 = 0 ;
16275 PyObject * obj1 = 0 ;
16276 PyObject * obj2 = 0 ;
16277 char * kwnames[] = {
16278 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16279 };
16280
16281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16283 if (!SWIG_IsOK(res1)) {
16284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16285 }
16286 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16287 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16288 if (!SWIG_IsOK(res2)) {
16289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16290 }
16291 arg2 = reinterpret_cast< wxChar * >(argp2);
16292 if (obj2) {
16293 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16294 if (!SWIG_IsOK(res3)) {
16295 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16296 }
16297 arg3 = reinterpret_cast< wxChar * >(argp3);
16298 }
16299 {
16300 PyThreadState* __tstate = wxPyBeginAllowThreads();
16301 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16302 wxPyEndAllowThreads(__tstate);
16303 if (PyErr_Occurred()) SWIG_fail;
16304 }
16305 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16306 return resultobj;
16307 fail:
16308 return NULL;
16309 }
16310
16311
16312 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16313 PyObject *resultobj = 0;
16314 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16315 wxChar *arg2 = (wxChar *) 0 ;
16316 wxChar *arg3 = (wxChar *) 0 ;
16317 size_t arg4 ;
16318 wxChar *arg5 = (wxChar *) NULL ;
16319 wxChar *result = 0 ;
16320 void *argp1 = 0 ;
16321 int res1 = 0 ;
16322 void *argp2 = 0 ;
16323 int res2 = 0 ;
16324 void *argp3 = 0 ;
16325 int res3 = 0 ;
16326 size_t val4 ;
16327 int ecode4 = 0 ;
16328 void *argp5 = 0 ;
16329 int res5 = 0 ;
16330 PyObject * obj0 = 0 ;
16331 PyObject * obj1 = 0 ;
16332 PyObject * obj2 = 0 ;
16333 PyObject * obj3 = 0 ;
16334 PyObject * obj4 = 0 ;
16335 char * kwnames[] = {
16336 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16337 };
16338
16339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16341 if (!SWIG_IsOK(res1)) {
16342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16343 }
16344 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16345 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16346 if (!SWIG_IsOK(res2)) {
16347 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16348 }
16349 arg2 = reinterpret_cast< wxChar * >(argp2);
16350 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16351 if (!SWIG_IsOK(res3)) {
16352 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16353 }
16354 arg3 = reinterpret_cast< wxChar * >(argp3);
16355 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16356 if (!SWIG_IsOK(ecode4)) {
16357 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16358 }
16359 arg4 = static_cast< size_t >(val4);
16360 if (obj4) {
16361 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16362 if (!SWIG_IsOK(res5)) {
16363 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16364 }
16365 arg5 = reinterpret_cast< wxChar * >(argp5);
16366 }
16367 {
16368 PyThreadState* __tstate = wxPyBeginAllowThreads();
16369 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16370 wxPyEndAllowThreads(__tstate);
16371 if (PyErr_Occurred()) SWIG_fail;
16372 }
16373 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16374 return resultobj;
16375 fail:
16376 return NULL;
16377 }
16378
16379
16380 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16381 PyObject *obj;
16382 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16383 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16384 return SWIG_Py_Void();
16385 }
16386
16387 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16388 return SWIG_Python_InitShadowInstance(args);
16389 }
16390
16391 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16392 PyObject *resultobj = 0;
16393 wxLocale *result = 0 ;
16394
16395 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16396 {
16397 PyThreadState* __tstate = wxPyBeginAllowThreads();
16398 result = (wxLocale *)wxGetLocale();
16399 wxPyEndAllowThreads(__tstate);
16400 if (PyErr_Occurred()) SWIG_fail;
16401 }
16402 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16403 return resultobj;
16404 fail:
16405 return NULL;
16406 }
16407
16408
16409 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16410 PyObject *resultobj = 0;
16411 wxString *arg1 = 0 ;
16412 wxString result;
16413 bool temp1 = false ;
16414
16415 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16416 {
16417 arg1 = wxString_in_helper(swig_obj[0]);
16418 if (arg1 == NULL) SWIG_fail;
16419 temp1 = true;
16420 }
16421 {
16422 PyThreadState* __tstate = wxPyBeginAllowThreads();
16423 result = wxGetTranslation((wxString const &)*arg1);
16424 wxPyEndAllowThreads(__tstate);
16425 if (PyErr_Occurred()) SWIG_fail;
16426 }
16427 {
16428 #if wxUSE_UNICODE
16429 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16430 #else
16431 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16432 #endif
16433 }
16434 {
16435 if (temp1)
16436 delete arg1;
16437 }
16438 return resultobj;
16439 fail:
16440 {
16441 if (temp1)
16442 delete arg1;
16443 }
16444 return NULL;
16445 }
16446
16447
16448 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16449 PyObject *resultobj = 0;
16450 wxString *arg1 = 0 ;
16451 wxString *arg2 = 0 ;
16452 wxString result;
16453 bool temp1 = false ;
16454 bool temp2 = false ;
16455
16456 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16457 {
16458 arg1 = wxString_in_helper(swig_obj[0]);
16459 if (arg1 == NULL) SWIG_fail;
16460 temp1 = true;
16461 }
16462 {
16463 arg2 = wxString_in_helper(swig_obj[1]);
16464 if (arg2 == NULL) SWIG_fail;
16465 temp2 = true;
16466 }
16467 {
16468 PyThreadState* __tstate = wxPyBeginAllowThreads();
16469 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16470 wxPyEndAllowThreads(__tstate);
16471 if (PyErr_Occurred()) SWIG_fail;
16472 }
16473 {
16474 #if wxUSE_UNICODE
16475 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16476 #else
16477 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16478 #endif
16479 }
16480 {
16481 if (temp1)
16482 delete arg1;
16483 }
16484 {
16485 if (temp2)
16486 delete arg2;
16487 }
16488 return resultobj;
16489 fail:
16490 {
16491 if (temp1)
16492 delete arg1;
16493 }
16494 {
16495 if (temp2)
16496 delete arg2;
16497 }
16498 return NULL;
16499 }
16500
16501
16502 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16503 PyObject *resultobj = 0;
16504 wxString *arg1 = 0 ;
16505 wxString *arg2 = 0 ;
16506 size_t arg3 ;
16507 wxString result;
16508 bool temp1 = false ;
16509 bool temp2 = false ;
16510 size_t val3 ;
16511 int ecode3 = 0 ;
16512
16513 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16514 {
16515 arg1 = wxString_in_helper(swig_obj[0]);
16516 if (arg1 == NULL) SWIG_fail;
16517 temp1 = true;
16518 }
16519 {
16520 arg2 = wxString_in_helper(swig_obj[1]);
16521 if (arg2 == NULL) SWIG_fail;
16522 temp2 = true;
16523 }
16524 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16525 if (!SWIG_IsOK(ecode3)) {
16526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16527 }
16528 arg3 = static_cast< size_t >(val3);
16529 {
16530 PyThreadState* __tstate = wxPyBeginAllowThreads();
16531 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16532 wxPyEndAllowThreads(__tstate);
16533 if (PyErr_Occurred()) SWIG_fail;
16534 }
16535 {
16536 #if wxUSE_UNICODE
16537 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16538 #else
16539 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16540 #endif
16541 }
16542 {
16543 if (temp1)
16544 delete arg1;
16545 }
16546 {
16547 if (temp2)
16548 delete arg2;
16549 }
16550 return resultobj;
16551 fail:
16552 {
16553 if (temp1)
16554 delete arg1;
16555 }
16556 {
16557 if (temp2)
16558 delete arg2;
16559 }
16560 return NULL;
16561 }
16562
16563
16564 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16565 PyObject *resultobj = 0;
16566 wxString *arg1 = 0 ;
16567 wxString *arg2 = 0 ;
16568 size_t arg3 ;
16569 wxString *arg4 = 0 ;
16570 wxString result;
16571 bool temp1 = false ;
16572 bool temp2 = false ;
16573 size_t val3 ;
16574 int ecode3 = 0 ;
16575 bool temp4 = false ;
16576
16577 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16578 {
16579 arg1 = wxString_in_helper(swig_obj[0]);
16580 if (arg1 == NULL) SWIG_fail;
16581 temp1 = true;
16582 }
16583 {
16584 arg2 = wxString_in_helper(swig_obj[1]);
16585 if (arg2 == NULL) SWIG_fail;
16586 temp2 = true;
16587 }
16588 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16589 if (!SWIG_IsOK(ecode3)) {
16590 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16591 }
16592 arg3 = static_cast< size_t >(val3);
16593 {
16594 arg4 = wxString_in_helper(swig_obj[3]);
16595 if (arg4 == NULL) SWIG_fail;
16596 temp4 = true;
16597 }
16598 {
16599 PyThreadState* __tstate = wxPyBeginAllowThreads();
16600 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16601 wxPyEndAllowThreads(__tstate);
16602 if (PyErr_Occurred()) SWIG_fail;
16603 }
16604 {
16605 #if wxUSE_UNICODE
16606 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16607 #else
16608 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16609 #endif
16610 }
16611 {
16612 if (temp1)
16613 delete arg1;
16614 }
16615 {
16616 if (temp2)
16617 delete arg2;
16618 }
16619 {
16620 if (temp4)
16621 delete arg4;
16622 }
16623 return resultobj;
16624 fail:
16625 {
16626 if (temp1)
16627 delete arg1;
16628 }
16629 {
16630 if (temp2)
16631 delete arg2;
16632 }
16633 {
16634 if (temp4)
16635 delete arg4;
16636 }
16637 return NULL;
16638 }
16639
16640
16641 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16642 int argc;
16643 PyObject *argv[5];
16644
16645 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
16646 --argc;
16647 if (argc == 1) {
16648 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16649 }
16650 if (argc == 2) {
16651 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16652 }
16653 if (argc == 3) {
16654 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16655 }
16656 if (argc == 4) {
16657 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16658 }
16659
16660 fail:
16661 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16662 return NULL;
16663 }
16664
16665
16666 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16667 PyObject *resultobj = 0;
16668 wxEncodingConverter *result = 0 ;
16669
16670 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16671 {
16672 PyThreadState* __tstate = wxPyBeginAllowThreads();
16673 result = (wxEncodingConverter *)new wxEncodingConverter();
16674 wxPyEndAllowThreads(__tstate);
16675 if (PyErr_Occurred()) SWIG_fail;
16676 }
16677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16678 return resultobj;
16679 fail:
16680 return NULL;
16681 }
16682
16683
16684 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16685 PyObject *resultobj = 0;
16686 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16687 void *argp1 = 0 ;
16688 int res1 = 0 ;
16689 PyObject *swig_obj[1] ;
16690
16691 if (!args) SWIG_fail;
16692 swig_obj[0] = args;
16693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16694 if (!SWIG_IsOK(res1)) {
16695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16696 }
16697 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16698 {
16699 PyThreadState* __tstate = wxPyBeginAllowThreads();
16700 delete arg1;
16701
16702 wxPyEndAllowThreads(__tstate);
16703 if (PyErr_Occurred()) SWIG_fail;
16704 }
16705 resultobj = SWIG_Py_Void();
16706 return resultobj;
16707 fail:
16708 return NULL;
16709 }
16710
16711
16712 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16713 PyObject *resultobj = 0;
16714 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16715 wxFontEncoding arg2 ;
16716 wxFontEncoding arg3 ;
16717 int arg4 = (int) wxCONVERT_STRICT ;
16718 bool result;
16719 void *argp1 = 0 ;
16720 int res1 = 0 ;
16721 int val2 ;
16722 int ecode2 = 0 ;
16723 int val3 ;
16724 int ecode3 = 0 ;
16725 int val4 ;
16726 int ecode4 = 0 ;
16727 PyObject * obj0 = 0 ;
16728 PyObject * obj1 = 0 ;
16729 PyObject * obj2 = 0 ;
16730 PyObject * obj3 = 0 ;
16731 char * kwnames[] = {
16732 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16733 };
16734
16735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16737 if (!SWIG_IsOK(res1)) {
16738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16739 }
16740 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16741 ecode2 = SWIG_AsVal_int(obj1, &val2);
16742 if (!SWIG_IsOK(ecode2)) {
16743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16744 }
16745 arg2 = static_cast< wxFontEncoding >(val2);
16746 ecode3 = SWIG_AsVal_int(obj2, &val3);
16747 if (!SWIG_IsOK(ecode3)) {
16748 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
16749 }
16750 arg3 = static_cast< wxFontEncoding >(val3);
16751 if (obj3) {
16752 ecode4 = SWIG_AsVal_int(obj3, &val4);
16753 if (!SWIG_IsOK(ecode4)) {
16754 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
16755 }
16756 arg4 = static_cast< int >(val4);
16757 }
16758 {
16759 PyThreadState* __tstate = wxPyBeginAllowThreads();
16760 result = (bool)(arg1)->Init(arg2,arg3,arg4);
16761 wxPyEndAllowThreads(__tstate);
16762 if (PyErr_Occurred()) SWIG_fail;
16763 }
16764 {
16765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16766 }
16767 return resultobj;
16768 fail:
16769 return NULL;
16770 }
16771
16772
16773 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16774 PyObject *resultobj = 0;
16775 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16776 wxString *arg2 = 0 ;
16777 wxString result;
16778 void *argp1 = 0 ;
16779 int res1 = 0 ;
16780 bool temp2 = false ;
16781 PyObject * obj0 = 0 ;
16782 PyObject * obj1 = 0 ;
16783 char * kwnames[] = {
16784 (char *) "self",(char *) "input", NULL
16785 };
16786
16787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
16788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16789 if (!SWIG_IsOK(res1)) {
16790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16791 }
16792 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16793 {
16794 arg2 = wxString_in_helper(obj1);
16795 if (arg2 == NULL) SWIG_fail;
16796 temp2 = true;
16797 }
16798 {
16799 PyThreadState* __tstate = wxPyBeginAllowThreads();
16800 result = (arg1)->Convert((wxString const &)*arg2);
16801 wxPyEndAllowThreads(__tstate);
16802 if (PyErr_Occurred()) SWIG_fail;
16803 }
16804 {
16805 #if wxUSE_UNICODE
16806 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16807 #else
16808 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16809 #endif
16810 }
16811 {
16812 if (temp2)
16813 delete arg2;
16814 }
16815 return resultobj;
16816 fail:
16817 {
16818 if (temp2)
16819 delete arg2;
16820 }
16821 return NULL;
16822 }
16823
16824
16825 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16826 PyObject *resultobj = 0;
16827 wxFontEncoding arg1 ;
16828 int arg2 = (int) wxPLATFORM_CURRENT ;
16829 wxFontEncodingArray result;
16830 int val1 ;
16831 int ecode1 = 0 ;
16832 int val2 ;
16833 int ecode2 = 0 ;
16834 PyObject * obj0 = 0 ;
16835 PyObject * obj1 = 0 ;
16836 char * kwnames[] = {
16837 (char *) "enc",(char *) "platform", NULL
16838 };
16839
16840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
16841 ecode1 = SWIG_AsVal_int(obj0, &val1);
16842 if (!SWIG_IsOK(ecode1)) {
16843 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16844 }
16845 arg1 = static_cast< wxFontEncoding >(val1);
16846 if (obj1) {
16847 ecode2 = SWIG_AsVal_int(obj1, &val2);
16848 if (!SWIG_IsOK(ecode2)) {
16849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
16850 }
16851 arg2 = static_cast< int >(val2);
16852 }
16853 {
16854 PyThreadState* __tstate = wxPyBeginAllowThreads();
16855 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
16856 wxPyEndAllowThreads(__tstate);
16857 if (PyErr_Occurred()) SWIG_fail;
16858 }
16859 {
16860 resultobj = PyList_New(0);
16861 for (size_t i=0; i < (&result)->GetCount(); i++) {
16862 PyObject* number = PyInt_FromLong((&result)->Item(i));
16863 PyList_Append(resultobj, number);
16864 Py_DECREF(number);
16865 }
16866 }
16867 return resultobj;
16868 fail:
16869 return NULL;
16870 }
16871
16872
16873 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16874 PyObject *resultobj = 0;
16875 wxFontEncoding arg1 ;
16876 wxFontEncodingArray result;
16877 int val1 ;
16878 int ecode1 = 0 ;
16879 PyObject * obj0 = 0 ;
16880 char * kwnames[] = {
16881 (char *) "enc", NULL
16882 };
16883
16884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
16885 ecode1 = SWIG_AsVal_int(obj0, &val1);
16886 if (!SWIG_IsOK(ecode1)) {
16887 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16888 }
16889 arg1 = static_cast< wxFontEncoding >(val1);
16890 {
16891 PyThreadState* __tstate = wxPyBeginAllowThreads();
16892 result = wxEncodingConverter::GetAllEquivalents(arg1);
16893 wxPyEndAllowThreads(__tstate);
16894 if (PyErr_Occurred()) SWIG_fail;
16895 }
16896 {
16897 resultobj = PyList_New(0);
16898 for (size_t i=0; i < (&result)->GetCount(); i++) {
16899 PyObject* number = PyInt_FromLong((&result)->Item(i));
16900 PyList_Append(resultobj, number);
16901 Py_DECREF(number);
16902 }
16903 }
16904 return resultobj;
16905 fail:
16906 return NULL;
16907 }
16908
16909
16910 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16911 PyObject *resultobj = 0;
16912 wxFontEncoding arg1 ;
16913 wxFontEncoding arg2 ;
16914 bool result;
16915 int val1 ;
16916 int ecode1 = 0 ;
16917 int val2 ;
16918 int ecode2 = 0 ;
16919 PyObject * obj0 = 0 ;
16920 PyObject * obj1 = 0 ;
16921 char * kwnames[] = {
16922 (char *) "encIn",(char *) "encOut", NULL
16923 };
16924
16925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
16926 ecode1 = SWIG_AsVal_int(obj0, &val1);
16927 if (!SWIG_IsOK(ecode1)) {
16928 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16929 }
16930 arg1 = static_cast< wxFontEncoding >(val1);
16931 ecode2 = SWIG_AsVal_int(obj1, &val2);
16932 if (!SWIG_IsOK(ecode2)) {
16933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16934 }
16935 arg2 = static_cast< wxFontEncoding >(val2);
16936 {
16937 PyThreadState* __tstate = wxPyBeginAllowThreads();
16938 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
16939 wxPyEndAllowThreads(__tstate);
16940 if (PyErr_Occurred()) SWIG_fail;
16941 }
16942 {
16943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16944 }
16945 return resultobj;
16946 fail:
16947 return NULL;
16948 }
16949
16950
16951 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16952 PyObject *obj;
16953 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16954 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
16955 return SWIG_Py_Void();
16956 }
16957
16958 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16959 return SWIG_Python_InitShadowInstance(args);
16960 }
16961
16962 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16963 PyObject *resultobj = 0;
16964 wxDC *arg1 = (wxDC *) 0 ;
16965 void *argp1 = 0 ;
16966 int res1 = 0 ;
16967 PyObject *swig_obj[1] ;
16968
16969 if (!args) SWIG_fail;
16970 swig_obj[0] = args;
16971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
16972 if (!SWIG_IsOK(res1)) {
16973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
16974 }
16975 arg1 = reinterpret_cast< wxDC * >(argp1);
16976 {
16977 PyThreadState* __tstate = wxPyBeginAllowThreads();
16978 delete arg1;
16979
16980 wxPyEndAllowThreads(__tstate);
16981 if (PyErr_Occurred()) SWIG_fail;
16982 }
16983 resultobj = SWIG_Py_Void();
16984 return resultobj;
16985 fail:
16986 return NULL;
16987 }
16988
16989
16990 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16991 PyObject *resultobj = 0;
16992 wxDC *arg1 = (wxDC *) 0 ;
16993 int arg2 ;
16994 int arg3 ;
16995 wxColour *arg4 = 0 ;
16996 int arg5 = (int) wxFLOOD_SURFACE ;
16997 bool result;
16998 void *argp1 = 0 ;
16999 int res1 = 0 ;
17000 int val2 ;
17001 int ecode2 = 0 ;
17002 int val3 ;
17003 int ecode3 = 0 ;
17004 wxColour temp4 ;
17005 int val5 ;
17006 int ecode5 = 0 ;
17007 PyObject * obj0 = 0 ;
17008 PyObject * obj1 = 0 ;
17009 PyObject * obj2 = 0 ;
17010 PyObject * obj3 = 0 ;
17011 PyObject * obj4 = 0 ;
17012 char * kwnames[] = {
17013 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17014 };
17015
17016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17018 if (!SWIG_IsOK(res1)) {
17019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17020 }
17021 arg1 = reinterpret_cast< wxDC * >(argp1);
17022 ecode2 = SWIG_AsVal_int(obj1, &val2);
17023 if (!SWIG_IsOK(ecode2)) {
17024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17025 }
17026 arg2 = static_cast< int >(val2);
17027 ecode3 = SWIG_AsVal_int(obj2, &val3);
17028 if (!SWIG_IsOK(ecode3)) {
17029 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17030 }
17031 arg3 = static_cast< int >(val3);
17032 {
17033 arg4 = &temp4;
17034 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17035 }
17036 if (obj4) {
17037 ecode5 = SWIG_AsVal_int(obj4, &val5);
17038 if (!SWIG_IsOK(ecode5)) {
17039 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17040 }
17041 arg5 = static_cast< int >(val5);
17042 }
17043 {
17044 PyThreadState* __tstate = wxPyBeginAllowThreads();
17045 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17046 wxPyEndAllowThreads(__tstate);
17047 if (PyErr_Occurred()) SWIG_fail;
17048 }
17049 {
17050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17051 }
17052 return resultobj;
17053 fail:
17054 return NULL;
17055 }
17056
17057
17058 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17059 PyObject *resultobj = 0;
17060 wxDC *arg1 = (wxDC *) 0 ;
17061 wxPoint *arg2 = 0 ;
17062 wxColour *arg3 = 0 ;
17063 int arg4 = (int) wxFLOOD_SURFACE ;
17064 bool result;
17065 void *argp1 = 0 ;
17066 int res1 = 0 ;
17067 wxPoint temp2 ;
17068 wxColour temp3 ;
17069 int val4 ;
17070 int ecode4 = 0 ;
17071 PyObject * obj0 = 0 ;
17072 PyObject * obj1 = 0 ;
17073 PyObject * obj2 = 0 ;
17074 PyObject * obj3 = 0 ;
17075 char * kwnames[] = {
17076 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17077 };
17078
17079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17081 if (!SWIG_IsOK(res1)) {
17082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17083 }
17084 arg1 = reinterpret_cast< wxDC * >(argp1);
17085 {
17086 arg2 = &temp2;
17087 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17088 }
17089 {
17090 arg3 = &temp3;
17091 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17092 }
17093 if (obj3) {
17094 ecode4 = SWIG_AsVal_int(obj3, &val4);
17095 if (!SWIG_IsOK(ecode4)) {
17096 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17097 }
17098 arg4 = static_cast< int >(val4);
17099 }
17100 {
17101 PyThreadState* __tstate = wxPyBeginAllowThreads();
17102 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17103 wxPyEndAllowThreads(__tstate);
17104 if (PyErr_Occurred()) SWIG_fail;
17105 }
17106 {
17107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17108 }
17109 return resultobj;
17110 fail:
17111 return NULL;
17112 }
17113
17114
17115 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17116 PyObject *resultobj = 0;
17117 wxDC *arg1 = (wxDC *) 0 ;
17118 wxRect *arg2 = 0 ;
17119 wxColour *arg3 = 0 ;
17120 wxColour *arg4 = 0 ;
17121 wxPoint *arg5 = 0 ;
17122 void *argp1 = 0 ;
17123 int res1 = 0 ;
17124 wxRect temp2 ;
17125 wxColour temp3 ;
17126 wxColour temp4 ;
17127 wxPoint temp5 ;
17128 PyObject * obj0 = 0 ;
17129 PyObject * obj1 = 0 ;
17130 PyObject * obj2 = 0 ;
17131 PyObject * obj3 = 0 ;
17132 PyObject * obj4 = 0 ;
17133 char * kwnames[] = {
17134 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17135 };
17136
17137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17139 if (!SWIG_IsOK(res1)) {
17140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17141 }
17142 arg1 = reinterpret_cast< wxDC * >(argp1);
17143 {
17144 arg2 = &temp2;
17145 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17146 }
17147 {
17148 arg3 = &temp3;
17149 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17150 }
17151 {
17152 arg4 = &temp4;
17153 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17154 }
17155 {
17156 arg5 = &temp5;
17157 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17158 }
17159 {
17160 PyThreadState* __tstate = wxPyBeginAllowThreads();
17161 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17162 wxPyEndAllowThreads(__tstate);
17163 if (PyErr_Occurred()) SWIG_fail;
17164 }
17165 resultobj = SWIG_Py_Void();
17166 return resultobj;
17167 fail:
17168 return NULL;
17169 }
17170
17171
17172 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17173 PyObject *resultobj = 0;
17174 wxDC *arg1 = (wxDC *) 0 ;
17175 wxRect *arg2 = 0 ;
17176 wxColour *arg3 = 0 ;
17177 wxColour *arg4 = 0 ;
17178 wxDirection arg5 = (wxDirection) wxEAST ;
17179 void *argp1 = 0 ;
17180 int res1 = 0 ;
17181 wxRect temp2 ;
17182 wxColour temp3 ;
17183 wxColour temp4 ;
17184 int val5 ;
17185 int ecode5 = 0 ;
17186 PyObject * obj0 = 0 ;
17187 PyObject * obj1 = 0 ;
17188 PyObject * obj2 = 0 ;
17189 PyObject * obj3 = 0 ;
17190 PyObject * obj4 = 0 ;
17191 char * kwnames[] = {
17192 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17193 };
17194
17195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17197 if (!SWIG_IsOK(res1)) {
17198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17199 }
17200 arg1 = reinterpret_cast< wxDC * >(argp1);
17201 {
17202 arg2 = &temp2;
17203 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17204 }
17205 {
17206 arg3 = &temp3;
17207 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17208 }
17209 {
17210 arg4 = &temp4;
17211 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17212 }
17213 if (obj4) {
17214 ecode5 = SWIG_AsVal_int(obj4, &val5);
17215 if (!SWIG_IsOK(ecode5)) {
17216 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17217 }
17218 arg5 = static_cast< wxDirection >(val5);
17219 }
17220 {
17221 PyThreadState* __tstate = wxPyBeginAllowThreads();
17222 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17223 wxPyEndAllowThreads(__tstate);
17224 if (PyErr_Occurred()) SWIG_fail;
17225 }
17226 resultobj = SWIG_Py_Void();
17227 return resultobj;
17228 fail:
17229 return NULL;
17230 }
17231
17232
17233 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17234 PyObject *resultobj = 0;
17235 wxDC *arg1 = (wxDC *) 0 ;
17236 int arg2 ;
17237 int arg3 ;
17238 wxColour result;
17239 void *argp1 = 0 ;
17240 int res1 = 0 ;
17241 int val2 ;
17242 int ecode2 = 0 ;
17243 int val3 ;
17244 int ecode3 = 0 ;
17245 PyObject * obj0 = 0 ;
17246 PyObject * obj1 = 0 ;
17247 PyObject * obj2 = 0 ;
17248 char * kwnames[] = {
17249 (char *) "self",(char *) "x",(char *) "y", NULL
17250 };
17251
17252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17254 if (!SWIG_IsOK(res1)) {
17255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17256 }
17257 arg1 = reinterpret_cast< wxDC * >(argp1);
17258 ecode2 = SWIG_AsVal_int(obj1, &val2);
17259 if (!SWIG_IsOK(ecode2)) {
17260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17261 }
17262 arg2 = static_cast< int >(val2);
17263 ecode3 = SWIG_AsVal_int(obj2, &val3);
17264 if (!SWIG_IsOK(ecode3)) {
17265 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17266 }
17267 arg3 = static_cast< int >(val3);
17268 {
17269 PyThreadState* __tstate = wxPyBeginAllowThreads();
17270 result = wxDC_GetPixel(arg1,arg2,arg3);
17271 wxPyEndAllowThreads(__tstate);
17272 if (PyErr_Occurred()) SWIG_fail;
17273 }
17274 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17275 return resultobj;
17276 fail:
17277 return NULL;
17278 }
17279
17280
17281 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17282 PyObject *resultobj = 0;
17283 wxDC *arg1 = (wxDC *) 0 ;
17284 wxPoint *arg2 = 0 ;
17285 wxColour result;
17286 void *argp1 = 0 ;
17287 int res1 = 0 ;
17288 wxPoint temp2 ;
17289 PyObject * obj0 = 0 ;
17290 PyObject * obj1 = 0 ;
17291 char * kwnames[] = {
17292 (char *) "self",(char *) "pt", NULL
17293 };
17294
17295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17297 if (!SWIG_IsOK(res1)) {
17298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17299 }
17300 arg1 = reinterpret_cast< wxDC * >(argp1);
17301 {
17302 arg2 = &temp2;
17303 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17304 }
17305 {
17306 PyThreadState* __tstate = wxPyBeginAllowThreads();
17307 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17308 wxPyEndAllowThreads(__tstate);
17309 if (PyErr_Occurred()) SWIG_fail;
17310 }
17311 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17312 return resultobj;
17313 fail:
17314 return NULL;
17315 }
17316
17317
17318 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17319 PyObject *resultobj = 0;
17320 wxDC *arg1 = (wxDC *) 0 ;
17321 int arg2 ;
17322 int arg3 ;
17323 int arg4 ;
17324 int arg5 ;
17325 void *argp1 = 0 ;
17326 int res1 = 0 ;
17327 int val2 ;
17328 int ecode2 = 0 ;
17329 int val3 ;
17330 int ecode3 = 0 ;
17331 int val4 ;
17332 int ecode4 = 0 ;
17333 int val5 ;
17334 int ecode5 = 0 ;
17335 PyObject * obj0 = 0 ;
17336 PyObject * obj1 = 0 ;
17337 PyObject * obj2 = 0 ;
17338 PyObject * obj3 = 0 ;
17339 PyObject * obj4 = 0 ;
17340 char * kwnames[] = {
17341 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17342 };
17343
17344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17346 if (!SWIG_IsOK(res1)) {
17347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17348 }
17349 arg1 = reinterpret_cast< wxDC * >(argp1);
17350 ecode2 = SWIG_AsVal_int(obj1, &val2);
17351 if (!SWIG_IsOK(ecode2)) {
17352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17353 }
17354 arg2 = static_cast< int >(val2);
17355 ecode3 = SWIG_AsVal_int(obj2, &val3);
17356 if (!SWIG_IsOK(ecode3)) {
17357 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17358 }
17359 arg3 = static_cast< int >(val3);
17360 ecode4 = SWIG_AsVal_int(obj3, &val4);
17361 if (!SWIG_IsOK(ecode4)) {
17362 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17363 }
17364 arg4 = static_cast< int >(val4);
17365 ecode5 = SWIG_AsVal_int(obj4, &val5);
17366 if (!SWIG_IsOK(ecode5)) {
17367 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17368 }
17369 arg5 = static_cast< int >(val5);
17370 {
17371 PyThreadState* __tstate = wxPyBeginAllowThreads();
17372 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17373 wxPyEndAllowThreads(__tstate);
17374 if (PyErr_Occurred()) SWIG_fail;
17375 }
17376 resultobj = SWIG_Py_Void();
17377 return resultobj;
17378 fail:
17379 return NULL;
17380 }
17381
17382
17383 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17384 PyObject *resultobj = 0;
17385 wxDC *arg1 = (wxDC *) 0 ;
17386 wxPoint *arg2 = 0 ;
17387 wxPoint *arg3 = 0 ;
17388 void *argp1 = 0 ;
17389 int res1 = 0 ;
17390 wxPoint temp2 ;
17391 wxPoint temp3 ;
17392 PyObject * obj0 = 0 ;
17393 PyObject * obj1 = 0 ;
17394 PyObject * obj2 = 0 ;
17395 char * kwnames[] = {
17396 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17397 };
17398
17399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17401 if (!SWIG_IsOK(res1)) {
17402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17403 }
17404 arg1 = reinterpret_cast< wxDC * >(argp1);
17405 {
17406 arg2 = &temp2;
17407 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17408 }
17409 {
17410 arg3 = &temp3;
17411 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17412 }
17413 {
17414 PyThreadState* __tstate = wxPyBeginAllowThreads();
17415 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17416 wxPyEndAllowThreads(__tstate);
17417 if (PyErr_Occurred()) SWIG_fail;
17418 }
17419 resultobj = SWIG_Py_Void();
17420 return resultobj;
17421 fail:
17422 return NULL;
17423 }
17424
17425
17426 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17427 PyObject *resultobj = 0;
17428 wxDC *arg1 = (wxDC *) 0 ;
17429 int arg2 ;
17430 int arg3 ;
17431 void *argp1 = 0 ;
17432 int res1 = 0 ;
17433 int val2 ;
17434 int ecode2 = 0 ;
17435 int val3 ;
17436 int ecode3 = 0 ;
17437 PyObject * obj0 = 0 ;
17438 PyObject * obj1 = 0 ;
17439 PyObject * obj2 = 0 ;
17440 char * kwnames[] = {
17441 (char *) "self",(char *) "x",(char *) "y", NULL
17442 };
17443
17444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17446 if (!SWIG_IsOK(res1)) {
17447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17448 }
17449 arg1 = reinterpret_cast< wxDC * >(argp1);
17450 ecode2 = SWIG_AsVal_int(obj1, &val2);
17451 if (!SWIG_IsOK(ecode2)) {
17452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17453 }
17454 arg2 = static_cast< int >(val2);
17455 ecode3 = SWIG_AsVal_int(obj2, &val3);
17456 if (!SWIG_IsOK(ecode3)) {
17457 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17458 }
17459 arg3 = static_cast< int >(val3);
17460 {
17461 PyThreadState* __tstate = wxPyBeginAllowThreads();
17462 (arg1)->CrossHair(arg2,arg3);
17463 wxPyEndAllowThreads(__tstate);
17464 if (PyErr_Occurred()) SWIG_fail;
17465 }
17466 resultobj = SWIG_Py_Void();
17467 return resultobj;
17468 fail:
17469 return NULL;
17470 }
17471
17472
17473 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17474 PyObject *resultobj = 0;
17475 wxDC *arg1 = (wxDC *) 0 ;
17476 wxPoint *arg2 = 0 ;
17477 void *argp1 = 0 ;
17478 int res1 = 0 ;
17479 wxPoint temp2 ;
17480 PyObject * obj0 = 0 ;
17481 PyObject * obj1 = 0 ;
17482 char * kwnames[] = {
17483 (char *) "self",(char *) "pt", NULL
17484 };
17485
17486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17488 if (!SWIG_IsOK(res1)) {
17489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17490 }
17491 arg1 = reinterpret_cast< wxDC * >(argp1);
17492 {
17493 arg2 = &temp2;
17494 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17495 }
17496 {
17497 PyThreadState* __tstate = wxPyBeginAllowThreads();
17498 (arg1)->CrossHair((wxPoint const &)*arg2);
17499 wxPyEndAllowThreads(__tstate);
17500 if (PyErr_Occurred()) SWIG_fail;
17501 }
17502 resultobj = SWIG_Py_Void();
17503 return resultobj;
17504 fail:
17505 return NULL;
17506 }
17507
17508
17509 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17510 PyObject *resultobj = 0;
17511 wxDC *arg1 = (wxDC *) 0 ;
17512 int arg2 ;
17513 int arg3 ;
17514 int arg4 ;
17515 int arg5 ;
17516 int arg6 ;
17517 int arg7 ;
17518 void *argp1 = 0 ;
17519 int res1 = 0 ;
17520 int val2 ;
17521 int ecode2 = 0 ;
17522 int val3 ;
17523 int ecode3 = 0 ;
17524 int val4 ;
17525 int ecode4 = 0 ;
17526 int val5 ;
17527 int ecode5 = 0 ;
17528 int val6 ;
17529 int ecode6 = 0 ;
17530 int val7 ;
17531 int ecode7 = 0 ;
17532 PyObject * obj0 = 0 ;
17533 PyObject * obj1 = 0 ;
17534 PyObject * obj2 = 0 ;
17535 PyObject * obj3 = 0 ;
17536 PyObject * obj4 = 0 ;
17537 PyObject * obj5 = 0 ;
17538 PyObject * obj6 = 0 ;
17539 char * kwnames[] = {
17540 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17541 };
17542
17543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17545 if (!SWIG_IsOK(res1)) {
17546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17547 }
17548 arg1 = reinterpret_cast< wxDC * >(argp1);
17549 ecode2 = SWIG_AsVal_int(obj1, &val2);
17550 if (!SWIG_IsOK(ecode2)) {
17551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17552 }
17553 arg2 = static_cast< int >(val2);
17554 ecode3 = SWIG_AsVal_int(obj2, &val3);
17555 if (!SWIG_IsOK(ecode3)) {
17556 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17557 }
17558 arg3 = static_cast< int >(val3);
17559 ecode4 = SWIG_AsVal_int(obj3, &val4);
17560 if (!SWIG_IsOK(ecode4)) {
17561 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17562 }
17563 arg4 = static_cast< int >(val4);
17564 ecode5 = SWIG_AsVal_int(obj4, &val5);
17565 if (!SWIG_IsOK(ecode5)) {
17566 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17567 }
17568 arg5 = static_cast< int >(val5);
17569 ecode6 = SWIG_AsVal_int(obj5, &val6);
17570 if (!SWIG_IsOK(ecode6)) {
17571 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17572 }
17573 arg6 = static_cast< int >(val6);
17574 ecode7 = SWIG_AsVal_int(obj6, &val7);
17575 if (!SWIG_IsOK(ecode7)) {
17576 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17577 }
17578 arg7 = static_cast< int >(val7);
17579 {
17580 PyThreadState* __tstate = wxPyBeginAllowThreads();
17581 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17582 wxPyEndAllowThreads(__tstate);
17583 if (PyErr_Occurred()) SWIG_fail;
17584 }
17585 resultobj = SWIG_Py_Void();
17586 return resultobj;
17587 fail:
17588 return NULL;
17589 }
17590
17591
17592 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17593 PyObject *resultobj = 0;
17594 wxDC *arg1 = (wxDC *) 0 ;
17595 wxPoint *arg2 = 0 ;
17596 wxPoint *arg3 = 0 ;
17597 wxPoint *arg4 = 0 ;
17598 void *argp1 = 0 ;
17599 int res1 = 0 ;
17600 wxPoint temp2 ;
17601 wxPoint temp3 ;
17602 wxPoint temp4 ;
17603 PyObject * obj0 = 0 ;
17604 PyObject * obj1 = 0 ;
17605 PyObject * obj2 = 0 ;
17606 PyObject * obj3 = 0 ;
17607 char * kwnames[] = {
17608 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17609 };
17610
17611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17613 if (!SWIG_IsOK(res1)) {
17614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17615 }
17616 arg1 = reinterpret_cast< wxDC * >(argp1);
17617 {
17618 arg2 = &temp2;
17619 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17620 }
17621 {
17622 arg3 = &temp3;
17623 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17624 }
17625 {
17626 arg4 = &temp4;
17627 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17628 }
17629 {
17630 PyThreadState* __tstate = wxPyBeginAllowThreads();
17631 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17632 wxPyEndAllowThreads(__tstate);
17633 if (PyErr_Occurred()) SWIG_fail;
17634 }
17635 resultobj = SWIG_Py_Void();
17636 return resultobj;
17637 fail:
17638 return NULL;
17639 }
17640
17641
17642 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17643 PyObject *resultobj = 0;
17644 wxDC *arg1 = (wxDC *) 0 ;
17645 int arg2 ;
17646 int arg3 ;
17647 int arg4 ;
17648 int arg5 ;
17649 void *argp1 = 0 ;
17650 int res1 = 0 ;
17651 int val2 ;
17652 int ecode2 = 0 ;
17653 int val3 ;
17654 int ecode3 = 0 ;
17655 int val4 ;
17656 int ecode4 = 0 ;
17657 int val5 ;
17658 int ecode5 = 0 ;
17659 PyObject * obj0 = 0 ;
17660 PyObject * obj1 = 0 ;
17661 PyObject * obj2 = 0 ;
17662 PyObject * obj3 = 0 ;
17663 PyObject * obj4 = 0 ;
17664 char * kwnames[] = {
17665 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17666 };
17667
17668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17670 if (!SWIG_IsOK(res1)) {
17671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17672 }
17673 arg1 = reinterpret_cast< wxDC * >(argp1);
17674 ecode2 = SWIG_AsVal_int(obj1, &val2);
17675 if (!SWIG_IsOK(ecode2)) {
17676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17677 }
17678 arg2 = static_cast< int >(val2);
17679 ecode3 = SWIG_AsVal_int(obj2, &val3);
17680 if (!SWIG_IsOK(ecode3)) {
17681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17682 }
17683 arg3 = static_cast< int >(val3);
17684 ecode4 = SWIG_AsVal_int(obj3, &val4);
17685 if (!SWIG_IsOK(ecode4)) {
17686 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17687 }
17688 arg4 = static_cast< int >(val4);
17689 ecode5 = SWIG_AsVal_int(obj4, &val5);
17690 if (!SWIG_IsOK(ecode5)) {
17691 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17692 }
17693 arg5 = static_cast< int >(val5);
17694 {
17695 PyThreadState* __tstate = wxPyBeginAllowThreads();
17696 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17697 wxPyEndAllowThreads(__tstate);
17698 if (PyErr_Occurred()) SWIG_fail;
17699 }
17700 resultobj = SWIG_Py_Void();
17701 return resultobj;
17702 fail:
17703 return NULL;
17704 }
17705
17706
17707 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17708 PyObject *resultobj = 0;
17709 wxDC *arg1 = (wxDC *) 0 ;
17710 wxRect *arg2 = 0 ;
17711 void *argp1 = 0 ;
17712 int res1 = 0 ;
17713 wxRect temp2 ;
17714 PyObject * obj0 = 0 ;
17715 PyObject * obj1 = 0 ;
17716 char * kwnames[] = {
17717 (char *) "self",(char *) "rect", NULL
17718 };
17719
17720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17722 if (!SWIG_IsOK(res1)) {
17723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17724 }
17725 arg1 = reinterpret_cast< wxDC * >(argp1);
17726 {
17727 arg2 = &temp2;
17728 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17729 }
17730 {
17731 PyThreadState* __tstate = wxPyBeginAllowThreads();
17732 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17733 wxPyEndAllowThreads(__tstate);
17734 if (PyErr_Occurred()) SWIG_fail;
17735 }
17736 resultobj = SWIG_Py_Void();
17737 return resultobj;
17738 fail:
17739 return NULL;
17740 }
17741
17742
17743 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17744 PyObject *resultobj = 0;
17745 wxDC *arg1 = (wxDC *) 0 ;
17746 int arg2 ;
17747 int arg3 ;
17748 int arg4 ;
17749 int arg5 ;
17750 double arg6 ;
17751 double arg7 ;
17752 void *argp1 = 0 ;
17753 int res1 = 0 ;
17754 int val2 ;
17755 int ecode2 = 0 ;
17756 int val3 ;
17757 int ecode3 = 0 ;
17758 int val4 ;
17759 int ecode4 = 0 ;
17760 int val5 ;
17761 int ecode5 = 0 ;
17762 double val6 ;
17763 int ecode6 = 0 ;
17764 double val7 ;
17765 int ecode7 = 0 ;
17766 PyObject * obj0 = 0 ;
17767 PyObject * obj1 = 0 ;
17768 PyObject * obj2 = 0 ;
17769 PyObject * obj3 = 0 ;
17770 PyObject * obj4 = 0 ;
17771 PyObject * obj5 = 0 ;
17772 PyObject * obj6 = 0 ;
17773 char * kwnames[] = {
17774 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
17775 };
17776
17777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17779 if (!SWIG_IsOK(res1)) {
17780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
17781 }
17782 arg1 = reinterpret_cast< wxDC * >(argp1);
17783 ecode2 = SWIG_AsVal_int(obj1, &val2);
17784 if (!SWIG_IsOK(ecode2)) {
17785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
17786 }
17787 arg2 = static_cast< int >(val2);
17788 ecode3 = SWIG_AsVal_int(obj2, &val3);
17789 if (!SWIG_IsOK(ecode3)) {
17790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
17791 }
17792 arg3 = static_cast< int >(val3);
17793 ecode4 = SWIG_AsVal_int(obj3, &val4);
17794 if (!SWIG_IsOK(ecode4)) {
17795 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
17796 }
17797 arg4 = static_cast< int >(val4);
17798 ecode5 = SWIG_AsVal_int(obj4, &val5);
17799 if (!SWIG_IsOK(ecode5)) {
17800 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
17801 }
17802 arg5 = static_cast< int >(val5);
17803 ecode6 = SWIG_AsVal_double(obj5, &val6);
17804 if (!SWIG_IsOK(ecode6)) {
17805 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
17806 }
17807 arg6 = static_cast< double >(val6);
17808 ecode7 = SWIG_AsVal_double(obj6, &val7);
17809 if (!SWIG_IsOK(ecode7)) {
17810 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
17811 }
17812 arg7 = static_cast< double >(val7);
17813 {
17814 PyThreadState* __tstate = wxPyBeginAllowThreads();
17815 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
17816 wxPyEndAllowThreads(__tstate);
17817 if (PyErr_Occurred()) SWIG_fail;
17818 }
17819 resultobj = SWIG_Py_Void();
17820 return resultobj;
17821 fail:
17822 return NULL;
17823 }
17824
17825
17826 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17827 PyObject *resultobj = 0;
17828 wxDC *arg1 = (wxDC *) 0 ;
17829 wxPoint *arg2 = 0 ;
17830 wxSize *arg3 = 0 ;
17831 double arg4 ;
17832 double arg5 ;
17833 void *argp1 = 0 ;
17834 int res1 = 0 ;
17835 wxPoint temp2 ;
17836 wxSize temp3 ;
17837 double val4 ;
17838 int ecode4 = 0 ;
17839 double val5 ;
17840 int ecode5 = 0 ;
17841 PyObject * obj0 = 0 ;
17842 PyObject * obj1 = 0 ;
17843 PyObject * obj2 = 0 ;
17844 PyObject * obj3 = 0 ;
17845 PyObject * obj4 = 0 ;
17846 char * kwnames[] = {
17847 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
17848 };
17849
17850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17852 if (!SWIG_IsOK(res1)) {
17853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17854 }
17855 arg1 = reinterpret_cast< wxDC * >(argp1);
17856 {
17857 arg2 = &temp2;
17858 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17859 }
17860 {
17861 arg3 = &temp3;
17862 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17863 }
17864 ecode4 = SWIG_AsVal_double(obj3, &val4);
17865 if (!SWIG_IsOK(ecode4)) {
17866 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
17867 }
17868 arg4 = static_cast< double >(val4);
17869 ecode5 = SWIG_AsVal_double(obj4, &val5);
17870 if (!SWIG_IsOK(ecode5)) {
17871 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
17872 }
17873 arg5 = static_cast< double >(val5);
17874 {
17875 PyThreadState* __tstate = wxPyBeginAllowThreads();
17876 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
17877 wxPyEndAllowThreads(__tstate);
17878 if (PyErr_Occurred()) SWIG_fail;
17879 }
17880 resultobj = SWIG_Py_Void();
17881 return resultobj;
17882 fail:
17883 return NULL;
17884 }
17885
17886
17887 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17888 PyObject *resultobj = 0;
17889 wxDC *arg1 = (wxDC *) 0 ;
17890 int arg2 ;
17891 int arg3 ;
17892 void *argp1 = 0 ;
17893 int res1 = 0 ;
17894 int val2 ;
17895 int ecode2 = 0 ;
17896 int val3 ;
17897 int ecode3 = 0 ;
17898 PyObject * obj0 = 0 ;
17899 PyObject * obj1 = 0 ;
17900 PyObject * obj2 = 0 ;
17901 char * kwnames[] = {
17902 (char *) "self",(char *) "x",(char *) "y", NULL
17903 };
17904
17905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17907 if (!SWIG_IsOK(res1)) {
17908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17909 }
17910 arg1 = reinterpret_cast< wxDC * >(argp1);
17911 ecode2 = SWIG_AsVal_int(obj1, &val2);
17912 if (!SWIG_IsOK(ecode2)) {
17913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
17914 }
17915 arg2 = static_cast< int >(val2);
17916 ecode3 = SWIG_AsVal_int(obj2, &val3);
17917 if (!SWIG_IsOK(ecode3)) {
17918 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
17919 }
17920 arg3 = static_cast< int >(val3);
17921 {
17922 PyThreadState* __tstate = wxPyBeginAllowThreads();
17923 (arg1)->DrawPoint(arg2,arg3);
17924 wxPyEndAllowThreads(__tstate);
17925 if (PyErr_Occurred()) SWIG_fail;
17926 }
17927 resultobj = SWIG_Py_Void();
17928 return resultobj;
17929 fail:
17930 return NULL;
17931 }
17932
17933
17934 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17935 PyObject *resultobj = 0;
17936 wxDC *arg1 = (wxDC *) 0 ;
17937 wxPoint *arg2 = 0 ;
17938 void *argp1 = 0 ;
17939 int res1 = 0 ;
17940 wxPoint temp2 ;
17941 PyObject * obj0 = 0 ;
17942 PyObject * obj1 = 0 ;
17943 char * kwnames[] = {
17944 (char *) "self",(char *) "pt", NULL
17945 };
17946
17947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17949 if (!SWIG_IsOK(res1)) {
17950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17951 }
17952 arg1 = reinterpret_cast< wxDC * >(argp1);
17953 {
17954 arg2 = &temp2;
17955 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17956 }
17957 {
17958 PyThreadState* __tstate = wxPyBeginAllowThreads();
17959 (arg1)->DrawPoint((wxPoint const &)*arg2);
17960 wxPyEndAllowThreads(__tstate);
17961 if (PyErr_Occurred()) SWIG_fail;
17962 }
17963 resultobj = SWIG_Py_Void();
17964 return resultobj;
17965 fail:
17966 return NULL;
17967 }
17968
17969
17970 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17971 PyObject *resultobj = 0;
17972 wxDC *arg1 = (wxDC *) 0 ;
17973 int arg2 ;
17974 int arg3 ;
17975 int arg4 ;
17976 int arg5 ;
17977 void *argp1 = 0 ;
17978 int res1 = 0 ;
17979 int val2 ;
17980 int ecode2 = 0 ;
17981 int val3 ;
17982 int ecode3 = 0 ;
17983 int val4 ;
17984 int ecode4 = 0 ;
17985 int val5 ;
17986 int ecode5 = 0 ;
17987 PyObject * obj0 = 0 ;
17988 PyObject * obj1 = 0 ;
17989 PyObject * obj2 = 0 ;
17990 PyObject * obj3 = 0 ;
17991 PyObject * obj4 = 0 ;
17992 char * kwnames[] = {
17993 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17994 };
17995
17996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17998 if (!SWIG_IsOK(res1)) {
17999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18000 }
18001 arg1 = reinterpret_cast< wxDC * >(argp1);
18002 ecode2 = SWIG_AsVal_int(obj1, &val2);
18003 if (!SWIG_IsOK(ecode2)) {
18004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18005 }
18006 arg2 = static_cast< int >(val2);
18007 ecode3 = SWIG_AsVal_int(obj2, &val3);
18008 if (!SWIG_IsOK(ecode3)) {
18009 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18010 }
18011 arg3 = static_cast< int >(val3);
18012 ecode4 = SWIG_AsVal_int(obj3, &val4);
18013 if (!SWIG_IsOK(ecode4)) {
18014 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18015 }
18016 arg4 = static_cast< int >(val4);
18017 ecode5 = SWIG_AsVal_int(obj4, &val5);
18018 if (!SWIG_IsOK(ecode5)) {
18019 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18020 }
18021 arg5 = static_cast< int >(val5);
18022 {
18023 PyThreadState* __tstate = wxPyBeginAllowThreads();
18024 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18025 wxPyEndAllowThreads(__tstate);
18026 if (PyErr_Occurred()) SWIG_fail;
18027 }
18028 resultobj = SWIG_Py_Void();
18029 return resultobj;
18030 fail:
18031 return NULL;
18032 }
18033
18034
18035 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18036 PyObject *resultobj = 0;
18037 wxDC *arg1 = (wxDC *) 0 ;
18038 wxRect *arg2 = 0 ;
18039 void *argp1 = 0 ;
18040 int res1 = 0 ;
18041 wxRect temp2 ;
18042 PyObject * obj0 = 0 ;
18043 PyObject * obj1 = 0 ;
18044 char * kwnames[] = {
18045 (char *) "self",(char *) "rect", NULL
18046 };
18047
18048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18050 if (!SWIG_IsOK(res1)) {
18051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18052 }
18053 arg1 = reinterpret_cast< wxDC * >(argp1);
18054 {
18055 arg2 = &temp2;
18056 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18057 }
18058 {
18059 PyThreadState* __tstate = wxPyBeginAllowThreads();
18060 (arg1)->DrawRectangle((wxRect const &)*arg2);
18061 wxPyEndAllowThreads(__tstate);
18062 if (PyErr_Occurred()) SWIG_fail;
18063 }
18064 resultobj = SWIG_Py_Void();
18065 return resultobj;
18066 fail:
18067 return NULL;
18068 }
18069
18070
18071 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18072 PyObject *resultobj = 0;
18073 wxDC *arg1 = (wxDC *) 0 ;
18074 wxPoint *arg2 = 0 ;
18075 wxSize *arg3 = 0 ;
18076 void *argp1 = 0 ;
18077 int res1 = 0 ;
18078 wxPoint temp2 ;
18079 wxSize temp3 ;
18080 PyObject * obj0 = 0 ;
18081 PyObject * obj1 = 0 ;
18082 PyObject * obj2 = 0 ;
18083 char * kwnames[] = {
18084 (char *) "self",(char *) "pt",(char *) "sz", NULL
18085 };
18086
18087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18089 if (!SWIG_IsOK(res1)) {
18090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18091 }
18092 arg1 = reinterpret_cast< wxDC * >(argp1);
18093 {
18094 arg2 = &temp2;
18095 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18096 }
18097 {
18098 arg3 = &temp3;
18099 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18100 }
18101 {
18102 PyThreadState* __tstate = wxPyBeginAllowThreads();
18103 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18104 wxPyEndAllowThreads(__tstate);
18105 if (PyErr_Occurred()) SWIG_fail;
18106 }
18107 resultobj = SWIG_Py_Void();
18108 return resultobj;
18109 fail:
18110 return NULL;
18111 }
18112
18113
18114 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18115 PyObject *resultobj = 0;
18116 wxDC *arg1 = (wxDC *) 0 ;
18117 int arg2 ;
18118 int arg3 ;
18119 int arg4 ;
18120 int arg5 ;
18121 double arg6 ;
18122 void *argp1 = 0 ;
18123 int res1 = 0 ;
18124 int val2 ;
18125 int ecode2 = 0 ;
18126 int val3 ;
18127 int ecode3 = 0 ;
18128 int val4 ;
18129 int ecode4 = 0 ;
18130 int val5 ;
18131 int ecode5 = 0 ;
18132 double val6 ;
18133 int ecode6 = 0 ;
18134 PyObject * obj0 = 0 ;
18135 PyObject * obj1 = 0 ;
18136 PyObject * obj2 = 0 ;
18137 PyObject * obj3 = 0 ;
18138 PyObject * obj4 = 0 ;
18139 PyObject * obj5 = 0 ;
18140 char * kwnames[] = {
18141 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18142 };
18143
18144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18146 if (!SWIG_IsOK(res1)) {
18147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18148 }
18149 arg1 = reinterpret_cast< wxDC * >(argp1);
18150 ecode2 = SWIG_AsVal_int(obj1, &val2);
18151 if (!SWIG_IsOK(ecode2)) {
18152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18153 }
18154 arg2 = static_cast< int >(val2);
18155 ecode3 = SWIG_AsVal_int(obj2, &val3);
18156 if (!SWIG_IsOK(ecode3)) {
18157 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18158 }
18159 arg3 = static_cast< int >(val3);
18160 ecode4 = SWIG_AsVal_int(obj3, &val4);
18161 if (!SWIG_IsOK(ecode4)) {
18162 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18163 }
18164 arg4 = static_cast< int >(val4);
18165 ecode5 = SWIG_AsVal_int(obj4, &val5);
18166 if (!SWIG_IsOK(ecode5)) {
18167 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18168 }
18169 arg5 = static_cast< int >(val5);
18170 ecode6 = SWIG_AsVal_double(obj5, &val6);
18171 if (!SWIG_IsOK(ecode6)) {
18172 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18173 }
18174 arg6 = static_cast< double >(val6);
18175 {
18176 PyThreadState* __tstate = wxPyBeginAllowThreads();
18177 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18178 wxPyEndAllowThreads(__tstate);
18179 if (PyErr_Occurred()) SWIG_fail;
18180 }
18181 resultobj = SWIG_Py_Void();
18182 return resultobj;
18183 fail:
18184 return NULL;
18185 }
18186
18187
18188 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18189 PyObject *resultobj = 0;
18190 wxDC *arg1 = (wxDC *) 0 ;
18191 wxRect *arg2 = 0 ;
18192 double arg3 ;
18193 void *argp1 = 0 ;
18194 int res1 = 0 ;
18195 wxRect temp2 ;
18196 double val3 ;
18197 int ecode3 = 0 ;
18198 PyObject * obj0 = 0 ;
18199 PyObject * obj1 = 0 ;
18200 PyObject * obj2 = 0 ;
18201 char * kwnames[] = {
18202 (char *) "self",(char *) "r",(char *) "radius", NULL
18203 };
18204
18205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18207 if (!SWIG_IsOK(res1)) {
18208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18209 }
18210 arg1 = reinterpret_cast< wxDC * >(argp1);
18211 {
18212 arg2 = &temp2;
18213 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18214 }
18215 ecode3 = SWIG_AsVal_double(obj2, &val3);
18216 if (!SWIG_IsOK(ecode3)) {
18217 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18218 }
18219 arg3 = static_cast< double >(val3);
18220 {
18221 PyThreadState* __tstate = wxPyBeginAllowThreads();
18222 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
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_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18234 PyObject *resultobj = 0;
18235 wxDC *arg1 = (wxDC *) 0 ;
18236 wxPoint *arg2 = 0 ;
18237 wxSize *arg3 = 0 ;
18238 double arg4 ;
18239 void *argp1 = 0 ;
18240 int res1 = 0 ;
18241 wxPoint temp2 ;
18242 wxSize temp3 ;
18243 double val4 ;
18244 int ecode4 = 0 ;
18245 PyObject * obj0 = 0 ;
18246 PyObject * obj1 = 0 ;
18247 PyObject * obj2 = 0 ;
18248 PyObject * obj3 = 0 ;
18249 char * kwnames[] = {
18250 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18251 };
18252
18253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18255 if (!SWIG_IsOK(res1)) {
18256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18257 }
18258 arg1 = reinterpret_cast< wxDC * >(argp1);
18259 {
18260 arg2 = &temp2;
18261 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18262 }
18263 {
18264 arg3 = &temp3;
18265 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18266 }
18267 ecode4 = SWIG_AsVal_double(obj3, &val4);
18268 if (!SWIG_IsOK(ecode4)) {
18269 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18270 }
18271 arg4 = static_cast< double >(val4);
18272 {
18273 PyThreadState* __tstate = wxPyBeginAllowThreads();
18274 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18275 wxPyEndAllowThreads(__tstate);
18276 if (PyErr_Occurred()) SWIG_fail;
18277 }
18278 resultobj = SWIG_Py_Void();
18279 return resultobj;
18280 fail:
18281 return NULL;
18282 }
18283
18284
18285 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18286 PyObject *resultobj = 0;
18287 wxDC *arg1 = (wxDC *) 0 ;
18288 int arg2 ;
18289 int arg3 ;
18290 int arg4 ;
18291 void *argp1 = 0 ;
18292 int res1 = 0 ;
18293 int val2 ;
18294 int ecode2 = 0 ;
18295 int val3 ;
18296 int ecode3 = 0 ;
18297 int val4 ;
18298 int ecode4 = 0 ;
18299 PyObject * obj0 = 0 ;
18300 PyObject * obj1 = 0 ;
18301 PyObject * obj2 = 0 ;
18302 PyObject * obj3 = 0 ;
18303 char * kwnames[] = {
18304 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18305 };
18306
18307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18309 if (!SWIG_IsOK(res1)) {
18310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18311 }
18312 arg1 = reinterpret_cast< wxDC * >(argp1);
18313 ecode2 = SWIG_AsVal_int(obj1, &val2);
18314 if (!SWIG_IsOK(ecode2)) {
18315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18316 }
18317 arg2 = static_cast< int >(val2);
18318 ecode3 = SWIG_AsVal_int(obj2, &val3);
18319 if (!SWIG_IsOK(ecode3)) {
18320 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18321 }
18322 arg3 = static_cast< int >(val3);
18323 ecode4 = SWIG_AsVal_int(obj3, &val4);
18324 if (!SWIG_IsOK(ecode4)) {
18325 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18326 }
18327 arg4 = static_cast< int >(val4);
18328 {
18329 PyThreadState* __tstate = wxPyBeginAllowThreads();
18330 (arg1)->DrawCircle(arg2,arg3,arg4);
18331 wxPyEndAllowThreads(__tstate);
18332 if (PyErr_Occurred()) SWIG_fail;
18333 }
18334 resultobj = SWIG_Py_Void();
18335 return resultobj;
18336 fail:
18337 return NULL;
18338 }
18339
18340
18341 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18342 PyObject *resultobj = 0;
18343 wxDC *arg1 = (wxDC *) 0 ;
18344 wxPoint *arg2 = 0 ;
18345 int arg3 ;
18346 void *argp1 = 0 ;
18347 int res1 = 0 ;
18348 wxPoint temp2 ;
18349 int val3 ;
18350 int ecode3 = 0 ;
18351 PyObject * obj0 = 0 ;
18352 PyObject * obj1 = 0 ;
18353 PyObject * obj2 = 0 ;
18354 char * kwnames[] = {
18355 (char *) "self",(char *) "pt",(char *) "radius", NULL
18356 };
18357
18358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18360 if (!SWIG_IsOK(res1)) {
18361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18362 }
18363 arg1 = reinterpret_cast< wxDC * >(argp1);
18364 {
18365 arg2 = &temp2;
18366 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18367 }
18368 ecode3 = SWIG_AsVal_int(obj2, &val3);
18369 if (!SWIG_IsOK(ecode3)) {
18370 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18371 }
18372 arg3 = static_cast< int >(val3);
18373 {
18374 PyThreadState* __tstate = wxPyBeginAllowThreads();
18375 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18376 wxPyEndAllowThreads(__tstate);
18377 if (PyErr_Occurred()) SWIG_fail;
18378 }
18379 resultobj = SWIG_Py_Void();
18380 return resultobj;
18381 fail:
18382 return NULL;
18383 }
18384
18385
18386 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18387 PyObject *resultobj = 0;
18388 wxDC *arg1 = (wxDC *) 0 ;
18389 int arg2 ;
18390 int arg3 ;
18391 int arg4 ;
18392 int arg5 ;
18393 void *argp1 = 0 ;
18394 int res1 = 0 ;
18395 int val2 ;
18396 int ecode2 = 0 ;
18397 int val3 ;
18398 int ecode3 = 0 ;
18399 int val4 ;
18400 int ecode4 = 0 ;
18401 int val5 ;
18402 int ecode5 = 0 ;
18403 PyObject * obj0 = 0 ;
18404 PyObject * obj1 = 0 ;
18405 PyObject * obj2 = 0 ;
18406 PyObject * obj3 = 0 ;
18407 PyObject * obj4 = 0 ;
18408 char * kwnames[] = {
18409 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18410 };
18411
18412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18414 if (!SWIG_IsOK(res1)) {
18415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18416 }
18417 arg1 = reinterpret_cast< wxDC * >(argp1);
18418 ecode2 = SWIG_AsVal_int(obj1, &val2);
18419 if (!SWIG_IsOK(ecode2)) {
18420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18421 }
18422 arg2 = static_cast< int >(val2);
18423 ecode3 = SWIG_AsVal_int(obj2, &val3);
18424 if (!SWIG_IsOK(ecode3)) {
18425 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18426 }
18427 arg3 = static_cast< int >(val3);
18428 ecode4 = SWIG_AsVal_int(obj3, &val4);
18429 if (!SWIG_IsOK(ecode4)) {
18430 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18431 }
18432 arg4 = static_cast< int >(val4);
18433 ecode5 = SWIG_AsVal_int(obj4, &val5);
18434 if (!SWIG_IsOK(ecode5)) {
18435 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18436 }
18437 arg5 = static_cast< int >(val5);
18438 {
18439 PyThreadState* __tstate = wxPyBeginAllowThreads();
18440 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18441 wxPyEndAllowThreads(__tstate);
18442 if (PyErr_Occurred()) SWIG_fail;
18443 }
18444 resultobj = SWIG_Py_Void();
18445 return resultobj;
18446 fail:
18447 return NULL;
18448 }
18449
18450
18451 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18452 PyObject *resultobj = 0;
18453 wxDC *arg1 = (wxDC *) 0 ;
18454 wxRect *arg2 = 0 ;
18455 void *argp1 = 0 ;
18456 int res1 = 0 ;
18457 wxRect temp2 ;
18458 PyObject * obj0 = 0 ;
18459 PyObject * obj1 = 0 ;
18460 char * kwnames[] = {
18461 (char *) "self",(char *) "rect", NULL
18462 };
18463
18464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18466 if (!SWIG_IsOK(res1)) {
18467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18468 }
18469 arg1 = reinterpret_cast< wxDC * >(argp1);
18470 {
18471 arg2 = &temp2;
18472 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18473 }
18474 {
18475 PyThreadState* __tstate = wxPyBeginAllowThreads();
18476 (arg1)->DrawEllipse((wxRect const &)*arg2);
18477 wxPyEndAllowThreads(__tstate);
18478 if (PyErr_Occurred()) SWIG_fail;
18479 }
18480 resultobj = SWIG_Py_Void();
18481 return resultobj;
18482 fail:
18483 return NULL;
18484 }
18485
18486
18487 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18488 PyObject *resultobj = 0;
18489 wxDC *arg1 = (wxDC *) 0 ;
18490 wxPoint *arg2 = 0 ;
18491 wxSize *arg3 = 0 ;
18492 void *argp1 = 0 ;
18493 int res1 = 0 ;
18494 wxPoint temp2 ;
18495 wxSize temp3 ;
18496 PyObject * obj0 = 0 ;
18497 PyObject * obj1 = 0 ;
18498 PyObject * obj2 = 0 ;
18499 char * kwnames[] = {
18500 (char *) "self",(char *) "pt",(char *) "sz", NULL
18501 };
18502
18503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18505 if (!SWIG_IsOK(res1)) {
18506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18507 }
18508 arg1 = reinterpret_cast< wxDC * >(argp1);
18509 {
18510 arg2 = &temp2;
18511 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18512 }
18513 {
18514 arg3 = &temp3;
18515 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18516 }
18517 {
18518 PyThreadState* __tstate = wxPyBeginAllowThreads();
18519 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18520 wxPyEndAllowThreads(__tstate);
18521 if (PyErr_Occurred()) SWIG_fail;
18522 }
18523 resultobj = SWIG_Py_Void();
18524 return resultobj;
18525 fail:
18526 return NULL;
18527 }
18528
18529
18530 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18531 PyObject *resultobj = 0;
18532 wxDC *arg1 = (wxDC *) 0 ;
18533 wxIcon *arg2 = 0 ;
18534 int arg3 ;
18535 int arg4 ;
18536 void *argp1 = 0 ;
18537 int res1 = 0 ;
18538 void *argp2 = 0 ;
18539 int res2 = 0 ;
18540 int val3 ;
18541 int ecode3 = 0 ;
18542 int val4 ;
18543 int ecode4 = 0 ;
18544 PyObject * obj0 = 0 ;
18545 PyObject * obj1 = 0 ;
18546 PyObject * obj2 = 0 ;
18547 PyObject * obj3 = 0 ;
18548 char * kwnames[] = {
18549 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18550 };
18551
18552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18554 if (!SWIG_IsOK(res1)) {
18555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18556 }
18557 arg1 = reinterpret_cast< wxDC * >(argp1);
18558 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18559 if (!SWIG_IsOK(res2)) {
18560 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18561 }
18562 if (!argp2) {
18563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18564 }
18565 arg2 = reinterpret_cast< wxIcon * >(argp2);
18566 ecode3 = SWIG_AsVal_int(obj2, &val3);
18567 if (!SWIG_IsOK(ecode3)) {
18568 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18569 }
18570 arg3 = static_cast< int >(val3);
18571 ecode4 = SWIG_AsVal_int(obj3, &val4);
18572 if (!SWIG_IsOK(ecode4)) {
18573 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18574 }
18575 arg4 = static_cast< int >(val4);
18576 {
18577 PyThreadState* __tstate = wxPyBeginAllowThreads();
18578 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18579 wxPyEndAllowThreads(__tstate);
18580 if (PyErr_Occurred()) SWIG_fail;
18581 }
18582 resultobj = SWIG_Py_Void();
18583 return resultobj;
18584 fail:
18585 return NULL;
18586 }
18587
18588
18589 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18590 PyObject *resultobj = 0;
18591 wxDC *arg1 = (wxDC *) 0 ;
18592 wxIcon *arg2 = 0 ;
18593 wxPoint *arg3 = 0 ;
18594 void *argp1 = 0 ;
18595 int res1 = 0 ;
18596 void *argp2 = 0 ;
18597 int res2 = 0 ;
18598 wxPoint temp3 ;
18599 PyObject * obj0 = 0 ;
18600 PyObject * obj1 = 0 ;
18601 PyObject * obj2 = 0 ;
18602 char * kwnames[] = {
18603 (char *) "self",(char *) "icon",(char *) "pt", NULL
18604 };
18605
18606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18608 if (!SWIG_IsOK(res1)) {
18609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18610 }
18611 arg1 = reinterpret_cast< wxDC * >(argp1);
18612 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18613 if (!SWIG_IsOK(res2)) {
18614 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18615 }
18616 if (!argp2) {
18617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18618 }
18619 arg2 = reinterpret_cast< wxIcon * >(argp2);
18620 {
18621 arg3 = &temp3;
18622 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18623 }
18624 {
18625 PyThreadState* __tstate = wxPyBeginAllowThreads();
18626 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18627 wxPyEndAllowThreads(__tstate);
18628 if (PyErr_Occurred()) SWIG_fail;
18629 }
18630 resultobj = SWIG_Py_Void();
18631 return resultobj;
18632 fail:
18633 return NULL;
18634 }
18635
18636
18637 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18638 PyObject *resultobj = 0;
18639 wxDC *arg1 = (wxDC *) 0 ;
18640 wxBitmap *arg2 = 0 ;
18641 int arg3 ;
18642 int arg4 ;
18643 bool arg5 = (bool) false ;
18644 void *argp1 = 0 ;
18645 int res1 = 0 ;
18646 void *argp2 = 0 ;
18647 int res2 = 0 ;
18648 int val3 ;
18649 int ecode3 = 0 ;
18650 int val4 ;
18651 int ecode4 = 0 ;
18652 bool val5 ;
18653 int ecode5 = 0 ;
18654 PyObject * obj0 = 0 ;
18655 PyObject * obj1 = 0 ;
18656 PyObject * obj2 = 0 ;
18657 PyObject * obj3 = 0 ;
18658 PyObject * obj4 = 0 ;
18659 char * kwnames[] = {
18660 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18661 };
18662
18663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18665 if (!SWIG_IsOK(res1)) {
18666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18667 }
18668 arg1 = reinterpret_cast< wxDC * >(argp1);
18669 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18670 if (!SWIG_IsOK(res2)) {
18671 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18672 }
18673 if (!argp2) {
18674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18675 }
18676 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18677 ecode3 = SWIG_AsVal_int(obj2, &val3);
18678 if (!SWIG_IsOK(ecode3)) {
18679 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18680 }
18681 arg3 = static_cast< int >(val3);
18682 ecode4 = SWIG_AsVal_int(obj3, &val4);
18683 if (!SWIG_IsOK(ecode4)) {
18684 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18685 }
18686 arg4 = static_cast< int >(val4);
18687 if (obj4) {
18688 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18689 if (!SWIG_IsOK(ecode5)) {
18690 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18691 }
18692 arg5 = static_cast< bool >(val5);
18693 }
18694 {
18695 PyThreadState* __tstate = wxPyBeginAllowThreads();
18696 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18697 wxPyEndAllowThreads(__tstate);
18698 if (PyErr_Occurred()) SWIG_fail;
18699 }
18700 resultobj = SWIG_Py_Void();
18701 return resultobj;
18702 fail:
18703 return NULL;
18704 }
18705
18706
18707 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18708 PyObject *resultobj = 0;
18709 wxDC *arg1 = (wxDC *) 0 ;
18710 wxBitmap *arg2 = 0 ;
18711 wxPoint *arg3 = 0 ;
18712 bool arg4 = (bool) false ;
18713 void *argp1 = 0 ;
18714 int res1 = 0 ;
18715 void *argp2 = 0 ;
18716 int res2 = 0 ;
18717 wxPoint temp3 ;
18718 bool val4 ;
18719 int ecode4 = 0 ;
18720 PyObject * obj0 = 0 ;
18721 PyObject * obj1 = 0 ;
18722 PyObject * obj2 = 0 ;
18723 PyObject * obj3 = 0 ;
18724 char * kwnames[] = {
18725 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18726 };
18727
18728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18730 if (!SWIG_IsOK(res1)) {
18731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18732 }
18733 arg1 = reinterpret_cast< wxDC * >(argp1);
18734 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18735 if (!SWIG_IsOK(res2)) {
18736 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18737 }
18738 if (!argp2) {
18739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18740 }
18741 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18742 {
18743 arg3 = &temp3;
18744 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18745 }
18746 if (obj3) {
18747 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18748 if (!SWIG_IsOK(ecode4)) {
18749 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
18750 }
18751 arg4 = static_cast< bool >(val4);
18752 }
18753 {
18754 PyThreadState* __tstate = wxPyBeginAllowThreads();
18755 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
18756 wxPyEndAllowThreads(__tstate);
18757 if (PyErr_Occurred()) SWIG_fail;
18758 }
18759 resultobj = SWIG_Py_Void();
18760 return resultobj;
18761 fail:
18762 return NULL;
18763 }
18764
18765
18766 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18767 PyObject *resultobj = 0;
18768 wxDC *arg1 = (wxDC *) 0 ;
18769 wxString *arg2 = 0 ;
18770 int arg3 ;
18771 int arg4 ;
18772 void *argp1 = 0 ;
18773 int res1 = 0 ;
18774 bool temp2 = false ;
18775 int val3 ;
18776 int ecode3 = 0 ;
18777 int val4 ;
18778 int ecode4 = 0 ;
18779 PyObject * obj0 = 0 ;
18780 PyObject * obj1 = 0 ;
18781 PyObject * obj2 = 0 ;
18782 PyObject * obj3 = 0 ;
18783 char * kwnames[] = {
18784 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
18785 };
18786
18787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18789 if (!SWIG_IsOK(res1)) {
18790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
18791 }
18792 arg1 = reinterpret_cast< wxDC * >(argp1);
18793 {
18794 arg2 = wxString_in_helper(obj1);
18795 if (arg2 == NULL) SWIG_fail;
18796 temp2 = true;
18797 }
18798 ecode3 = SWIG_AsVal_int(obj2, &val3);
18799 if (!SWIG_IsOK(ecode3)) {
18800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
18801 }
18802 arg3 = static_cast< int >(val3);
18803 ecode4 = SWIG_AsVal_int(obj3, &val4);
18804 if (!SWIG_IsOK(ecode4)) {
18805 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
18806 }
18807 arg4 = static_cast< int >(val4);
18808 {
18809 PyThreadState* __tstate = wxPyBeginAllowThreads();
18810 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
18811 wxPyEndAllowThreads(__tstate);
18812 if (PyErr_Occurred()) SWIG_fail;
18813 }
18814 resultobj = SWIG_Py_Void();
18815 {
18816 if (temp2)
18817 delete arg2;
18818 }
18819 return resultobj;
18820 fail:
18821 {
18822 if (temp2)
18823 delete arg2;
18824 }
18825 return NULL;
18826 }
18827
18828
18829 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18830 PyObject *resultobj = 0;
18831 wxDC *arg1 = (wxDC *) 0 ;
18832 wxString *arg2 = 0 ;
18833 wxPoint *arg3 = 0 ;
18834 void *argp1 = 0 ;
18835 int res1 = 0 ;
18836 bool temp2 = false ;
18837 wxPoint temp3 ;
18838 PyObject * obj0 = 0 ;
18839 PyObject * obj1 = 0 ;
18840 PyObject * obj2 = 0 ;
18841 char * kwnames[] = {
18842 (char *) "self",(char *) "text",(char *) "pt", NULL
18843 };
18844
18845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18847 if (!SWIG_IsOK(res1)) {
18848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18849 }
18850 arg1 = reinterpret_cast< wxDC * >(argp1);
18851 {
18852 arg2 = wxString_in_helper(obj1);
18853 if (arg2 == NULL) SWIG_fail;
18854 temp2 = true;
18855 }
18856 {
18857 arg3 = &temp3;
18858 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18859 }
18860 {
18861 PyThreadState* __tstate = wxPyBeginAllowThreads();
18862 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
18863 wxPyEndAllowThreads(__tstate);
18864 if (PyErr_Occurred()) SWIG_fail;
18865 }
18866 resultobj = SWIG_Py_Void();
18867 {
18868 if (temp2)
18869 delete arg2;
18870 }
18871 return resultobj;
18872 fail:
18873 {
18874 if (temp2)
18875 delete arg2;
18876 }
18877 return NULL;
18878 }
18879
18880
18881 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18882 PyObject *resultobj = 0;
18883 wxDC *arg1 = (wxDC *) 0 ;
18884 wxString *arg2 = 0 ;
18885 int arg3 ;
18886 int arg4 ;
18887 double arg5 ;
18888 void *argp1 = 0 ;
18889 int res1 = 0 ;
18890 bool temp2 = false ;
18891 int val3 ;
18892 int ecode3 = 0 ;
18893 int val4 ;
18894 int ecode4 = 0 ;
18895 double val5 ;
18896 int ecode5 = 0 ;
18897 PyObject * obj0 = 0 ;
18898 PyObject * obj1 = 0 ;
18899 PyObject * obj2 = 0 ;
18900 PyObject * obj3 = 0 ;
18901 PyObject * obj4 = 0 ;
18902 char * kwnames[] = {
18903 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
18904 };
18905
18906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18908 if (!SWIG_IsOK(res1)) {
18909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
18910 }
18911 arg1 = reinterpret_cast< wxDC * >(argp1);
18912 {
18913 arg2 = wxString_in_helper(obj1);
18914 if (arg2 == NULL) SWIG_fail;
18915 temp2 = true;
18916 }
18917 ecode3 = SWIG_AsVal_int(obj2, &val3);
18918 if (!SWIG_IsOK(ecode3)) {
18919 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
18920 }
18921 arg3 = static_cast< int >(val3);
18922 ecode4 = SWIG_AsVal_int(obj3, &val4);
18923 if (!SWIG_IsOK(ecode4)) {
18924 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
18925 }
18926 arg4 = static_cast< int >(val4);
18927 ecode5 = SWIG_AsVal_double(obj4, &val5);
18928 if (!SWIG_IsOK(ecode5)) {
18929 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
18930 }
18931 arg5 = static_cast< double >(val5);
18932 {
18933 PyThreadState* __tstate = wxPyBeginAllowThreads();
18934 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
18935 wxPyEndAllowThreads(__tstate);
18936 if (PyErr_Occurred()) SWIG_fail;
18937 }
18938 resultobj = SWIG_Py_Void();
18939 {
18940 if (temp2)
18941 delete arg2;
18942 }
18943 return resultobj;
18944 fail:
18945 {
18946 if (temp2)
18947 delete arg2;
18948 }
18949 return NULL;
18950 }
18951
18952
18953 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18954 PyObject *resultobj = 0;
18955 wxDC *arg1 = (wxDC *) 0 ;
18956 wxString *arg2 = 0 ;
18957 wxPoint *arg3 = 0 ;
18958 double arg4 ;
18959 void *argp1 = 0 ;
18960 int res1 = 0 ;
18961 bool temp2 = false ;
18962 wxPoint temp3 ;
18963 double val4 ;
18964 int ecode4 = 0 ;
18965 PyObject * obj0 = 0 ;
18966 PyObject * obj1 = 0 ;
18967 PyObject * obj2 = 0 ;
18968 PyObject * obj3 = 0 ;
18969 char * kwnames[] = {
18970 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
18971 };
18972
18973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18975 if (!SWIG_IsOK(res1)) {
18976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18977 }
18978 arg1 = reinterpret_cast< wxDC * >(argp1);
18979 {
18980 arg2 = wxString_in_helper(obj1);
18981 if (arg2 == NULL) SWIG_fail;
18982 temp2 = true;
18983 }
18984 {
18985 arg3 = &temp3;
18986 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18987 }
18988 ecode4 = SWIG_AsVal_double(obj3, &val4);
18989 if (!SWIG_IsOK(ecode4)) {
18990 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
18991 }
18992 arg4 = static_cast< double >(val4);
18993 {
18994 PyThreadState* __tstate = wxPyBeginAllowThreads();
18995 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
18996 wxPyEndAllowThreads(__tstate);
18997 if (PyErr_Occurred()) SWIG_fail;
18998 }
18999 resultobj = SWIG_Py_Void();
19000 {
19001 if (temp2)
19002 delete arg2;
19003 }
19004 return resultobj;
19005 fail:
19006 {
19007 if (temp2)
19008 delete arg2;
19009 }
19010 return NULL;
19011 }
19012
19013
19014 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19015 PyObject *resultobj = 0;
19016 wxDC *arg1 = (wxDC *) 0 ;
19017 int arg2 ;
19018 int arg3 ;
19019 int arg4 ;
19020 int arg5 ;
19021 wxDC *arg6 = (wxDC *) 0 ;
19022 int arg7 ;
19023 int arg8 ;
19024 int arg9 = (int) wxCOPY ;
19025 bool arg10 = (bool) false ;
19026 int arg11 = (int) -1 ;
19027 int arg12 = (int) -1 ;
19028 bool result;
19029 void *argp1 = 0 ;
19030 int res1 = 0 ;
19031 int val2 ;
19032 int ecode2 = 0 ;
19033 int val3 ;
19034 int ecode3 = 0 ;
19035 int val4 ;
19036 int ecode4 = 0 ;
19037 int val5 ;
19038 int ecode5 = 0 ;
19039 void *argp6 = 0 ;
19040 int res6 = 0 ;
19041 int val7 ;
19042 int ecode7 = 0 ;
19043 int val8 ;
19044 int ecode8 = 0 ;
19045 int val9 ;
19046 int ecode9 = 0 ;
19047 bool val10 ;
19048 int ecode10 = 0 ;
19049 int val11 ;
19050 int ecode11 = 0 ;
19051 int val12 ;
19052 int ecode12 = 0 ;
19053 PyObject * obj0 = 0 ;
19054 PyObject * obj1 = 0 ;
19055 PyObject * obj2 = 0 ;
19056 PyObject * obj3 = 0 ;
19057 PyObject * obj4 = 0 ;
19058 PyObject * obj5 = 0 ;
19059 PyObject * obj6 = 0 ;
19060 PyObject * obj7 = 0 ;
19061 PyObject * obj8 = 0 ;
19062 PyObject * obj9 = 0 ;
19063 PyObject * obj10 = 0 ;
19064 PyObject * obj11 = 0 ;
19065 char * kwnames[] = {
19066 (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
19067 };
19068
19069 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;
19070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19071 if (!SWIG_IsOK(res1)) {
19072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19073 }
19074 arg1 = reinterpret_cast< wxDC * >(argp1);
19075 ecode2 = SWIG_AsVal_int(obj1, &val2);
19076 if (!SWIG_IsOK(ecode2)) {
19077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19078 }
19079 arg2 = static_cast< int >(val2);
19080 ecode3 = SWIG_AsVal_int(obj2, &val3);
19081 if (!SWIG_IsOK(ecode3)) {
19082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19083 }
19084 arg3 = static_cast< int >(val3);
19085 ecode4 = SWIG_AsVal_int(obj3, &val4);
19086 if (!SWIG_IsOK(ecode4)) {
19087 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19088 }
19089 arg4 = static_cast< int >(val4);
19090 ecode5 = SWIG_AsVal_int(obj4, &val5);
19091 if (!SWIG_IsOK(ecode5)) {
19092 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19093 }
19094 arg5 = static_cast< int >(val5);
19095 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19096 if (!SWIG_IsOK(res6)) {
19097 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19098 }
19099 arg6 = reinterpret_cast< wxDC * >(argp6);
19100 ecode7 = SWIG_AsVal_int(obj6, &val7);
19101 if (!SWIG_IsOK(ecode7)) {
19102 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19103 }
19104 arg7 = static_cast< int >(val7);
19105 ecode8 = SWIG_AsVal_int(obj7, &val8);
19106 if (!SWIG_IsOK(ecode8)) {
19107 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19108 }
19109 arg8 = static_cast< int >(val8);
19110 if (obj8) {
19111 ecode9 = SWIG_AsVal_int(obj8, &val9);
19112 if (!SWIG_IsOK(ecode9)) {
19113 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19114 }
19115 arg9 = static_cast< int >(val9);
19116 }
19117 if (obj9) {
19118 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19119 if (!SWIG_IsOK(ecode10)) {
19120 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19121 }
19122 arg10 = static_cast< bool >(val10);
19123 }
19124 if (obj10) {
19125 ecode11 = SWIG_AsVal_int(obj10, &val11);
19126 if (!SWIG_IsOK(ecode11)) {
19127 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19128 }
19129 arg11 = static_cast< int >(val11);
19130 }
19131 if (obj11) {
19132 ecode12 = SWIG_AsVal_int(obj11, &val12);
19133 if (!SWIG_IsOK(ecode12)) {
19134 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19135 }
19136 arg12 = static_cast< int >(val12);
19137 }
19138 {
19139 PyThreadState* __tstate = wxPyBeginAllowThreads();
19140 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19141 wxPyEndAllowThreads(__tstate);
19142 if (PyErr_Occurred()) SWIG_fail;
19143 }
19144 {
19145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19146 }
19147 return resultobj;
19148 fail:
19149 return NULL;
19150 }
19151
19152
19153 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19154 PyObject *resultobj = 0;
19155 wxDC *arg1 = (wxDC *) 0 ;
19156 wxPoint *arg2 = 0 ;
19157 wxSize *arg3 = 0 ;
19158 wxDC *arg4 = (wxDC *) 0 ;
19159 wxPoint *arg5 = 0 ;
19160 int arg6 = (int) wxCOPY ;
19161 bool arg7 = (bool) false ;
19162 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19163 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19164 bool result;
19165 void *argp1 = 0 ;
19166 int res1 = 0 ;
19167 wxPoint temp2 ;
19168 wxSize temp3 ;
19169 void *argp4 = 0 ;
19170 int res4 = 0 ;
19171 wxPoint temp5 ;
19172 int val6 ;
19173 int ecode6 = 0 ;
19174 bool val7 ;
19175 int ecode7 = 0 ;
19176 wxPoint temp8 ;
19177 PyObject * obj0 = 0 ;
19178 PyObject * obj1 = 0 ;
19179 PyObject * obj2 = 0 ;
19180 PyObject * obj3 = 0 ;
19181 PyObject * obj4 = 0 ;
19182 PyObject * obj5 = 0 ;
19183 PyObject * obj6 = 0 ;
19184 PyObject * obj7 = 0 ;
19185 char * kwnames[] = {
19186 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19187 };
19188
19189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19191 if (!SWIG_IsOK(res1)) {
19192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19193 }
19194 arg1 = reinterpret_cast< wxDC * >(argp1);
19195 {
19196 arg2 = &temp2;
19197 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19198 }
19199 {
19200 arg3 = &temp3;
19201 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19202 }
19203 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19204 if (!SWIG_IsOK(res4)) {
19205 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19206 }
19207 arg4 = reinterpret_cast< wxDC * >(argp4);
19208 {
19209 arg5 = &temp5;
19210 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19211 }
19212 if (obj5) {
19213 ecode6 = SWIG_AsVal_int(obj5, &val6);
19214 if (!SWIG_IsOK(ecode6)) {
19215 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19216 }
19217 arg6 = static_cast< int >(val6);
19218 }
19219 if (obj6) {
19220 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19221 if (!SWIG_IsOK(ecode7)) {
19222 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19223 }
19224 arg7 = static_cast< bool >(val7);
19225 }
19226 if (obj7) {
19227 {
19228 arg8 = &temp8;
19229 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19230 }
19231 }
19232 {
19233 PyThreadState* __tstate = wxPyBeginAllowThreads();
19234 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19235 wxPyEndAllowThreads(__tstate);
19236 if (PyErr_Occurred()) SWIG_fail;
19237 }
19238 {
19239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19240 }
19241 return resultobj;
19242 fail:
19243 return NULL;
19244 }
19245
19246
19247 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19248 PyObject *resultobj = 0;
19249 wxDC *arg1 = (wxDC *) 0 ;
19250 int arg2 ;
19251 int arg3 ;
19252 int arg4 ;
19253 int arg5 ;
19254 void *argp1 = 0 ;
19255 int res1 = 0 ;
19256 int val2 ;
19257 int ecode2 = 0 ;
19258 int val3 ;
19259 int ecode3 = 0 ;
19260 int val4 ;
19261 int ecode4 = 0 ;
19262 int val5 ;
19263 int ecode5 = 0 ;
19264 PyObject * obj0 = 0 ;
19265 PyObject * obj1 = 0 ;
19266 PyObject * obj2 = 0 ;
19267 PyObject * obj3 = 0 ;
19268 PyObject * obj4 = 0 ;
19269 char * kwnames[] = {
19270 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19271 };
19272
19273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19275 if (!SWIG_IsOK(res1)) {
19276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19277 }
19278 arg1 = reinterpret_cast< wxDC * >(argp1);
19279 ecode2 = SWIG_AsVal_int(obj1, &val2);
19280 if (!SWIG_IsOK(ecode2)) {
19281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19282 }
19283 arg2 = static_cast< int >(val2);
19284 ecode3 = SWIG_AsVal_int(obj2, &val3);
19285 if (!SWIG_IsOK(ecode3)) {
19286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19287 }
19288 arg3 = static_cast< int >(val3);
19289 ecode4 = SWIG_AsVal_int(obj3, &val4);
19290 if (!SWIG_IsOK(ecode4)) {
19291 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19292 }
19293 arg4 = static_cast< int >(val4);
19294 ecode5 = SWIG_AsVal_int(obj4, &val5);
19295 if (!SWIG_IsOK(ecode5)) {
19296 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19297 }
19298 arg5 = static_cast< int >(val5);
19299 {
19300 PyThreadState* __tstate = wxPyBeginAllowThreads();
19301 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19302 wxPyEndAllowThreads(__tstate);
19303 if (PyErr_Occurred()) SWIG_fail;
19304 }
19305 resultobj = SWIG_Py_Void();
19306 return resultobj;
19307 fail:
19308 return NULL;
19309 }
19310
19311
19312 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19313 PyObject *resultobj = 0;
19314 wxDC *arg1 = (wxDC *) 0 ;
19315 wxPoint *arg2 = 0 ;
19316 wxSize *arg3 = 0 ;
19317 void *argp1 = 0 ;
19318 int res1 = 0 ;
19319 wxPoint temp2 ;
19320 wxSize temp3 ;
19321 PyObject * obj0 = 0 ;
19322 PyObject * obj1 = 0 ;
19323 PyObject * obj2 = 0 ;
19324 char * kwnames[] = {
19325 (char *) "self",(char *) "pt",(char *) "sz", NULL
19326 };
19327
19328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19330 if (!SWIG_IsOK(res1)) {
19331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19332 }
19333 arg1 = reinterpret_cast< wxDC * >(argp1);
19334 {
19335 arg2 = &temp2;
19336 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19337 }
19338 {
19339 arg3 = &temp3;
19340 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19341 }
19342 {
19343 PyThreadState* __tstate = wxPyBeginAllowThreads();
19344 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19345 wxPyEndAllowThreads(__tstate);
19346 if (PyErr_Occurred()) SWIG_fail;
19347 }
19348 resultobj = SWIG_Py_Void();
19349 return resultobj;
19350 fail:
19351 return NULL;
19352 }
19353
19354
19355 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19356 PyObject *resultobj = 0;
19357 wxDC *arg1 = (wxDC *) 0 ;
19358 wxRegion *arg2 = 0 ;
19359 void *argp1 = 0 ;
19360 int res1 = 0 ;
19361 void *argp2 = 0 ;
19362 int res2 = 0 ;
19363 PyObject * obj0 = 0 ;
19364 PyObject * obj1 = 0 ;
19365 char * kwnames[] = {
19366 (char *) "self",(char *) "region", NULL
19367 };
19368
19369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19371 if (!SWIG_IsOK(res1)) {
19372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19373 }
19374 arg1 = reinterpret_cast< wxDC * >(argp1);
19375 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19376 if (!SWIG_IsOK(res2)) {
19377 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19378 }
19379 if (!argp2) {
19380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19381 }
19382 arg2 = reinterpret_cast< wxRegion * >(argp2);
19383 {
19384 PyThreadState* __tstate = wxPyBeginAllowThreads();
19385 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19386 wxPyEndAllowThreads(__tstate);
19387 if (PyErr_Occurred()) SWIG_fail;
19388 }
19389 resultobj = SWIG_Py_Void();
19390 return resultobj;
19391 fail:
19392 return NULL;
19393 }
19394
19395
19396 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19397 PyObject *resultobj = 0;
19398 wxDC *arg1 = (wxDC *) 0 ;
19399 wxRect *arg2 = 0 ;
19400 void *argp1 = 0 ;
19401 int res1 = 0 ;
19402 wxRect temp2 ;
19403 PyObject * obj0 = 0 ;
19404 PyObject * obj1 = 0 ;
19405 char * kwnames[] = {
19406 (char *) "self",(char *) "rect", NULL
19407 };
19408
19409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19411 if (!SWIG_IsOK(res1)) {
19412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19413 }
19414 arg1 = reinterpret_cast< wxDC * >(argp1);
19415 {
19416 arg2 = &temp2;
19417 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19418 }
19419 {
19420 PyThreadState* __tstate = wxPyBeginAllowThreads();
19421 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19422 wxPyEndAllowThreads(__tstate);
19423 if (PyErr_Occurred()) SWIG_fail;
19424 }
19425 resultobj = SWIG_Py_Void();
19426 return resultobj;
19427 fail:
19428 return NULL;
19429 }
19430
19431
19432 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19433 PyObject *resultobj = 0;
19434 wxDC *arg1 = (wxDC *) 0 ;
19435 int arg2 ;
19436 wxPoint *arg3 = (wxPoint *) 0 ;
19437 int arg4 = (int) 0 ;
19438 int arg5 = (int) 0 ;
19439 void *argp1 = 0 ;
19440 int res1 = 0 ;
19441 int val4 ;
19442 int ecode4 = 0 ;
19443 int val5 ;
19444 int ecode5 = 0 ;
19445 PyObject * obj0 = 0 ;
19446 PyObject * obj1 = 0 ;
19447 PyObject * obj2 = 0 ;
19448 PyObject * obj3 = 0 ;
19449 char * kwnames[] = {
19450 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19451 };
19452
19453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19455 if (!SWIG_IsOK(res1)) {
19456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19457 }
19458 arg1 = reinterpret_cast< wxDC * >(argp1);
19459 {
19460 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19461 if (arg3 == NULL) SWIG_fail;
19462 }
19463 if (obj2) {
19464 ecode4 = SWIG_AsVal_int(obj2, &val4);
19465 if (!SWIG_IsOK(ecode4)) {
19466 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19467 }
19468 arg4 = static_cast< int >(val4);
19469 }
19470 if (obj3) {
19471 ecode5 = SWIG_AsVal_int(obj3, &val5);
19472 if (!SWIG_IsOK(ecode5)) {
19473 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19474 }
19475 arg5 = static_cast< int >(val5);
19476 }
19477 {
19478 PyThreadState* __tstate = wxPyBeginAllowThreads();
19479 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19480 wxPyEndAllowThreads(__tstate);
19481 if (PyErr_Occurred()) SWIG_fail;
19482 }
19483 resultobj = SWIG_Py_Void();
19484 {
19485 if (arg3) delete [] arg3;
19486 }
19487 return resultobj;
19488 fail:
19489 {
19490 if (arg3) delete [] arg3;
19491 }
19492 return NULL;
19493 }
19494
19495
19496 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19497 PyObject *resultobj = 0;
19498 wxDC *arg1 = (wxDC *) 0 ;
19499 int arg2 ;
19500 wxPoint *arg3 = (wxPoint *) 0 ;
19501 int arg4 = (int) 0 ;
19502 int arg5 = (int) 0 ;
19503 int arg6 = (int) wxODDEVEN_RULE ;
19504 void *argp1 = 0 ;
19505 int res1 = 0 ;
19506 int val4 ;
19507 int ecode4 = 0 ;
19508 int val5 ;
19509 int ecode5 = 0 ;
19510 int val6 ;
19511 int ecode6 = 0 ;
19512 PyObject * obj0 = 0 ;
19513 PyObject * obj1 = 0 ;
19514 PyObject * obj2 = 0 ;
19515 PyObject * obj3 = 0 ;
19516 PyObject * obj4 = 0 ;
19517 char * kwnames[] = {
19518 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19519 };
19520
19521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19523 if (!SWIG_IsOK(res1)) {
19524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19525 }
19526 arg1 = reinterpret_cast< wxDC * >(argp1);
19527 {
19528 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19529 if (arg3 == NULL) SWIG_fail;
19530 }
19531 if (obj2) {
19532 ecode4 = SWIG_AsVal_int(obj2, &val4);
19533 if (!SWIG_IsOK(ecode4)) {
19534 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19535 }
19536 arg4 = static_cast< int >(val4);
19537 }
19538 if (obj3) {
19539 ecode5 = SWIG_AsVal_int(obj3, &val5);
19540 if (!SWIG_IsOK(ecode5)) {
19541 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19542 }
19543 arg5 = static_cast< int >(val5);
19544 }
19545 if (obj4) {
19546 ecode6 = SWIG_AsVal_int(obj4, &val6);
19547 if (!SWIG_IsOK(ecode6)) {
19548 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19549 }
19550 arg6 = static_cast< int >(val6);
19551 }
19552 {
19553 PyThreadState* __tstate = wxPyBeginAllowThreads();
19554 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19555 wxPyEndAllowThreads(__tstate);
19556 if (PyErr_Occurred()) SWIG_fail;
19557 }
19558 resultobj = SWIG_Py_Void();
19559 {
19560 if (arg3) delete [] arg3;
19561 }
19562 return resultobj;
19563 fail:
19564 {
19565 if (arg3) delete [] arg3;
19566 }
19567 return NULL;
19568 }
19569
19570
19571 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19572 PyObject *resultobj = 0;
19573 wxDC *arg1 = (wxDC *) 0 ;
19574 wxString *arg2 = 0 ;
19575 wxRect *arg3 = 0 ;
19576 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19577 int arg5 = (int) -1 ;
19578 void *argp1 = 0 ;
19579 int res1 = 0 ;
19580 bool temp2 = false ;
19581 wxRect temp3 ;
19582 int val4 ;
19583 int ecode4 = 0 ;
19584 int val5 ;
19585 int ecode5 = 0 ;
19586 PyObject * obj0 = 0 ;
19587 PyObject * obj1 = 0 ;
19588 PyObject * obj2 = 0 ;
19589 PyObject * obj3 = 0 ;
19590 PyObject * obj4 = 0 ;
19591 char * kwnames[] = {
19592 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19593 };
19594
19595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19597 if (!SWIG_IsOK(res1)) {
19598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19599 }
19600 arg1 = reinterpret_cast< wxDC * >(argp1);
19601 {
19602 arg2 = wxString_in_helper(obj1);
19603 if (arg2 == NULL) SWIG_fail;
19604 temp2 = true;
19605 }
19606 {
19607 arg3 = &temp3;
19608 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19609 }
19610 if (obj3) {
19611 ecode4 = SWIG_AsVal_int(obj3, &val4);
19612 if (!SWIG_IsOK(ecode4)) {
19613 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19614 }
19615 arg4 = static_cast< int >(val4);
19616 }
19617 if (obj4) {
19618 ecode5 = SWIG_AsVal_int(obj4, &val5);
19619 if (!SWIG_IsOK(ecode5)) {
19620 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19621 }
19622 arg5 = static_cast< int >(val5);
19623 }
19624 {
19625 PyThreadState* __tstate = wxPyBeginAllowThreads();
19626 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19627 wxPyEndAllowThreads(__tstate);
19628 if (PyErr_Occurred()) SWIG_fail;
19629 }
19630 resultobj = SWIG_Py_Void();
19631 {
19632 if (temp2)
19633 delete arg2;
19634 }
19635 return resultobj;
19636 fail:
19637 {
19638 if (temp2)
19639 delete arg2;
19640 }
19641 return NULL;
19642 }
19643
19644
19645 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19646 PyObject *resultobj = 0;
19647 wxDC *arg1 = (wxDC *) 0 ;
19648 wxString *arg2 = 0 ;
19649 wxBitmap *arg3 = 0 ;
19650 wxRect *arg4 = 0 ;
19651 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19652 int arg6 = (int) -1 ;
19653 wxRect result;
19654 void *argp1 = 0 ;
19655 int res1 = 0 ;
19656 bool temp2 = false ;
19657 void *argp3 = 0 ;
19658 int res3 = 0 ;
19659 wxRect temp4 ;
19660 int val5 ;
19661 int ecode5 = 0 ;
19662 int val6 ;
19663 int ecode6 = 0 ;
19664 PyObject * obj0 = 0 ;
19665 PyObject * obj1 = 0 ;
19666 PyObject * obj2 = 0 ;
19667 PyObject * obj3 = 0 ;
19668 PyObject * obj4 = 0 ;
19669 PyObject * obj5 = 0 ;
19670 char * kwnames[] = {
19671 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19672 };
19673
19674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19676 if (!SWIG_IsOK(res1)) {
19677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19678 }
19679 arg1 = reinterpret_cast< wxDC * >(argp1);
19680 {
19681 arg2 = wxString_in_helper(obj1);
19682 if (arg2 == NULL) SWIG_fail;
19683 temp2 = true;
19684 }
19685 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19686 if (!SWIG_IsOK(res3)) {
19687 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19688 }
19689 if (!argp3) {
19690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19691 }
19692 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19693 {
19694 arg4 = &temp4;
19695 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19696 }
19697 if (obj4) {
19698 ecode5 = SWIG_AsVal_int(obj4, &val5);
19699 if (!SWIG_IsOK(ecode5)) {
19700 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19701 }
19702 arg5 = static_cast< int >(val5);
19703 }
19704 if (obj5) {
19705 ecode6 = SWIG_AsVal_int(obj5, &val6);
19706 if (!SWIG_IsOK(ecode6)) {
19707 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19708 }
19709 arg6 = static_cast< int >(val6);
19710 }
19711 {
19712 PyThreadState* __tstate = wxPyBeginAllowThreads();
19713 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19714 wxPyEndAllowThreads(__tstate);
19715 if (PyErr_Occurred()) SWIG_fail;
19716 }
19717 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19718 {
19719 if (temp2)
19720 delete arg2;
19721 }
19722 return resultobj;
19723 fail:
19724 {
19725 if (temp2)
19726 delete arg2;
19727 }
19728 return NULL;
19729 }
19730
19731
19732 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19733 PyObject *resultobj = 0;
19734 wxDC *arg1 = (wxDC *) 0 ;
19735 int arg2 ;
19736 wxPoint *arg3 = (wxPoint *) 0 ;
19737 void *argp1 = 0 ;
19738 int res1 = 0 ;
19739 PyObject * obj0 = 0 ;
19740 PyObject * obj1 = 0 ;
19741 char * kwnames[] = {
19742 (char *) "self",(char *) "points", NULL
19743 };
19744
19745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
19746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19747 if (!SWIG_IsOK(res1)) {
19748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
19749 }
19750 arg1 = reinterpret_cast< wxDC * >(argp1);
19751 {
19752 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19753 if (arg3 == NULL) SWIG_fail;
19754 }
19755 {
19756 PyThreadState* __tstate = wxPyBeginAllowThreads();
19757 (arg1)->DrawSpline(arg2,arg3);
19758 wxPyEndAllowThreads(__tstate);
19759 if (PyErr_Occurred()) SWIG_fail;
19760 }
19761 resultobj = SWIG_Py_Void();
19762 {
19763 if (arg3) delete [] arg3;
19764 }
19765 return resultobj;
19766 fail:
19767 {
19768 if (arg3) delete [] arg3;
19769 }
19770 return NULL;
19771 }
19772
19773
19774 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19775 PyObject *resultobj = 0;
19776 wxDC *arg1 = (wxDC *) 0 ;
19777 void *argp1 = 0 ;
19778 int res1 = 0 ;
19779 PyObject *swig_obj[1] ;
19780
19781 if (!args) SWIG_fail;
19782 swig_obj[0] = args;
19783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19784 if (!SWIG_IsOK(res1)) {
19785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
19786 }
19787 arg1 = reinterpret_cast< wxDC * >(argp1);
19788 {
19789 PyThreadState* __tstate = wxPyBeginAllowThreads();
19790 (arg1)->Clear();
19791 wxPyEndAllowThreads(__tstate);
19792 if (PyErr_Occurred()) SWIG_fail;
19793 }
19794 resultobj = SWIG_Py_Void();
19795 return resultobj;
19796 fail:
19797 return NULL;
19798 }
19799
19800
19801 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19802 PyObject *resultobj = 0;
19803 wxDC *arg1 = (wxDC *) 0 ;
19804 wxString *arg2 = 0 ;
19805 bool result;
19806 void *argp1 = 0 ;
19807 int res1 = 0 ;
19808 bool temp2 = false ;
19809 PyObject * obj0 = 0 ;
19810 PyObject * obj1 = 0 ;
19811 char * kwnames[] = {
19812 (char *) "self",(char *) "message", NULL
19813 };
19814
19815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
19816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19817 if (!SWIG_IsOK(res1)) {
19818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
19819 }
19820 arg1 = reinterpret_cast< wxDC * >(argp1);
19821 {
19822 arg2 = wxString_in_helper(obj1);
19823 if (arg2 == NULL) SWIG_fail;
19824 temp2 = true;
19825 }
19826 {
19827 PyThreadState* __tstate = wxPyBeginAllowThreads();
19828 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
19829 wxPyEndAllowThreads(__tstate);
19830 if (PyErr_Occurred()) SWIG_fail;
19831 }
19832 {
19833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19834 }
19835 {
19836 if (temp2)
19837 delete arg2;
19838 }
19839 return resultobj;
19840 fail:
19841 {
19842 if (temp2)
19843 delete arg2;
19844 }
19845 return NULL;
19846 }
19847
19848
19849 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19850 PyObject *resultobj = 0;
19851 wxDC *arg1 = (wxDC *) 0 ;
19852 void *argp1 = 0 ;
19853 int res1 = 0 ;
19854 PyObject *swig_obj[1] ;
19855
19856 if (!args) SWIG_fail;
19857 swig_obj[0] = args;
19858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19859 if (!SWIG_IsOK(res1)) {
19860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
19861 }
19862 arg1 = reinterpret_cast< wxDC * >(argp1);
19863 {
19864 PyThreadState* __tstate = wxPyBeginAllowThreads();
19865 (arg1)->EndDoc();
19866 wxPyEndAllowThreads(__tstate);
19867 if (PyErr_Occurred()) SWIG_fail;
19868 }
19869 resultobj = SWIG_Py_Void();
19870 return resultobj;
19871 fail:
19872 return NULL;
19873 }
19874
19875
19876 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19877 PyObject *resultobj = 0;
19878 wxDC *arg1 = (wxDC *) 0 ;
19879 void *argp1 = 0 ;
19880 int res1 = 0 ;
19881 PyObject *swig_obj[1] ;
19882
19883 if (!args) SWIG_fail;
19884 swig_obj[0] = args;
19885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19886 if (!SWIG_IsOK(res1)) {
19887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
19888 }
19889 arg1 = reinterpret_cast< wxDC * >(argp1);
19890 {
19891 PyThreadState* __tstate = wxPyBeginAllowThreads();
19892 (arg1)->StartPage();
19893 wxPyEndAllowThreads(__tstate);
19894 if (PyErr_Occurred()) SWIG_fail;
19895 }
19896 resultobj = SWIG_Py_Void();
19897 return resultobj;
19898 fail:
19899 return NULL;
19900 }
19901
19902
19903 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19904 PyObject *resultobj = 0;
19905 wxDC *arg1 = (wxDC *) 0 ;
19906 void *argp1 = 0 ;
19907 int res1 = 0 ;
19908 PyObject *swig_obj[1] ;
19909
19910 if (!args) SWIG_fail;
19911 swig_obj[0] = args;
19912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19913 if (!SWIG_IsOK(res1)) {
19914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
19915 }
19916 arg1 = reinterpret_cast< wxDC * >(argp1);
19917 {
19918 PyThreadState* __tstate = wxPyBeginAllowThreads();
19919 (arg1)->EndPage();
19920 wxPyEndAllowThreads(__tstate);
19921 if (PyErr_Occurred()) SWIG_fail;
19922 }
19923 resultobj = SWIG_Py_Void();
19924 return resultobj;
19925 fail:
19926 return NULL;
19927 }
19928
19929
19930 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19931 PyObject *resultobj = 0;
19932 wxDC *arg1 = (wxDC *) 0 ;
19933 wxFont *arg2 = 0 ;
19934 void *argp1 = 0 ;
19935 int res1 = 0 ;
19936 void *argp2 = 0 ;
19937 int res2 = 0 ;
19938 PyObject * obj0 = 0 ;
19939 PyObject * obj1 = 0 ;
19940 char * kwnames[] = {
19941 (char *) "self",(char *) "font", NULL
19942 };
19943
19944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
19945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19946 if (!SWIG_IsOK(res1)) {
19947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
19948 }
19949 arg1 = reinterpret_cast< wxDC * >(argp1);
19950 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
19951 if (!SWIG_IsOK(res2)) {
19952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
19953 }
19954 if (!argp2) {
19955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
19956 }
19957 arg2 = reinterpret_cast< wxFont * >(argp2);
19958 {
19959 PyThreadState* __tstate = wxPyBeginAllowThreads();
19960 (arg1)->SetFont((wxFont const &)*arg2);
19961 wxPyEndAllowThreads(__tstate);
19962 if (PyErr_Occurred()) SWIG_fail;
19963 }
19964 resultobj = SWIG_Py_Void();
19965 return resultobj;
19966 fail:
19967 return NULL;
19968 }
19969
19970
19971 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19972 PyObject *resultobj = 0;
19973 wxDC *arg1 = (wxDC *) 0 ;
19974 wxPen *arg2 = 0 ;
19975 void *argp1 = 0 ;
19976 int res1 = 0 ;
19977 void *argp2 = 0 ;
19978 int res2 = 0 ;
19979 PyObject * obj0 = 0 ;
19980 PyObject * obj1 = 0 ;
19981 char * kwnames[] = {
19982 (char *) "self",(char *) "pen", NULL
19983 };
19984
19985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
19986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19987 if (!SWIG_IsOK(res1)) {
19988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
19989 }
19990 arg1 = reinterpret_cast< wxDC * >(argp1);
19991 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
19992 if (!SWIG_IsOK(res2)) {
19993 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
19994 }
19995 if (!argp2) {
19996 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
19997 }
19998 arg2 = reinterpret_cast< wxPen * >(argp2);
19999 {
20000 PyThreadState* __tstate = wxPyBeginAllowThreads();
20001 (arg1)->SetPen((wxPen const &)*arg2);
20002 wxPyEndAllowThreads(__tstate);
20003 if (PyErr_Occurred()) SWIG_fail;
20004 }
20005 resultobj = SWIG_Py_Void();
20006 return resultobj;
20007 fail:
20008 return NULL;
20009 }
20010
20011
20012 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20013 PyObject *resultobj = 0;
20014 wxDC *arg1 = (wxDC *) 0 ;
20015 wxBrush *arg2 = 0 ;
20016 void *argp1 = 0 ;
20017 int res1 = 0 ;
20018 void *argp2 = 0 ;
20019 int res2 = 0 ;
20020 PyObject * obj0 = 0 ;
20021 PyObject * obj1 = 0 ;
20022 char * kwnames[] = {
20023 (char *) "self",(char *) "brush", NULL
20024 };
20025
20026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20028 if (!SWIG_IsOK(res1)) {
20029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20030 }
20031 arg1 = reinterpret_cast< wxDC * >(argp1);
20032 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20033 if (!SWIG_IsOK(res2)) {
20034 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20035 }
20036 if (!argp2) {
20037 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20038 }
20039 arg2 = reinterpret_cast< wxBrush * >(argp2);
20040 {
20041 PyThreadState* __tstate = wxPyBeginAllowThreads();
20042 (arg1)->SetBrush((wxBrush const &)*arg2);
20043 wxPyEndAllowThreads(__tstate);
20044 if (PyErr_Occurred()) SWIG_fail;
20045 }
20046 resultobj = SWIG_Py_Void();
20047 return resultobj;
20048 fail:
20049 return NULL;
20050 }
20051
20052
20053 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20054 PyObject *resultobj = 0;
20055 wxDC *arg1 = (wxDC *) 0 ;
20056 wxBrush *arg2 = 0 ;
20057 void *argp1 = 0 ;
20058 int res1 = 0 ;
20059 void *argp2 = 0 ;
20060 int res2 = 0 ;
20061 PyObject * obj0 = 0 ;
20062 PyObject * obj1 = 0 ;
20063 char * kwnames[] = {
20064 (char *) "self",(char *) "brush", NULL
20065 };
20066
20067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20069 if (!SWIG_IsOK(res1)) {
20070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20071 }
20072 arg1 = reinterpret_cast< wxDC * >(argp1);
20073 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20074 if (!SWIG_IsOK(res2)) {
20075 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20076 }
20077 if (!argp2) {
20078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20079 }
20080 arg2 = reinterpret_cast< wxBrush * >(argp2);
20081 {
20082 PyThreadState* __tstate = wxPyBeginAllowThreads();
20083 (arg1)->SetBackground((wxBrush const &)*arg2);
20084 wxPyEndAllowThreads(__tstate);
20085 if (PyErr_Occurred()) SWIG_fail;
20086 }
20087 resultobj = SWIG_Py_Void();
20088 return resultobj;
20089 fail:
20090 return NULL;
20091 }
20092
20093
20094 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20095 PyObject *resultobj = 0;
20096 wxDC *arg1 = (wxDC *) 0 ;
20097 int arg2 ;
20098 void *argp1 = 0 ;
20099 int res1 = 0 ;
20100 int val2 ;
20101 int ecode2 = 0 ;
20102 PyObject * obj0 = 0 ;
20103 PyObject * obj1 = 0 ;
20104 char * kwnames[] = {
20105 (char *) "self",(char *) "mode", NULL
20106 };
20107
20108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20110 if (!SWIG_IsOK(res1)) {
20111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20112 }
20113 arg1 = reinterpret_cast< wxDC * >(argp1);
20114 ecode2 = SWIG_AsVal_int(obj1, &val2);
20115 if (!SWIG_IsOK(ecode2)) {
20116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20117 }
20118 arg2 = static_cast< int >(val2);
20119 {
20120 PyThreadState* __tstate = wxPyBeginAllowThreads();
20121 (arg1)->SetBackgroundMode(arg2);
20122 wxPyEndAllowThreads(__tstate);
20123 if (PyErr_Occurred()) SWIG_fail;
20124 }
20125 resultobj = SWIG_Py_Void();
20126 return resultobj;
20127 fail:
20128 return NULL;
20129 }
20130
20131
20132 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20133 PyObject *resultobj = 0;
20134 wxDC *arg1 = (wxDC *) 0 ;
20135 wxPalette *arg2 = 0 ;
20136 void *argp1 = 0 ;
20137 int res1 = 0 ;
20138 void *argp2 = 0 ;
20139 int res2 = 0 ;
20140 PyObject * obj0 = 0 ;
20141 PyObject * obj1 = 0 ;
20142 char * kwnames[] = {
20143 (char *) "self",(char *) "palette", NULL
20144 };
20145
20146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20148 if (!SWIG_IsOK(res1)) {
20149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20150 }
20151 arg1 = reinterpret_cast< wxDC * >(argp1);
20152 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20153 if (!SWIG_IsOK(res2)) {
20154 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20155 }
20156 if (!argp2) {
20157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20158 }
20159 arg2 = reinterpret_cast< wxPalette * >(argp2);
20160 {
20161 PyThreadState* __tstate = wxPyBeginAllowThreads();
20162 (arg1)->SetPalette((wxPalette const &)*arg2);
20163 wxPyEndAllowThreads(__tstate);
20164 if (PyErr_Occurred()) SWIG_fail;
20165 }
20166 resultobj = SWIG_Py_Void();
20167 return resultobj;
20168 fail:
20169 return NULL;
20170 }
20171
20172
20173 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20174 PyObject *resultobj = 0;
20175 wxDC *arg1 = (wxDC *) 0 ;
20176 void *argp1 = 0 ;
20177 int res1 = 0 ;
20178 PyObject *swig_obj[1] ;
20179
20180 if (!args) SWIG_fail;
20181 swig_obj[0] = args;
20182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20183 if (!SWIG_IsOK(res1)) {
20184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20185 }
20186 arg1 = reinterpret_cast< wxDC * >(argp1);
20187 {
20188 PyThreadState* __tstate = wxPyBeginAllowThreads();
20189 (arg1)->DestroyClippingRegion();
20190 wxPyEndAllowThreads(__tstate);
20191 if (PyErr_Occurred()) SWIG_fail;
20192 }
20193 resultobj = SWIG_Py_Void();
20194 return resultobj;
20195 fail:
20196 return NULL;
20197 }
20198
20199
20200 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20201 PyObject *resultobj = 0;
20202 wxDC *arg1 = (wxDC *) 0 ;
20203 int *arg2 = (int *) 0 ;
20204 int *arg3 = (int *) 0 ;
20205 int *arg4 = (int *) 0 ;
20206 int *arg5 = (int *) 0 ;
20207 void *argp1 = 0 ;
20208 int res1 = 0 ;
20209 int temp2 ;
20210 int res2 = SWIG_TMPOBJ ;
20211 int temp3 ;
20212 int res3 = SWIG_TMPOBJ ;
20213 int temp4 ;
20214 int res4 = SWIG_TMPOBJ ;
20215 int temp5 ;
20216 int res5 = SWIG_TMPOBJ ;
20217 PyObject *swig_obj[1] ;
20218
20219 arg2 = &temp2;
20220 arg3 = &temp3;
20221 arg4 = &temp4;
20222 arg5 = &temp5;
20223 if (!args) SWIG_fail;
20224 swig_obj[0] = args;
20225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20226 if (!SWIG_IsOK(res1)) {
20227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20228 }
20229 arg1 = reinterpret_cast< wxDC * >(argp1);
20230 {
20231 PyThreadState* __tstate = wxPyBeginAllowThreads();
20232 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20233 wxPyEndAllowThreads(__tstate);
20234 if (PyErr_Occurred()) SWIG_fail;
20235 }
20236 resultobj = SWIG_Py_Void();
20237 if (SWIG_IsTmpObj(res2)) {
20238 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20239 } else {
20240 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20241 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20242 }
20243 if (SWIG_IsTmpObj(res3)) {
20244 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20245 } else {
20246 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20247 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20248 }
20249 if (SWIG_IsTmpObj(res4)) {
20250 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20251 } else {
20252 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20253 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20254 }
20255 if (SWIG_IsTmpObj(res5)) {
20256 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20257 } else {
20258 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20260 }
20261 return resultobj;
20262 fail:
20263 return NULL;
20264 }
20265
20266
20267 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20268 PyObject *resultobj = 0;
20269 wxDC *arg1 = (wxDC *) 0 ;
20270 wxRect result;
20271 void *argp1 = 0 ;
20272 int res1 = 0 ;
20273 PyObject *swig_obj[1] ;
20274
20275 if (!args) SWIG_fail;
20276 swig_obj[0] = args;
20277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20278 if (!SWIG_IsOK(res1)) {
20279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20280 }
20281 arg1 = reinterpret_cast< wxDC * >(argp1);
20282 {
20283 PyThreadState* __tstate = wxPyBeginAllowThreads();
20284 result = wxDC_GetClippingRect(arg1);
20285 wxPyEndAllowThreads(__tstate);
20286 if (PyErr_Occurred()) SWIG_fail;
20287 }
20288 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20289 return resultobj;
20290 fail:
20291 return NULL;
20292 }
20293
20294
20295 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20296 PyObject *resultobj = 0;
20297 wxDC *arg1 = (wxDC *) 0 ;
20298 int result;
20299 void *argp1 = 0 ;
20300 int res1 = 0 ;
20301 PyObject *swig_obj[1] ;
20302
20303 if (!args) SWIG_fail;
20304 swig_obj[0] = args;
20305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20306 if (!SWIG_IsOK(res1)) {
20307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20308 }
20309 arg1 = reinterpret_cast< wxDC * >(argp1);
20310 {
20311 PyThreadState* __tstate = wxPyBeginAllowThreads();
20312 result = (int)((wxDC const *)arg1)->GetCharHeight();
20313 wxPyEndAllowThreads(__tstate);
20314 if (PyErr_Occurred()) SWIG_fail;
20315 }
20316 resultobj = SWIG_From_int(static_cast< int >(result));
20317 return resultobj;
20318 fail:
20319 return NULL;
20320 }
20321
20322
20323 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20324 PyObject *resultobj = 0;
20325 wxDC *arg1 = (wxDC *) 0 ;
20326 int result;
20327 void *argp1 = 0 ;
20328 int res1 = 0 ;
20329 PyObject *swig_obj[1] ;
20330
20331 if (!args) SWIG_fail;
20332 swig_obj[0] = args;
20333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20334 if (!SWIG_IsOK(res1)) {
20335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20336 }
20337 arg1 = reinterpret_cast< wxDC * >(argp1);
20338 {
20339 PyThreadState* __tstate = wxPyBeginAllowThreads();
20340 result = (int)((wxDC const *)arg1)->GetCharWidth();
20341 wxPyEndAllowThreads(__tstate);
20342 if (PyErr_Occurred()) SWIG_fail;
20343 }
20344 resultobj = SWIG_From_int(static_cast< int >(result));
20345 return resultobj;
20346 fail:
20347 return NULL;
20348 }
20349
20350
20351 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20352 PyObject *resultobj = 0;
20353 wxDC *arg1 = (wxDC *) 0 ;
20354 wxString *arg2 = 0 ;
20355 int *arg3 = (int *) 0 ;
20356 int *arg4 = (int *) 0 ;
20357 void *argp1 = 0 ;
20358 int res1 = 0 ;
20359 bool temp2 = false ;
20360 int temp3 ;
20361 int res3 = SWIG_TMPOBJ ;
20362 int temp4 ;
20363 int res4 = SWIG_TMPOBJ ;
20364 PyObject * obj0 = 0 ;
20365 PyObject * obj1 = 0 ;
20366 char * kwnames[] = {
20367 (char *) "self",(char *) "string", NULL
20368 };
20369
20370 arg3 = &temp3;
20371 arg4 = &temp4;
20372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20374 if (!SWIG_IsOK(res1)) {
20375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20376 }
20377 arg1 = reinterpret_cast< wxDC * >(argp1);
20378 {
20379 arg2 = wxString_in_helper(obj1);
20380 if (arg2 == NULL) SWIG_fail;
20381 temp2 = true;
20382 }
20383 {
20384 PyThreadState* __tstate = wxPyBeginAllowThreads();
20385 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20386 wxPyEndAllowThreads(__tstate);
20387 if (PyErr_Occurred()) SWIG_fail;
20388 }
20389 resultobj = SWIG_Py_Void();
20390 if (SWIG_IsTmpObj(res3)) {
20391 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20392 } else {
20393 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20394 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20395 }
20396 if (SWIG_IsTmpObj(res4)) {
20397 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20398 } else {
20399 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20400 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20401 }
20402 {
20403 if (temp2)
20404 delete arg2;
20405 }
20406 return resultobj;
20407 fail:
20408 {
20409 if (temp2)
20410 delete arg2;
20411 }
20412 return NULL;
20413 }
20414
20415
20416 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20417 PyObject *resultobj = 0;
20418 wxDC *arg1 = (wxDC *) 0 ;
20419 wxString *arg2 = 0 ;
20420 int *arg3 = (int *) 0 ;
20421 int *arg4 = (int *) 0 ;
20422 int *arg5 = (int *) 0 ;
20423 int *arg6 = (int *) 0 ;
20424 wxFont *arg7 = (wxFont *) NULL ;
20425 void *argp1 = 0 ;
20426 int res1 = 0 ;
20427 bool temp2 = false ;
20428 int temp3 ;
20429 int res3 = SWIG_TMPOBJ ;
20430 int temp4 ;
20431 int res4 = SWIG_TMPOBJ ;
20432 int temp5 ;
20433 int res5 = SWIG_TMPOBJ ;
20434 int temp6 ;
20435 int res6 = SWIG_TMPOBJ ;
20436 void *argp7 = 0 ;
20437 int res7 = 0 ;
20438 PyObject * obj0 = 0 ;
20439 PyObject * obj1 = 0 ;
20440 PyObject * obj2 = 0 ;
20441 char * kwnames[] = {
20442 (char *) "self",(char *) "string",(char *) "font", NULL
20443 };
20444
20445 arg3 = &temp3;
20446 arg4 = &temp4;
20447 arg5 = &temp5;
20448 arg6 = &temp6;
20449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20451 if (!SWIG_IsOK(res1)) {
20452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20453 }
20454 arg1 = reinterpret_cast< wxDC * >(argp1);
20455 {
20456 arg2 = wxString_in_helper(obj1);
20457 if (arg2 == NULL) SWIG_fail;
20458 temp2 = true;
20459 }
20460 if (obj2) {
20461 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20462 if (!SWIG_IsOK(res7)) {
20463 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
20464 }
20465 arg7 = reinterpret_cast< wxFont * >(argp7);
20466 }
20467 {
20468 PyThreadState* __tstate = wxPyBeginAllowThreads();
20469 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20470 wxPyEndAllowThreads(__tstate);
20471 if (PyErr_Occurred()) SWIG_fail;
20472 }
20473 resultobj = SWIG_Py_Void();
20474 if (SWIG_IsTmpObj(res3)) {
20475 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20476 } else {
20477 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20478 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20479 }
20480 if (SWIG_IsTmpObj(res4)) {
20481 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20482 } else {
20483 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20484 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20485 }
20486 if (SWIG_IsTmpObj(res5)) {
20487 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20488 } else {
20489 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20490 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20491 }
20492 if (SWIG_IsTmpObj(res6)) {
20493 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20494 } else {
20495 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20496 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20497 }
20498 {
20499 if (temp2)
20500 delete arg2;
20501 }
20502 return resultobj;
20503 fail:
20504 {
20505 if (temp2)
20506 delete arg2;
20507 }
20508 return NULL;
20509 }
20510
20511
20512 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20513 PyObject *resultobj = 0;
20514 wxDC *arg1 = (wxDC *) 0 ;
20515 wxString *arg2 = 0 ;
20516 int *arg3 = (int *) 0 ;
20517 int *arg4 = (int *) 0 ;
20518 int *arg5 = (int *) 0 ;
20519 wxFont *arg6 = (wxFont *) NULL ;
20520 void *argp1 = 0 ;
20521 int res1 = 0 ;
20522 bool temp2 = false ;
20523 int temp3 ;
20524 int res3 = SWIG_TMPOBJ ;
20525 int temp4 ;
20526 int res4 = SWIG_TMPOBJ ;
20527 int temp5 ;
20528 int res5 = SWIG_TMPOBJ ;
20529 void *argp6 = 0 ;
20530 int res6 = 0 ;
20531 PyObject * obj0 = 0 ;
20532 PyObject * obj1 = 0 ;
20533 PyObject * obj2 = 0 ;
20534 char * kwnames[] = {
20535 (char *) "self",(char *) "text",(char *) "font", NULL
20536 };
20537
20538 arg3 = &temp3;
20539 arg4 = &temp4;
20540 arg5 = &temp5;
20541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20543 if (!SWIG_IsOK(res1)) {
20544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20545 }
20546 arg1 = reinterpret_cast< wxDC * >(argp1);
20547 {
20548 arg2 = wxString_in_helper(obj1);
20549 if (arg2 == NULL) SWIG_fail;
20550 temp2 = true;
20551 }
20552 if (obj2) {
20553 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20554 if (!SWIG_IsOK(res6)) {
20555 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
20556 }
20557 arg6 = reinterpret_cast< wxFont * >(argp6);
20558 }
20559 {
20560 PyThreadState* __tstate = wxPyBeginAllowThreads();
20561 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20562 wxPyEndAllowThreads(__tstate);
20563 if (PyErr_Occurred()) SWIG_fail;
20564 }
20565 resultobj = SWIG_Py_Void();
20566 if (SWIG_IsTmpObj(res3)) {
20567 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20568 } else {
20569 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20570 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20571 }
20572 if (SWIG_IsTmpObj(res4)) {
20573 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20574 } else {
20575 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20576 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20577 }
20578 if (SWIG_IsTmpObj(res5)) {
20579 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20580 } else {
20581 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20582 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20583 }
20584 {
20585 if (temp2)
20586 delete arg2;
20587 }
20588 return resultobj;
20589 fail:
20590 {
20591 if (temp2)
20592 delete arg2;
20593 }
20594 return NULL;
20595 }
20596
20597
20598 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20599 PyObject *resultobj = 0;
20600 wxDC *arg1 = (wxDC *) 0 ;
20601 wxString *arg2 = 0 ;
20602 wxArrayInt result;
20603 void *argp1 = 0 ;
20604 int res1 = 0 ;
20605 bool temp2 = false ;
20606 PyObject * obj0 = 0 ;
20607 PyObject * obj1 = 0 ;
20608 char * kwnames[] = {
20609 (char *) "self",(char *) "text", NULL
20610 };
20611
20612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20614 if (!SWIG_IsOK(res1)) {
20615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20616 }
20617 arg1 = reinterpret_cast< wxDC * >(argp1);
20618 {
20619 arg2 = wxString_in_helper(obj1);
20620 if (arg2 == NULL) SWIG_fail;
20621 temp2 = true;
20622 }
20623 {
20624 PyThreadState* __tstate = wxPyBeginAllowThreads();
20625 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20626 wxPyEndAllowThreads(__tstate);
20627 if (PyErr_Occurred()) SWIG_fail;
20628 }
20629 {
20630 resultobj = PyList_New(0);
20631 size_t idx;
20632 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
20633 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
20634 PyList_Append(resultobj, val);
20635 Py_DECREF(val);
20636 }
20637 }
20638 {
20639 if (temp2)
20640 delete arg2;
20641 }
20642 return resultobj;
20643 fail:
20644 {
20645 if (temp2)
20646 delete arg2;
20647 }
20648 return NULL;
20649 }
20650
20651
20652 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20653 PyObject *resultobj = 0;
20654 wxDC *arg1 = (wxDC *) 0 ;
20655 wxSize result;
20656 void *argp1 = 0 ;
20657 int res1 = 0 ;
20658 PyObject *swig_obj[1] ;
20659
20660 if (!args) SWIG_fail;
20661 swig_obj[0] = args;
20662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20663 if (!SWIG_IsOK(res1)) {
20664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20665 }
20666 arg1 = reinterpret_cast< wxDC * >(argp1);
20667 {
20668 PyThreadState* __tstate = wxPyBeginAllowThreads();
20669 result = (arg1)->GetSize();
20670 wxPyEndAllowThreads(__tstate);
20671 if (PyErr_Occurred()) SWIG_fail;
20672 }
20673 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20674 return resultobj;
20675 fail:
20676 return NULL;
20677 }
20678
20679
20680 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20681 PyObject *resultobj = 0;
20682 wxDC *arg1 = (wxDC *) 0 ;
20683 int *arg2 = (int *) 0 ;
20684 int *arg3 = (int *) 0 ;
20685 void *argp1 = 0 ;
20686 int res1 = 0 ;
20687 int temp2 ;
20688 int res2 = SWIG_TMPOBJ ;
20689 int temp3 ;
20690 int res3 = SWIG_TMPOBJ ;
20691 PyObject *swig_obj[1] ;
20692
20693 arg2 = &temp2;
20694 arg3 = &temp3;
20695 if (!args) SWIG_fail;
20696 swig_obj[0] = args;
20697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20698 if (!SWIG_IsOK(res1)) {
20699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20700 }
20701 arg1 = reinterpret_cast< wxDC * >(argp1);
20702 {
20703 PyThreadState* __tstate = wxPyBeginAllowThreads();
20704 (arg1)->GetSize(arg2,arg3);
20705 wxPyEndAllowThreads(__tstate);
20706 if (PyErr_Occurred()) SWIG_fail;
20707 }
20708 resultobj = SWIG_Py_Void();
20709 if (SWIG_IsTmpObj(res2)) {
20710 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20711 } else {
20712 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20713 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20714 }
20715 if (SWIG_IsTmpObj(res3)) {
20716 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20717 } else {
20718 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20719 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20720 }
20721 return resultobj;
20722 fail:
20723 return NULL;
20724 }
20725
20726
20727 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20728 PyObject *resultobj = 0;
20729 wxDC *arg1 = (wxDC *) 0 ;
20730 wxSize result;
20731 void *argp1 = 0 ;
20732 int res1 = 0 ;
20733 PyObject *swig_obj[1] ;
20734
20735 if (!args) SWIG_fail;
20736 swig_obj[0] = args;
20737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20738 if (!SWIG_IsOK(res1)) {
20739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20740 }
20741 arg1 = reinterpret_cast< wxDC * >(argp1);
20742 {
20743 PyThreadState* __tstate = wxPyBeginAllowThreads();
20744 result = ((wxDC const *)arg1)->GetSizeMM();
20745 wxPyEndAllowThreads(__tstate);
20746 if (PyErr_Occurred()) SWIG_fail;
20747 }
20748 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20749 return resultobj;
20750 fail:
20751 return NULL;
20752 }
20753
20754
20755 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20756 PyObject *resultobj = 0;
20757 wxDC *arg1 = (wxDC *) 0 ;
20758 int *arg2 = (int *) 0 ;
20759 int *arg3 = (int *) 0 ;
20760 void *argp1 = 0 ;
20761 int res1 = 0 ;
20762 int temp2 ;
20763 int res2 = SWIG_TMPOBJ ;
20764 int temp3 ;
20765 int res3 = SWIG_TMPOBJ ;
20766 PyObject *swig_obj[1] ;
20767
20768 arg2 = &temp2;
20769 arg3 = &temp3;
20770 if (!args) SWIG_fail;
20771 swig_obj[0] = args;
20772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20773 if (!SWIG_IsOK(res1)) {
20774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20775 }
20776 arg1 = reinterpret_cast< wxDC * >(argp1);
20777 {
20778 PyThreadState* __tstate = wxPyBeginAllowThreads();
20779 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
20780 wxPyEndAllowThreads(__tstate);
20781 if (PyErr_Occurred()) SWIG_fail;
20782 }
20783 resultobj = SWIG_Py_Void();
20784 if (SWIG_IsTmpObj(res2)) {
20785 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20786 } else {
20787 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20788 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20789 }
20790 if (SWIG_IsTmpObj(res3)) {
20791 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20792 } else {
20793 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20794 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20795 }
20796 return resultobj;
20797 fail:
20798 return NULL;
20799 }
20800
20801
20802 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20803 PyObject *resultobj = 0;
20804 wxDC *arg1 = (wxDC *) 0 ;
20805 int arg2 ;
20806 int result;
20807 void *argp1 = 0 ;
20808 int res1 = 0 ;
20809 int val2 ;
20810 int ecode2 = 0 ;
20811 PyObject * obj0 = 0 ;
20812 PyObject * obj1 = 0 ;
20813 char * kwnames[] = {
20814 (char *) "self",(char *) "x", NULL
20815 };
20816
20817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
20818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20819 if (!SWIG_IsOK(res1)) {
20820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
20821 }
20822 arg1 = reinterpret_cast< wxDC * >(argp1);
20823 ecode2 = SWIG_AsVal_int(obj1, &val2);
20824 if (!SWIG_IsOK(ecode2)) {
20825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
20826 }
20827 arg2 = static_cast< int >(val2);
20828 {
20829 PyThreadState* __tstate = wxPyBeginAllowThreads();
20830 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
20831 wxPyEndAllowThreads(__tstate);
20832 if (PyErr_Occurred()) SWIG_fail;
20833 }
20834 resultobj = SWIG_From_int(static_cast< int >(result));
20835 return resultobj;
20836 fail:
20837 return NULL;
20838 }
20839
20840
20841 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20842 PyObject *resultobj = 0;
20843 wxDC *arg1 = (wxDC *) 0 ;
20844 int arg2 ;
20845 int result;
20846 void *argp1 = 0 ;
20847 int res1 = 0 ;
20848 int val2 ;
20849 int ecode2 = 0 ;
20850 PyObject * obj0 = 0 ;
20851 PyObject * obj1 = 0 ;
20852 char * kwnames[] = {
20853 (char *) "self",(char *) "y", NULL
20854 };
20855
20856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
20857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20858 if (!SWIG_IsOK(res1)) {
20859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
20860 }
20861 arg1 = reinterpret_cast< wxDC * >(argp1);
20862 ecode2 = SWIG_AsVal_int(obj1, &val2);
20863 if (!SWIG_IsOK(ecode2)) {
20864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
20865 }
20866 arg2 = static_cast< int >(val2);
20867 {
20868 PyThreadState* __tstate = wxPyBeginAllowThreads();
20869 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
20870 wxPyEndAllowThreads(__tstate);
20871 if (PyErr_Occurred()) SWIG_fail;
20872 }
20873 resultobj = SWIG_From_int(static_cast< int >(result));
20874 return resultobj;
20875 fail:
20876 return NULL;
20877 }
20878
20879
20880 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20881 PyObject *resultobj = 0;
20882 wxDC *arg1 = (wxDC *) 0 ;
20883 int arg2 ;
20884 int result;
20885 void *argp1 = 0 ;
20886 int res1 = 0 ;
20887 int val2 ;
20888 int ecode2 = 0 ;
20889 PyObject * obj0 = 0 ;
20890 PyObject * obj1 = 0 ;
20891 char * kwnames[] = {
20892 (char *) "self",(char *) "x", NULL
20893 };
20894
20895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
20896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20897 if (!SWIG_IsOK(res1)) {
20898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
20899 }
20900 arg1 = reinterpret_cast< wxDC * >(argp1);
20901 ecode2 = SWIG_AsVal_int(obj1, &val2);
20902 if (!SWIG_IsOK(ecode2)) {
20903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
20904 }
20905 arg2 = static_cast< int >(val2);
20906 {
20907 PyThreadState* __tstate = wxPyBeginAllowThreads();
20908 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
20909 wxPyEndAllowThreads(__tstate);
20910 if (PyErr_Occurred()) SWIG_fail;
20911 }
20912 resultobj = SWIG_From_int(static_cast< int >(result));
20913 return resultobj;
20914 fail:
20915 return NULL;
20916 }
20917
20918
20919 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20920 PyObject *resultobj = 0;
20921 wxDC *arg1 = (wxDC *) 0 ;
20922 int arg2 ;
20923 int result;
20924 void *argp1 = 0 ;
20925 int res1 = 0 ;
20926 int val2 ;
20927 int ecode2 = 0 ;
20928 PyObject * obj0 = 0 ;
20929 PyObject * obj1 = 0 ;
20930 char * kwnames[] = {
20931 (char *) "self",(char *) "y", NULL
20932 };
20933
20934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
20935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20936 if (!SWIG_IsOK(res1)) {
20937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
20938 }
20939 arg1 = reinterpret_cast< wxDC * >(argp1);
20940 ecode2 = SWIG_AsVal_int(obj1, &val2);
20941 if (!SWIG_IsOK(ecode2)) {
20942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
20943 }
20944 arg2 = static_cast< int >(val2);
20945 {
20946 PyThreadState* __tstate = wxPyBeginAllowThreads();
20947 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
20948 wxPyEndAllowThreads(__tstate);
20949 if (PyErr_Occurred()) SWIG_fail;
20950 }
20951 resultobj = SWIG_From_int(static_cast< int >(result));
20952 return resultobj;
20953 fail:
20954 return NULL;
20955 }
20956
20957
20958 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20959 PyObject *resultobj = 0;
20960 wxDC *arg1 = (wxDC *) 0 ;
20961 int arg2 ;
20962 int result;
20963 void *argp1 = 0 ;
20964 int res1 = 0 ;
20965 int val2 ;
20966 int ecode2 = 0 ;
20967 PyObject * obj0 = 0 ;
20968 PyObject * obj1 = 0 ;
20969 char * kwnames[] = {
20970 (char *) "self",(char *) "x", NULL
20971 };
20972
20973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
20974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20975 if (!SWIG_IsOK(res1)) {
20976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
20977 }
20978 arg1 = reinterpret_cast< wxDC * >(argp1);
20979 ecode2 = SWIG_AsVal_int(obj1, &val2);
20980 if (!SWIG_IsOK(ecode2)) {
20981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
20982 }
20983 arg2 = static_cast< int >(val2);
20984 {
20985 PyThreadState* __tstate = wxPyBeginAllowThreads();
20986 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
20987 wxPyEndAllowThreads(__tstate);
20988 if (PyErr_Occurred()) SWIG_fail;
20989 }
20990 resultobj = SWIG_From_int(static_cast< int >(result));
20991 return resultobj;
20992 fail:
20993 return NULL;
20994 }
20995
20996
20997 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20998 PyObject *resultobj = 0;
20999 wxDC *arg1 = (wxDC *) 0 ;
21000 int arg2 ;
21001 int result;
21002 void *argp1 = 0 ;
21003 int res1 = 0 ;
21004 int val2 ;
21005 int ecode2 = 0 ;
21006 PyObject * obj0 = 0 ;
21007 PyObject * obj1 = 0 ;
21008 char * kwnames[] = {
21009 (char *) "self",(char *) "y", NULL
21010 };
21011
21012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21014 if (!SWIG_IsOK(res1)) {
21015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21016 }
21017 arg1 = reinterpret_cast< wxDC * >(argp1);
21018 ecode2 = SWIG_AsVal_int(obj1, &val2);
21019 if (!SWIG_IsOK(ecode2)) {
21020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21021 }
21022 arg2 = static_cast< int >(val2);
21023 {
21024 PyThreadState* __tstate = wxPyBeginAllowThreads();
21025 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21026 wxPyEndAllowThreads(__tstate);
21027 if (PyErr_Occurred()) SWIG_fail;
21028 }
21029 resultobj = SWIG_From_int(static_cast< int >(result));
21030 return resultobj;
21031 fail:
21032 return NULL;
21033 }
21034
21035
21036 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21037 PyObject *resultobj = 0;
21038 wxDC *arg1 = (wxDC *) 0 ;
21039 int arg2 ;
21040 int result;
21041 void *argp1 = 0 ;
21042 int res1 = 0 ;
21043 int val2 ;
21044 int ecode2 = 0 ;
21045 PyObject * obj0 = 0 ;
21046 PyObject * obj1 = 0 ;
21047 char * kwnames[] = {
21048 (char *) "self",(char *) "x", NULL
21049 };
21050
21051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21053 if (!SWIG_IsOK(res1)) {
21054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21055 }
21056 arg1 = reinterpret_cast< wxDC * >(argp1);
21057 ecode2 = SWIG_AsVal_int(obj1, &val2);
21058 if (!SWIG_IsOK(ecode2)) {
21059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21060 }
21061 arg2 = static_cast< int >(val2);
21062 {
21063 PyThreadState* __tstate = wxPyBeginAllowThreads();
21064 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21065 wxPyEndAllowThreads(__tstate);
21066 if (PyErr_Occurred()) SWIG_fail;
21067 }
21068 resultobj = SWIG_From_int(static_cast< int >(result));
21069 return resultobj;
21070 fail:
21071 return NULL;
21072 }
21073
21074
21075 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21076 PyObject *resultobj = 0;
21077 wxDC *arg1 = (wxDC *) 0 ;
21078 int arg2 ;
21079 int result;
21080 void *argp1 = 0 ;
21081 int res1 = 0 ;
21082 int val2 ;
21083 int ecode2 = 0 ;
21084 PyObject * obj0 = 0 ;
21085 PyObject * obj1 = 0 ;
21086 char * kwnames[] = {
21087 (char *) "self",(char *) "y", NULL
21088 };
21089
21090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21092 if (!SWIG_IsOK(res1)) {
21093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21094 }
21095 arg1 = reinterpret_cast< wxDC * >(argp1);
21096 ecode2 = SWIG_AsVal_int(obj1, &val2);
21097 if (!SWIG_IsOK(ecode2)) {
21098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21099 }
21100 arg2 = static_cast< int >(val2);
21101 {
21102 PyThreadState* __tstate = wxPyBeginAllowThreads();
21103 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21104 wxPyEndAllowThreads(__tstate);
21105 if (PyErr_Occurred()) SWIG_fail;
21106 }
21107 resultobj = SWIG_From_int(static_cast< int >(result));
21108 return resultobj;
21109 fail:
21110 return NULL;
21111 }
21112
21113
21114 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21115 PyObject *resultobj = 0;
21116 wxDC *arg1 = (wxDC *) 0 ;
21117 bool result;
21118 void *argp1 = 0 ;
21119 int res1 = 0 ;
21120 PyObject *swig_obj[1] ;
21121
21122 if (!args) SWIG_fail;
21123 swig_obj[0] = args;
21124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21125 if (!SWIG_IsOK(res1)) {
21126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21127 }
21128 arg1 = reinterpret_cast< wxDC * >(argp1);
21129 {
21130 PyThreadState* __tstate = wxPyBeginAllowThreads();
21131 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21132 wxPyEndAllowThreads(__tstate);
21133 if (PyErr_Occurred()) SWIG_fail;
21134 }
21135 {
21136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21137 }
21138 return resultobj;
21139 fail:
21140 return NULL;
21141 }
21142
21143
21144 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21145 PyObject *resultobj = 0;
21146 wxDC *arg1 = (wxDC *) 0 ;
21147 bool result;
21148 void *argp1 = 0 ;
21149 int res1 = 0 ;
21150 PyObject *swig_obj[1] ;
21151
21152 if (!args) SWIG_fail;
21153 swig_obj[0] = args;
21154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21155 if (!SWIG_IsOK(res1)) {
21156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21157 }
21158 arg1 = reinterpret_cast< wxDC * >(argp1);
21159 {
21160 PyThreadState* __tstate = wxPyBeginAllowThreads();
21161 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21162 wxPyEndAllowThreads(__tstate);
21163 if (PyErr_Occurred()) SWIG_fail;
21164 }
21165 {
21166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21167 }
21168 return resultobj;
21169 fail:
21170 return NULL;
21171 }
21172
21173
21174 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21175 PyObject *resultobj = 0;
21176 wxDC *arg1 = (wxDC *) 0 ;
21177 int result;
21178 void *argp1 = 0 ;
21179 int res1 = 0 ;
21180 PyObject *swig_obj[1] ;
21181
21182 if (!args) SWIG_fail;
21183 swig_obj[0] = args;
21184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21185 if (!SWIG_IsOK(res1)) {
21186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21187 }
21188 arg1 = reinterpret_cast< wxDC * >(argp1);
21189 {
21190 PyThreadState* __tstate = wxPyBeginAllowThreads();
21191 result = (int)((wxDC const *)arg1)->GetDepth();
21192 wxPyEndAllowThreads(__tstate);
21193 if (PyErr_Occurred()) SWIG_fail;
21194 }
21195 resultobj = SWIG_From_int(static_cast< int >(result));
21196 return resultobj;
21197 fail:
21198 return NULL;
21199 }
21200
21201
21202 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21203 PyObject *resultobj = 0;
21204 wxDC *arg1 = (wxDC *) 0 ;
21205 wxSize result;
21206 void *argp1 = 0 ;
21207 int res1 = 0 ;
21208 PyObject *swig_obj[1] ;
21209
21210 if (!args) SWIG_fail;
21211 swig_obj[0] = args;
21212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21213 if (!SWIG_IsOK(res1)) {
21214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21215 }
21216 arg1 = reinterpret_cast< wxDC * >(argp1);
21217 {
21218 PyThreadState* __tstate = wxPyBeginAllowThreads();
21219 result = ((wxDC const *)arg1)->GetPPI();
21220 wxPyEndAllowThreads(__tstate);
21221 if (PyErr_Occurred()) SWIG_fail;
21222 }
21223 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21224 return resultobj;
21225 fail:
21226 return NULL;
21227 }
21228
21229
21230 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21231 PyObject *resultobj = 0;
21232 wxDC *arg1 = (wxDC *) 0 ;
21233 bool result;
21234 void *argp1 = 0 ;
21235 int res1 = 0 ;
21236 PyObject *swig_obj[1] ;
21237
21238 if (!args) SWIG_fail;
21239 swig_obj[0] = args;
21240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21241 if (!SWIG_IsOK(res1)) {
21242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
21243 }
21244 arg1 = reinterpret_cast< wxDC * >(argp1);
21245 {
21246 PyThreadState* __tstate = wxPyBeginAllowThreads();
21247 result = (bool)((wxDC const *)arg1)->Ok();
21248 wxPyEndAllowThreads(__tstate);
21249 if (PyErr_Occurred()) SWIG_fail;
21250 }
21251 {
21252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21253 }
21254 return resultobj;
21255 fail:
21256 return NULL;
21257 }
21258
21259
21260 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21261 PyObject *resultobj = 0;
21262 wxDC *arg1 = (wxDC *) 0 ;
21263 int result;
21264 void *argp1 = 0 ;
21265 int res1 = 0 ;
21266 PyObject *swig_obj[1] ;
21267
21268 if (!args) SWIG_fail;
21269 swig_obj[0] = args;
21270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21271 if (!SWIG_IsOK(res1)) {
21272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21273 }
21274 arg1 = reinterpret_cast< wxDC * >(argp1);
21275 {
21276 PyThreadState* __tstate = wxPyBeginAllowThreads();
21277 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21278 wxPyEndAllowThreads(__tstate);
21279 if (PyErr_Occurred()) SWIG_fail;
21280 }
21281 resultobj = SWIG_From_int(static_cast< int >(result));
21282 return resultobj;
21283 fail:
21284 return NULL;
21285 }
21286
21287
21288 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21289 PyObject *resultobj = 0;
21290 wxDC *arg1 = (wxDC *) 0 ;
21291 wxBrush *result = 0 ;
21292 void *argp1 = 0 ;
21293 int res1 = 0 ;
21294 PyObject *swig_obj[1] ;
21295
21296 if (!args) SWIG_fail;
21297 swig_obj[0] = args;
21298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21299 if (!SWIG_IsOK(res1)) {
21300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21301 }
21302 arg1 = reinterpret_cast< wxDC * >(argp1);
21303 {
21304 PyThreadState* __tstate = wxPyBeginAllowThreads();
21305 {
21306 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21307 result = (wxBrush *) &_result_ref;
21308 }
21309 wxPyEndAllowThreads(__tstate);
21310 if (PyErr_Occurred()) SWIG_fail;
21311 }
21312 {
21313 wxBrush* resultptr = new wxBrush(*result);
21314 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21315 }
21316 return resultobj;
21317 fail:
21318 return NULL;
21319 }
21320
21321
21322 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21323 PyObject *resultobj = 0;
21324 wxDC *arg1 = (wxDC *) 0 ;
21325 wxBrush *result = 0 ;
21326 void *argp1 = 0 ;
21327 int res1 = 0 ;
21328 PyObject *swig_obj[1] ;
21329
21330 if (!args) SWIG_fail;
21331 swig_obj[0] = args;
21332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21333 if (!SWIG_IsOK(res1)) {
21334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21335 }
21336 arg1 = reinterpret_cast< wxDC * >(argp1);
21337 {
21338 PyThreadState* __tstate = wxPyBeginAllowThreads();
21339 {
21340 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21341 result = (wxBrush *) &_result_ref;
21342 }
21343 wxPyEndAllowThreads(__tstate);
21344 if (PyErr_Occurred()) SWIG_fail;
21345 }
21346 {
21347 wxBrush* resultptr = new wxBrush(*result);
21348 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21349 }
21350 return resultobj;
21351 fail:
21352 return NULL;
21353 }
21354
21355
21356 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21357 PyObject *resultobj = 0;
21358 wxDC *arg1 = (wxDC *) 0 ;
21359 wxFont *result = 0 ;
21360 void *argp1 = 0 ;
21361 int res1 = 0 ;
21362 PyObject *swig_obj[1] ;
21363
21364 if (!args) SWIG_fail;
21365 swig_obj[0] = args;
21366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21367 if (!SWIG_IsOK(res1)) {
21368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21369 }
21370 arg1 = reinterpret_cast< wxDC * >(argp1);
21371 {
21372 PyThreadState* __tstate = wxPyBeginAllowThreads();
21373 {
21374 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21375 result = (wxFont *) &_result_ref;
21376 }
21377 wxPyEndAllowThreads(__tstate);
21378 if (PyErr_Occurred()) SWIG_fail;
21379 }
21380 {
21381 wxFont* resultptr = new wxFont(*result);
21382 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21383 }
21384 return resultobj;
21385 fail:
21386 return NULL;
21387 }
21388
21389
21390 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21391 PyObject *resultobj = 0;
21392 wxDC *arg1 = (wxDC *) 0 ;
21393 wxPen *result = 0 ;
21394 void *argp1 = 0 ;
21395 int res1 = 0 ;
21396 PyObject *swig_obj[1] ;
21397
21398 if (!args) SWIG_fail;
21399 swig_obj[0] = args;
21400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21401 if (!SWIG_IsOK(res1)) {
21402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21403 }
21404 arg1 = reinterpret_cast< wxDC * >(argp1);
21405 {
21406 PyThreadState* __tstate = wxPyBeginAllowThreads();
21407 {
21408 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21409 result = (wxPen *) &_result_ref;
21410 }
21411 wxPyEndAllowThreads(__tstate);
21412 if (PyErr_Occurred()) SWIG_fail;
21413 }
21414 {
21415 wxPen* resultptr = new wxPen(*result);
21416 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21417 }
21418 return resultobj;
21419 fail:
21420 return NULL;
21421 }
21422
21423
21424 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21425 PyObject *resultobj = 0;
21426 wxDC *arg1 = (wxDC *) 0 ;
21427 wxColour *result = 0 ;
21428 void *argp1 = 0 ;
21429 int res1 = 0 ;
21430 PyObject *swig_obj[1] ;
21431
21432 if (!args) SWIG_fail;
21433 swig_obj[0] = args;
21434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21435 if (!SWIG_IsOK(res1)) {
21436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21437 }
21438 arg1 = reinterpret_cast< wxDC * >(argp1);
21439 {
21440 PyThreadState* __tstate = wxPyBeginAllowThreads();
21441 {
21442 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21443 result = (wxColour *) &_result_ref;
21444 }
21445 wxPyEndAllowThreads(__tstate);
21446 if (PyErr_Occurred()) SWIG_fail;
21447 }
21448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21449 return resultobj;
21450 fail:
21451 return NULL;
21452 }
21453
21454
21455 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21456 PyObject *resultobj = 0;
21457 wxDC *arg1 = (wxDC *) 0 ;
21458 wxColour *result = 0 ;
21459 void *argp1 = 0 ;
21460 int res1 = 0 ;
21461 PyObject *swig_obj[1] ;
21462
21463 if (!args) SWIG_fail;
21464 swig_obj[0] = args;
21465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21466 if (!SWIG_IsOK(res1)) {
21467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21468 }
21469 arg1 = reinterpret_cast< wxDC * >(argp1);
21470 {
21471 PyThreadState* __tstate = wxPyBeginAllowThreads();
21472 {
21473 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21474 result = (wxColour *) &_result_ref;
21475 }
21476 wxPyEndAllowThreads(__tstate);
21477 if (PyErr_Occurred()) SWIG_fail;
21478 }
21479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21480 return resultobj;
21481 fail:
21482 return NULL;
21483 }
21484
21485
21486 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21487 PyObject *resultobj = 0;
21488 wxDC *arg1 = (wxDC *) 0 ;
21489 wxColour *arg2 = 0 ;
21490 void *argp1 = 0 ;
21491 int res1 = 0 ;
21492 wxColour temp2 ;
21493 PyObject * obj0 = 0 ;
21494 PyObject * obj1 = 0 ;
21495 char * kwnames[] = {
21496 (char *) "self",(char *) "colour", NULL
21497 };
21498
21499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21501 if (!SWIG_IsOK(res1)) {
21502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21503 }
21504 arg1 = reinterpret_cast< wxDC * >(argp1);
21505 {
21506 arg2 = &temp2;
21507 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21508 }
21509 {
21510 PyThreadState* __tstate = wxPyBeginAllowThreads();
21511 (arg1)->SetTextForeground((wxColour const &)*arg2);
21512 wxPyEndAllowThreads(__tstate);
21513 if (PyErr_Occurred()) SWIG_fail;
21514 }
21515 resultobj = SWIG_Py_Void();
21516 return resultobj;
21517 fail:
21518 return NULL;
21519 }
21520
21521
21522 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21523 PyObject *resultobj = 0;
21524 wxDC *arg1 = (wxDC *) 0 ;
21525 wxColour *arg2 = 0 ;
21526 void *argp1 = 0 ;
21527 int res1 = 0 ;
21528 wxColour temp2 ;
21529 PyObject * obj0 = 0 ;
21530 PyObject * obj1 = 0 ;
21531 char * kwnames[] = {
21532 (char *) "self",(char *) "colour", NULL
21533 };
21534
21535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21537 if (!SWIG_IsOK(res1)) {
21538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21539 }
21540 arg1 = reinterpret_cast< wxDC * >(argp1);
21541 {
21542 arg2 = &temp2;
21543 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21544 }
21545 {
21546 PyThreadState* __tstate = wxPyBeginAllowThreads();
21547 (arg1)->SetTextBackground((wxColour const &)*arg2);
21548 wxPyEndAllowThreads(__tstate);
21549 if (PyErr_Occurred()) SWIG_fail;
21550 }
21551 resultobj = SWIG_Py_Void();
21552 return resultobj;
21553 fail:
21554 return NULL;
21555 }
21556
21557
21558 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21559 PyObject *resultobj = 0;
21560 wxDC *arg1 = (wxDC *) 0 ;
21561 int result;
21562 void *argp1 = 0 ;
21563 int res1 = 0 ;
21564 PyObject *swig_obj[1] ;
21565
21566 if (!args) SWIG_fail;
21567 swig_obj[0] = args;
21568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21569 if (!SWIG_IsOK(res1)) {
21570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21571 }
21572 arg1 = reinterpret_cast< wxDC * >(argp1);
21573 {
21574 PyThreadState* __tstate = wxPyBeginAllowThreads();
21575 result = (int)((wxDC const *)arg1)->GetMapMode();
21576 wxPyEndAllowThreads(__tstate);
21577 if (PyErr_Occurred()) SWIG_fail;
21578 }
21579 resultobj = SWIG_From_int(static_cast< int >(result));
21580 return resultobj;
21581 fail:
21582 return NULL;
21583 }
21584
21585
21586 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21587 PyObject *resultobj = 0;
21588 wxDC *arg1 = (wxDC *) 0 ;
21589 int arg2 ;
21590 void *argp1 = 0 ;
21591 int res1 = 0 ;
21592 int val2 ;
21593 int ecode2 = 0 ;
21594 PyObject * obj0 = 0 ;
21595 PyObject * obj1 = 0 ;
21596 char * kwnames[] = {
21597 (char *) "self",(char *) "mode", NULL
21598 };
21599
21600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21602 if (!SWIG_IsOK(res1)) {
21603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21604 }
21605 arg1 = reinterpret_cast< wxDC * >(argp1);
21606 ecode2 = SWIG_AsVal_int(obj1, &val2);
21607 if (!SWIG_IsOK(ecode2)) {
21608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21609 }
21610 arg2 = static_cast< int >(val2);
21611 {
21612 PyThreadState* __tstate = wxPyBeginAllowThreads();
21613 (arg1)->SetMapMode(arg2);
21614 wxPyEndAllowThreads(__tstate);
21615 if (PyErr_Occurred()) SWIG_fail;
21616 }
21617 resultobj = SWIG_Py_Void();
21618 return resultobj;
21619 fail:
21620 return NULL;
21621 }
21622
21623
21624 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21625 PyObject *resultobj = 0;
21626 wxDC *arg1 = (wxDC *) 0 ;
21627 double *arg2 = (double *) 0 ;
21628 double *arg3 = (double *) 0 ;
21629 void *argp1 = 0 ;
21630 int res1 = 0 ;
21631 double temp2 ;
21632 int res2 = SWIG_TMPOBJ ;
21633 double temp3 ;
21634 int res3 = SWIG_TMPOBJ ;
21635 PyObject *swig_obj[1] ;
21636
21637 arg2 = &temp2;
21638 arg3 = &temp3;
21639 if (!args) SWIG_fail;
21640 swig_obj[0] = args;
21641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21642 if (!SWIG_IsOK(res1)) {
21643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21644 }
21645 arg1 = reinterpret_cast< wxDC * >(argp1);
21646 {
21647 PyThreadState* __tstate = wxPyBeginAllowThreads();
21648 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21649 wxPyEndAllowThreads(__tstate);
21650 if (PyErr_Occurred()) SWIG_fail;
21651 }
21652 resultobj = SWIG_Py_Void();
21653 if (SWIG_IsTmpObj(res2)) {
21654 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21655 } else {
21656 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21657 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21658 }
21659 if (SWIG_IsTmpObj(res3)) {
21660 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21661 } else {
21662 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21663 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21664 }
21665 return resultobj;
21666 fail:
21667 return NULL;
21668 }
21669
21670
21671 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21672 PyObject *resultobj = 0;
21673 wxDC *arg1 = (wxDC *) 0 ;
21674 double arg2 ;
21675 double arg3 ;
21676 void *argp1 = 0 ;
21677 int res1 = 0 ;
21678 double val2 ;
21679 int ecode2 = 0 ;
21680 double val3 ;
21681 int ecode3 = 0 ;
21682 PyObject * obj0 = 0 ;
21683 PyObject * obj1 = 0 ;
21684 PyObject * obj2 = 0 ;
21685 char * kwnames[] = {
21686 (char *) "self",(char *) "x",(char *) "y", NULL
21687 };
21688
21689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21691 if (!SWIG_IsOK(res1)) {
21692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21693 }
21694 arg1 = reinterpret_cast< wxDC * >(argp1);
21695 ecode2 = SWIG_AsVal_double(obj1, &val2);
21696 if (!SWIG_IsOK(ecode2)) {
21697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21698 }
21699 arg2 = static_cast< double >(val2);
21700 ecode3 = SWIG_AsVal_double(obj2, &val3);
21701 if (!SWIG_IsOK(ecode3)) {
21702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21703 }
21704 arg3 = static_cast< double >(val3);
21705 {
21706 PyThreadState* __tstate = wxPyBeginAllowThreads();
21707 (arg1)->SetUserScale(arg2,arg3);
21708 wxPyEndAllowThreads(__tstate);
21709 if (PyErr_Occurred()) SWIG_fail;
21710 }
21711 resultobj = SWIG_Py_Void();
21712 return resultobj;
21713 fail:
21714 return NULL;
21715 }
21716
21717
21718 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21719 PyObject *resultobj = 0;
21720 wxDC *arg1 = (wxDC *) 0 ;
21721 double *arg2 = (double *) 0 ;
21722 double *arg3 = (double *) 0 ;
21723 void *argp1 = 0 ;
21724 int res1 = 0 ;
21725 double temp2 ;
21726 int res2 = SWIG_TMPOBJ ;
21727 double temp3 ;
21728 int res3 = SWIG_TMPOBJ ;
21729 PyObject *swig_obj[1] ;
21730
21731 arg2 = &temp2;
21732 arg3 = &temp3;
21733 if (!args) SWIG_fail;
21734 swig_obj[0] = args;
21735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21736 if (!SWIG_IsOK(res1)) {
21737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21738 }
21739 arg1 = reinterpret_cast< wxDC * >(argp1);
21740 {
21741 PyThreadState* __tstate = wxPyBeginAllowThreads();
21742 (arg1)->GetLogicalScale(arg2,arg3);
21743 wxPyEndAllowThreads(__tstate);
21744 if (PyErr_Occurred()) SWIG_fail;
21745 }
21746 resultobj = SWIG_Py_Void();
21747 if (SWIG_IsTmpObj(res2)) {
21748 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21749 } else {
21750 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21751 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21752 }
21753 if (SWIG_IsTmpObj(res3)) {
21754 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21755 } else {
21756 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21757 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21758 }
21759 return resultobj;
21760 fail:
21761 return NULL;
21762 }
21763
21764
21765 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21766 PyObject *resultobj = 0;
21767 wxDC *arg1 = (wxDC *) 0 ;
21768 double arg2 ;
21769 double arg3 ;
21770 void *argp1 = 0 ;
21771 int res1 = 0 ;
21772 double val2 ;
21773 int ecode2 = 0 ;
21774 double val3 ;
21775 int ecode3 = 0 ;
21776 PyObject * obj0 = 0 ;
21777 PyObject * obj1 = 0 ;
21778 PyObject * obj2 = 0 ;
21779 char * kwnames[] = {
21780 (char *) "self",(char *) "x",(char *) "y", NULL
21781 };
21782
21783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21785 if (!SWIG_IsOK(res1)) {
21786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21787 }
21788 arg1 = reinterpret_cast< wxDC * >(argp1);
21789 ecode2 = SWIG_AsVal_double(obj1, &val2);
21790 if (!SWIG_IsOK(ecode2)) {
21791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
21792 }
21793 arg2 = static_cast< double >(val2);
21794 ecode3 = SWIG_AsVal_double(obj2, &val3);
21795 if (!SWIG_IsOK(ecode3)) {
21796 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
21797 }
21798 arg3 = static_cast< double >(val3);
21799 {
21800 PyThreadState* __tstate = wxPyBeginAllowThreads();
21801 (arg1)->SetLogicalScale(arg2,arg3);
21802 wxPyEndAllowThreads(__tstate);
21803 if (PyErr_Occurred()) SWIG_fail;
21804 }
21805 resultobj = SWIG_Py_Void();
21806 return resultobj;
21807 fail:
21808 return NULL;
21809 }
21810
21811
21812 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21813 PyObject *resultobj = 0;
21814 wxDC *arg1 = (wxDC *) 0 ;
21815 wxPoint result;
21816 void *argp1 = 0 ;
21817 int res1 = 0 ;
21818 PyObject *swig_obj[1] ;
21819
21820 if (!args) SWIG_fail;
21821 swig_obj[0] = args;
21822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21823 if (!SWIG_IsOK(res1)) {
21824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
21825 }
21826 arg1 = reinterpret_cast< wxDC * >(argp1);
21827 {
21828 PyThreadState* __tstate = wxPyBeginAllowThreads();
21829 result = ((wxDC const *)arg1)->GetLogicalOrigin();
21830 wxPyEndAllowThreads(__tstate);
21831 if (PyErr_Occurred()) SWIG_fail;
21832 }
21833 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
21834 return resultobj;
21835 fail:
21836 return NULL;
21837 }
21838
21839
21840 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21841 PyObject *resultobj = 0;
21842 wxDC *arg1 = (wxDC *) 0 ;
21843 int *arg2 = (int *) 0 ;
21844 int *arg3 = (int *) 0 ;
21845 void *argp1 = 0 ;
21846 int res1 = 0 ;
21847 int temp2 ;
21848 int res2 = SWIG_TMPOBJ ;
21849 int temp3 ;
21850 int res3 = SWIG_TMPOBJ ;
21851 PyObject *swig_obj[1] ;
21852
21853 arg2 = &temp2;
21854 arg3 = &temp3;
21855 if (!args) SWIG_fail;
21856 swig_obj[0] = args;
21857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21858 if (!SWIG_IsOK(res1)) {
21859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21860 }
21861 arg1 = reinterpret_cast< wxDC * >(argp1);
21862 {
21863 PyThreadState* __tstate = wxPyBeginAllowThreads();
21864 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
21865 wxPyEndAllowThreads(__tstate);
21866 if (PyErr_Occurred()) SWIG_fail;
21867 }
21868 resultobj = SWIG_Py_Void();
21869 if (SWIG_IsTmpObj(res2)) {
21870 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21871 } else {
21872 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21873 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21874 }
21875 if (SWIG_IsTmpObj(res3)) {
21876 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21877 } else {
21878 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21879 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21880 }
21881 return resultobj;
21882 fail:
21883 return NULL;
21884 }
21885
21886
21887 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21888 PyObject *resultobj = 0;
21889 wxDC *arg1 = (wxDC *) 0 ;
21890 int arg2 ;
21891 int arg3 ;
21892 void *argp1 = 0 ;
21893 int res1 = 0 ;
21894 int val2 ;
21895 int ecode2 = 0 ;
21896 int val3 ;
21897 int ecode3 = 0 ;
21898 PyObject * obj0 = 0 ;
21899 PyObject * obj1 = 0 ;
21900 PyObject * obj2 = 0 ;
21901 char * kwnames[] = {
21902 (char *) "self",(char *) "x",(char *) "y", NULL
21903 };
21904
21905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21907 if (!SWIG_IsOK(res1)) {
21908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
21909 }
21910 arg1 = reinterpret_cast< wxDC * >(argp1);
21911 ecode2 = SWIG_AsVal_int(obj1, &val2);
21912 if (!SWIG_IsOK(ecode2)) {
21913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
21914 }
21915 arg2 = static_cast< int >(val2);
21916 ecode3 = SWIG_AsVal_int(obj2, &val3);
21917 if (!SWIG_IsOK(ecode3)) {
21918 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
21919 }
21920 arg3 = static_cast< int >(val3);
21921 {
21922 PyThreadState* __tstate = wxPyBeginAllowThreads();
21923 (arg1)->SetLogicalOrigin(arg2,arg3);
21924 wxPyEndAllowThreads(__tstate);
21925 if (PyErr_Occurred()) SWIG_fail;
21926 }
21927 resultobj = SWIG_Py_Void();
21928 return resultobj;
21929 fail:
21930 return NULL;
21931 }
21932
21933
21934 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21935 PyObject *resultobj = 0;
21936 wxDC *arg1 = (wxDC *) 0 ;
21937 wxPoint *arg2 = 0 ;
21938 void *argp1 = 0 ;
21939 int res1 = 0 ;
21940 wxPoint temp2 ;
21941 PyObject * obj0 = 0 ;
21942 PyObject * obj1 = 0 ;
21943 char * kwnames[] = {
21944 (char *) "self",(char *) "point", NULL
21945 };
21946
21947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
21948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21949 if (!SWIG_IsOK(res1)) {
21950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
21951 }
21952 arg1 = reinterpret_cast< wxDC * >(argp1);
21953 {
21954 arg2 = &temp2;
21955 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
21956 }
21957 {
21958 PyThreadState* __tstate = wxPyBeginAllowThreads();
21959 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
21960 wxPyEndAllowThreads(__tstate);
21961 if (PyErr_Occurred()) SWIG_fail;
21962 }
21963 resultobj = SWIG_Py_Void();
21964 return resultobj;
21965 fail:
21966 return NULL;
21967 }
21968
21969
21970 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21971 PyObject *resultobj = 0;
21972 wxDC *arg1 = (wxDC *) 0 ;
21973 wxPoint result;
21974 void *argp1 = 0 ;
21975 int res1 = 0 ;
21976 PyObject *swig_obj[1] ;
21977
21978 if (!args) SWIG_fail;
21979 swig_obj[0] = args;
21980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21981 if (!SWIG_IsOK(res1)) {
21982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
21983 }
21984 arg1 = reinterpret_cast< wxDC * >(argp1);
21985 {
21986 PyThreadState* __tstate = wxPyBeginAllowThreads();
21987 result = ((wxDC const *)arg1)->GetDeviceOrigin();
21988 wxPyEndAllowThreads(__tstate);
21989 if (PyErr_Occurred()) SWIG_fail;
21990 }
21991 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
21992 return resultobj;
21993 fail:
21994 return NULL;
21995 }
21996
21997
21998 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21999 PyObject *resultobj = 0;
22000 wxDC *arg1 = (wxDC *) 0 ;
22001 int *arg2 = (int *) 0 ;
22002 int *arg3 = (int *) 0 ;
22003 void *argp1 = 0 ;
22004 int res1 = 0 ;
22005 int temp2 ;
22006 int res2 = SWIG_TMPOBJ ;
22007 int temp3 ;
22008 int res3 = SWIG_TMPOBJ ;
22009 PyObject *swig_obj[1] ;
22010
22011 arg2 = &temp2;
22012 arg3 = &temp3;
22013 if (!args) SWIG_fail;
22014 swig_obj[0] = args;
22015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22016 if (!SWIG_IsOK(res1)) {
22017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22018 }
22019 arg1 = reinterpret_cast< wxDC * >(argp1);
22020 {
22021 PyThreadState* __tstate = wxPyBeginAllowThreads();
22022 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22023 wxPyEndAllowThreads(__tstate);
22024 if (PyErr_Occurred()) SWIG_fail;
22025 }
22026 resultobj = SWIG_Py_Void();
22027 if (SWIG_IsTmpObj(res2)) {
22028 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22029 } else {
22030 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22031 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22032 }
22033 if (SWIG_IsTmpObj(res3)) {
22034 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22035 } else {
22036 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22037 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22038 }
22039 return resultobj;
22040 fail:
22041 return NULL;
22042 }
22043
22044
22045 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22046 PyObject *resultobj = 0;
22047 wxDC *arg1 = (wxDC *) 0 ;
22048 int arg2 ;
22049 int arg3 ;
22050 void *argp1 = 0 ;
22051 int res1 = 0 ;
22052 int val2 ;
22053 int ecode2 = 0 ;
22054 int val3 ;
22055 int ecode3 = 0 ;
22056 PyObject * obj0 = 0 ;
22057 PyObject * obj1 = 0 ;
22058 PyObject * obj2 = 0 ;
22059 char * kwnames[] = {
22060 (char *) "self",(char *) "x",(char *) "y", NULL
22061 };
22062
22063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22065 if (!SWIG_IsOK(res1)) {
22066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22067 }
22068 arg1 = reinterpret_cast< wxDC * >(argp1);
22069 ecode2 = SWIG_AsVal_int(obj1, &val2);
22070 if (!SWIG_IsOK(ecode2)) {
22071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22072 }
22073 arg2 = static_cast< int >(val2);
22074 ecode3 = SWIG_AsVal_int(obj2, &val3);
22075 if (!SWIG_IsOK(ecode3)) {
22076 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22077 }
22078 arg3 = static_cast< int >(val3);
22079 {
22080 PyThreadState* __tstate = wxPyBeginAllowThreads();
22081 (arg1)->SetDeviceOrigin(arg2,arg3);
22082 wxPyEndAllowThreads(__tstate);
22083 if (PyErr_Occurred()) SWIG_fail;
22084 }
22085 resultobj = SWIG_Py_Void();
22086 return resultobj;
22087 fail:
22088 return NULL;
22089 }
22090
22091
22092 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22093 PyObject *resultobj = 0;
22094 wxDC *arg1 = (wxDC *) 0 ;
22095 wxPoint *arg2 = 0 ;
22096 void *argp1 = 0 ;
22097 int res1 = 0 ;
22098 wxPoint temp2 ;
22099 PyObject * obj0 = 0 ;
22100 PyObject * obj1 = 0 ;
22101 char * kwnames[] = {
22102 (char *) "self",(char *) "point", NULL
22103 };
22104
22105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22107 if (!SWIG_IsOK(res1)) {
22108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22109 }
22110 arg1 = reinterpret_cast< wxDC * >(argp1);
22111 {
22112 arg2 = &temp2;
22113 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22114 }
22115 {
22116 PyThreadState* __tstate = wxPyBeginAllowThreads();
22117 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22118 wxPyEndAllowThreads(__tstate);
22119 if (PyErr_Occurred()) SWIG_fail;
22120 }
22121 resultobj = SWIG_Py_Void();
22122 return resultobj;
22123 fail:
22124 return NULL;
22125 }
22126
22127
22128 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22129 PyObject *resultobj = 0;
22130 wxDC *arg1 = (wxDC *) 0 ;
22131 bool arg2 ;
22132 bool arg3 ;
22133 void *argp1 = 0 ;
22134 int res1 = 0 ;
22135 bool val2 ;
22136 int ecode2 = 0 ;
22137 bool val3 ;
22138 int ecode3 = 0 ;
22139 PyObject * obj0 = 0 ;
22140 PyObject * obj1 = 0 ;
22141 PyObject * obj2 = 0 ;
22142 char * kwnames[] = {
22143 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22144 };
22145
22146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22148 if (!SWIG_IsOK(res1)) {
22149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22150 }
22151 arg1 = reinterpret_cast< wxDC * >(argp1);
22152 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22153 if (!SWIG_IsOK(ecode2)) {
22154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22155 }
22156 arg2 = static_cast< bool >(val2);
22157 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22158 if (!SWIG_IsOK(ecode3)) {
22159 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22160 }
22161 arg3 = static_cast< bool >(val3);
22162 {
22163 PyThreadState* __tstate = wxPyBeginAllowThreads();
22164 (arg1)->SetAxisOrientation(arg2,arg3);
22165 wxPyEndAllowThreads(__tstate);
22166 if (PyErr_Occurred()) SWIG_fail;
22167 }
22168 resultobj = SWIG_Py_Void();
22169 return resultobj;
22170 fail:
22171 return NULL;
22172 }
22173
22174
22175 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22176 PyObject *resultobj = 0;
22177 wxDC *arg1 = (wxDC *) 0 ;
22178 int result;
22179 void *argp1 = 0 ;
22180 int res1 = 0 ;
22181 PyObject *swig_obj[1] ;
22182
22183 if (!args) SWIG_fail;
22184 swig_obj[0] = args;
22185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22186 if (!SWIG_IsOK(res1)) {
22187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22188 }
22189 arg1 = reinterpret_cast< wxDC * >(argp1);
22190 {
22191 PyThreadState* __tstate = wxPyBeginAllowThreads();
22192 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22193 wxPyEndAllowThreads(__tstate);
22194 if (PyErr_Occurred()) SWIG_fail;
22195 }
22196 resultobj = SWIG_From_int(static_cast< int >(result));
22197 return resultobj;
22198 fail:
22199 return NULL;
22200 }
22201
22202
22203 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22204 PyObject *resultobj = 0;
22205 wxDC *arg1 = (wxDC *) 0 ;
22206 int arg2 ;
22207 void *argp1 = 0 ;
22208 int res1 = 0 ;
22209 int val2 ;
22210 int ecode2 = 0 ;
22211 PyObject * obj0 = 0 ;
22212 PyObject * obj1 = 0 ;
22213 char * kwnames[] = {
22214 (char *) "self",(char *) "function", NULL
22215 };
22216
22217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22219 if (!SWIG_IsOK(res1)) {
22220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22221 }
22222 arg1 = reinterpret_cast< wxDC * >(argp1);
22223 ecode2 = SWIG_AsVal_int(obj1, &val2);
22224 if (!SWIG_IsOK(ecode2)) {
22225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22226 }
22227 arg2 = static_cast< int >(val2);
22228 {
22229 PyThreadState* __tstate = wxPyBeginAllowThreads();
22230 (arg1)->SetLogicalFunction(arg2);
22231 wxPyEndAllowThreads(__tstate);
22232 if (PyErr_Occurred()) SWIG_fail;
22233 }
22234 resultobj = SWIG_Py_Void();
22235 return resultobj;
22236 fail:
22237 return NULL;
22238 }
22239
22240
22241 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22242 PyObject *resultobj = 0;
22243 wxDC *arg1 = (wxDC *) 0 ;
22244 void *argp1 = 0 ;
22245 int res1 = 0 ;
22246 PyObject *swig_obj[1] ;
22247
22248 if (!args) SWIG_fail;
22249 swig_obj[0] = args;
22250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22251 if (!SWIG_IsOK(res1)) {
22252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22253 }
22254 arg1 = reinterpret_cast< wxDC * >(argp1);
22255 {
22256 PyThreadState* __tstate = wxPyBeginAllowThreads();
22257 (arg1)->ComputeScaleAndOrigin();
22258 wxPyEndAllowThreads(__tstate);
22259 if (PyErr_Occurred()) SWIG_fail;
22260 }
22261 resultobj = SWIG_Py_Void();
22262 return resultobj;
22263 fail:
22264 return NULL;
22265 }
22266
22267
22268 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22269 PyObject *resultobj = 0;
22270 wxDC *arg1 = (wxDC *) 0 ;
22271 int arg2 ;
22272 int arg3 ;
22273 void *argp1 = 0 ;
22274 int res1 = 0 ;
22275 int val2 ;
22276 int ecode2 = 0 ;
22277 int val3 ;
22278 int ecode3 = 0 ;
22279 PyObject * obj0 = 0 ;
22280 PyObject * obj1 = 0 ;
22281 PyObject * obj2 = 0 ;
22282 char * kwnames[] = {
22283 (char *) "self",(char *) "x",(char *) "y", NULL
22284 };
22285
22286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22288 if (!SWIG_IsOK(res1)) {
22289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22290 }
22291 arg1 = reinterpret_cast< wxDC * >(argp1);
22292 ecode2 = SWIG_AsVal_int(obj1, &val2);
22293 if (!SWIG_IsOK(ecode2)) {
22294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22295 }
22296 arg2 = static_cast< int >(val2);
22297 ecode3 = SWIG_AsVal_int(obj2, &val3);
22298 if (!SWIG_IsOK(ecode3)) {
22299 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22300 }
22301 arg3 = static_cast< int >(val3);
22302 {
22303 PyThreadState* __tstate = wxPyBeginAllowThreads();
22304 (arg1)->CalcBoundingBox(arg2,arg3);
22305 wxPyEndAllowThreads(__tstate);
22306 if (PyErr_Occurred()) SWIG_fail;
22307 }
22308 resultobj = SWIG_Py_Void();
22309 return resultobj;
22310 fail:
22311 return NULL;
22312 }
22313
22314
22315 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22316 PyObject *resultobj = 0;
22317 wxDC *arg1 = (wxDC *) 0 ;
22318 wxPoint *arg2 = 0 ;
22319 void *argp1 = 0 ;
22320 int res1 = 0 ;
22321 wxPoint temp2 ;
22322 PyObject * obj0 = 0 ;
22323 PyObject * obj1 = 0 ;
22324 char * kwnames[] = {
22325 (char *) "self",(char *) "point", NULL
22326 };
22327
22328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22330 if (!SWIG_IsOK(res1)) {
22331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22332 }
22333 arg1 = reinterpret_cast< wxDC * >(argp1);
22334 {
22335 arg2 = &temp2;
22336 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22337 }
22338 {
22339 PyThreadState* __tstate = wxPyBeginAllowThreads();
22340 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22341 wxPyEndAllowThreads(__tstate);
22342 if (PyErr_Occurred()) SWIG_fail;
22343 }
22344 resultobj = SWIG_Py_Void();
22345 return resultobj;
22346 fail:
22347 return NULL;
22348 }
22349
22350
22351 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22352 PyObject *resultobj = 0;
22353 wxDC *arg1 = (wxDC *) 0 ;
22354 void *argp1 = 0 ;
22355 int res1 = 0 ;
22356 PyObject *swig_obj[1] ;
22357
22358 if (!args) SWIG_fail;
22359 swig_obj[0] = args;
22360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22361 if (!SWIG_IsOK(res1)) {
22362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22363 }
22364 arg1 = reinterpret_cast< wxDC * >(argp1);
22365 {
22366 PyThreadState* __tstate = wxPyBeginAllowThreads();
22367 (arg1)->ResetBoundingBox();
22368 wxPyEndAllowThreads(__tstate);
22369 if (PyErr_Occurred()) SWIG_fail;
22370 }
22371 resultobj = SWIG_Py_Void();
22372 return resultobj;
22373 fail:
22374 return NULL;
22375 }
22376
22377
22378 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22379 PyObject *resultobj = 0;
22380 wxDC *arg1 = (wxDC *) 0 ;
22381 int result;
22382 void *argp1 = 0 ;
22383 int res1 = 0 ;
22384 PyObject *swig_obj[1] ;
22385
22386 if (!args) SWIG_fail;
22387 swig_obj[0] = args;
22388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22389 if (!SWIG_IsOK(res1)) {
22390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22391 }
22392 arg1 = reinterpret_cast< wxDC * >(argp1);
22393 {
22394 PyThreadState* __tstate = wxPyBeginAllowThreads();
22395 result = (int)((wxDC const *)arg1)->MinX();
22396 wxPyEndAllowThreads(__tstate);
22397 if (PyErr_Occurred()) SWIG_fail;
22398 }
22399 resultobj = SWIG_From_int(static_cast< int >(result));
22400 return resultobj;
22401 fail:
22402 return NULL;
22403 }
22404
22405
22406 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22407 PyObject *resultobj = 0;
22408 wxDC *arg1 = (wxDC *) 0 ;
22409 int result;
22410 void *argp1 = 0 ;
22411 int res1 = 0 ;
22412 PyObject *swig_obj[1] ;
22413
22414 if (!args) SWIG_fail;
22415 swig_obj[0] = args;
22416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22417 if (!SWIG_IsOK(res1)) {
22418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22419 }
22420 arg1 = reinterpret_cast< wxDC * >(argp1);
22421 {
22422 PyThreadState* __tstate = wxPyBeginAllowThreads();
22423 result = (int)((wxDC const *)arg1)->MaxX();
22424 wxPyEndAllowThreads(__tstate);
22425 if (PyErr_Occurred()) SWIG_fail;
22426 }
22427 resultobj = SWIG_From_int(static_cast< int >(result));
22428 return resultobj;
22429 fail:
22430 return NULL;
22431 }
22432
22433
22434 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22435 PyObject *resultobj = 0;
22436 wxDC *arg1 = (wxDC *) 0 ;
22437 int result;
22438 void *argp1 = 0 ;
22439 int res1 = 0 ;
22440 PyObject *swig_obj[1] ;
22441
22442 if (!args) SWIG_fail;
22443 swig_obj[0] = args;
22444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22445 if (!SWIG_IsOK(res1)) {
22446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22447 }
22448 arg1 = reinterpret_cast< wxDC * >(argp1);
22449 {
22450 PyThreadState* __tstate = wxPyBeginAllowThreads();
22451 result = (int)((wxDC const *)arg1)->MinY();
22452 wxPyEndAllowThreads(__tstate);
22453 if (PyErr_Occurred()) SWIG_fail;
22454 }
22455 resultobj = SWIG_From_int(static_cast< int >(result));
22456 return resultobj;
22457 fail:
22458 return NULL;
22459 }
22460
22461
22462 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22463 PyObject *resultobj = 0;
22464 wxDC *arg1 = (wxDC *) 0 ;
22465 int result;
22466 void *argp1 = 0 ;
22467 int res1 = 0 ;
22468 PyObject *swig_obj[1] ;
22469
22470 if (!args) SWIG_fail;
22471 swig_obj[0] = args;
22472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22473 if (!SWIG_IsOK(res1)) {
22474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22475 }
22476 arg1 = reinterpret_cast< wxDC * >(argp1);
22477 {
22478 PyThreadState* __tstate = wxPyBeginAllowThreads();
22479 result = (int)((wxDC const *)arg1)->MaxY();
22480 wxPyEndAllowThreads(__tstate);
22481 if (PyErr_Occurred()) SWIG_fail;
22482 }
22483 resultobj = SWIG_From_int(static_cast< int >(result));
22484 return resultobj;
22485 fail:
22486 return NULL;
22487 }
22488
22489
22490 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22491 PyObject *resultobj = 0;
22492 wxDC *arg1 = (wxDC *) 0 ;
22493 int *arg2 = (int *) 0 ;
22494 int *arg3 = (int *) 0 ;
22495 int *arg4 = (int *) 0 ;
22496 int *arg5 = (int *) 0 ;
22497 void *argp1 = 0 ;
22498 int res1 = 0 ;
22499 int temp2 ;
22500 int res2 = SWIG_TMPOBJ ;
22501 int temp3 ;
22502 int res3 = SWIG_TMPOBJ ;
22503 int temp4 ;
22504 int res4 = SWIG_TMPOBJ ;
22505 int temp5 ;
22506 int res5 = SWIG_TMPOBJ ;
22507 PyObject *swig_obj[1] ;
22508
22509 arg2 = &temp2;
22510 arg3 = &temp3;
22511 arg4 = &temp4;
22512 arg5 = &temp5;
22513 if (!args) SWIG_fail;
22514 swig_obj[0] = args;
22515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22516 if (!SWIG_IsOK(res1)) {
22517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22518 }
22519 arg1 = reinterpret_cast< wxDC * >(argp1);
22520 {
22521 PyThreadState* __tstate = wxPyBeginAllowThreads();
22522 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22523 wxPyEndAllowThreads(__tstate);
22524 if (PyErr_Occurred()) SWIG_fail;
22525 }
22526 resultobj = SWIG_Py_Void();
22527 if (SWIG_IsTmpObj(res2)) {
22528 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22529 } else {
22530 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22531 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22532 }
22533 if (SWIG_IsTmpObj(res3)) {
22534 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22535 } else {
22536 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22537 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22538 }
22539 if (SWIG_IsTmpObj(res4)) {
22540 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22541 } else {
22542 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22543 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22544 }
22545 if (SWIG_IsTmpObj(res5)) {
22546 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22547 } else {
22548 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22549 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22550 }
22551 return resultobj;
22552 fail:
22553 return NULL;
22554 }
22555
22556
22557 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22558 PyObject *resultobj = 0;
22559 wxDC *arg1 = (wxDC *) 0 ;
22560 PyObject *arg2 = (PyObject *) 0 ;
22561 PyObject *arg3 = (PyObject *) 0 ;
22562 PyObject *arg4 = (PyObject *) 0 ;
22563 PyObject *result = 0 ;
22564 void *argp1 = 0 ;
22565 int res1 = 0 ;
22566 PyObject * obj0 = 0 ;
22567 PyObject * obj1 = 0 ;
22568 PyObject * obj2 = 0 ;
22569 PyObject * obj3 = 0 ;
22570 char * kwnames[] = {
22571 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22572 };
22573
22574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22576 if (!SWIG_IsOK(res1)) {
22577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22578 }
22579 arg1 = reinterpret_cast< wxDC * >(argp1);
22580 arg2 = obj1;
22581 arg3 = obj2;
22582 arg4 = obj3;
22583 {
22584 PyThreadState* __tstate = wxPyBeginAllowThreads();
22585 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22586 wxPyEndAllowThreads(__tstate);
22587 if (PyErr_Occurred()) SWIG_fail;
22588 }
22589 resultobj = result;
22590 return resultobj;
22591 fail:
22592 return NULL;
22593 }
22594
22595
22596 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22597 PyObject *resultobj = 0;
22598 wxDC *arg1 = (wxDC *) 0 ;
22599 PyObject *arg2 = (PyObject *) 0 ;
22600 PyObject *arg3 = (PyObject *) 0 ;
22601 PyObject *arg4 = (PyObject *) 0 ;
22602 PyObject *result = 0 ;
22603 void *argp1 = 0 ;
22604 int res1 = 0 ;
22605 PyObject * obj0 = 0 ;
22606 PyObject * obj1 = 0 ;
22607 PyObject * obj2 = 0 ;
22608 PyObject * obj3 = 0 ;
22609 char * kwnames[] = {
22610 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22611 };
22612
22613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22615 if (!SWIG_IsOK(res1)) {
22616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22617 }
22618 arg1 = reinterpret_cast< wxDC * >(argp1);
22619 arg2 = obj1;
22620 arg3 = obj2;
22621 arg4 = obj3;
22622 {
22623 PyThreadState* __tstate = wxPyBeginAllowThreads();
22624 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22625 wxPyEndAllowThreads(__tstate);
22626 if (PyErr_Occurred()) SWIG_fail;
22627 }
22628 resultobj = result;
22629 return resultobj;
22630 fail:
22631 return NULL;
22632 }
22633
22634
22635 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22636 PyObject *resultobj = 0;
22637 wxDC *arg1 = (wxDC *) 0 ;
22638 PyObject *arg2 = (PyObject *) 0 ;
22639 PyObject *arg3 = (PyObject *) 0 ;
22640 PyObject *arg4 = (PyObject *) 0 ;
22641 PyObject *result = 0 ;
22642 void *argp1 = 0 ;
22643 int res1 = 0 ;
22644 PyObject * obj0 = 0 ;
22645 PyObject * obj1 = 0 ;
22646 PyObject * obj2 = 0 ;
22647 PyObject * obj3 = 0 ;
22648 char * kwnames[] = {
22649 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22650 };
22651
22652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22654 if (!SWIG_IsOK(res1)) {
22655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22656 }
22657 arg1 = reinterpret_cast< wxDC * >(argp1);
22658 arg2 = obj1;
22659 arg3 = obj2;
22660 arg4 = obj3;
22661 {
22662 PyThreadState* __tstate = wxPyBeginAllowThreads();
22663 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22664 wxPyEndAllowThreads(__tstate);
22665 if (PyErr_Occurred()) SWIG_fail;
22666 }
22667 resultobj = result;
22668 return resultobj;
22669 fail:
22670 return NULL;
22671 }
22672
22673
22674 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22675 PyObject *resultobj = 0;
22676 wxDC *arg1 = (wxDC *) 0 ;
22677 PyObject *arg2 = (PyObject *) 0 ;
22678 PyObject *arg3 = (PyObject *) 0 ;
22679 PyObject *arg4 = (PyObject *) 0 ;
22680 PyObject *result = 0 ;
22681 void *argp1 = 0 ;
22682 int res1 = 0 ;
22683 PyObject * obj0 = 0 ;
22684 PyObject * obj1 = 0 ;
22685 PyObject * obj2 = 0 ;
22686 PyObject * obj3 = 0 ;
22687 char * kwnames[] = {
22688 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22689 };
22690
22691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22693 if (!SWIG_IsOK(res1)) {
22694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
22695 }
22696 arg1 = reinterpret_cast< wxDC * >(argp1);
22697 arg2 = obj1;
22698 arg3 = obj2;
22699 arg4 = obj3;
22700 {
22701 PyThreadState* __tstate = wxPyBeginAllowThreads();
22702 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
22703 wxPyEndAllowThreads(__tstate);
22704 if (PyErr_Occurred()) SWIG_fail;
22705 }
22706 resultobj = result;
22707 return resultobj;
22708 fail:
22709 return NULL;
22710 }
22711
22712
22713 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22714 PyObject *resultobj = 0;
22715 wxDC *arg1 = (wxDC *) 0 ;
22716 PyObject *arg2 = (PyObject *) 0 ;
22717 PyObject *arg3 = (PyObject *) 0 ;
22718 PyObject *arg4 = (PyObject *) 0 ;
22719 PyObject *result = 0 ;
22720 void *argp1 = 0 ;
22721 int res1 = 0 ;
22722 PyObject * obj0 = 0 ;
22723 PyObject * obj1 = 0 ;
22724 PyObject * obj2 = 0 ;
22725 PyObject * obj3 = 0 ;
22726 char * kwnames[] = {
22727 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22728 };
22729
22730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22732 if (!SWIG_IsOK(res1)) {
22733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
22734 }
22735 arg1 = reinterpret_cast< wxDC * >(argp1);
22736 arg2 = obj1;
22737 arg3 = obj2;
22738 arg4 = obj3;
22739 {
22740 PyThreadState* __tstate = wxPyBeginAllowThreads();
22741 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
22742 wxPyEndAllowThreads(__tstate);
22743 if (PyErr_Occurred()) SWIG_fail;
22744 }
22745 resultobj = result;
22746 return resultobj;
22747 fail:
22748 return NULL;
22749 }
22750
22751
22752 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22753 PyObject *resultobj = 0;
22754 wxDC *arg1 = (wxDC *) 0 ;
22755 PyObject *arg2 = (PyObject *) 0 ;
22756 PyObject *arg3 = (PyObject *) 0 ;
22757 PyObject *arg4 = (PyObject *) 0 ;
22758 PyObject *arg5 = (PyObject *) 0 ;
22759 PyObject *result = 0 ;
22760 void *argp1 = 0 ;
22761 int res1 = 0 ;
22762 PyObject * obj0 = 0 ;
22763 PyObject * obj1 = 0 ;
22764 PyObject * obj2 = 0 ;
22765 PyObject * obj3 = 0 ;
22766 PyObject * obj4 = 0 ;
22767 char * kwnames[] = {
22768 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
22769 };
22770
22771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22773 if (!SWIG_IsOK(res1)) {
22774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
22775 }
22776 arg1 = reinterpret_cast< wxDC * >(argp1);
22777 arg2 = obj1;
22778 arg3 = obj2;
22779 arg4 = obj3;
22780 arg5 = obj4;
22781 {
22782 PyThreadState* __tstate = wxPyBeginAllowThreads();
22783 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
22784 wxPyEndAllowThreads(__tstate);
22785 if (PyErr_Occurred()) SWIG_fail;
22786 }
22787 resultobj = result;
22788 return resultobj;
22789 fail:
22790 return NULL;
22791 }
22792
22793
22794 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22795 PyObject *obj;
22796 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22797 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
22798 return SWIG_Py_Void();
22799 }
22800
22801 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22802 PyObject *resultobj = 0;
22803 wxMemoryDC *result = 0 ;
22804
22805 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
22806 {
22807 if (!wxPyCheckForApp()) SWIG_fail;
22808 PyThreadState* __tstate = wxPyBeginAllowThreads();
22809 result = (wxMemoryDC *)new wxMemoryDC();
22810 wxPyEndAllowThreads(__tstate);
22811 if (PyErr_Occurred()) SWIG_fail;
22812 }
22813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
22814 return resultobj;
22815 fail:
22816 return NULL;
22817 }
22818
22819
22820 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22821 PyObject *resultobj = 0;
22822 wxDC *arg1 = (wxDC *) 0 ;
22823 wxMemoryDC *result = 0 ;
22824 void *argp1 = 0 ;
22825 int res1 = 0 ;
22826 PyObject * obj0 = 0 ;
22827 char * kwnames[] = {
22828 (char *) "oldDC", NULL
22829 };
22830
22831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
22832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22833 if (!SWIG_IsOK(res1)) {
22834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
22835 }
22836 arg1 = reinterpret_cast< wxDC * >(argp1);
22837 {
22838 if (!wxPyCheckForApp()) SWIG_fail;
22839 PyThreadState* __tstate = wxPyBeginAllowThreads();
22840 result = (wxMemoryDC *)new wxMemoryDC(arg1);
22841 wxPyEndAllowThreads(__tstate);
22842 if (PyErr_Occurred()) SWIG_fail;
22843 }
22844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
22845 return resultobj;
22846 fail:
22847 return NULL;
22848 }
22849
22850
22851 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22852 PyObject *resultobj = 0;
22853 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
22854 wxBitmap *arg2 = 0 ;
22855 void *argp1 = 0 ;
22856 int res1 = 0 ;
22857 void *argp2 = 0 ;
22858 int res2 = 0 ;
22859 PyObject * obj0 = 0 ;
22860 PyObject * obj1 = 0 ;
22861 char * kwnames[] = {
22862 (char *) "self",(char *) "bitmap", NULL
22863 };
22864
22865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
22866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
22867 if (!SWIG_IsOK(res1)) {
22868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
22869 }
22870 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
22871 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22872 if (!SWIG_IsOK(res2)) {
22873 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22874 }
22875 if (!argp2) {
22876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22877 }
22878 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22879 {
22880 PyThreadState* __tstate = wxPyBeginAllowThreads();
22881 (arg1)->SelectObject((wxBitmap const &)*arg2);
22882 wxPyEndAllowThreads(__tstate);
22883 if (PyErr_Occurred()) SWIG_fail;
22884 }
22885 resultobj = SWIG_Py_Void();
22886 return resultobj;
22887 fail:
22888 return NULL;
22889 }
22890
22891
22892 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22893 PyObject *obj;
22894 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22895 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
22896 return SWIG_Py_Void();
22897 }
22898
22899 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22900 return SWIG_Python_InitShadowInstance(args);
22901 }
22902
22903 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22904 PyObject *resultobj = 0;
22905 wxDC *arg1 = (wxDC *) 0 ;
22906 wxBitmap const &arg2_defvalue = wxNullBitmap ;
22907 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
22908 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
22909 wxBufferedDC *result = 0 ;
22910 void *argp1 = 0 ;
22911 int res1 = 0 ;
22912 void *argp2 = 0 ;
22913 int res2 = 0 ;
22914 int val3 ;
22915 int ecode3 = 0 ;
22916
22917 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
22918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22919 if (!SWIG_IsOK(res1)) {
22920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
22921 }
22922 arg1 = reinterpret_cast< wxDC * >(argp1);
22923 if (swig_obj[1]) {
22924 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22925 if (!SWIG_IsOK(res2)) {
22926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22927 }
22928 if (!argp2) {
22929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22930 }
22931 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22932 }
22933 if (swig_obj[2]) {
22934 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
22935 if (!SWIG_IsOK(ecode3)) {
22936 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
22937 }
22938 arg3 = static_cast< int >(val3);
22939 }
22940 {
22941 if (!wxPyCheckForApp()) SWIG_fail;
22942 PyThreadState* __tstate = wxPyBeginAllowThreads();
22943 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
22944 wxPyEndAllowThreads(__tstate);
22945 if (PyErr_Occurred()) SWIG_fail;
22946 }
22947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
22948 return resultobj;
22949 fail:
22950 return NULL;
22951 }
22952
22953
22954 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22955 PyObject *resultobj = 0;
22956 wxDC *arg1 = (wxDC *) 0 ;
22957 wxSize *arg2 = 0 ;
22958 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
22959 wxBufferedDC *result = 0 ;
22960 void *argp1 = 0 ;
22961 int res1 = 0 ;
22962 wxSize temp2 ;
22963 int val3 ;
22964 int ecode3 = 0 ;
22965
22966 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
22967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22968 if (!SWIG_IsOK(res1)) {
22969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
22970 }
22971 arg1 = reinterpret_cast< wxDC * >(argp1);
22972 {
22973 arg2 = &temp2;
22974 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
22975 }
22976 if (swig_obj[2]) {
22977 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
22978 if (!SWIG_IsOK(ecode3)) {
22979 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
22980 }
22981 arg3 = static_cast< int >(val3);
22982 }
22983 {
22984 if (!wxPyCheckForApp()) SWIG_fail;
22985 PyThreadState* __tstate = wxPyBeginAllowThreads();
22986 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
22987 wxPyEndAllowThreads(__tstate);
22988 if (PyErr_Occurred()) SWIG_fail;
22989 }
22990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
22991 return resultobj;
22992 fail:
22993 return NULL;
22994 }
22995
22996
22997 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
22998 int argc;
22999 PyObject *argv[4];
23000
23001 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23002 --argc;
23003 if ((argc >= 1) && (argc <= 3)) {
23004 int _v = 0;
23005 if (argc > 1) {
23006 {
23007 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23008 _v = SWIG_CheckState(res);
23009 }
23010 if (!_v) goto check_1;
23011 }
23012 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23013 }
23014 check_1:
23015
23016 if ((argc >= 2) && (argc <= 3)) {
23017 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23018 }
23019
23020 fail:
23021 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23022 return NULL;
23023 }
23024
23025
23026 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23027 PyObject *resultobj = 0;
23028 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23029 void *argp1 = 0 ;
23030 int res1 = 0 ;
23031 PyObject *swig_obj[1] ;
23032
23033 if (!args) SWIG_fail;
23034 swig_obj[0] = args;
23035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23036 if (!SWIG_IsOK(res1)) {
23037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23038 }
23039 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23040 {
23041 PyThreadState* __tstate = wxPyBeginAllowThreads();
23042 delete arg1;
23043
23044 wxPyEndAllowThreads(__tstate);
23045 if (PyErr_Occurred()) SWIG_fail;
23046 }
23047 resultobj = SWIG_Py_Void();
23048 return resultobj;
23049 fail:
23050 return NULL;
23051 }
23052
23053
23054 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23055 PyObject *resultobj = 0;
23056 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23057 void *argp1 = 0 ;
23058 int res1 = 0 ;
23059 PyObject *swig_obj[1] ;
23060
23061 if (!args) SWIG_fail;
23062 swig_obj[0] = args;
23063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23064 if (!SWIG_IsOK(res1)) {
23065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23066 }
23067 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23068 {
23069 PyThreadState* __tstate = wxPyBeginAllowThreads();
23070 (arg1)->UnMask();
23071 wxPyEndAllowThreads(__tstate);
23072 if (PyErr_Occurred()) SWIG_fail;
23073 }
23074 resultobj = SWIG_Py_Void();
23075 return resultobj;
23076 fail:
23077 return NULL;
23078 }
23079
23080
23081 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23082 PyObject *obj;
23083 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23084 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23085 return SWIG_Py_Void();
23086 }
23087
23088 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23089 return SWIG_Python_InitShadowInstance(args);
23090 }
23091
23092 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23093 PyObject *resultobj = 0;
23094 wxWindow *arg1 = (wxWindow *) 0 ;
23095 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23096 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23097 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23098 wxBufferedPaintDC *result = 0 ;
23099 void *argp1 = 0 ;
23100 int res1 = 0 ;
23101 void *argp2 = 0 ;
23102 int res2 = 0 ;
23103 int val3 ;
23104 int ecode3 = 0 ;
23105 PyObject * obj0 = 0 ;
23106 PyObject * obj1 = 0 ;
23107 PyObject * obj2 = 0 ;
23108 char * kwnames[] = {
23109 (char *) "window",(char *) "buffer",(char *) "style", NULL
23110 };
23111
23112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23114 if (!SWIG_IsOK(res1)) {
23115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23116 }
23117 arg1 = reinterpret_cast< wxWindow * >(argp1);
23118 if (obj1) {
23119 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23120 if (!SWIG_IsOK(res2)) {
23121 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23122 }
23123 if (!argp2) {
23124 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23125 }
23126 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23127 }
23128 if (obj2) {
23129 ecode3 = SWIG_AsVal_int(obj2, &val3);
23130 if (!SWIG_IsOK(ecode3)) {
23131 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23132 }
23133 arg3 = static_cast< int >(val3);
23134 }
23135 {
23136 if (!wxPyCheckForApp()) SWIG_fail;
23137 PyThreadState* __tstate = wxPyBeginAllowThreads();
23138 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23139 wxPyEndAllowThreads(__tstate);
23140 if (PyErr_Occurred()) SWIG_fail;
23141 }
23142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23143 return resultobj;
23144 fail:
23145 return NULL;
23146 }
23147
23148
23149 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23150 PyObject *obj;
23151 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23152 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23153 return SWIG_Py_Void();
23154 }
23155
23156 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23157 return SWIG_Python_InitShadowInstance(args);
23158 }
23159
23160 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23161 PyObject *resultobj = 0;
23162 wxScreenDC *result = 0 ;
23163
23164 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23165 {
23166 if (!wxPyCheckForApp()) SWIG_fail;
23167 PyThreadState* __tstate = wxPyBeginAllowThreads();
23168 result = (wxScreenDC *)new wxScreenDC();
23169 wxPyEndAllowThreads(__tstate);
23170 if (PyErr_Occurred()) SWIG_fail;
23171 }
23172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23173 return resultobj;
23174 fail:
23175 return NULL;
23176 }
23177
23178
23179 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23180 PyObject *resultobj = 0;
23181 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23182 wxWindow *arg2 = (wxWindow *) 0 ;
23183 bool result;
23184 void *argp1 = 0 ;
23185 int res1 = 0 ;
23186 void *argp2 = 0 ;
23187 int res2 = 0 ;
23188 PyObject * obj0 = 0 ;
23189 PyObject * obj1 = 0 ;
23190 char * kwnames[] = {
23191 (char *) "self",(char *) "window", NULL
23192 };
23193
23194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23196 if (!SWIG_IsOK(res1)) {
23197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23198 }
23199 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23200 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23201 if (!SWIG_IsOK(res2)) {
23202 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23203 }
23204 arg2 = reinterpret_cast< wxWindow * >(argp2);
23205 {
23206 PyThreadState* __tstate = wxPyBeginAllowThreads();
23207 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23208 wxPyEndAllowThreads(__tstate);
23209 if (PyErr_Occurred()) SWIG_fail;
23210 }
23211 {
23212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23213 }
23214 return resultobj;
23215 fail:
23216 return NULL;
23217 }
23218
23219
23220 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23221 PyObject *resultobj = 0;
23222 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23223 wxRect *arg2 = (wxRect *) NULL ;
23224 bool result;
23225 void *argp1 = 0 ;
23226 int res1 = 0 ;
23227 void *argp2 = 0 ;
23228 int res2 = 0 ;
23229 PyObject * obj0 = 0 ;
23230 PyObject * obj1 = 0 ;
23231 char * kwnames[] = {
23232 (char *) "self",(char *) "rect", NULL
23233 };
23234
23235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23237 if (!SWIG_IsOK(res1)) {
23238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23239 }
23240 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23241 if (obj1) {
23242 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23243 if (!SWIG_IsOK(res2)) {
23244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23245 }
23246 arg2 = reinterpret_cast< wxRect * >(argp2);
23247 }
23248 {
23249 PyThreadState* __tstate = wxPyBeginAllowThreads();
23250 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23251 wxPyEndAllowThreads(__tstate);
23252 if (PyErr_Occurred()) SWIG_fail;
23253 }
23254 {
23255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23256 }
23257 return resultobj;
23258 fail:
23259 return NULL;
23260 }
23261
23262
23263 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23264 PyObject *resultobj = 0;
23265 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23266 bool result;
23267 void *argp1 = 0 ;
23268 int res1 = 0 ;
23269 PyObject *swig_obj[1] ;
23270
23271 if (!args) SWIG_fail;
23272 swig_obj[0] = args;
23273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23274 if (!SWIG_IsOK(res1)) {
23275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23276 }
23277 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23278 {
23279 PyThreadState* __tstate = wxPyBeginAllowThreads();
23280 result = (bool)(arg1)->EndDrawingOnTop();
23281 wxPyEndAllowThreads(__tstate);
23282 if (PyErr_Occurred()) SWIG_fail;
23283 }
23284 {
23285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23286 }
23287 return resultobj;
23288 fail:
23289 return NULL;
23290 }
23291
23292
23293 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23294 PyObject *obj;
23295 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23296 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23297 return SWIG_Py_Void();
23298 }
23299
23300 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23301 return SWIG_Python_InitShadowInstance(args);
23302 }
23303
23304 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23305 PyObject *resultobj = 0;
23306 wxWindow *arg1 = (wxWindow *) 0 ;
23307 wxClientDC *result = 0 ;
23308 void *argp1 = 0 ;
23309 int res1 = 0 ;
23310 PyObject * obj0 = 0 ;
23311 char * kwnames[] = {
23312 (char *) "win", NULL
23313 };
23314
23315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
23316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23317 if (!SWIG_IsOK(res1)) {
23318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23319 }
23320 arg1 = reinterpret_cast< wxWindow * >(argp1);
23321 {
23322 if (!wxPyCheckForApp()) SWIG_fail;
23323 PyThreadState* __tstate = wxPyBeginAllowThreads();
23324 result = (wxClientDC *)new wxClientDC(arg1);
23325 wxPyEndAllowThreads(__tstate);
23326 if (PyErr_Occurred()) SWIG_fail;
23327 }
23328 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
23329 return resultobj;
23330 fail:
23331 return NULL;
23332 }
23333
23334
23335 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23336 PyObject *obj;
23337 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23338 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
23339 return SWIG_Py_Void();
23340 }
23341
23342 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23343 return SWIG_Python_InitShadowInstance(args);
23344 }
23345
23346 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23347 PyObject *resultobj = 0;
23348 wxWindow *arg1 = (wxWindow *) 0 ;
23349 wxPaintDC *result = 0 ;
23350 void *argp1 = 0 ;
23351 int res1 = 0 ;
23352 PyObject * obj0 = 0 ;
23353 char * kwnames[] = {
23354 (char *) "win", NULL
23355 };
23356
23357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
23358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23359 if (!SWIG_IsOK(res1)) {
23360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23361 }
23362 arg1 = reinterpret_cast< wxWindow * >(argp1);
23363 {
23364 if (!wxPyCheckForApp()) SWIG_fail;
23365 PyThreadState* __tstate = wxPyBeginAllowThreads();
23366 result = (wxPaintDC *)new wxPaintDC(arg1);
23367 wxPyEndAllowThreads(__tstate);
23368 if (PyErr_Occurred()) SWIG_fail;
23369 }
23370 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
23371 return resultobj;
23372 fail:
23373 return NULL;
23374 }
23375
23376
23377 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23378 PyObject *obj;
23379 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23380 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
23381 return SWIG_Py_Void();
23382 }
23383
23384 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23385 return SWIG_Python_InitShadowInstance(args);
23386 }
23387
23388 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23389 PyObject *resultobj = 0;
23390 wxWindow *arg1 = (wxWindow *) 0 ;
23391 wxWindowDC *result = 0 ;
23392 void *argp1 = 0 ;
23393 int res1 = 0 ;
23394 PyObject * obj0 = 0 ;
23395 char * kwnames[] = {
23396 (char *) "win", NULL
23397 };
23398
23399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
23400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23401 if (!SWIG_IsOK(res1)) {
23402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23403 }
23404 arg1 = reinterpret_cast< wxWindow * >(argp1);
23405 {
23406 if (!wxPyCheckForApp()) SWIG_fail;
23407 PyThreadState* __tstate = wxPyBeginAllowThreads();
23408 result = (wxWindowDC *)new wxWindowDC(arg1);
23409 wxPyEndAllowThreads(__tstate);
23410 if (PyErr_Occurred()) SWIG_fail;
23411 }
23412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
23413 return resultobj;
23414 fail:
23415 return NULL;
23416 }
23417
23418
23419 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23420 PyObject *obj;
23421 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23422 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
23423 return SWIG_Py_Void();
23424 }
23425
23426 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23427 return SWIG_Python_InitShadowInstance(args);
23428 }
23429
23430 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23431 PyObject *resultobj = 0;
23432 wxDC *arg1 = 0 ;
23433 bool arg2 ;
23434 wxMirrorDC *result = 0 ;
23435 void *argp1 = 0 ;
23436 int res1 = 0 ;
23437 bool val2 ;
23438 int ecode2 = 0 ;
23439 PyObject * obj0 = 0 ;
23440 PyObject * obj1 = 0 ;
23441 char * kwnames[] = {
23442 (char *) "dc",(char *) "mirror", NULL
23443 };
23444
23445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23446 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23447 if (!SWIG_IsOK(res1)) {
23448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23449 }
23450 if (!argp1) {
23451 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23452 }
23453 arg1 = reinterpret_cast< wxDC * >(argp1);
23454 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23455 if (!SWIG_IsOK(ecode2)) {
23456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23457 }
23458 arg2 = static_cast< bool >(val2);
23459 {
23460 if (!wxPyCheckForApp()) SWIG_fail;
23461 PyThreadState* __tstate = wxPyBeginAllowThreads();
23462 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23463 wxPyEndAllowThreads(__tstate);
23464 if (PyErr_Occurred()) SWIG_fail;
23465 }
23466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23467 return resultobj;
23468 fail:
23469 return NULL;
23470 }
23471
23472
23473 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23474 PyObject *obj;
23475 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23476 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23477 return SWIG_Py_Void();
23478 }
23479
23480 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23481 return SWIG_Python_InitShadowInstance(args);
23482 }
23483
23484 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23485 PyObject *resultobj = 0;
23486 wxPrintData *arg1 = 0 ;
23487 wxPostScriptDC *result = 0 ;
23488 void *argp1 = 0 ;
23489 int res1 = 0 ;
23490 PyObject * obj0 = 0 ;
23491 char * kwnames[] = {
23492 (char *) "printData", NULL
23493 };
23494
23495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23496 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23497 if (!SWIG_IsOK(res1)) {
23498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23499 }
23500 if (!argp1) {
23501 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23502 }
23503 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23504 {
23505 if (!wxPyCheckForApp()) SWIG_fail;
23506 PyThreadState* __tstate = wxPyBeginAllowThreads();
23507 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23508 wxPyEndAllowThreads(__tstate);
23509 if (PyErr_Occurred()) SWIG_fail;
23510 }
23511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23512 return resultobj;
23513 fail:
23514 return NULL;
23515 }
23516
23517
23518 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23519 PyObject *resultobj = 0;
23520 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23521 wxPrintData *result = 0 ;
23522 void *argp1 = 0 ;
23523 int res1 = 0 ;
23524 PyObject *swig_obj[1] ;
23525
23526 if (!args) SWIG_fail;
23527 swig_obj[0] = args;
23528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23529 if (!SWIG_IsOK(res1)) {
23530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23531 }
23532 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23533 {
23534 PyThreadState* __tstate = wxPyBeginAllowThreads();
23535 {
23536 wxPrintData &_result_ref = (arg1)->GetPrintData();
23537 result = (wxPrintData *) &_result_ref;
23538 }
23539 wxPyEndAllowThreads(__tstate);
23540 if (PyErr_Occurred()) SWIG_fail;
23541 }
23542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23543 return resultobj;
23544 fail:
23545 return NULL;
23546 }
23547
23548
23549 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23550 PyObject *resultobj = 0;
23551 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23552 wxPrintData *arg2 = 0 ;
23553 void *argp1 = 0 ;
23554 int res1 = 0 ;
23555 void *argp2 = 0 ;
23556 int res2 = 0 ;
23557 PyObject * obj0 = 0 ;
23558 PyObject * obj1 = 0 ;
23559 char * kwnames[] = {
23560 (char *) "self",(char *) "data", NULL
23561 };
23562
23563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23565 if (!SWIG_IsOK(res1)) {
23566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23567 }
23568 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23569 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23570 if (!SWIG_IsOK(res2)) {
23571 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23572 }
23573 if (!argp2) {
23574 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23575 }
23576 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23577 {
23578 PyThreadState* __tstate = wxPyBeginAllowThreads();
23579 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23580 wxPyEndAllowThreads(__tstate);
23581 if (PyErr_Occurred()) SWIG_fail;
23582 }
23583 resultobj = SWIG_Py_Void();
23584 return resultobj;
23585 fail:
23586 return NULL;
23587 }
23588
23589
23590 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23591 PyObject *resultobj = 0;
23592 int arg1 ;
23593 int val1 ;
23594 int ecode1 = 0 ;
23595 PyObject * obj0 = 0 ;
23596 char * kwnames[] = {
23597 (char *) "ppi", NULL
23598 };
23599
23600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
23601 ecode1 = SWIG_AsVal_int(obj0, &val1);
23602 if (!SWIG_IsOK(ecode1)) {
23603 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
23604 }
23605 arg1 = static_cast< int >(val1);
23606 {
23607 PyThreadState* __tstate = wxPyBeginAllowThreads();
23608 wxPostScriptDC::SetResolution(arg1);
23609 wxPyEndAllowThreads(__tstate);
23610 if (PyErr_Occurred()) SWIG_fail;
23611 }
23612 resultobj = SWIG_Py_Void();
23613 return resultobj;
23614 fail:
23615 return NULL;
23616 }
23617
23618
23619 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23620 PyObject *resultobj = 0;
23621 int result;
23622
23623 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
23624 {
23625 PyThreadState* __tstate = wxPyBeginAllowThreads();
23626 result = (int)wxPostScriptDC::GetResolution();
23627 wxPyEndAllowThreads(__tstate);
23628 if (PyErr_Occurred()) SWIG_fail;
23629 }
23630 resultobj = SWIG_From_int(static_cast< int >(result));
23631 return resultobj;
23632 fail:
23633 return NULL;
23634 }
23635
23636
23637 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23638 PyObject *obj;
23639 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23640 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
23641 return SWIG_Py_Void();
23642 }
23643
23644 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23645 return SWIG_Python_InitShadowInstance(args);
23646 }
23647
23648 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23649 PyObject *resultobj = 0;
23650 wxString const &arg1_defvalue = wxPyEmptyString ;
23651 wxString *arg1 = (wxString *) &arg1_defvalue ;
23652 wxMetaFile *result = 0 ;
23653 bool temp1 = false ;
23654 PyObject * obj0 = 0 ;
23655 char * kwnames[] = {
23656 (char *) "filename", NULL
23657 };
23658
23659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
23660 if (obj0) {
23661 {
23662 arg1 = wxString_in_helper(obj0);
23663 if (arg1 == NULL) SWIG_fail;
23664 temp1 = true;
23665 }
23666 }
23667 {
23668 if (!wxPyCheckForApp()) SWIG_fail;
23669 PyThreadState* __tstate = wxPyBeginAllowThreads();
23670 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
23671 wxPyEndAllowThreads(__tstate);
23672 if (PyErr_Occurred()) SWIG_fail;
23673 }
23674 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
23675 {
23676 if (temp1)
23677 delete arg1;
23678 }
23679 return resultobj;
23680 fail:
23681 {
23682 if (temp1)
23683 delete arg1;
23684 }
23685 return NULL;
23686 }
23687
23688
23689 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23690 PyObject *resultobj = 0;
23691 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23692 void *argp1 = 0 ;
23693 int res1 = 0 ;
23694 PyObject *swig_obj[1] ;
23695
23696 if (!args) SWIG_fail;
23697 swig_obj[0] = args;
23698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
23699 if (!SWIG_IsOK(res1)) {
23700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23701 }
23702 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23703 {
23704 PyThreadState* __tstate = wxPyBeginAllowThreads();
23705 delete arg1;
23706
23707 wxPyEndAllowThreads(__tstate);
23708 if (PyErr_Occurred()) SWIG_fail;
23709 }
23710 resultobj = SWIG_Py_Void();
23711 return resultobj;
23712 fail:
23713 return NULL;
23714 }
23715
23716
23717 SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23718 PyObject *resultobj = 0;
23719 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23720 bool result;
23721 void *argp1 = 0 ;
23722 int res1 = 0 ;
23723 PyObject *swig_obj[1] ;
23724
23725 if (!args) SWIG_fail;
23726 swig_obj[0] = args;
23727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23728 if (!SWIG_IsOK(res1)) {
23729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23730 }
23731 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23732 {
23733 PyThreadState* __tstate = wxPyBeginAllowThreads();
23734 result = (bool)(arg1)->Ok();
23735 wxPyEndAllowThreads(__tstate);
23736 if (PyErr_Occurred()) SWIG_fail;
23737 }
23738 {
23739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23740 }
23741 return resultobj;
23742 fail:
23743 return NULL;
23744 }
23745
23746
23747 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23748 PyObject *resultobj = 0;
23749 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23750 int arg2 = (int) 0 ;
23751 int arg3 = (int) 0 ;
23752 bool result;
23753 void *argp1 = 0 ;
23754 int res1 = 0 ;
23755 int val2 ;
23756 int ecode2 = 0 ;
23757 int val3 ;
23758 int ecode3 = 0 ;
23759 PyObject * obj0 = 0 ;
23760 PyObject * obj1 = 0 ;
23761 PyObject * obj2 = 0 ;
23762 char * kwnames[] = {
23763 (char *) "self",(char *) "width",(char *) "height", NULL
23764 };
23765
23766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23768 if (!SWIG_IsOK(res1)) {
23769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23770 }
23771 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23772 if (obj1) {
23773 ecode2 = SWIG_AsVal_int(obj1, &val2);
23774 if (!SWIG_IsOK(ecode2)) {
23775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
23776 }
23777 arg2 = static_cast< int >(val2);
23778 }
23779 if (obj2) {
23780 ecode3 = SWIG_AsVal_int(obj2, &val3);
23781 if (!SWIG_IsOK(ecode3)) {
23782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
23783 }
23784 arg3 = static_cast< int >(val3);
23785 }
23786 {
23787 PyThreadState* __tstate = wxPyBeginAllowThreads();
23788 result = (bool)(arg1)->SetClipboard(arg2,arg3);
23789 wxPyEndAllowThreads(__tstate);
23790 if (PyErr_Occurred()) SWIG_fail;
23791 }
23792 {
23793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23794 }
23795 return resultobj;
23796 fail:
23797 return NULL;
23798 }
23799
23800
23801 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23802 PyObject *resultobj = 0;
23803 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23804 wxSize result;
23805 void *argp1 = 0 ;
23806 int res1 = 0 ;
23807 PyObject *swig_obj[1] ;
23808
23809 if (!args) SWIG_fail;
23810 swig_obj[0] = args;
23811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23812 if (!SWIG_IsOK(res1)) {
23813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23814 }
23815 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23816 {
23817 PyThreadState* __tstate = wxPyBeginAllowThreads();
23818 result = (arg1)->GetSize();
23819 wxPyEndAllowThreads(__tstate);
23820 if (PyErr_Occurred()) SWIG_fail;
23821 }
23822 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
23823 return resultobj;
23824 fail:
23825 return NULL;
23826 }
23827
23828
23829 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23830 PyObject *resultobj = 0;
23831 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23832 int result;
23833 void *argp1 = 0 ;
23834 int res1 = 0 ;
23835 PyObject *swig_obj[1] ;
23836
23837 if (!args) SWIG_fail;
23838 swig_obj[0] = args;
23839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23840 if (!SWIG_IsOK(res1)) {
23841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23842 }
23843 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23844 {
23845 PyThreadState* __tstate = wxPyBeginAllowThreads();
23846 result = (int)(arg1)->GetWidth();
23847 wxPyEndAllowThreads(__tstate);
23848 if (PyErr_Occurred()) SWIG_fail;
23849 }
23850 resultobj = SWIG_From_int(static_cast< int >(result));
23851 return resultobj;
23852 fail:
23853 return NULL;
23854 }
23855
23856
23857 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23858 PyObject *resultobj = 0;
23859 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23860 int result;
23861 void *argp1 = 0 ;
23862 int res1 = 0 ;
23863 PyObject *swig_obj[1] ;
23864
23865 if (!args) SWIG_fail;
23866 swig_obj[0] = args;
23867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23868 if (!SWIG_IsOK(res1)) {
23869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23870 }
23871 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23872 {
23873 PyThreadState* __tstate = wxPyBeginAllowThreads();
23874 result = (int)(arg1)->GetHeight();
23875 wxPyEndAllowThreads(__tstate);
23876 if (PyErr_Occurred()) SWIG_fail;
23877 }
23878 resultobj = SWIG_From_int(static_cast< int >(result));
23879 return resultobj;
23880 fail:
23881 return NULL;
23882 }
23883
23884
23885 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23886 PyObject *obj;
23887 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23888 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
23889 return SWIG_Py_Void();
23890 }
23891
23892 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23893 return SWIG_Python_InitShadowInstance(args);
23894 }
23895
23896 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23897 PyObject *resultobj = 0;
23898 wxString const &arg1_defvalue = wxPyEmptyString ;
23899 wxString *arg1 = (wxString *) &arg1_defvalue ;
23900 int arg2 = (int) 0 ;
23901 int arg3 = (int) 0 ;
23902 wxString const &arg4_defvalue = wxPyEmptyString ;
23903 wxString *arg4 = (wxString *) &arg4_defvalue ;
23904 wxMetaFileDC *result = 0 ;
23905 bool temp1 = false ;
23906 int val2 ;
23907 int ecode2 = 0 ;
23908 int val3 ;
23909 int ecode3 = 0 ;
23910 bool temp4 = false ;
23911 PyObject * obj0 = 0 ;
23912 PyObject * obj1 = 0 ;
23913 PyObject * obj2 = 0 ;
23914 PyObject * obj3 = 0 ;
23915 char * kwnames[] = {
23916 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
23917 };
23918
23919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23920 if (obj0) {
23921 {
23922 arg1 = wxString_in_helper(obj0);
23923 if (arg1 == NULL) SWIG_fail;
23924 temp1 = true;
23925 }
23926 }
23927 if (obj1) {
23928 ecode2 = SWIG_AsVal_int(obj1, &val2);
23929 if (!SWIG_IsOK(ecode2)) {
23930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
23931 }
23932 arg2 = static_cast< int >(val2);
23933 }
23934 if (obj2) {
23935 ecode3 = SWIG_AsVal_int(obj2, &val3);
23936 if (!SWIG_IsOK(ecode3)) {
23937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
23938 }
23939 arg3 = static_cast< int >(val3);
23940 }
23941 if (obj3) {
23942 {
23943 arg4 = wxString_in_helper(obj3);
23944 if (arg4 == NULL) SWIG_fail;
23945 temp4 = true;
23946 }
23947 }
23948 {
23949 if (!wxPyCheckForApp()) SWIG_fail;
23950 PyThreadState* __tstate = wxPyBeginAllowThreads();
23951 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
23952 wxPyEndAllowThreads(__tstate);
23953 if (PyErr_Occurred()) SWIG_fail;
23954 }
23955 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
23956 {
23957 if (temp1)
23958 delete arg1;
23959 }
23960 {
23961 if (temp4)
23962 delete arg4;
23963 }
23964 return resultobj;
23965 fail:
23966 {
23967 if (temp1)
23968 delete arg1;
23969 }
23970 {
23971 if (temp4)
23972 delete arg4;
23973 }
23974 return NULL;
23975 }
23976
23977
23978 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23979 PyObject *resultobj = 0;
23980 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
23981 wxMetaFile *result = 0 ;
23982 void *argp1 = 0 ;
23983 int res1 = 0 ;
23984 PyObject *swig_obj[1] ;
23985
23986 if (!args) SWIG_fail;
23987 swig_obj[0] = args;
23988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
23989 if (!SWIG_IsOK(res1)) {
23990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
23991 }
23992 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
23993 {
23994 PyThreadState* __tstate = wxPyBeginAllowThreads();
23995 result = (wxMetaFile *)(arg1)->Close();
23996 wxPyEndAllowThreads(__tstate);
23997 if (PyErr_Occurred()) SWIG_fail;
23998 }
23999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
24000 return resultobj;
24001 fail:
24002 return NULL;
24003 }
24004
24005
24006 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24007 PyObject *obj;
24008 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24009 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24010 return SWIG_Py_Void();
24011 }
24012
24013 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24014 return SWIG_Python_InitShadowInstance(args);
24015 }
24016
24017 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24018 PyObject *resultobj = 0;
24019 wxPrintData *arg1 = 0 ;
24020 wxPrinterDC *result = 0 ;
24021 void *argp1 = 0 ;
24022 int res1 = 0 ;
24023 PyObject * obj0 = 0 ;
24024 char * kwnames[] = {
24025 (char *) "printData", NULL
24026 };
24027
24028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24029 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24030 if (!SWIG_IsOK(res1)) {
24031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24032 }
24033 if (!argp1) {
24034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24035 }
24036 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24037 {
24038 if (!wxPyCheckForApp()) SWIG_fail;
24039 PyThreadState* __tstate = wxPyBeginAllowThreads();
24040 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24041 wxPyEndAllowThreads(__tstate);
24042 if (PyErr_Occurred()) SWIG_fail;
24043 }
24044 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24045 return resultobj;
24046 fail:
24047 return NULL;
24048 }
24049
24050
24051 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24052 PyObject *obj;
24053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24054 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24055 return SWIG_Py_Void();
24056 }
24057
24058 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24059 return SWIG_Python_InitShadowInstance(args);
24060 }
24061
24062 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24063 PyObject *resultobj = 0;
24064 int arg1 ;
24065 int arg2 ;
24066 int arg3 = (int) true ;
24067 int arg4 = (int) 1 ;
24068 wxImageList *result = 0 ;
24069 int val1 ;
24070 int ecode1 = 0 ;
24071 int val2 ;
24072 int ecode2 = 0 ;
24073 int val3 ;
24074 int ecode3 = 0 ;
24075 int val4 ;
24076 int ecode4 = 0 ;
24077 PyObject * obj0 = 0 ;
24078 PyObject * obj1 = 0 ;
24079 PyObject * obj2 = 0 ;
24080 PyObject * obj3 = 0 ;
24081 char * kwnames[] = {
24082 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
24083 };
24084
24085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24086 ecode1 = SWIG_AsVal_int(obj0, &val1);
24087 if (!SWIG_IsOK(ecode1)) {
24088 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
24089 }
24090 arg1 = static_cast< int >(val1);
24091 ecode2 = SWIG_AsVal_int(obj1, &val2);
24092 if (!SWIG_IsOK(ecode2)) {
24093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
24094 }
24095 arg2 = static_cast< int >(val2);
24096 if (obj2) {
24097 ecode3 = SWIG_AsVal_int(obj2, &val3);
24098 if (!SWIG_IsOK(ecode3)) {
24099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
24100 }
24101 arg3 = static_cast< int >(val3);
24102 }
24103 if (obj3) {
24104 ecode4 = SWIG_AsVal_int(obj3, &val4);
24105 if (!SWIG_IsOK(ecode4)) {
24106 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
24107 }
24108 arg4 = static_cast< int >(val4);
24109 }
24110 {
24111 if (!wxPyCheckForApp()) SWIG_fail;
24112 PyThreadState* __tstate = wxPyBeginAllowThreads();
24113 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
24114 wxPyEndAllowThreads(__tstate);
24115 if (PyErr_Occurred()) SWIG_fail;
24116 }
24117 {
24118 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
24119 }
24120 return resultobj;
24121 fail:
24122 return NULL;
24123 }
24124
24125
24126 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24127 PyObject *resultobj = 0;
24128 wxImageList *arg1 = (wxImageList *) 0 ;
24129 void *argp1 = 0 ;
24130 int res1 = 0 ;
24131 PyObject *swig_obj[1] ;
24132
24133 if (!args) SWIG_fail;
24134 swig_obj[0] = args;
24135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
24136 if (!SWIG_IsOK(res1)) {
24137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
24138 }
24139 arg1 = reinterpret_cast< wxImageList * >(argp1);
24140 {
24141 PyThreadState* __tstate = wxPyBeginAllowThreads();
24142 delete arg1;
24143
24144 wxPyEndAllowThreads(__tstate);
24145 if (PyErr_Occurred()) SWIG_fail;
24146 }
24147 resultobj = SWIG_Py_Void();
24148 return resultobj;
24149 fail:
24150 return NULL;
24151 }
24152
24153
24154 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24155 PyObject *resultobj = 0;
24156 wxImageList *arg1 = (wxImageList *) 0 ;
24157 wxBitmap *arg2 = 0 ;
24158 wxBitmap const &arg3_defvalue = wxNullBitmap ;
24159 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
24160 int result;
24161 void *argp1 = 0 ;
24162 int res1 = 0 ;
24163 void *argp2 = 0 ;
24164 int res2 = 0 ;
24165 void *argp3 = 0 ;
24166 int res3 = 0 ;
24167 PyObject * obj0 = 0 ;
24168 PyObject * obj1 = 0 ;
24169 PyObject * obj2 = 0 ;
24170 char * kwnames[] = {
24171 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
24172 };
24173
24174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24176 if (!SWIG_IsOK(res1)) {
24177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
24178 }
24179 arg1 = reinterpret_cast< wxImageList * >(argp1);
24180 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24181 if (!SWIG_IsOK(res2)) {
24182 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24183 }
24184 if (!argp2) {
24185 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24186 }
24187 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24188 if (obj2) {
24189 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
24190 if (!SWIG_IsOK(res3)) {
24191 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24192 }
24193 if (!argp3) {
24194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24195 }
24196 arg3 = reinterpret_cast< wxBitmap * >(argp3);
24197 }
24198 {
24199 PyThreadState* __tstate = wxPyBeginAllowThreads();
24200 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
24201 wxPyEndAllowThreads(__tstate);
24202 if (PyErr_Occurred()) SWIG_fail;
24203 }
24204 resultobj = SWIG_From_int(static_cast< int >(result));
24205 return resultobj;
24206 fail:
24207 return NULL;
24208 }
24209
24210
24211 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24212 PyObject *resultobj = 0;
24213 wxImageList *arg1 = (wxImageList *) 0 ;
24214 wxBitmap *arg2 = 0 ;
24215 wxColour *arg3 = 0 ;
24216 int result;
24217 void *argp1 = 0 ;
24218 int res1 = 0 ;
24219 void *argp2 = 0 ;
24220 int res2 = 0 ;
24221 wxColour temp3 ;
24222 PyObject * obj0 = 0 ;
24223 PyObject * obj1 = 0 ;
24224 PyObject * obj2 = 0 ;
24225 char * kwnames[] = {
24226 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
24227 };
24228
24229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24231 if (!SWIG_IsOK(res1)) {
24232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
24233 }
24234 arg1 = reinterpret_cast< wxImageList * >(argp1);
24235 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24236 if (!SWIG_IsOK(res2)) {
24237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24238 }
24239 if (!argp2) {
24240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24241 }
24242 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24243 {
24244 arg3 = &temp3;
24245 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24246 }
24247 {
24248 PyThreadState* __tstate = wxPyBeginAllowThreads();
24249 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
24250 wxPyEndAllowThreads(__tstate);
24251 if (PyErr_Occurred()) SWIG_fail;
24252 }
24253 resultobj = SWIG_From_int(static_cast< int >(result));
24254 return resultobj;
24255 fail:
24256 return NULL;
24257 }
24258
24259
24260 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24261 PyObject *resultobj = 0;
24262 wxImageList *arg1 = (wxImageList *) 0 ;
24263 wxIcon *arg2 = 0 ;
24264 int result;
24265 void *argp1 = 0 ;
24266 int res1 = 0 ;
24267 void *argp2 = 0 ;
24268 int res2 = 0 ;
24269 PyObject * obj0 = 0 ;
24270 PyObject * obj1 = 0 ;
24271 char * kwnames[] = {
24272 (char *) "self",(char *) "icon", NULL
24273 };
24274
24275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
24276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24277 if (!SWIG_IsOK(res1)) {
24278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
24279 }
24280 arg1 = reinterpret_cast< wxImageList * >(argp1);
24281 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
24282 if (!SWIG_IsOK(res2)) {
24283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
24284 }
24285 if (!argp2) {
24286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
24287 }
24288 arg2 = reinterpret_cast< wxIcon * >(argp2);
24289 {
24290 PyThreadState* __tstate = wxPyBeginAllowThreads();
24291 result = (int)(arg1)->Add((wxIcon const &)*arg2);
24292 wxPyEndAllowThreads(__tstate);
24293 if (PyErr_Occurred()) SWIG_fail;
24294 }
24295 resultobj = SWIG_From_int(static_cast< int >(result));
24296 return resultobj;
24297 fail:
24298 return NULL;
24299 }
24300
24301
24302 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24303 PyObject *resultobj = 0;
24304 wxImageList *arg1 = (wxImageList *) 0 ;
24305 int arg2 ;
24306 SwigValueWrapper<wxBitmap > result;
24307 void *argp1 = 0 ;
24308 int res1 = 0 ;
24309 int val2 ;
24310 int ecode2 = 0 ;
24311 PyObject * obj0 = 0 ;
24312 PyObject * obj1 = 0 ;
24313 char * kwnames[] = {
24314 (char *) "self",(char *) "index", NULL
24315 };
24316
24317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
24318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24319 if (!SWIG_IsOK(res1)) {
24320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
24321 }
24322 arg1 = reinterpret_cast< wxImageList * >(argp1);
24323 ecode2 = SWIG_AsVal_int(obj1, &val2);
24324 if (!SWIG_IsOK(ecode2)) {
24325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
24326 }
24327 arg2 = static_cast< int >(val2);
24328 {
24329 PyThreadState* __tstate = wxPyBeginAllowThreads();
24330 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
24331 wxPyEndAllowThreads(__tstate);
24332 if (PyErr_Occurred()) SWIG_fail;
24333 }
24334 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
24335 return resultobj;
24336 fail:
24337 return NULL;
24338 }
24339
24340
24341 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24342 PyObject *resultobj = 0;
24343 wxImageList *arg1 = (wxImageList *) 0 ;
24344 int arg2 ;
24345 wxIcon result;
24346 void *argp1 = 0 ;
24347 int res1 = 0 ;
24348 int val2 ;
24349 int ecode2 = 0 ;
24350 PyObject * obj0 = 0 ;
24351 PyObject * obj1 = 0 ;
24352 char * kwnames[] = {
24353 (char *) "self",(char *) "index", NULL
24354 };
24355
24356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
24357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24358 if (!SWIG_IsOK(res1)) {
24359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
24360 }
24361 arg1 = reinterpret_cast< wxImageList * >(argp1);
24362 ecode2 = SWIG_AsVal_int(obj1, &val2);
24363 if (!SWIG_IsOK(ecode2)) {
24364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
24365 }
24366 arg2 = static_cast< int >(val2);
24367 {
24368 PyThreadState* __tstate = wxPyBeginAllowThreads();
24369 result = ((wxImageList const *)arg1)->GetIcon(arg2);
24370 wxPyEndAllowThreads(__tstate);
24371 if (PyErr_Occurred()) SWIG_fail;
24372 }
24373 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
24374 return resultobj;
24375 fail:
24376 return NULL;
24377 }
24378
24379
24380 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24381 PyObject *resultobj = 0;
24382 wxImageList *arg1 = (wxImageList *) 0 ;
24383 int arg2 ;
24384 wxBitmap *arg3 = 0 ;
24385 wxBitmap const &arg4_defvalue = wxNullBitmap ;
24386 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
24387 bool result;
24388 void *argp1 = 0 ;
24389 int res1 = 0 ;
24390 int val2 ;
24391 int ecode2 = 0 ;
24392 void *argp3 = 0 ;
24393 int res3 = 0 ;
24394 void *argp4 = 0 ;
24395 int res4 = 0 ;
24396 PyObject * obj0 = 0 ;
24397 PyObject * obj1 = 0 ;
24398 PyObject * obj2 = 0 ;
24399 PyObject * obj3 = 0 ;
24400 char * kwnames[] = {
24401 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
24402 };
24403
24404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24406 if (!SWIG_IsOK(res1)) {
24407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
24408 }
24409 arg1 = reinterpret_cast< wxImageList * >(argp1);
24410 ecode2 = SWIG_AsVal_int(obj1, &val2);
24411 if (!SWIG_IsOK(ecode2)) {
24412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
24413 }
24414 arg2 = static_cast< int >(val2);
24415 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
24416 if (!SWIG_IsOK(res3)) {
24417 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24418 }
24419 if (!argp3) {
24420 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24421 }
24422 arg3 = reinterpret_cast< wxBitmap * >(argp3);
24423 if (obj3) {
24424 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
24425 if (!SWIG_IsOK(res4)) {
24426 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24427 }
24428 if (!argp4) {
24429 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24430 }
24431 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24432 }
24433 {
24434 PyThreadState* __tstate = wxPyBeginAllowThreads();
24435 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
24436 wxPyEndAllowThreads(__tstate);
24437 if (PyErr_Occurred()) SWIG_fail;
24438 }
24439 {
24440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24441 }
24442 return resultobj;
24443 fail:
24444 return NULL;
24445 }
24446
24447
24448 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24449 PyObject *resultobj = 0;
24450 wxImageList *arg1 = (wxImageList *) 0 ;
24451 int arg2 ;
24452 wxDC *arg3 = 0 ;
24453 int arg4 ;
24454 int arg5 ;
24455 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
24456 bool arg7 = (bool) (bool)false ;
24457 bool result;
24458 void *argp1 = 0 ;
24459 int res1 = 0 ;
24460 int val2 ;
24461 int ecode2 = 0 ;
24462 void *argp3 = 0 ;
24463 int res3 = 0 ;
24464 int val4 ;
24465 int ecode4 = 0 ;
24466 int val5 ;
24467 int ecode5 = 0 ;
24468 int val6 ;
24469 int ecode6 = 0 ;
24470 bool val7 ;
24471 int ecode7 = 0 ;
24472 PyObject * obj0 = 0 ;
24473 PyObject * obj1 = 0 ;
24474 PyObject * obj2 = 0 ;
24475 PyObject * obj3 = 0 ;
24476 PyObject * obj4 = 0 ;
24477 PyObject * obj5 = 0 ;
24478 PyObject * obj6 = 0 ;
24479 char * kwnames[] = {
24480 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
24481 };
24482
24483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24485 if (!SWIG_IsOK(res1)) {
24486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
24487 }
24488 arg1 = reinterpret_cast< wxImageList * >(argp1);
24489 ecode2 = SWIG_AsVal_int(obj1, &val2);
24490 if (!SWIG_IsOK(ecode2)) {
24491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
24492 }
24493 arg2 = static_cast< int >(val2);
24494 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24495 if (!SWIG_IsOK(res3)) {
24496 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
24497 }
24498 if (!argp3) {
24499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
24500 }
24501 arg3 = reinterpret_cast< wxDC * >(argp3);
24502 ecode4 = SWIG_AsVal_int(obj3, &val4);
24503 if (!SWIG_IsOK(ecode4)) {
24504 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
24505 }
24506 arg4 = static_cast< int >(val4);
24507 ecode5 = SWIG_AsVal_int(obj4, &val5);
24508 if (!SWIG_IsOK(ecode5)) {
24509 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
24510 }
24511 arg5 = static_cast< int >(val5);
24512 if (obj5) {
24513 ecode6 = SWIG_AsVal_int(obj5, &val6);
24514 if (!SWIG_IsOK(ecode6)) {
24515 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
24516 }
24517 arg6 = static_cast< int >(val6);
24518 }
24519 if (obj6) {
24520 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24521 if (!SWIG_IsOK(ecode7)) {
24522 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
24523 }
24524 arg7 = static_cast< bool >(val7);
24525 }
24526 {
24527 PyThreadState* __tstate = wxPyBeginAllowThreads();
24528 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
24529 wxPyEndAllowThreads(__tstate);
24530 if (PyErr_Occurred()) SWIG_fail;
24531 }
24532 {
24533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24534 }
24535 return resultobj;
24536 fail:
24537 return NULL;
24538 }
24539
24540
24541 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24542 PyObject *resultobj = 0;
24543 wxImageList *arg1 = (wxImageList *) 0 ;
24544 int result;
24545 void *argp1 = 0 ;
24546 int res1 = 0 ;
24547 PyObject *swig_obj[1] ;
24548
24549 if (!args) SWIG_fail;
24550 swig_obj[0] = args;
24551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24552 if (!SWIG_IsOK(res1)) {
24553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
24554 }
24555 arg1 = reinterpret_cast< wxImageList * >(argp1);
24556 {
24557 PyThreadState* __tstate = wxPyBeginAllowThreads();
24558 result = (int)(arg1)->GetImageCount();
24559 wxPyEndAllowThreads(__tstate);
24560 if (PyErr_Occurred()) SWIG_fail;
24561 }
24562 resultobj = SWIG_From_int(static_cast< int >(result));
24563 return resultobj;
24564 fail:
24565 return NULL;
24566 }
24567
24568
24569 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24570 PyObject *resultobj = 0;
24571 wxImageList *arg1 = (wxImageList *) 0 ;
24572 int arg2 ;
24573 bool result;
24574 void *argp1 = 0 ;
24575 int res1 = 0 ;
24576 int val2 ;
24577 int ecode2 = 0 ;
24578 PyObject * obj0 = 0 ;
24579 PyObject * obj1 = 0 ;
24580 char * kwnames[] = {
24581 (char *) "self",(char *) "index", NULL
24582 };
24583
24584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
24585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24586 if (!SWIG_IsOK(res1)) {
24587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
24588 }
24589 arg1 = reinterpret_cast< wxImageList * >(argp1);
24590 ecode2 = SWIG_AsVal_int(obj1, &val2);
24591 if (!SWIG_IsOK(ecode2)) {
24592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
24593 }
24594 arg2 = static_cast< int >(val2);
24595 {
24596 PyThreadState* __tstate = wxPyBeginAllowThreads();
24597 result = (bool)(arg1)->Remove(arg2);
24598 wxPyEndAllowThreads(__tstate);
24599 if (PyErr_Occurred()) SWIG_fail;
24600 }
24601 {
24602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24603 }
24604 return resultobj;
24605 fail:
24606 return NULL;
24607 }
24608
24609
24610 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24611 PyObject *resultobj = 0;
24612 wxImageList *arg1 = (wxImageList *) 0 ;
24613 bool result;
24614 void *argp1 = 0 ;
24615 int res1 = 0 ;
24616 PyObject *swig_obj[1] ;
24617
24618 if (!args) SWIG_fail;
24619 swig_obj[0] = args;
24620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24621 if (!SWIG_IsOK(res1)) {
24622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
24623 }
24624 arg1 = reinterpret_cast< wxImageList * >(argp1);
24625 {
24626 PyThreadState* __tstate = wxPyBeginAllowThreads();
24627 result = (bool)(arg1)->RemoveAll();
24628 wxPyEndAllowThreads(__tstate);
24629 if (PyErr_Occurred()) SWIG_fail;
24630 }
24631 {
24632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24633 }
24634 return resultobj;
24635 fail:
24636 return NULL;
24637 }
24638
24639
24640 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24641 PyObject *resultobj = 0;
24642 wxImageList *arg1 = (wxImageList *) 0 ;
24643 int arg2 ;
24644 int *arg3 = 0 ;
24645 int *arg4 = 0 ;
24646 void *argp1 = 0 ;
24647 int res1 = 0 ;
24648 int val2 ;
24649 int ecode2 = 0 ;
24650 int temp3 ;
24651 int res3 = SWIG_TMPOBJ ;
24652 int temp4 ;
24653 int res4 = SWIG_TMPOBJ ;
24654 PyObject * obj0 = 0 ;
24655 PyObject * obj1 = 0 ;
24656 char * kwnames[] = {
24657 (char *) "self",(char *) "index", NULL
24658 };
24659
24660 arg3 = &temp3;
24661 arg4 = &temp4;
24662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
24663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24664 if (!SWIG_IsOK(res1)) {
24665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
24666 }
24667 arg1 = reinterpret_cast< wxImageList * >(argp1);
24668 ecode2 = SWIG_AsVal_int(obj1, &val2);
24669 if (!SWIG_IsOK(ecode2)) {
24670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
24671 }
24672 arg2 = static_cast< int >(val2);
24673 {
24674 PyThreadState* __tstate = wxPyBeginAllowThreads();
24675 (arg1)->GetSize(arg2,*arg3,*arg4);
24676 wxPyEndAllowThreads(__tstate);
24677 if (PyErr_Occurred()) SWIG_fail;
24678 }
24679 resultobj = SWIG_Py_Void();
24680 if (SWIG_IsTmpObj(res3)) {
24681 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
24682 } else {
24683 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24684 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
24685 }
24686 if (SWIG_IsTmpObj(res4)) {
24687 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
24688 } else {
24689 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24690 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
24691 }
24692 return resultobj;
24693 fail:
24694 return NULL;
24695 }
24696
24697
24698 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24699 PyObject *obj;
24700 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24701 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
24702 return SWIG_Py_Void();
24703 }
24704
24705 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24706 return SWIG_Python_InitShadowInstance(args);
24707 }
24708
24709 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24710 PyObject *resultobj = 0;
24711 wxStockGDI *result = 0 ;
24712
24713 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
24714 {
24715 PyThreadState* __tstate = wxPyBeginAllowThreads();
24716 result = (wxStockGDI *)new wxStockGDI();
24717 wxPyEndAllowThreads(__tstate);
24718 if (PyErr_Occurred()) SWIG_fail;
24719 }
24720 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
24721 return resultobj;
24722 fail:
24723 return NULL;
24724 }
24725
24726
24727 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24728 PyObject *resultobj = 0;
24729 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
24730 void *argp1 = 0 ;
24731 int res1 = 0 ;
24732 PyObject *swig_obj[1] ;
24733
24734 if (!args) SWIG_fail;
24735 swig_obj[0] = args;
24736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
24737 if (!SWIG_IsOK(res1)) {
24738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
24739 }
24740 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
24741 {
24742 PyThreadState* __tstate = wxPyBeginAllowThreads();
24743 delete arg1;
24744
24745 wxPyEndAllowThreads(__tstate);
24746 if (PyErr_Occurred()) SWIG_fail;
24747 }
24748 resultobj = SWIG_Py_Void();
24749 return resultobj;
24750 fail:
24751 return NULL;
24752 }
24753
24754
24755 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24756 PyObject *resultobj = 0;
24757
24758 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
24759 {
24760 PyThreadState* __tstate = wxPyBeginAllowThreads();
24761 wxStockGDI::DeleteAll();
24762 wxPyEndAllowThreads(__tstate);
24763 if (PyErr_Occurred()) SWIG_fail;
24764 }
24765 resultobj = SWIG_Py_Void();
24766 return resultobj;
24767 fail:
24768 return NULL;
24769 }
24770
24771
24772 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24773 PyObject *resultobj = 0;
24774 wxStockGDI *result = 0 ;
24775
24776 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
24777 {
24778 PyThreadState* __tstate = wxPyBeginAllowThreads();
24779 {
24780 wxStockGDI &_result_ref = wxStockGDI::instance();
24781 result = (wxStockGDI *) &_result_ref;
24782 }
24783 wxPyEndAllowThreads(__tstate);
24784 if (PyErr_Occurred()) SWIG_fail;
24785 }
24786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
24787 return resultobj;
24788 fail:
24789 return NULL;
24790 }
24791
24792
24793 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24794 PyObject *resultobj = 0;
24795 wxStockGDI::Item arg1 ;
24796 wxBrush *result = 0 ;
24797 int val1 ;
24798 int ecode1 = 0 ;
24799 PyObject * obj0 = 0 ;
24800 char * kwnames[] = {
24801 (char *) "item", NULL
24802 };
24803
24804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
24805 ecode1 = SWIG_AsVal_int(obj0, &val1);
24806 if (!SWIG_IsOK(ecode1)) {
24807 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24808 }
24809 arg1 = static_cast< wxStockGDI::Item >(val1);
24810 {
24811 PyThreadState* __tstate = wxPyBeginAllowThreads();
24812 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
24813 wxPyEndAllowThreads(__tstate);
24814 if (PyErr_Occurred()) SWIG_fail;
24815 }
24816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
24817 return resultobj;
24818 fail:
24819 return NULL;
24820 }
24821
24822
24823 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24824 PyObject *resultobj = 0;
24825 wxStockGDI::Item arg1 ;
24826 wxColour *result = 0 ;
24827 int val1 ;
24828 int ecode1 = 0 ;
24829 PyObject * obj0 = 0 ;
24830 char * kwnames[] = {
24831 (char *) "item", NULL
24832 };
24833
24834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
24835 ecode1 = SWIG_AsVal_int(obj0, &val1);
24836 if (!SWIG_IsOK(ecode1)) {
24837 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24838 }
24839 arg1 = static_cast< wxStockGDI::Item >(val1);
24840 {
24841 PyThreadState* __tstate = wxPyBeginAllowThreads();
24842 result = (wxColour *)wxStockGDI::GetColour(arg1);
24843 wxPyEndAllowThreads(__tstate);
24844 if (PyErr_Occurred()) SWIG_fail;
24845 }
24846 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
24847 return resultobj;
24848 fail:
24849 return NULL;
24850 }
24851
24852
24853 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24854 PyObject *resultobj = 0;
24855 wxStockGDI::Item arg1 ;
24856 wxCursor *result = 0 ;
24857 int val1 ;
24858 int ecode1 = 0 ;
24859 PyObject * obj0 = 0 ;
24860 char * kwnames[] = {
24861 (char *) "item", NULL
24862 };
24863
24864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
24865 ecode1 = SWIG_AsVal_int(obj0, &val1);
24866 if (!SWIG_IsOK(ecode1)) {
24867 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24868 }
24869 arg1 = static_cast< wxStockGDI::Item >(val1);
24870 {
24871 PyThreadState* __tstate = wxPyBeginAllowThreads();
24872 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
24873 wxPyEndAllowThreads(__tstate);
24874 if (PyErr_Occurred()) SWIG_fail;
24875 }
24876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
24877 return resultobj;
24878 fail:
24879 return NULL;
24880 }
24881
24882
24883 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24884 PyObject *resultobj = 0;
24885 wxStockGDI::Item arg1 ;
24886 wxPen *result = 0 ;
24887 int val1 ;
24888 int ecode1 = 0 ;
24889 PyObject * obj0 = 0 ;
24890 char * kwnames[] = {
24891 (char *) "item", NULL
24892 };
24893
24894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
24895 ecode1 = SWIG_AsVal_int(obj0, &val1);
24896 if (!SWIG_IsOK(ecode1)) {
24897 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24898 }
24899 arg1 = static_cast< wxStockGDI::Item >(val1);
24900 {
24901 PyThreadState* __tstate = wxPyBeginAllowThreads();
24902 result = (wxPen *)wxStockGDI::GetPen(arg1);
24903 wxPyEndAllowThreads(__tstate);
24904 if (PyErr_Occurred()) SWIG_fail;
24905 }
24906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
24907 return resultobj;
24908 fail:
24909 return NULL;
24910 }
24911
24912
24913 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24914 PyObject *resultobj = 0;
24915 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
24916 wxStockGDI::Item arg2 ;
24917 wxFont *result = 0 ;
24918 void *argp1 = 0 ;
24919 int res1 = 0 ;
24920 int val2 ;
24921 int ecode2 = 0 ;
24922 PyObject * obj0 = 0 ;
24923 PyObject * obj1 = 0 ;
24924 char * kwnames[] = {
24925 (char *) "self",(char *) "item", NULL
24926 };
24927
24928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
24929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
24930 if (!SWIG_IsOK(res1)) {
24931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
24932 }
24933 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
24934 ecode2 = SWIG_AsVal_int(obj1, &val2);
24935 if (!SWIG_IsOK(ecode2)) {
24936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
24937 }
24938 arg2 = static_cast< wxStockGDI::Item >(val2);
24939 {
24940 PyThreadState* __tstate = wxPyBeginAllowThreads();
24941 result = (wxFont *)(arg1)->GetFont(arg2);
24942 wxPyEndAllowThreads(__tstate);
24943 if (PyErr_Occurred()) SWIG_fail;
24944 }
24945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
24946 return resultobj;
24947 fail:
24948 return NULL;
24949 }
24950
24951
24952 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24953 PyObject *obj;
24954 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24955 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
24956 return SWIG_Py_Void();
24957 }
24958
24959 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24960 return SWIG_Python_InitShadowInstance(args);
24961 }
24962
24963 SWIGINTERN int NullBitmap_set(PyObject *) {
24964 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
24965 return 1;
24966 }
24967
24968
24969 SWIGINTERN PyObject *NullBitmap_get(void) {
24970 PyObject *pyobj = 0;
24971
24972 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
24973 return pyobj;
24974 }
24975
24976
24977 SWIGINTERN int NullIcon_set(PyObject *) {
24978 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
24979 return 1;
24980 }
24981
24982
24983 SWIGINTERN PyObject *NullIcon_get(void) {
24984 PyObject *pyobj = 0;
24985
24986 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
24987 return pyobj;
24988 }
24989
24990
24991 SWIGINTERN int NullCursor_set(PyObject *) {
24992 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
24993 return 1;
24994 }
24995
24996
24997 SWIGINTERN PyObject *NullCursor_get(void) {
24998 PyObject *pyobj = 0;
24999
25000 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
25001 return pyobj;
25002 }
25003
25004
25005 SWIGINTERN int NullPen_set(PyObject *) {
25006 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
25007 return 1;
25008 }
25009
25010
25011 SWIGINTERN PyObject *NullPen_get(void) {
25012 PyObject *pyobj = 0;
25013
25014 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
25015 return pyobj;
25016 }
25017
25018
25019 SWIGINTERN int NullBrush_set(PyObject *) {
25020 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
25021 return 1;
25022 }
25023
25024
25025 SWIGINTERN PyObject *NullBrush_get(void) {
25026 PyObject *pyobj = 0;
25027
25028 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
25029 return pyobj;
25030 }
25031
25032
25033 SWIGINTERN int NullPalette_set(PyObject *) {
25034 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
25035 return 1;
25036 }
25037
25038
25039 SWIGINTERN PyObject *NullPalette_get(void) {
25040 PyObject *pyobj = 0;
25041
25042 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
25043 return pyobj;
25044 }
25045
25046
25047 SWIGINTERN int NullFont_set(PyObject *) {
25048 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
25049 return 1;
25050 }
25051
25052
25053 SWIGINTERN PyObject *NullFont_get(void) {
25054 PyObject *pyobj = 0;
25055
25056 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
25057 return pyobj;
25058 }
25059
25060
25061 SWIGINTERN int NullColour_set(PyObject *) {
25062 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
25063 return 1;
25064 }
25065
25066
25067 SWIGINTERN PyObject *NullColour_get(void) {
25068 PyObject *pyobj = 0;
25069
25070 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
25071 return pyobj;
25072 }
25073
25074
25075 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25076 PyObject *resultobj = 0;
25077 wxGDIObjListBase *result = 0 ;
25078
25079 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
25080 {
25081 PyThreadState* __tstate = wxPyBeginAllowThreads();
25082 result = (wxGDIObjListBase *)new wxGDIObjListBase();
25083 wxPyEndAllowThreads(__tstate);
25084 if (PyErr_Occurred()) SWIG_fail;
25085 }
25086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
25087 return resultobj;
25088 fail:
25089 return NULL;
25090 }
25091
25092
25093 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25094 PyObject *resultobj = 0;
25095 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
25096 void *argp1 = 0 ;
25097 int res1 = 0 ;
25098 PyObject *swig_obj[1] ;
25099
25100 if (!args) SWIG_fail;
25101 swig_obj[0] = args;
25102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
25103 if (!SWIG_IsOK(res1)) {
25104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
25105 }
25106 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
25107 {
25108 PyThreadState* __tstate = wxPyBeginAllowThreads();
25109 delete arg1;
25110
25111 wxPyEndAllowThreads(__tstate);
25112 if (PyErr_Occurred()) SWIG_fail;
25113 }
25114 resultobj = SWIG_Py_Void();
25115 return resultobj;
25116 fail:
25117 return NULL;
25118 }
25119
25120
25121 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25122 PyObject *obj;
25123 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25124 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
25125 return SWIG_Py_Void();
25126 }
25127
25128 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25129 return SWIG_Python_InitShadowInstance(args);
25130 }
25131
25132 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25133 PyObject *resultobj = 0;
25134 wxPenList *arg1 = (wxPenList *) 0 ;
25135 wxColour *arg2 = 0 ;
25136 int arg3 ;
25137 int arg4 ;
25138 wxPen *result = 0 ;
25139 void *argp1 = 0 ;
25140 int res1 = 0 ;
25141 wxColour temp2 ;
25142 int val3 ;
25143 int ecode3 = 0 ;
25144 int val4 ;
25145 int ecode4 = 0 ;
25146 PyObject * obj0 = 0 ;
25147 PyObject * obj1 = 0 ;
25148 PyObject * obj2 = 0 ;
25149 PyObject * obj3 = 0 ;
25150 char * kwnames[] = {
25151 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
25152 };
25153
25154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25156 if (!SWIG_IsOK(res1)) {
25157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
25158 }
25159 arg1 = reinterpret_cast< wxPenList * >(argp1);
25160 {
25161 arg2 = &temp2;
25162 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25163 }
25164 ecode3 = SWIG_AsVal_int(obj2, &val3);
25165 if (!SWIG_IsOK(ecode3)) {
25166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
25167 }
25168 arg3 = static_cast< int >(val3);
25169 ecode4 = SWIG_AsVal_int(obj3, &val4);
25170 if (!SWIG_IsOK(ecode4)) {
25171 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
25172 }
25173 arg4 = static_cast< int >(val4);
25174 {
25175 PyThreadState* __tstate = wxPyBeginAllowThreads();
25176 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
25177 wxPyEndAllowThreads(__tstate);
25178 if (PyErr_Occurred()) SWIG_fail;
25179 }
25180 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
25181 return resultobj;
25182 fail:
25183 return NULL;
25184 }
25185
25186
25187 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25188 PyObject *resultobj = 0;
25189 wxPenList *arg1 = (wxPenList *) 0 ;
25190 wxPen *arg2 = (wxPen *) 0 ;
25191 void *argp1 = 0 ;
25192 int res1 = 0 ;
25193 void *argp2 = 0 ;
25194 int res2 = 0 ;
25195 PyObject * obj0 = 0 ;
25196 PyObject * obj1 = 0 ;
25197 char * kwnames[] = {
25198 (char *) "self",(char *) "pen", NULL
25199 };
25200
25201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
25202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25203 if (!SWIG_IsOK(res1)) {
25204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
25205 }
25206 arg1 = reinterpret_cast< wxPenList * >(argp1);
25207 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
25208 if (!SWIG_IsOK(res2)) {
25209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
25210 }
25211 arg2 = reinterpret_cast< wxPen * >(argp2);
25212 {
25213 PyThreadState* __tstate = wxPyBeginAllowThreads();
25214 (arg1)->AddPen(arg2);
25215 wxPyEndAllowThreads(__tstate);
25216 if (PyErr_Occurred()) SWIG_fail;
25217 }
25218 resultobj = SWIG_Py_Void();
25219 return resultobj;
25220 fail:
25221 return NULL;
25222 }
25223
25224
25225 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25226 PyObject *resultobj = 0;
25227 wxPenList *arg1 = (wxPenList *) 0 ;
25228 wxPen *arg2 = (wxPen *) 0 ;
25229 void *argp1 = 0 ;
25230 int res1 = 0 ;
25231 void *argp2 = 0 ;
25232 int res2 = 0 ;
25233 PyObject * obj0 = 0 ;
25234 PyObject * obj1 = 0 ;
25235 char * kwnames[] = {
25236 (char *) "self",(char *) "pen", NULL
25237 };
25238
25239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
25240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25241 if (!SWIG_IsOK(res1)) {
25242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
25243 }
25244 arg1 = reinterpret_cast< wxPenList * >(argp1);
25245 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
25246 if (!SWIG_IsOK(res2)) {
25247 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
25248 }
25249 arg2 = reinterpret_cast< wxPen * >(argp2);
25250 {
25251 PyThreadState* __tstate = wxPyBeginAllowThreads();
25252 (arg1)->RemovePen(arg2);
25253 wxPyEndAllowThreads(__tstate);
25254 if (PyErr_Occurred()) SWIG_fail;
25255 }
25256 resultobj = SWIG_Py_Void();
25257 return resultobj;
25258 fail:
25259 return NULL;
25260 }
25261
25262
25263 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25264 PyObject *obj;
25265 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25266 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
25267 return SWIG_Py_Void();
25268 }
25269
25270 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25271 PyObject *resultobj = 0;
25272 wxBrushList *arg1 = (wxBrushList *) 0 ;
25273 wxColour *arg2 = 0 ;
25274 int arg3 = (int) wxSOLID ;
25275 wxBrush *result = 0 ;
25276 void *argp1 = 0 ;
25277 int res1 = 0 ;
25278 wxColour temp2 ;
25279 int val3 ;
25280 int ecode3 = 0 ;
25281 PyObject * obj0 = 0 ;
25282 PyObject * obj1 = 0 ;
25283 PyObject * obj2 = 0 ;
25284 char * kwnames[] = {
25285 (char *) "self",(char *) "colour",(char *) "style", NULL
25286 };
25287
25288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25290 if (!SWIG_IsOK(res1)) {
25291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25292 }
25293 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25294 {
25295 arg2 = &temp2;
25296 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25297 }
25298 if (obj2) {
25299 ecode3 = SWIG_AsVal_int(obj2, &val3);
25300 if (!SWIG_IsOK(ecode3)) {
25301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
25302 }
25303 arg3 = static_cast< int >(val3);
25304 }
25305 {
25306 PyThreadState* __tstate = wxPyBeginAllowThreads();
25307 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
25308 wxPyEndAllowThreads(__tstate);
25309 if (PyErr_Occurred()) SWIG_fail;
25310 }
25311 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
25312 return resultobj;
25313 fail:
25314 return NULL;
25315 }
25316
25317
25318 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25319 PyObject *resultobj = 0;
25320 wxBrushList *arg1 = (wxBrushList *) 0 ;
25321 wxBrush *arg2 = (wxBrush *) 0 ;
25322 void *argp1 = 0 ;
25323 int res1 = 0 ;
25324 void *argp2 = 0 ;
25325 int res2 = 0 ;
25326 PyObject * obj0 = 0 ;
25327 PyObject * obj1 = 0 ;
25328 char * kwnames[] = {
25329 (char *) "self",(char *) "brush", NULL
25330 };
25331
25332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25334 if (!SWIG_IsOK(res1)) {
25335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25336 }
25337 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25338 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
25339 if (!SWIG_IsOK(res2)) {
25340 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
25341 }
25342 arg2 = reinterpret_cast< wxBrush * >(argp2);
25343 {
25344 PyThreadState* __tstate = wxPyBeginAllowThreads();
25345 (arg1)->AddBrush(arg2);
25346 wxPyEndAllowThreads(__tstate);
25347 if (PyErr_Occurred()) SWIG_fail;
25348 }
25349 resultobj = SWIG_Py_Void();
25350 return resultobj;
25351 fail:
25352 return NULL;
25353 }
25354
25355
25356 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25357 PyObject *resultobj = 0;
25358 wxBrushList *arg1 = (wxBrushList *) 0 ;
25359 wxBrush *arg2 = (wxBrush *) 0 ;
25360 void *argp1 = 0 ;
25361 int res1 = 0 ;
25362 void *argp2 = 0 ;
25363 int res2 = 0 ;
25364 PyObject * obj0 = 0 ;
25365 PyObject * obj1 = 0 ;
25366 char * kwnames[] = {
25367 (char *) "self",(char *) "brush", NULL
25368 };
25369
25370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25372 if (!SWIG_IsOK(res1)) {
25373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25374 }
25375 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25376 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
25377 if (!SWIG_IsOK(res2)) {
25378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
25379 }
25380 arg2 = reinterpret_cast< wxBrush * >(argp2);
25381 {
25382 PyThreadState* __tstate = wxPyBeginAllowThreads();
25383 (arg1)->RemoveBrush(arg2);
25384 wxPyEndAllowThreads(__tstate);
25385 if (PyErr_Occurred()) SWIG_fail;
25386 }
25387 resultobj = SWIG_Py_Void();
25388 return resultobj;
25389 fail:
25390 return NULL;
25391 }
25392
25393
25394 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25395 PyObject *obj;
25396 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25397 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
25398 return SWIG_Py_Void();
25399 }
25400
25401 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25402 PyObject *resultobj = 0;
25403 wxFontList *arg1 = (wxFontList *) 0 ;
25404 int arg2 ;
25405 int arg3 ;
25406 int arg4 ;
25407 int arg5 ;
25408 bool arg6 = (bool) false ;
25409 wxString const &arg7_defvalue = wxPyEmptyString ;
25410 wxString *arg7 = (wxString *) &arg7_defvalue ;
25411 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
25412 wxFont *result = 0 ;
25413 void *argp1 = 0 ;
25414 int res1 = 0 ;
25415 int val2 ;
25416 int ecode2 = 0 ;
25417 int val3 ;
25418 int ecode3 = 0 ;
25419 int val4 ;
25420 int ecode4 = 0 ;
25421 int val5 ;
25422 int ecode5 = 0 ;
25423 bool val6 ;
25424 int ecode6 = 0 ;
25425 bool temp7 = false ;
25426 int val8 ;
25427 int ecode8 = 0 ;
25428 PyObject * obj0 = 0 ;
25429 PyObject * obj1 = 0 ;
25430 PyObject * obj2 = 0 ;
25431 PyObject * obj3 = 0 ;
25432 PyObject * obj4 = 0 ;
25433 PyObject * obj5 = 0 ;
25434 PyObject * obj6 = 0 ;
25435 PyObject * obj7 = 0 ;
25436 char * kwnames[] = {
25437 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
25438 };
25439
25440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
25442 if (!SWIG_IsOK(res1)) {
25443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
25444 }
25445 arg1 = reinterpret_cast< wxFontList * >(argp1);
25446 ecode2 = SWIG_AsVal_int(obj1, &val2);
25447 if (!SWIG_IsOK(ecode2)) {
25448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
25449 }
25450 arg2 = static_cast< int >(val2);
25451 ecode3 = SWIG_AsVal_int(obj2, &val3);
25452 if (!SWIG_IsOK(ecode3)) {
25453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
25454 }
25455 arg3 = static_cast< int >(val3);
25456 ecode4 = SWIG_AsVal_int(obj3, &val4);
25457 if (!SWIG_IsOK(ecode4)) {
25458 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
25459 }
25460 arg4 = static_cast< int >(val4);
25461 ecode5 = SWIG_AsVal_int(obj4, &val5);
25462 if (!SWIG_IsOK(ecode5)) {
25463 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
25464 }
25465 arg5 = static_cast< int >(val5);
25466 if (obj5) {
25467 ecode6 = SWIG_AsVal_bool(obj5, &val6);
25468 if (!SWIG_IsOK(ecode6)) {
25469 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
25470 }
25471 arg6 = static_cast< bool >(val6);
25472 }
25473 if (obj6) {
25474 {
25475 arg7 = wxString_in_helper(obj6);
25476 if (arg7 == NULL) SWIG_fail;
25477 temp7 = true;
25478 }
25479 }
25480 if (obj7) {
25481 ecode8 = SWIG_AsVal_int(obj7, &val8);
25482 if (!SWIG_IsOK(ecode8)) {
25483 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
25484 }
25485 arg8 = static_cast< wxFontEncoding >(val8);
25486 }
25487 {
25488 PyThreadState* __tstate = wxPyBeginAllowThreads();
25489 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
25490 wxPyEndAllowThreads(__tstate);
25491 if (PyErr_Occurred()) SWIG_fail;
25492 }
25493 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
25494 {
25495 if (temp7)
25496 delete arg7;
25497 }
25498 return resultobj;
25499 fail:
25500 {
25501 if (temp7)
25502 delete arg7;
25503 }
25504 return NULL;
25505 }
25506
25507
25508 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25509 PyObject *resultobj = 0;
25510 wxFontList *arg1 = (wxFontList *) 0 ;
25511 wxFont *arg2 = (wxFont *) 0 ;
25512 void *argp1 = 0 ;
25513 int res1 = 0 ;
25514 void *argp2 = 0 ;
25515 int res2 = 0 ;
25516 PyObject * obj0 = 0 ;
25517 PyObject * obj1 = 0 ;
25518 char * kwnames[] = {
25519 (char *) "self",(char *) "font", NULL
25520 };
25521
25522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
25523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
25524 if (!SWIG_IsOK(res1)) {
25525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
25526 }
25527 arg1 = reinterpret_cast< wxFontList * >(argp1);
25528 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
25529 if (!SWIG_IsOK(res2)) {
25530 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
25531 }
25532 arg2 = reinterpret_cast< wxFont * >(argp2);
25533 {
25534 PyThreadState* __tstate = wxPyBeginAllowThreads();
25535 (arg1)->AddFont(arg2);
25536 wxPyEndAllowThreads(__tstate);
25537 if (PyErr_Occurred()) SWIG_fail;
25538 }
25539 resultobj = SWIG_Py_Void();
25540 return resultobj;
25541 fail:
25542 return NULL;
25543 }
25544
25545
25546 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25547 PyObject *resultobj = 0;
25548 wxFontList *arg1 = (wxFontList *) 0 ;
25549 wxFont *arg2 = (wxFont *) 0 ;
25550 void *argp1 = 0 ;
25551 int res1 = 0 ;
25552 void *argp2 = 0 ;
25553 int res2 = 0 ;
25554 PyObject * obj0 = 0 ;
25555 PyObject * obj1 = 0 ;
25556 char * kwnames[] = {
25557 (char *) "self",(char *) "font", NULL
25558 };
25559
25560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
25561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
25562 if (!SWIG_IsOK(res1)) {
25563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
25564 }
25565 arg1 = reinterpret_cast< wxFontList * >(argp1);
25566 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
25567 if (!SWIG_IsOK(res2)) {
25568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
25569 }
25570 arg2 = reinterpret_cast< wxFont * >(argp2);
25571 {
25572 PyThreadState* __tstate = wxPyBeginAllowThreads();
25573 (arg1)->RemoveFont(arg2);
25574 wxPyEndAllowThreads(__tstate);
25575 if (PyErr_Occurred()) SWIG_fail;
25576 }
25577 resultobj = SWIG_Py_Void();
25578 return resultobj;
25579 fail:
25580 return NULL;
25581 }
25582
25583
25584 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25585 PyObject *obj;
25586 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25587 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
25588 return SWIG_Py_Void();
25589 }
25590
25591 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25592 PyObject *resultobj = 0;
25593 wxColourDatabase *result = 0 ;
25594
25595 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
25596 {
25597 if (!wxPyCheckForApp()) SWIG_fail;
25598 PyThreadState* __tstate = wxPyBeginAllowThreads();
25599 result = (wxColourDatabase *)new wxColourDatabase();
25600 wxPyEndAllowThreads(__tstate);
25601 if (PyErr_Occurred()) SWIG_fail;
25602 }
25603 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
25604 return resultobj;
25605 fail:
25606 return NULL;
25607 }
25608
25609
25610 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25611 PyObject *resultobj = 0;
25612 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25613 void *argp1 = 0 ;
25614 int res1 = 0 ;
25615 PyObject *swig_obj[1] ;
25616
25617 if (!args) SWIG_fail;
25618 swig_obj[0] = args;
25619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
25620 if (!SWIG_IsOK(res1)) {
25621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25622 }
25623 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25624 {
25625 PyThreadState* __tstate = wxPyBeginAllowThreads();
25626 delete arg1;
25627
25628 wxPyEndAllowThreads(__tstate);
25629 if (PyErr_Occurred()) SWIG_fail;
25630 }
25631 resultobj = SWIG_Py_Void();
25632 return resultobj;
25633 fail:
25634 return NULL;
25635 }
25636
25637
25638 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25639 PyObject *resultobj = 0;
25640 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25641 wxString *arg2 = 0 ;
25642 wxColour result;
25643 void *argp1 = 0 ;
25644 int res1 = 0 ;
25645 bool temp2 = false ;
25646 PyObject * obj0 = 0 ;
25647 PyObject * obj1 = 0 ;
25648 char * kwnames[] = {
25649 (char *) "self",(char *) "name", NULL
25650 };
25651
25652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
25653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25654 if (!SWIG_IsOK(res1)) {
25655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
25656 }
25657 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25658 {
25659 arg2 = wxString_in_helper(obj1);
25660 if (arg2 == NULL) SWIG_fail;
25661 temp2 = true;
25662 }
25663 {
25664 PyThreadState* __tstate = wxPyBeginAllowThreads();
25665 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
25666 wxPyEndAllowThreads(__tstate);
25667 if (PyErr_Occurred()) SWIG_fail;
25668 }
25669 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25670 {
25671 if (temp2)
25672 delete arg2;
25673 }
25674 return resultobj;
25675 fail:
25676 {
25677 if (temp2)
25678 delete arg2;
25679 }
25680 return NULL;
25681 }
25682
25683
25684 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25685 PyObject *resultobj = 0;
25686 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25687 wxColour *arg2 = 0 ;
25688 wxString result;
25689 void *argp1 = 0 ;
25690 int res1 = 0 ;
25691 wxColour temp2 ;
25692 PyObject * obj0 = 0 ;
25693 PyObject * obj1 = 0 ;
25694 char * kwnames[] = {
25695 (char *) "self",(char *) "colour", NULL
25696 };
25697
25698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
25699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25700 if (!SWIG_IsOK(res1)) {
25701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
25702 }
25703 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25704 {
25705 arg2 = &temp2;
25706 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25707 }
25708 {
25709 PyThreadState* __tstate = wxPyBeginAllowThreads();
25710 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
25711 wxPyEndAllowThreads(__tstate);
25712 if (PyErr_Occurred()) SWIG_fail;
25713 }
25714 {
25715 #if wxUSE_UNICODE
25716 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25717 #else
25718 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25719 #endif
25720 }
25721 return resultobj;
25722 fail:
25723 return NULL;
25724 }
25725
25726
25727 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25728 PyObject *resultobj = 0;
25729 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25730 wxString *arg2 = 0 ;
25731 wxColour *arg3 = 0 ;
25732 void *argp1 = 0 ;
25733 int res1 = 0 ;
25734 bool temp2 = false ;
25735 wxColour temp3 ;
25736 PyObject * obj0 = 0 ;
25737 PyObject * obj1 = 0 ;
25738 PyObject * obj2 = 0 ;
25739 char * kwnames[] = {
25740 (char *) "self",(char *) "name",(char *) "colour", NULL
25741 };
25742
25743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25745 if (!SWIG_IsOK(res1)) {
25746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25747 }
25748 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25749 {
25750 arg2 = wxString_in_helper(obj1);
25751 if (arg2 == NULL) SWIG_fail;
25752 temp2 = true;
25753 }
25754 {
25755 arg3 = &temp3;
25756 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25757 }
25758 {
25759 PyThreadState* __tstate = wxPyBeginAllowThreads();
25760 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
25761 wxPyEndAllowThreads(__tstate);
25762 if (PyErr_Occurred()) SWIG_fail;
25763 }
25764 resultobj = SWIG_Py_Void();
25765 {
25766 if (temp2)
25767 delete arg2;
25768 }
25769 return resultobj;
25770 fail:
25771 {
25772 if (temp2)
25773 delete arg2;
25774 }
25775 return NULL;
25776 }
25777
25778
25779 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25780 PyObject *resultobj = 0;
25781 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25782 wxString *arg2 = 0 ;
25783 int arg3 ;
25784 int arg4 ;
25785 int arg5 ;
25786 void *argp1 = 0 ;
25787 int res1 = 0 ;
25788 bool temp2 = false ;
25789 int val3 ;
25790 int ecode3 = 0 ;
25791 int val4 ;
25792 int ecode4 = 0 ;
25793 int val5 ;
25794 int ecode5 = 0 ;
25795 PyObject * obj0 = 0 ;
25796 PyObject * obj1 = 0 ;
25797 PyObject * obj2 = 0 ;
25798 PyObject * obj3 = 0 ;
25799 PyObject * obj4 = 0 ;
25800 char * kwnames[] = {
25801 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
25802 };
25803
25804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25806 if (!SWIG_IsOK(res1)) {
25807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25808 }
25809 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25810 {
25811 arg2 = wxString_in_helper(obj1);
25812 if (arg2 == NULL) SWIG_fail;
25813 temp2 = true;
25814 }
25815 ecode3 = SWIG_AsVal_int(obj2, &val3);
25816 if (!SWIG_IsOK(ecode3)) {
25817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
25818 }
25819 arg3 = static_cast< int >(val3);
25820 ecode4 = SWIG_AsVal_int(obj3, &val4);
25821 if (!SWIG_IsOK(ecode4)) {
25822 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
25823 }
25824 arg4 = static_cast< int >(val4);
25825 ecode5 = SWIG_AsVal_int(obj4, &val5);
25826 if (!SWIG_IsOK(ecode5)) {
25827 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
25828 }
25829 arg5 = static_cast< int >(val5);
25830 {
25831 PyThreadState* __tstate = wxPyBeginAllowThreads();
25832 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
25833 wxPyEndAllowThreads(__tstate);
25834 if (PyErr_Occurred()) SWIG_fail;
25835 }
25836 resultobj = SWIG_Py_Void();
25837 {
25838 if (temp2)
25839 delete arg2;
25840 }
25841 return resultobj;
25842 fail:
25843 {
25844 if (temp2)
25845 delete arg2;
25846 }
25847 return NULL;
25848 }
25849
25850
25851 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25852 PyObject *obj;
25853 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25854 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
25855 return SWIG_Py_Void();
25856 }
25857
25858 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25859 return SWIG_Python_InitShadowInstance(args);
25860 }
25861
25862 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25863 PyObject *resultobj = 0;
25864 wxFontList *result = 0 ;
25865
25866 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
25867 {
25868 PyThreadState* __tstate = wxPyBeginAllowThreads();
25869 result = (wxFontList *)_wxPyInitTheFontList();
25870 wxPyEndAllowThreads(__tstate);
25871 if (PyErr_Occurred()) SWIG_fail;
25872 }
25873 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
25874 return resultobj;
25875 fail:
25876 return NULL;
25877 }
25878
25879
25880 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25881 PyObject *resultobj = 0;
25882 wxPenList *result = 0 ;
25883
25884 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
25885 {
25886 PyThreadState* __tstate = wxPyBeginAllowThreads();
25887 result = (wxPenList *)_wxPyInitThePenList();
25888 wxPyEndAllowThreads(__tstate);
25889 if (PyErr_Occurred()) SWIG_fail;
25890 }
25891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
25892 return resultobj;
25893 fail:
25894 return NULL;
25895 }
25896
25897
25898 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25899 PyObject *resultobj = 0;
25900 wxBrushList *result = 0 ;
25901
25902 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
25903 {
25904 PyThreadState* __tstate = wxPyBeginAllowThreads();
25905 result = (wxBrushList *)_wxPyInitTheBrushList();
25906 wxPyEndAllowThreads(__tstate);
25907 if (PyErr_Occurred()) SWIG_fail;
25908 }
25909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
25910 return resultobj;
25911 fail:
25912 return NULL;
25913 }
25914
25915
25916 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25917 PyObject *resultobj = 0;
25918 wxColourDatabase *result = 0 ;
25919
25920 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
25921 {
25922 PyThreadState* __tstate = wxPyBeginAllowThreads();
25923 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
25924 wxPyEndAllowThreads(__tstate);
25925 if (PyErr_Occurred()) SWIG_fail;
25926 }
25927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25928 return resultobj;
25929 fail:
25930 return NULL;
25931 }
25932
25933
25934 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25935 PyObject *resultobj = 0;
25936 wxEffects *result = 0 ;
25937
25938 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
25939 {
25940 PyThreadState* __tstate = wxPyBeginAllowThreads();
25941 result = (wxEffects *)new wxEffects();
25942 wxPyEndAllowThreads(__tstate);
25943 if (PyErr_Occurred()) SWIG_fail;
25944 }
25945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
25946 return resultobj;
25947 fail:
25948 return NULL;
25949 }
25950
25951
25952 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25953 PyObject *resultobj = 0;
25954 wxEffects *arg1 = (wxEffects *) 0 ;
25955 wxColour result;
25956 void *argp1 = 0 ;
25957 int res1 = 0 ;
25958 PyObject *swig_obj[1] ;
25959
25960 if (!args) SWIG_fail;
25961 swig_obj[0] = args;
25962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25963 if (!SWIG_IsOK(res1)) {
25964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
25965 }
25966 arg1 = reinterpret_cast< wxEffects * >(argp1);
25967 {
25968 PyThreadState* __tstate = wxPyBeginAllowThreads();
25969 result = ((wxEffects const *)arg1)->GetHighlightColour();
25970 wxPyEndAllowThreads(__tstate);
25971 if (PyErr_Occurred()) SWIG_fail;
25972 }
25973 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25974 return resultobj;
25975 fail:
25976 return NULL;
25977 }
25978
25979
25980 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25981 PyObject *resultobj = 0;
25982 wxEffects *arg1 = (wxEffects *) 0 ;
25983 wxColour result;
25984 void *argp1 = 0 ;
25985 int res1 = 0 ;
25986 PyObject *swig_obj[1] ;
25987
25988 if (!args) SWIG_fail;
25989 swig_obj[0] = args;
25990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25991 if (!SWIG_IsOK(res1)) {
25992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
25993 }
25994 arg1 = reinterpret_cast< wxEffects * >(argp1);
25995 {
25996 PyThreadState* __tstate = wxPyBeginAllowThreads();
25997 result = ((wxEffects const *)arg1)->GetLightShadow();
25998 wxPyEndAllowThreads(__tstate);
25999 if (PyErr_Occurred()) SWIG_fail;
26000 }
26001 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26002 return resultobj;
26003 fail:
26004 return NULL;
26005 }
26006
26007
26008 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26009 PyObject *resultobj = 0;
26010 wxEffects *arg1 = (wxEffects *) 0 ;
26011 wxColour result;
26012 void *argp1 = 0 ;
26013 int res1 = 0 ;
26014 PyObject *swig_obj[1] ;
26015
26016 if (!args) SWIG_fail;
26017 swig_obj[0] = args;
26018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26019 if (!SWIG_IsOK(res1)) {
26020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
26021 }
26022 arg1 = reinterpret_cast< wxEffects * >(argp1);
26023 {
26024 PyThreadState* __tstate = wxPyBeginAllowThreads();
26025 result = ((wxEffects const *)arg1)->GetFaceColour();
26026 wxPyEndAllowThreads(__tstate);
26027 if (PyErr_Occurred()) SWIG_fail;
26028 }
26029 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26030 return resultobj;
26031 fail:
26032 return NULL;
26033 }
26034
26035
26036 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26037 PyObject *resultobj = 0;
26038 wxEffects *arg1 = (wxEffects *) 0 ;
26039 wxColour result;
26040 void *argp1 = 0 ;
26041 int res1 = 0 ;
26042 PyObject *swig_obj[1] ;
26043
26044 if (!args) SWIG_fail;
26045 swig_obj[0] = args;
26046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26047 if (!SWIG_IsOK(res1)) {
26048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26049 }
26050 arg1 = reinterpret_cast< wxEffects * >(argp1);
26051 {
26052 PyThreadState* __tstate = wxPyBeginAllowThreads();
26053 result = ((wxEffects const *)arg1)->GetMediumShadow();
26054 wxPyEndAllowThreads(__tstate);
26055 if (PyErr_Occurred()) SWIG_fail;
26056 }
26057 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26058 return resultobj;
26059 fail:
26060 return NULL;
26061 }
26062
26063
26064 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26065 PyObject *resultobj = 0;
26066 wxEffects *arg1 = (wxEffects *) 0 ;
26067 wxColour result;
26068 void *argp1 = 0 ;
26069 int res1 = 0 ;
26070 PyObject *swig_obj[1] ;
26071
26072 if (!args) SWIG_fail;
26073 swig_obj[0] = args;
26074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26075 if (!SWIG_IsOK(res1)) {
26076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26077 }
26078 arg1 = reinterpret_cast< wxEffects * >(argp1);
26079 {
26080 PyThreadState* __tstate = wxPyBeginAllowThreads();
26081 result = ((wxEffects const *)arg1)->GetDarkShadow();
26082 wxPyEndAllowThreads(__tstate);
26083 if (PyErr_Occurred()) SWIG_fail;
26084 }
26085 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26086 return resultobj;
26087 fail:
26088 return NULL;
26089 }
26090
26091
26092 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26093 PyObject *resultobj = 0;
26094 wxEffects *arg1 = (wxEffects *) 0 ;
26095 wxColour *arg2 = 0 ;
26096 void *argp1 = 0 ;
26097 int res1 = 0 ;
26098 wxColour temp2 ;
26099 PyObject * obj0 = 0 ;
26100 PyObject * obj1 = 0 ;
26101 char * kwnames[] = {
26102 (char *) "self",(char *) "c", NULL
26103 };
26104
26105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
26106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26107 if (!SWIG_IsOK(res1)) {
26108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
26109 }
26110 arg1 = reinterpret_cast< wxEffects * >(argp1);
26111 {
26112 arg2 = &temp2;
26113 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26114 }
26115 {
26116 PyThreadState* __tstate = wxPyBeginAllowThreads();
26117 (arg1)->SetHighlightColour((wxColour const &)*arg2);
26118 wxPyEndAllowThreads(__tstate);
26119 if (PyErr_Occurred()) SWIG_fail;
26120 }
26121 resultobj = SWIG_Py_Void();
26122 return resultobj;
26123 fail:
26124 return NULL;
26125 }
26126
26127
26128 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26129 PyObject *resultobj = 0;
26130 wxEffects *arg1 = (wxEffects *) 0 ;
26131 wxColour *arg2 = 0 ;
26132 void *argp1 = 0 ;
26133 int res1 = 0 ;
26134 wxColour temp2 ;
26135 PyObject * obj0 = 0 ;
26136 PyObject * obj1 = 0 ;
26137 char * kwnames[] = {
26138 (char *) "self",(char *) "c", NULL
26139 };
26140
26141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26143 if (!SWIG_IsOK(res1)) {
26144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26145 }
26146 arg1 = reinterpret_cast< wxEffects * >(argp1);
26147 {
26148 arg2 = &temp2;
26149 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26150 }
26151 {
26152 PyThreadState* __tstate = wxPyBeginAllowThreads();
26153 (arg1)->SetLightShadow((wxColour const &)*arg2);
26154 wxPyEndAllowThreads(__tstate);
26155 if (PyErr_Occurred()) SWIG_fail;
26156 }
26157 resultobj = SWIG_Py_Void();
26158 return resultobj;
26159 fail:
26160 return NULL;
26161 }
26162
26163
26164 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26165 PyObject *resultobj = 0;
26166 wxEffects *arg1 = (wxEffects *) 0 ;
26167 wxColour *arg2 = 0 ;
26168 void *argp1 = 0 ;
26169 int res1 = 0 ;
26170 wxColour temp2 ;
26171 PyObject * obj0 = 0 ;
26172 PyObject * obj1 = 0 ;
26173 char * kwnames[] = {
26174 (char *) "self",(char *) "c", NULL
26175 };
26176
26177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
26178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26179 if (!SWIG_IsOK(res1)) {
26180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
26181 }
26182 arg1 = reinterpret_cast< wxEffects * >(argp1);
26183 {
26184 arg2 = &temp2;
26185 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26186 }
26187 {
26188 PyThreadState* __tstate = wxPyBeginAllowThreads();
26189 (arg1)->SetFaceColour((wxColour const &)*arg2);
26190 wxPyEndAllowThreads(__tstate);
26191 if (PyErr_Occurred()) SWIG_fail;
26192 }
26193 resultobj = SWIG_Py_Void();
26194 return resultobj;
26195 fail:
26196 return NULL;
26197 }
26198
26199
26200 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26201 PyObject *resultobj = 0;
26202 wxEffects *arg1 = (wxEffects *) 0 ;
26203 wxColour *arg2 = 0 ;
26204 void *argp1 = 0 ;
26205 int res1 = 0 ;
26206 wxColour temp2 ;
26207 PyObject * obj0 = 0 ;
26208 PyObject * obj1 = 0 ;
26209 char * kwnames[] = {
26210 (char *) "self",(char *) "c", NULL
26211 };
26212
26213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26215 if (!SWIG_IsOK(res1)) {
26216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26217 }
26218 arg1 = reinterpret_cast< wxEffects * >(argp1);
26219 {
26220 arg2 = &temp2;
26221 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26222 }
26223 {
26224 PyThreadState* __tstate = wxPyBeginAllowThreads();
26225 (arg1)->SetMediumShadow((wxColour const &)*arg2);
26226 wxPyEndAllowThreads(__tstate);
26227 if (PyErr_Occurred()) SWIG_fail;
26228 }
26229 resultobj = SWIG_Py_Void();
26230 return resultobj;
26231 fail:
26232 return NULL;
26233 }
26234
26235
26236 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26237 PyObject *resultobj = 0;
26238 wxEffects *arg1 = (wxEffects *) 0 ;
26239 wxColour *arg2 = 0 ;
26240 void *argp1 = 0 ;
26241 int res1 = 0 ;
26242 wxColour temp2 ;
26243 PyObject * obj0 = 0 ;
26244 PyObject * obj1 = 0 ;
26245 char * kwnames[] = {
26246 (char *) "self",(char *) "c", NULL
26247 };
26248
26249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26251 if (!SWIG_IsOK(res1)) {
26252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26253 }
26254 arg1 = reinterpret_cast< wxEffects * >(argp1);
26255 {
26256 arg2 = &temp2;
26257 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26258 }
26259 {
26260 PyThreadState* __tstate = wxPyBeginAllowThreads();
26261 (arg1)->SetDarkShadow((wxColour const &)*arg2);
26262 wxPyEndAllowThreads(__tstate);
26263 if (PyErr_Occurred()) SWIG_fail;
26264 }
26265 resultobj = SWIG_Py_Void();
26266 return resultobj;
26267 fail:
26268 return NULL;
26269 }
26270
26271
26272 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26273 PyObject *resultobj = 0;
26274 wxEffects *arg1 = (wxEffects *) 0 ;
26275 wxColour *arg2 = 0 ;
26276 wxColour *arg3 = 0 ;
26277 wxColour *arg4 = 0 ;
26278 wxColour *arg5 = 0 ;
26279 wxColour *arg6 = 0 ;
26280 void *argp1 = 0 ;
26281 int res1 = 0 ;
26282 wxColour temp2 ;
26283 wxColour temp3 ;
26284 wxColour temp4 ;
26285 wxColour temp5 ;
26286 wxColour temp6 ;
26287 PyObject * obj0 = 0 ;
26288 PyObject * obj1 = 0 ;
26289 PyObject * obj2 = 0 ;
26290 PyObject * obj3 = 0 ;
26291 PyObject * obj4 = 0 ;
26292 PyObject * obj5 = 0 ;
26293 char * kwnames[] = {
26294 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
26295 };
26296
26297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26299 if (!SWIG_IsOK(res1)) {
26300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
26301 }
26302 arg1 = reinterpret_cast< wxEffects * >(argp1);
26303 {
26304 arg2 = &temp2;
26305 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26306 }
26307 {
26308 arg3 = &temp3;
26309 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26310 }
26311 {
26312 arg4 = &temp4;
26313 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
26314 }
26315 {
26316 arg5 = &temp5;
26317 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
26318 }
26319 {
26320 arg6 = &temp6;
26321 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
26322 }
26323 {
26324 PyThreadState* __tstate = wxPyBeginAllowThreads();
26325 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
26326 wxPyEndAllowThreads(__tstate);
26327 if (PyErr_Occurred()) SWIG_fail;
26328 }
26329 resultobj = SWIG_Py_Void();
26330 return resultobj;
26331 fail:
26332 return NULL;
26333 }
26334
26335
26336 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26337 PyObject *resultobj = 0;
26338 wxEffects *arg1 = (wxEffects *) 0 ;
26339 wxDC *arg2 = 0 ;
26340 wxRect *arg3 = 0 ;
26341 int arg4 = (int) 1 ;
26342 void *argp1 = 0 ;
26343 int res1 = 0 ;
26344 void *argp2 = 0 ;
26345 int res2 = 0 ;
26346 wxRect temp3 ;
26347 int val4 ;
26348 int ecode4 = 0 ;
26349 PyObject * obj0 = 0 ;
26350 PyObject * obj1 = 0 ;
26351 PyObject * obj2 = 0 ;
26352 PyObject * obj3 = 0 ;
26353 char * kwnames[] = {
26354 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
26355 };
26356
26357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26359 if (!SWIG_IsOK(res1)) {
26360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
26361 }
26362 arg1 = reinterpret_cast< wxEffects * >(argp1);
26363 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
26364 if (!SWIG_IsOK(res2)) {
26365 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
26366 }
26367 if (!argp2) {
26368 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
26369 }
26370 arg2 = reinterpret_cast< wxDC * >(argp2);
26371 {
26372 arg3 = &temp3;
26373 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
26374 }
26375 if (obj3) {
26376 ecode4 = SWIG_AsVal_int(obj3, &val4);
26377 if (!SWIG_IsOK(ecode4)) {
26378 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
26379 }
26380 arg4 = static_cast< int >(val4);
26381 }
26382 {
26383 PyThreadState* __tstate = wxPyBeginAllowThreads();
26384 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
26385 wxPyEndAllowThreads(__tstate);
26386 if (PyErr_Occurred()) SWIG_fail;
26387 }
26388 resultobj = SWIG_Py_Void();
26389 return resultobj;
26390 fail:
26391 return NULL;
26392 }
26393
26394
26395 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26396 PyObject *resultobj = 0;
26397 wxEffects *arg1 = (wxEffects *) 0 ;
26398 wxRect *arg2 = 0 ;
26399 wxDC *arg3 = 0 ;
26400 wxBitmap *arg4 = 0 ;
26401 bool result;
26402 void *argp1 = 0 ;
26403 int res1 = 0 ;
26404 wxRect temp2 ;
26405 void *argp3 = 0 ;
26406 int res3 = 0 ;
26407 void *argp4 = 0 ;
26408 int res4 = 0 ;
26409 PyObject * obj0 = 0 ;
26410 PyObject * obj1 = 0 ;
26411 PyObject * obj2 = 0 ;
26412 PyObject * obj3 = 0 ;
26413 char * kwnames[] = {
26414 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
26415 };
26416
26417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26419 if (!SWIG_IsOK(res1)) {
26420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
26421 }
26422 arg1 = reinterpret_cast< wxEffects * >(argp1);
26423 {
26424 arg2 = &temp2;
26425 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26426 }
26427 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26428 if (!SWIG_IsOK(res3)) {
26429 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
26430 }
26431 if (!argp3) {
26432 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
26433 }
26434 arg3 = reinterpret_cast< wxDC * >(argp3);
26435 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
26436 if (!SWIG_IsOK(res4)) {
26437 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
26438 }
26439 if (!argp4) {
26440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
26441 }
26442 arg4 = reinterpret_cast< wxBitmap * >(argp4);
26443 {
26444 PyThreadState* __tstate = wxPyBeginAllowThreads();
26445 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
26446 wxPyEndAllowThreads(__tstate);
26447 if (PyErr_Occurred()) SWIG_fail;
26448 }
26449 {
26450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26451 }
26452 return resultobj;
26453 fail:
26454 return NULL;
26455 }
26456
26457
26458 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26459 PyObject *obj;
26460 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26461 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
26462 return SWIG_Py_Void();
26463 }
26464
26465 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26466 return SWIG_Python_InitShadowInstance(args);
26467 }
26468
26469 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26470 PyObject *resultobj = 0;
26471 int arg1 ;
26472 int arg2 ;
26473 bool arg3 ;
26474 wxSplitterRenderParams *result = 0 ;
26475 int val1 ;
26476 int ecode1 = 0 ;
26477 int val2 ;
26478 int ecode2 = 0 ;
26479 bool val3 ;
26480 int ecode3 = 0 ;
26481 PyObject * obj0 = 0 ;
26482 PyObject * obj1 = 0 ;
26483 PyObject * obj2 = 0 ;
26484 char * kwnames[] = {
26485 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
26486 };
26487
26488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26489 ecode1 = SWIG_AsVal_int(obj0, &val1);
26490 if (!SWIG_IsOK(ecode1)) {
26491 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
26492 }
26493 arg1 = static_cast< int >(val1);
26494 ecode2 = SWIG_AsVal_int(obj1, &val2);
26495 if (!SWIG_IsOK(ecode2)) {
26496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
26497 }
26498 arg2 = static_cast< int >(val2);
26499 ecode3 = SWIG_AsVal_bool(obj2, &val3);
26500 if (!SWIG_IsOK(ecode3)) {
26501 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
26502 }
26503 arg3 = static_cast< bool >(val3);
26504 {
26505 PyThreadState* __tstate = wxPyBeginAllowThreads();
26506 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
26507 wxPyEndAllowThreads(__tstate);
26508 if (PyErr_Occurred()) SWIG_fail;
26509 }
26510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
26511 return resultobj;
26512 fail:
26513 return NULL;
26514 }
26515
26516
26517 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26518 PyObject *resultobj = 0;
26519 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26520 void *argp1 = 0 ;
26521 int res1 = 0 ;
26522 PyObject *swig_obj[1] ;
26523
26524 if (!args) SWIG_fail;
26525 swig_obj[0] = args;
26526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
26527 if (!SWIG_IsOK(res1)) {
26528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26529 }
26530 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26531 {
26532 PyThreadState* __tstate = wxPyBeginAllowThreads();
26533 delete arg1;
26534
26535 wxPyEndAllowThreads(__tstate);
26536 if (PyErr_Occurred()) SWIG_fail;
26537 }
26538 resultobj = SWIG_Py_Void();
26539 return resultobj;
26540 fail:
26541 return NULL;
26542 }
26543
26544
26545 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26546 PyObject *resultobj = 0;
26547 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26548 int result;
26549 void *argp1 = 0 ;
26550 int res1 = 0 ;
26551 PyObject *swig_obj[1] ;
26552
26553 if (!args) SWIG_fail;
26554 swig_obj[0] = args;
26555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26556 if (!SWIG_IsOK(res1)) {
26557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26558 }
26559 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26560 result = (int)(int) ((arg1)->widthSash);
26561 resultobj = SWIG_From_int(static_cast< int >(result));
26562 return resultobj;
26563 fail:
26564 return NULL;
26565 }
26566
26567
26568 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26569 PyObject *resultobj = 0;
26570 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26571 int result;
26572 void *argp1 = 0 ;
26573 int res1 = 0 ;
26574 PyObject *swig_obj[1] ;
26575
26576 if (!args) SWIG_fail;
26577 swig_obj[0] = args;
26578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26579 if (!SWIG_IsOK(res1)) {
26580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26581 }
26582 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26583 result = (int)(int) ((arg1)->border);
26584 resultobj = SWIG_From_int(static_cast< int >(result));
26585 return resultobj;
26586 fail:
26587 return NULL;
26588 }
26589
26590
26591 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26592 PyObject *resultobj = 0;
26593 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26594 bool result;
26595 void *argp1 = 0 ;
26596 int res1 = 0 ;
26597 PyObject *swig_obj[1] ;
26598
26599 if (!args) SWIG_fail;
26600 swig_obj[0] = args;
26601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26602 if (!SWIG_IsOK(res1)) {
26603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26604 }
26605 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26606 result = (bool)(bool) ((arg1)->isHotSensitive);
26607 resultobj = SWIG_From_bool(static_cast< bool >(result));
26608 return resultobj;
26609 fail:
26610 return NULL;
26611 }
26612
26613
26614 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26615 PyObject *obj;
26616 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26617 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
26618 return SWIG_Py_Void();
26619 }
26620
26621 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26622 return SWIG_Python_InitShadowInstance(args);
26623 }
26624
26625 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26626 PyObject *resultobj = 0;
26627 int arg1 ;
26628 int arg2 ;
26629 wxRendererVersion *result = 0 ;
26630 int val1 ;
26631 int ecode1 = 0 ;
26632 int val2 ;
26633 int ecode2 = 0 ;
26634 PyObject * obj0 = 0 ;
26635 PyObject * obj1 = 0 ;
26636 char * kwnames[] = {
26637 (char *) "version_",(char *) "age_", NULL
26638 };
26639
26640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
26641 ecode1 = SWIG_AsVal_int(obj0, &val1);
26642 if (!SWIG_IsOK(ecode1)) {
26643 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
26644 }
26645 arg1 = static_cast< int >(val1);
26646 ecode2 = SWIG_AsVal_int(obj1, &val2);
26647 if (!SWIG_IsOK(ecode2)) {
26648 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
26649 }
26650 arg2 = static_cast< int >(val2);
26651 {
26652 PyThreadState* __tstate = wxPyBeginAllowThreads();
26653 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
26654 wxPyEndAllowThreads(__tstate);
26655 if (PyErr_Occurred()) SWIG_fail;
26656 }
26657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
26658 return resultobj;
26659 fail:
26660 return NULL;
26661 }
26662
26663
26664 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26665 PyObject *resultobj = 0;
26666 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
26667 void *argp1 = 0 ;
26668 int res1 = 0 ;
26669 PyObject *swig_obj[1] ;
26670
26671 if (!args) SWIG_fail;
26672 swig_obj[0] = args;
26673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
26674 if (!SWIG_IsOK(res1)) {
26675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
26676 }
26677 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
26678 {
26679 PyThreadState* __tstate = wxPyBeginAllowThreads();
26680 delete arg1;
26681
26682 wxPyEndAllowThreads(__tstate);
26683 if (PyErr_Occurred()) SWIG_fail;
26684 }
26685 resultobj = SWIG_Py_Void();
26686 return resultobj;
26687 fail:
26688 return NULL;
26689 }
26690
26691
26692 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26693 PyObject *resultobj = 0;
26694 wxRendererVersion *arg1 = 0 ;
26695 bool result;
26696 void *argp1 = 0 ;
26697 int res1 = 0 ;
26698 PyObject * obj0 = 0 ;
26699 char * kwnames[] = {
26700 (char *) "ver", NULL
26701 };
26702
26703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
26704 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
26705 if (!SWIG_IsOK(res1)) {
26706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
26707 }
26708 if (!argp1) {
26709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
26710 }
26711 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
26712 {
26713 PyThreadState* __tstate = wxPyBeginAllowThreads();
26714 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
26715 wxPyEndAllowThreads(__tstate);
26716 if (PyErr_Occurred()) SWIG_fail;
26717 }
26718 {
26719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26720 }
26721 return resultobj;
26722 fail:
26723 return NULL;
26724 }
26725
26726
26727 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26728 PyObject *resultobj = 0;
26729 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
26730 int result;
26731 void *argp1 = 0 ;
26732 int res1 = 0 ;
26733 PyObject *swig_obj[1] ;
26734
26735 if (!args) SWIG_fail;
26736 swig_obj[0] = args;
26737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
26738 if (!SWIG_IsOK(res1)) {
26739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
26740 }
26741 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
26742 result = (int)(int) ((arg1)->version);
26743 resultobj = SWIG_From_int(static_cast< int >(result));
26744 return resultobj;
26745 fail:
26746 return NULL;
26747 }
26748
26749
26750 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26751 PyObject *resultobj = 0;
26752 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
26753 int result;
26754 void *argp1 = 0 ;
26755 int res1 = 0 ;
26756 PyObject *swig_obj[1] ;
26757
26758 if (!args) SWIG_fail;
26759 swig_obj[0] = args;
26760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
26761 if (!SWIG_IsOK(res1)) {
26762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
26763 }
26764 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
26765 result = (int)(int) ((arg1)->age);
26766 resultobj = SWIG_From_int(static_cast< int >(result));
26767 return resultobj;
26768 fail:
26769 return NULL;
26770 }
26771
26772
26773 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26774 PyObject *obj;
26775 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26776 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
26777 return SWIG_Py_Void();
26778 }
26779
26780 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26781 return SWIG_Python_InitShadowInstance(args);
26782 }
26783
26784 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26785 PyObject *resultobj = 0;
26786 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26787 wxWindow *arg2 = (wxWindow *) 0 ;
26788 wxDC *arg3 = 0 ;
26789 wxRect *arg4 = 0 ;
26790 int arg5 = (int) 0 ;
26791 void *argp1 = 0 ;
26792 int res1 = 0 ;
26793 void *argp2 = 0 ;
26794 int res2 = 0 ;
26795 void *argp3 = 0 ;
26796 int res3 = 0 ;
26797 wxRect temp4 ;
26798 int val5 ;
26799 int ecode5 = 0 ;
26800 PyObject * obj0 = 0 ;
26801 PyObject * obj1 = 0 ;
26802 PyObject * obj2 = 0 ;
26803 PyObject * obj3 = 0 ;
26804 PyObject * obj4 = 0 ;
26805 char * kwnames[] = {
26806 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
26807 };
26808
26809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
26811 if (!SWIG_IsOK(res1)) {
26812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
26813 }
26814 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
26815 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26816 if (!SWIG_IsOK(res2)) {
26817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
26818 }
26819 arg2 = reinterpret_cast< wxWindow * >(argp2);
26820 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26821 if (!SWIG_IsOK(res3)) {
26822 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
26823 }
26824 if (!argp3) {
26825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
26826 }
26827 arg3 = reinterpret_cast< wxDC * >(argp3);
26828 {
26829 arg4 = &temp4;
26830 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
26831 }
26832 if (obj4) {
26833 ecode5 = SWIG_AsVal_int(obj4, &val5);
26834 if (!SWIG_IsOK(ecode5)) {
26835 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
26836 }
26837 arg5 = static_cast< int >(val5);
26838 }
26839 {
26840 PyThreadState* __tstate = wxPyBeginAllowThreads();
26841 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
26842 wxPyEndAllowThreads(__tstate);
26843 if (PyErr_Occurred()) SWIG_fail;
26844 }
26845 resultobj = SWIG_Py_Void();
26846 return resultobj;
26847 fail:
26848 return NULL;
26849 }
26850
26851
26852 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26853 PyObject *resultobj = 0;
26854 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26855 wxWindow *arg2 = (wxWindow *) 0 ;
26856 wxDC *arg3 = 0 ;
26857 wxRect *arg4 = 0 ;
26858 int arg5 = (int) 0 ;
26859 void *argp1 = 0 ;
26860 int res1 = 0 ;
26861 void *argp2 = 0 ;
26862 int res2 = 0 ;
26863 void *argp3 = 0 ;
26864 int res3 = 0 ;
26865 wxRect temp4 ;
26866 int val5 ;
26867 int ecode5 = 0 ;
26868 PyObject * obj0 = 0 ;
26869 PyObject * obj1 = 0 ;
26870 PyObject * obj2 = 0 ;
26871 PyObject * obj3 = 0 ;
26872 PyObject * obj4 = 0 ;
26873 char * kwnames[] = {
26874 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
26875 };
26876
26877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
26879 if (!SWIG_IsOK(res1)) {
26880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
26881 }
26882 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
26883 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26884 if (!SWIG_IsOK(res2)) {
26885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
26886 }
26887 arg2 = reinterpret_cast< wxWindow * >(argp2);
26888 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26889 if (!SWIG_IsOK(res3)) {
26890 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
26891 }
26892 if (!argp3) {
26893 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
26894 }
26895 arg3 = reinterpret_cast< wxDC * >(argp3);
26896 {
26897 arg4 = &temp4;
26898 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
26899 }
26900 if (obj4) {
26901 ecode5 = SWIG_AsVal_int(obj4, &val5);
26902 if (!SWIG_IsOK(ecode5)) {
26903 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
26904 }
26905 arg5 = static_cast< int >(val5);
26906 }
26907 {
26908 PyThreadState* __tstate = wxPyBeginAllowThreads();
26909 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
26910 wxPyEndAllowThreads(__tstate);
26911 if (PyErr_Occurred()) SWIG_fail;
26912 }
26913 resultobj = SWIG_Py_Void();
26914 return resultobj;
26915 fail:
26916 return NULL;
26917 }
26918
26919
26920 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26921 PyObject *resultobj = 0;
26922 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26923 wxWindow *arg2 = (wxWindow *) 0 ;
26924 wxDC *arg3 = 0 ;
26925 wxRect *arg4 = 0 ;
26926 int arg5 = (int) 0 ;
26927 void *argp1 = 0 ;
26928 int res1 = 0 ;
26929 void *argp2 = 0 ;
26930 int res2 = 0 ;
26931 void *argp3 = 0 ;
26932 int res3 = 0 ;
26933 wxRect temp4 ;
26934 int val5 ;
26935 int ecode5 = 0 ;
26936 PyObject * obj0 = 0 ;
26937 PyObject * obj1 = 0 ;
26938 PyObject * obj2 = 0 ;
26939 PyObject * obj3 = 0 ;
26940 PyObject * obj4 = 0 ;
26941 char * kwnames[] = {
26942 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
26943 };
26944
26945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
26947 if (!SWIG_IsOK(res1)) {
26948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
26949 }
26950 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
26951 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26952 if (!SWIG_IsOK(res2)) {
26953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
26954 }
26955 arg2 = reinterpret_cast< wxWindow * >(argp2);
26956 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26957 if (!SWIG_IsOK(res3)) {
26958 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
26959 }
26960 if (!argp3) {
26961 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
26962 }
26963 arg3 = reinterpret_cast< wxDC * >(argp3);
26964 {
26965 arg4 = &temp4;
26966 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
26967 }
26968 if (obj4) {
26969 ecode5 = SWIG_AsVal_int(obj4, &val5);
26970 if (!SWIG_IsOK(ecode5)) {
26971 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
26972 }
26973 arg5 = static_cast< int >(val5);
26974 }
26975 {
26976 PyThreadState* __tstate = wxPyBeginAllowThreads();
26977 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
26978 wxPyEndAllowThreads(__tstate);
26979 if (PyErr_Occurred()) SWIG_fail;
26980 }
26981 resultobj = SWIG_Py_Void();
26982 return resultobj;
26983 fail:
26984 return NULL;
26985 }
26986
26987
26988 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26989 PyObject *resultobj = 0;
26990 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26991 wxWindow *arg2 = (wxWindow *) 0 ;
26992 wxDC *arg3 = 0 ;
26993 wxSize *arg4 = 0 ;
26994 int arg5 ;
26995 wxOrientation arg6 ;
26996 int arg7 = (int) 0 ;
26997 void *argp1 = 0 ;
26998 int res1 = 0 ;
26999 void *argp2 = 0 ;
27000 int res2 = 0 ;
27001 void *argp3 = 0 ;
27002 int res3 = 0 ;
27003 wxSize temp4 ;
27004 int val5 ;
27005 int ecode5 = 0 ;
27006 int val6 ;
27007 int ecode6 = 0 ;
27008 int val7 ;
27009 int ecode7 = 0 ;
27010 PyObject * obj0 = 0 ;
27011 PyObject * obj1 = 0 ;
27012 PyObject * obj2 = 0 ;
27013 PyObject * obj3 = 0 ;
27014 PyObject * obj4 = 0 ;
27015 PyObject * obj5 = 0 ;
27016 PyObject * obj6 = 0 ;
27017 char * kwnames[] = {
27018 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
27019 };
27020
27021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27023 if (!SWIG_IsOK(res1)) {
27024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27025 }
27026 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27027 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27028 if (!SWIG_IsOK(res2)) {
27029 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
27030 }
27031 arg2 = reinterpret_cast< wxWindow * >(argp2);
27032 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27033 if (!SWIG_IsOK(res3)) {
27034 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
27035 }
27036 if (!argp3) {
27037 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
27038 }
27039 arg3 = reinterpret_cast< wxDC * >(argp3);
27040 {
27041 arg4 = &temp4;
27042 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
27043 }
27044 ecode5 = SWIG_AsVal_int(obj4, &val5);
27045 if (!SWIG_IsOK(ecode5)) {
27046 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
27047 }
27048 arg5 = static_cast< int >(val5);
27049 ecode6 = SWIG_AsVal_int(obj5, &val6);
27050 if (!SWIG_IsOK(ecode6)) {
27051 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
27052 }
27053 arg6 = static_cast< wxOrientation >(val6);
27054 if (obj6) {
27055 ecode7 = SWIG_AsVal_int(obj6, &val7);
27056 if (!SWIG_IsOK(ecode7)) {
27057 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
27058 }
27059 arg7 = static_cast< int >(val7);
27060 }
27061 {
27062 PyThreadState* __tstate = wxPyBeginAllowThreads();
27063 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
27064 wxPyEndAllowThreads(__tstate);
27065 if (PyErr_Occurred()) SWIG_fail;
27066 }
27067 resultobj = SWIG_Py_Void();
27068 return resultobj;
27069 fail:
27070 return NULL;
27071 }
27072
27073
27074 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27075 PyObject *resultobj = 0;
27076 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27077 wxWindow *arg2 = (wxWindow *) 0 ;
27078 wxDC *arg3 = 0 ;
27079 wxRect *arg4 = 0 ;
27080 int arg5 = (int) 0 ;
27081 void *argp1 = 0 ;
27082 int res1 = 0 ;
27083 void *argp2 = 0 ;
27084 int res2 = 0 ;
27085 void *argp3 = 0 ;
27086 int res3 = 0 ;
27087 wxRect temp4 ;
27088 int val5 ;
27089 int ecode5 = 0 ;
27090 PyObject * obj0 = 0 ;
27091 PyObject * obj1 = 0 ;
27092 PyObject * obj2 = 0 ;
27093 PyObject * obj3 = 0 ;
27094 PyObject * obj4 = 0 ;
27095 char * kwnames[] = {
27096 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27097 };
27098
27099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27101 if (!SWIG_IsOK(res1)) {
27102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27103 }
27104 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27105 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27106 if (!SWIG_IsOK(res2)) {
27107 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27108 }
27109 arg2 = reinterpret_cast< wxWindow * >(argp2);
27110 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27111 if (!SWIG_IsOK(res3)) {
27112 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
27113 }
27114 if (!argp3) {
27115 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
27116 }
27117 arg3 = reinterpret_cast< wxDC * >(argp3);
27118 {
27119 arg4 = &temp4;
27120 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27121 }
27122 if (obj4) {
27123 ecode5 = SWIG_AsVal_int(obj4, &val5);
27124 if (!SWIG_IsOK(ecode5)) {
27125 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
27126 }
27127 arg5 = static_cast< int >(val5);
27128 }
27129 {
27130 PyThreadState* __tstate = wxPyBeginAllowThreads();
27131 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27132 wxPyEndAllowThreads(__tstate);
27133 if (PyErr_Occurred()) SWIG_fail;
27134 }
27135 resultobj = SWIG_Py_Void();
27136 return resultobj;
27137 fail:
27138 return NULL;
27139 }
27140
27141
27142 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27143 PyObject *resultobj = 0;
27144 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27145 wxWindow *arg2 = (wxWindow *) 0 ;
27146 wxDC *arg3 = 0 ;
27147 wxRect *arg4 = 0 ;
27148 int arg5 = (int) 0 ;
27149 void *argp1 = 0 ;
27150 int res1 = 0 ;
27151 void *argp2 = 0 ;
27152 int res2 = 0 ;
27153 void *argp3 = 0 ;
27154 int res3 = 0 ;
27155 wxRect temp4 ;
27156 int val5 ;
27157 int ecode5 = 0 ;
27158 PyObject * obj0 = 0 ;
27159 PyObject * obj1 = 0 ;
27160 PyObject * obj2 = 0 ;
27161 PyObject * obj3 = 0 ;
27162 PyObject * obj4 = 0 ;
27163 char * kwnames[] = {
27164 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27165 };
27166
27167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27169 if (!SWIG_IsOK(res1)) {
27170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27171 }
27172 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27173 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27174 if (!SWIG_IsOK(res2)) {
27175 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
27176 }
27177 arg2 = reinterpret_cast< wxWindow * >(argp2);
27178 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27179 if (!SWIG_IsOK(res3)) {
27180 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
27181 }
27182 if (!argp3) {
27183 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
27184 }
27185 arg3 = reinterpret_cast< wxDC * >(argp3);
27186 {
27187 arg4 = &temp4;
27188 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27189 }
27190 if (obj4) {
27191 ecode5 = SWIG_AsVal_int(obj4, &val5);
27192 if (!SWIG_IsOK(ecode5)) {
27193 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
27194 }
27195 arg5 = static_cast< int >(val5);
27196 }
27197 {
27198 PyThreadState* __tstate = wxPyBeginAllowThreads();
27199 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
27200 wxPyEndAllowThreads(__tstate);
27201 if (PyErr_Occurred()) SWIG_fail;
27202 }
27203 resultobj = SWIG_Py_Void();
27204 return resultobj;
27205 fail:
27206 return NULL;
27207 }
27208
27209
27210 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27211 PyObject *resultobj = 0;
27212 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27213 wxWindow *arg2 = (wxWindow *) 0 ;
27214 wxDC *arg3 = 0 ;
27215 wxRect *arg4 = 0 ;
27216 int arg5 = (int) 0 ;
27217 void *argp1 = 0 ;
27218 int res1 = 0 ;
27219 void *argp2 = 0 ;
27220 int res2 = 0 ;
27221 void *argp3 = 0 ;
27222 int res3 = 0 ;
27223 wxRect temp4 ;
27224 int val5 ;
27225 int ecode5 = 0 ;
27226 PyObject * obj0 = 0 ;
27227 PyObject * obj1 = 0 ;
27228 PyObject * obj2 = 0 ;
27229 PyObject * obj3 = 0 ;
27230 PyObject * obj4 = 0 ;
27231 char * kwnames[] = {
27232 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27233 };
27234
27235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27237 if (!SWIG_IsOK(res1)) {
27238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27239 }
27240 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27241 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27242 if (!SWIG_IsOK(res2)) {
27243 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
27244 }
27245 arg2 = reinterpret_cast< wxWindow * >(argp2);
27246 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27247 if (!SWIG_IsOK(res3)) {
27248 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
27249 }
27250 if (!argp3) {
27251 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
27252 }
27253 arg3 = reinterpret_cast< wxDC * >(argp3);
27254 {
27255 arg4 = &temp4;
27256 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27257 }
27258 if (obj4) {
27259 ecode5 = SWIG_AsVal_int(obj4, &val5);
27260 if (!SWIG_IsOK(ecode5)) {
27261 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
27262 }
27263 arg5 = static_cast< int >(val5);
27264 }
27265 {
27266 PyThreadState* __tstate = wxPyBeginAllowThreads();
27267 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
27268 wxPyEndAllowThreads(__tstate);
27269 if (PyErr_Occurred()) SWIG_fail;
27270 }
27271 resultobj = SWIG_Py_Void();
27272 return resultobj;
27273 fail:
27274 return NULL;
27275 }
27276
27277
27278 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27279 PyObject *resultobj = 0;
27280 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27281 wxWindow *arg2 = (wxWindow *) 0 ;
27282 wxDC *arg3 = 0 ;
27283 wxRect *arg4 = 0 ;
27284 int arg5 = (int) 0 ;
27285 void *argp1 = 0 ;
27286 int res1 = 0 ;
27287 void *argp2 = 0 ;
27288 int res2 = 0 ;
27289 void *argp3 = 0 ;
27290 int res3 = 0 ;
27291 wxRect temp4 ;
27292 int val5 ;
27293 int ecode5 = 0 ;
27294 PyObject * obj0 = 0 ;
27295 PyObject * obj1 = 0 ;
27296 PyObject * obj2 = 0 ;
27297 PyObject * obj3 = 0 ;
27298 PyObject * obj4 = 0 ;
27299 char * kwnames[] = {
27300 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27301 };
27302
27303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27305 if (!SWIG_IsOK(res1)) {
27306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27307 }
27308 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27309 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27310 if (!SWIG_IsOK(res2)) {
27311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27312 }
27313 arg2 = reinterpret_cast< wxWindow * >(argp2);
27314 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27315 if (!SWIG_IsOK(res3)) {
27316 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
27317 }
27318 if (!argp3) {
27319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
27320 }
27321 arg3 = reinterpret_cast< wxDC * >(argp3);
27322 {
27323 arg4 = &temp4;
27324 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27325 }
27326 if (obj4) {
27327 ecode5 = SWIG_AsVal_int(obj4, &val5);
27328 if (!SWIG_IsOK(ecode5)) {
27329 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
27330 }
27331 arg5 = static_cast< int >(val5);
27332 }
27333 {
27334 PyThreadState* __tstate = wxPyBeginAllowThreads();
27335 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27336 wxPyEndAllowThreads(__tstate);
27337 if (PyErr_Occurred()) SWIG_fail;
27338 }
27339 resultobj = SWIG_Py_Void();
27340 return resultobj;
27341 fail:
27342 return NULL;
27343 }
27344
27345
27346 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27347 PyObject *resultobj = 0;
27348 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27349 wxWindow *arg2 = (wxWindow *) 0 ;
27350 wxDC *arg3 = 0 ;
27351 wxRect *arg4 = 0 ;
27352 int arg5 = (int) 0 ;
27353 void *argp1 = 0 ;
27354 int res1 = 0 ;
27355 void *argp2 = 0 ;
27356 int res2 = 0 ;
27357 void *argp3 = 0 ;
27358 int res3 = 0 ;
27359 wxRect temp4 ;
27360 int val5 ;
27361 int ecode5 = 0 ;
27362 PyObject * obj0 = 0 ;
27363 PyObject * obj1 = 0 ;
27364 PyObject * obj2 = 0 ;
27365 PyObject * obj3 = 0 ;
27366 PyObject * obj4 = 0 ;
27367 char * kwnames[] = {
27368 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27369 };
27370
27371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27373 if (!SWIG_IsOK(res1)) {
27374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27375 }
27376 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27377 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27378 if (!SWIG_IsOK(res2)) {
27379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
27380 }
27381 arg2 = reinterpret_cast< wxWindow * >(argp2);
27382 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27383 if (!SWIG_IsOK(res3)) {
27384 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
27385 }
27386 if (!argp3) {
27387 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
27388 }
27389 arg3 = reinterpret_cast< wxDC * >(argp3);
27390 {
27391 arg4 = &temp4;
27392 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27393 }
27394 if (obj4) {
27395 ecode5 = SWIG_AsVal_int(obj4, &val5);
27396 if (!SWIG_IsOK(ecode5)) {
27397 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
27398 }
27399 arg5 = static_cast< int >(val5);
27400 }
27401 {
27402 PyThreadState* __tstate = wxPyBeginAllowThreads();
27403 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
27404 wxPyEndAllowThreads(__tstate);
27405 if (PyErr_Occurred()) SWIG_fail;
27406 }
27407 resultobj = SWIG_Py_Void();
27408 return resultobj;
27409 fail:
27410 return NULL;
27411 }
27412
27413
27414 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27415 PyObject *resultobj = 0;
27416 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27417 wxWindow *arg2 = (wxWindow *) 0 ;
27418 SwigValueWrapper<wxSplitterRenderParams > result;
27419 void *argp1 = 0 ;
27420 int res1 = 0 ;
27421 void *argp2 = 0 ;
27422 int res2 = 0 ;
27423 PyObject * obj0 = 0 ;
27424 PyObject * obj1 = 0 ;
27425 char * kwnames[] = {
27426 (char *) "self",(char *) "win", NULL
27427 };
27428
27429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
27430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27431 if (!SWIG_IsOK(res1)) {
27432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27433 }
27434 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27435 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27436 if (!SWIG_IsOK(res2)) {
27437 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
27438 }
27439 arg2 = reinterpret_cast< wxWindow * >(argp2);
27440 {
27441 PyThreadState* __tstate = wxPyBeginAllowThreads();
27442 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
27443 wxPyEndAllowThreads(__tstate);
27444 if (PyErr_Occurred()) SWIG_fail;
27445 }
27446 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
27447 return resultobj;
27448 fail:
27449 return NULL;
27450 }
27451
27452
27453 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27454 PyObject *resultobj = 0;
27455 wxRendererNative *result = 0 ;
27456
27457 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
27458 {
27459 if (!wxPyCheckForApp()) SWIG_fail;
27460 PyThreadState* __tstate = wxPyBeginAllowThreads();
27461 {
27462 wxRendererNative &_result_ref = wxRendererNative::Get();
27463 result = (wxRendererNative *) &_result_ref;
27464 }
27465 wxPyEndAllowThreads(__tstate);
27466 if (PyErr_Occurred()) SWIG_fail;
27467 }
27468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
27469 return resultobj;
27470 fail:
27471 return NULL;
27472 }
27473
27474
27475 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27476 PyObject *resultobj = 0;
27477 wxRendererNative *result = 0 ;
27478
27479 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
27480 {
27481 if (!wxPyCheckForApp()) SWIG_fail;
27482 PyThreadState* __tstate = wxPyBeginAllowThreads();
27483 {
27484 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
27485 result = (wxRendererNative *) &_result_ref;
27486 }
27487 wxPyEndAllowThreads(__tstate);
27488 if (PyErr_Occurred()) SWIG_fail;
27489 }
27490 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
27491 return resultobj;
27492 fail:
27493 return NULL;
27494 }
27495
27496
27497 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27498 PyObject *resultobj = 0;
27499 wxRendererNative *result = 0 ;
27500
27501 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
27502 {
27503 if (!wxPyCheckForApp()) SWIG_fail;
27504 PyThreadState* __tstate = wxPyBeginAllowThreads();
27505 {
27506 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
27507 result = (wxRendererNative *) &_result_ref;
27508 }
27509 wxPyEndAllowThreads(__tstate);
27510 if (PyErr_Occurred()) SWIG_fail;
27511 }
27512 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
27513 return resultobj;
27514 fail:
27515 return NULL;
27516 }
27517
27518
27519 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27520 PyObject *resultobj = 0;
27521 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27522 wxRendererNative *result = 0 ;
27523 void *argp1 = 0 ;
27524 int res1 = 0 ;
27525 PyObject * obj0 = 0 ;
27526 char * kwnames[] = {
27527 (char *) "renderer", NULL
27528 };
27529
27530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
27531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27532 if (!SWIG_IsOK(res1)) {
27533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27534 }
27535 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27536 {
27537 if (!wxPyCheckForApp()) SWIG_fail;
27538 PyThreadState* __tstate = wxPyBeginAllowThreads();
27539 result = (wxRendererNative *)wxRendererNative::Set(arg1);
27540 wxPyEndAllowThreads(__tstate);
27541 if (PyErr_Occurred()) SWIG_fail;
27542 }
27543 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
27544 return resultobj;
27545 fail:
27546 return NULL;
27547 }
27548
27549
27550 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27551 PyObject *resultobj = 0;
27552 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27553 SwigValueWrapper<wxRendererVersion > result;
27554 void *argp1 = 0 ;
27555 int res1 = 0 ;
27556 PyObject *swig_obj[1] ;
27557
27558 if (!args) SWIG_fail;
27559 swig_obj[0] = args;
27560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27561 if (!SWIG_IsOK(res1)) {
27562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
27563 }
27564 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27565 {
27566 PyThreadState* __tstate = wxPyBeginAllowThreads();
27567 result = ((wxRendererNative const *)arg1)->GetVersion();
27568 wxPyEndAllowThreads(__tstate);
27569 if (PyErr_Occurred()) SWIG_fail;
27570 }
27571 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
27572 return resultobj;
27573 fail:
27574 return NULL;
27575 }
27576
27577
27578 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27579 PyObject *obj;
27580 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27581 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
27582 return SWIG_Py_Void();
27583 }
27584
27585 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27586 PyObject *resultobj = 0;
27587 wxPseudoDC *result = 0 ;
27588
27589 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
27590 {
27591 PyThreadState* __tstate = wxPyBeginAllowThreads();
27592 result = (wxPseudoDC *)new wxPseudoDC();
27593 wxPyEndAllowThreads(__tstate);
27594 if (PyErr_Occurred()) SWIG_fail;
27595 }
27596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
27597 return resultobj;
27598 fail:
27599 return NULL;
27600 }
27601
27602
27603 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27604 PyObject *resultobj = 0;
27605 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27606 void *argp1 = 0 ;
27607 int res1 = 0 ;
27608 PyObject *swig_obj[1] ;
27609
27610 if (!args) SWIG_fail;
27611 swig_obj[0] = args;
27612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27613 if (!SWIG_IsOK(res1)) {
27614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27615 }
27616 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27617 {
27618 PyThreadState* __tstate = wxPyBeginAllowThreads();
27619 (arg1)->BeginDrawing();
27620 wxPyEndAllowThreads(__tstate);
27621 if (PyErr_Occurred()) SWIG_fail;
27622 }
27623 resultobj = SWIG_Py_Void();
27624 return resultobj;
27625 fail:
27626 return NULL;
27627 }
27628
27629
27630 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27631 PyObject *resultobj = 0;
27632 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27633 void *argp1 = 0 ;
27634 int res1 = 0 ;
27635 PyObject *swig_obj[1] ;
27636
27637 if (!args) SWIG_fail;
27638 swig_obj[0] = args;
27639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27640 if (!SWIG_IsOK(res1)) {
27641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27642 }
27643 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27644 {
27645 PyThreadState* __tstate = wxPyBeginAllowThreads();
27646 (arg1)->EndDrawing();
27647 wxPyEndAllowThreads(__tstate);
27648 if (PyErr_Occurred()) SWIG_fail;
27649 }
27650 resultobj = SWIG_Py_Void();
27651 return resultobj;
27652 fail:
27653 return NULL;
27654 }
27655
27656
27657 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27658 PyObject *resultobj = 0;
27659 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27660 void *argp1 = 0 ;
27661 int res1 = 0 ;
27662 PyObject *swig_obj[1] ;
27663
27664 if (!args) SWIG_fail;
27665 swig_obj[0] = args;
27666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
27667 if (!SWIG_IsOK(res1)) {
27668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27669 }
27670 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27671 {
27672 PyThreadState* __tstate = wxPyBeginAllowThreads();
27673 delete arg1;
27674
27675 wxPyEndAllowThreads(__tstate);
27676 if (PyErr_Occurred()) SWIG_fail;
27677 }
27678 resultobj = SWIG_Py_Void();
27679 return resultobj;
27680 fail:
27681 return NULL;
27682 }
27683
27684
27685 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27686 PyObject *resultobj = 0;
27687 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27688 void *argp1 = 0 ;
27689 int res1 = 0 ;
27690 PyObject *swig_obj[1] ;
27691
27692 if (!args) SWIG_fail;
27693 swig_obj[0] = args;
27694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27695 if (!SWIG_IsOK(res1)) {
27696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27697 }
27698 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27699 {
27700 PyThreadState* __tstate = wxPyBeginAllowThreads();
27701 (arg1)->RemoveAll();
27702 wxPyEndAllowThreads(__tstate);
27703 if (PyErr_Occurred()) SWIG_fail;
27704 }
27705 resultobj = SWIG_Py_Void();
27706 return resultobj;
27707 fail:
27708 return NULL;
27709 }
27710
27711
27712 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27713 PyObject *resultobj = 0;
27714 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27715 int result;
27716 void *argp1 = 0 ;
27717 int res1 = 0 ;
27718 PyObject *swig_obj[1] ;
27719
27720 if (!args) SWIG_fail;
27721 swig_obj[0] = args;
27722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27723 if (!SWIG_IsOK(res1)) {
27724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27725 }
27726 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27727 {
27728 PyThreadState* __tstate = wxPyBeginAllowThreads();
27729 result = (int)(arg1)->GetLen();
27730 wxPyEndAllowThreads(__tstate);
27731 if (PyErr_Occurred()) SWIG_fail;
27732 }
27733 resultobj = SWIG_From_int(static_cast< int >(result));
27734 return resultobj;
27735 fail:
27736 return NULL;
27737 }
27738
27739
27740 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27741 PyObject *resultobj = 0;
27742 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27743 int arg2 ;
27744 void *argp1 = 0 ;
27745 int res1 = 0 ;
27746 int val2 ;
27747 int ecode2 = 0 ;
27748 PyObject * obj0 = 0 ;
27749 PyObject * obj1 = 0 ;
27750 char * kwnames[] = {
27751 (char *) "self",(char *) "id", NULL
27752 };
27753
27754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
27755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27756 if (!SWIG_IsOK(res1)) {
27757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27758 }
27759 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27760 ecode2 = SWIG_AsVal_int(obj1, &val2);
27761 if (!SWIG_IsOK(ecode2)) {
27762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
27763 }
27764 arg2 = static_cast< int >(val2);
27765 {
27766 PyThreadState* __tstate = wxPyBeginAllowThreads();
27767 (arg1)->SetId(arg2);
27768 wxPyEndAllowThreads(__tstate);
27769 if (PyErr_Occurred()) SWIG_fail;
27770 }
27771 resultobj = SWIG_Py_Void();
27772 return resultobj;
27773 fail:
27774 return NULL;
27775 }
27776
27777
27778 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27779 PyObject *resultobj = 0;
27780 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27781 int arg2 ;
27782 void *argp1 = 0 ;
27783 int res1 = 0 ;
27784 int val2 ;
27785 int ecode2 = 0 ;
27786 PyObject * obj0 = 0 ;
27787 PyObject * obj1 = 0 ;
27788 char * kwnames[] = {
27789 (char *) "self",(char *) "id", NULL
27790 };
27791
27792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
27793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27794 if (!SWIG_IsOK(res1)) {
27795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27796 }
27797 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27798 ecode2 = SWIG_AsVal_int(obj1, &val2);
27799 if (!SWIG_IsOK(ecode2)) {
27800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
27801 }
27802 arg2 = static_cast< int >(val2);
27803 {
27804 PyThreadState* __tstate = wxPyBeginAllowThreads();
27805 (arg1)->ClearId(arg2);
27806 wxPyEndAllowThreads(__tstate);
27807 if (PyErr_Occurred()) SWIG_fail;
27808 }
27809 resultobj = SWIG_Py_Void();
27810 return resultobj;
27811 fail:
27812 return NULL;
27813 }
27814
27815
27816 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27817 PyObject *resultobj = 0;
27818 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27819 int arg2 ;
27820 void *argp1 = 0 ;
27821 int res1 = 0 ;
27822 int val2 ;
27823 int ecode2 = 0 ;
27824 PyObject * obj0 = 0 ;
27825 PyObject * obj1 = 0 ;
27826 char * kwnames[] = {
27827 (char *) "self",(char *) "id", NULL
27828 };
27829
27830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
27831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27832 if (!SWIG_IsOK(res1)) {
27833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27834 }
27835 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27836 ecode2 = SWIG_AsVal_int(obj1, &val2);
27837 if (!SWIG_IsOK(ecode2)) {
27838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
27839 }
27840 arg2 = static_cast< int >(val2);
27841 {
27842 PyThreadState* __tstate = wxPyBeginAllowThreads();
27843 (arg1)->RemoveId(arg2);
27844 wxPyEndAllowThreads(__tstate);
27845 if (PyErr_Occurred()) SWIG_fail;
27846 }
27847 resultobj = SWIG_Py_Void();
27848 return resultobj;
27849 fail:
27850 return NULL;
27851 }
27852
27853
27854 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27855 PyObject *resultobj = 0;
27856 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27857 int arg2 ;
27858 int arg3 ;
27859 int arg4 ;
27860 void *argp1 = 0 ;
27861 int res1 = 0 ;
27862 int val2 ;
27863 int ecode2 = 0 ;
27864 int val3 ;
27865 int ecode3 = 0 ;
27866 int val4 ;
27867 int ecode4 = 0 ;
27868 PyObject * obj0 = 0 ;
27869 PyObject * obj1 = 0 ;
27870 PyObject * obj2 = 0 ;
27871 PyObject * obj3 = 0 ;
27872 char * kwnames[] = {
27873 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
27874 };
27875
27876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27878 if (!SWIG_IsOK(res1)) {
27879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27880 }
27881 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27882 ecode2 = SWIG_AsVal_int(obj1, &val2);
27883 if (!SWIG_IsOK(ecode2)) {
27884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
27885 }
27886 arg2 = static_cast< int >(val2);
27887 ecode3 = SWIG_AsVal_int(obj2, &val3);
27888 if (!SWIG_IsOK(ecode3)) {
27889 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
27890 }
27891 arg3 = static_cast< int >(val3);
27892 ecode4 = SWIG_AsVal_int(obj3, &val4);
27893 if (!SWIG_IsOK(ecode4)) {
27894 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
27895 }
27896 arg4 = static_cast< int >(val4);
27897 {
27898 PyThreadState* __tstate = wxPyBeginAllowThreads();
27899 (arg1)->TranslateId(arg2,arg3,arg4);
27900 wxPyEndAllowThreads(__tstate);
27901 if (PyErr_Occurred()) SWIG_fail;
27902 }
27903 resultobj = SWIG_Py_Void();
27904 return resultobj;
27905 fail:
27906 return NULL;
27907 }
27908
27909
27910 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27911 PyObject *resultobj = 0;
27912 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27913 int arg2 ;
27914 wxDC *arg3 = (wxDC *) 0 ;
27915 void *argp1 = 0 ;
27916 int res1 = 0 ;
27917 int val2 ;
27918 int ecode2 = 0 ;
27919 void *argp3 = 0 ;
27920 int res3 = 0 ;
27921 PyObject * obj0 = 0 ;
27922 PyObject * obj1 = 0 ;
27923 PyObject * obj2 = 0 ;
27924 char * kwnames[] = {
27925 (char *) "self",(char *) "id",(char *) "dc", NULL
27926 };
27927
27928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27930 if (!SWIG_IsOK(res1)) {
27931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27932 }
27933 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27934 ecode2 = SWIG_AsVal_int(obj1, &val2);
27935 if (!SWIG_IsOK(ecode2)) {
27936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
27937 }
27938 arg2 = static_cast< int >(val2);
27939 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
27940 if (!SWIG_IsOK(res3)) {
27941 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
27942 }
27943 arg3 = reinterpret_cast< wxDC * >(argp3);
27944 {
27945 PyThreadState* __tstate = wxPyBeginAllowThreads();
27946 (arg1)->DrawIdToDC(arg2,arg3);
27947 wxPyEndAllowThreads(__tstate);
27948 if (PyErr_Occurred()) SWIG_fail;
27949 }
27950 resultobj = SWIG_Py_Void();
27951 return resultobj;
27952 fail:
27953 return NULL;
27954 }
27955
27956
27957 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27958 PyObject *resultobj = 0;
27959 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27960 int arg2 ;
27961 wxRect *arg3 = 0 ;
27962 void *argp1 = 0 ;
27963 int res1 = 0 ;
27964 int val2 ;
27965 int ecode2 = 0 ;
27966 wxRect temp3 ;
27967 PyObject * obj0 = 0 ;
27968 PyObject * obj1 = 0 ;
27969 PyObject * obj2 = 0 ;
27970 char * kwnames[] = {
27971 (char *) "self",(char *) "id",(char *) "rect", NULL
27972 };
27973
27974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27976 if (!SWIG_IsOK(res1)) {
27977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27978 }
27979 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27980 ecode2 = SWIG_AsVal_int(obj1, &val2);
27981 if (!SWIG_IsOK(ecode2)) {
27982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
27983 }
27984 arg2 = static_cast< int >(val2);
27985 {
27986 arg3 = &temp3;
27987 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
27988 }
27989 {
27990 PyThreadState* __tstate = wxPyBeginAllowThreads();
27991 (arg1)->SetIdBounds(arg2,*arg3);
27992 wxPyEndAllowThreads(__tstate);
27993 if (PyErr_Occurred()) SWIG_fail;
27994 }
27995 resultobj = SWIG_Py_Void();
27996 return resultobj;
27997 fail:
27998 return NULL;
27999 }
28000
28001
28002 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28003 PyObject *resultobj = 0;
28004 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28005 int arg2 ;
28006 wxRect result;
28007 void *argp1 = 0 ;
28008 int res1 = 0 ;
28009 int val2 ;
28010 int ecode2 = 0 ;
28011 PyObject * obj0 = 0 ;
28012 PyObject * obj1 = 0 ;
28013 char * kwnames[] = {
28014 (char *) "self",(char *) "id", NULL
28015 };
28016
28017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
28018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28019 if (!SWIG_IsOK(res1)) {
28020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28021 }
28022 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28023 ecode2 = SWIG_AsVal_int(obj1, &val2);
28024 if (!SWIG_IsOK(ecode2)) {
28025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
28026 }
28027 arg2 = static_cast< int >(val2);
28028 {
28029 PyThreadState* __tstate = wxPyBeginAllowThreads();
28030 result = wxPseudoDC_GetIdBounds(arg1,arg2);
28031 wxPyEndAllowThreads(__tstate);
28032 if (PyErr_Occurred()) SWIG_fail;
28033 }
28034 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28035 return resultobj;
28036 fail:
28037 return NULL;
28038 }
28039
28040
28041 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28042 PyObject *resultobj = 0;
28043 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28044 wxDC *arg2 = (wxDC *) 0 ;
28045 wxRect *arg3 = 0 ;
28046 void *argp1 = 0 ;
28047 int res1 = 0 ;
28048 void *argp2 = 0 ;
28049 int res2 = 0 ;
28050 wxRect temp3 ;
28051 PyObject * obj0 = 0 ;
28052 PyObject * obj1 = 0 ;
28053 PyObject * obj2 = 0 ;
28054 char * kwnames[] = {
28055 (char *) "self",(char *) "dc",(char *) "rect", NULL
28056 };
28057
28058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28060 if (!SWIG_IsOK(res1)) {
28061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28062 }
28063 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28064 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28065 if (!SWIG_IsOK(res2)) {
28066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
28067 }
28068 arg2 = reinterpret_cast< wxDC * >(argp2);
28069 {
28070 arg3 = &temp3;
28071 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
28072 }
28073 {
28074 PyThreadState* __tstate = wxPyBeginAllowThreads();
28075 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
28076 wxPyEndAllowThreads(__tstate);
28077 if (PyErr_Occurred()) SWIG_fail;
28078 }
28079 resultobj = SWIG_Py_Void();
28080 return resultobj;
28081 fail:
28082 return NULL;
28083 }
28084
28085
28086 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28087 PyObject *resultobj = 0;
28088 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28089 wxDC *arg2 = (wxDC *) 0 ;
28090 wxRegion *arg3 = 0 ;
28091 void *argp1 = 0 ;
28092 int res1 = 0 ;
28093 void *argp2 = 0 ;
28094 int res2 = 0 ;
28095 void *argp3 = 0 ;
28096 int res3 = 0 ;
28097 PyObject * obj0 = 0 ;
28098 PyObject * obj1 = 0 ;
28099 PyObject * obj2 = 0 ;
28100 char * kwnames[] = {
28101 (char *) "self",(char *) "dc",(char *) "region", NULL
28102 };
28103
28104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28106 if (!SWIG_IsOK(res1)) {
28107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28108 }
28109 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28110 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28111 if (!SWIG_IsOK(res2)) {
28112 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
28113 }
28114 arg2 = reinterpret_cast< wxDC * >(argp2);
28115 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
28116 if (!SWIG_IsOK(res3)) {
28117 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
28118 }
28119 if (!argp3) {
28120 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
28121 }
28122 arg3 = reinterpret_cast< wxRegion * >(argp3);
28123 {
28124 PyThreadState* __tstate = wxPyBeginAllowThreads();
28125 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
28126 wxPyEndAllowThreads(__tstate);
28127 if (PyErr_Occurred()) SWIG_fail;
28128 }
28129 resultobj = SWIG_Py_Void();
28130 return resultobj;
28131 fail:
28132 return NULL;
28133 }
28134
28135
28136 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28137 PyObject *resultobj = 0;
28138 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28139 wxDC *arg2 = (wxDC *) 0 ;
28140 void *argp1 = 0 ;
28141 int res1 = 0 ;
28142 void *argp2 = 0 ;
28143 int res2 = 0 ;
28144 PyObject * obj0 = 0 ;
28145 PyObject * obj1 = 0 ;
28146 char * kwnames[] = {
28147 (char *) "self",(char *) "dc", NULL
28148 };
28149
28150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
28151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28152 if (!SWIG_IsOK(res1)) {
28153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28154 }
28155 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28156 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28157 if (!SWIG_IsOK(res2)) {
28158 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
28159 }
28160 arg2 = reinterpret_cast< wxDC * >(argp2);
28161 {
28162 PyThreadState* __tstate = wxPyBeginAllowThreads();
28163 (arg1)->DrawToDC(arg2);
28164 wxPyEndAllowThreads(__tstate);
28165 if (PyErr_Occurred()) SWIG_fail;
28166 }
28167 resultobj = SWIG_Py_Void();
28168 return resultobj;
28169 fail:
28170 return NULL;
28171 }
28172
28173
28174 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28175 PyObject *resultobj = 0;
28176 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28177 int arg2 ;
28178 int arg3 ;
28179 wxColour *arg4 = 0 ;
28180 int arg5 = (int) wxFLOOD_SURFACE ;
28181 void *argp1 = 0 ;
28182 int res1 = 0 ;
28183 int val2 ;
28184 int ecode2 = 0 ;
28185 int val3 ;
28186 int ecode3 = 0 ;
28187 wxColour temp4 ;
28188 int val5 ;
28189 int ecode5 = 0 ;
28190 PyObject * obj0 = 0 ;
28191 PyObject * obj1 = 0 ;
28192 PyObject * obj2 = 0 ;
28193 PyObject * obj3 = 0 ;
28194 PyObject * obj4 = 0 ;
28195 char * kwnames[] = {
28196 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
28197 };
28198
28199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28201 if (!SWIG_IsOK(res1)) {
28202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28203 }
28204 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28205 ecode2 = SWIG_AsVal_int(obj1, &val2);
28206 if (!SWIG_IsOK(ecode2)) {
28207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
28208 }
28209 arg2 = static_cast< int >(val2);
28210 ecode3 = SWIG_AsVal_int(obj2, &val3);
28211 if (!SWIG_IsOK(ecode3)) {
28212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
28213 }
28214 arg3 = static_cast< int >(val3);
28215 {
28216 arg4 = &temp4;
28217 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
28218 }
28219 if (obj4) {
28220 ecode5 = SWIG_AsVal_int(obj4, &val5);
28221 if (!SWIG_IsOK(ecode5)) {
28222 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
28223 }
28224 arg5 = static_cast< int >(val5);
28225 }
28226 {
28227 PyThreadState* __tstate = wxPyBeginAllowThreads();
28228 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
28229 wxPyEndAllowThreads(__tstate);
28230 if (PyErr_Occurred()) SWIG_fail;
28231 }
28232 resultobj = SWIG_Py_Void();
28233 return resultobj;
28234 fail:
28235 return NULL;
28236 }
28237
28238
28239 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28240 PyObject *resultobj = 0;
28241 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28242 wxPoint *arg2 = 0 ;
28243 wxColour *arg3 = 0 ;
28244 int arg4 = (int) wxFLOOD_SURFACE ;
28245 void *argp1 = 0 ;
28246 int res1 = 0 ;
28247 wxPoint temp2 ;
28248 wxColour temp3 ;
28249 int val4 ;
28250 int ecode4 = 0 ;
28251 PyObject * obj0 = 0 ;
28252 PyObject * obj1 = 0 ;
28253 PyObject * obj2 = 0 ;
28254 PyObject * obj3 = 0 ;
28255 char * kwnames[] = {
28256 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
28257 };
28258
28259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28261 if (!SWIG_IsOK(res1)) {
28262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28263 }
28264 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28265 {
28266 arg2 = &temp2;
28267 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28268 }
28269 {
28270 arg3 = &temp3;
28271 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28272 }
28273 if (obj3) {
28274 ecode4 = SWIG_AsVal_int(obj3, &val4);
28275 if (!SWIG_IsOK(ecode4)) {
28276 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
28277 }
28278 arg4 = static_cast< int >(val4);
28279 }
28280 {
28281 PyThreadState* __tstate = wxPyBeginAllowThreads();
28282 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
28283 wxPyEndAllowThreads(__tstate);
28284 if (PyErr_Occurred()) SWIG_fail;
28285 }
28286 resultobj = SWIG_Py_Void();
28287 return resultobj;
28288 fail:
28289 return NULL;
28290 }
28291
28292
28293 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28294 PyObject *resultobj = 0;
28295 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28296 int arg2 ;
28297 int arg3 ;
28298 int arg4 ;
28299 int arg5 ;
28300 void *argp1 = 0 ;
28301 int res1 = 0 ;
28302 int val2 ;
28303 int ecode2 = 0 ;
28304 int val3 ;
28305 int ecode3 = 0 ;
28306 int val4 ;
28307 int ecode4 = 0 ;
28308 int val5 ;
28309 int ecode5 = 0 ;
28310 PyObject * obj0 = 0 ;
28311 PyObject * obj1 = 0 ;
28312 PyObject * obj2 = 0 ;
28313 PyObject * obj3 = 0 ;
28314 PyObject * obj4 = 0 ;
28315 char * kwnames[] = {
28316 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
28317 };
28318
28319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28321 if (!SWIG_IsOK(res1)) {
28322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28323 }
28324 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28325 ecode2 = SWIG_AsVal_int(obj1, &val2);
28326 if (!SWIG_IsOK(ecode2)) {
28327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
28328 }
28329 arg2 = static_cast< int >(val2);
28330 ecode3 = SWIG_AsVal_int(obj2, &val3);
28331 if (!SWIG_IsOK(ecode3)) {
28332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
28333 }
28334 arg3 = static_cast< int >(val3);
28335 ecode4 = SWIG_AsVal_int(obj3, &val4);
28336 if (!SWIG_IsOK(ecode4)) {
28337 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
28338 }
28339 arg4 = static_cast< int >(val4);
28340 ecode5 = SWIG_AsVal_int(obj4, &val5);
28341 if (!SWIG_IsOK(ecode5)) {
28342 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
28343 }
28344 arg5 = static_cast< int >(val5);
28345 {
28346 PyThreadState* __tstate = wxPyBeginAllowThreads();
28347 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
28348 wxPyEndAllowThreads(__tstate);
28349 if (PyErr_Occurred()) SWIG_fail;
28350 }
28351 resultobj = SWIG_Py_Void();
28352 return resultobj;
28353 fail:
28354 return NULL;
28355 }
28356
28357
28358 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28359 PyObject *resultobj = 0;
28360 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28361 wxPoint *arg2 = 0 ;
28362 wxPoint *arg3 = 0 ;
28363 void *argp1 = 0 ;
28364 int res1 = 0 ;
28365 wxPoint temp2 ;
28366 wxPoint temp3 ;
28367 PyObject * obj0 = 0 ;
28368 PyObject * obj1 = 0 ;
28369 PyObject * obj2 = 0 ;
28370 char * kwnames[] = {
28371 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
28372 };
28373
28374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28376 if (!SWIG_IsOK(res1)) {
28377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28378 }
28379 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28380 {
28381 arg2 = &temp2;
28382 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28383 }
28384 {
28385 arg3 = &temp3;
28386 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28387 }
28388 {
28389 PyThreadState* __tstate = wxPyBeginAllowThreads();
28390 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
28391 wxPyEndAllowThreads(__tstate);
28392 if (PyErr_Occurred()) SWIG_fail;
28393 }
28394 resultobj = SWIG_Py_Void();
28395 return resultobj;
28396 fail:
28397 return NULL;
28398 }
28399
28400
28401 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28402 PyObject *resultobj = 0;
28403 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28404 int arg2 ;
28405 int arg3 ;
28406 void *argp1 = 0 ;
28407 int res1 = 0 ;
28408 int val2 ;
28409 int ecode2 = 0 ;
28410 int val3 ;
28411 int ecode3 = 0 ;
28412 PyObject * obj0 = 0 ;
28413 PyObject * obj1 = 0 ;
28414 PyObject * obj2 = 0 ;
28415 char * kwnames[] = {
28416 (char *) "self",(char *) "x",(char *) "y", NULL
28417 };
28418
28419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28421 if (!SWIG_IsOK(res1)) {
28422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28423 }
28424 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28425 ecode2 = SWIG_AsVal_int(obj1, &val2);
28426 if (!SWIG_IsOK(ecode2)) {
28427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
28428 }
28429 arg2 = static_cast< int >(val2);
28430 ecode3 = SWIG_AsVal_int(obj2, &val3);
28431 if (!SWIG_IsOK(ecode3)) {
28432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
28433 }
28434 arg3 = static_cast< int >(val3);
28435 {
28436 PyThreadState* __tstate = wxPyBeginAllowThreads();
28437 (arg1)->CrossHair(arg2,arg3);
28438 wxPyEndAllowThreads(__tstate);
28439 if (PyErr_Occurred()) SWIG_fail;
28440 }
28441 resultobj = SWIG_Py_Void();
28442 return resultobj;
28443 fail:
28444 return NULL;
28445 }
28446
28447
28448 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28449 PyObject *resultobj = 0;
28450 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28451 wxPoint *arg2 = 0 ;
28452 void *argp1 = 0 ;
28453 int res1 = 0 ;
28454 wxPoint temp2 ;
28455 PyObject * obj0 = 0 ;
28456 PyObject * obj1 = 0 ;
28457 char * kwnames[] = {
28458 (char *) "self",(char *) "pt", NULL
28459 };
28460
28461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
28462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28463 if (!SWIG_IsOK(res1)) {
28464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28465 }
28466 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28467 {
28468 arg2 = &temp2;
28469 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28470 }
28471 {
28472 PyThreadState* __tstate = wxPyBeginAllowThreads();
28473 (arg1)->CrossHair((wxPoint const &)*arg2);
28474 wxPyEndAllowThreads(__tstate);
28475 if (PyErr_Occurred()) SWIG_fail;
28476 }
28477 resultobj = SWIG_Py_Void();
28478 return resultobj;
28479 fail:
28480 return NULL;
28481 }
28482
28483
28484 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28485 PyObject *resultobj = 0;
28486 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28487 int arg2 ;
28488 int arg3 ;
28489 int arg4 ;
28490 int arg5 ;
28491 int arg6 ;
28492 int arg7 ;
28493 void *argp1 = 0 ;
28494 int res1 = 0 ;
28495 int val2 ;
28496 int ecode2 = 0 ;
28497 int val3 ;
28498 int ecode3 = 0 ;
28499 int val4 ;
28500 int ecode4 = 0 ;
28501 int val5 ;
28502 int ecode5 = 0 ;
28503 int val6 ;
28504 int ecode6 = 0 ;
28505 int val7 ;
28506 int ecode7 = 0 ;
28507 PyObject * obj0 = 0 ;
28508 PyObject * obj1 = 0 ;
28509 PyObject * obj2 = 0 ;
28510 PyObject * obj3 = 0 ;
28511 PyObject * obj4 = 0 ;
28512 PyObject * obj5 = 0 ;
28513 PyObject * obj6 = 0 ;
28514 char * kwnames[] = {
28515 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
28516 };
28517
28518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28520 if (!SWIG_IsOK(res1)) {
28521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28522 }
28523 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28524 ecode2 = SWIG_AsVal_int(obj1, &val2);
28525 if (!SWIG_IsOK(ecode2)) {
28526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
28527 }
28528 arg2 = static_cast< int >(val2);
28529 ecode3 = SWIG_AsVal_int(obj2, &val3);
28530 if (!SWIG_IsOK(ecode3)) {
28531 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
28532 }
28533 arg3 = static_cast< int >(val3);
28534 ecode4 = SWIG_AsVal_int(obj3, &val4);
28535 if (!SWIG_IsOK(ecode4)) {
28536 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
28537 }
28538 arg4 = static_cast< int >(val4);
28539 ecode5 = SWIG_AsVal_int(obj4, &val5);
28540 if (!SWIG_IsOK(ecode5)) {
28541 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
28542 }
28543 arg5 = static_cast< int >(val5);
28544 ecode6 = SWIG_AsVal_int(obj5, &val6);
28545 if (!SWIG_IsOK(ecode6)) {
28546 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
28547 }
28548 arg6 = static_cast< int >(val6);
28549 ecode7 = SWIG_AsVal_int(obj6, &val7);
28550 if (!SWIG_IsOK(ecode7)) {
28551 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
28552 }
28553 arg7 = static_cast< int >(val7);
28554 {
28555 PyThreadState* __tstate = wxPyBeginAllowThreads();
28556 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
28557 wxPyEndAllowThreads(__tstate);
28558 if (PyErr_Occurred()) SWIG_fail;
28559 }
28560 resultobj = SWIG_Py_Void();
28561 return resultobj;
28562 fail:
28563 return NULL;
28564 }
28565
28566
28567 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28568 PyObject *resultobj = 0;
28569 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28570 wxPoint *arg2 = 0 ;
28571 wxPoint *arg3 = 0 ;
28572 wxPoint *arg4 = 0 ;
28573 void *argp1 = 0 ;
28574 int res1 = 0 ;
28575 wxPoint temp2 ;
28576 wxPoint temp3 ;
28577 wxPoint temp4 ;
28578 PyObject * obj0 = 0 ;
28579 PyObject * obj1 = 0 ;
28580 PyObject * obj2 = 0 ;
28581 PyObject * obj3 = 0 ;
28582 char * kwnames[] = {
28583 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
28584 };
28585
28586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28588 if (!SWIG_IsOK(res1)) {
28589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28590 }
28591 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28592 {
28593 arg2 = &temp2;
28594 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28595 }
28596 {
28597 arg3 = &temp3;
28598 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28599 }
28600 {
28601 arg4 = &temp4;
28602 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28603 }
28604 {
28605 PyThreadState* __tstate = wxPyBeginAllowThreads();
28606 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
28607 wxPyEndAllowThreads(__tstate);
28608 if (PyErr_Occurred()) SWIG_fail;
28609 }
28610 resultobj = SWIG_Py_Void();
28611 return resultobj;
28612 fail:
28613 return NULL;
28614 }
28615
28616
28617 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28618 PyObject *resultobj = 0;
28619 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28620 int arg2 ;
28621 int arg3 ;
28622 int arg4 ;
28623 int arg5 ;
28624 void *argp1 = 0 ;
28625 int res1 = 0 ;
28626 int val2 ;
28627 int ecode2 = 0 ;
28628 int val3 ;
28629 int ecode3 = 0 ;
28630 int val4 ;
28631 int ecode4 = 0 ;
28632 int val5 ;
28633 int ecode5 = 0 ;
28634 PyObject * obj0 = 0 ;
28635 PyObject * obj1 = 0 ;
28636 PyObject * obj2 = 0 ;
28637 PyObject * obj3 = 0 ;
28638 PyObject * obj4 = 0 ;
28639 char * kwnames[] = {
28640 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
28641 };
28642
28643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28645 if (!SWIG_IsOK(res1)) {
28646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28647 }
28648 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28649 ecode2 = SWIG_AsVal_int(obj1, &val2);
28650 if (!SWIG_IsOK(ecode2)) {
28651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
28652 }
28653 arg2 = static_cast< int >(val2);
28654 ecode3 = SWIG_AsVal_int(obj2, &val3);
28655 if (!SWIG_IsOK(ecode3)) {
28656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
28657 }
28658 arg3 = static_cast< int >(val3);
28659 ecode4 = SWIG_AsVal_int(obj3, &val4);
28660 if (!SWIG_IsOK(ecode4)) {
28661 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
28662 }
28663 arg4 = static_cast< int >(val4);
28664 ecode5 = SWIG_AsVal_int(obj4, &val5);
28665 if (!SWIG_IsOK(ecode5)) {
28666 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
28667 }
28668 arg5 = static_cast< int >(val5);
28669 {
28670 PyThreadState* __tstate = wxPyBeginAllowThreads();
28671 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
28672 wxPyEndAllowThreads(__tstate);
28673 if (PyErr_Occurred()) SWIG_fail;
28674 }
28675 resultobj = SWIG_Py_Void();
28676 return resultobj;
28677 fail:
28678 return NULL;
28679 }
28680
28681
28682 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28683 PyObject *resultobj = 0;
28684 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28685 wxRect *arg2 = 0 ;
28686 void *argp1 = 0 ;
28687 int res1 = 0 ;
28688 wxRect temp2 ;
28689 PyObject * obj0 = 0 ;
28690 PyObject * obj1 = 0 ;
28691 char * kwnames[] = {
28692 (char *) "self",(char *) "rect", NULL
28693 };
28694
28695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
28696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28697 if (!SWIG_IsOK(res1)) {
28698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28699 }
28700 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28701 {
28702 arg2 = &temp2;
28703 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
28704 }
28705 {
28706 PyThreadState* __tstate = wxPyBeginAllowThreads();
28707 (arg1)->DrawCheckMark((wxRect const &)*arg2);
28708 wxPyEndAllowThreads(__tstate);
28709 if (PyErr_Occurred()) SWIG_fail;
28710 }
28711 resultobj = SWIG_Py_Void();
28712 return resultobj;
28713 fail:
28714 return NULL;
28715 }
28716
28717
28718 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28719 PyObject *resultobj = 0;
28720 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28721 int arg2 ;
28722 int arg3 ;
28723 int arg4 ;
28724 int arg5 ;
28725 double arg6 ;
28726 double arg7 ;
28727 void *argp1 = 0 ;
28728 int res1 = 0 ;
28729 int val2 ;
28730 int ecode2 = 0 ;
28731 int val3 ;
28732 int ecode3 = 0 ;
28733 int val4 ;
28734 int ecode4 = 0 ;
28735 int val5 ;
28736 int ecode5 = 0 ;
28737 double val6 ;
28738 int ecode6 = 0 ;
28739 double val7 ;
28740 int ecode7 = 0 ;
28741 PyObject * obj0 = 0 ;
28742 PyObject * obj1 = 0 ;
28743 PyObject * obj2 = 0 ;
28744 PyObject * obj3 = 0 ;
28745 PyObject * obj4 = 0 ;
28746 PyObject * obj5 = 0 ;
28747 PyObject * obj6 = 0 ;
28748 char * kwnames[] = {
28749 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
28750 };
28751
28752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28754 if (!SWIG_IsOK(res1)) {
28755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28756 }
28757 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28758 ecode2 = SWIG_AsVal_int(obj1, &val2);
28759 if (!SWIG_IsOK(ecode2)) {
28760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
28761 }
28762 arg2 = static_cast< int >(val2);
28763 ecode3 = SWIG_AsVal_int(obj2, &val3);
28764 if (!SWIG_IsOK(ecode3)) {
28765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
28766 }
28767 arg3 = static_cast< int >(val3);
28768 ecode4 = SWIG_AsVal_int(obj3, &val4);
28769 if (!SWIG_IsOK(ecode4)) {
28770 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
28771 }
28772 arg4 = static_cast< int >(val4);
28773 ecode5 = SWIG_AsVal_int(obj4, &val5);
28774 if (!SWIG_IsOK(ecode5)) {
28775 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
28776 }
28777 arg5 = static_cast< int >(val5);
28778 ecode6 = SWIG_AsVal_double(obj5, &val6);
28779 if (!SWIG_IsOK(ecode6)) {
28780 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
28781 }
28782 arg6 = static_cast< double >(val6);
28783 ecode7 = SWIG_AsVal_double(obj6, &val7);
28784 if (!SWIG_IsOK(ecode7)) {
28785 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
28786 }
28787 arg7 = static_cast< double >(val7);
28788 {
28789 PyThreadState* __tstate = wxPyBeginAllowThreads();
28790 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
28791 wxPyEndAllowThreads(__tstate);
28792 if (PyErr_Occurred()) SWIG_fail;
28793 }
28794 resultobj = SWIG_Py_Void();
28795 return resultobj;
28796 fail:
28797 return NULL;
28798 }
28799
28800
28801 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28802 PyObject *resultobj = 0;
28803 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28804 wxPoint *arg2 = 0 ;
28805 wxSize *arg3 = 0 ;
28806 double arg4 ;
28807 double arg5 ;
28808 void *argp1 = 0 ;
28809 int res1 = 0 ;
28810 wxPoint temp2 ;
28811 wxSize temp3 ;
28812 double val4 ;
28813 int ecode4 = 0 ;
28814 double val5 ;
28815 int ecode5 = 0 ;
28816 PyObject * obj0 = 0 ;
28817 PyObject * obj1 = 0 ;
28818 PyObject * obj2 = 0 ;
28819 PyObject * obj3 = 0 ;
28820 PyObject * obj4 = 0 ;
28821 char * kwnames[] = {
28822 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
28823 };
28824
28825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28827 if (!SWIG_IsOK(res1)) {
28828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28829 }
28830 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28831 {
28832 arg2 = &temp2;
28833 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28834 }
28835 {
28836 arg3 = &temp3;
28837 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
28838 }
28839 ecode4 = SWIG_AsVal_double(obj3, &val4);
28840 if (!SWIG_IsOK(ecode4)) {
28841 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
28842 }
28843 arg4 = static_cast< double >(val4);
28844 ecode5 = SWIG_AsVal_double(obj4, &val5);
28845 if (!SWIG_IsOK(ecode5)) {
28846 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
28847 }
28848 arg5 = static_cast< double >(val5);
28849 {
28850 PyThreadState* __tstate = wxPyBeginAllowThreads();
28851 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
28852 wxPyEndAllowThreads(__tstate);
28853 if (PyErr_Occurred()) SWIG_fail;
28854 }
28855 resultobj = SWIG_Py_Void();
28856 return resultobj;
28857 fail:
28858 return NULL;
28859 }
28860
28861
28862 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28863 PyObject *resultobj = 0;
28864 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28865 int arg2 ;
28866 int arg3 ;
28867 void *argp1 = 0 ;
28868 int res1 = 0 ;
28869 int val2 ;
28870 int ecode2 = 0 ;
28871 int val3 ;
28872 int ecode3 = 0 ;
28873 PyObject * obj0 = 0 ;
28874 PyObject * obj1 = 0 ;
28875 PyObject * obj2 = 0 ;
28876 char * kwnames[] = {
28877 (char *) "self",(char *) "x",(char *) "y", NULL
28878 };
28879
28880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28882 if (!SWIG_IsOK(res1)) {
28883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28884 }
28885 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28886 ecode2 = SWIG_AsVal_int(obj1, &val2);
28887 if (!SWIG_IsOK(ecode2)) {
28888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
28889 }
28890 arg2 = static_cast< int >(val2);
28891 ecode3 = SWIG_AsVal_int(obj2, &val3);
28892 if (!SWIG_IsOK(ecode3)) {
28893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
28894 }
28895 arg3 = static_cast< int >(val3);
28896 {
28897 PyThreadState* __tstate = wxPyBeginAllowThreads();
28898 (arg1)->DrawPoint(arg2,arg3);
28899 wxPyEndAllowThreads(__tstate);
28900 if (PyErr_Occurred()) SWIG_fail;
28901 }
28902 resultobj = SWIG_Py_Void();
28903 return resultobj;
28904 fail:
28905 return NULL;
28906 }
28907
28908
28909 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28910 PyObject *resultobj = 0;
28911 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28912 wxPoint *arg2 = 0 ;
28913 void *argp1 = 0 ;
28914 int res1 = 0 ;
28915 wxPoint temp2 ;
28916 PyObject * obj0 = 0 ;
28917 PyObject * obj1 = 0 ;
28918 char * kwnames[] = {
28919 (char *) "self",(char *) "pt", NULL
28920 };
28921
28922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
28923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28924 if (!SWIG_IsOK(res1)) {
28925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28926 }
28927 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28928 {
28929 arg2 = &temp2;
28930 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28931 }
28932 {
28933 PyThreadState* __tstate = wxPyBeginAllowThreads();
28934 (arg1)->DrawPoint((wxPoint const &)*arg2);
28935 wxPyEndAllowThreads(__tstate);
28936 if (PyErr_Occurred()) SWIG_fail;
28937 }
28938 resultobj = SWIG_Py_Void();
28939 return resultobj;
28940 fail:
28941 return NULL;
28942 }
28943
28944
28945 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28946 PyObject *resultobj = 0;
28947 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28948 int arg2 ;
28949 int arg3 ;
28950 int arg4 ;
28951 int arg5 ;
28952 void *argp1 = 0 ;
28953 int res1 = 0 ;
28954 int val2 ;
28955 int ecode2 = 0 ;
28956 int val3 ;
28957 int ecode3 = 0 ;
28958 int val4 ;
28959 int ecode4 = 0 ;
28960 int val5 ;
28961 int ecode5 = 0 ;
28962 PyObject * obj0 = 0 ;
28963 PyObject * obj1 = 0 ;
28964 PyObject * obj2 = 0 ;
28965 PyObject * obj3 = 0 ;
28966 PyObject * obj4 = 0 ;
28967 char * kwnames[] = {
28968 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
28969 };
28970
28971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28973 if (!SWIG_IsOK(res1)) {
28974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28975 }
28976 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28977 ecode2 = SWIG_AsVal_int(obj1, &val2);
28978 if (!SWIG_IsOK(ecode2)) {
28979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
28980 }
28981 arg2 = static_cast< int >(val2);
28982 ecode3 = SWIG_AsVal_int(obj2, &val3);
28983 if (!SWIG_IsOK(ecode3)) {
28984 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
28985 }
28986 arg3 = static_cast< int >(val3);
28987 ecode4 = SWIG_AsVal_int(obj3, &val4);
28988 if (!SWIG_IsOK(ecode4)) {
28989 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
28990 }
28991 arg4 = static_cast< int >(val4);
28992 ecode5 = SWIG_AsVal_int(obj4, &val5);
28993 if (!SWIG_IsOK(ecode5)) {
28994 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
28995 }
28996 arg5 = static_cast< int >(val5);
28997 {
28998 PyThreadState* __tstate = wxPyBeginAllowThreads();
28999 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29000 wxPyEndAllowThreads(__tstate);
29001 if (PyErr_Occurred()) SWIG_fail;
29002 }
29003 resultobj = SWIG_Py_Void();
29004 return resultobj;
29005 fail:
29006 return NULL;
29007 }
29008
29009
29010 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29011 PyObject *resultobj = 0;
29012 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29013 wxRect *arg2 = 0 ;
29014 void *argp1 = 0 ;
29015 int res1 = 0 ;
29016 wxRect temp2 ;
29017 PyObject * obj0 = 0 ;
29018 PyObject * obj1 = 0 ;
29019 char * kwnames[] = {
29020 (char *) "self",(char *) "rect", NULL
29021 };
29022
29023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
29024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29025 if (!SWIG_IsOK(res1)) {
29026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29027 }
29028 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29029 {
29030 arg2 = &temp2;
29031 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29032 }
29033 {
29034 PyThreadState* __tstate = wxPyBeginAllowThreads();
29035 (arg1)->DrawRectangle((wxRect const &)*arg2);
29036 wxPyEndAllowThreads(__tstate);
29037 if (PyErr_Occurred()) SWIG_fail;
29038 }
29039 resultobj = SWIG_Py_Void();
29040 return resultobj;
29041 fail:
29042 return NULL;
29043 }
29044
29045
29046 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29047 PyObject *resultobj = 0;
29048 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29049 wxPoint *arg2 = 0 ;
29050 wxSize *arg3 = 0 ;
29051 void *argp1 = 0 ;
29052 int res1 = 0 ;
29053 wxPoint temp2 ;
29054 wxSize temp3 ;
29055 PyObject * obj0 = 0 ;
29056 PyObject * obj1 = 0 ;
29057 PyObject * obj2 = 0 ;
29058 char * kwnames[] = {
29059 (char *) "self",(char *) "pt",(char *) "sz", NULL
29060 };
29061
29062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29064 if (!SWIG_IsOK(res1)) {
29065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29066 }
29067 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29068 {
29069 arg2 = &temp2;
29070 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29071 }
29072 {
29073 arg3 = &temp3;
29074 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29075 }
29076 {
29077 PyThreadState* __tstate = wxPyBeginAllowThreads();
29078 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
29079 wxPyEndAllowThreads(__tstate);
29080 if (PyErr_Occurred()) SWIG_fail;
29081 }
29082 resultobj = SWIG_Py_Void();
29083 return resultobj;
29084 fail:
29085 return NULL;
29086 }
29087
29088
29089 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29090 PyObject *resultobj = 0;
29091 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29092 int arg2 ;
29093 int arg3 ;
29094 int arg4 ;
29095 int arg5 ;
29096 double arg6 ;
29097 void *argp1 = 0 ;
29098 int res1 = 0 ;
29099 int val2 ;
29100 int ecode2 = 0 ;
29101 int val3 ;
29102 int ecode3 = 0 ;
29103 int val4 ;
29104 int ecode4 = 0 ;
29105 int val5 ;
29106 int ecode5 = 0 ;
29107 double val6 ;
29108 int ecode6 = 0 ;
29109 PyObject * obj0 = 0 ;
29110 PyObject * obj1 = 0 ;
29111 PyObject * obj2 = 0 ;
29112 PyObject * obj3 = 0 ;
29113 PyObject * obj4 = 0 ;
29114 PyObject * obj5 = 0 ;
29115 char * kwnames[] = {
29116 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
29117 };
29118
29119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29121 if (!SWIG_IsOK(res1)) {
29122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29123 }
29124 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29125 ecode2 = SWIG_AsVal_int(obj1, &val2);
29126 if (!SWIG_IsOK(ecode2)) {
29127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
29128 }
29129 arg2 = static_cast< int >(val2);
29130 ecode3 = SWIG_AsVal_int(obj2, &val3);
29131 if (!SWIG_IsOK(ecode3)) {
29132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
29133 }
29134 arg3 = static_cast< int >(val3);
29135 ecode4 = SWIG_AsVal_int(obj3, &val4);
29136 if (!SWIG_IsOK(ecode4)) {
29137 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
29138 }
29139 arg4 = static_cast< int >(val4);
29140 ecode5 = SWIG_AsVal_int(obj4, &val5);
29141 if (!SWIG_IsOK(ecode5)) {
29142 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
29143 }
29144 arg5 = static_cast< int >(val5);
29145 ecode6 = SWIG_AsVal_double(obj5, &val6);
29146 if (!SWIG_IsOK(ecode6)) {
29147 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
29148 }
29149 arg6 = static_cast< double >(val6);
29150 {
29151 PyThreadState* __tstate = wxPyBeginAllowThreads();
29152 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
29153 wxPyEndAllowThreads(__tstate);
29154 if (PyErr_Occurred()) SWIG_fail;
29155 }
29156 resultobj = SWIG_Py_Void();
29157 return resultobj;
29158 fail:
29159 return NULL;
29160 }
29161
29162
29163 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29164 PyObject *resultobj = 0;
29165 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29166 wxRect *arg2 = 0 ;
29167 double arg3 ;
29168 void *argp1 = 0 ;
29169 int res1 = 0 ;
29170 wxRect temp2 ;
29171 double val3 ;
29172 int ecode3 = 0 ;
29173 PyObject * obj0 = 0 ;
29174 PyObject * obj1 = 0 ;
29175 PyObject * obj2 = 0 ;
29176 char * kwnames[] = {
29177 (char *) "self",(char *) "r",(char *) "radius", NULL
29178 };
29179
29180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29182 if (!SWIG_IsOK(res1)) {
29183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29184 }
29185 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29186 {
29187 arg2 = &temp2;
29188 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29189 }
29190 ecode3 = SWIG_AsVal_double(obj2, &val3);
29191 if (!SWIG_IsOK(ecode3)) {
29192 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
29193 }
29194 arg3 = static_cast< double >(val3);
29195 {
29196 PyThreadState* __tstate = wxPyBeginAllowThreads();
29197 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
29198 wxPyEndAllowThreads(__tstate);
29199 if (PyErr_Occurred()) SWIG_fail;
29200 }
29201 resultobj = SWIG_Py_Void();
29202 return resultobj;
29203 fail:
29204 return NULL;
29205 }
29206
29207
29208 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29209 PyObject *resultobj = 0;
29210 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29211 wxPoint *arg2 = 0 ;
29212 wxSize *arg3 = 0 ;
29213 double arg4 ;
29214 void *argp1 = 0 ;
29215 int res1 = 0 ;
29216 wxPoint temp2 ;
29217 wxSize temp3 ;
29218 double val4 ;
29219 int ecode4 = 0 ;
29220 PyObject * obj0 = 0 ;
29221 PyObject * obj1 = 0 ;
29222 PyObject * obj2 = 0 ;
29223 PyObject * obj3 = 0 ;
29224 char * kwnames[] = {
29225 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
29226 };
29227
29228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29230 if (!SWIG_IsOK(res1)) {
29231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29232 }
29233 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29234 {
29235 arg2 = &temp2;
29236 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29237 }
29238 {
29239 arg3 = &temp3;
29240 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29241 }
29242 ecode4 = SWIG_AsVal_double(obj3, &val4);
29243 if (!SWIG_IsOK(ecode4)) {
29244 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
29245 }
29246 arg4 = static_cast< double >(val4);
29247 {
29248 PyThreadState* __tstate = wxPyBeginAllowThreads();
29249 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
29250 wxPyEndAllowThreads(__tstate);
29251 if (PyErr_Occurred()) SWIG_fail;
29252 }
29253 resultobj = SWIG_Py_Void();
29254 return resultobj;
29255 fail:
29256 return NULL;
29257 }
29258
29259
29260 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29261 PyObject *resultobj = 0;
29262 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29263 int arg2 ;
29264 int arg3 ;
29265 int arg4 ;
29266 void *argp1 = 0 ;
29267 int res1 = 0 ;
29268 int val2 ;
29269 int ecode2 = 0 ;
29270 int val3 ;
29271 int ecode3 = 0 ;
29272 int val4 ;
29273 int ecode4 = 0 ;
29274 PyObject * obj0 = 0 ;
29275 PyObject * obj1 = 0 ;
29276 PyObject * obj2 = 0 ;
29277 PyObject * obj3 = 0 ;
29278 char * kwnames[] = {
29279 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
29280 };
29281
29282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29284 if (!SWIG_IsOK(res1)) {
29285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29286 }
29287 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29288 ecode2 = SWIG_AsVal_int(obj1, &val2);
29289 if (!SWIG_IsOK(ecode2)) {
29290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
29291 }
29292 arg2 = static_cast< int >(val2);
29293 ecode3 = SWIG_AsVal_int(obj2, &val3);
29294 if (!SWIG_IsOK(ecode3)) {
29295 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
29296 }
29297 arg3 = static_cast< int >(val3);
29298 ecode4 = SWIG_AsVal_int(obj3, &val4);
29299 if (!SWIG_IsOK(ecode4)) {
29300 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
29301 }
29302 arg4 = static_cast< int >(val4);
29303 {
29304 PyThreadState* __tstate = wxPyBeginAllowThreads();
29305 (arg1)->DrawCircle(arg2,arg3,arg4);
29306 wxPyEndAllowThreads(__tstate);
29307 if (PyErr_Occurred()) SWIG_fail;
29308 }
29309 resultobj = SWIG_Py_Void();
29310 return resultobj;
29311 fail:
29312 return NULL;
29313 }
29314
29315
29316 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29317 PyObject *resultobj = 0;
29318 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29319 wxPoint *arg2 = 0 ;
29320 int arg3 ;
29321 void *argp1 = 0 ;
29322 int res1 = 0 ;
29323 wxPoint temp2 ;
29324 int val3 ;
29325 int ecode3 = 0 ;
29326 PyObject * obj0 = 0 ;
29327 PyObject * obj1 = 0 ;
29328 PyObject * obj2 = 0 ;
29329 char * kwnames[] = {
29330 (char *) "self",(char *) "pt",(char *) "radius", NULL
29331 };
29332
29333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29335 if (!SWIG_IsOK(res1)) {
29336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29337 }
29338 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29339 {
29340 arg2 = &temp2;
29341 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29342 }
29343 ecode3 = SWIG_AsVal_int(obj2, &val3);
29344 if (!SWIG_IsOK(ecode3)) {
29345 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
29346 }
29347 arg3 = static_cast< int >(val3);
29348 {
29349 PyThreadState* __tstate = wxPyBeginAllowThreads();
29350 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
29351 wxPyEndAllowThreads(__tstate);
29352 if (PyErr_Occurred()) SWIG_fail;
29353 }
29354 resultobj = SWIG_Py_Void();
29355 return resultobj;
29356 fail:
29357 return NULL;
29358 }
29359
29360
29361 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29362 PyObject *resultobj = 0;
29363 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29364 int arg2 ;
29365 int arg3 ;
29366 int arg4 ;
29367 int arg5 ;
29368 void *argp1 = 0 ;
29369 int res1 = 0 ;
29370 int val2 ;
29371 int ecode2 = 0 ;
29372 int val3 ;
29373 int ecode3 = 0 ;
29374 int val4 ;
29375 int ecode4 = 0 ;
29376 int val5 ;
29377 int ecode5 = 0 ;
29378 PyObject * obj0 = 0 ;
29379 PyObject * obj1 = 0 ;
29380 PyObject * obj2 = 0 ;
29381 PyObject * obj3 = 0 ;
29382 PyObject * obj4 = 0 ;
29383 char * kwnames[] = {
29384 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29385 };
29386
29387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29389 if (!SWIG_IsOK(res1)) {
29390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29391 }
29392 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29393 ecode2 = SWIG_AsVal_int(obj1, &val2);
29394 if (!SWIG_IsOK(ecode2)) {
29395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
29396 }
29397 arg2 = static_cast< int >(val2);
29398 ecode3 = SWIG_AsVal_int(obj2, &val3);
29399 if (!SWIG_IsOK(ecode3)) {
29400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
29401 }
29402 arg3 = static_cast< int >(val3);
29403 ecode4 = SWIG_AsVal_int(obj3, &val4);
29404 if (!SWIG_IsOK(ecode4)) {
29405 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
29406 }
29407 arg4 = static_cast< int >(val4);
29408 ecode5 = SWIG_AsVal_int(obj4, &val5);
29409 if (!SWIG_IsOK(ecode5)) {
29410 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
29411 }
29412 arg5 = static_cast< int >(val5);
29413 {
29414 PyThreadState* __tstate = wxPyBeginAllowThreads();
29415 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
29416 wxPyEndAllowThreads(__tstate);
29417 if (PyErr_Occurred()) SWIG_fail;
29418 }
29419 resultobj = SWIG_Py_Void();
29420 return resultobj;
29421 fail:
29422 return NULL;
29423 }
29424
29425
29426 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29427 PyObject *resultobj = 0;
29428 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29429 wxRect *arg2 = 0 ;
29430 void *argp1 = 0 ;
29431 int res1 = 0 ;
29432 wxRect temp2 ;
29433 PyObject * obj0 = 0 ;
29434 PyObject * obj1 = 0 ;
29435 char * kwnames[] = {
29436 (char *) "self",(char *) "rect", NULL
29437 };
29438
29439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
29440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29441 if (!SWIG_IsOK(res1)) {
29442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29443 }
29444 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29445 {
29446 arg2 = &temp2;
29447 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29448 }
29449 {
29450 PyThreadState* __tstate = wxPyBeginAllowThreads();
29451 (arg1)->DrawEllipse((wxRect const &)*arg2);
29452 wxPyEndAllowThreads(__tstate);
29453 if (PyErr_Occurred()) SWIG_fail;
29454 }
29455 resultobj = SWIG_Py_Void();
29456 return resultobj;
29457 fail:
29458 return NULL;
29459 }
29460
29461
29462 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29463 PyObject *resultobj = 0;
29464 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29465 wxPoint *arg2 = 0 ;
29466 wxSize *arg3 = 0 ;
29467 void *argp1 = 0 ;
29468 int res1 = 0 ;
29469 wxPoint temp2 ;
29470 wxSize temp3 ;
29471 PyObject * obj0 = 0 ;
29472 PyObject * obj1 = 0 ;
29473 PyObject * obj2 = 0 ;
29474 char * kwnames[] = {
29475 (char *) "self",(char *) "pt",(char *) "sz", NULL
29476 };
29477
29478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29480 if (!SWIG_IsOK(res1)) {
29481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29482 }
29483 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29484 {
29485 arg2 = &temp2;
29486 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29487 }
29488 {
29489 arg3 = &temp3;
29490 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29491 }
29492 {
29493 PyThreadState* __tstate = wxPyBeginAllowThreads();
29494 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
29495 wxPyEndAllowThreads(__tstate);
29496 if (PyErr_Occurred()) SWIG_fail;
29497 }
29498 resultobj = SWIG_Py_Void();
29499 return resultobj;
29500 fail:
29501 return NULL;
29502 }
29503
29504
29505 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29506 PyObject *resultobj = 0;
29507 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29508 wxIcon *arg2 = 0 ;
29509 int arg3 ;
29510 int arg4 ;
29511 void *argp1 = 0 ;
29512 int res1 = 0 ;
29513 void *argp2 = 0 ;
29514 int res2 = 0 ;
29515 int val3 ;
29516 int ecode3 = 0 ;
29517 int val4 ;
29518 int ecode4 = 0 ;
29519 PyObject * obj0 = 0 ;
29520 PyObject * obj1 = 0 ;
29521 PyObject * obj2 = 0 ;
29522 PyObject * obj3 = 0 ;
29523 char * kwnames[] = {
29524 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
29525 };
29526
29527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29529 if (!SWIG_IsOK(res1)) {
29530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29531 }
29532 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29533 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29534 if (!SWIG_IsOK(res2)) {
29535 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29536 }
29537 if (!argp2) {
29538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29539 }
29540 arg2 = reinterpret_cast< wxIcon * >(argp2);
29541 ecode3 = SWIG_AsVal_int(obj2, &val3);
29542 if (!SWIG_IsOK(ecode3)) {
29543 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
29544 }
29545 arg3 = static_cast< int >(val3);
29546 ecode4 = SWIG_AsVal_int(obj3, &val4);
29547 if (!SWIG_IsOK(ecode4)) {
29548 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
29549 }
29550 arg4 = static_cast< int >(val4);
29551 {
29552 PyThreadState* __tstate = wxPyBeginAllowThreads();
29553 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
29554 wxPyEndAllowThreads(__tstate);
29555 if (PyErr_Occurred()) SWIG_fail;
29556 }
29557 resultobj = SWIG_Py_Void();
29558 return resultobj;
29559 fail:
29560 return NULL;
29561 }
29562
29563
29564 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29565 PyObject *resultobj = 0;
29566 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29567 wxIcon *arg2 = 0 ;
29568 wxPoint *arg3 = 0 ;
29569 void *argp1 = 0 ;
29570 int res1 = 0 ;
29571 void *argp2 = 0 ;
29572 int res2 = 0 ;
29573 wxPoint temp3 ;
29574 PyObject * obj0 = 0 ;
29575 PyObject * obj1 = 0 ;
29576 PyObject * obj2 = 0 ;
29577 char * kwnames[] = {
29578 (char *) "self",(char *) "icon",(char *) "pt", NULL
29579 };
29580
29581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29583 if (!SWIG_IsOK(res1)) {
29584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29585 }
29586 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29587 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29588 if (!SWIG_IsOK(res2)) {
29589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
29590 }
29591 if (!argp2) {
29592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
29593 }
29594 arg2 = reinterpret_cast< wxIcon * >(argp2);
29595 {
29596 arg3 = &temp3;
29597 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29598 }
29599 {
29600 PyThreadState* __tstate = wxPyBeginAllowThreads();
29601 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
29602 wxPyEndAllowThreads(__tstate);
29603 if (PyErr_Occurred()) SWIG_fail;
29604 }
29605 resultobj = SWIG_Py_Void();
29606 return resultobj;
29607 fail:
29608 return NULL;
29609 }
29610
29611
29612 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29613 PyObject *resultobj = 0;
29614 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29615 wxBitmap *arg2 = 0 ;
29616 int arg3 ;
29617 int arg4 ;
29618 bool arg5 = (bool) false ;
29619 void *argp1 = 0 ;
29620 int res1 = 0 ;
29621 void *argp2 = 0 ;
29622 int res2 = 0 ;
29623 int val3 ;
29624 int ecode3 = 0 ;
29625 int val4 ;
29626 int ecode4 = 0 ;
29627 bool val5 ;
29628 int ecode5 = 0 ;
29629 PyObject * obj0 = 0 ;
29630 PyObject * obj1 = 0 ;
29631 PyObject * obj2 = 0 ;
29632 PyObject * obj3 = 0 ;
29633 PyObject * obj4 = 0 ;
29634 char * kwnames[] = {
29635 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
29636 };
29637
29638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29640 if (!SWIG_IsOK(res1)) {
29641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29642 }
29643 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29644 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29645 if (!SWIG_IsOK(res2)) {
29646 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29647 }
29648 if (!argp2) {
29649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29650 }
29651 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29652 ecode3 = SWIG_AsVal_int(obj2, &val3);
29653 if (!SWIG_IsOK(ecode3)) {
29654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
29655 }
29656 arg3 = static_cast< int >(val3);
29657 ecode4 = SWIG_AsVal_int(obj3, &val4);
29658 if (!SWIG_IsOK(ecode4)) {
29659 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
29660 }
29661 arg4 = static_cast< int >(val4);
29662 if (obj4) {
29663 ecode5 = SWIG_AsVal_bool(obj4, &val5);
29664 if (!SWIG_IsOK(ecode5)) {
29665 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
29666 }
29667 arg5 = static_cast< bool >(val5);
29668 }
29669 {
29670 PyThreadState* __tstate = wxPyBeginAllowThreads();
29671 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
29672 wxPyEndAllowThreads(__tstate);
29673 if (PyErr_Occurred()) SWIG_fail;
29674 }
29675 resultobj = SWIG_Py_Void();
29676 return resultobj;
29677 fail:
29678 return NULL;
29679 }
29680
29681
29682 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29683 PyObject *resultobj = 0;
29684 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29685 wxBitmap *arg2 = 0 ;
29686 wxPoint *arg3 = 0 ;
29687 bool arg4 = (bool) false ;
29688 void *argp1 = 0 ;
29689 int res1 = 0 ;
29690 void *argp2 = 0 ;
29691 int res2 = 0 ;
29692 wxPoint temp3 ;
29693 bool val4 ;
29694 int ecode4 = 0 ;
29695 PyObject * obj0 = 0 ;
29696 PyObject * obj1 = 0 ;
29697 PyObject * obj2 = 0 ;
29698 PyObject * obj3 = 0 ;
29699 char * kwnames[] = {
29700 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
29701 };
29702
29703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29705 if (!SWIG_IsOK(res1)) {
29706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29707 }
29708 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29709 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29710 if (!SWIG_IsOK(res2)) {
29711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29712 }
29713 if (!argp2) {
29714 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29715 }
29716 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29717 {
29718 arg3 = &temp3;
29719 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29720 }
29721 if (obj3) {
29722 ecode4 = SWIG_AsVal_bool(obj3, &val4);
29723 if (!SWIG_IsOK(ecode4)) {
29724 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
29725 }
29726 arg4 = static_cast< bool >(val4);
29727 }
29728 {
29729 PyThreadState* __tstate = wxPyBeginAllowThreads();
29730 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
29731 wxPyEndAllowThreads(__tstate);
29732 if (PyErr_Occurred()) SWIG_fail;
29733 }
29734 resultobj = SWIG_Py_Void();
29735 return resultobj;
29736 fail:
29737 return NULL;
29738 }
29739
29740
29741 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29742 PyObject *resultobj = 0;
29743 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29744 wxString *arg2 = 0 ;
29745 int arg3 ;
29746 int arg4 ;
29747 void *argp1 = 0 ;
29748 int res1 = 0 ;
29749 bool temp2 = false ;
29750 int val3 ;
29751 int ecode3 = 0 ;
29752 int val4 ;
29753 int ecode4 = 0 ;
29754 PyObject * obj0 = 0 ;
29755 PyObject * obj1 = 0 ;
29756 PyObject * obj2 = 0 ;
29757 PyObject * obj3 = 0 ;
29758 char * kwnames[] = {
29759 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
29760 };
29761
29762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29764 if (!SWIG_IsOK(res1)) {
29765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29766 }
29767 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29768 {
29769 arg2 = wxString_in_helper(obj1);
29770 if (arg2 == NULL) SWIG_fail;
29771 temp2 = true;
29772 }
29773 ecode3 = SWIG_AsVal_int(obj2, &val3);
29774 if (!SWIG_IsOK(ecode3)) {
29775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
29776 }
29777 arg3 = static_cast< int >(val3);
29778 ecode4 = SWIG_AsVal_int(obj3, &val4);
29779 if (!SWIG_IsOK(ecode4)) {
29780 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
29781 }
29782 arg4 = static_cast< int >(val4);
29783 {
29784 PyThreadState* __tstate = wxPyBeginAllowThreads();
29785 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
29786 wxPyEndAllowThreads(__tstate);
29787 if (PyErr_Occurred()) SWIG_fail;
29788 }
29789 resultobj = SWIG_Py_Void();
29790 {
29791 if (temp2)
29792 delete arg2;
29793 }
29794 return resultobj;
29795 fail:
29796 {
29797 if (temp2)
29798 delete arg2;
29799 }
29800 return NULL;
29801 }
29802
29803
29804 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29805 PyObject *resultobj = 0;
29806 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29807 wxString *arg2 = 0 ;
29808 wxPoint *arg3 = 0 ;
29809 void *argp1 = 0 ;
29810 int res1 = 0 ;
29811 bool temp2 = false ;
29812 wxPoint temp3 ;
29813 PyObject * obj0 = 0 ;
29814 PyObject * obj1 = 0 ;
29815 PyObject * obj2 = 0 ;
29816 char * kwnames[] = {
29817 (char *) "self",(char *) "text",(char *) "pt", NULL
29818 };
29819
29820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29822 if (!SWIG_IsOK(res1)) {
29823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29824 }
29825 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29826 {
29827 arg2 = wxString_in_helper(obj1);
29828 if (arg2 == NULL) SWIG_fail;
29829 temp2 = true;
29830 }
29831 {
29832 arg3 = &temp3;
29833 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29834 }
29835 {
29836 PyThreadState* __tstate = wxPyBeginAllowThreads();
29837 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
29838 wxPyEndAllowThreads(__tstate);
29839 if (PyErr_Occurred()) SWIG_fail;
29840 }
29841 resultobj = SWIG_Py_Void();
29842 {
29843 if (temp2)
29844 delete arg2;
29845 }
29846 return resultobj;
29847 fail:
29848 {
29849 if (temp2)
29850 delete arg2;
29851 }
29852 return NULL;
29853 }
29854
29855
29856 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29857 PyObject *resultobj = 0;
29858 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29859 wxString *arg2 = 0 ;
29860 int arg3 ;
29861 int arg4 ;
29862 double arg5 ;
29863 void *argp1 = 0 ;
29864 int res1 = 0 ;
29865 bool temp2 = false ;
29866 int val3 ;
29867 int ecode3 = 0 ;
29868 int val4 ;
29869 int ecode4 = 0 ;
29870 double val5 ;
29871 int ecode5 = 0 ;
29872 PyObject * obj0 = 0 ;
29873 PyObject * obj1 = 0 ;
29874 PyObject * obj2 = 0 ;
29875 PyObject * obj3 = 0 ;
29876 PyObject * obj4 = 0 ;
29877 char * kwnames[] = {
29878 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
29879 };
29880
29881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29883 if (!SWIG_IsOK(res1)) {
29884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29885 }
29886 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29887 {
29888 arg2 = wxString_in_helper(obj1);
29889 if (arg2 == NULL) SWIG_fail;
29890 temp2 = true;
29891 }
29892 ecode3 = SWIG_AsVal_int(obj2, &val3);
29893 if (!SWIG_IsOK(ecode3)) {
29894 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
29895 }
29896 arg3 = static_cast< int >(val3);
29897 ecode4 = SWIG_AsVal_int(obj3, &val4);
29898 if (!SWIG_IsOK(ecode4)) {
29899 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
29900 }
29901 arg4 = static_cast< int >(val4);
29902 ecode5 = SWIG_AsVal_double(obj4, &val5);
29903 if (!SWIG_IsOK(ecode5)) {
29904 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
29905 }
29906 arg5 = static_cast< double >(val5);
29907 {
29908 PyThreadState* __tstate = wxPyBeginAllowThreads();
29909 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
29910 wxPyEndAllowThreads(__tstate);
29911 if (PyErr_Occurred()) SWIG_fail;
29912 }
29913 resultobj = SWIG_Py_Void();
29914 {
29915 if (temp2)
29916 delete arg2;
29917 }
29918 return resultobj;
29919 fail:
29920 {
29921 if (temp2)
29922 delete arg2;
29923 }
29924 return NULL;
29925 }
29926
29927
29928 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29929 PyObject *resultobj = 0;
29930 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29931 wxString *arg2 = 0 ;
29932 wxPoint *arg3 = 0 ;
29933 double arg4 ;
29934 void *argp1 = 0 ;
29935 int res1 = 0 ;
29936 bool temp2 = false ;
29937 wxPoint temp3 ;
29938 double val4 ;
29939 int ecode4 = 0 ;
29940 PyObject * obj0 = 0 ;
29941 PyObject * obj1 = 0 ;
29942 PyObject * obj2 = 0 ;
29943 PyObject * obj3 = 0 ;
29944 char * kwnames[] = {
29945 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
29946 };
29947
29948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29950 if (!SWIG_IsOK(res1)) {
29951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29952 }
29953 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29954 {
29955 arg2 = wxString_in_helper(obj1);
29956 if (arg2 == NULL) SWIG_fail;
29957 temp2 = true;
29958 }
29959 {
29960 arg3 = &temp3;
29961 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29962 }
29963 ecode4 = SWIG_AsVal_double(obj3, &val4);
29964 if (!SWIG_IsOK(ecode4)) {
29965 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
29966 }
29967 arg4 = static_cast< double >(val4);
29968 {
29969 PyThreadState* __tstate = wxPyBeginAllowThreads();
29970 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
29971 wxPyEndAllowThreads(__tstate);
29972 if (PyErr_Occurred()) SWIG_fail;
29973 }
29974 resultobj = SWIG_Py_Void();
29975 {
29976 if (temp2)
29977 delete arg2;
29978 }
29979 return resultobj;
29980 fail:
29981 {
29982 if (temp2)
29983 delete arg2;
29984 }
29985 return NULL;
29986 }
29987
29988
29989 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29990 PyObject *resultobj = 0;
29991 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29992 int arg2 ;
29993 wxPoint *arg3 = (wxPoint *) 0 ;
29994 int arg4 = (int) 0 ;
29995 int arg5 = (int) 0 ;
29996 void *argp1 = 0 ;
29997 int res1 = 0 ;
29998 int val4 ;
29999 int ecode4 = 0 ;
30000 int val5 ;
30001 int ecode5 = 0 ;
30002 PyObject * obj0 = 0 ;
30003 PyObject * obj1 = 0 ;
30004 PyObject * obj2 = 0 ;
30005 PyObject * obj3 = 0 ;
30006 char * kwnames[] = {
30007 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
30008 };
30009
30010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30012 if (!SWIG_IsOK(res1)) {
30013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30014 }
30015 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30016 {
30017 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30018 if (arg3 == NULL) SWIG_fail;
30019 }
30020 if (obj2) {
30021 ecode4 = SWIG_AsVal_int(obj2, &val4);
30022 if (!SWIG_IsOK(ecode4)) {
30023 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
30024 }
30025 arg4 = static_cast< int >(val4);
30026 }
30027 if (obj3) {
30028 ecode5 = SWIG_AsVal_int(obj3, &val5);
30029 if (!SWIG_IsOK(ecode5)) {
30030 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
30031 }
30032 arg5 = static_cast< int >(val5);
30033 }
30034 {
30035 PyThreadState* __tstate = wxPyBeginAllowThreads();
30036 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
30037 wxPyEndAllowThreads(__tstate);
30038 if (PyErr_Occurred()) SWIG_fail;
30039 }
30040 resultobj = SWIG_Py_Void();
30041 {
30042 if (arg3) delete [] arg3;
30043 }
30044 return resultobj;
30045 fail:
30046 {
30047 if (arg3) delete [] arg3;
30048 }
30049 return NULL;
30050 }
30051
30052
30053 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30054 PyObject *resultobj = 0;
30055 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30056 int arg2 ;
30057 wxPoint *arg3 = (wxPoint *) 0 ;
30058 int arg4 = (int) 0 ;
30059 int arg5 = (int) 0 ;
30060 int arg6 = (int) wxODDEVEN_RULE ;
30061 void *argp1 = 0 ;
30062 int res1 = 0 ;
30063 int val4 ;
30064 int ecode4 = 0 ;
30065 int val5 ;
30066 int ecode5 = 0 ;
30067 int val6 ;
30068 int ecode6 = 0 ;
30069 PyObject * obj0 = 0 ;
30070 PyObject * obj1 = 0 ;
30071 PyObject * obj2 = 0 ;
30072 PyObject * obj3 = 0 ;
30073 PyObject * obj4 = 0 ;
30074 char * kwnames[] = {
30075 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
30076 };
30077
30078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30080 if (!SWIG_IsOK(res1)) {
30081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30082 }
30083 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30084 {
30085 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30086 if (arg3 == NULL) SWIG_fail;
30087 }
30088 if (obj2) {
30089 ecode4 = SWIG_AsVal_int(obj2, &val4);
30090 if (!SWIG_IsOK(ecode4)) {
30091 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
30092 }
30093 arg4 = static_cast< int >(val4);
30094 }
30095 if (obj3) {
30096 ecode5 = SWIG_AsVal_int(obj3, &val5);
30097 if (!SWIG_IsOK(ecode5)) {
30098 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
30099 }
30100 arg5 = static_cast< int >(val5);
30101 }
30102 if (obj4) {
30103 ecode6 = SWIG_AsVal_int(obj4, &val6);
30104 if (!SWIG_IsOK(ecode6)) {
30105 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
30106 }
30107 arg6 = static_cast< int >(val6);
30108 }
30109 {
30110 PyThreadState* __tstate = wxPyBeginAllowThreads();
30111 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
30112 wxPyEndAllowThreads(__tstate);
30113 if (PyErr_Occurred()) SWIG_fail;
30114 }
30115 resultobj = SWIG_Py_Void();
30116 {
30117 if (arg3) delete [] arg3;
30118 }
30119 return resultobj;
30120 fail:
30121 {
30122 if (arg3) delete [] arg3;
30123 }
30124 return NULL;
30125 }
30126
30127
30128 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30129 PyObject *resultobj = 0;
30130 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30131 wxString *arg2 = 0 ;
30132 wxRect *arg3 = 0 ;
30133 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
30134 int arg5 = (int) -1 ;
30135 void *argp1 = 0 ;
30136 int res1 = 0 ;
30137 bool temp2 = false ;
30138 wxRect temp3 ;
30139 int val4 ;
30140 int ecode4 = 0 ;
30141 int val5 ;
30142 int ecode5 = 0 ;
30143 PyObject * obj0 = 0 ;
30144 PyObject * obj1 = 0 ;
30145 PyObject * obj2 = 0 ;
30146 PyObject * obj3 = 0 ;
30147 PyObject * obj4 = 0 ;
30148 char * kwnames[] = {
30149 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
30150 };
30151
30152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30154 if (!SWIG_IsOK(res1)) {
30155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30156 }
30157 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30158 {
30159 arg2 = wxString_in_helper(obj1);
30160 if (arg2 == NULL) SWIG_fail;
30161 temp2 = true;
30162 }
30163 {
30164 arg3 = &temp3;
30165 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
30166 }
30167 if (obj3) {
30168 ecode4 = SWIG_AsVal_int(obj3, &val4);
30169 if (!SWIG_IsOK(ecode4)) {
30170 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
30171 }
30172 arg4 = static_cast< int >(val4);
30173 }
30174 if (obj4) {
30175 ecode5 = SWIG_AsVal_int(obj4, &val5);
30176 if (!SWIG_IsOK(ecode5)) {
30177 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
30178 }
30179 arg5 = static_cast< int >(val5);
30180 }
30181 {
30182 PyThreadState* __tstate = wxPyBeginAllowThreads();
30183 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
30184 wxPyEndAllowThreads(__tstate);
30185 if (PyErr_Occurred()) SWIG_fail;
30186 }
30187 resultobj = SWIG_Py_Void();
30188 {
30189 if (temp2)
30190 delete arg2;
30191 }
30192 return resultobj;
30193 fail:
30194 {
30195 if (temp2)
30196 delete arg2;
30197 }
30198 return NULL;
30199 }
30200
30201
30202 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30203 PyObject *resultobj = 0;
30204 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30205 wxString *arg2 = 0 ;
30206 wxBitmap *arg3 = 0 ;
30207 wxRect *arg4 = 0 ;
30208 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
30209 int arg6 = (int) -1 ;
30210 void *argp1 = 0 ;
30211 int res1 = 0 ;
30212 bool temp2 = false ;
30213 void *argp3 = 0 ;
30214 int res3 = 0 ;
30215 wxRect temp4 ;
30216 int val5 ;
30217 int ecode5 = 0 ;
30218 int val6 ;
30219 int ecode6 = 0 ;
30220 PyObject * obj0 = 0 ;
30221 PyObject * obj1 = 0 ;
30222 PyObject * obj2 = 0 ;
30223 PyObject * obj3 = 0 ;
30224 PyObject * obj4 = 0 ;
30225 PyObject * obj5 = 0 ;
30226 char * kwnames[] = {
30227 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
30228 };
30229
30230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30232 if (!SWIG_IsOK(res1)) {
30233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30234 }
30235 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30236 {
30237 arg2 = wxString_in_helper(obj1);
30238 if (arg2 == NULL) SWIG_fail;
30239 temp2 = true;
30240 }
30241 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30242 if (!SWIG_IsOK(res3)) {
30243 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30244 }
30245 if (!argp3) {
30246 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30247 }
30248 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30249 {
30250 arg4 = &temp4;
30251 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30252 }
30253 if (obj4) {
30254 ecode5 = SWIG_AsVal_int(obj4, &val5);
30255 if (!SWIG_IsOK(ecode5)) {
30256 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
30257 }
30258 arg5 = static_cast< int >(val5);
30259 }
30260 if (obj5) {
30261 ecode6 = SWIG_AsVal_int(obj5, &val6);
30262 if (!SWIG_IsOK(ecode6)) {
30263 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
30264 }
30265 arg6 = static_cast< int >(val6);
30266 }
30267 {
30268 PyThreadState* __tstate = wxPyBeginAllowThreads();
30269 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
30270 wxPyEndAllowThreads(__tstate);
30271 if (PyErr_Occurred()) SWIG_fail;
30272 }
30273 resultobj = SWIG_Py_Void();
30274 {
30275 if (temp2)
30276 delete arg2;
30277 }
30278 return resultobj;
30279 fail:
30280 {
30281 if (temp2)
30282 delete arg2;
30283 }
30284 return NULL;
30285 }
30286
30287
30288 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30289 PyObject *resultobj = 0;
30290 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30291 int arg2 ;
30292 wxPoint *arg3 = (wxPoint *) 0 ;
30293 void *argp1 = 0 ;
30294 int res1 = 0 ;
30295 PyObject * obj0 = 0 ;
30296 PyObject * obj1 = 0 ;
30297 char * kwnames[] = {
30298 (char *) "self",(char *) "points", NULL
30299 };
30300
30301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
30302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30303 if (!SWIG_IsOK(res1)) {
30304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30305 }
30306 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30307 {
30308 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30309 if (arg3 == NULL) SWIG_fail;
30310 }
30311 {
30312 PyThreadState* __tstate = wxPyBeginAllowThreads();
30313 (arg1)->DrawSpline(arg2,arg3);
30314 wxPyEndAllowThreads(__tstate);
30315 if (PyErr_Occurred()) SWIG_fail;
30316 }
30317 resultobj = SWIG_Py_Void();
30318 {
30319 if (arg3) delete [] arg3;
30320 }
30321 return resultobj;
30322 fail:
30323 {
30324 if (arg3) delete [] arg3;
30325 }
30326 return NULL;
30327 }
30328
30329
30330 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30331 PyObject *resultobj = 0;
30332 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30333 void *argp1 = 0 ;
30334 int res1 = 0 ;
30335 PyObject *swig_obj[1] ;
30336
30337 if (!args) SWIG_fail;
30338 swig_obj[0] = args;
30339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30340 if (!SWIG_IsOK(res1)) {
30341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30342 }
30343 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30344 {
30345 PyThreadState* __tstate = wxPyBeginAllowThreads();
30346 (arg1)->Clear();
30347 wxPyEndAllowThreads(__tstate);
30348 if (PyErr_Occurred()) SWIG_fail;
30349 }
30350 resultobj = SWIG_Py_Void();
30351 return resultobj;
30352 fail:
30353 return NULL;
30354 }
30355
30356
30357 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30358 PyObject *resultobj = 0;
30359 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30360 wxFont *arg2 = 0 ;
30361 void *argp1 = 0 ;
30362 int res1 = 0 ;
30363 void *argp2 = 0 ;
30364 int res2 = 0 ;
30365 PyObject * obj0 = 0 ;
30366 PyObject * obj1 = 0 ;
30367 char * kwnames[] = {
30368 (char *) "self",(char *) "font", NULL
30369 };
30370
30371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
30372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30373 if (!SWIG_IsOK(res1)) {
30374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30375 }
30376 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30377 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30378 if (!SWIG_IsOK(res2)) {
30379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30380 }
30381 if (!argp2) {
30382 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30383 }
30384 arg2 = reinterpret_cast< wxFont * >(argp2);
30385 {
30386 PyThreadState* __tstate = wxPyBeginAllowThreads();
30387 (arg1)->SetFont((wxFont const &)*arg2);
30388 wxPyEndAllowThreads(__tstate);
30389 if (PyErr_Occurred()) SWIG_fail;
30390 }
30391 resultobj = SWIG_Py_Void();
30392 return resultobj;
30393 fail:
30394 return NULL;
30395 }
30396
30397
30398 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30399 PyObject *resultobj = 0;
30400 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30401 wxPen *arg2 = 0 ;
30402 void *argp1 = 0 ;
30403 int res1 = 0 ;
30404 void *argp2 = 0 ;
30405 int res2 = 0 ;
30406 PyObject * obj0 = 0 ;
30407 PyObject * obj1 = 0 ;
30408 char * kwnames[] = {
30409 (char *) "self",(char *) "pen", NULL
30410 };
30411
30412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
30413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30414 if (!SWIG_IsOK(res1)) {
30415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30416 }
30417 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30418 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30419 if (!SWIG_IsOK(res2)) {
30420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
30421 }
30422 if (!argp2) {
30423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
30424 }
30425 arg2 = reinterpret_cast< wxPen * >(argp2);
30426 {
30427 PyThreadState* __tstate = wxPyBeginAllowThreads();
30428 (arg1)->SetPen((wxPen const &)*arg2);
30429 wxPyEndAllowThreads(__tstate);
30430 if (PyErr_Occurred()) SWIG_fail;
30431 }
30432 resultobj = SWIG_Py_Void();
30433 return resultobj;
30434 fail:
30435 return NULL;
30436 }
30437
30438
30439 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30440 PyObject *resultobj = 0;
30441 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30442 wxBrush *arg2 = 0 ;
30443 void *argp1 = 0 ;
30444 int res1 = 0 ;
30445 void *argp2 = 0 ;
30446 int res2 = 0 ;
30447 PyObject * obj0 = 0 ;
30448 PyObject * obj1 = 0 ;
30449 char * kwnames[] = {
30450 (char *) "self",(char *) "brush", NULL
30451 };
30452
30453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30455 if (!SWIG_IsOK(res1)) {
30456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30457 }
30458 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30459 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30460 if (!SWIG_IsOK(res2)) {
30461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30462 }
30463 if (!argp2) {
30464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30465 }
30466 arg2 = reinterpret_cast< wxBrush * >(argp2);
30467 {
30468 PyThreadState* __tstate = wxPyBeginAllowThreads();
30469 (arg1)->SetBrush((wxBrush const &)*arg2);
30470 wxPyEndAllowThreads(__tstate);
30471 if (PyErr_Occurred()) SWIG_fail;
30472 }
30473 resultobj = SWIG_Py_Void();
30474 return resultobj;
30475 fail:
30476 return NULL;
30477 }
30478
30479
30480 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30481 PyObject *resultobj = 0;
30482 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30483 wxBrush *arg2 = 0 ;
30484 void *argp1 = 0 ;
30485 int res1 = 0 ;
30486 void *argp2 = 0 ;
30487 int res2 = 0 ;
30488 PyObject * obj0 = 0 ;
30489 PyObject * obj1 = 0 ;
30490 char * kwnames[] = {
30491 (char *) "self",(char *) "brush", NULL
30492 };
30493
30494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
30495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30496 if (!SWIG_IsOK(res1)) {
30497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30498 }
30499 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30500 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30501 if (!SWIG_IsOK(res2)) {
30502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
30503 }
30504 if (!argp2) {
30505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
30506 }
30507 arg2 = reinterpret_cast< wxBrush * >(argp2);
30508 {
30509 PyThreadState* __tstate = wxPyBeginAllowThreads();
30510 (arg1)->SetBackground((wxBrush const &)*arg2);
30511 wxPyEndAllowThreads(__tstate);
30512 if (PyErr_Occurred()) SWIG_fail;
30513 }
30514 resultobj = SWIG_Py_Void();
30515 return resultobj;
30516 fail:
30517 return NULL;
30518 }
30519
30520
30521 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30522 PyObject *resultobj = 0;
30523 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30524 int arg2 ;
30525 void *argp1 = 0 ;
30526 int res1 = 0 ;
30527 int val2 ;
30528 int ecode2 = 0 ;
30529 PyObject * obj0 = 0 ;
30530 PyObject * obj1 = 0 ;
30531 char * kwnames[] = {
30532 (char *) "self",(char *) "mode", NULL
30533 };
30534
30535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
30536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30537 if (!SWIG_IsOK(res1)) {
30538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30539 }
30540 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30541 ecode2 = SWIG_AsVal_int(obj1, &val2);
30542 if (!SWIG_IsOK(ecode2)) {
30543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
30544 }
30545 arg2 = static_cast< int >(val2);
30546 {
30547 PyThreadState* __tstate = wxPyBeginAllowThreads();
30548 (arg1)->SetBackgroundMode(arg2);
30549 wxPyEndAllowThreads(__tstate);
30550 if (PyErr_Occurred()) SWIG_fail;
30551 }
30552 resultobj = SWIG_Py_Void();
30553 return resultobj;
30554 fail:
30555 return NULL;
30556 }
30557
30558
30559 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30560 PyObject *resultobj = 0;
30561 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30562 wxPalette *arg2 = 0 ;
30563 void *argp1 = 0 ;
30564 int res1 = 0 ;
30565 void *argp2 = 0 ;
30566 int res2 = 0 ;
30567 PyObject * obj0 = 0 ;
30568 PyObject * obj1 = 0 ;
30569 char * kwnames[] = {
30570 (char *) "self",(char *) "palette", NULL
30571 };
30572
30573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
30574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30575 if (!SWIG_IsOK(res1)) {
30576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30577 }
30578 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30579 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
30580 if (!SWIG_IsOK(res2)) {
30581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
30582 }
30583 if (!argp2) {
30584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
30585 }
30586 arg2 = reinterpret_cast< wxPalette * >(argp2);
30587 {
30588 PyThreadState* __tstate = wxPyBeginAllowThreads();
30589 (arg1)->SetPalette((wxPalette const &)*arg2);
30590 wxPyEndAllowThreads(__tstate);
30591 if (PyErr_Occurred()) SWIG_fail;
30592 }
30593 resultobj = SWIG_Py_Void();
30594 return resultobj;
30595 fail:
30596 return NULL;
30597 }
30598
30599
30600 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30601 PyObject *resultobj = 0;
30602 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30603 wxColour *arg2 = 0 ;
30604 void *argp1 = 0 ;
30605 int res1 = 0 ;
30606 wxColour temp2 ;
30607 PyObject * obj0 = 0 ;
30608 PyObject * obj1 = 0 ;
30609 char * kwnames[] = {
30610 (char *) "self",(char *) "colour", NULL
30611 };
30612
30613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
30614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30615 if (!SWIG_IsOK(res1)) {
30616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30617 }
30618 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30619 {
30620 arg2 = &temp2;
30621 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30622 }
30623 {
30624 PyThreadState* __tstate = wxPyBeginAllowThreads();
30625 (arg1)->SetTextForeground((wxColour const &)*arg2);
30626 wxPyEndAllowThreads(__tstate);
30627 if (PyErr_Occurred()) SWIG_fail;
30628 }
30629 resultobj = SWIG_Py_Void();
30630 return resultobj;
30631 fail:
30632 return NULL;
30633 }
30634
30635
30636 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30637 PyObject *resultobj = 0;
30638 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30639 wxColour *arg2 = 0 ;
30640 void *argp1 = 0 ;
30641 int res1 = 0 ;
30642 wxColour temp2 ;
30643 PyObject * obj0 = 0 ;
30644 PyObject * obj1 = 0 ;
30645 char * kwnames[] = {
30646 (char *) "self",(char *) "colour", NULL
30647 };
30648
30649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
30650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30651 if (!SWIG_IsOK(res1)) {
30652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30653 }
30654 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30655 {
30656 arg2 = &temp2;
30657 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30658 }
30659 {
30660 PyThreadState* __tstate = wxPyBeginAllowThreads();
30661 (arg1)->SetTextBackground((wxColour const &)*arg2);
30662 wxPyEndAllowThreads(__tstate);
30663 if (PyErr_Occurred()) SWIG_fail;
30664 }
30665 resultobj = SWIG_Py_Void();
30666 return resultobj;
30667 fail:
30668 return NULL;
30669 }
30670
30671
30672 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30673 PyObject *resultobj = 0;
30674 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30675 int arg2 ;
30676 void *argp1 = 0 ;
30677 int res1 = 0 ;
30678 int val2 ;
30679 int ecode2 = 0 ;
30680 PyObject * obj0 = 0 ;
30681 PyObject * obj1 = 0 ;
30682 char * kwnames[] = {
30683 (char *) "self",(char *) "function", NULL
30684 };
30685
30686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
30687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30688 if (!SWIG_IsOK(res1)) {
30689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30690 }
30691 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30692 ecode2 = SWIG_AsVal_int(obj1, &val2);
30693 if (!SWIG_IsOK(ecode2)) {
30694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
30695 }
30696 arg2 = static_cast< int >(val2);
30697 {
30698 PyThreadState* __tstate = wxPyBeginAllowThreads();
30699 (arg1)->SetLogicalFunction(arg2);
30700 wxPyEndAllowThreads(__tstate);
30701 if (PyErr_Occurred()) SWIG_fail;
30702 }
30703 resultobj = SWIG_Py_Void();
30704 return resultobj;
30705 fail:
30706 return NULL;
30707 }
30708
30709
30710 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30711 PyObject *obj;
30712 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30713 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
30714 return SWIG_Py_Void();
30715 }
30716
30717 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30718 return SWIG_Python_InitShadowInstance(args);
30719 }
30720
30721 static PyMethodDef SwigMethods[] = {
30722 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
30723 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
30724 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
30725 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
30726 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
30727 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
30728 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
30729 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
30730 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
30731 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
30732 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
30733 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
30734 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
30735 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
30736 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
30737 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
30738 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
30739 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
30740 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
30741 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
30742 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
30743 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
30744 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
30745 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
30746 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
30747 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
30748 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
30749 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
30750 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
30751 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
30752 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
30753 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
30754 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
30755 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
30756 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
30757 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
30758 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
30759 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
30760 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
30761 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
30762 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
30763 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
30764 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
30765 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
30766 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
30767 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
30768 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
30769 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
30770 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
30771 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
30772 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
30773 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
30774 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
30775 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
30776 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30777 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
30778 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
30779 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
30780 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
30781 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
30782 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
30783 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
30784 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
30785 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
30786 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
30787 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
30788 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
30789 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
30790 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30791 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
30792 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30793 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30794 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
30795 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
30796 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
30797 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
30798 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
30799 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
30800 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
30801 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
30802 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
30803 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
30804 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
30805 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
30806 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30807 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
30808 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
30809 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
30810 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30811 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
30812 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
30813 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
30814 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
30815 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
30816 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
30817 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
30818 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
30819 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
30820 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
30821 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
30822 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
30823 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
30824 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
30825 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
30826 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
30827 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
30828 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
30829 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
30830 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
30831 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
30832 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
30833 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
30834 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
30835 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
30836 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
30837 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
30838 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
30839 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
30840 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
30841 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
30842 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
30843 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
30844 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
30845 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
30846 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
30847 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
30848 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
30849 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
30850 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
30851 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
30852 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
30853 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
30854 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
30855 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
30856 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
30857 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
30858 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
30859 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
30860 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
30861 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
30862 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
30863 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
30864 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
30865 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
30866 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
30867 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
30868 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
30869 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
30870 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
30871 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
30872 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
30873 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
30874 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
30875 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
30876 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30877 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
30878 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
30879 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
30880 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
30881 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
30882 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
30883 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
30884 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
30885 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30886 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
30887 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
30888 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
30889 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
30890 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
30891 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
30892 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
30893 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
30894 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
30895 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
30896 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
30897 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
30898 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
30899 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30900 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
30901 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30902 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
30903 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30904 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
30905 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
30906 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
30907 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
30908 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
30909 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
30910 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
30911 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
30912 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
30913 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
30914 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30915 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
30916 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
30917 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
30918 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
30919 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
30920 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
30921 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30922 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
30923 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
30924 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
30925 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
30926 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
30927 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30928 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
30929 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
30930 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
30931 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30932 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
30933 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
30934 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30935 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
30936 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
30937 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30938 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
30939 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30940 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
30941 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
30942 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
30943 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
30944 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
30945 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
30946 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
30947 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
30948 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
30949 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
30950 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
30951 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
30952 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
30953 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
30954 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
30955 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
30956 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
30957 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
30958 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
30959 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
30960 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
30961 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
30962 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
30963 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
30964 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
30965 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
30966 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
30967 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
30968 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
30969 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
30970 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
30971 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
30972 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
30973 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
30974 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
30975 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30976 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
30977 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
30978 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
30979 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
30980 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
30981 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
30982 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
30983 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
30984 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
30985 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
30986 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
30987 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
30988 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
30989 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
30990 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
30991 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
30992 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
30993 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30994 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30995 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
30996 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
30997 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
30998 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
30999 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31000 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
31001 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31002 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
31003 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
31004 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
31005 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
31006 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
31007 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31008 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
31009 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
31010 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
31011 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
31012 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
31013 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
31014 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
31015 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31016 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
31017 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
31018 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31019 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31020 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
31021 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31022 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31023 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
31024 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
31025 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
31026 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
31027 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
31028 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
31029 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
31030 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
31031 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
31032 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
31033 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
31034 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
31035 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
31036 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31037 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31038 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
31039 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31040 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
31041 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
31042 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
31043 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31044 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31045 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
31046 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
31047 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
31048 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
31049 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
31050 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
31051 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
31052 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
31053 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31054 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
31055 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
31056 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
31057 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
31058 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31059 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
31060 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
31061 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
31062 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
31063 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
31064 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
31065 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
31066 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
31067 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
31068 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
31069 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
31070 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
31071 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
31072 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
31073 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
31074 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
31075 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
31076 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
31077 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
31078 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
31079 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
31080 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
31081 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
31082 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
31083 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
31084 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
31085 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
31086 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
31087 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
31088 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31089 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
31090 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31091 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
31092 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
31093 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
31094 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
31095 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
31096 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
31097 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
31098 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31099 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
31100 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
31101 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
31102 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
31103 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
31104 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
31105 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
31106 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
31107 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
31108 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
31109 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
31110 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
31111 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
31112 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
31113 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
31114 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
31115 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
31116 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31117 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
31118 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
31119 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
31120 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31121 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
31122 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31123 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
31124 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31125 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
31126 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31127 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
31128 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
31129 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
31130 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31131 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31132 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31133 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31134 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31135 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31136 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31137 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31138 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31139 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
31140 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31141 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
31142 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
31143 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31144 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31145 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31146 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31147 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31148 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
31149 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31150 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
31151 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31152 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
31153 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31154 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31155 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31156 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31157 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
31158 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
31159 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
31160 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31161 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31162 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
31163 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
31164 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
31165 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
31166 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
31167 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
31168 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
31169 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
31170 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31171 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31172 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
31173 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
31174 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
31175 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
31176 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
31177 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
31178 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
31179 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31180 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31181 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31182 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
31183 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
31184 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
31185 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
31186 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
31187 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
31188 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
31189 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
31190 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
31191 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
31192 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
31193 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
31194 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
31195 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
31196 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
31197 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
31198 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
31199 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
31200 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
31201 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
31202 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
31203 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
31204 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
31205 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
31206 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
31207 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
31208 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31209 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
31210 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
31211 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
31212 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
31213 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
31214 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
31215 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
31216 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
31217 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
31218 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31219 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
31220 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
31221 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
31222 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31223 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
31224 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
31225 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
31226 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
31227 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
31228 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31229 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
31230 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
31231 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
31232 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
31233 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
31234 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
31235 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
31236 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
31237 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
31238 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
31239 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
31240 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
31241 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
31242 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
31243 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
31244 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
31245 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
31246 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
31247 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
31248 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
31249 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
31250 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
31251 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
31252 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
31253 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
31254 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
31255 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
31256 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
31257 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
31258 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
31259 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
31260 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
31261 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
31262 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
31263 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
31264 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
31265 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
31266 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
31267 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
31268 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
31269 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
31270 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
31271 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
31272 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
31273 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
31274 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
31275 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
31276 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
31277 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
31278 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
31279 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
31280 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
31281 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
31282 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
31283 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
31284 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
31285 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
31286 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
31287 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
31288 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
31289 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
31290 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
31291 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
31292 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
31293 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
31294 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
31295 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
31296 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
31297 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
31298 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
31299 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
31300 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31301 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31302 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31303 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
31304 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
31305 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
31306 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
31307 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
31308 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
31309 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
31310 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
31311 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
31312 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
31313 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
31314 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
31315 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31316 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
31317 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
31318 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
31319 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
31320 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
31321 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
31322 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
31323 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
31324 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
31325 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
31326 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
31327 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
31328 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
31329 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
31330 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31331 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31332 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31333 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
31334 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
31335 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
31336 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
31337 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
31338 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
31339 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
31340 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
31341 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
31342 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
31343 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
31344 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
31345 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
31346 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
31347 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
31348 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
31349 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
31350 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
31351 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
31352 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
31353 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
31354 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
31355 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
31356 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
31357 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
31358 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
31359 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
31360 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
31361 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31362 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
31363 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31364 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
31365 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
31366 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
31367 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
31368 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
31369 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
31370 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
31371 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
31372 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
31373 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
31374 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
31375 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
31376 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
31377 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
31378 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
31379 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
31380 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
31381 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
31382 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
31383 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
31384 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
31385 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
31386 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
31387 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
31388 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
31389 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
31390 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
31391 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
31392 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
31393 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31394 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
31395 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
31396 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
31397 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
31398 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
31399 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
31400 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
31401 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
31402 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
31403 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
31404 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
31405 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
31406 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
31407 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
31408 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
31409 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
31410 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
31411 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
31412 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
31413 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31414 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
31415 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31416 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
31417 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31418 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
31419 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31420 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
31421 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
31422 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
31423 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31424 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31425 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31426 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31427 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31428 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31429 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31430 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31431 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31432 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
31433 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31434 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
31435 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
31436 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31437 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31438 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31439 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31440 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31441 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
31442 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31443 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
31444 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31445 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
31446 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
31447 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31448 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31449 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
31450 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
31451 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
31452 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
31453 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31454 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31455 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
31456 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
31457 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
31458 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31459 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
31460 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
31461 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
31462 { NULL, NULL, 0, NULL }
31463 };
31464
31465
31466 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
31467
31468 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
31469 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
31470 }
31471 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
31472 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
31473 }
31474 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
31475 return (void *)((wxLocale *) ((wxPyLocale *) x));
31476 }
31477 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
31478 return (void *)((wxGDIObject *) ((wxIcon *) x));
31479 }
31480 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
31481 return (void *)((wxGDIObject *) ((wxPalette *) x));
31482 }
31483 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
31484 return (void *)((wxGDIObject *) ((wxPen *) x));
31485 }
31486 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
31487 return (void *)((wxGDIObject *) ((wxFont *) x));
31488 }
31489 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
31490 return (void *)((wxGDIObject *) ((wxCursor *) x));
31491 }
31492 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
31493 return (void *)((wxGDIObject *) ((wxBitmap *) x));
31494 }
31495 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
31496 return (void *)((wxGDIObject *) ((wxRegion *) x));
31497 }
31498 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
31499 return (void *)((wxGDIObject *) ((wxBrush *) x));
31500 }
31501 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
31502 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
31503 }
31504 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
31505 return (void *)((wxDC *) ((wxScreenDC *) x));
31506 }
31507 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
31508 return (void *)((wxDC *) ((wxMirrorDC *) x));
31509 }
31510 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
31511 return (void *)((wxDC *) ((wxMemoryDC *) x));
31512 }
31513 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
31514 return (void *)((wxDC *) ((wxWindowDC *) x));
31515 }
31516 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
31517 return (void *)((wxDC *) ((wxMetaFileDC *) x));
31518 }
31519 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
31520 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
31521 }
31522 static void *_p_wxClientDCTo_p_wxDC(void *x) {
31523 return (void *)((wxDC *) ((wxClientDC *) x));
31524 }
31525 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
31526 return (void *)((wxDC *) ((wxPaintDC *) x));
31527 }
31528 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
31529 return (void *)((wxDC *) ((wxPostScriptDC *) x));
31530 }
31531 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
31532 return (void *)((wxDC *) ((wxPrinterDC *) x));
31533 }
31534 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
31535 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
31536 }
31537 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
31538 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
31539 }
31540 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
31541 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
31542 }
31543 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
31544 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
31545 }
31546 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
31547 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
31548 }
31549 static void *_p_wxPenTo_p_wxObject(void *x) {
31550 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
31551 }
31552 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
31553 return (void *)((wxObject *) ((wxRegionIterator *) x));
31554 }
31555 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
31556 return (void *)((wxObject *) ((wxSizerItem *) x));
31557 }
31558 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
31559 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
31560 }
31561 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
31562 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
31563 }
31564 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
31565 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
31566 }
31567 static void *_p_wxIconTo_p_wxObject(void *x) {
31568 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
31569 }
31570 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
31571 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
31572 }
31573 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
31574 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
31575 }
31576 static void *_p_wxSizerTo_p_wxObject(void *x) {
31577 return (void *)((wxObject *) ((wxSizer *) x));
31578 }
31579 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
31580 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
31581 }
31582 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
31583 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
31584 }
31585 static void *_p_wxEventTo_p_wxObject(void *x) {
31586 return (void *)((wxObject *) ((wxEvent *) x));
31587 }
31588 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
31589 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
31590 }
31591 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
31592 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
31593 }
31594 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
31595 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
31596 }
31597 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
31598 return (void *)((wxObject *) ((wxPseudoDC *) x));
31599 }
31600 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
31601 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
31602 }
31603 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
31604 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
31605 }
31606 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
31607 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
31608 }
31609 static void *_p_wxDCTo_p_wxObject(void *x) {
31610 return (void *)((wxObject *) ((wxDC *) x));
31611 }
31612 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
31613 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
31614 }
31615 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
31616 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
31617 }
31618 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
31619 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
31620 }
31621 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
31622 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
31623 }
31624 static void *_p_wxControlTo_p_wxObject(void *x) {
31625 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
31626 }
31627 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
31628 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
31629 }
31630 static void *_p_wxClientDCTo_p_wxObject(void *x) {
31631 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
31632 }
31633 static void *_p_wxFSFileTo_p_wxObject(void *x) {
31634 return (void *)((wxObject *) ((wxFSFile *) x));
31635 }
31636 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
31637 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
31638 }
31639 static void *_p_wxRegionTo_p_wxObject(void *x) {
31640 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
31641 }
31642 static void *_p_wxPySizerTo_p_wxObject(void *x) {
31643 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
31644 }
31645 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
31646 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
31647 }
31648 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
31649 return (void *)((wxObject *) ((wxGDIObject *) x));
31650 }
31651 static void *_p_wxEffectsTo_p_wxObject(void *x) {
31652 return (void *)((wxObject *) ((wxEffects *) x));
31653 }
31654 static void *_p_wxPyEventTo_p_wxObject(void *x) {
31655 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
31656 }
31657 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
31658 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
31659 }
31660 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
31661 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
31662 }
31663 static void *_p_wxShowEventTo_p_wxObject(void *x) {
31664 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
31665 }
31666 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
31667 return (void *)((wxObject *) ((wxMenuItem *) x));
31668 }
31669 static void *_p_wxDateEventTo_p_wxObject(void *x) {
31670 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
31671 }
31672 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
31673 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
31674 }
31675 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
31676 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
31677 }
31678 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
31679 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
31680 }
31681 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
31682 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
31683 }
31684 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
31685 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
31686 }
31687 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
31688 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
31689 }
31690 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
31691 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
31692 }
31693 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
31694 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
31695 }
31696 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
31697 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
31698 }
31699 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
31700 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
31701 }
31702 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
31703 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
31704 }
31705 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
31706 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
31707 }
31708 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
31709 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
31710 }
31711 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
31712 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
31713 }
31714 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
31715 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
31716 }
31717 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
31718 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
31719 }
31720 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
31721 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
31722 }
31723 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
31724 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
31725 }
31726 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
31727 return (void *)((wxObject *) ((wxImageHandler *) x));
31728 }
31729 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
31730 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
31731 }
31732 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
31733 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
31734 }
31735 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
31736 return (void *)((wxObject *) ((wxEvtHandler *) x));
31737 }
31738 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
31739 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
31740 }
31741 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
31742 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
31743 }
31744 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
31745 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
31746 }
31747 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
31748 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
31749 }
31750 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
31751 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
31752 }
31753 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
31754 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
31755 }
31756 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
31757 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
31758 }
31759 static void *_p_wxImageTo_p_wxObject(void *x) {
31760 return (void *)((wxObject *) ((wxImage *) x));
31761 }
31762 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
31763 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
31764 }
31765 static void *_p_wxPaletteTo_p_wxObject(void *x) {
31766 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
31767 }
31768 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
31769 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
31770 }
31771 static void *_p_wxImageListTo_p_wxObject(void *x) {
31772 return (void *)((wxObject *) ((wxImageList *) x));
31773 }
31774 static void *_p_wxCursorTo_p_wxObject(void *x) {
31775 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
31776 }
31777 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
31778 return (void *)((wxObject *) ((wxEncodingConverter *) x));
31779 }
31780 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
31781 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
31782 }
31783 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
31784 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
31785 }
31786 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
31787 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
31788 }
31789 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
31790 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
31791 }
31792 static void *_p_wxWindowTo_p_wxObject(void *x) {
31793 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
31794 }
31795 static void *_p_wxMenuTo_p_wxObject(void *x) {
31796 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
31797 }
31798 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
31799 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
31800 }
31801 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
31802 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
31803 }
31804 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
31805 return (void *)((wxObject *) ((wxFileSystem *) x));
31806 }
31807 static void *_p_wxBitmapTo_p_wxObject(void *x) {
31808 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
31809 }
31810 static void *_p_wxMaskTo_p_wxObject(void *x) {
31811 return (void *)((wxObject *) ((wxMask *) x));
31812 }
31813 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
31814 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
31815 }
31816 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
31817 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
31818 }
31819 static void *_p_wxPyAppTo_p_wxObject(void *x) {
31820 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
31821 }
31822 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
31823 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
31824 }
31825 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
31826 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
31827 }
31828 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
31829 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
31830 }
31831 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
31832 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
31833 }
31834 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
31835 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
31836 }
31837 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
31838 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
31839 }
31840 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
31841 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
31842 }
31843 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
31844 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
31845 }
31846 static void *_p_wxFontTo_p_wxObject(void *x) {
31847 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
31848 }
31849 static void *_p_wxBrushTo_p_wxObject(void *x) {
31850 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
31851 }
31852 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
31853 return (void *)((wxObject *) ((wxMetaFile *) x));
31854 }
31855 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
31856 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
31857 }
31858 static void *_p_wxColourTo_p_wxObject(void *x) {
31859 return (void *)((wxObject *) ((wxColour *) x));
31860 }
31861 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
31862 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
31863 }
31864 static void *_p_wxValidatorTo_p_wxObject(void *x) {
31865 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
31866 }
31867 static void *_p_wxControlTo_p_wxWindow(void *x) {
31868 return (void *)((wxWindow *) ((wxControl *) x));
31869 }
31870 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
31871 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
31872 }
31873 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
31874 return (void *)((wxWindow *) ((wxMenuBar *) x));
31875 }
31876 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
31877 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
31878 }
31879 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
31880 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
31881 }
31882 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
31883 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
31884 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
31885 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};
31886 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
31887 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
31888 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
31889 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
31890 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
31891 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
31892 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
31893 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
31894 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
31895 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
31896 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
31897 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
31898 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
31899 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
31900 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
31901 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
31902 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
31903 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
31904 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
31905 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
31906 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
31907 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
31908 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
31909 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
31910 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
31911 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
31912 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
31913 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
31914 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
31915 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
31916 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
31917 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
31918 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
31919 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
31920 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
31921 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
31922 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
31923 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
31924 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
31925 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
31926 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
31927 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
31928 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
31929 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
31930 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
31931 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
31932 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
31933 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
31934 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
31935 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
31936 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
31937 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
31938 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
31939 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
31940 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
31941 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
31942 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
31943 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
31944 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
31945 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
31946 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
31947 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
31948 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
31949 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
31950 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
31951 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
31952 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
31953 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
31954 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
31955 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
31956 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
31957 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
31958 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
31959 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
31960 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
31961 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
31962 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
31963 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
31964 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
31965 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
31966 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
31967 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
31968 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
31969 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
31970 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
31971 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
31972 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
31973 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
31974 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
31975 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
31976 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
31977 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
31978 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
31979 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
31980 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
31981 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
31982 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
31983 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
31984 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
31985 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
31986 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
31987 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
31988 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
31989 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
31990 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
31991 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
31992 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
31993 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
31994 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
31995 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
31996 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
31997 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
31998 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
31999 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
32000 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
32001 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
32002 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
32003 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
32004 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
32005 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
32006 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
32007 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
32008 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
32009 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
32010 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
32011 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
32012 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
32013 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
32014 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
32015 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
32016 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
32017 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
32018 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
32019 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
32020 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
32021 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
32022 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
32023 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
32024 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
32025 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
32026 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
32027 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
32028 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
32029 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
32030
32031 static swig_type_info *swig_type_initial[] = {
32032 &_swigt__p_buffer,
32033 &_swigt__p_char,
32034 &_swigt__p_double,
32035 &_swigt__p_form_ops_t,
32036 &_swigt__p_int,
32037 &_swigt__p_unsigned_char,
32038 &_swigt__p_unsigned_int,
32039 &_swigt__p_unsigned_long,
32040 &_swigt__p_wxANIHandler,
32041 &_swigt__p_wxAcceleratorTable,
32042 &_swigt__p_wxActivateEvent,
32043 &_swigt__p_wxAlphaPixelData,
32044 &_swigt__p_wxAlphaPixelData_Accessor,
32045 &_swigt__p_wxBMPHandler,
32046 &_swigt__p_wxBitmap,
32047 &_swigt__p_wxBoxSizer,
32048 &_swigt__p_wxBrush,
32049 &_swigt__p_wxBrushList,
32050 &_swigt__p_wxBufferedDC,
32051 &_swigt__p_wxBufferedPaintDC,
32052 &_swigt__p_wxCURHandler,
32053 &_swigt__p_wxChar,
32054 &_swigt__p_wxChildFocusEvent,
32055 &_swigt__p_wxClientDC,
32056 &_swigt__p_wxClipboardTextEvent,
32057 &_swigt__p_wxCloseEvent,
32058 &_swigt__p_wxColour,
32059 &_swigt__p_wxColourDatabase,
32060 &_swigt__p_wxCommandEvent,
32061 &_swigt__p_wxContextMenuEvent,
32062 &_swigt__p_wxControl,
32063 &_swigt__p_wxControlWithItems,
32064 &_swigt__p_wxCursor,
32065 &_swigt__p_wxDC,
32066 &_swigt__p_wxDash,
32067 &_swigt__p_wxDateEvent,
32068 &_swigt__p_wxDisplayChangedEvent,
32069 &_swigt__p_wxDropFilesEvent,
32070 &_swigt__p_wxDuplexMode,
32071 &_swigt__p_wxEffects,
32072 &_swigt__p_wxEncodingConverter,
32073 &_swigt__p_wxEraseEvent,
32074 &_swigt__p_wxEvent,
32075 &_swigt__p_wxEvtHandler,
32076 &_swigt__p_wxFSFile,
32077 &_swigt__p_wxFileSystem,
32078 &_swigt__p_wxFlexGridSizer,
32079 &_swigt__p_wxFocusEvent,
32080 &_swigt__p_wxFont,
32081 &_swigt__p_wxFontList,
32082 &_swigt__p_wxFontMapper,
32083 &_swigt__p_wxGBSizerItem,
32084 &_swigt__p_wxGDIObjListBase,
32085 &_swigt__p_wxGDIObject,
32086 &_swigt__p_wxGIFHandler,
32087 &_swigt__p_wxGridBagSizer,
32088 &_swigt__p_wxGridSizer,
32089 &_swigt__p_wxICOHandler,
32090 &_swigt__p_wxIcon,
32091 &_swigt__p_wxIconBundle,
32092 &_swigt__p_wxIconLocation,
32093 &_swigt__p_wxIconizeEvent,
32094 &_swigt__p_wxIdleEvent,
32095 &_swigt__p_wxImage,
32096 &_swigt__p_wxImageHandler,
32097 &_swigt__p_wxImageList,
32098 &_swigt__p_wxIndividualLayoutConstraint,
32099 &_swigt__p_wxInitDialogEvent,
32100 &_swigt__p_wxJPEGHandler,
32101 &_swigt__p_wxKeyEvent,
32102 &_swigt__p_wxLanguageInfo,
32103 &_swigt__p_wxLayoutConstraints,
32104 &_swigt__p_wxLocale,
32105 &_swigt__p_wxMask,
32106 &_swigt__p_wxMaximizeEvent,
32107 &_swigt__p_wxMemoryDC,
32108 &_swigt__p_wxMenu,
32109 &_swigt__p_wxMenuBar,
32110 &_swigt__p_wxMenuEvent,
32111 &_swigt__p_wxMenuItem,
32112 &_swigt__p_wxMetaFile,
32113 &_swigt__p_wxMetaFileDC,
32114 &_swigt__p_wxMirrorDC,
32115 &_swigt__p_wxMouseCaptureChangedEvent,
32116 &_swigt__p_wxMouseCaptureLostEvent,
32117 &_swigt__p_wxMouseEvent,
32118 &_swigt__p_wxMoveEvent,
32119 &_swigt__p_wxNativeEncodingInfo,
32120 &_swigt__p_wxNativeFontInfo,
32121 &_swigt__p_wxNativePixelData,
32122 &_swigt__p_wxNativePixelData_Accessor,
32123 &_swigt__p_wxNavigationKeyEvent,
32124 &_swigt__p_wxNcPaintEvent,
32125 &_swigt__p_wxNotifyEvent,
32126 &_swigt__p_wxObject,
32127 &_swigt__p_wxPCXHandler,
32128 &_swigt__p_wxPNGHandler,
32129 &_swigt__p_wxPNMHandler,
32130 &_swigt__p_wxPaintDC,
32131 &_swigt__p_wxPaintEvent,
32132 &_swigt__p_wxPalette,
32133 &_swigt__p_wxPaletteChangedEvent,
32134 &_swigt__p_wxPaperSize,
32135 &_swigt__p_wxPen,
32136 &_swigt__p_wxPenList,
32137 &_swigt__p_wxPixelDataBase,
32138 &_swigt__p_wxPoint,
32139 &_swigt__p_wxPostScriptDC,
32140 &_swigt__p_wxPrintData,
32141 &_swigt__p_wxPrinterDC,
32142 &_swigt__p_wxPseudoDC,
32143 &_swigt__p_wxPyApp,
32144 &_swigt__p_wxPyCommandEvent,
32145 &_swigt__p_wxPyEvent,
32146 &_swigt__p_wxPyFontEnumerator,
32147 &_swigt__p_wxPyImageHandler,
32148 &_swigt__p_wxPyLocale,
32149 &_swigt__p_wxPySizer,
32150 &_swigt__p_wxPyValidator,
32151 &_swigt__p_wxQueryNewPaletteEvent,
32152 &_swigt__p_wxRect,
32153 &_swigt__p_wxRegion,
32154 &_swigt__p_wxRegionIterator,
32155 &_swigt__p_wxRendererNative,
32156 &_swigt__p_wxRendererVersion,
32157 &_swigt__p_wxScreenDC,
32158 &_swigt__p_wxScrollEvent,
32159 &_swigt__p_wxScrollWinEvent,
32160 &_swigt__p_wxSetCursorEvent,
32161 &_swigt__p_wxShowEvent,
32162 &_swigt__p_wxSize,
32163 &_swigt__p_wxSizeEvent,
32164 &_swigt__p_wxSizer,
32165 &_swigt__p_wxSizerItem,
32166 &_swigt__p_wxSplitterRenderParams,
32167 &_swigt__p_wxStaticBoxSizer,
32168 &_swigt__p_wxStdDialogButtonSizer,
32169 &_swigt__p_wxStockGDI,
32170 &_swigt__p_wxString,
32171 &_swigt__p_wxSysColourChangedEvent,
32172 &_swigt__p_wxTIFFHandler,
32173 &_swigt__p_wxUpdateUIEvent,
32174 &_swigt__p_wxValidator,
32175 &_swigt__p_wxWindow,
32176 &_swigt__p_wxWindowCreateEvent,
32177 &_swigt__p_wxWindowDC,
32178 &_swigt__p_wxWindowDestroyEvent,
32179 &_swigt__p_wxXPMHandler,
32180 };
32181
32182 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
32183 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
32184 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
32185 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
32186 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
32187 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
32188 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
32189 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
32190 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
32191 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
32192 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
32193 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
32194 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
32195 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}};
32196 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
32197 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
32198 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
32199 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
32200 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
32201 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
32202 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}};
32203 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
32204 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
32205 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
32206 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
32207 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
32208 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
32209 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
32210 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}};
32211 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}};
32212 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
32213 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
32214 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
32215 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
32216 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
32217 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
32218 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxPyLocale, _p_wxPyLocaleTo_p_wxLocale, 0, 0}, {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
32219 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
32220 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}};
32221 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
32222 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
32223 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
32224 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
32225 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
32226 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
32227 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
32228 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
32229 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
32230 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
32231 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
32232 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
32233 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
32234 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
32235 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
32236 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
32237 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
32238 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
32239 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
32240 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
32241 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
32242 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
32243 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
32244 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
32245 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
32246 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32247 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32248 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32249 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32250 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
32251 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
32252 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
32253 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
32254 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
32255 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
32256 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
32257 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
32258 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
32259 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
32260 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
32261 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
32262 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32263 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32264 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32265 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
32266 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
32267 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
32268 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
32269 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
32270 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
32271 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
32272 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
32273 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
32274 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
32275 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
32276 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
32277 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
32278 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
32279 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
32280 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
32281 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
32282 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
32283 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
32284 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
32285 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
32286 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
32287 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
32288 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
32289 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
32290 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
32291 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
32292 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
32293 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
32294 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
32295 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
32296 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
32297 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
32298 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
32299 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
32300 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
32301 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
32302 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
32303 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
32304 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
32305 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
32306 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
32307 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
32308 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
32309 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
32310 static swig_cast_info _swigc__p_wxPixelDataBase[] = { {&_swigt__p_wxPixelDataBase, 0, 0, 0}, {&_swigt__p_wxNativePixelData, _p_wxNativePixelDataTo_p_wxPixelDataBase, 0, 0}, {&_swigt__p_wxAlphaPixelData, _p_wxAlphaPixelDataTo_p_wxPixelDataBase, 0, 0},{0, 0, 0, 0}};
32311 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
32312 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
32313 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
32314 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
32315 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
32316 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
32317 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
32318 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
32319 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
32320 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
32321 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
32322 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
32323 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
32324 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
32325 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
32326 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
32327 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
32328 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}};
32329 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
32330
32331 static swig_cast_info *swig_cast_initial[] = {
32332 _swigc__p_buffer,
32333 _swigc__p_char,
32334 _swigc__p_double,
32335 _swigc__p_form_ops_t,
32336 _swigc__p_int,
32337 _swigc__p_unsigned_char,
32338 _swigc__p_unsigned_int,
32339 _swigc__p_unsigned_long,
32340 _swigc__p_wxANIHandler,
32341 _swigc__p_wxAcceleratorTable,
32342 _swigc__p_wxActivateEvent,
32343 _swigc__p_wxAlphaPixelData,
32344 _swigc__p_wxAlphaPixelData_Accessor,
32345 _swigc__p_wxBMPHandler,
32346 _swigc__p_wxBitmap,
32347 _swigc__p_wxBoxSizer,
32348 _swigc__p_wxBrush,
32349 _swigc__p_wxBrushList,
32350 _swigc__p_wxBufferedDC,
32351 _swigc__p_wxBufferedPaintDC,
32352 _swigc__p_wxCURHandler,
32353 _swigc__p_wxChar,
32354 _swigc__p_wxChildFocusEvent,
32355 _swigc__p_wxClientDC,
32356 _swigc__p_wxClipboardTextEvent,
32357 _swigc__p_wxCloseEvent,
32358 _swigc__p_wxColour,
32359 _swigc__p_wxColourDatabase,
32360 _swigc__p_wxCommandEvent,
32361 _swigc__p_wxContextMenuEvent,
32362 _swigc__p_wxControl,
32363 _swigc__p_wxControlWithItems,
32364 _swigc__p_wxCursor,
32365 _swigc__p_wxDC,
32366 _swigc__p_wxDash,
32367 _swigc__p_wxDateEvent,
32368 _swigc__p_wxDisplayChangedEvent,
32369 _swigc__p_wxDropFilesEvent,
32370 _swigc__p_wxDuplexMode,
32371 _swigc__p_wxEffects,
32372 _swigc__p_wxEncodingConverter,
32373 _swigc__p_wxEraseEvent,
32374 _swigc__p_wxEvent,
32375 _swigc__p_wxEvtHandler,
32376 _swigc__p_wxFSFile,
32377 _swigc__p_wxFileSystem,
32378 _swigc__p_wxFlexGridSizer,
32379 _swigc__p_wxFocusEvent,
32380 _swigc__p_wxFont,
32381 _swigc__p_wxFontList,
32382 _swigc__p_wxFontMapper,
32383 _swigc__p_wxGBSizerItem,
32384 _swigc__p_wxGDIObjListBase,
32385 _swigc__p_wxGDIObject,
32386 _swigc__p_wxGIFHandler,
32387 _swigc__p_wxGridBagSizer,
32388 _swigc__p_wxGridSizer,
32389 _swigc__p_wxICOHandler,
32390 _swigc__p_wxIcon,
32391 _swigc__p_wxIconBundle,
32392 _swigc__p_wxIconLocation,
32393 _swigc__p_wxIconizeEvent,
32394 _swigc__p_wxIdleEvent,
32395 _swigc__p_wxImage,
32396 _swigc__p_wxImageHandler,
32397 _swigc__p_wxImageList,
32398 _swigc__p_wxIndividualLayoutConstraint,
32399 _swigc__p_wxInitDialogEvent,
32400 _swigc__p_wxJPEGHandler,
32401 _swigc__p_wxKeyEvent,
32402 _swigc__p_wxLanguageInfo,
32403 _swigc__p_wxLayoutConstraints,
32404 _swigc__p_wxLocale,
32405 _swigc__p_wxMask,
32406 _swigc__p_wxMaximizeEvent,
32407 _swigc__p_wxMemoryDC,
32408 _swigc__p_wxMenu,
32409 _swigc__p_wxMenuBar,
32410 _swigc__p_wxMenuEvent,
32411 _swigc__p_wxMenuItem,
32412 _swigc__p_wxMetaFile,
32413 _swigc__p_wxMetaFileDC,
32414 _swigc__p_wxMirrorDC,
32415 _swigc__p_wxMouseCaptureChangedEvent,
32416 _swigc__p_wxMouseCaptureLostEvent,
32417 _swigc__p_wxMouseEvent,
32418 _swigc__p_wxMoveEvent,
32419 _swigc__p_wxNativeEncodingInfo,
32420 _swigc__p_wxNativeFontInfo,
32421 _swigc__p_wxNativePixelData,
32422 _swigc__p_wxNativePixelData_Accessor,
32423 _swigc__p_wxNavigationKeyEvent,
32424 _swigc__p_wxNcPaintEvent,
32425 _swigc__p_wxNotifyEvent,
32426 _swigc__p_wxObject,
32427 _swigc__p_wxPCXHandler,
32428 _swigc__p_wxPNGHandler,
32429 _swigc__p_wxPNMHandler,
32430 _swigc__p_wxPaintDC,
32431 _swigc__p_wxPaintEvent,
32432 _swigc__p_wxPalette,
32433 _swigc__p_wxPaletteChangedEvent,
32434 _swigc__p_wxPaperSize,
32435 _swigc__p_wxPen,
32436 _swigc__p_wxPenList,
32437 _swigc__p_wxPixelDataBase,
32438 _swigc__p_wxPoint,
32439 _swigc__p_wxPostScriptDC,
32440 _swigc__p_wxPrintData,
32441 _swigc__p_wxPrinterDC,
32442 _swigc__p_wxPseudoDC,
32443 _swigc__p_wxPyApp,
32444 _swigc__p_wxPyCommandEvent,
32445 _swigc__p_wxPyEvent,
32446 _swigc__p_wxPyFontEnumerator,
32447 _swigc__p_wxPyImageHandler,
32448 _swigc__p_wxPyLocale,
32449 _swigc__p_wxPySizer,
32450 _swigc__p_wxPyValidator,
32451 _swigc__p_wxQueryNewPaletteEvent,
32452 _swigc__p_wxRect,
32453 _swigc__p_wxRegion,
32454 _swigc__p_wxRegionIterator,
32455 _swigc__p_wxRendererNative,
32456 _swigc__p_wxRendererVersion,
32457 _swigc__p_wxScreenDC,
32458 _swigc__p_wxScrollEvent,
32459 _swigc__p_wxScrollWinEvent,
32460 _swigc__p_wxSetCursorEvent,
32461 _swigc__p_wxShowEvent,
32462 _swigc__p_wxSize,
32463 _swigc__p_wxSizeEvent,
32464 _swigc__p_wxSizer,
32465 _swigc__p_wxSizerItem,
32466 _swigc__p_wxSplitterRenderParams,
32467 _swigc__p_wxStaticBoxSizer,
32468 _swigc__p_wxStdDialogButtonSizer,
32469 _swigc__p_wxStockGDI,
32470 _swigc__p_wxString,
32471 _swigc__p_wxSysColourChangedEvent,
32472 _swigc__p_wxTIFFHandler,
32473 _swigc__p_wxUpdateUIEvent,
32474 _swigc__p_wxValidator,
32475 _swigc__p_wxWindow,
32476 _swigc__p_wxWindowCreateEvent,
32477 _swigc__p_wxWindowDC,
32478 _swigc__p_wxWindowDestroyEvent,
32479 _swigc__p_wxXPMHandler,
32480 };
32481
32482
32483 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
32484
32485 static swig_const_info swig_const_table[] = {
32486 {0, 0, 0, 0.0, 0, 0}};
32487
32488 #ifdef __cplusplus
32489 }
32490 #endif
32491 /* -----------------------------------------------------------------------------
32492 * Type initialization:
32493 * This problem is tough by the requirement that no dynamic
32494 * memory is used. Also, since swig_type_info structures store pointers to
32495 * swig_cast_info structures and swig_cast_info structures store pointers back
32496 * to swig_type_info structures, we need some lookup code at initialization.
32497 * The idea is that swig generates all the structures that are needed.
32498 * The runtime then collects these partially filled structures.
32499 * The SWIG_InitializeModule function takes these initial arrays out of
32500 * swig_module, and does all the lookup, filling in the swig_module.types
32501 * array with the correct data and linking the correct swig_cast_info
32502 * structures together.
32503 *
32504 * The generated swig_type_info structures are assigned staticly to an initial
32505 * array. We just loop though that array, and handle each type individually.
32506 * First we lookup if this type has been already loaded, and if so, use the
32507 * loaded structure instead of the generated one. Then we have to fill in the
32508 * cast linked list. The cast data is initially stored in something like a
32509 * two-dimensional array. Each row corresponds to a type (there are the same
32510 * number of rows as there are in the swig_type_initial array). Each entry in
32511 * a column is one of the swig_cast_info structures for that type.
32512 * The cast_initial array is actually an array of arrays, because each row has
32513 * a variable number of columns. So to actually build the cast linked list,
32514 * we find the array of casts associated with the type, and loop through it
32515 * adding the casts to the list. The one last trick we need to do is making
32516 * sure the type pointer in the swig_cast_info struct is correct.
32517 *
32518 * First off, we lookup the cast->type name to see if it is already loaded.
32519 * There are three cases to handle:
32520 * 1) If the cast->type has already been loaded AND the type we are adding
32521 * casting info to has not been loaded (it is in this module), THEN we
32522 * replace the cast->type pointer with the type pointer that has already
32523 * been loaded.
32524 * 2) If BOTH types (the one we are adding casting info to, and the
32525 * cast->type) are loaded, THEN the cast info has already been loaded by
32526 * the previous module so we just ignore it.
32527 * 3) Finally, if cast->type has not already been loaded, then we add that
32528 * swig_cast_info to the linked list (because the cast->type) pointer will
32529 * be correct.
32530 * ----------------------------------------------------------------------------- */
32531
32532 #ifdef __cplusplus
32533 extern "C" {
32534 #if 0
32535 } /* c-mode */
32536 #endif
32537 #endif
32538
32539 #if 0
32540 #define SWIGRUNTIME_DEBUG
32541 #endif
32542
32543 SWIGRUNTIME void
32544 SWIG_InitializeModule(void *clientdata) {
32545 size_t i;
32546 swig_module_info *module_head;
32547 static int init_run = 0;
32548
32549 clientdata = clientdata;
32550
32551 if (init_run) return;
32552 init_run = 1;
32553
32554 /* Initialize the swig_module */
32555 swig_module.type_initial = swig_type_initial;
32556 swig_module.cast_initial = swig_cast_initial;
32557
32558 /* Try and load any already created modules */
32559 module_head = SWIG_GetModule(clientdata);
32560 if (module_head) {
32561 swig_module.next = module_head->next;
32562 module_head->next = &swig_module;
32563 } else {
32564 /* This is the first module loaded */
32565 swig_module.next = &swig_module;
32566 SWIG_SetModule(clientdata, &swig_module);
32567 }
32568
32569 /* Now work on filling in swig_module.types */
32570 #ifdef SWIGRUNTIME_DEBUG
32571 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
32572 #endif
32573 for (i = 0; i < swig_module.size; ++i) {
32574 swig_type_info *type = 0;
32575 swig_type_info *ret;
32576 swig_cast_info *cast;
32577
32578 #ifdef SWIGRUNTIME_DEBUG
32579 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
32580 #endif
32581
32582 /* if there is another module already loaded */
32583 if (swig_module.next != &swig_module) {
32584 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
32585 }
32586 if (type) {
32587 /* Overwrite clientdata field */
32588 #ifdef SWIGRUNTIME_DEBUG
32589 printf("SWIG_InitializeModule: found type %s\n", type->name);
32590 #endif
32591 if (swig_module.type_initial[i]->clientdata) {
32592 type->clientdata = swig_module.type_initial[i]->clientdata;
32593 #ifdef SWIGRUNTIME_DEBUG
32594 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
32595 #endif
32596 }
32597 } else {
32598 type = swig_module.type_initial[i];
32599 }
32600
32601 /* Insert casting types */
32602 cast = swig_module.cast_initial[i];
32603 while (cast->type) {
32604 /* Don't need to add information already in the list */
32605 ret = 0;
32606 #ifdef SWIGRUNTIME_DEBUG
32607 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
32608 #endif
32609 if (swig_module.next != &swig_module) {
32610 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
32611 #ifdef SWIGRUNTIME_DEBUG
32612 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
32613 #endif
32614 }
32615 if (ret) {
32616 if (type == swig_module.type_initial[i]) {
32617 #ifdef SWIGRUNTIME_DEBUG
32618 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
32619 #endif
32620 cast->type = ret;
32621 ret = 0;
32622 } else {
32623 /* Check for casting already in the list */
32624 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
32625 #ifdef SWIGRUNTIME_DEBUG
32626 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
32627 #endif
32628 if (!ocast) ret = 0;
32629 }
32630 }
32631
32632 if (!ret) {
32633 #ifdef SWIGRUNTIME_DEBUG
32634 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
32635 #endif
32636 if (type->cast) {
32637 type->cast->prev = cast;
32638 cast->next = type->cast;
32639 }
32640 type->cast = cast;
32641 }
32642 cast++;
32643 }
32644 /* Set entry in modules->types array equal to the type */
32645 swig_module.types[i] = type;
32646 }
32647 swig_module.types[i] = 0;
32648
32649 #ifdef SWIGRUNTIME_DEBUG
32650 printf("**** SWIG_InitializeModule: Cast List ******\n");
32651 for (i = 0; i < swig_module.size; ++i) {
32652 int j = 0;
32653 swig_cast_info *cast = swig_module.cast_initial[i];
32654 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
32655 while (cast->type) {
32656 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
32657 cast++;
32658 ++j;
32659 }
32660 printf("---- Total casts: %d\n",j);
32661 }
32662 printf("**** SWIG_InitializeModule: Cast List ******\n");
32663 #endif
32664 }
32665
32666 /* This function will propagate the clientdata field of type to
32667 * any new swig_type_info structures that have been added into the list
32668 * of equivalent types. It is like calling
32669 * SWIG_TypeClientData(type, clientdata) a second time.
32670 */
32671 SWIGRUNTIME void
32672 SWIG_PropagateClientData(void) {
32673 size_t i;
32674 swig_cast_info *equiv;
32675 static int init_run = 0;
32676
32677 if (init_run) return;
32678 init_run = 1;
32679
32680 for (i = 0; i < swig_module.size; i++) {
32681 if (swig_module.types[i]->clientdata) {
32682 equiv = swig_module.types[i]->cast;
32683 while (equiv) {
32684 if (!equiv->converter) {
32685 if (equiv->type && !equiv->type->clientdata)
32686 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
32687 }
32688 equiv = equiv->next;
32689 }
32690 }
32691 }
32692 }
32693
32694 #ifdef __cplusplus
32695 #if 0
32696 {
32697 /* c-mode */
32698 #endif
32699 }
32700 #endif
32701
32702
32703
32704 #ifdef __cplusplus
32705 extern "C" {
32706 #endif
32707
32708 /* Python-specific SWIG API */
32709 #define SWIG_newvarlink() SWIG_Python_newvarlink()
32710 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
32711 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
32712
32713 /* -----------------------------------------------------------------------------
32714 * global variable support code.
32715 * ----------------------------------------------------------------------------- */
32716
32717 typedef struct swig_globalvar {
32718 char *name; /* Name of global variable */
32719 PyObject *(*get_attr)(void); /* Return the current value */
32720 int (*set_attr)(PyObject *); /* Set the value */
32721 struct swig_globalvar *next;
32722 } swig_globalvar;
32723
32724 typedef struct swig_varlinkobject {
32725 PyObject_HEAD
32726 swig_globalvar *vars;
32727 } swig_varlinkobject;
32728
32729 SWIGINTERN PyObject *
32730 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
32731 return PyString_FromString("<Swig global variables>");
32732 }
32733
32734 SWIGINTERN PyObject *
32735 swig_varlink_str(swig_varlinkobject *v) {
32736 PyObject *str = PyString_FromString("(");
32737 swig_globalvar *var;
32738 for (var = v->vars; var; var=var->next) {
32739 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
32740 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
32741 }
32742 PyString_ConcatAndDel(&str,PyString_FromString(")"));
32743 return str;
32744 }
32745
32746 SWIGINTERN int
32747 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
32748 PyObject *str = swig_varlink_str(v);
32749 fprintf(fp,"Swig global variables ");
32750 fprintf(fp,"%s\n", PyString_AsString(str));
32751 Py_DECREF(str);
32752 return 0;
32753 }
32754
32755 SWIGINTERN void
32756 swig_varlink_dealloc(swig_varlinkobject *v) {
32757 swig_globalvar *var = v->vars;
32758 while (var) {
32759 swig_globalvar *n = var->next;
32760 free(var->name);
32761 free(var);
32762 var = n;
32763 }
32764 }
32765
32766 SWIGINTERN PyObject *
32767 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
32768 PyObject *res = NULL;
32769 swig_globalvar *var = v->vars;
32770 while (var) {
32771 if (strcmp(var->name,n) == 0) {
32772 res = (*var->get_attr)();
32773 break;
32774 }
32775 var = var->next;
32776 }
32777 if (res == NULL && !PyErr_Occurred()) {
32778 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
32779 }
32780 return res;
32781 }
32782
32783 SWIGINTERN int
32784 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
32785 int res = 1;
32786 swig_globalvar *var = v->vars;
32787 while (var) {
32788 if (strcmp(var->name,n) == 0) {
32789 res = (*var->set_attr)(p);
32790 break;
32791 }
32792 var = var->next;
32793 }
32794 if (res == 1 && !PyErr_Occurred()) {
32795 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
32796 }
32797 return res;
32798 }
32799
32800 SWIGINTERN PyTypeObject*
32801 swig_varlink_type(void) {
32802 static char varlink__doc__[] = "Swig var link object";
32803 static PyTypeObject varlink_type;
32804 static int type_init = 0;
32805 if (!type_init) {
32806 const PyTypeObject tmp
32807 = {
32808 PyObject_HEAD_INIT(NULL)
32809 0, /* Number of items in variable part (ob_size) */
32810 (char *)"swigvarlink", /* Type name (tp_name) */
32811 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
32812 0, /* Itemsize (tp_itemsize) */
32813 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
32814 (printfunc) swig_varlink_print, /* Print (tp_print) */
32815 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
32816 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
32817 0, /* tp_compare */
32818 (reprfunc) swig_varlink_repr, /* tp_repr */
32819 0, /* tp_as_number */
32820 0, /* tp_as_sequence */
32821 0, /* tp_as_mapping */
32822 0, /* tp_hash */
32823 0, /* tp_call */
32824 (reprfunc)swig_varlink_str, /* tp_str */
32825 0, /* tp_getattro */
32826 0, /* tp_setattro */
32827 0, /* tp_as_buffer */
32828 0, /* tp_flags */
32829 varlink__doc__, /* tp_doc */
32830 0, /* tp_traverse */
32831 0, /* tp_clear */
32832 0, /* tp_richcompare */
32833 0, /* tp_weaklistoffset */
32834 #if PY_VERSION_HEX >= 0x02020000
32835 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
32836 #endif
32837 #if PY_VERSION_HEX >= 0x02030000
32838 0, /* tp_del */
32839 #endif
32840 #ifdef COUNT_ALLOCS
32841 0,0,0,0 /* tp_alloc -> tp_next */
32842 #endif
32843 };
32844 varlink_type = tmp;
32845 varlink_type.ob_type = &PyType_Type;
32846 type_init = 1;
32847 }
32848 return &varlink_type;
32849 }
32850
32851 /* Create a variable linking object for use later */
32852 SWIGINTERN PyObject *
32853 SWIG_Python_newvarlink(void) {
32854 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
32855 if (result) {
32856 result->vars = 0;
32857 }
32858 return ((PyObject*) result);
32859 }
32860
32861 SWIGINTERN void
32862 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
32863 swig_varlinkobject *v = (swig_varlinkobject *) p;
32864 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
32865 if (gv) {
32866 size_t size = strlen(name)+1;
32867 gv->name = (char *)malloc(size);
32868 if (gv->name) {
32869 strncpy(gv->name,name,size);
32870 gv->get_attr = get_attr;
32871 gv->set_attr = set_attr;
32872 gv->next = v->vars;
32873 }
32874 }
32875 v->vars = gv;
32876 }
32877
32878 SWIGINTERN PyObject *
32879 SWIG_globals() {
32880 static PyObject *_SWIG_globals = 0;
32881 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
32882 return _SWIG_globals;
32883 }
32884
32885 /* -----------------------------------------------------------------------------
32886 * constants/methods manipulation
32887 * ----------------------------------------------------------------------------- */
32888
32889 /* Install Constants */
32890 SWIGINTERN void
32891 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
32892 PyObject *obj = 0;
32893 size_t i;
32894 for (i = 0; constants[i].type; ++i) {
32895 switch(constants[i].type) {
32896 case SWIG_PY_POINTER:
32897 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
32898 break;
32899 case SWIG_PY_BINARY:
32900 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
32901 break;
32902 default:
32903 obj = 0;
32904 break;
32905 }
32906 if (obj) {
32907 PyDict_SetItemString(d, constants[i].name, obj);
32908 Py_DECREF(obj);
32909 }
32910 }
32911 }
32912
32913 /* -----------------------------------------------------------------------------*/
32914 /* Fix SwigMethods to carry the callback ptrs when needed */
32915 /* -----------------------------------------------------------------------------*/
32916
32917 SWIGINTERN void
32918 SWIG_Python_FixMethods(PyMethodDef *methods,
32919 swig_const_info *const_table,
32920 swig_type_info **types,
32921 swig_type_info **types_initial) {
32922 size_t i;
32923 for (i = 0; methods[i].ml_name; ++i) {
32924 const char *c = methods[i].ml_doc;
32925 if (c && (c = strstr(c, "swig_ptr: "))) {
32926 int j;
32927 swig_const_info *ci = 0;
32928 const char *name = c + 10;
32929 for (j = 0; const_table[j].type; ++j) {
32930 if (strncmp(const_table[j].name, name,
32931 strlen(const_table[j].name)) == 0) {
32932 ci = &(const_table[j]);
32933 break;
32934 }
32935 }
32936 if (ci) {
32937 size_t shift = (ci->ptype) - types;
32938 swig_type_info *ty = types_initial[shift];
32939 size_t ldoc = (c - methods[i].ml_doc);
32940 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
32941 char *ndoc = (char*)malloc(ldoc + lptr + 10);
32942 if (ndoc) {
32943 char *buff = ndoc;
32944 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
32945 if (ptr) {
32946 strncpy(buff, methods[i].ml_doc, ldoc);
32947 buff += ldoc;
32948 strncpy(buff, "swig_ptr: ", 10);
32949 buff += 10;
32950 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
32951 methods[i].ml_doc = ndoc;
32952 }
32953 }
32954 }
32955 }
32956 }
32957 }
32958
32959 #ifdef __cplusplus
32960 }
32961 #endif
32962
32963 /* -----------------------------------------------------------------------------*
32964 * Partial Init method
32965 * -----------------------------------------------------------------------------*/
32966
32967 #ifdef __cplusplus
32968 extern "C"
32969 #endif
32970 SWIGEXPORT void SWIG_init(void) {
32971 PyObject *m, *d;
32972
32973 /* Fix SwigMethods to carry the callback ptrs when needed */
32974 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
32975
32976 m = Py_InitModule((char *) SWIG_name, SwigMethods);
32977 d = PyModule_GetDict(m);
32978
32979 SWIG_InitializeModule(0);
32980 SWIG_InstallConstants(d,swig_const_table);
32981
32982
32983 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
32984 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
32985 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
32986 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
32987 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
32988 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
32989 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
32990 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
32991 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
32992 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
32993 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
32994 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
32995 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
32996 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
32997 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
32998 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
32999 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
33000 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
33001 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
33002 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
33003 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
33004 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
33005 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
33006 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
33007 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
33008 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
33009 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
33010 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
33011 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
33012 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
33013 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
33014 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
33015 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
33016 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
33017 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
33018 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
33019 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
33020 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
33021 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
33022 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
33023 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
33024 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
33025 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
33026 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
33027 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
33028 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
33029 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
33030 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
33031 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
33032 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
33033 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
33034 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
33035 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
33036 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
33037 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
33038 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
33039 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
33040 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
33041 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
33042 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
33043 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
33044 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
33045 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
33046 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
33047 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
33048 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
33049 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
33050 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
33051 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
33052 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
33053 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
33054 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
33055 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
33056 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
33057 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
33058 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
33059 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
33060 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
33061 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
33062 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
33063 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
33064 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
33065 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
33066 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
33067 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
33068 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
33069 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
33070 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
33071 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
33072 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
33073 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
33074 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
33075 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
33076 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
33077 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
33078 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
33079 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
33080 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
33081 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
33082 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
33083 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
33084 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
33085 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
33086 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
33087 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
33088 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
33089 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
33090 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
33091 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
33092 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
33093 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
33094 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
33095 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
33096 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
33097 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
33098 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
33099 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
33100 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
33101 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
33102 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
33103 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
33104 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
33105 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
33106 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
33107 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
33108 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
33109 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
33110 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
33111 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
33112 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
33113 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
33114 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
33115
33116 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
33117
33118 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
33119 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
33120 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
33121 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
33122 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
33123 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
33124 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
33125 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
33126 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
33127 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
33128 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
33129 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
33130 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
33131 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
33132 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
33133 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
33134 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
33135 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
33136 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
33137 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
33138 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
33139 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
33140 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
33141 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
33142 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
33143 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
33144 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
33145 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
33146 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
33147 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
33148 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
33149 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
33150 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
33151 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
33152 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
33153 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
33154 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
33155 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
33156 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
33157 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
33158 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
33159 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
33160 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
33161 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
33162 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
33163 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
33164 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
33165 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
33166 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
33167 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
33168 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
33169 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
33170 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
33171 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
33172 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
33173 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
33174 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
33175 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
33176 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
33177 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
33178 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
33179 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
33180 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
33181 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
33182 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
33183 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
33184 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
33185 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
33186 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
33187 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
33188 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
33189 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
33190 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
33191 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
33192 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
33193 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
33194 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
33195 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
33196 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
33197 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
33198 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
33199 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
33200 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
33201 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
33202 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
33203 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
33204 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
33205 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
33206 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
33207 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
33208 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
33209 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
33210 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
33211 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
33212 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
33213 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
33214 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
33215 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
33216 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
33217 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
33218 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
33219 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
33220 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
33221 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
33222 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
33223 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
33224 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
33225 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
33226 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
33227 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
33228 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
33229 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
33230 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
33231 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
33232 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
33233 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
33234 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
33235 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
33236 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
33237 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
33238 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
33239 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
33240 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
33241 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
33242 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
33243 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
33244 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
33245 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
33246 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
33247 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
33248 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
33249 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
33250 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
33251 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
33252 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
33253 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
33254 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
33255 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
33256 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
33257 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
33258 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
33259 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
33260 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
33261 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
33262 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
33263 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
33264 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
33265 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
33266 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
33267 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
33268 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
33269 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
33270 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
33271 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
33272 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
33273 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
33274 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
33275 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
33276 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
33277 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
33278 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
33279 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
33280 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
33281 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
33282 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
33283 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
33284 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
33285 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
33286 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
33287 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
33288 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
33289 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
33290 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
33291 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
33292 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
33293 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
33294 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
33295 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
33296 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
33297 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
33298 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
33299 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
33300 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
33301 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
33302 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
33303 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
33304 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
33305 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
33306 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
33307 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
33308 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
33309 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
33310 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
33311 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
33312 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
33313 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
33314 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
33315 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
33316 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
33317 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
33318 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
33319 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
33320 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
33321 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
33322 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
33323 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
33324 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
33325 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
33326 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
33327 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
33328 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
33329 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
33330 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
33331 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
33332 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
33333 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
33334 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
33335 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
33336 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
33337 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
33338 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
33339 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
33340 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
33341 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
33342 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
33343 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
33344 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
33345 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
33346 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
33347 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
33348 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
33349 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
33350 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
33351 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
33352 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
33353 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
33354 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
33355 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
33356 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
33357 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
33358 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
33359 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
33360 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
33361 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
33362 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
33363 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
33364 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
33365 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
33366 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
33367 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
33368 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
33369 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
33370 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
33371 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
33372 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
33373 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
33374 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
33375 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
33376 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
33377 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
33378 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
33379 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
33380 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
33381 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
33382 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
33383 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
33384 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
33385 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
33386 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
33387 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
33388 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
33389 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
33390 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
33391 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
33392 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
33393 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
33394 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
33395 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
33396 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
33397 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
33398 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
33399 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
33400 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
33401 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
33402 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
33403 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
33404 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
33405 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
33406 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
33407 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
33408 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
33409 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
33410 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
33411 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
33412 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
33413 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
33414 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
33415 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
33416 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
33417 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
33418 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
33419 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
33420 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
33421 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
33422 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
33423 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
33424 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
33425 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
33426 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
33427 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
33428 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
33429 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33430 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
33431 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
33432
33433 // Work around a chicken/egg problem in drawlist.cpp
33434 wxPyDrawList_SetAPIPtr();
33435
33436 }
33437