]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
Update GraphcsContext/Path dummy classes
[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_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481 #define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482 #define SWIGTYPE_p_wxBitmap swig_types[16]
2483 #define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484 #define SWIGTYPE_p_wxBrush swig_types[18]
2485 #define SWIGTYPE_p_wxBrushList swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488 #define SWIGTYPE_p_wxCURHandler swig_types[22]
2489 #define SWIGTYPE_p_wxChar swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxClientDC swig_types[25]
2492 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493 #define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494 #define SWIGTYPE_p_wxColor swig_types[28]
2495 #define SWIGTYPE_p_wxColour swig_types[29]
2496 #define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497 #define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498 #define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499 #define SWIGTYPE_p_wxControl swig_types[33]
2500 #define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501 #define SWIGTYPE_p_wxCursor swig_types[35]
2502 #define SWIGTYPE_p_wxDC swig_types[36]
2503 #define SWIGTYPE_p_wxDCOverlay swig_types[37]
2504 #define SWIGTYPE_p_wxDash swig_types[38]
2505 #define SWIGTYPE_p_wxDateEvent swig_types[39]
2506 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[40]
2507 #define SWIGTYPE_p_wxDropFilesEvent swig_types[41]
2508 #define SWIGTYPE_p_wxDuplexMode swig_types[42]
2509 #define SWIGTYPE_p_wxEffects swig_types[43]
2510 #define SWIGTYPE_p_wxEncodingConverter swig_types[44]
2511 #define SWIGTYPE_p_wxEraseEvent swig_types[45]
2512 #define SWIGTYPE_p_wxEvent swig_types[46]
2513 #define SWIGTYPE_p_wxEvtHandler swig_types[47]
2514 #define SWIGTYPE_p_wxFSFile swig_types[48]
2515 #define SWIGTYPE_p_wxFileSystem swig_types[49]
2516 #define SWIGTYPE_p_wxFlexGridSizer swig_types[50]
2517 #define SWIGTYPE_p_wxFocusEvent swig_types[51]
2518 #define SWIGTYPE_p_wxFont swig_types[52]
2519 #define SWIGTYPE_p_wxFontList swig_types[53]
2520 #define SWIGTYPE_p_wxFontMapper swig_types[54]
2521 #define SWIGTYPE_p_wxGBSizerItem swig_types[55]
2522 #define SWIGTYPE_p_wxGCDC swig_types[56]
2523 #define SWIGTYPE_p_wxGDIObjListBase swig_types[57]
2524 #define SWIGTYPE_p_wxGDIObject swig_types[58]
2525 #define SWIGTYPE_p_wxGIFHandler swig_types[59]
2526 #define SWIGTYPE_p_wxGraphicsContext swig_types[60]
2527 #define SWIGTYPE_p_wxGraphicsPath swig_types[61]
2528 #define SWIGTYPE_p_wxGridBagSizer swig_types[62]
2529 #define SWIGTYPE_p_wxGridSizer swig_types[63]
2530 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[64]
2531 #define SWIGTYPE_p_wxICOHandler swig_types[65]
2532 #define SWIGTYPE_p_wxIcon swig_types[66]
2533 #define SWIGTYPE_p_wxIconBundle swig_types[67]
2534 #define SWIGTYPE_p_wxIconLocation swig_types[68]
2535 #define SWIGTYPE_p_wxIconizeEvent swig_types[69]
2536 #define SWIGTYPE_p_wxIdleEvent swig_types[70]
2537 #define SWIGTYPE_p_wxImage swig_types[71]
2538 #define SWIGTYPE_p_wxImageHandler swig_types[72]
2539 #define SWIGTYPE_p_wxImageList swig_types[73]
2540 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[74]
2541 #define SWIGTYPE_p_wxInitDialogEvent swig_types[75]
2542 #define SWIGTYPE_p_wxJPEGHandler swig_types[76]
2543 #define SWIGTYPE_p_wxKeyEvent swig_types[77]
2544 #define SWIGTYPE_p_wxLanguageInfo swig_types[78]
2545 #define SWIGTYPE_p_wxLayoutConstraints swig_types[79]
2546 #define SWIGTYPE_p_wxLocale swig_types[80]
2547 #define SWIGTYPE_p_wxMask swig_types[81]
2548 #define SWIGTYPE_p_wxMaximizeEvent swig_types[82]
2549 #define SWIGTYPE_p_wxMemoryDC swig_types[83]
2550 #define SWIGTYPE_p_wxMenu swig_types[84]
2551 #define SWIGTYPE_p_wxMenuBar swig_types[85]
2552 #define SWIGTYPE_p_wxMenuEvent swig_types[86]
2553 #define SWIGTYPE_p_wxMenuItem swig_types[87]
2554 #define SWIGTYPE_p_wxMetaFile swig_types[88]
2555 #define SWIGTYPE_p_wxMetaFileDC swig_types[89]
2556 #define SWIGTYPE_p_wxMirrorDC swig_types[90]
2557 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[91]
2558 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMouseEvent swig_types[93]
2560 #define SWIGTYPE_p_wxMoveEvent swig_types[94]
2561 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[95]
2562 #define SWIGTYPE_p_wxNativeFontInfo swig_types[96]
2563 #define SWIGTYPE_p_wxNativePixelData swig_types[97]
2564 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[98]
2565 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[99]
2566 #define SWIGTYPE_p_wxNcPaintEvent swig_types[100]
2567 #define SWIGTYPE_p_wxNotifyEvent swig_types[101]
2568 #define SWIGTYPE_p_wxObject swig_types[102]
2569 #define SWIGTYPE_p_wxOverlay swig_types[103]
2570 #define SWIGTYPE_p_wxPCXHandler swig_types[104]
2571 #define SWIGTYPE_p_wxPNGHandler swig_types[105]
2572 #define SWIGTYPE_p_wxPNMHandler swig_types[106]
2573 #define SWIGTYPE_p_wxPaintDC swig_types[107]
2574 #define SWIGTYPE_p_wxPaintEvent swig_types[108]
2575 #define SWIGTYPE_p_wxPalette swig_types[109]
2576 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[110]
2577 #define SWIGTYPE_p_wxPaperSize swig_types[111]
2578 #define SWIGTYPE_p_wxPen swig_types[112]
2579 #define SWIGTYPE_p_wxPenList swig_types[113]
2580 #define SWIGTYPE_p_wxPixelDataBase swig_types[114]
2581 #define SWIGTYPE_p_wxPoint swig_types[115]
2582 #define SWIGTYPE_p_wxPoint2D swig_types[116]
2583 #define SWIGTYPE_p_wxPostScriptDC swig_types[117]
2584 #define SWIGTYPE_p_wxPrintData swig_types[118]
2585 #define SWIGTYPE_p_wxPrinterDC swig_types[119]
2586 #define SWIGTYPE_p_wxPseudoDC swig_types[120]
2587 #define SWIGTYPE_p_wxPyApp swig_types[121]
2588 #define SWIGTYPE_p_wxPyCommandEvent swig_types[122]
2589 #define SWIGTYPE_p_wxPyEvent swig_types[123]
2590 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[124]
2591 #define SWIGTYPE_p_wxPyImageHandler swig_types[125]
2592 #define SWIGTYPE_p_wxPyLocale swig_types[126]
2593 #define SWIGTYPE_p_wxPySizer swig_types[127]
2594 #define SWIGTYPE_p_wxPyValidator swig_types[128]
2595 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129]
2596 #define SWIGTYPE_p_wxRect swig_types[130]
2597 #define SWIGTYPE_p_wxRegion swig_types[131]
2598 #define SWIGTYPE_p_wxRegionIterator swig_types[132]
2599 #define SWIGTYPE_p_wxRendererNative swig_types[133]
2600 #define SWIGTYPE_p_wxRendererVersion swig_types[134]
2601 #define SWIGTYPE_p_wxScreenDC swig_types[135]
2602 #define SWIGTYPE_p_wxScrollEvent swig_types[136]
2603 #define SWIGTYPE_p_wxScrollWinEvent swig_types[137]
2604 #define SWIGTYPE_p_wxSetCursorEvent swig_types[138]
2605 #define SWIGTYPE_p_wxShowEvent swig_types[139]
2606 #define SWIGTYPE_p_wxSize swig_types[140]
2607 #define SWIGTYPE_p_wxSizeEvent swig_types[141]
2608 #define SWIGTYPE_p_wxSizer swig_types[142]
2609 #define SWIGTYPE_p_wxSizerItem swig_types[143]
2610 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[144]
2611 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[145]
2612 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[146]
2613 #define SWIGTYPE_p_wxStockGDI swig_types[147]
2614 #define SWIGTYPE_p_wxString swig_types[148]
2615 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[149]
2616 #define SWIGTYPE_p_wxTIFFHandler swig_types[150]
2617 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[151]
2618 #define SWIGTYPE_p_wxValidator swig_types[152]
2619 #define SWIGTYPE_p_wxWindow swig_types[153]
2620 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[154]
2621 #define SWIGTYPE_p_wxWindowDC swig_types[155]
2622 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[156]
2623 #define SWIGTYPE_p_wxXPMHandler swig_types[157]
2624 static swig_type_info *swig_types[159];
2625 static swig_module_info swig_module = {swig_types, 158, 0, 0, 0, 0};
2626 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2627 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2628
2629 /* -------- TYPES TABLE (END) -------- */
2630
2631 #if (PY_VERSION_HEX <= 0x02000000)
2632 # if !defined(SWIG_PYTHON_CLASSIC)
2633 # error "This python version requires to use swig with the '-classic' option"
2634 # endif
2635 #endif
2636 #if (PY_VERSION_HEX <= 0x02020000)
2637 # error "This python version requires to use swig with the '-nomodern' option"
2638 #endif
2639 #if (PY_VERSION_HEX <= 0x02020000)
2640 # error "This python version requires to use swig with the '-nomodernargs' option"
2641 #endif
2642 #ifndef METH_O
2643 # error "This python version requires to use swig with the '-nofastunpack' option"
2644 #endif
2645
2646 /*-----------------------------------------------
2647 @(target):= _gdi_.so
2648 ------------------------------------------------*/
2649 #define SWIG_init init_gdi_
2650
2651 #define SWIG_name "_gdi_"
2652
2653 #define SWIGVERSION 0x010329
2654
2655
2656 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2657 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2658
2659
2660 #include <stdexcept>
2661
2662
2663 namespace swig {
2664 class PyObject_ptr {
2665 protected:
2666 PyObject *_obj;
2667
2668 public:
2669 PyObject_ptr() :_obj(0)
2670 {
2671 }
2672
2673 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2674 {
2675 Py_XINCREF(_obj);
2676 }
2677
2678 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2679 {
2680 if (initial_ref) Py_XINCREF(_obj);
2681 }
2682
2683 PyObject_ptr & operator=(const PyObject_ptr& item)
2684 {
2685 Py_XINCREF(item._obj);
2686 Py_XDECREF(_obj);
2687 _obj = item._obj;
2688 return *this;
2689 }
2690
2691 ~PyObject_ptr()
2692 {
2693 Py_XDECREF(_obj);
2694 }
2695
2696 operator PyObject *() const
2697 {
2698 return _obj;
2699 }
2700
2701 PyObject *operator->() const
2702 {
2703 return _obj;
2704 }
2705 };
2706 }
2707
2708
2709 namespace swig {
2710 struct PyObject_var : PyObject_ptr {
2711 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2712
2713 PyObject_var & operator = (PyObject* obj)
2714 {
2715 Py_XDECREF(_obj);
2716 _obj = obj;
2717 return *this;
2718 }
2719 };
2720 }
2721
2722
2723 #include "wx/wxPython/wxPython.h"
2724 #include "wx/wxPython/pyclasses.h"
2725
2726
2727 static const wxString wxPyEmptyString(wxEmptyString);
2728
2729 #define SWIG_From_long PyInt_FromLong
2730
2731
2732 SWIGINTERNINLINE PyObject *
2733 SWIG_From_int (int value)
2734 {
2735 return SWIG_From_long (value);
2736 }
2737
2738
2739 #include <limits.h>
2740 #ifndef LLONG_MIN
2741 # define LLONG_MIN LONG_LONG_MIN
2742 #endif
2743 #ifndef LLONG_MAX
2744 # define LLONG_MAX LONG_LONG_MAX
2745 #endif
2746 #ifndef ULLONG_MAX
2747 # define ULLONG_MAX ULONG_LONG_MAX
2748 #endif
2749
2750
2751 SWIGINTERN int
2752 SWIG_AsVal_long (PyObject* obj, long* val)
2753 {
2754 if (PyNumber_Check(obj)) {
2755 if (val) *val = PyInt_AsLong(obj);
2756 return SWIG_OK;
2757 }
2758 return SWIG_TypeError;
2759 }
2760
2761
2762 SWIGINTERN int
2763 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2764 {
2765 long v = 0;
2766 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2767 return SWIG_TypeError;
2768 }
2769 else if (val)
2770 *val = (unsigned long)v;
2771 return SWIG_OK;
2772 }
2773
2774
2775 SWIGINTERN int
2776 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2777 {
2778 unsigned long v;
2779 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2780 if (SWIG_IsOK(res)) {
2781 if ((v > UCHAR_MAX)) {
2782 return SWIG_OverflowError;
2783 } else {
2784 if (val) *val = static_cast< unsigned char >(v);
2785 }
2786 }
2787 return res;
2788 }
2789
2790
2791 SWIGINTERNINLINE PyObject*
2792 SWIG_From_unsigned_SS_long (unsigned long value)
2793 {
2794 return (value > LONG_MAX) ?
2795 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2796 }
2797
2798
2799 SWIGINTERNINLINE PyObject *
2800 SWIG_From_unsigned_SS_char (unsigned char value)
2801 {
2802 return SWIG_From_unsigned_SS_long (value);
2803 }
2804
2805 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2806 wxColour temp, *obj = &temp;
2807 if ( other == Py_None ) return false;
2808 if ( ! wxColour_helper(other, &obj) ) {
2809 PyErr_Clear();
2810 return false;
2811 }
2812 return self->operator==(*obj);
2813 }
2814 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2815 wxColour temp, *obj = &temp;
2816 if ( other == Py_None ) return true;
2817 if ( ! wxColour_helper(other, &obj)) {
2818 PyErr_Clear();
2819 return true;
2820 }
2821 return self->operator!=(*obj);
2822 }
2823
2824 SWIGINTERN int
2825 SWIG_AsVal_bool (PyObject *obj, bool *val)
2826 {
2827 if (obj == Py_True) {
2828 if (val) *val = true;
2829 return SWIG_OK;
2830 } else if (obj == Py_False) {
2831 if (val) *val = false;
2832 return SWIG_OK;
2833 } else {
2834 long v = 0;
2835 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2836 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2837 return res;
2838 }
2839 }
2840
2841 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2842 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2843 int red = -1;
2844 int green = -1;
2845 int blue = -1;
2846 int alpha = wxALPHA_OPAQUE;
2847 if (self->IsOk()) {
2848 red = self->Red();
2849 green = self->Green();
2850 blue = self->Blue();
2851 alpha = self->Alpha();
2852 }
2853 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2854 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2855 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2856 if (includeAlpha)
2857 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2858 return rv;
2859 }
2860 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2861 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2862 }
2863
2864 SWIGINTERN int
2865 SWIG_AsVal_int (PyObject * obj, int *val)
2866 {
2867 long v;
2868 int res = SWIG_AsVal_long (obj, &v);
2869 if (SWIG_IsOK(res)) {
2870 if ((v < INT_MIN || v > INT_MAX)) {
2871 return SWIG_OverflowError;
2872 } else {
2873 if (val) *val = static_cast< int >(v);
2874 }
2875 }
2876 return res;
2877 }
2878
2879 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2880 wxDash* dashes;
2881 int count = self->GetDashes(&dashes);
2882 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2883 PyObject* retval = PyList_New(0);
2884 for (int x=0; x<count; x++) {
2885 PyObject* pyint = PyInt_FromLong(dashes[x]);
2886 PyList_Append(retval, pyint);
2887 Py_DECREF(pyint);
2888 }
2889 wxPyEndBlockThreads(blocked);
2890 return retval;
2891 }
2892 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2893 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2894 int size = PyList_Size(pyDashes);
2895 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2896
2897 // black magic warning! The array of wxDashes needs to exist as
2898 // long as the pen does because wxPen does not copy the array. So
2899 // stick a copy in a Python string object and attach it to _self,
2900 // and then call SetDashes with a pointer to that array. Then
2901 // when the Python pen object is destroyed the array will be
2902 // cleaned up too.
2903 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2904 PyObject_SetAttrString(_self, "_dashes", strDashes);
2905
2906 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2907 delete [] dashes;
2908 Py_DECREF(strDashes);
2909 wxPyEndBlockThreads(blocked);
2910 }
2911 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2912 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2913
2914 SWIGINTERNINLINE PyObject *
2915 SWIG_From_short (short value)
2916 {
2917 return SWIG_From_long (value);
2918 }
2919
2920
2921 SWIGINTERN int
2922 SWIG_AsVal_short (PyObject * obj, short *val)
2923 {
2924 long v;
2925 int res = SWIG_AsVal_long (obj, &v);
2926 if (SWIG_IsOK(res)) {
2927 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2928 return SWIG_OverflowError;
2929 } else {
2930 if (val) *val = static_cast< short >(v);
2931 }
2932 }
2933 return res;
2934 }
2935
2936
2937 #include <wx/rawbmp.h>
2938
2939
2940 #include <wx/image.h>
2941
2942 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2943 char** cArray = NULL;
2944 int count;
2945
2946 if (!PyList_Check(listOfStrings)) {
2947 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2948 return NULL;
2949 }
2950 count = PyList_Size(listOfStrings);
2951 cArray = new char*[count];
2952
2953 for(int x=0; x<count; x++) {
2954 // TODO: Need some validation and error checking here
2955 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2956 }
2957 return cArray;
2958 }
2959
2960
2961 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2962 char** cArray = NULL;
2963 wxBitmap* bmp;
2964
2965 cArray = ConvertListOfStrings(listOfStrings);
2966 if (! cArray)
2967 return NULL;
2968 bmp = new wxBitmap(cArray);
2969 delete [] cArray;
2970 return bmp;
2971 }
2972 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2973 char* buf;
2974 Py_ssize_t length;
2975 PyString_AsStringAndSize(bits, &buf, &length);
2976 return new wxBitmap(buf, width, height, depth);
2977 }
2978 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2979 wxSize size(self->GetWidth(), self->GetHeight());
2980 return size;
2981 }
2982 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2983 wxMask *mask = new wxMask(*self, colour);
2984 self->SetMask(mask);
2985 }
2986 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2987 self->SetWidth(size.x);
2988 self->SetHeight(size.y);
2989 }
2990 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2991 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2992
2993 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2994 // appears to me that the other platforms are already doing it, so I'll just
2995 // automatically do it for wxMSW here.
2996 #ifdef __WXMSW__
2997 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2998 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2999 #else
3000 #define wxPy_premultiply(p, a) (p)
3001 #define wxPy_unpremultiply(p, a) (p)
3002 #endif
3003
3004
3005 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3006 buffer data, int DATASIZE,
3007 buffer alpha, int ALPHASIZE)
3008 {
3009 if (DATASIZE != width*height*3) {
3010 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3011 return NULL;
3012 }
3013
3014 if (ALPHASIZE != width*height) {
3015 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3016 return NULL;
3017 }
3018
3019 wxBitmap* bmp = new wxBitmap(width, height, 32);
3020 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3021 if (! pixData) {
3022 // raise an exception...
3023 wxPyErr_SetString(PyExc_RuntimeError,
3024 "Failed to gain raw access to bitmap data.");
3025 return NULL;
3026 }
3027
3028 pixData.UseAlpha();
3029 wxAlphaPixelData::Iterator p(pixData);
3030 for (int y=0; y<height; y++) {
3031 wxAlphaPixelData::Iterator rowStart = p;
3032 for (int x=0; x<width; x++) {
3033 byte a = *(alpha++);
3034 p.Red() = wxPy_premultiply(*(data++), a);
3035 p.Green() = wxPy_premultiply(*(data++), a);
3036 p.Blue() = wxPy_premultiply(*(data++), a);
3037 p.Alpha() = a;
3038 ++p;
3039 }
3040 p = rowStart;
3041 p.OffsetY(pixData, 1);
3042 }
3043 return bmp;
3044 }
3045
3046 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3047 {
3048 if (DATASIZE != width*height*3) {
3049 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3050 return NULL;
3051 }
3052
3053 wxBitmap* bmp = new wxBitmap(width, height, 24);
3054 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3055 if (! pixData) {
3056 // raise an exception...
3057 wxPyErr_SetString(PyExc_RuntimeError,
3058 "Failed to gain raw access to bitmap data.");
3059 return NULL;
3060 }
3061
3062 wxNativePixelData::Iterator p(pixData);
3063 for (int y=0; y<height; y++) {
3064 wxNativePixelData::Iterator rowStart = p;
3065 for (int x=0; x<width; x++) {
3066 p.Red() = *(data++);
3067 p.Green() = *(data++);
3068 p.Blue() = *(data++);
3069 ++p;
3070 }
3071 p = rowStart;
3072 p.OffsetY(pixData, 1);
3073 }
3074 return bmp;
3075 }
3076
3077
3078 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3079 {
3080 if (DATASIZE != width*height*4) {
3081 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3082 return NULL;
3083 }
3084
3085 wxBitmap* bmp = new wxBitmap(width, height, 32);
3086 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3087 if (! pixData) {
3088 // raise an exception...
3089 wxPyErr_SetString(PyExc_RuntimeError,
3090 "Failed to gain raw access to bitmap data.");
3091 return NULL;
3092 }
3093
3094 pixData.UseAlpha();
3095 wxAlphaPixelData::Iterator p(pixData);
3096 for (int y=0; y<height; y++) {
3097 wxAlphaPixelData::Iterator rowStart = p;
3098 for (int x=0; x<width; x++) {
3099 byte a = data[3];
3100 p.Red() = wxPy_premultiply(*(data++), a);
3101 p.Green() = wxPy_premultiply(*(data++), a);
3102 p.Blue() = wxPy_premultiply(*(data++), a);
3103 p.Alpha() = a; data++;
3104 ++p;
3105 }
3106 p = rowStart;
3107 p.OffsetY(pixData, 1);
3108 }
3109 return bmp;
3110 }
3111
3112
3113 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3114
3115 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3116 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3117 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3118 self->Red() = red;
3119 self->Green() = green;
3120 self->Blue() = blue;
3121 }
3122 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3123 PyObject* rv = PyTuple_New(3);
3124 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3125 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3126 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3127 return rv;
3128 }
3129
3130 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3131
3132 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3133 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3134 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3135 self->Red() = wxPy_premultiply(red, alpha);
3136 self->Green() = wxPy_premultiply(green, alpha);
3137 self->Blue() = wxPy_premultiply(blue, alpha);
3138 self->Alpha() = alpha;
3139 }
3140 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3141 PyObject* rv = PyTuple_New(4);
3142 int red = self->Red();
3143 int green = self->Green();
3144 int blue = self->Blue();
3145 int alpha = self->Alpha();
3146
3147 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3148 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3149 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3150 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3151 return rv;
3152 }
3153 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3154 if ( !colour.IsOk() )
3155 return new wxMask(bitmap, *wxBLACK);
3156 else
3157 return new wxMask(bitmap, colour);
3158 }
3159
3160 #include <wx/iconbndl.h>
3161
3162 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3163 wxIcon* icon = new wxIcon();
3164 icon->CopyFromBitmap(bmp);
3165 return icon;
3166 }
3167 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3168 char** cArray = NULL;
3169 wxIcon* icon;
3170
3171 cArray = ConvertListOfStrings(listOfStrings);
3172 if (! cArray)
3173 return NULL;
3174 icon = new wxIcon(cArray);
3175 delete [] cArray;
3176 return icon;
3177 }
3178 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3179
3180
3181
3182 return new wxIconLocation(*filename);
3183
3184 }
3185 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3186
3187
3188
3189 // do nothing
3190
3191 }
3192 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3193
3194
3195
3196 return -1;
3197
3198 }
3199 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3200 #ifdef __WXGTK__
3201 wxImage img(cursorName, type);
3202 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3203 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3204 return new wxCursor(img);
3205 #else
3206 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3207 #endif
3208 }
3209
3210
3211 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3212 (*self) ++;
3213 }
3214 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3215 return self->operator bool();
3216 }
3217
3218 #include <wx/fontutil.h>
3219 #include <wx/fontmap.h>
3220 #include <wx/fontenum.h>
3221
3222 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3223 return self->ToString();
3224 }
3225
3226 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3227 static wxNativeEncodingInfo info;
3228 if ( wxGetNativeFontEncoding(encoding, &info) )
3229 return &info;
3230 else
3231 return NULL;
3232 }
3233
3234
3235 SWIGINTERNINLINE PyObject *
3236 SWIG_From_size_t (size_t value)
3237 {
3238 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3239 }
3240
3241
3242 SWIGINTERNINLINE int
3243 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3244 {
3245 unsigned long v;
3246 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3247 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3248 return res;
3249 }
3250
3251 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3252 wxFontEncoding alt_enc;
3253 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3254 return PyInt_FromLong(alt_enc);
3255 else {
3256 Py_INCREF(Py_None);
3257 return Py_None;
3258 }
3259 }
3260 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3261 wxNativeFontInfo nfi;
3262 nfi.FromString(info);
3263 return new wxFont(nfi);
3264 }
3265 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3266 return wxFont::New(pointSize, family, flags, face, encoding);
3267 }
3268 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3269 return wxFontBase::New(pixelSize, family,
3270 style, weight, underlined,
3271 face, encoding);
3272 }
3273 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3274 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3275 }
3276 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3277 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3278
3279 class wxPyFontEnumerator : public wxFontEnumerator {
3280 public:
3281 wxPyFontEnumerator() {}
3282 ~wxPyFontEnumerator() {}
3283
3284 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3285 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3286
3287 PYPRIVATE;
3288 };
3289
3290 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3291 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3292
3293
3294 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3295 PyObject* ret;
3296 wxArrayString arr = wxFontEnumerator::GetEncodings();
3297 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3298 ret = wxArrayString2PyList_helper(arr);
3299 wxPyEndBlockThreads(blocked);
3300 return ret;
3301 }
3302 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3303 PyObject* ret;
3304 wxArrayString arr = wxFontEnumerator::GetFacenames();
3305 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3306 ret = wxArrayString2PyList_helper(arr);
3307 wxPyEndBlockThreads(blocked);
3308 return ret;
3309 }
3310
3311 #include <locale.h>
3312
3313 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3314 wxLocale* loc;
3315 if (language == -1)
3316 loc = new wxLocale();
3317 else
3318 loc = new wxLocale(language, flags);
3319 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3320 // for the floating point conversions and such to work right.
3321 #if PY_VERSION_HEX < 0x02040000
3322 setlocale(LC_NUMERIC, "C");
3323 #endif
3324 return loc;
3325 }
3326 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3327 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3328 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3329 // for the floating point conversions and such to work right.
3330 #if PY_VERSION_HEX < 0x02040000
3331 setlocale(LC_NUMERIC, "C");
3332 #endif
3333 return rc;
3334 }
3335 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3336 bool rc = self->Init(language, flags);
3337 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3338 // for the floating point conversions and such to work right.
3339 #if PY_VERSION_HEX < 0x02040000
3340 setlocale(LC_NUMERIC, "C");
3341 #endif
3342 return rc;
3343 }
3344
3345 class wxPyLocale : public wxLocale
3346 {
3347 public:
3348 wxPyLocale();
3349
3350 wxPyLocale(const wxChar *szName, // name (for messages)
3351 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3352 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3353 bool bLoadDefault = true, // preload wxstd.mo?
3354 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3355
3356 wxPyLocale(int language, // wxLanguage id or custom language
3357 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3358
3359 ~wxPyLocale();
3360
3361 virtual const wxChar *GetString(const wxChar *szOrigString,
3362 const wxChar *szDomain = NULL) const;
3363 virtual const wxChar *GetString(const wxChar *szOrigString,
3364 const wxChar *szOrigString2, size_t n,
3365 const wxChar *szDomain = NULL) const;
3366
3367 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3368 const wxChar *szDomain = NULL) const;
3369 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3370 const wxChar *szOrigString2, size_t n,
3371 const wxChar *szDomain = NULL) const;
3372
3373 PYPRIVATE;
3374 private:
3375 DECLARE_NO_COPY_CLASS(wxPyLocale)
3376 };
3377
3378 wxPyLocale::wxPyLocale() : wxLocale()
3379 {
3380 }
3381
3382 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3383 const wxChar *szShort, // dir prefix (for msg files)
3384 const wxChar *szLocale, // locale (for setlocale)
3385 bool bLoadDefault, // preload wxstd.mo?
3386 bool bConvertEncoding) // convert Win<->Unix if necessary?
3387 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3388 {
3389 }
3390
3391 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3392 int flags) : wxLocale(language, flags)
3393 {
3394 }
3395
3396 wxPyLocale::~wxPyLocale()
3397 {
3398 }
3399
3400 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3401 const wxChar *szDomain) const
3402 {
3403 wxChar *str = GetSingularString(szOrigString, szDomain);
3404 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3405 }
3406
3407 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3408 const wxChar *szOrigString2, size_t n,
3409 const wxChar *szDomain) const
3410 {
3411 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3412 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3413 }
3414
3415 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3416 const wxChar *szDomain) const
3417 {
3418 bool found;
3419 static wxString str;
3420 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.
3421 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3422 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3423 PyObject* param1 = wx2PyString(szOrigString);
3424 PyObject* param2 = wx2PyString(szDomain);
3425 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3426 Py_DECREF(param1);
3427 Py_DECREF(param2);
3428 if (ret) {
3429 str = Py2wxString(ret);
3430 Py_DECREF(ret);
3431 }
3432 }
3433 wxPyEndBlockThreads(blocked);
3434 return (found ? (wxChar*)str.c_str() : NULL);
3435 }
3436
3437 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3438 const wxChar *szOrigString2, size_t n,
3439 const wxChar *szDomain) const
3440 {
3441 bool found;
3442 static wxString str;
3443 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.
3444 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3445 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3446 PyObject* param1 = wx2PyString(szOrigString);
3447 PyObject* param2 = wx2PyString(szOrigString2);
3448 PyObject* param4 = wx2PyString(szDomain);
3449 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3450 Py_DECREF(param1);
3451 Py_DECREF(param2);
3452 Py_DECREF(param4);
3453 if( ret) {
3454 str = Py2wxString(ret);
3455 Py_DECREF(ret);
3456 }
3457 }
3458 wxPyEndBlockThreads(blocked);
3459 return (found ? (wxChar*)str.c_str() : NULL);
3460 }
3461
3462 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3463 wxPyLocale* loc;
3464 if (language == -1)
3465 loc = new wxPyLocale();
3466 else
3467 loc = new wxPyLocale(language, flags);
3468 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3469 // for the floating point conversions and such to work right.
3470 #if PY_VERSION_HEX < 0x02040000
3471 setlocale(LC_NUMERIC, "C");
3472 #endif
3473 return loc;
3474 }
3475
3476 #include "wx/wxPython/pydrawxxx.h"
3477
3478 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3479 wxColour col;
3480 self->GetPixel(x, y, &col);
3481 return col;
3482 }
3483 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3484 wxColour col;
3485 self->GetPixel(pt, &col);
3486 return col;
3487 }
3488
3489 SWIGINTERN int
3490 SWIG_AsVal_double (PyObject *obj, double* val)
3491 {
3492 if (PyNumber_Check(obj)) {
3493 if (val) *val = PyFloat_AsDouble(obj);
3494 return SWIG_OK;
3495 }
3496 return SWIG_TypeError;
3497 }
3498
3499 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3500 wxRect rv;
3501 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3502 return rv;
3503 }
3504 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3505 wxRect rect;
3506 self->GetClippingBox(rect);
3507 return rect;
3508 }
3509 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3510 wxArrayInt widths;
3511 self->GetPartialTextExtents(text, widths);
3512 return widths;
3513 }
3514
3515 #define SWIG_From_double PyFloat_FromDouble
3516
3517 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3518 self->SetLogicalOrigin(point.x, point.y);
3519 }
3520 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3521 self->SetDeviceOrigin(point.x, point.y);
3522 }
3523 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3524 self->CalcBoundingBox(point.x, point.y);
3525 }
3526 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3527 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3528 }
3529 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3530 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3531 }
3532 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3533 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3534 }
3535 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3536 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3537 }
3538 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3539 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3540 }
3541 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3542 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3543 }
3544
3545 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3546 *x1 = dc->MinX();
3547 *y1 = dc->MinY();
3548 *x2 = dc->MaxX();
3549 *y2 = dc->MaxY();
3550 }
3551
3552
3553 #include <wx/dcbuffer.h>
3554
3555
3556 #include <wx/dcps.h>
3557
3558
3559 #include <wx/metafile.h>
3560
3561
3562 #include <wx/graphics.h>
3563
3564
3565 #if !wxUSE_GRAPHICS_CONTEXT
3566 // C++ stub classes for platforms that don't have wxGraphicsContext yet.
3567
3568 class wxGraphicsPath
3569 {
3570 public :
3571 wxGraphicsPath() {
3572 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3573 PyErr_SetString(PyExc_NotImplementedError,
3574 "wxGraphicsPath is not available on this platform.");
3575 wxPyEndBlockThreads(blocked);
3576 }
3577 virtual ~wxGraphicsPath() {}
3578
3579 void MoveToPoint( wxDouble, wxDouble ) {}
3580 void AddLineToPoint( wxDouble, wxDouble ) {}
3581 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3582 void CloseSubpath() {}
3583 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3584 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3585
3586 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3587 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3588 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3589 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3590
3591 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3592 void MoveToPoint( const wxPoint2DDouble& ) {}
3593 void AddLineToPoint( const wxPoint2DDouble&) {}
3594 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3595 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3596 };
3597
3598
3599 class wxGraphicsContext
3600 {
3601 public:
3602 wxGraphicsContext() {
3603 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3604 PyErr_SetString(PyExc_NotImplementedError,
3605 "wxGraphicsContext is not available on this platform.");
3606 wxPyEndBlockThreads(blocked);
3607 }
3608 virtual ~wxGraphicsContext() {}
3609
3610 static wxGraphicsContext* Create( const wxWindowDC&) {
3611 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3612 PyErr_SetString(PyExc_NotImplementedError,
3613 "wxGraphicsPath is not available on this platform.");
3614 wxPyEndBlockThreads(blocked);
3615 return NULL;
3616 }
3617
3618 static wxGraphicsContext* CreateFromNative( void * ) {
3619 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3620 PyErr_SetString(PyExc_NotImplementedError,
3621 "wxGraphicsContext is not available on this platform.");
3622 wxPyEndBlockThreads(blocked);
3623 return NULL;
3624 }
3625
3626 wxGraphicsPath * CreatePath() { return NULL; }
3627 void PushState() {}
3628 void PopState() {}
3629 void Clip( const wxRegion & ) {}
3630 void Clip( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3631 void ResetClip() {}
3632 void * GetNativeContext() { return NULL; }
3633 void Translate( wxDouble , wxDouble ) {}
3634 void Scale( wxDouble , wxDouble ) {}
3635 void Rotate( wxDouble ) {}
3636 void SetPen( const wxPen & ) {}
3637 void SetBrush( const wxBrush & ) {}
3638 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3639 const wxColour&, const wxColour&) {}
3640 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3641 const wxColour &, const wxColour &) {}
3642 void SetFont( const wxFont & ) {}
3643 void SetTextColor( const wxColour & ) {}
3644 void StrokePath( const wxGraphicsPath * ) {}
3645 void FillPath( const wxGraphicsPath *, int ) {}
3646 void DrawPath( const wxGraphicsPath *, int ) {}
3647 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3648 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3649 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3650 wxDouble *, wxDouble * ) const {}
3651 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3652 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3653 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3654 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3655 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3656 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3657 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3658 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3659 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3660 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3661 };
3662
3663
3664 class wxGCDC: public wxWindowDC
3665 {
3666 public:
3667 wxGCDC(const wxWindowDC&) {
3668 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3669 PyErr_SetString(PyExc_NotImplementedError,
3670 "wxGCDC is not available on this platform.");
3671 wxPyEndBlockThreads(blocked);
3672 }
3673
3674 wxGCDC() {
3675 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3676 PyErr_SetString(PyExc_NotImplementedError,
3677 "wxGCDC is not available on this platform.");
3678 wxPyEndBlockThreads(blocked);
3679 }
3680
3681 virtual ~wxGCDC() {}
3682
3683 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3684 void SetGraphicsContext( wxGraphicsContext* ) {}
3685 };
3686
3687 #endif
3688
3689 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3690 wxArrayDouble widths;
3691 self->GetPartialTextExtents(text, widths);
3692 return widths;
3693 }
3694 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3695 size_t c1, c2, count;
3696 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3697 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3698
3699 if ( beginP != NULL && endP != NULL )
3700 {
3701 count = wxMin(c1, c2);
3702 self->StrokeLines(count, beginP, endP);
3703 }
3704 delete [] beginP;
3705 delete [] endP;
3706 }
3707
3708 #include "wx/dcgraph.h"
3709
3710
3711
3712 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3713 self->AddColour(name, wxColour(red, green, blue));
3714 }
3715
3716 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3717 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3718 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3719 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3720
3721
3722 #include <wx/effects.h>
3723
3724
3725 #include "wx/renderer.h"
3726
3727
3728 SWIGINTERNINLINE PyObject*
3729 SWIG_From_bool (bool value)
3730 {
3731 return PyBool_FromLong(value ? 1 : 0);
3732 }
3733
3734
3735 #include "wx/wxPython/pseudodc.h"
3736
3737 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3738 wxRect rect;
3739 self->GetIdBounds(id, rect);
3740 return rect;
3741 }
3742 #ifdef __cplusplus
3743 extern "C" {
3744 #endif
3745 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3746 PyObject *resultobj = 0;
3747 wxGDIObject *result = 0 ;
3748
3749 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3750 {
3751 if (!wxPyCheckForApp()) SWIG_fail;
3752 PyThreadState* __tstate = wxPyBeginAllowThreads();
3753 result = (wxGDIObject *)new wxGDIObject();
3754 wxPyEndAllowThreads(__tstate);
3755 if (PyErr_Occurred()) SWIG_fail;
3756 }
3757 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3758 return resultobj;
3759 fail:
3760 return NULL;
3761 }
3762
3763
3764 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3765 PyObject *resultobj = 0;
3766 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3767 void *argp1 = 0 ;
3768 int res1 = 0 ;
3769 PyObject *swig_obj[1] ;
3770
3771 if (!args) SWIG_fail;
3772 swig_obj[0] = args;
3773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3774 if (!SWIG_IsOK(res1)) {
3775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3776 }
3777 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3778 {
3779 PyThreadState* __tstate = wxPyBeginAllowThreads();
3780 delete arg1;
3781
3782 wxPyEndAllowThreads(__tstate);
3783 if (PyErr_Occurred()) SWIG_fail;
3784 }
3785 resultobj = SWIG_Py_Void();
3786 return resultobj;
3787 fail:
3788 return NULL;
3789 }
3790
3791
3792 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3793 PyObject *resultobj = 0;
3794 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3795 bool result;
3796 void *argp1 = 0 ;
3797 int res1 = 0 ;
3798 PyObject *swig_obj[1] ;
3799
3800 if (!args) SWIG_fail;
3801 swig_obj[0] = args;
3802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3803 if (!SWIG_IsOK(res1)) {
3804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3805 }
3806 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3807 {
3808 PyThreadState* __tstate = wxPyBeginAllowThreads();
3809 result = (bool)(arg1)->IsNull();
3810 wxPyEndAllowThreads(__tstate);
3811 if (PyErr_Occurred()) SWIG_fail;
3812 }
3813 {
3814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3815 }
3816 return resultobj;
3817 fail:
3818 return NULL;
3819 }
3820
3821
3822 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3823 PyObject *obj;
3824 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3825 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3826 return SWIG_Py_Void();
3827 }
3828
3829 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3830 return SWIG_Python_InitShadowInstance(args);
3831 }
3832
3833 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3834 PyObject *resultobj = 0;
3835 byte arg1 = (byte) 0 ;
3836 byte arg2 = (byte) 0 ;
3837 byte arg3 = (byte) 0 ;
3838 byte arg4 = (byte) wxALPHA_OPAQUE ;
3839 wxColour *result = 0 ;
3840 unsigned char val1 ;
3841 int ecode1 = 0 ;
3842 unsigned char val2 ;
3843 int ecode2 = 0 ;
3844 unsigned char val3 ;
3845 int ecode3 = 0 ;
3846 unsigned char val4 ;
3847 int ecode4 = 0 ;
3848 PyObject * obj0 = 0 ;
3849 PyObject * obj1 = 0 ;
3850 PyObject * obj2 = 0 ;
3851 PyObject * obj3 = 0 ;
3852 char * kwnames[] = {
3853 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3854 };
3855
3856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3857 if (obj0) {
3858 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3859 if (!SWIG_IsOK(ecode1)) {
3860 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3861 }
3862 arg1 = static_cast< byte >(val1);
3863 }
3864 if (obj1) {
3865 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3866 if (!SWIG_IsOK(ecode2)) {
3867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3868 }
3869 arg2 = static_cast< byte >(val2);
3870 }
3871 if (obj2) {
3872 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3873 if (!SWIG_IsOK(ecode3)) {
3874 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3875 }
3876 arg3 = static_cast< byte >(val3);
3877 }
3878 if (obj3) {
3879 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3880 if (!SWIG_IsOK(ecode4)) {
3881 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3882 }
3883 arg4 = static_cast< byte >(val4);
3884 }
3885 {
3886 PyThreadState* __tstate = wxPyBeginAllowThreads();
3887 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3888 wxPyEndAllowThreads(__tstate);
3889 if (PyErr_Occurred()) SWIG_fail;
3890 }
3891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3892 return resultobj;
3893 fail:
3894 return NULL;
3895 }
3896
3897
3898 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3899 PyObject *resultobj = 0;
3900 wxString *arg1 = 0 ;
3901 wxColour *result = 0 ;
3902 bool temp1 = false ;
3903 PyObject * obj0 = 0 ;
3904 char * kwnames[] = {
3905 (char *) "colorName", NULL
3906 };
3907
3908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3909 {
3910 arg1 = wxString_in_helper(obj0);
3911 if (arg1 == NULL) SWIG_fail;
3912 temp1 = true;
3913 }
3914 {
3915 if (!wxPyCheckForApp()) SWIG_fail;
3916 PyThreadState* __tstate = wxPyBeginAllowThreads();
3917 result = (wxColour *)new wxColour((wxString const &)*arg1);
3918 wxPyEndAllowThreads(__tstate);
3919 if (PyErr_Occurred()) SWIG_fail;
3920 }
3921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3922 {
3923 if (temp1)
3924 delete arg1;
3925 }
3926 return resultobj;
3927 fail:
3928 {
3929 if (temp1)
3930 delete arg1;
3931 }
3932 return NULL;
3933 }
3934
3935
3936 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3937 PyObject *resultobj = 0;
3938 unsigned long arg1 ;
3939 wxColour *result = 0 ;
3940 unsigned long val1 ;
3941 int ecode1 = 0 ;
3942 PyObject * obj0 = 0 ;
3943 char * kwnames[] = {
3944 (char *) "colRGB", NULL
3945 };
3946
3947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3948 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3949 if (!SWIG_IsOK(ecode1)) {
3950 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3951 }
3952 arg1 = static_cast< unsigned long >(val1);
3953 {
3954 PyThreadState* __tstate = wxPyBeginAllowThreads();
3955 result = (wxColour *)new wxColour(arg1);
3956 wxPyEndAllowThreads(__tstate);
3957 if (PyErr_Occurred()) SWIG_fail;
3958 }
3959 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3960 return resultobj;
3961 fail:
3962 return NULL;
3963 }
3964
3965
3966 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3967 PyObject *resultobj = 0;
3968 wxColour *arg1 = (wxColour *) 0 ;
3969 void *argp1 = 0 ;
3970 int res1 = 0 ;
3971 PyObject *swig_obj[1] ;
3972
3973 if (!args) SWIG_fail;
3974 swig_obj[0] = args;
3975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3976 if (!SWIG_IsOK(res1)) {
3977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3978 }
3979 arg1 = reinterpret_cast< wxColour * >(argp1);
3980 {
3981 PyThreadState* __tstate = wxPyBeginAllowThreads();
3982 delete arg1;
3983
3984 wxPyEndAllowThreads(__tstate);
3985 if (PyErr_Occurred()) SWIG_fail;
3986 }
3987 resultobj = SWIG_Py_Void();
3988 return resultobj;
3989 fail:
3990 return NULL;
3991 }
3992
3993
3994 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3995 PyObject *resultobj = 0;
3996 wxColour *arg1 = (wxColour *) 0 ;
3997 byte result;
3998 void *argp1 = 0 ;
3999 int res1 = 0 ;
4000 PyObject *swig_obj[1] ;
4001
4002 if (!args) SWIG_fail;
4003 swig_obj[0] = args;
4004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4005 if (!SWIG_IsOK(res1)) {
4006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4007 }
4008 arg1 = reinterpret_cast< wxColour * >(argp1);
4009 {
4010 PyThreadState* __tstate = wxPyBeginAllowThreads();
4011 result = (byte)(arg1)->Red();
4012 wxPyEndAllowThreads(__tstate);
4013 if (PyErr_Occurred()) SWIG_fail;
4014 }
4015 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4016 return resultobj;
4017 fail:
4018 return NULL;
4019 }
4020
4021
4022 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4023 PyObject *resultobj = 0;
4024 wxColour *arg1 = (wxColour *) 0 ;
4025 byte result;
4026 void *argp1 = 0 ;
4027 int res1 = 0 ;
4028 PyObject *swig_obj[1] ;
4029
4030 if (!args) SWIG_fail;
4031 swig_obj[0] = args;
4032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4033 if (!SWIG_IsOK(res1)) {
4034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4035 }
4036 arg1 = reinterpret_cast< wxColour * >(argp1);
4037 {
4038 PyThreadState* __tstate = wxPyBeginAllowThreads();
4039 result = (byte)(arg1)->Green();
4040 wxPyEndAllowThreads(__tstate);
4041 if (PyErr_Occurred()) SWIG_fail;
4042 }
4043 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4044 return resultobj;
4045 fail:
4046 return NULL;
4047 }
4048
4049
4050 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4051 PyObject *resultobj = 0;
4052 wxColour *arg1 = (wxColour *) 0 ;
4053 byte result;
4054 void *argp1 = 0 ;
4055 int res1 = 0 ;
4056 PyObject *swig_obj[1] ;
4057
4058 if (!args) SWIG_fail;
4059 swig_obj[0] = args;
4060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4061 if (!SWIG_IsOK(res1)) {
4062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4063 }
4064 arg1 = reinterpret_cast< wxColour * >(argp1);
4065 {
4066 PyThreadState* __tstate = wxPyBeginAllowThreads();
4067 result = (byte)(arg1)->Blue();
4068 wxPyEndAllowThreads(__tstate);
4069 if (PyErr_Occurred()) SWIG_fail;
4070 }
4071 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4072 return resultobj;
4073 fail:
4074 return NULL;
4075 }
4076
4077
4078 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4079 PyObject *resultobj = 0;
4080 wxColour *arg1 = (wxColour *) 0 ;
4081 byte result;
4082 void *argp1 = 0 ;
4083 int res1 = 0 ;
4084 PyObject *swig_obj[1] ;
4085
4086 if (!args) SWIG_fail;
4087 swig_obj[0] = args;
4088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4089 if (!SWIG_IsOK(res1)) {
4090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4091 }
4092 arg1 = reinterpret_cast< wxColour * >(argp1);
4093 {
4094 PyThreadState* __tstate = wxPyBeginAllowThreads();
4095 result = (byte)(arg1)->Alpha();
4096 wxPyEndAllowThreads(__tstate);
4097 if (PyErr_Occurred()) SWIG_fail;
4098 }
4099 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4100 return resultobj;
4101 fail:
4102 return NULL;
4103 }
4104
4105
4106 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4107 PyObject *resultobj = 0;
4108 wxColour *arg1 = (wxColour *) 0 ;
4109 bool result;
4110 void *argp1 = 0 ;
4111 int res1 = 0 ;
4112 PyObject *swig_obj[1] ;
4113
4114 if (!args) SWIG_fail;
4115 swig_obj[0] = args;
4116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4117 if (!SWIG_IsOK(res1)) {
4118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4119 }
4120 arg1 = reinterpret_cast< wxColour * >(argp1);
4121 {
4122 PyThreadState* __tstate = wxPyBeginAllowThreads();
4123 result = (bool)(arg1)->IsOk();
4124 wxPyEndAllowThreads(__tstate);
4125 if (PyErr_Occurred()) SWIG_fail;
4126 }
4127 {
4128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4129 }
4130 return resultobj;
4131 fail:
4132 return NULL;
4133 }
4134
4135
4136 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4137 PyObject *resultobj = 0;
4138 wxColour *arg1 = (wxColour *) 0 ;
4139 byte arg2 ;
4140 byte arg3 ;
4141 byte arg4 ;
4142 byte arg5 = (byte) wxALPHA_OPAQUE ;
4143 void *argp1 = 0 ;
4144 int res1 = 0 ;
4145 unsigned char val2 ;
4146 int ecode2 = 0 ;
4147 unsigned char val3 ;
4148 int ecode3 = 0 ;
4149 unsigned char val4 ;
4150 int ecode4 = 0 ;
4151 unsigned char val5 ;
4152 int ecode5 = 0 ;
4153 PyObject * obj0 = 0 ;
4154 PyObject * obj1 = 0 ;
4155 PyObject * obj2 = 0 ;
4156 PyObject * obj3 = 0 ;
4157 PyObject * obj4 = 0 ;
4158 char * kwnames[] = {
4159 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4160 };
4161
4162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4164 if (!SWIG_IsOK(res1)) {
4165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4166 }
4167 arg1 = reinterpret_cast< wxColour * >(argp1);
4168 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4169 if (!SWIG_IsOK(ecode2)) {
4170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4171 }
4172 arg2 = static_cast< byte >(val2);
4173 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4174 if (!SWIG_IsOK(ecode3)) {
4175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4176 }
4177 arg3 = static_cast< byte >(val3);
4178 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4179 if (!SWIG_IsOK(ecode4)) {
4180 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4181 }
4182 arg4 = static_cast< byte >(val4);
4183 if (obj4) {
4184 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4185 if (!SWIG_IsOK(ecode5)) {
4186 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4187 }
4188 arg5 = static_cast< byte >(val5);
4189 }
4190 {
4191 PyThreadState* __tstate = wxPyBeginAllowThreads();
4192 (arg1)->Set(arg2,arg3,arg4,arg5);
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) SWIG_fail;
4195 }
4196 resultobj = SWIG_Py_Void();
4197 return resultobj;
4198 fail:
4199 return NULL;
4200 }
4201
4202
4203 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4204 PyObject *resultobj = 0;
4205 wxColour *arg1 = (wxColour *) 0 ;
4206 unsigned long arg2 ;
4207 void *argp1 = 0 ;
4208 int res1 = 0 ;
4209 unsigned long val2 ;
4210 int ecode2 = 0 ;
4211 PyObject * obj0 = 0 ;
4212 PyObject * obj1 = 0 ;
4213 char * kwnames[] = {
4214 (char *) "self",(char *) "colRGB", NULL
4215 };
4216
4217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4219 if (!SWIG_IsOK(res1)) {
4220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4221 }
4222 arg1 = reinterpret_cast< wxColour * >(argp1);
4223 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4224 if (!SWIG_IsOK(ecode2)) {
4225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4226 }
4227 arg2 = static_cast< unsigned long >(val2);
4228 {
4229 PyThreadState* __tstate = wxPyBeginAllowThreads();
4230 (arg1)->Set(arg2);
4231 wxPyEndAllowThreads(__tstate);
4232 if (PyErr_Occurred()) SWIG_fail;
4233 }
4234 resultobj = SWIG_Py_Void();
4235 return resultobj;
4236 fail:
4237 return NULL;
4238 }
4239
4240
4241 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4242 PyObject *resultobj = 0;
4243 wxColour *arg1 = (wxColour *) 0 ;
4244 wxString *arg2 = 0 ;
4245 void *argp1 = 0 ;
4246 int res1 = 0 ;
4247 bool temp2 = false ;
4248 PyObject * obj0 = 0 ;
4249 PyObject * obj1 = 0 ;
4250 char * kwnames[] = {
4251 (char *) "self",(char *) "colourName", NULL
4252 };
4253
4254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4256 if (!SWIG_IsOK(res1)) {
4257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4258 }
4259 arg1 = reinterpret_cast< wxColour * >(argp1);
4260 {
4261 arg2 = wxString_in_helper(obj1);
4262 if (arg2 == NULL) SWIG_fail;
4263 temp2 = true;
4264 }
4265 {
4266 PyThreadState* __tstate = wxPyBeginAllowThreads();
4267 (arg1)->Set((wxString const &)*arg2);
4268 wxPyEndAllowThreads(__tstate);
4269 if (PyErr_Occurred()) SWIG_fail;
4270 }
4271 resultobj = SWIG_Py_Void();
4272 {
4273 if (temp2)
4274 delete arg2;
4275 }
4276 return resultobj;
4277 fail:
4278 {
4279 if (temp2)
4280 delete arg2;
4281 }
4282 return NULL;
4283 }
4284
4285
4286 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4287 PyObject *resultobj = 0;
4288 wxColour *arg1 = (wxColour *) 0 ;
4289 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4290 wxString result;
4291 void *argp1 = 0 ;
4292 int res1 = 0 ;
4293 long val2 ;
4294 int ecode2 = 0 ;
4295 PyObject * obj0 = 0 ;
4296 PyObject * obj1 = 0 ;
4297 char * kwnames[] = {
4298 (char *) "self",(char *) "flags", NULL
4299 };
4300
4301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4303 if (!SWIG_IsOK(res1)) {
4304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4305 }
4306 arg1 = reinterpret_cast< wxColour * >(argp1);
4307 if (obj1) {
4308 ecode2 = SWIG_AsVal_long(obj1, &val2);
4309 if (!SWIG_IsOK(ecode2)) {
4310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4311 }
4312 arg2 = static_cast< long >(val2);
4313 }
4314 {
4315 PyThreadState* __tstate = wxPyBeginAllowThreads();
4316 result = ((wxColour const *)arg1)->GetAsString(arg2);
4317 wxPyEndAllowThreads(__tstate);
4318 if (PyErr_Occurred()) SWIG_fail;
4319 }
4320 {
4321 #if wxUSE_UNICODE
4322 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4323 #else
4324 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4325 #endif
4326 }
4327 return resultobj;
4328 fail:
4329 return NULL;
4330 }
4331
4332
4333 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4334 PyObject *resultobj = 0;
4335 wxColour *arg1 = (wxColour *) 0 ;
4336 long result;
4337 void *argp1 = 0 ;
4338 int res1 = 0 ;
4339 PyObject *swig_obj[1] ;
4340
4341 if (!args) SWIG_fail;
4342 swig_obj[0] = args;
4343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4344 if (!SWIG_IsOK(res1)) {
4345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4346 }
4347 arg1 = reinterpret_cast< wxColour * >(argp1);
4348 {
4349 PyThreadState* __tstate = wxPyBeginAllowThreads();
4350 result = (long)((wxColour const *)arg1)->GetPixel();
4351 wxPyEndAllowThreads(__tstate);
4352 if (PyErr_Occurred()) SWIG_fail;
4353 }
4354 resultobj = SWIG_From_long(static_cast< long >(result));
4355 return resultobj;
4356 fail:
4357 return NULL;
4358 }
4359
4360
4361 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4362 PyObject *resultobj = 0;
4363 wxColour *arg1 = (wxColour *) 0 ;
4364 PyObject *arg2 = (PyObject *) 0 ;
4365 bool result;
4366 void *argp1 = 0 ;
4367 int res1 = 0 ;
4368 PyObject * obj0 = 0 ;
4369 PyObject * obj1 = 0 ;
4370 char * kwnames[] = {
4371 (char *) "self",(char *) "other", NULL
4372 };
4373
4374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4376 if (!SWIG_IsOK(res1)) {
4377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4378 }
4379 arg1 = reinterpret_cast< wxColour * >(argp1);
4380 arg2 = obj1;
4381 {
4382 result = (bool)wxColour___eq__(arg1,arg2);
4383 if (PyErr_Occurred()) SWIG_fail;
4384 }
4385 {
4386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4387 }
4388 return resultobj;
4389 fail:
4390 return NULL;
4391 }
4392
4393
4394 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4395 PyObject *resultobj = 0;
4396 wxColour *arg1 = (wxColour *) 0 ;
4397 PyObject *arg2 = (PyObject *) 0 ;
4398 bool result;
4399 void *argp1 = 0 ;
4400 int res1 = 0 ;
4401 PyObject * obj0 = 0 ;
4402 PyObject * obj1 = 0 ;
4403 char * kwnames[] = {
4404 (char *) "self",(char *) "other", NULL
4405 };
4406
4407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4409 if (!SWIG_IsOK(res1)) {
4410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4411 }
4412 arg1 = reinterpret_cast< wxColour * >(argp1);
4413 arg2 = obj1;
4414 {
4415 result = (bool)wxColour___ne__(arg1,arg2);
4416 if (PyErr_Occurred()) SWIG_fail;
4417 }
4418 {
4419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4420 }
4421 return resultobj;
4422 fail:
4423 return NULL;
4424 }
4425
4426
4427 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4428 PyObject *resultobj = 0;
4429 wxColour *arg1 = (wxColour *) 0 ;
4430 bool arg2 = (bool) false ;
4431 PyObject *result = 0 ;
4432 void *argp1 = 0 ;
4433 int res1 = 0 ;
4434 bool val2 ;
4435 int ecode2 = 0 ;
4436 PyObject * obj0 = 0 ;
4437 PyObject * obj1 = 0 ;
4438 char * kwnames[] = {
4439 (char *) "self",(char *) "includeAlpha", NULL
4440 };
4441
4442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4444 if (!SWIG_IsOK(res1)) {
4445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4446 }
4447 arg1 = reinterpret_cast< wxColour * >(argp1);
4448 if (obj1) {
4449 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4450 if (!SWIG_IsOK(ecode2)) {
4451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4452 }
4453 arg2 = static_cast< bool >(val2);
4454 }
4455 {
4456 result = (PyObject *)wxColour_Get(arg1,arg2);
4457 if (PyErr_Occurred()) SWIG_fail;
4458 }
4459 resultobj = result;
4460 return resultobj;
4461 fail:
4462 return NULL;
4463 }
4464
4465
4466 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4467 PyObject *resultobj = 0;
4468 wxColour *arg1 = (wxColour *) 0 ;
4469 unsigned long result;
4470 void *argp1 = 0 ;
4471 int res1 = 0 ;
4472 PyObject *swig_obj[1] ;
4473
4474 if (!args) SWIG_fail;
4475 swig_obj[0] = args;
4476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4477 if (!SWIG_IsOK(res1)) {
4478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4479 }
4480 arg1 = reinterpret_cast< wxColour * >(argp1);
4481 {
4482 result = (unsigned long)wxColour_GetRGB(arg1);
4483 if (PyErr_Occurred()) SWIG_fail;
4484 }
4485 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4486 return resultobj;
4487 fail:
4488 return NULL;
4489 }
4490
4491
4492 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4493 PyObject *obj;
4494 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4495 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4496 return SWIG_Py_Void();
4497 }
4498
4499 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4500 return SWIG_Python_InitShadowInstance(args);
4501 }
4502
4503 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4504 PyObject *resultobj = 0;
4505 int arg1 ;
4506 unsigned char *arg2 = (unsigned char *) 0 ;
4507 unsigned char *arg3 = (unsigned char *) 0 ;
4508 unsigned char *arg4 = (unsigned char *) 0 ;
4509 wxPalette *result = 0 ;
4510 int val1 ;
4511 int ecode1 = 0 ;
4512 void *argp2 = 0 ;
4513 int res2 = 0 ;
4514 void *argp3 = 0 ;
4515 int res3 = 0 ;
4516 void *argp4 = 0 ;
4517 int res4 = 0 ;
4518 PyObject * obj0 = 0 ;
4519 PyObject * obj1 = 0 ;
4520 PyObject * obj2 = 0 ;
4521 PyObject * obj3 = 0 ;
4522 char * kwnames[] = {
4523 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4524 };
4525
4526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4527 ecode1 = SWIG_AsVal_int(obj0, &val1);
4528 if (!SWIG_IsOK(ecode1)) {
4529 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4530 }
4531 arg1 = static_cast< int >(val1);
4532 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4533 if (!SWIG_IsOK(res2)) {
4534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4535 }
4536 arg2 = reinterpret_cast< unsigned char * >(argp2);
4537 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4538 if (!SWIG_IsOK(res3)) {
4539 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4540 }
4541 arg3 = reinterpret_cast< unsigned char * >(argp3);
4542 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4543 if (!SWIG_IsOK(res4)) {
4544 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4545 }
4546 arg4 = reinterpret_cast< unsigned char * >(argp4);
4547 {
4548 if (!wxPyCheckForApp()) SWIG_fail;
4549 PyThreadState* __tstate = wxPyBeginAllowThreads();
4550 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4551 wxPyEndAllowThreads(__tstate);
4552 if (PyErr_Occurred()) SWIG_fail;
4553 }
4554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4555 return resultobj;
4556 fail:
4557 return NULL;
4558 }
4559
4560
4561 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4562 PyObject *resultobj = 0;
4563 wxPalette *arg1 = (wxPalette *) 0 ;
4564 void *argp1 = 0 ;
4565 int res1 = 0 ;
4566 PyObject *swig_obj[1] ;
4567
4568 if (!args) SWIG_fail;
4569 swig_obj[0] = args;
4570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4571 if (!SWIG_IsOK(res1)) {
4572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4573 }
4574 arg1 = reinterpret_cast< wxPalette * >(argp1);
4575 {
4576 PyThreadState* __tstate = wxPyBeginAllowThreads();
4577 delete arg1;
4578
4579 wxPyEndAllowThreads(__tstate);
4580 if (PyErr_Occurred()) SWIG_fail;
4581 }
4582 resultobj = SWIG_Py_Void();
4583 return resultobj;
4584 fail:
4585 return NULL;
4586 }
4587
4588
4589 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4590 PyObject *resultobj = 0;
4591 wxPalette *arg1 = (wxPalette *) 0 ;
4592 byte arg2 ;
4593 byte arg3 ;
4594 byte arg4 ;
4595 int result;
4596 void *argp1 = 0 ;
4597 int res1 = 0 ;
4598 unsigned char val2 ;
4599 int ecode2 = 0 ;
4600 unsigned char val3 ;
4601 int ecode3 = 0 ;
4602 unsigned char val4 ;
4603 int ecode4 = 0 ;
4604 PyObject * obj0 = 0 ;
4605 PyObject * obj1 = 0 ;
4606 PyObject * obj2 = 0 ;
4607 PyObject * obj3 = 0 ;
4608 char * kwnames[] = {
4609 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4610 };
4611
4612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4614 if (!SWIG_IsOK(res1)) {
4615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4616 }
4617 arg1 = reinterpret_cast< wxPalette * >(argp1);
4618 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4619 if (!SWIG_IsOK(ecode2)) {
4620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4621 }
4622 arg2 = static_cast< byte >(val2);
4623 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4624 if (!SWIG_IsOK(ecode3)) {
4625 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4626 }
4627 arg3 = static_cast< byte >(val3);
4628 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4629 if (!SWIG_IsOK(ecode4)) {
4630 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4631 }
4632 arg4 = static_cast< byte >(val4);
4633 {
4634 PyThreadState* __tstate = wxPyBeginAllowThreads();
4635 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4636 wxPyEndAllowThreads(__tstate);
4637 if (PyErr_Occurred()) SWIG_fail;
4638 }
4639 resultobj = SWIG_From_int(static_cast< int >(result));
4640 return resultobj;
4641 fail:
4642 return NULL;
4643 }
4644
4645
4646 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4647 PyObject *resultobj = 0;
4648 wxPalette *arg1 = (wxPalette *) 0 ;
4649 int arg2 ;
4650 byte *arg3 = (byte *) 0 ;
4651 byte *arg4 = (byte *) 0 ;
4652 byte *arg5 = (byte *) 0 ;
4653 bool result;
4654 void *argp1 = 0 ;
4655 int res1 = 0 ;
4656 int val2 ;
4657 int ecode2 = 0 ;
4658 byte temp3 ;
4659 int res3 = SWIG_TMPOBJ ;
4660 byte temp4 ;
4661 int res4 = SWIG_TMPOBJ ;
4662 byte temp5 ;
4663 int res5 = SWIG_TMPOBJ ;
4664 PyObject * obj0 = 0 ;
4665 PyObject * obj1 = 0 ;
4666 char * kwnames[] = {
4667 (char *) "self",(char *) "pixel", NULL
4668 };
4669
4670 arg3 = &temp3;
4671 arg4 = &temp4;
4672 arg5 = &temp5;
4673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4675 if (!SWIG_IsOK(res1)) {
4676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4677 }
4678 arg1 = reinterpret_cast< wxPalette * >(argp1);
4679 ecode2 = SWIG_AsVal_int(obj1, &val2);
4680 if (!SWIG_IsOK(ecode2)) {
4681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4682 }
4683 arg2 = static_cast< int >(val2);
4684 {
4685 PyThreadState* __tstate = wxPyBeginAllowThreads();
4686 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4687 wxPyEndAllowThreads(__tstate);
4688 if (PyErr_Occurred()) SWIG_fail;
4689 }
4690 {
4691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4692 }
4693 if (SWIG_IsTmpObj(res3)) {
4694 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4695 } else {
4696 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4697 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4698 }
4699 if (SWIG_IsTmpObj(res4)) {
4700 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4701 } else {
4702 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4703 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4704 }
4705 if (SWIG_IsTmpObj(res5)) {
4706 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4707 } else {
4708 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4709 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4710 }
4711 return resultobj;
4712 fail:
4713 return NULL;
4714 }
4715
4716
4717 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4718 PyObject *resultobj = 0;
4719 wxPalette *arg1 = (wxPalette *) 0 ;
4720 int result;
4721 void *argp1 = 0 ;
4722 int res1 = 0 ;
4723 PyObject *swig_obj[1] ;
4724
4725 if (!args) SWIG_fail;
4726 swig_obj[0] = args;
4727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4728 if (!SWIG_IsOK(res1)) {
4729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4730 }
4731 arg1 = reinterpret_cast< wxPalette * >(argp1);
4732 {
4733 PyThreadState* __tstate = wxPyBeginAllowThreads();
4734 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4735 wxPyEndAllowThreads(__tstate);
4736 if (PyErr_Occurred()) SWIG_fail;
4737 }
4738 resultobj = SWIG_From_int(static_cast< int >(result));
4739 return resultobj;
4740 fail:
4741 return NULL;
4742 }
4743
4744
4745 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4746 PyObject *resultobj = 0;
4747 wxPalette *arg1 = (wxPalette *) 0 ;
4748 bool result;
4749 void *argp1 = 0 ;
4750 int res1 = 0 ;
4751 PyObject *swig_obj[1] ;
4752
4753 if (!args) SWIG_fail;
4754 swig_obj[0] = args;
4755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4756 if (!SWIG_IsOK(res1)) {
4757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4758 }
4759 arg1 = reinterpret_cast< wxPalette * >(argp1);
4760 {
4761 PyThreadState* __tstate = wxPyBeginAllowThreads();
4762 result = (bool)(arg1)->IsOk();
4763 wxPyEndAllowThreads(__tstate);
4764 if (PyErr_Occurred()) SWIG_fail;
4765 }
4766 {
4767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4768 }
4769 return resultobj;
4770 fail:
4771 return NULL;
4772 }
4773
4774
4775 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4776 PyObject *obj;
4777 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4778 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4779 return SWIG_Py_Void();
4780 }
4781
4782 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4783 return SWIG_Python_InitShadowInstance(args);
4784 }
4785
4786 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4787 PyObject *resultobj = 0;
4788 wxColour *arg1 = 0 ;
4789 int arg2 = (int) 1 ;
4790 int arg3 = (int) wxSOLID ;
4791 wxPen *result = 0 ;
4792 wxColour temp1 ;
4793 int val2 ;
4794 int ecode2 = 0 ;
4795 int val3 ;
4796 int ecode3 = 0 ;
4797 PyObject * obj0 = 0 ;
4798 PyObject * obj1 = 0 ;
4799 PyObject * obj2 = 0 ;
4800 char * kwnames[] = {
4801 (char *) "colour",(char *) "width",(char *) "style", NULL
4802 };
4803
4804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4805 {
4806 arg1 = &temp1;
4807 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4808 }
4809 if (obj1) {
4810 ecode2 = SWIG_AsVal_int(obj1, &val2);
4811 if (!SWIG_IsOK(ecode2)) {
4812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4813 }
4814 arg2 = static_cast< int >(val2);
4815 }
4816 if (obj2) {
4817 ecode3 = SWIG_AsVal_int(obj2, &val3);
4818 if (!SWIG_IsOK(ecode3)) {
4819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4820 }
4821 arg3 = static_cast< int >(val3);
4822 }
4823 {
4824 if (!wxPyCheckForApp()) SWIG_fail;
4825 PyThreadState* __tstate = wxPyBeginAllowThreads();
4826 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4827 wxPyEndAllowThreads(__tstate);
4828 if (PyErr_Occurred()) SWIG_fail;
4829 }
4830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4831 return resultobj;
4832 fail:
4833 return NULL;
4834 }
4835
4836
4837 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4838 PyObject *resultobj = 0;
4839 wxPen *arg1 = (wxPen *) 0 ;
4840 void *argp1 = 0 ;
4841 int res1 = 0 ;
4842 PyObject *swig_obj[1] ;
4843
4844 if (!args) SWIG_fail;
4845 swig_obj[0] = args;
4846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4847 if (!SWIG_IsOK(res1)) {
4848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4849 }
4850 arg1 = reinterpret_cast< wxPen * >(argp1);
4851 {
4852 PyThreadState* __tstate = wxPyBeginAllowThreads();
4853 delete arg1;
4854
4855 wxPyEndAllowThreads(__tstate);
4856 if (PyErr_Occurred()) SWIG_fail;
4857 }
4858 resultobj = SWIG_Py_Void();
4859 return resultobj;
4860 fail:
4861 return NULL;
4862 }
4863
4864
4865 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4866 PyObject *resultobj = 0;
4867 wxPen *arg1 = (wxPen *) 0 ;
4868 int result;
4869 void *argp1 = 0 ;
4870 int res1 = 0 ;
4871 PyObject *swig_obj[1] ;
4872
4873 if (!args) SWIG_fail;
4874 swig_obj[0] = args;
4875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4876 if (!SWIG_IsOK(res1)) {
4877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4878 }
4879 arg1 = reinterpret_cast< wxPen * >(argp1);
4880 {
4881 PyThreadState* __tstate = wxPyBeginAllowThreads();
4882 result = (int)(arg1)->GetCap();
4883 wxPyEndAllowThreads(__tstate);
4884 if (PyErr_Occurred()) SWIG_fail;
4885 }
4886 resultobj = SWIG_From_int(static_cast< int >(result));
4887 return resultobj;
4888 fail:
4889 return NULL;
4890 }
4891
4892
4893 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4894 PyObject *resultobj = 0;
4895 wxPen *arg1 = (wxPen *) 0 ;
4896 wxColour result;
4897 void *argp1 = 0 ;
4898 int res1 = 0 ;
4899 PyObject *swig_obj[1] ;
4900
4901 if (!args) SWIG_fail;
4902 swig_obj[0] = args;
4903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4904 if (!SWIG_IsOK(res1)) {
4905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4906 }
4907 arg1 = reinterpret_cast< wxPen * >(argp1);
4908 {
4909 PyThreadState* __tstate = wxPyBeginAllowThreads();
4910 result = (arg1)->GetColour();
4911 wxPyEndAllowThreads(__tstate);
4912 if (PyErr_Occurred()) SWIG_fail;
4913 }
4914 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4915 return resultobj;
4916 fail:
4917 return NULL;
4918 }
4919
4920
4921 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4922 PyObject *resultobj = 0;
4923 wxPen *arg1 = (wxPen *) 0 ;
4924 int result;
4925 void *argp1 = 0 ;
4926 int res1 = 0 ;
4927 PyObject *swig_obj[1] ;
4928
4929 if (!args) SWIG_fail;
4930 swig_obj[0] = args;
4931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4932 if (!SWIG_IsOK(res1)) {
4933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4934 }
4935 arg1 = reinterpret_cast< wxPen * >(argp1);
4936 {
4937 PyThreadState* __tstate = wxPyBeginAllowThreads();
4938 result = (int)(arg1)->GetJoin();
4939 wxPyEndAllowThreads(__tstate);
4940 if (PyErr_Occurred()) SWIG_fail;
4941 }
4942 resultobj = SWIG_From_int(static_cast< int >(result));
4943 return resultobj;
4944 fail:
4945 return NULL;
4946 }
4947
4948
4949 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4950 PyObject *resultobj = 0;
4951 wxPen *arg1 = (wxPen *) 0 ;
4952 int result;
4953 void *argp1 = 0 ;
4954 int res1 = 0 ;
4955 PyObject *swig_obj[1] ;
4956
4957 if (!args) SWIG_fail;
4958 swig_obj[0] = args;
4959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4960 if (!SWIG_IsOK(res1)) {
4961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4962 }
4963 arg1 = reinterpret_cast< wxPen * >(argp1);
4964 {
4965 PyThreadState* __tstate = wxPyBeginAllowThreads();
4966 result = (int)(arg1)->GetStyle();
4967 wxPyEndAllowThreads(__tstate);
4968 if (PyErr_Occurred()) SWIG_fail;
4969 }
4970 resultobj = SWIG_From_int(static_cast< int >(result));
4971 return resultobj;
4972 fail:
4973 return NULL;
4974 }
4975
4976
4977 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4978 PyObject *resultobj = 0;
4979 wxPen *arg1 = (wxPen *) 0 ;
4980 int result;
4981 void *argp1 = 0 ;
4982 int res1 = 0 ;
4983 PyObject *swig_obj[1] ;
4984
4985 if (!args) SWIG_fail;
4986 swig_obj[0] = args;
4987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4988 if (!SWIG_IsOK(res1)) {
4989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4990 }
4991 arg1 = reinterpret_cast< wxPen * >(argp1);
4992 {
4993 PyThreadState* __tstate = wxPyBeginAllowThreads();
4994 result = (int)(arg1)->GetWidth();
4995 wxPyEndAllowThreads(__tstate);
4996 if (PyErr_Occurred()) SWIG_fail;
4997 }
4998 resultobj = SWIG_From_int(static_cast< int >(result));
4999 return resultobj;
5000 fail:
5001 return NULL;
5002 }
5003
5004
5005 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5006 PyObject *resultobj = 0;
5007 wxPen *arg1 = (wxPen *) 0 ;
5008 bool result;
5009 void *argp1 = 0 ;
5010 int res1 = 0 ;
5011 PyObject *swig_obj[1] ;
5012
5013 if (!args) SWIG_fail;
5014 swig_obj[0] = args;
5015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5016 if (!SWIG_IsOK(res1)) {
5017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5018 }
5019 arg1 = reinterpret_cast< wxPen * >(argp1);
5020 {
5021 PyThreadState* __tstate = wxPyBeginAllowThreads();
5022 result = (bool)(arg1)->IsOk();
5023 wxPyEndAllowThreads(__tstate);
5024 if (PyErr_Occurred()) SWIG_fail;
5025 }
5026 {
5027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5028 }
5029 return resultobj;
5030 fail:
5031 return NULL;
5032 }
5033
5034
5035 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5036 PyObject *resultobj = 0;
5037 wxPen *arg1 = (wxPen *) 0 ;
5038 int arg2 ;
5039 void *argp1 = 0 ;
5040 int res1 = 0 ;
5041 int val2 ;
5042 int ecode2 = 0 ;
5043 PyObject * obj0 = 0 ;
5044 PyObject * obj1 = 0 ;
5045 char * kwnames[] = {
5046 (char *) "self",(char *) "cap_style", NULL
5047 };
5048
5049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5051 if (!SWIG_IsOK(res1)) {
5052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5053 }
5054 arg1 = reinterpret_cast< wxPen * >(argp1);
5055 ecode2 = SWIG_AsVal_int(obj1, &val2);
5056 if (!SWIG_IsOK(ecode2)) {
5057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5058 }
5059 arg2 = static_cast< int >(val2);
5060 {
5061 PyThreadState* __tstate = wxPyBeginAllowThreads();
5062 (arg1)->SetCap(arg2);
5063 wxPyEndAllowThreads(__tstate);
5064 if (PyErr_Occurred()) SWIG_fail;
5065 }
5066 resultobj = SWIG_Py_Void();
5067 return resultobj;
5068 fail:
5069 return NULL;
5070 }
5071
5072
5073 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5074 PyObject *resultobj = 0;
5075 wxPen *arg1 = (wxPen *) 0 ;
5076 wxColour *arg2 = 0 ;
5077 void *argp1 = 0 ;
5078 int res1 = 0 ;
5079 wxColour temp2 ;
5080 PyObject * obj0 = 0 ;
5081 PyObject * obj1 = 0 ;
5082 char * kwnames[] = {
5083 (char *) "self",(char *) "colour", NULL
5084 };
5085
5086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5088 if (!SWIG_IsOK(res1)) {
5089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5090 }
5091 arg1 = reinterpret_cast< wxPen * >(argp1);
5092 {
5093 arg2 = &temp2;
5094 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5095 }
5096 {
5097 PyThreadState* __tstate = wxPyBeginAllowThreads();
5098 (arg1)->SetColour(*arg2);
5099 wxPyEndAllowThreads(__tstate);
5100 if (PyErr_Occurred()) SWIG_fail;
5101 }
5102 resultobj = SWIG_Py_Void();
5103 return resultobj;
5104 fail:
5105 return NULL;
5106 }
5107
5108
5109 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5110 PyObject *resultobj = 0;
5111 wxPen *arg1 = (wxPen *) 0 ;
5112 int arg2 ;
5113 void *argp1 = 0 ;
5114 int res1 = 0 ;
5115 int val2 ;
5116 int ecode2 = 0 ;
5117 PyObject * obj0 = 0 ;
5118 PyObject * obj1 = 0 ;
5119 char * kwnames[] = {
5120 (char *) "self",(char *) "join_style", NULL
5121 };
5122
5123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5125 if (!SWIG_IsOK(res1)) {
5126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5127 }
5128 arg1 = reinterpret_cast< wxPen * >(argp1);
5129 ecode2 = SWIG_AsVal_int(obj1, &val2);
5130 if (!SWIG_IsOK(ecode2)) {
5131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5132 }
5133 arg2 = static_cast< int >(val2);
5134 {
5135 PyThreadState* __tstate = wxPyBeginAllowThreads();
5136 (arg1)->SetJoin(arg2);
5137 wxPyEndAllowThreads(__tstate);
5138 if (PyErr_Occurred()) SWIG_fail;
5139 }
5140 resultobj = SWIG_Py_Void();
5141 return resultobj;
5142 fail:
5143 return NULL;
5144 }
5145
5146
5147 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5148 PyObject *resultobj = 0;
5149 wxPen *arg1 = (wxPen *) 0 ;
5150 int arg2 ;
5151 void *argp1 = 0 ;
5152 int res1 = 0 ;
5153 int val2 ;
5154 int ecode2 = 0 ;
5155 PyObject * obj0 = 0 ;
5156 PyObject * obj1 = 0 ;
5157 char * kwnames[] = {
5158 (char *) "self",(char *) "style", NULL
5159 };
5160
5161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5163 if (!SWIG_IsOK(res1)) {
5164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5165 }
5166 arg1 = reinterpret_cast< wxPen * >(argp1);
5167 ecode2 = SWIG_AsVal_int(obj1, &val2);
5168 if (!SWIG_IsOK(ecode2)) {
5169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5170 }
5171 arg2 = static_cast< int >(val2);
5172 {
5173 PyThreadState* __tstate = wxPyBeginAllowThreads();
5174 (arg1)->SetStyle(arg2);
5175 wxPyEndAllowThreads(__tstate);
5176 if (PyErr_Occurred()) SWIG_fail;
5177 }
5178 resultobj = SWIG_Py_Void();
5179 return resultobj;
5180 fail:
5181 return NULL;
5182 }
5183
5184
5185 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5186 PyObject *resultobj = 0;
5187 wxPen *arg1 = (wxPen *) 0 ;
5188 int arg2 ;
5189 void *argp1 = 0 ;
5190 int res1 = 0 ;
5191 int val2 ;
5192 int ecode2 = 0 ;
5193 PyObject * obj0 = 0 ;
5194 PyObject * obj1 = 0 ;
5195 char * kwnames[] = {
5196 (char *) "self",(char *) "width", NULL
5197 };
5198
5199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5201 if (!SWIG_IsOK(res1)) {
5202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5203 }
5204 arg1 = reinterpret_cast< wxPen * >(argp1);
5205 ecode2 = SWIG_AsVal_int(obj1, &val2);
5206 if (!SWIG_IsOK(ecode2)) {
5207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5208 }
5209 arg2 = static_cast< int >(val2);
5210 {
5211 PyThreadState* __tstate = wxPyBeginAllowThreads();
5212 (arg1)->SetWidth(arg2);
5213 wxPyEndAllowThreads(__tstate);
5214 if (PyErr_Occurred()) SWIG_fail;
5215 }
5216 resultobj = SWIG_Py_Void();
5217 return resultobj;
5218 fail:
5219 return NULL;
5220 }
5221
5222
5223 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5224 PyObject *resultobj = 0;
5225 wxPen *arg1 = (wxPen *) 0 ;
5226 int arg2 ;
5227 wxDash *arg3 = (wxDash *) 0 ;
5228 void *argp1 = 0 ;
5229 int res1 = 0 ;
5230 PyObject * obj0 = 0 ;
5231 PyObject * obj1 = 0 ;
5232 char * kwnames[] = {
5233 (char *) "self",(char *) "dashes", NULL
5234 };
5235
5236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5238 if (!SWIG_IsOK(res1)) {
5239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5240 }
5241 arg1 = reinterpret_cast< wxPen * >(argp1);
5242 {
5243 arg2 = PyList_Size(obj1);
5244 arg3 = (wxDash*)byte_LIST_helper(obj1);
5245 if (arg3 == NULL) SWIG_fail;
5246 }
5247 {
5248 PyThreadState* __tstate = wxPyBeginAllowThreads();
5249 (arg1)->SetDashes(arg2,arg3);
5250 wxPyEndAllowThreads(__tstate);
5251 if (PyErr_Occurred()) SWIG_fail;
5252 }
5253 resultobj = SWIG_Py_Void();
5254 {
5255 if (arg3) delete [] arg3;
5256 }
5257 return resultobj;
5258 fail:
5259 {
5260 if (arg3) delete [] arg3;
5261 }
5262 return NULL;
5263 }
5264
5265
5266 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5267 PyObject *resultobj = 0;
5268 wxPen *arg1 = (wxPen *) 0 ;
5269 PyObject *result = 0 ;
5270 void *argp1 = 0 ;
5271 int res1 = 0 ;
5272 PyObject *swig_obj[1] ;
5273
5274 if (!args) SWIG_fail;
5275 swig_obj[0] = args;
5276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5277 if (!SWIG_IsOK(res1)) {
5278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5279 }
5280 arg1 = reinterpret_cast< wxPen * >(argp1);
5281 {
5282 PyThreadState* __tstate = wxPyBeginAllowThreads();
5283 result = (PyObject *)wxPen_GetDashes(arg1);
5284 wxPyEndAllowThreads(__tstate);
5285 if (PyErr_Occurred()) SWIG_fail;
5286 }
5287 resultobj = result;
5288 return resultobj;
5289 fail:
5290 return NULL;
5291 }
5292
5293
5294 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5295 PyObject *resultobj = 0;
5296 wxPen *arg1 = (wxPen *) 0 ;
5297 PyObject *arg2 = (PyObject *) 0 ;
5298 PyObject *arg3 = (PyObject *) 0 ;
5299 void *argp1 = 0 ;
5300 int res1 = 0 ;
5301 PyObject * obj0 = 0 ;
5302 PyObject * obj1 = 0 ;
5303 PyObject * obj2 = 0 ;
5304 char * kwnames[] = {
5305 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5306 };
5307
5308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5310 if (!SWIG_IsOK(res1)) {
5311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5312 }
5313 arg1 = reinterpret_cast< wxPen * >(argp1);
5314 arg2 = obj1;
5315 arg3 = obj2;
5316 {
5317 PyThreadState* __tstate = wxPyBeginAllowThreads();
5318 wxPen__SetDashes(arg1,arg2,arg3);
5319 wxPyEndAllowThreads(__tstate);
5320 if (PyErr_Occurred()) SWIG_fail;
5321 }
5322 resultobj = SWIG_Py_Void();
5323 return resultobj;
5324 fail:
5325 return NULL;
5326 }
5327
5328
5329 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5330 PyObject *resultobj = 0;
5331 wxPen *arg1 = (wxPen *) 0 ;
5332 wxPen *arg2 = (wxPen *) 0 ;
5333 bool result;
5334 void *argp1 = 0 ;
5335 int res1 = 0 ;
5336 void *argp2 = 0 ;
5337 int res2 = 0 ;
5338 PyObject * obj0 = 0 ;
5339 PyObject * obj1 = 0 ;
5340 char * kwnames[] = {
5341 (char *) "self",(char *) "other", NULL
5342 };
5343
5344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5346 if (!SWIG_IsOK(res1)) {
5347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5348 }
5349 arg1 = reinterpret_cast< wxPen * >(argp1);
5350 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5351 if (!SWIG_IsOK(res2)) {
5352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5353 }
5354 arg2 = reinterpret_cast< wxPen * >(argp2);
5355 {
5356 PyThreadState* __tstate = wxPyBeginAllowThreads();
5357 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5358 wxPyEndAllowThreads(__tstate);
5359 if (PyErr_Occurred()) SWIG_fail;
5360 }
5361 {
5362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5363 }
5364 return resultobj;
5365 fail:
5366 return NULL;
5367 }
5368
5369
5370 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5371 PyObject *resultobj = 0;
5372 wxPen *arg1 = (wxPen *) 0 ;
5373 wxPen *arg2 = (wxPen *) 0 ;
5374 bool result;
5375 void *argp1 = 0 ;
5376 int res1 = 0 ;
5377 void *argp2 = 0 ;
5378 int res2 = 0 ;
5379 PyObject * obj0 = 0 ;
5380 PyObject * obj1 = 0 ;
5381 char * kwnames[] = {
5382 (char *) "self",(char *) "other", NULL
5383 };
5384
5385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5387 if (!SWIG_IsOK(res1)) {
5388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5389 }
5390 arg1 = reinterpret_cast< wxPen * >(argp1);
5391 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5392 if (!SWIG_IsOK(res2)) {
5393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5394 }
5395 arg2 = reinterpret_cast< wxPen * >(argp2);
5396 {
5397 PyThreadState* __tstate = wxPyBeginAllowThreads();
5398 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5399 wxPyEndAllowThreads(__tstate);
5400 if (PyErr_Occurred()) SWIG_fail;
5401 }
5402 {
5403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5404 }
5405 return resultobj;
5406 fail:
5407 return NULL;
5408 }
5409
5410
5411 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5412 PyObject *obj;
5413 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5414 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5415 return SWIG_Py_Void();
5416 }
5417
5418 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5419 return SWIG_Python_InitShadowInstance(args);
5420 }
5421
5422 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5423 PyObject *resultobj = 0;
5424 wxColour *arg1 = 0 ;
5425 int arg2 = (int) wxSOLID ;
5426 wxBrush *result = 0 ;
5427 wxColour temp1 ;
5428 int val2 ;
5429 int ecode2 = 0 ;
5430 PyObject * obj0 = 0 ;
5431 PyObject * obj1 = 0 ;
5432 char * kwnames[] = {
5433 (char *) "colour",(char *) "style", NULL
5434 };
5435
5436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5437 {
5438 arg1 = &temp1;
5439 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5440 }
5441 if (obj1) {
5442 ecode2 = SWIG_AsVal_int(obj1, &val2);
5443 if (!SWIG_IsOK(ecode2)) {
5444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5445 }
5446 arg2 = static_cast< int >(val2);
5447 }
5448 {
5449 if (!wxPyCheckForApp()) SWIG_fail;
5450 PyThreadState* __tstate = wxPyBeginAllowThreads();
5451 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5452 wxPyEndAllowThreads(__tstate);
5453 if (PyErr_Occurred()) SWIG_fail;
5454 }
5455 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5456 return resultobj;
5457 fail:
5458 return NULL;
5459 }
5460
5461
5462 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5463 PyObject *resultobj = 0;
5464 wxBitmap *arg1 = 0 ;
5465 wxBrush *result = 0 ;
5466 void *argp1 = 0 ;
5467 int res1 = 0 ;
5468 PyObject * obj0 = 0 ;
5469 char * kwnames[] = {
5470 (char *) "stippleBitmap", NULL
5471 };
5472
5473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5474 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5475 if (!SWIG_IsOK(res1)) {
5476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5477 }
5478 if (!argp1) {
5479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5480 }
5481 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5482 {
5483 if (!wxPyCheckForApp()) SWIG_fail;
5484 PyThreadState* __tstate = wxPyBeginAllowThreads();
5485 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5486 wxPyEndAllowThreads(__tstate);
5487 if (PyErr_Occurred()) SWIG_fail;
5488 }
5489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5490 return resultobj;
5491 fail:
5492 return NULL;
5493 }
5494
5495
5496 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5497 PyObject *resultobj = 0;
5498 wxBrush *arg1 = (wxBrush *) 0 ;
5499 void *argp1 = 0 ;
5500 int res1 = 0 ;
5501 PyObject *swig_obj[1] ;
5502
5503 if (!args) SWIG_fail;
5504 swig_obj[0] = args;
5505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5506 if (!SWIG_IsOK(res1)) {
5507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5508 }
5509 arg1 = reinterpret_cast< wxBrush * >(argp1);
5510 {
5511 PyThreadState* __tstate = wxPyBeginAllowThreads();
5512 delete arg1;
5513
5514 wxPyEndAllowThreads(__tstate);
5515 if (PyErr_Occurred()) SWIG_fail;
5516 }
5517 resultobj = SWIG_Py_Void();
5518 return resultobj;
5519 fail:
5520 return NULL;
5521 }
5522
5523
5524 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5525 PyObject *resultobj = 0;
5526 wxBrush *arg1 = (wxBrush *) 0 ;
5527 wxColour *arg2 = 0 ;
5528 void *argp1 = 0 ;
5529 int res1 = 0 ;
5530 wxColour temp2 ;
5531 PyObject * obj0 = 0 ;
5532 PyObject * obj1 = 0 ;
5533 char * kwnames[] = {
5534 (char *) "self",(char *) "col", NULL
5535 };
5536
5537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5539 if (!SWIG_IsOK(res1)) {
5540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5541 }
5542 arg1 = reinterpret_cast< wxBrush * >(argp1);
5543 {
5544 arg2 = &temp2;
5545 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5546 }
5547 {
5548 PyThreadState* __tstate = wxPyBeginAllowThreads();
5549 (arg1)->SetColour((wxColour const &)*arg2);
5550 wxPyEndAllowThreads(__tstate);
5551 if (PyErr_Occurred()) SWIG_fail;
5552 }
5553 resultobj = SWIG_Py_Void();
5554 return resultobj;
5555 fail:
5556 return NULL;
5557 }
5558
5559
5560 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5561 PyObject *resultobj = 0;
5562 wxBrush *arg1 = (wxBrush *) 0 ;
5563 int arg2 ;
5564 void *argp1 = 0 ;
5565 int res1 = 0 ;
5566 int val2 ;
5567 int ecode2 = 0 ;
5568 PyObject * obj0 = 0 ;
5569 PyObject * obj1 = 0 ;
5570 char * kwnames[] = {
5571 (char *) "self",(char *) "style", NULL
5572 };
5573
5574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5576 if (!SWIG_IsOK(res1)) {
5577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5578 }
5579 arg1 = reinterpret_cast< wxBrush * >(argp1);
5580 ecode2 = SWIG_AsVal_int(obj1, &val2);
5581 if (!SWIG_IsOK(ecode2)) {
5582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5583 }
5584 arg2 = static_cast< int >(val2);
5585 {
5586 PyThreadState* __tstate = wxPyBeginAllowThreads();
5587 (arg1)->SetStyle(arg2);
5588 wxPyEndAllowThreads(__tstate);
5589 if (PyErr_Occurred()) SWIG_fail;
5590 }
5591 resultobj = SWIG_Py_Void();
5592 return resultobj;
5593 fail:
5594 return NULL;
5595 }
5596
5597
5598 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5599 PyObject *resultobj = 0;
5600 wxBrush *arg1 = (wxBrush *) 0 ;
5601 wxBitmap *arg2 = 0 ;
5602 void *argp1 = 0 ;
5603 int res1 = 0 ;
5604 void *argp2 = 0 ;
5605 int res2 = 0 ;
5606 PyObject * obj0 = 0 ;
5607 PyObject * obj1 = 0 ;
5608 char * kwnames[] = {
5609 (char *) "self",(char *) "stipple", NULL
5610 };
5611
5612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5614 if (!SWIG_IsOK(res1)) {
5615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5616 }
5617 arg1 = reinterpret_cast< wxBrush * >(argp1);
5618 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5619 if (!SWIG_IsOK(res2)) {
5620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5621 }
5622 if (!argp2) {
5623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5624 }
5625 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5626 {
5627 PyThreadState* __tstate = wxPyBeginAllowThreads();
5628 (arg1)->SetStipple((wxBitmap const &)*arg2);
5629 wxPyEndAllowThreads(__tstate);
5630 if (PyErr_Occurred()) SWIG_fail;
5631 }
5632 resultobj = SWIG_Py_Void();
5633 return resultobj;
5634 fail:
5635 return NULL;
5636 }
5637
5638
5639 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5640 PyObject *resultobj = 0;
5641 wxBrush *arg1 = (wxBrush *) 0 ;
5642 wxColour result;
5643 void *argp1 = 0 ;
5644 int res1 = 0 ;
5645 PyObject *swig_obj[1] ;
5646
5647 if (!args) SWIG_fail;
5648 swig_obj[0] = args;
5649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5650 if (!SWIG_IsOK(res1)) {
5651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5652 }
5653 arg1 = reinterpret_cast< wxBrush * >(argp1);
5654 {
5655 PyThreadState* __tstate = wxPyBeginAllowThreads();
5656 result = ((wxBrush const *)arg1)->GetColour();
5657 wxPyEndAllowThreads(__tstate);
5658 if (PyErr_Occurred()) SWIG_fail;
5659 }
5660 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5661 return resultobj;
5662 fail:
5663 return NULL;
5664 }
5665
5666
5667 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5668 PyObject *resultobj = 0;
5669 wxBrush *arg1 = (wxBrush *) 0 ;
5670 int result;
5671 void *argp1 = 0 ;
5672 int res1 = 0 ;
5673 PyObject *swig_obj[1] ;
5674
5675 if (!args) SWIG_fail;
5676 swig_obj[0] = args;
5677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5678 if (!SWIG_IsOK(res1)) {
5679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5680 }
5681 arg1 = reinterpret_cast< wxBrush * >(argp1);
5682 {
5683 PyThreadState* __tstate = wxPyBeginAllowThreads();
5684 result = (int)((wxBrush const *)arg1)->GetStyle();
5685 wxPyEndAllowThreads(__tstate);
5686 if (PyErr_Occurred()) SWIG_fail;
5687 }
5688 resultobj = SWIG_From_int(static_cast< int >(result));
5689 return resultobj;
5690 fail:
5691 return NULL;
5692 }
5693
5694
5695 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5696 PyObject *resultobj = 0;
5697 wxBrush *arg1 = (wxBrush *) 0 ;
5698 wxBitmap *result = 0 ;
5699 void *argp1 = 0 ;
5700 int res1 = 0 ;
5701 PyObject *swig_obj[1] ;
5702
5703 if (!args) SWIG_fail;
5704 swig_obj[0] = args;
5705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5706 if (!SWIG_IsOK(res1)) {
5707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5708 }
5709 arg1 = reinterpret_cast< wxBrush * >(argp1);
5710 {
5711 PyThreadState* __tstate = wxPyBeginAllowThreads();
5712 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5713 wxPyEndAllowThreads(__tstate);
5714 if (PyErr_Occurred()) SWIG_fail;
5715 }
5716 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5717 return resultobj;
5718 fail:
5719 return NULL;
5720 }
5721
5722
5723 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5724 PyObject *resultobj = 0;
5725 wxBrush *arg1 = (wxBrush *) 0 ;
5726 bool result;
5727 void *argp1 = 0 ;
5728 int res1 = 0 ;
5729 PyObject *swig_obj[1] ;
5730
5731 if (!args) SWIG_fail;
5732 swig_obj[0] = args;
5733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5734 if (!SWIG_IsOK(res1)) {
5735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5736 }
5737 arg1 = reinterpret_cast< wxBrush * >(argp1);
5738 {
5739 PyThreadState* __tstate = wxPyBeginAllowThreads();
5740 result = (bool)((wxBrush const *)arg1)->IsHatch();
5741 wxPyEndAllowThreads(__tstate);
5742 if (PyErr_Occurred()) SWIG_fail;
5743 }
5744 {
5745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5746 }
5747 return resultobj;
5748 fail:
5749 return NULL;
5750 }
5751
5752
5753 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5754 PyObject *resultobj = 0;
5755 wxBrush *arg1 = (wxBrush *) 0 ;
5756 bool result;
5757 void *argp1 = 0 ;
5758 int res1 = 0 ;
5759 PyObject *swig_obj[1] ;
5760
5761 if (!args) SWIG_fail;
5762 swig_obj[0] = args;
5763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5764 if (!SWIG_IsOK(res1)) {
5765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
5766 }
5767 arg1 = reinterpret_cast< wxBrush * >(argp1);
5768 {
5769 PyThreadState* __tstate = wxPyBeginAllowThreads();
5770 result = (bool)(arg1)->IsOk();
5771 wxPyEndAllowThreads(__tstate);
5772 if (PyErr_Occurred()) SWIG_fail;
5773 }
5774 {
5775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5776 }
5777 return resultobj;
5778 fail:
5779 return NULL;
5780 }
5781
5782
5783 SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5784 PyObject *resultobj = 0;
5785 wxBrush *arg1 = (wxBrush *) 0 ;
5786 short result;
5787 void *argp1 = 0 ;
5788 int res1 = 0 ;
5789 PyObject *swig_obj[1] ;
5790
5791 if (!args) SWIG_fail;
5792 swig_obj[0] = args;
5793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5794 if (!SWIG_IsOK(res1)) {
5795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5796 }
5797 arg1 = reinterpret_cast< wxBrush * >(argp1);
5798 {
5799 PyThreadState* __tstate = wxPyBeginAllowThreads();
5800 result = (short)(arg1)->MacGetTheme();
5801 wxPyEndAllowThreads(__tstate);
5802 if (PyErr_Occurred()) SWIG_fail;
5803 }
5804 resultobj = SWIG_From_short(static_cast< short >(result));
5805 return resultobj;
5806 fail:
5807 return NULL;
5808 }
5809
5810
5811 SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5812 PyObject *resultobj = 0;
5813 wxBrush *arg1 = (wxBrush *) 0 ;
5814 short arg2 ;
5815 void *argp1 = 0 ;
5816 int res1 = 0 ;
5817 short val2 ;
5818 int ecode2 = 0 ;
5819 PyObject * obj0 = 0 ;
5820 PyObject * obj1 = 0 ;
5821 char * kwnames[] = {
5822 (char *) "self",(char *) "macThemeBrush", NULL
5823 };
5824
5825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
5826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5827 if (!SWIG_IsOK(res1)) {
5828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5829 }
5830 arg1 = reinterpret_cast< wxBrush * >(argp1);
5831 ecode2 = SWIG_AsVal_short(obj1, &val2);
5832 if (!SWIG_IsOK(ecode2)) {
5833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
5834 }
5835 arg2 = static_cast< short >(val2);
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 (arg1)->MacSetTheme(arg2);
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) SWIG_fail;
5841 }
5842 resultobj = SWIG_Py_Void();
5843 return resultobj;
5844 fail:
5845 return NULL;
5846 }
5847
5848
5849 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5850 PyObject *obj;
5851 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5852 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5853 return SWIG_Py_Void();
5854 }
5855
5856 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5857 return SWIG_Python_InitShadowInstance(args);
5858 }
5859
5860 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5861 PyObject *resultobj = 0;
5862 wxString *arg1 = 0 ;
5863 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5864 wxBitmap *result = 0 ;
5865 bool temp1 = false ;
5866 int val2 ;
5867 int ecode2 = 0 ;
5868 PyObject * obj0 = 0 ;
5869 PyObject * obj1 = 0 ;
5870 char * kwnames[] = {
5871 (char *) "name",(char *) "type", NULL
5872 };
5873
5874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5875 {
5876 arg1 = wxString_in_helper(obj0);
5877 if (arg1 == NULL) SWIG_fail;
5878 temp1 = true;
5879 }
5880 if (obj1) {
5881 ecode2 = SWIG_AsVal_int(obj1, &val2);
5882 if (!SWIG_IsOK(ecode2)) {
5883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5884 }
5885 arg2 = static_cast< wxBitmapType >(val2);
5886 }
5887 {
5888 if (!wxPyCheckForApp()) SWIG_fail;
5889 PyThreadState* __tstate = wxPyBeginAllowThreads();
5890 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5891 wxPyEndAllowThreads(__tstate);
5892 if (PyErr_Occurred()) SWIG_fail;
5893 }
5894 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5895 {
5896 if (temp1)
5897 delete arg1;
5898 }
5899 return resultobj;
5900 fail:
5901 {
5902 if (temp1)
5903 delete arg1;
5904 }
5905 return NULL;
5906 }
5907
5908
5909 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5910 PyObject *resultobj = 0;
5911 wxBitmap *arg1 = (wxBitmap *) 0 ;
5912 void *argp1 = 0 ;
5913 int res1 = 0 ;
5914 PyObject *swig_obj[1] ;
5915
5916 if (!args) SWIG_fail;
5917 swig_obj[0] = args;
5918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5919 if (!SWIG_IsOK(res1)) {
5920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5921 }
5922 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5923 {
5924 delete arg1;
5925
5926 if (PyErr_Occurred()) SWIG_fail;
5927 }
5928 resultobj = SWIG_Py_Void();
5929 return resultobj;
5930 fail:
5931 return NULL;
5932 }
5933
5934
5935 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5936 PyObject *resultobj = 0;
5937 int arg1 ;
5938 int arg2 ;
5939 int arg3 = (int) -1 ;
5940 wxBitmap *result = 0 ;
5941 int val1 ;
5942 int ecode1 = 0 ;
5943 int val2 ;
5944 int ecode2 = 0 ;
5945 int val3 ;
5946 int ecode3 = 0 ;
5947 PyObject * obj0 = 0 ;
5948 PyObject * obj1 = 0 ;
5949 PyObject * obj2 = 0 ;
5950 char * kwnames[] = {
5951 (char *) "width",(char *) "height",(char *) "depth", NULL
5952 };
5953
5954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5955 ecode1 = SWIG_AsVal_int(obj0, &val1);
5956 if (!SWIG_IsOK(ecode1)) {
5957 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5958 }
5959 arg1 = static_cast< int >(val1);
5960 ecode2 = SWIG_AsVal_int(obj1, &val2);
5961 if (!SWIG_IsOK(ecode2)) {
5962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5963 }
5964 arg2 = static_cast< int >(val2);
5965 if (obj2) {
5966 ecode3 = SWIG_AsVal_int(obj2, &val3);
5967 if (!SWIG_IsOK(ecode3)) {
5968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5969 }
5970 arg3 = static_cast< int >(val3);
5971 }
5972 {
5973 if (!wxPyCheckForApp()) SWIG_fail;
5974 PyThreadState* __tstate = wxPyBeginAllowThreads();
5975 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5976 wxPyEndAllowThreads(__tstate);
5977 if (PyErr_Occurred()) SWIG_fail;
5978 }
5979 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5980 return resultobj;
5981 fail:
5982 return NULL;
5983 }
5984
5985
5986 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5987 PyObject *resultobj = 0;
5988 wxIcon *arg1 = 0 ;
5989 wxBitmap *result = 0 ;
5990 void *argp1 = 0 ;
5991 int res1 = 0 ;
5992 PyObject * obj0 = 0 ;
5993 char * kwnames[] = {
5994 (char *) "icon", NULL
5995 };
5996
5997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5998 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5999 if (!SWIG_IsOK(res1)) {
6000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6001 }
6002 if (!argp1) {
6003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6004 }
6005 arg1 = reinterpret_cast< wxIcon * >(argp1);
6006 {
6007 if (!wxPyCheckForApp()) SWIG_fail;
6008 PyThreadState* __tstate = wxPyBeginAllowThreads();
6009 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6010 wxPyEndAllowThreads(__tstate);
6011 if (PyErr_Occurred()) SWIG_fail;
6012 }
6013 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6014 return resultobj;
6015 fail:
6016 return NULL;
6017 }
6018
6019
6020 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6021 PyObject *resultobj = 0;
6022 wxImage *arg1 = 0 ;
6023 int arg2 = (int) -1 ;
6024 wxBitmap *result = 0 ;
6025 void *argp1 = 0 ;
6026 int res1 = 0 ;
6027 int val2 ;
6028 int ecode2 = 0 ;
6029 PyObject * obj0 = 0 ;
6030 PyObject * obj1 = 0 ;
6031 char * kwnames[] = {
6032 (char *) "image",(char *) "depth", NULL
6033 };
6034
6035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6036 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6037 if (!SWIG_IsOK(res1)) {
6038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6039 }
6040 if (!argp1) {
6041 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6042 }
6043 arg1 = reinterpret_cast< wxImage * >(argp1);
6044 if (obj1) {
6045 ecode2 = SWIG_AsVal_int(obj1, &val2);
6046 if (!SWIG_IsOK(ecode2)) {
6047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6048 }
6049 arg2 = static_cast< int >(val2);
6050 }
6051 {
6052 if (!wxPyCheckForApp()) SWIG_fail;
6053 PyThreadState* __tstate = wxPyBeginAllowThreads();
6054 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6055 wxPyEndAllowThreads(__tstate);
6056 if (PyErr_Occurred()) SWIG_fail;
6057 }
6058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6059 return resultobj;
6060 fail:
6061 return NULL;
6062 }
6063
6064
6065 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6066 PyObject *resultobj = 0;
6067 PyObject *arg1 = (PyObject *) 0 ;
6068 wxBitmap *result = 0 ;
6069 PyObject * obj0 = 0 ;
6070 char * kwnames[] = {
6071 (char *) "listOfStrings", NULL
6072 };
6073
6074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6075 arg1 = obj0;
6076 {
6077 if (!wxPyCheckForApp()) SWIG_fail;
6078 PyThreadState* __tstate = wxPyBeginAllowThreads();
6079 result = (wxBitmap *)new_wxBitmap(arg1);
6080 wxPyEndAllowThreads(__tstate);
6081 if (PyErr_Occurred()) SWIG_fail;
6082 }
6083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6084 return resultobj;
6085 fail:
6086 return NULL;
6087 }
6088
6089
6090 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6091 PyObject *resultobj = 0;
6092 PyObject *arg1 = (PyObject *) 0 ;
6093 int arg2 ;
6094 int arg3 ;
6095 int arg4 = (int) 1 ;
6096 wxBitmap *result = 0 ;
6097 int val2 ;
6098 int ecode2 = 0 ;
6099 int val3 ;
6100 int ecode3 = 0 ;
6101 int val4 ;
6102 int ecode4 = 0 ;
6103 PyObject * obj0 = 0 ;
6104 PyObject * obj1 = 0 ;
6105 PyObject * obj2 = 0 ;
6106 PyObject * obj3 = 0 ;
6107 char * kwnames[] = {
6108 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6109 };
6110
6111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6112 arg1 = obj0;
6113 ecode2 = SWIG_AsVal_int(obj1, &val2);
6114 if (!SWIG_IsOK(ecode2)) {
6115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6116 }
6117 arg2 = static_cast< int >(val2);
6118 ecode3 = SWIG_AsVal_int(obj2, &val3);
6119 if (!SWIG_IsOK(ecode3)) {
6120 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6121 }
6122 arg3 = static_cast< int >(val3);
6123 if (obj3) {
6124 ecode4 = SWIG_AsVal_int(obj3, &val4);
6125 if (!SWIG_IsOK(ecode4)) {
6126 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6127 }
6128 arg4 = static_cast< int >(val4);
6129 }
6130 {
6131 if (!wxPyCheckForApp()) SWIG_fail;
6132 PyThreadState* __tstate = wxPyBeginAllowThreads();
6133 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6134 wxPyEndAllowThreads(__tstate);
6135 if (PyErr_Occurred()) SWIG_fail;
6136 }
6137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6138 return resultobj;
6139 fail:
6140 return NULL;
6141 }
6142
6143
6144 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6145 PyObject *resultobj = 0;
6146 wxBitmap *arg1 = (wxBitmap *) 0 ;
6147 bool result;
6148 void *argp1 = 0 ;
6149 int res1 = 0 ;
6150 PyObject *swig_obj[1] ;
6151
6152 if (!args) SWIG_fail;
6153 swig_obj[0] = args;
6154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6155 if (!SWIG_IsOK(res1)) {
6156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6157 }
6158 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6159 {
6160 result = (bool)(arg1)->IsOk();
6161 if (PyErr_Occurred()) SWIG_fail;
6162 }
6163 {
6164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6165 }
6166 return resultobj;
6167 fail:
6168 return NULL;
6169 }
6170
6171
6172 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6173 PyObject *resultobj = 0;
6174 wxBitmap *arg1 = (wxBitmap *) 0 ;
6175 int result;
6176 void *argp1 = 0 ;
6177 int res1 = 0 ;
6178 PyObject *swig_obj[1] ;
6179
6180 if (!args) SWIG_fail;
6181 swig_obj[0] = args;
6182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6183 if (!SWIG_IsOK(res1)) {
6184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6185 }
6186 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6187 {
6188 result = (int)(arg1)->GetWidth();
6189 if (PyErr_Occurred()) SWIG_fail;
6190 }
6191 resultobj = SWIG_From_int(static_cast< int >(result));
6192 return resultobj;
6193 fail:
6194 return NULL;
6195 }
6196
6197
6198 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6199 PyObject *resultobj = 0;
6200 wxBitmap *arg1 = (wxBitmap *) 0 ;
6201 int result;
6202 void *argp1 = 0 ;
6203 int res1 = 0 ;
6204 PyObject *swig_obj[1] ;
6205
6206 if (!args) SWIG_fail;
6207 swig_obj[0] = args;
6208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6209 if (!SWIG_IsOK(res1)) {
6210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6211 }
6212 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6213 {
6214 result = (int)(arg1)->GetHeight();
6215 if (PyErr_Occurred()) SWIG_fail;
6216 }
6217 resultobj = SWIG_From_int(static_cast< int >(result));
6218 return resultobj;
6219 fail:
6220 return NULL;
6221 }
6222
6223
6224 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6225 PyObject *resultobj = 0;
6226 wxBitmap *arg1 = (wxBitmap *) 0 ;
6227 int result;
6228 void *argp1 = 0 ;
6229 int res1 = 0 ;
6230 PyObject *swig_obj[1] ;
6231
6232 if (!args) SWIG_fail;
6233 swig_obj[0] = args;
6234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6235 if (!SWIG_IsOK(res1)) {
6236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6237 }
6238 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6239 {
6240 result = (int)(arg1)->GetDepth();
6241 if (PyErr_Occurred()) SWIG_fail;
6242 }
6243 resultobj = SWIG_From_int(static_cast< int >(result));
6244 return resultobj;
6245 fail:
6246 return NULL;
6247 }
6248
6249
6250 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6251 PyObject *resultobj = 0;
6252 wxBitmap *arg1 = (wxBitmap *) 0 ;
6253 wxSize result;
6254 void *argp1 = 0 ;
6255 int res1 = 0 ;
6256 PyObject *swig_obj[1] ;
6257
6258 if (!args) SWIG_fail;
6259 swig_obj[0] = args;
6260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6261 if (!SWIG_IsOK(res1)) {
6262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6263 }
6264 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6265 {
6266 result = wxBitmap_GetSize(arg1);
6267 if (PyErr_Occurred()) SWIG_fail;
6268 }
6269 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6270 return resultobj;
6271 fail:
6272 return NULL;
6273 }
6274
6275
6276 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6277 PyObject *resultobj = 0;
6278 wxBitmap *arg1 = (wxBitmap *) 0 ;
6279 SwigValueWrapper<wxImage > result;
6280 void *argp1 = 0 ;
6281 int res1 = 0 ;
6282 PyObject *swig_obj[1] ;
6283
6284 if (!args) SWIG_fail;
6285 swig_obj[0] = args;
6286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6287 if (!SWIG_IsOK(res1)) {
6288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6289 }
6290 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6291 {
6292 result = ((wxBitmap const *)arg1)->ConvertToImage();
6293 if (PyErr_Occurred()) SWIG_fail;
6294 }
6295 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6296 return resultobj;
6297 fail:
6298 return NULL;
6299 }
6300
6301
6302 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6303 PyObject *resultobj = 0;
6304 wxBitmap *arg1 = (wxBitmap *) 0 ;
6305 wxMask *result = 0 ;
6306 void *argp1 = 0 ;
6307 int res1 = 0 ;
6308 PyObject *swig_obj[1] ;
6309
6310 if (!args) SWIG_fail;
6311 swig_obj[0] = args;
6312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6313 if (!SWIG_IsOK(res1)) {
6314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6315 }
6316 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6317 {
6318 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6319 if (PyErr_Occurred()) SWIG_fail;
6320 }
6321 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6322 return resultobj;
6323 fail:
6324 return NULL;
6325 }
6326
6327
6328 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6329 PyObject *resultobj = 0;
6330 wxBitmap *arg1 = (wxBitmap *) 0 ;
6331 wxMask *arg2 = (wxMask *) 0 ;
6332 void *argp1 = 0 ;
6333 int res1 = 0 ;
6334 int res2 = 0 ;
6335 PyObject * obj0 = 0 ;
6336 PyObject * obj1 = 0 ;
6337 char * kwnames[] = {
6338 (char *) "self",(char *) "mask", NULL
6339 };
6340
6341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6343 if (!SWIG_IsOK(res1)) {
6344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6345 }
6346 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6347 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6348 if (!SWIG_IsOK(res2)) {
6349 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6350 }
6351 {
6352 (arg1)->SetMask(arg2);
6353 if (PyErr_Occurred()) SWIG_fail;
6354 }
6355 resultobj = SWIG_Py_Void();
6356 return resultobj;
6357 fail:
6358 return NULL;
6359 }
6360
6361
6362 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6363 PyObject *resultobj = 0;
6364 wxBitmap *arg1 = (wxBitmap *) 0 ;
6365 wxColour *arg2 = 0 ;
6366 void *argp1 = 0 ;
6367 int res1 = 0 ;
6368 wxColour temp2 ;
6369 PyObject * obj0 = 0 ;
6370 PyObject * obj1 = 0 ;
6371 char * kwnames[] = {
6372 (char *) "self",(char *) "colour", NULL
6373 };
6374
6375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6377 if (!SWIG_IsOK(res1)) {
6378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6379 }
6380 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6381 {
6382 arg2 = &temp2;
6383 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6384 }
6385 {
6386 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6387 if (PyErr_Occurred()) SWIG_fail;
6388 }
6389 resultobj = SWIG_Py_Void();
6390 return resultobj;
6391 fail:
6392 return NULL;
6393 }
6394
6395
6396 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6397 PyObject *resultobj = 0;
6398 wxBitmap *arg1 = (wxBitmap *) 0 ;
6399 wxRect *arg2 = 0 ;
6400 SwigValueWrapper<wxBitmap > result;
6401 void *argp1 = 0 ;
6402 int res1 = 0 ;
6403 wxRect temp2 ;
6404 PyObject * obj0 = 0 ;
6405 PyObject * obj1 = 0 ;
6406 char * kwnames[] = {
6407 (char *) "self",(char *) "rect", NULL
6408 };
6409
6410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6412 if (!SWIG_IsOK(res1)) {
6413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6414 }
6415 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6416 {
6417 arg2 = &temp2;
6418 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6419 }
6420 {
6421 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6422 if (PyErr_Occurred()) SWIG_fail;
6423 }
6424 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6425 return resultobj;
6426 fail:
6427 return NULL;
6428 }
6429
6430
6431 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6432 PyObject *resultobj = 0;
6433 wxBitmap *arg1 = (wxBitmap *) 0 ;
6434 wxString *arg2 = 0 ;
6435 wxBitmapType arg3 ;
6436 wxPalette *arg4 = (wxPalette *) NULL ;
6437 bool result;
6438 void *argp1 = 0 ;
6439 int res1 = 0 ;
6440 bool temp2 = false ;
6441 int val3 ;
6442 int ecode3 = 0 ;
6443 void *argp4 = 0 ;
6444 int res4 = 0 ;
6445 PyObject * obj0 = 0 ;
6446 PyObject * obj1 = 0 ;
6447 PyObject * obj2 = 0 ;
6448 PyObject * obj3 = 0 ;
6449 char * kwnames[] = {
6450 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6451 };
6452
6453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6455 if (!SWIG_IsOK(res1)) {
6456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6457 }
6458 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6459 {
6460 arg2 = wxString_in_helper(obj1);
6461 if (arg2 == NULL) SWIG_fail;
6462 temp2 = true;
6463 }
6464 ecode3 = SWIG_AsVal_int(obj2, &val3);
6465 if (!SWIG_IsOK(ecode3)) {
6466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6467 }
6468 arg3 = static_cast< wxBitmapType >(val3);
6469 if (obj3) {
6470 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6471 if (!SWIG_IsOK(res4)) {
6472 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6473 }
6474 arg4 = reinterpret_cast< wxPalette * >(argp4);
6475 }
6476 {
6477 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6478 if (PyErr_Occurred()) SWIG_fail;
6479 }
6480 {
6481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6482 }
6483 {
6484 if (temp2)
6485 delete arg2;
6486 }
6487 return resultobj;
6488 fail:
6489 {
6490 if (temp2)
6491 delete arg2;
6492 }
6493 return NULL;
6494 }
6495
6496
6497 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6498 PyObject *resultobj = 0;
6499 wxBitmap *arg1 = (wxBitmap *) 0 ;
6500 wxString *arg2 = 0 ;
6501 wxBitmapType arg3 ;
6502 bool result;
6503 void *argp1 = 0 ;
6504 int res1 = 0 ;
6505 bool temp2 = false ;
6506 int val3 ;
6507 int ecode3 = 0 ;
6508 PyObject * obj0 = 0 ;
6509 PyObject * obj1 = 0 ;
6510 PyObject * obj2 = 0 ;
6511 char * kwnames[] = {
6512 (char *) "self",(char *) "name",(char *) "type", NULL
6513 };
6514
6515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6517 if (!SWIG_IsOK(res1)) {
6518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6519 }
6520 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6521 {
6522 arg2 = wxString_in_helper(obj1);
6523 if (arg2 == NULL) SWIG_fail;
6524 temp2 = true;
6525 }
6526 ecode3 = SWIG_AsVal_int(obj2, &val3);
6527 if (!SWIG_IsOK(ecode3)) {
6528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6529 }
6530 arg3 = static_cast< wxBitmapType >(val3);
6531 {
6532 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6533 if (PyErr_Occurred()) SWIG_fail;
6534 }
6535 {
6536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6537 }
6538 {
6539 if (temp2)
6540 delete arg2;
6541 }
6542 return resultobj;
6543 fail:
6544 {
6545 if (temp2)
6546 delete arg2;
6547 }
6548 return NULL;
6549 }
6550
6551
6552 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6553 PyObject *resultobj = 0;
6554 wxBitmap *arg1 = (wxBitmap *) 0 ;
6555 wxPalette *result = 0 ;
6556 void *argp1 = 0 ;
6557 int res1 = 0 ;
6558 PyObject *swig_obj[1] ;
6559
6560 if (!args) SWIG_fail;
6561 swig_obj[0] = args;
6562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6563 if (!SWIG_IsOK(res1)) {
6564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6565 }
6566 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6567 {
6568 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6569 if (PyErr_Occurred()) SWIG_fail;
6570 }
6571 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6572 return resultobj;
6573 fail:
6574 return NULL;
6575 }
6576
6577
6578 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6579 PyObject *resultobj = 0;
6580 wxBitmap *arg1 = (wxBitmap *) 0 ;
6581 wxIcon *arg2 = 0 ;
6582 bool result;
6583 void *argp1 = 0 ;
6584 int res1 = 0 ;
6585 void *argp2 = 0 ;
6586 int res2 = 0 ;
6587 PyObject * obj0 = 0 ;
6588 PyObject * obj1 = 0 ;
6589 char * kwnames[] = {
6590 (char *) "self",(char *) "icon", NULL
6591 };
6592
6593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6595 if (!SWIG_IsOK(res1)) {
6596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6597 }
6598 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6599 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6600 if (!SWIG_IsOK(res2)) {
6601 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6602 }
6603 if (!argp2) {
6604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6605 }
6606 arg2 = reinterpret_cast< wxIcon * >(argp2);
6607 {
6608 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6609 if (PyErr_Occurred()) SWIG_fail;
6610 }
6611 {
6612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6613 }
6614 return resultobj;
6615 fail:
6616 return NULL;
6617 }
6618
6619
6620 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6621 PyObject *resultobj = 0;
6622 wxBitmap *arg1 = (wxBitmap *) 0 ;
6623 int arg2 ;
6624 void *argp1 = 0 ;
6625 int res1 = 0 ;
6626 int val2 ;
6627 int ecode2 = 0 ;
6628 PyObject * obj0 = 0 ;
6629 PyObject * obj1 = 0 ;
6630 char * kwnames[] = {
6631 (char *) "self",(char *) "height", NULL
6632 };
6633
6634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6636 if (!SWIG_IsOK(res1)) {
6637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6638 }
6639 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6640 ecode2 = SWIG_AsVal_int(obj1, &val2);
6641 if (!SWIG_IsOK(ecode2)) {
6642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6643 }
6644 arg2 = static_cast< int >(val2);
6645 {
6646 (arg1)->SetHeight(arg2);
6647 if (PyErr_Occurred()) SWIG_fail;
6648 }
6649 resultobj = SWIG_Py_Void();
6650 return resultobj;
6651 fail:
6652 return NULL;
6653 }
6654
6655
6656 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6657 PyObject *resultobj = 0;
6658 wxBitmap *arg1 = (wxBitmap *) 0 ;
6659 int arg2 ;
6660 void *argp1 = 0 ;
6661 int res1 = 0 ;
6662 int val2 ;
6663 int ecode2 = 0 ;
6664 PyObject * obj0 = 0 ;
6665 PyObject * obj1 = 0 ;
6666 char * kwnames[] = {
6667 (char *) "self",(char *) "width", NULL
6668 };
6669
6670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6672 if (!SWIG_IsOK(res1)) {
6673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6674 }
6675 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6676 ecode2 = SWIG_AsVal_int(obj1, &val2);
6677 if (!SWIG_IsOK(ecode2)) {
6678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6679 }
6680 arg2 = static_cast< int >(val2);
6681 {
6682 (arg1)->SetWidth(arg2);
6683 if (PyErr_Occurred()) SWIG_fail;
6684 }
6685 resultobj = SWIG_Py_Void();
6686 return resultobj;
6687 fail:
6688 return NULL;
6689 }
6690
6691
6692 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6693 PyObject *resultobj = 0;
6694 wxBitmap *arg1 = (wxBitmap *) 0 ;
6695 int arg2 ;
6696 void *argp1 = 0 ;
6697 int res1 = 0 ;
6698 int val2 ;
6699 int ecode2 = 0 ;
6700 PyObject * obj0 = 0 ;
6701 PyObject * obj1 = 0 ;
6702 char * kwnames[] = {
6703 (char *) "self",(char *) "depth", NULL
6704 };
6705
6706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6708 if (!SWIG_IsOK(res1)) {
6709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6710 }
6711 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6712 ecode2 = SWIG_AsVal_int(obj1, &val2);
6713 if (!SWIG_IsOK(ecode2)) {
6714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6715 }
6716 arg2 = static_cast< int >(val2);
6717 {
6718 (arg1)->SetDepth(arg2);
6719 if (PyErr_Occurred()) SWIG_fail;
6720 }
6721 resultobj = SWIG_Py_Void();
6722 return resultobj;
6723 fail:
6724 return NULL;
6725 }
6726
6727
6728 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6729 PyObject *resultobj = 0;
6730 wxBitmap *arg1 = (wxBitmap *) 0 ;
6731 wxSize *arg2 = 0 ;
6732 void *argp1 = 0 ;
6733 int res1 = 0 ;
6734 wxSize temp2 ;
6735 PyObject * obj0 = 0 ;
6736 PyObject * obj1 = 0 ;
6737 char * kwnames[] = {
6738 (char *) "self",(char *) "size", NULL
6739 };
6740
6741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6743 if (!SWIG_IsOK(res1)) {
6744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6745 }
6746 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6747 {
6748 arg2 = &temp2;
6749 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6750 }
6751 {
6752 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6753 if (PyErr_Occurred()) SWIG_fail;
6754 }
6755 resultobj = SWIG_Py_Void();
6756 return resultobj;
6757 fail:
6758 return NULL;
6759 }
6760
6761
6762 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6763 PyObject *resultobj = 0;
6764 wxBitmap *arg1 = (wxBitmap *) 0 ;
6765 wxBitmap *arg2 = (wxBitmap *) 0 ;
6766 bool result;
6767 void *argp1 = 0 ;
6768 int res1 = 0 ;
6769 void *argp2 = 0 ;
6770 int res2 = 0 ;
6771 PyObject * obj0 = 0 ;
6772 PyObject * obj1 = 0 ;
6773 char * kwnames[] = {
6774 (char *) "self",(char *) "other", NULL
6775 };
6776
6777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6779 if (!SWIG_IsOK(res1)) {
6780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6781 }
6782 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6783 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6784 if (!SWIG_IsOK(res2)) {
6785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6786 }
6787 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6788 {
6789 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6790 if (PyErr_Occurred()) SWIG_fail;
6791 }
6792 {
6793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6794 }
6795 return resultobj;
6796 fail:
6797 return NULL;
6798 }
6799
6800
6801 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6802 PyObject *resultobj = 0;
6803 wxBitmap *arg1 = (wxBitmap *) 0 ;
6804 wxBitmap *arg2 = (wxBitmap *) 0 ;
6805 bool result;
6806 void *argp1 = 0 ;
6807 int res1 = 0 ;
6808 void *argp2 = 0 ;
6809 int res2 = 0 ;
6810 PyObject * obj0 = 0 ;
6811 PyObject * obj1 = 0 ;
6812 char * kwnames[] = {
6813 (char *) "self",(char *) "other", NULL
6814 };
6815
6816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6818 if (!SWIG_IsOK(res1)) {
6819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6820 }
6821 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6822 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6823 if (!SWIG_IsOK(res2)) {
6824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6825 }
6826 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6827 {
6828 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6829 if (PyErr_Occurred()) SWIG_fail;
6830 }
6831 {
6832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6833 }
6834 return resultobj;
6835 fail:
6836 return NULL;
6837 }
6838
6839
6840 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6841 PyObject *obj;
6842 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6843 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6844 return SWIG_Py_Void();
6845 }
6846
6847 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6848 return SWIG_Python_InitShadowInstance(args);
6849 }
6850
6851 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6852 PyObject *resultobj = 0;
6853 int arg1 ;
6854 int arg2 ;
6855 buffer arg3 ;
6856 int arg4 ;
6857 buffer arg5 ;
6858 int arg6 ;
6859 wxBitmap *result = 0 ;
6860 int val1 ;
6861 int ecode1 = 0 ;
6862 int val2 ;
6863 int ecode2 = 0 ;
6864 Py_ssize_t temp3 ;
6865 Py_ssize_t temp5 ;
6866 PyObject * obj0 = 0 ;
6867 PyObject * obj1 = 0 ;
6868 PyObject * obj2 = 0 ;
6869 PyObject * obj3 = 0 ;
6870 char * kwnames[] = {
6871 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6872 };
6873
6874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6875 ecode1 = SWIG_AsVal_int(obj0, &val1);
6876 if (!SWIG_IsOK(ecode1)) {
6877 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6878 }
6879 arg1 = static_cast< int >(val1);
6880 ecode2 = SWIG_AsVal_int(obj1, &val2);
6881 if (!SWIG_IsOK(ecode2)) {
6882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6883 }
6884 arg2 = static_cast< int >(val2);
6885 {
6886 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6887 arg4 = (int)temp3;
6888 }
6889 {
6890 if (obj3 != Py_None) {
6891 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6892 arg6 = (int)temp5;
6893 }
6894 }
6895 {
6896 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6897 if (PyErr_Occurred()) SWIG_fail;
6898 }
6899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6900 return resultobj;
6901 fail:
6902 return NULL;
6903 }
6904
6905
6906 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6907 PyObject *resultobj = 0;
6908 int arg1 ;
6909 int arg2 ;
6910 buffer arg3 ;
6911 int arg4 ;
6912 wxBitmap *result = 0 ;
6913 int val1 ;
6914 int ecode1 = 0 ;
6915 int val2 ;
6916 int ecode2 = 0 ;
6917 Py_ssize_t temp3 ;
6918 PyObject * obj0 = 0 ;
6919 PyObject * obj1 = 0 ;
6920 PyObject * obj2 = 0 ;
6921 char * kwnames[] = {
6922 (char *) "width",(char *) "height",(char *) "data", NULL
6923 };
6924
6925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6926 ecode1 = SWIG_AsVal_int(obj0, &val1);
6927 if (!SWIG_IsOK(ecode1)) {
6928 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6929 }
6930 arg1 = static_cast< int >(val1);
6931 ecode2 = SWIG_AsVal_int(obj1, &val2);
6932 if (!SWIG_IsOK(ecode2)) {
6933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6934 }
6935 arg2 = static_cast< int >(val2);
6936 {
6937 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6938 arg4 = (int)temp3;
6939 }
6940 {
6941 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6942 if (PyErr_Occurred()) SWIG_fail;
6943 }
6944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6945 return resultobj;
6946 fail:
6947 return NULL;
6948 }
6949
6950
6951 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6952 PyObject *resultobj = 0;
6953 int arg1 ;
6954 int arg2 ;
6955 buffer arg3 ;
6956 int arg4 ;
6957 wxBitmap *result = 0 ;
6958 int val1 ;
6959 int ecode1 = 0 ;
6960 int val2 ;
6961 int ecode2 = 0 ;
6962 Py_ssize_t temp3 ;
6963 PyObject * obj0 = 0 ;
6964 PyObject * obj1 = 0 ;
6965 PyObject * obj2 = 0 ;
6966 char * kwnames[] = {
6967 (char *) "width",(char *) "height",(char *) "data", NULL
6968 };
6969
6970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6971 ecode1 = SWIG_AsVal_int(obj0, &val1);
6972 if (!SWIG_IsOK(ecode1)) {
6973 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6974 }
6975 arg1 = static_cast< int >(val1);
6976 ecode2 = SWIG_AsVal_int(obj1, &val2);
6977 if (!SWIG_IsOK(ecode2)) {
6978 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6979 }
6980 arg2 = static_cast< int >(val2);
6981 {
6982 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6983 arg4 = (int)temp3;
6984 }
6985 {
6986 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6987 if (PyErr_Occurred()) SWIG_fail;
6988 }
6989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6990 return resultobj;
6991 fail:
6992 return NULL;
6993 }
6994
6995
6996 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6997 PyObject *resultobj = 0;
6998 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6999 wxPoint result;
7000 void *argp1 = 0 ;
7001 int res1 = 0 ;
7002 PyObject *swig_obj[1] ;
7003
7004 if (!args) SWIG_fail;
7005 swig_obj[0] = args;
7006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7007 if (!SWIG_IsOK(res1)) {
7008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7009 }
7010 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7011 {
7012 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7013 if (PyErr_Occurred()) SWIG_fail;
7014 }
7015 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7016 return resultobj;
7017 fail:
7018 return NULL;
7019 }
7020
7021
7022 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7023 PyObject *resultobj = 0;
7024 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7025 int result;
7026 void *argp1 = 0 ;
7027 int res1 = 0 ;
7028 PyObject *swig_obj[1] ;
7029
7030 if (!args) SWIG_fail;
7031 swig_obj[0] = args;
7032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7033 if (!SWIG_IsOK(res1)) {
7034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7035 }
7036 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7037 {
7038 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7039 if (PyErr_Occurred()) SWIG_fail;
7040 }
7041 resultobj = SWIG_From_int(static_cast< int >(result));
7042 return resultobj;
7043 fail:
7044 return NULL;
7045 }
7046
7047
7048 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7049 PyObject *resultobj = 0;
7050 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7051 int result;
7052 void *argp1 = 0 ;
7053 int res1 = 0 ;
7054 PyObject *swig_obj[1] ;
7055
7056 if (!args) SWIG_fail;
7057 swig_obj[0] = args;
7058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7059 if (!SWIG_IsOK(res1)) {
7060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7061 }
7062 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7063 {
7064 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7065 if (PyErr_Occurred()) SWIG_fail;
7066 }
7067 resultobj = SWIG_From_int(static_cast< int >(result));
7068 return resultobj;
7069 fail:
7070 return NULL;
7071 }
7072
7073
7074 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7075 PyObject *resultobj = 0;
7076 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7077 wxSize result;
7078 void *argp1 = 0 ;
7079 int res1 = 0 ;
7080 PyObject *swig_obj[1] ;
7081
7082 if (!args) SWIG_fail;
7083 swig_obj[0] = args;
7084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7085 if (!SWIG_IsOK(res1)) {
7086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7087 }
7088 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7089 {
7090 result = ((wxPixelDataBase const *)arg1)->GetSize();
7091 if (PyErr_Occurred()) SWIG_fail;
7092 }
7093 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7094 return resultobj;
7095 fail:
7096 return NULL;
7097 }
7098
7099
7100 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7101 PyObject *resultobj = 0;
7102 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7103 int result;
7104 void *argp1 = 0 ;
7105 int res1 = 0 ;
7106 PyObject *swig_obj[1] ;
7107
7108 if (!args) SWIG_fail;
7109 swig_obj[0] = args;
7110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7111 if (!SWIG_IsOK(res1)) {
7112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7113 }
7114 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7115 {
7116 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7117 if (PyErr_Occurred()) SWIG_fail;
7118 }
7119 resultobj = SWIG_From_int(static_cast< int >(result));
7120 return resultobj;
7121 fail:
7122 return NULL;
7123 }
7124
7125
7126 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7127 PyObject *obj;
7128 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7129 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7130 return SWIG_Py_Void();
7131 }
7132
7133 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7134 PyObject *resultobj = 0;
7135 wxBitmap *arg1 = 0 ;
7136 wxNativePixelData *result = 0 ;
7137 void *argp1 = 0 ;
7138 int res1 = 0 ;
7139
7140 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7142 if (!SWIG_IsOK(res1)) {
7143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7144 }
7145 if (!argp1) {
7146 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7147 }
7148 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7149 {
7150 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7151 if (PyErr_Occurred()) SWIG_fail;
7152 }
7153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7154 return resultobj;
7155 fail:
7156 return NULL;
7157 }
7158
7159
7160 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7161 PyObject *resultobj = 0;
7162 wxBitmap *arg1 = 0 ;
7163 wxRect *arg2 = 0 ;
7164 wxNativePixelData *result = 0 ;
7165 void *argp1 = 0 ;
7166 int res1 = 0 ;
7167 wxRect temp2 ;
7168
7169 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7171 if (!SWIG_IsOK(res1)) {
7172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7173 }
7174 if (!argp1) {
7175 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7176 }
7177 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7178 {
7179 arg2 = &temp2;
7180 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7181 }
7182 {
7183 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7184 if (PyErr_Occurred()) SWIG_fail;
7185 }
7186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7187 return resultobj;
7188 fail:
7189 return NULL;
7190 }
7191
7192
7193 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7194 PyObject *resultobj = 0;
7195 wxBitmap *arg1 = 0 ;
7196 wxPoint *arg2 = 0 ;
7197 wxSize *arg3 = 0 ;
7198 wxNativePixelData *result = 0 ;
7199 void *argp1 = 0 ;
7200 int res1 = 0 ;
7201 wxPoint temp2 ;
7202 wxSize temp3 ;
7203
7204 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7206 if (!SWIG_IsOK(res1)) {
7207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7208 }
7209 if (!argp1) {
7210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7211 }
7212 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7213 {
7214 arg2 = &temp2;
7215 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7216 }
7217 {
7218 arg3 = &temp3;
7219 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7220 }
7221 {
7222 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7223 if (PyErr_Occurred()) SWIG_fail;
7224 }
7225 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7226 return resultobj;
7227 fail:
7228 return NULL;
7229 }
7230
7231
7232 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7233 int argc;
7234 PyObject *argv[4];
7235
7236 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7237 --argc;
7238 if (argc == 1) {
7239 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7240 }
7241 if (argc == 2) {
7242 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7243 }
7244 if (argc == 3) {
7245 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7246 }
7247
7248 fail:
7249 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7250 return NULL;
7251 }
7252
7253
7254 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7255 PyObject *resultobj = 0;
7256 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7257 void *argp1 = 0 ;
7258 int res1 = 0 ;
7259 PyObject *swig_obj[1] ;
7260
7261 if (!args) SWIG_fail;
7262 swig_obj[0] = args;
7263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7264 if (!SWIG_IsOK(res1)) {
7265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7266 }
7267 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7268 {
7269 delete arg1;
7270
7271 if (PyErr_Occurred()) SWIG_fail;
7272 }
7273 resultobj = SWIG_Py_Void();
7274 return resultobj;
7275 fail:
7276 return NULL;
7277 }
7278
7279
7280 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7281 PyObject *resultobj = 0;
7282 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7283 wxNativePixelData_Accessor result;
7284 void *argp1 = 0 ;
7285 int res1 = 0 ;
7286 PyObject *swig_obj[1] ;
7287
7288 if (!args) SWIG_fail;
7289 swig_obj[0] = args;
7290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7291 if (!SWIG_IsOK(res1)) {
7292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7293 }
7294 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7295 {
7296 result = ((wxNativePixelData const *)arg1)->GetPixels();
7297 if (PyErr_Occurred()) SWIG_fail;
7298 }
7299 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7300 return resultobj;
7301 fail:
7302 return NULL;
7303 }
7304
7305
7306 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7307 PyObject *resultobj = 0;
7308 wxNativePixelData *arg1 = (wxNativePixelData *) 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, 0 | 0 );
7316 if (!SWIG_IsOK(res1)) {
7317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7318 }
7319 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7320 {
7321 (arg1)->UseAlpha();
7322 if (PyErr_Occurred()) SWIG_fail;
7323 }
7324 resultobj = SWIG_Py_Void();
7325 return resultobj;
7326 fail:
7327 return NULL;
7328 }
7329
7330
7331 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7332 PyObject *resultobj = 0;
7333 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7334 bool result;
7335 void *argp1 = 0 ;
7336 int res1 = 0 ;
7337 PyObject *swig_obj[1] ;
7338
7339 if (!args) SWIG_fail;
7340 swig_obj[0] = args;
7341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7342 if (!SWIG_IsOK(res1)) {
7343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7344 }
7345 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7346 {
7347 result = (bool)wxNativePixelData___nonzero__(arg1);
7348 if (PyErr_Occurred()) SWIG_fail;
7349 }
7350 {
7351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7352 }
7353 return resultobj;
7354 fail:
7355 return NULL;
7356 }
7357
7358
7359 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7360 PyObject *obj;
7361 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7362 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7363 return SWIG_Py_Void();
7364 }
7365
7366 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7367 return SWIG_Python_InitShadowInstance(args);
7368 }
7369
7370 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7371 PyObject *resultobj = 0;
7372 wxNativePixelData *arg1 = 0 ;
7373 wxNativePixelData_Accessor *result = 0 ;
7374 void *argp1 = 0 ;
7375 int res1 = 0 ;
7376
7377 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7379 if (!SWIG_IsOK(res1)) {
7380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7381 }
7382 if (!argp1) {
7383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7384 }
7385 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7386 {
7387 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7388 if (PyErr_Occurred()) SWIG_fail;
7389 }
7390 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7391 return resultobj;
7392 fail:
7393 return NULL;
7394 }
7395
7396
7397 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7398 PyObject *resultobj = 0;
7399 wxBitmap *arg1 = 0 ;
7400 wxNativePixelData *arg2 = 0 ;
7401 wxNativePixelData_Accessor *result = 0 ;
7402 void *argp1 = 0 ;
7403 int res1 = 0 ;
7404 void *argp2 = 0 ;
7405 int res2 = 0 ;
7406
7407 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7409 if (!SWIG_IsOK(res1)) {
7410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7411 }
7412 if (!argp1) {
7413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7414 }
7415 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7416 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7417 if (!SWIG_IsOK(res2)) {
7418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7419 }
7420 if (!argp2) {
7421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7422 }
7423 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7424 {
7425 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7426 if (PyErr_Occurred()) SWIG_fail;
7427 }
7428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7429 return resultobj;
7430 fail:
7431 return NULL;
7432 }
7433
7434
7435 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7436 PyObject *resultobj = 0;
7437 wxNativePixelData_Accessor *result = 0 ;
7438
7439 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7440 {
7441 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7442 if (PyErr_Occurred()) SWIG_fail;
7443 }
7444 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7445 return resultobj;
7446 fail:
7447 return NULL;
7448 }
7449
7450
7451 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7452 int argc;
7453 PyObject *argv[3];
7454
7455 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7456 --argc;
7457 if (argc == 0) {
7458 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7459 }
7460 if (argc == 1) {
7461 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7462 }
7463 if (argc == 2) {
7464 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7465 }
7466
7467 fail:
7468 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7469 return NULL;
7470 }
7471
7472
7473 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7474 PyObject *resultobj = 0;
7475 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7476 void *argp1 = 0 ;
7477 int res1 = 0 ;
7478 PyObject *swig_obj[1] ;
7479
7480 if (!args) SWIG_fail;
7481 swig_obj[0] = args;
7482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7483 if (!SWIG_IsOK(res1)) {
7484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7485 }
7486 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7487 {
7488 delete arg1;
7489
7490 if (PyErr_Occurred()) SWIG_fail;
7491 }
7492 resultobj = SWIG_Py_Void();
7493 return resultobj;
7494 fail:
7495 return NULL;
7496 }
7497
7498
7499 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7500 PyObject *resultobj = 0;
7501 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7502 wxNativePixelData *arg2 = 0 ;
7503 void *argp1 = 0 ;
7504 int res1 = 0 ;
7505 void *argp2 = 0 ;
7506 int res2 = 0 ;
7507 PyObject * obj0 = 0 ;
7508 PyObject * obj1 = 0 ;
7509 char * kwnames[] = {
7510 (char *) "self",(char *) "data", NULL
7511 };
7512
7513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7515 if (!SWIG_IsOK(res1)) {
7516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7517 }
7518 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7519 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7520 if (!SWIG_IsOK(res2)) {
7521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7522 }
7523 if (!argp2) {
7524 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7525 }
7526 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7527 {
7528 (arg1)->Reset((wxNativePixelData const &)*arg2);
7529 if (PyErr_Occurred()) SWIG_fail;
7530 }
7531 resultobj = SWIG_Py_Void();
7532 return resultobj;
7533 fail:
7534 return NULL;
7535 }
7536
7537
7538 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7539 PyObject *resultobj = 0;
7540 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7541 bool result;
7542 void *argp1 = 0 ;
7543 int res1 = 0 ;
7544 PyObject *swig_obj[1] ;
7545
7546 if (!args) SWIG_fail;
7547 swig_obj[0] = args;
7548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7549 if (!SWIG_IsOK(res1)) {
7550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7551 }
7552 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7553 {
7554 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7555 if (PyErr_Occurred()) SWIG_fail;
7556 }
7557 {
7558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7559 }
7560 return resultobj;
7561 fail:
7562 return NULL;
7563 }
7564
7565
7566 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7567 PyObject *resultobj = 0;
7568 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7569 void *argp1 = 0 ;
7570 int res1 = 0 ;
7571 PyObject *swig_obj[1] ;
7572
7573 if (!args) SWIG_fail;
7574 swig_obj[0] = args;
7575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7576 if (!SWIG_IsOK(res1)) {
7577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7578 }
7579 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7580 {
7581 wxNativePixelData_Accessor_nextPixel(arg1);
7582 if (PyErr_Occurred()) SWIG_fail;
7583 }
7584 resultobj = SWIG_Py_Void();
7585 return resultobj;
7586 fail:
7587 return NULL;
7588 }
7589
7590
7591 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7592 PyObject *resultobj = 0;
7593 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7594 wxNativePixelData *arg2 = 0 ;
7595 int arg3 ;
7596 int arg4 ;
7597 void *argp1 = 0 ;
7598 int res1 = 0 ;
7599 void *argp2 = 0 ;
7600 int res2 = 0 ;
7601 int val3 ;
7602 int ecode3 = 0 ;
7603 int val4 ;
7604 int ecode4 = 0 ;
7605 PyObject * obj0 = 0 ;
7606 PyObject * obj1 = 0 ;
7607 PyObject * obj2 = 0 ;
7608 PyObject * obj3 = 0 ;
7609 char * kwnames[] = {
7610 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7611 };
7612
7613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7615 if (!SWIG_IsOK(res1)) {
7616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7617 }
7618 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7619 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7620 if (!SWIG_IsOK(res2)) {
7621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7622 }
7623 if (!argp2) {
7624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7625 }
7626 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7627 ecode3 = SWIG_AsVal_int(obj2, &val3);
7628 if (!SWIG_IsOK(ecode3)) {
7629 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7630 }
7631 arg3 = static_cast< int >(val3);
7632 ecode4 = SWIG_AsVal_int(obj3, &val4);
7633 if (!SWIG_IsOK(ecode4)) {
7634 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7635 }
7636 arg4 = static_cast< int >(val4);
7637 {
7638 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7639 if (PyErr_Occurred()) SWIG_fail;
7640 }
7641 resultobj = SWIG_Py_Void();
7642 return resultobj;
7643 fail:
7644 return NULL;
7645 }
7646
7647
7648 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7649 PyObject *resultobj = 0;
7650 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7651 wxNativePixelData *arg2 = 0 ;
7652 int arg3 ;
7653 void *argp1 = 0 ;
7654 int res1 = 0 ;
7655 void *argp2 = 0 ;
7656 int res2 = 0 ;
7657 int val3 ;
7658 int ecode3 = 0 ;
7659 PyObject * obj0 = 0 ;
7660 PyObject * obj1 = 0 ;
7661 PyObject * obj2 = 0 ;
7662 char * kwnames[] = {
7663 (char *) "self",(char *) "data",(char *) "x", NULL
7664 };
7665
7666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7668 if (!SWIG_IsOK(res1)) {
7669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7670 }
7671 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7672 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7673 if (!SWIG_IsOK(res2)) {
7674 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7675 }
7676 if (!argp2) {
7677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7678 }
7679 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7680 ecode3 = SWIG_AsVal_int(obj2, &val3);
7681 if (!SWIG_IsOK(ecode3)) {
7682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7683 }
7684 arg3 = static_cast< int >(val3);
7685 {
7686 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7687 if (PyErr_Occurred()) SWIG_fail;
7688 }
7689 resultobj = SWIG_Py_Void();
7690 return resultobj;
7691 fail:
7692 return NULL;
7693 }
7694
7695
7696 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7697 PyObject *resultobj = 0;
7698 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7699 wxNativePixelData *arg2 = 0 ;
7700 int arg3 ;
7701 void *argp1 = 0 ;
7702 int res1 = 0 ;
7703 void *argp2 = 0 ;
7704 int res2 = 0 ;
7705 int val3 ;
7706 int ecode3 = 0 ;
7707 PyObject * obj0 = 0 ;
7708 PyObject * obj1 = 0 ;
7709 PyObject * obj2 = 0 ;
7710 char * kwnames[] = {
7711 (char *) "self",(char *) "data",(char *) "y", NULL
7712 };
7713
7714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7716 if (!SWIG_IsOK(res1)) {
7717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7718 }
7719 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7720 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7721 if (!SWIG_IsOK(res2)) {
7722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7723 }
7724 if (!argp2) {
7725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7726 }
7727 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7728 ecode3 = SWIG_AsVal_int(obj2, &val3);
7729 if (!SWIG_IsOK(ecode3)) {
7730 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7731 }
7732 arg3 = static_cast< int >(val3);
7733 {
7734 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7735 if (PyErr_Occurred()) SWIG_fail;
7736 }
7737 resultobj = SWIG_Py_Void();
7738 return resultobj;
7739 fail:
7740 return NULL;
7741 }
7742
7743
7744 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7745 PyObject *resultobj = 0;
7746 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7747 wxNativePixelData *arg2 = 0 ;
7748 int arg3 ;
7749 int arg4 ;
7750 void *argp1 = 0 ;
7751 int res1 = 0 ;
7752 void *argp2 = 0 ;
7753 int res2 = 0 ;
7754 int val3 ;
7755 int ecode3 = 0 ;
7756 int val4 ;
7757 int ecode4 = 0 ;
7758 PyObject * obj0 = 0 ;
7759 PyObject * obj1 = 0 ;
7760 PyObject * obj2 = 0 ;
7761 PyObject * obj3 = 0 ;
7762 char * kwnames[] = {
7763 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7764 };
7765
7766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7768 if (!SWIG_IsOK(res1)) {
7769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7770 }
7771 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7772 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7773 if (!SWIG_IsOK(res2)) {
7774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7775 }
7776 if (!argp2) {
7777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7778 }
7779 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7780 ecode3 = SWIG_AsVal_int(obj2, &val3);
7781 if (!SWIG_IsOK(ecode3)) {
7782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7783 }
7784 arg3 = static_cast< int >(val3);
7785 ecode4 = SWIG_AsVal_int(obj3, &val4);
7786 if (!SWIG_IsOK(ecode4)) {
7787 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7788 }
7789 arg4 = static_cast< int >(val4);
7790 {
7791 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7792 if (PyErr_Occurred()) SWIG_fail;
7793 }
7794 resultobj = SWIG_Py_Void();
7795 return resultobj;
7796 fail:
7797 return NULL;
7798 }
7799
7800
7801 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7802 PyObject *resultobj = 0;
7803 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7804 byte arg2 ;
7805 byte arg3 ;
7806 byte arg4 ;
7807 void *argp1 = 0 ;
7808 int res1 = 0 ;
7809 unsigned char val2 ;
7810 int ecode2 = 0 ;
7811 unsigned char val3 ;
7812 int ecode3 = 0 ;
7813 unsigned char val4 ;
7814 int ecode4 = 0 ;
7815 PyObject * obj0 = 0 ;
7816 PyObject * obj1 = 0 ;
7817 PyObject * obj2 = 0 ;
7818 PyObject * obj3 = 0 ;
7819 char * kwnames[] = {
7820 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7821 };
7822
7823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7825 if (!SWIG_IsOK(res1)) {
7826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7827 }
7828 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7829 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7830 if (!SWIG_IsOK(ecode2)) {
7831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7832 }
7833 arg2 = static_cast< byte >(val2);
7834 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7835 if (!SWIG_IsOK(ecode3)) {
7836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7837 }
7838 arg3 = static_cast< byte >(val3);
7839 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7840 if (!SWIG_IsOK(ecode4)) {
7841 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7842 }
7843 arg4 = static_cast< byte >(val4);
7844 {
7845 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7846 if (PyErr_Occurred()) SWIG_fail;
7847 }
7848 resultobj = SWIG_Py_Void();
7849 return resultobj;
7850 fail:
7851 return NULL;
7852 }
7853
7854
7855 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7856 PyObject *resultobj = 0;
7857 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7858 PyObject *result = 0 ;
7859 void *argp1 = 0 ;
7860 int res1 = 0 ;
7861 PyObject *swig_obj[1] ;
7862
7863 if (!args) SWIG_fail;
7864 swig_obj[0] = args;
7865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7866 if (!SWIG_IsOK(res1)) {
7867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7868 }
7869 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7870 {
7871 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7872 if (PyErr_Occurred()) SWIG_fail;
7873 }
7874 resultobj = result;
7875 return resultobj;
7876 fail:
7877 return NULL;
7878 }
7879
7880
7881 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7882 PyObject *obj;
7883 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7884 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7885 return SWIG_Py_Void();
7886 }
7887
7888 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7889 return SWIG_Python_InitShadowInstance(args);
7890 }
7891
7892 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7893 PyObject *resultobj = 0;
7894 wxBitmap *arg1 = 0 ;
7895 wxAlphaPixelData *result = 0 ;
7896 void *argp1 = 0 ;
7897 int res1 = 0 ;
7898
7899 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7901 if (!SWIG_IsOK(res1)) {
7902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7903 }
7904 if (!argp1) {
7905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7906 }
7907 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7908 {
7909 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7910 if (PyErr_Occurred()) SWIG_fail;
7911 }
7912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7913 return resultobj;
7914 fail:
7915 return NULL;
7916 }
7917
7918
7919 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7920 PyObject *resultobj = 0;
7921 wxBitmap *arg1 = 0 ;
7922 wxRect *arg2 = 0 ;
7923 wxAlphaPixelData *result = 0 ;
7924 void *argp1 = 0 ;
7925 int res1 = 0 ;
7926 wxRect temp2 ;
7927
7928 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7930 if (!SWIG_IsOK(res1)) {
7931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7932 }
7933 if (!argp1) {
7934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7935 }
7936 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7937 {
7938 arg2 = &temp2;
7939 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7940 }
7941 {
7942 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7943 if (PyErr_Occurred()) SWIG_fail;
7944 }
7945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7946 return resultobj;
7947 fail:
7948 return NULL;
7949 }
7950
7951
7952 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7953 PyObject *resultobj = 0;
7954 wxBitmap *arg1 = 0 ;
7955 wxPoint *arg2 = 0 ;
7956 wxSize *arg3 = 0 ;
7957 wxAlphaPixelData *result = 0 ;
7958 void *argp1 = 0 ;
7959 int res1 = 0 ;
7960 wxPoint temp2 ;
7961 wxSize temp3 ;
7962
7963 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7965 if (!SWIG_IsOK(res1)) {
7966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7967 }
7968 if (!argp1) {
7969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7970 }
7971 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7972 {
7973 arg2 = &temp2;
7974 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7975 }
7976 {
7977 arg3 = &temp3;
7978 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7979 }
7980 {
7981 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7982 if (PyErr_Occurred()) SWIG_fail;
7983 }
7984 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7985 return resultobj;
7986 fail:
7987 return NULL;
7988 }
7989
7990
7991 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7992 int argc;
7993 PyObject *argv[4];
7994
7995 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7996 --argc;
7997 if (argc == 1) {
7998 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7999 }
8000 if (argc == 2) {
8001 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8002 }
8003 if (argc == 3) {
8004 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8005 }
8006
8007 fail:
8008 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8009 return NULL;
8010 }
8011
8012
8013 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8014 PyObject *resultobj = 0;
8015 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8016 void *argp1 = 0 ;
8017 int res1 = 0 ;
8018 PyObject *swig_obj[1] ;
8019
8020 if (!args) SWIG_fail;
8021 swig_obj[0] = args;
8022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8023 if (!SWIG_IsOK(res1)) {
8024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8025 }
8026 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8027 {
8028 delete arg1;
8029
8030 if (PyErr_Occurred()) SWIG_fail;
8031 }
8032 resultobj = SWIG_Py_Void();
8033 return resultobj;
8034 fail:
8035 return NULL;
8036 }
8037
8038
8039 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8040 PyObject *resultobj = 0;
8041 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8042 wxAlphaPixelData_Accessor result;
8043 void *argp1 = 0 ;
8044 int res1 = 0 ;
8045 PyObject *swig_obj[1] ;
8046
8047 if (!args) SWIG_fail;
8048 swig_obj[0] = args;
8049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8050 if (!SWIG_IsOK(res1)) {
8051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8052 }
8053 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8054 {
8055 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8056 if (PyErr_Occurred()) SWIG_fail;
8057 }
8058 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8059 return resultobj;
8060 fail:
8061 return NULL;
8062 }
8063
8064
8065 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8066 PyObject *resultobj = 0;
8067 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 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, 0 | 0 );
8075 if (!SWIG_IsOK(res1)) {
8076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8077 }
8078 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8079 {
8080 (arg1)->UseAlpha();
8081 if (PyErr_Occurred()) SWIG_fail;
8082 }
8083 resultobj = SWIG_Py_Void();
8084 return resultobj;
8085 fail:
8086 return NULL;
8087 }
8088
8089
8090 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8091 PyObject *resultobj = 0;
8092 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8093 bool result;
8094 void *argp1 = 0 ;
8095 int res1 = 0 ;
8096 PyObject *swig_obj[1] ;
8097
8098 if (!args) SWIG_fail;
8099 swig_obj[0] = args;
8100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8101 if (!SWIG_IsOK(res1)) {
8102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8103 }
8104 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8105 {
8106 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8107 if (PyErr_Occurred()) SWIG_fail;
8108 }
8109 {
8110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8111 }
8112 return resultobj;
8113 fail:
8114 return NULL;
8115 }
8116
8117
8118 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8119 PyObject *obj;
8120 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8121 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8122 return SWIG_Py_Void();
8123 }
8124
8125 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8126 return SWIG_Python_InitShadowInstance(args);
8127 }
8128
8129 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8130 PyObject *resultobj = 0;
8131 wxAlphaPixelData *arg1 = 0 ;
8132 wxAlphaPixelData_Accessor *result = 0 ;
8133 void *argp1 = 0 ;
8134 int res1 = 0 ;
8135
8136 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8138 if (!SWIG_IsOK(res1)) {
8139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8140 }
8141 if (!argp1) {
8142 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8143 }
8144 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8145 {
8146 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8147 if (PyErr_Occurred()) SWIG_fail;
8148 }
8149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8150 return resultobj;
8151 fail:
8152 return NULL;
8153 }
8154
8155
8156 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8157 PyObject *resultobj = 0;
8158 wxBitmap *arg1 = 0 ;
8159 wxAlphaPixelData *arg2 = 0 ;
8160 wxAlphaPixelData_Accessor *result = 0 ;
8161 void *argp1 = 0 ;
8162 int res1 = 0 ;
8163 void *argp2 = 0 ;
8164 int res2 = 0 ;
8165
8166 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8168 if (!SWIG_IsOK(res1)) {
8169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8170 }
8171 if (!argp1) {
8172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8173 }
8174 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8175 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8176 if (!SWIG_IsOK(res2)) {
8177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8178 }
8179 if (!argp2) {
8180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8181 }
8182 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8183 {
8184 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8185 if (PyErr_Occurred()) SWIG_fail;
8186 }
8187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8188 return resultobj;
8189 fail:
8190 return NULL;
8191 }
8192
8193
8194 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8195 PyObject *resultobj = 0;
8196 wxAlphaPixelData_Accessor *result = 0 ;
8197
8198 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8199 {
8200 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8201 if (PyErr_Occurred()) SWIG_fail;
8202 }
8203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8204 return resultobj;
8205 fail:
8206 return NULL;
8207 }
8208
8209
8210 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8211 int argc;
8212 PyObject *argv[3];
8213
8214 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8215 --argc;
8216 if (argc == 0) {
8217 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8218 }
8219 if (argc == 1) {
8220 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8221 }
8222 if (argc == 2) {
8223 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8224 }
8225
8226 fail:
8227 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8228 return NULL;
8229 }
8230
8231
8232 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8233 PyObject *resultobj = 0;
8234 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8235 void *argp1 = 0 ;
8236 int res1 = 0 ;
8237 PyObject *swig_obj[1] ;
8238
8239 if (!args) SWIG_fail;
8240 swig_obj[0] = args;
8241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8242 if (!SWIG_IsOK(res1)) {
8243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8244 }
8245 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8246 {
8247 delete arg1;
8248
8249 if (PyErr_Occurred()) SWIG_fail;
8250 }
8251 resultobj = SWIG_Py_Void();
8252 return resultobj;
8253 fail:
8254 return NULL;
8255 }
8256
8257
8258 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8259 PyObject *resultobj = 0;
8260 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8261 wxAlphaPixelData *arg2 = 0 ;
8262 void *argp1 = 0 ;
8263 int res1 = 0 ;
8264 void *argp2 = 0 ;
8265 int res2 = 0 ;
8266 PyObject * obj0 = 0 ;
8267 PyObject * obj1 = 0 ;
8268 char * kwnames[] = {
8269 (char *) "self",(char *) "data", NULL
8270 };
8271
8272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8274 if (!SWIG_IsOK(res1)) {
8275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8276 }
8277 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8278 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8279 if (!SWIG_IsOK(res2)) {
8280 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8281 }
8282 if (!argp2) {
8283 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8284 }
8285 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8286 {
8287 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8288 if (PyErr_Occurred()) SWIG_fail;
8289 }
8290 resultobj = SWIG_Py_Void();
8291 return resultobj;
8292 fail:
8293 return NULL;
8294 }
8295
8296
8297 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8298 PyObject *resultobj = 0;
8299 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8300 bool result;
8301 void *argp1 = 0 ;
8302 int res1 = 0 ;
8303 PyObject *swig_obj[1] ;
8304
8305 if (!args) SWIG_fail;
8306 swig_obj[0] = args;
8307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8308 if (!SWIG_IsOK(res1)) {
8309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8310 }
8311 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8312 {
8313 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8314 if (PyErr_Occurred()) SWIG_fail;
8315 }
8316 {
8317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8318 }
8319 return resultobj;
8320 fail:
8321 return NULL;
8322 }
8323
8324
8325 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8326 PyObject *resultobj = 0;
8327 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8328 void *argp1 = 0 ;
8329 int res1 = 0 ;
8330 PyObject *swig_obj[1] ;
8331
8332 if (!args) SWIG_fail;
8333 swig_obj[0] = args;
8334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8335 if (!SWIG_IsOK(res1)) {
8336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8337 }
8338 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8339 {
8340 wxAlphaPixelData_Accessor_nextPixel(arg1);
8341 if (PyErr_Occurred()) SWIG_fail;
8342 }
8343 resultobj = SWIG_Py_Void();
8344 return resultobj;
8345 fail:
8346 return NULL;
8347 }
8348
8349
8350 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8351 PyObject *resultobj = 0;
8352 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8353 wxAlphaPixelData *arg2 = 0 ;
8354 int arg3 ;
8355 int arg4 ;
8356 void *argp1 = 0 ;
8357 int res1 = 0 ;
8358 void *argp2 = 0 ;
8359 int res2 = 0 ;
8360 int val3 ;
8361 int ecode3 = 0 ;
8362 int val4 ;
8363 int ecode4 = 0 ;
8364 PyObject * obj0 = 0 ;
8365 PyObject * obj1 = 0 ;
8366 PyObject * obj2 = 0 ;
8367 PyObject * obj3 = 0 ;
8368 char * kwnames[] = {
8369 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8370 };
8371
8372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8374 if (!SWIG_IsOK(res1)) {
8375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8376 }
8377 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8378 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8379 if (!SWIG_IsOK(res2)) {
8380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8381 }
8382 if (!argp2) {
8383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8384 }
8385 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8386 ecode3 = SWIG_AsVal_int(obj2, &val3);
8387 if (!SWIG_IsOK(ecode3)) {
8388 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8389 }
8390 arg3 = static_cast< int >(val3);
8391 ecode4 = SWIG_AsVal_int(obj3, &val4);
8392 if (!SWIG_IsOK(ecode4)) {
8393 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8394 }
8395 arg4 = static_cast< int >(val4);
8396 {
8397 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8398 if (PyErr_Occurred()) SWIG_fail;
8399 }
8400 resultobj = SWIG_Py_Void();
8401 return resultobj;
8402 fail:
8403 return NULL;
8404 }
8405
8406
8407 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8408 PyObject *resultobj = 0;
8409 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8410 wxAlphaPixelData *arg2 = 0 ;
8411 int arg3 ;
8412 void *argp1 = 0 ;
8413 int res1 = 0 ;
8414 void *argp2 = 0 ;
8415 int res2 = 0 ;
8416 int val3 ;
8417 int ecode3 = 0 ;
8418 PyObject * obj0 = 0 ;
8419 PyObject * obj1 = 0 ;
8420 PyObject * obj2 = 0 ;
8421 char * kwnames[] = {
8422 (char *) "self",(char *) "data",(char *) "x", NULL
8423 };
8424
8425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8427 if (!SWIG_IsOK(res1)) {
8428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8429 }
8430 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8431 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8432 if (!SWIG_IsOK(res2)) {
8433 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8434 }
8435 if (!argp2) {
8436 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8437 }
8438 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8439 ecode3 = SWIG_AsVal_int(obj2, &val3);
8440 if (!SWIG_IsOK(ecode3)) {
8441 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8442 }
8443 arg3 = static_cast< int >(val3);
8444 {
8445 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8446 if (PyErr_Occurred()) SWIG_fail;
8447 }
8448 resultobj = SWIG_Py_Void();
8449 return resultobj;
8450 fail:
8451 return NULL;
8452 }
8453
8454
8455 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8456 PyObject *resultobj = 0;
8457 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8458 wxAlphaPixelData *arg2 = 0 ;
8459 int arg3 ;
8460 void *argp1 = 0 ;
8461 int res1 = 0 ;
8462 void *argp2 = 0 ;
8463 int res2 = 0 ;
8464 int val3 ;
8465 int ecode3 = 0 ;
8466 PyObject * obj0 = 0 ;
8467 PyObject * obj1 = 0 ;
8468 PyObject * obj2 = 0 ;
8469 char * kwnames[] = {
8470 (char *) "self",(char *) "data",(char *) "y", NULL
8471 };
8472
8473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8475 if (!SWIG_IsOK(res1)) {
8476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8477 }
8478 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8479 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8480 if (!SWIG_IsOK(res2)) {
8481 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8482 }
8483 if (!argp2) {
8484 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8485 }
8486 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8487 ecode3 = SWIG_AsVal_int(obj2, &val3);
8488 if (!SWIG_IsOK(ecode3)) {
8489 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8490 }
8491 arg3 = static_cast< int >(val3);
8492 {
8493 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8494 if (PyErr_Occurred()) SWIG_fail;
8495 }
8496 resultobj = SWIG_Py_Void();
8497 return resultobj;
8498 fail:
8499 return NULL;
8500 }
8501
8502
8503 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8504 PyObject *resultobj = 0;
8505 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8506 wxAlphaPixelData *arg2 = 0 ;
8507 int arg3 ;
8508 int arg4 ;
8509 void *argp1 = 0 ;
8510 int res1 = 0 ;
8511 void *argp2 = 0 ;
8512 int res2 = 0 ;
8513 int val3 ;
8514 int ecode3 = 0 ;
8515 int val4 ;
8516 int ecode4 = 0 ;
8517 PyObject * obj0 = 0 ;
8518 PyObject * obj1 = 0 ;
8519 PyObject * obj2 = 0 ;
8520 PyObject * obj3 = 0 ;
8521 char * kwnames[] = {
8522 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8523 };
8524
8525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8527 if (!SWIG_IsOK(res1)) {
8528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8529 }
8530 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8531 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8532 if (!SWIG_IsOK(res2)) {
8533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8534 }
8535 if (!argp2) {
8536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8537 }
8538 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8539 ecode3 = SWIG_AsVal_int(obj2, &val3);
8540 if (!SWIG_IsOK(ecode3)) {
8541 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8542 }
8543 arg3 = static_cast< int >(val3);
8544 ecode4 = SWIG_AsVal_int(obj3, &val4);
8545 if (!SWIG_IsOK(ecode4)) {
8546 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8547 }
8548 arg4 = static_cast< int >(val4);
8549 {
8550 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8551 if (PyErr_Occurred()) SWIG_fail;
8552 }
8553 resultobj = SWIG_Py_Void();
8554 return resultobj;
8555 fail:
8556 return NULL;
8557 }
8558
8559
8560 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8561 PyObject *resultobj = 0;
8562 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8563 byte arg2 ;
8564 byte arg3 ;
8565 byte arg4 ;
8566 byte arg5 ;
8567 void *argp1 = 0 ;
8568 int res1 = 0 ;
8569 unsigned char val2 ;
8570 int ecode2 = 0 ;
8571 unsigned char val3 ;
8572 int ecode3 = 0 ;
8573 unsigned char val4 ;
8574 int ecode4 = 0 ;
8575 unsigned char val5 ;
8576 int ecode5 = 0 ;
8577 PyObject * obj0 = 0 ;
8578 PyObject * obj1 = 0 ;
8579 PyObject * obj2 = 0 ;
8580 PyObject * obj3 = 0 ;
8581 PyObject * obj4 = 0 ;
8582 char * kwnames[] = {
8583 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8584 };
8585
8586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8588 if (!SWIG_IsOK(res1)) {
8589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8590 }
8591 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8592 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8593 if (!SWIG_IsOK(ecode2)) {
8594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8595 }
8596 arg2 = static_cast< byte >(val2);
8597 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8598 if (!SWIG_IsOK(ecode3)) {
8599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8600 }
8601 arg3 = static_cast< byte >(val3);
8602 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8603 if (!SWIG_IsOK(ecode4)) {
8604 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8605 }
8606 arg4 = static_cast< byte >(val4);
8607 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8608 if (!SWIG_IsOK(ecode5)) {
8609 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8610 }
8611 arg5 = static_cast< byte >(val5);
8612 {
8613 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8614 if (PyErr_Occurred()) SWIG_fail;
8615 }
8616 resultobj = SWIG_Py_Void();
8617 return resultobj;
8618 fail:
8619 return NULL;
8620 }
8621
8622
8623 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8624 PyObject *resultobj = 0;
8625 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8626 PyObject *result = 0 ;
8627 void *argp1 = 0 ;
8628 int res1 = 0 ;
8629 PyObject *swig_obj[1] ;
8630
8631 if (!args) SWIG_fail;
8632 swig_obj[0] = args;
8633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8634 if (!SWIG_IsOK(res1)) {
8635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8636 }
8637 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8638 {
8639 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8640 if (PyErr_Occurred()) SWIG_fail;
8641 }
8642 resultobj = result;
8643 return resultobj;
8644 fail:
8645 return NULL;
8646 }
8647
8648
8649 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8650 PyObject *obj;
8651 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8652 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8653 return SWIG_Py_Void();
8654 }
8655
8656 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8657 return SWIG_Python_InitShadowInstance(args);
8658 }
8659
8660 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8661 PyObject *resultobj = 0;
8662 wxBitmap *arg1 = 0 ;
8663 wxColour const &arg2_defvalue = wxNullColour ;
8664 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8665 wxMask *result = 0 ;
8666 void *argp1 = 0 ;
8667 int res1 = 0 ;
8668 wxColour temp2 ;
8669 PyObject * obj0 = 0 ;
8670 PyObject * obj1 = 0 ;
8671 char * kwnames[] = {
8672 (char *) "bitmap",(char *) "colour", NULL
8673 };
8674
8675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8676 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8677 if (!SWIG_IsOK(res1)) {
8678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8679 }
8680 if (!argp1) {
8681 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8682 }
8683 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8684 if (obj1) {
8685 {
8686 arg2 = &temp2;
8687 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8688 }
8689 }
8690 {
8691 if (!wxPyCheckForApp()) SWIG_fail;
8692 PyThreadState* __tstate = wxPyBeginAllowThreads();
8693 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8694 wxPyEndAllowThreads(__tstate);
8695 if (PyErr_Occurred()) SWIG_fail;
8696 }
8697 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8698 return resultobj;
8699 fail:
8700 return NULL;
8701 }
8702
8703
8704 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8705 PyObject *resultobj = 0;
8706 wxMask *arg1 = (wxMask *) 0 ;
8707 void *argp1 = 0 ;
8708 int res1 = 0 ;
8709 PyObject *swig_obj[1] ;
8710
8711 if (!args) SWIG_fail;
8712 swig_obj[0] = args;
8713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8714 if (!SWIG_IsOK(res1)) {
8715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8716 }
8717 arg1 = reinterpret_cast< wxMask * >(argp1);
8718 {
8719 delete arg1;
8720
8721 if (PyErr_Occurred()) SWIG_fail;
8722 }
8723 resultobj = SWIG_Py_Void();
8724 return resultobj;
8725 fail:
8726 return NULL;
8727 }
8728
8729
8730 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8731 PyObject *obj;
8732 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8733 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8734 return SWIG_Py_Void();
8735 }
8736
8737 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8738 return SWIG_Python_InitShadowInstance(args);
8739 }
8740
8741 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8742 PyObject *resultobj = 0;
8743 wxString *arg1 = 0 ;
8744 wxBitmapType arg2 ;
8745 int arg3 = (int) -1 ;
8746 int arg4 = (int) -1 ;
8747 wxIcon *result = 0 ;
8748 bool temp1 = false ;
8749 int val2 ;
8750 int ecode2 = 0 ;
8751 int val3 ;
8752 int ecode3 = 0 ;
8753 int val4 ;
8754 int ecode4 = 0 ;
8755 PyObject * obj0 = 0 ;
8756 PyObject * obj1 = 0 ;
8757 PyObject * obj2 = 0 ;
8758 PyObject * obj3 = 0 ;
8759 char * kwnames[] = {
8760 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8761 };
8762
8763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8764 {
8765 arg1 = wxString_in_helper(obj0);
8766 if (arg1 == NULL) SWIG_fail;
8767 temp1 = true;
8768 }
8769 ecode2 = SWIG_AsVal_int(obj1, &val2);
8770 if (!SWIG_IsOK(ecode2)) {
8771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8772 }
8773 arg2 = static_cast< wxBitmapType >(val2);
8774 if (obj2) {
8775 ecode3 = SWIG_AsVal_int(obj2, &val3);
8776 if (!SWIG_IsOK(ecode3)) {
8777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8778 }
8779 arg3 = static_cast< int >(val3);
8780 }
8781 if (obj3) {
8782 ecode4 = SWIG_AsVal_int(obj3, &val4);
8783 if (!SWIG_IsOK(ecode4)) {
8784 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8785 }
8786 arg4 = static_cast< int >(val4);
8787 }
8788 {
8789 if (!wxPyCheckForApp()) SWIG_fail;
8790 PyThreadState* __tstate = wxPyBeginAllowThreads();
8791 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8792 wxPyEndAllowThreads(__tstate);
8793 if (PyErr_Occurred()) SWIG_fail;
8794 }
8795 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8796 {
8797 if (temp1)
8798 delete arg1;
8799 }
8800 return resultobj;
8801 fail:
8802 {
8803 if (temp1)
8804 delete arg1;
8805 }
8806 return NULL;
8807 }
8808
8809
8810 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8811 PyObject *resultobj = 0;
8812 wxIcon *arg1 = (wxIcon *) 0 ;
8813 void *argp1 = 0 ;
8814 int res1 = 0 ;
8815 PyObject *swig_obj[1] ;
8816
8817 if (!args) SWIG_fail;
8818 swig_obj[0] = args;
8819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8820 if (!SWIG_IsOK(res1)) {
8821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8822 }
8823 arg1 = reinterpret_cast< wxIcon * >(argp1);
8824 {
8825 PyThreadState* __tstate = wxPyBeginAllowThreads();
8826 delete arg1;
8827
8828 wxPyEndAllowThreads(__tstate);
8829 if (PyErr_Occurred()) SWIG_fail;
8830 }
8831 resultobj = SWIG_Py_Void();
8832 return resultobj;
8833 fail:
8834 return NULL;
8835 }
8836
8837
8838 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8839 PyObject *resultobj = 0;
8840 wxIcon *result = 0 ;
8841
8842 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8843 {
8844 if (!wxPyCheckForApp()) SWIG_fail;
8845 PyThreadState* __tstate = wxPyBeginAllowThreads();
8846 result = (wxIcon *)new wxIcon();
8847 wxPyEndAllowThreads(__tstate);
8848 if (PyErr_Occurred()) SWIG_fail;
8849 }
8850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8851 return resultobj;
8852 fail:
8853 return NULL;
8854 }
8855
8856
8857 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8858 PyObject *resultobj = 0;
8859 wxIconLocation *arg1 = 0 ;
8860 wxIcon *result = 0 ;
8861 void *argp1 = 0 ;
8862 int res1 = 0 ;
8863 PyObject * obj0 = 0 ;
8864 char * kwnames[] = {
8865 (char *) "loc", NULL
8866 };
8867
8868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8869 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8870 if (!SWIG_IsOK(res1)) {
8871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8872 }
8873 if (!argp1) {
8874 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8875 }
8876 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8877 {
8878 if (!wxPyCheckForApp()) SWIG_fail;
8879 PyThreadState* __tstate = wxPyBeginAllowThreads();
8880 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8881 wxPyEndAllowThreads(__tstate);
8882 if (PyErr_Occurred()) SWIG_fail;
8883 }
8884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8885 return resultobj;
8886 fail:
8887 return NULL;
8888 }
8889
8890
8891 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8892 PyObject *resultobj = 0;
8893 wxBitmap *arg1 = 0 ;
8894 wxIcon *result = 0 ;
8895 void *argp1 = 0 ;
8896 int res1 = 0 ;
8897 PyObject * obj0 = 0 ;
8898 char * kwnames[] = {
8899 (char *) "bmp", NULL
8900 };
8901
8902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8903 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8904 if (!SWIG_IsOK(res1)) {
8905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8906 }
8907 if (!argp1) {
8908 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8909 }
8910 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8911 {
8912 if (!wxPyCheckForApp()) SWIG_fail;
8913 PyThreadState* __tstate = wxPyBeginAllowThreads();
8914 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8915 wxPyEndAllowThreads(__tstate);
8916 if (PyErr_Occurred()) SWIG_fail;
8917 }
8918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8919 return resultobj;
8920 fail:
8921 return NULL;
8922 }
8923
8924
8925 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8926 PyObject *resultobj = 0;
8927 PyObject *arg1 = (PyObject *) 0 ;
8928 wxIcon *result = 0 ;
8929 PyObject * obj0 = 0 ;
8930 char * kwnames[] = {
8931 (char *) "listOfStrings", NULL
8932 };
8933
8934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8935 arg1 = obj0;
8936 {
8937 if (!wxPyCheckForApp()) SWIG_fail;
8938 PyThreadState* __tstate = wxPyBeginAllowThreads();
8939 result = (wxIcon *)new_wxIcon(arg1);
8940 wxPyEndAllowThreads(__tstate);
8941 if (PyErr_Occurred()) SWIG_fail;
8942 }
8943 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8944 return resultobj;
8945 fail:
8946 return NULL;
8947 }
8948
8949
8950 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8951 PyObject *resultobj = 0;
8952 wxIcon *arg1 = (wxIcon *) 0 ;
8953 bool result;
8954 void *argp1 = 0 ;
8955 int res1 = 0 ;
8956 PyObject *swig_obj[1] ;
8957
8958 if (!args) SWIG_fail;
8959 swig_obj[0] = args;
8960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8961 if (!SWIG_IsOK(res1)) {
8962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
8963 }
8964 arg1 = reinterpret_cast< wxIcon * >(argp1);
8965 {
8966 PyThreadState* __tstate = wxPyBeginAllowThreads();
8967 result = (bool)(arg1)->IsOk();
8968 wxPyEndAllowThreads(__tstate);
8969 if (PyErr_Occurred()) SWIG_fail;
8970 }
8971 {
8972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8973 }
8974 return resultobj;
8975 fail:
8976 return NULL;
8977 }
8978
8979
8980 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8981 PyObject *resultobj = 0;
8982 wxIcon *arg1 = (wxIcon *) 0 ;
8983 int result;
8984 void *argp1 = 0 ;
8985 int res1 = 0 ;
8986 PyObject *swig_obj[1] ;
8987
8988 if (!args) SWIG_fail;
8989 swig_obj[0] = args;
8990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8991 if (!SWIG_IsOK(res1)) {
8992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8993 }
8994 arg1 = reinterpret_cast< wxIcon * >(argp1);
8995 {
8996 PyThreadState* __tstate = wxPyBeginAllowThreads();
8997 result = (int)(arg1)->GetWidth();
8998 wxPyEndAllowThreads(__tstate);
8999 if (PyErr_Occurred()) SWIG_fail;
9000 }
9001 resultobj = SWIG_From_int(static_cast< int >(result));
9002 return resultobj;
9003 fail:
9004 return NULL;
9005 }
9006
9007
9008 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9009 PyObject *resultobj = 0;
9010 wxIcon *arg1 = (wxIcon *) 0 ;
9011 int result;
9012 void *argp1 = 0 ;
9013 int res1 = 0 ;
9014 PyObject *swig_obj[1] ;
9015
9016 if (!args) SWIG_fail;
9017 swig_obj[0] = args;
9018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9019 if (!SWIG_IsOK(res1)) {
9020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9021 }
9022 arg1 = reinterpret_cast< wxIcon * >(argp1);
9023 {
9024 PyThreadState* __tstate = wxPyBeginAllowThreads();
9025 result = (int)(arg1)->GetHeight();
9026 wxPyEndAllowThreads(__tstate);
9027 if (PyErr_Occurred()) SWIG_fail;
9028 }
9029 resultobj = SWIG_From_int(static_cast< int >(result));
9030 return resultobj;
9031 fail:
9032 return NULL;
9033 }
9034
9035
9036 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9037 PyObject *resultobj = 0;
9038 wxIcon *arg1 = (wxIcon *) 0 ;
9039 int result;
9040 void *argp1 = 0 ;
9041 int res1 = 0 ;
9042 PyObject *swig_obj[1] ;
9043
9044 if (!args) SWIG_fail;
9045 swig_obj[0] = args;
9046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9047 if (!SWIG_IsOK(res1)) {
9048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9049 }
9050 arg1 = reinterpret_cast< wxIcon * >(argp1);
9051 {
9052 PyThreadState* __tstate = wxPyBeginAllowThreads();
9053 result = (int)(arg1)->GetDepth();
9054 wxPyEndAllowThreads(__tstate);
9055 if (PyErr_Occurred()) SWIG_fail;
9056 }
9057 resultobj = SWIG_From_int(static_cast< int >(result));
9058 return resultobj;
9059 fail:
9060 return NULL;
9061 }
9062
9063
9064 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9065 PyObject *resultobj = 0;
9066 wxIcon *arg1 = (wxIcon *) 0 ;
9067 int arg2 ;
9068 void *argp1 = 0 ;
9069 int res1 = 0 ;
9070 int val2 ;
9071 int ecode2 = 0 ;
9072 PyObject * obj0 = 0 ;
9073 PyObject * obj1 = 0 ;
9074 char * kwnames[] = {
9075 (char *) "self",(char *) "w", NULL
9076 };
9077
9078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9080 if (!SWIG_IsOK(res1)) {
9081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9082 }
9083 arg1 = reinterpret_cast< wxIcon * >(argp1);
9084 ecode2 = SWIG_AsVal_int(obj1, &val2);
9085 if (!SWIG_IsOK(ecode2)) {
9086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9087 }
9088 arg2 = static_cast< int >(val2);
9089 {
9090 PyThreadState* __tstate = wxPyBeginAllowThreads();
9091 (arg1)->SetWidth(arg2);
9092 wxPyEndAllowThreads(__tstate);
9093 if (PyErr_Occurred()) SWIG_fail;
9094 }
9095 resultobj = SWIG_Py_Void();
9096 return resultobj;
9097 fail:
9098 return NULL;
9099 }
9100
9101
9102 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9103 PyObject *resultobj = 0;
9104 wxIcon *arg1 = (wxIcon *) 0 ;
9105 int arg2 ;
9106 void *argp1 = 0 ;
9107 int res1 = 0 ;
9108 int val2 ;
9109 int ecode2 = 0 ;
9110 PyObject * obj0 = 0 ;
9111 PyObject * obj1 = 0 ;
9112 char * kwnames[] = {
9113 (char *) "self",(char *) "h", NULL
9114 };
9115
9116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9118 if (!SWIG_IsOK(res1)) {
9119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9120 }
9121 arg1 = reinterpret_cast< wxIcon * >(argp1);
9122 ecode2 = SWIG_AsVal_int(obj1, &val2);
9123 if (!SWIG_IsOK(ecode2)) {
9124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9125 }
9126 arg2 = static_cast< int >(val2);
9127 {
9128 PyThreadState* __tstate = wxPyBeginAllowThreads();
9129 (arg1)->SetHeight(arg2);
9130 wxPyEndAllowThreads(__tstate);
9131 if (PyErr_Occurred()) SWIG_fail;
9132 }
9133 resultobj = SWIG_Py_Void();
9134 return resultobj;
9135 fail:
9136 return NULL;
9137 }
9138
9139
9140 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9141 PyObject *resultobj = 0;
9142 wxIcon *arg1 = (wxIcon *) 0 ;
9143 int arg2 ;
9144 void *argp1 = 0 ;
9145 int res1 = 0 ;
9146 int val2 ;
9147 int ecode2 = 0 ;
9148 PyObject * obj0 = 0 ;
9149 PyObject * obj1 = 0 ;
9150 char * kwnames[] = {
9151 (char *) "self",(char *) "d", NULL
9152 };
9153
9154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9156 if (!SWIG_IsOK(res1)) {
9157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9158 }
9159 arg1 = reinterpret_cast< wxIcon * >(argp1);
9160 ecode2 = SWIG_AsVal_int(obj1, &val2);
9161 if (!SWIG_IsOK(ecode2)) {
9162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9163 }
9164 arg2 = static_cast< int >(val2);
9165 {
9166 PyThreadState* __tstate = wxPyBeginAllowThreads();
9167 (arg1)->SetDepth(arg2);
9168 wxPyEndAllowThreads(__tstate);
9169 if (PyErr_Occurred()) SWIG_fail;
9170 }
9171 resultobj = SWIG_Py_Void();
9172 return resultobj;
9173 fail:
9174 return NULL;
9175 }
9176
9177
9178 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9179 PyObject *resultobj = 0;
9180 wxIcon *arg1 = (wxIcon *) 0 ;
9181 wxBitmap *arg2 = 0 ;
9182 void *argp1 = 0 ;
9183 int res1 = 0 ;
9184 void *argp2 = 0 ;
9185 int res2 = 0 ;
9186 PyObject * obj0 = 0 ;
9187 PyObject * obj1 = 0 ;
9188 char * kwnames[] = {
9189 (char *) "self",(char *) "bmp", NULL
9190 };
9191
9192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9194 if (!SWIG_IsOK(res1)) {
9195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9196 }
9197 arg1 = reinterpret_cast< wxIcon * >(argp1);
9198 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9199 if (!SWIG_IsOK(res2)) {
9200 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9201 }
9202 if (!argp2) {
9203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9204 }
9205 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9206 {
9207 PyThreadState* __tstate = wxPyBeginAllowThreads();
9208 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9209 wxPyEndAllowThreads(__tstate);
9210 if (PyErr_Occurred()) SWIG_fail;
9211 }
9212 resultobj = SWIG_Py_Void();
9213 return resultobj;
9214 fail:
9215 return NULL;
9216 }
9217
9218
9219 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9220 PyObject *obj;
9221 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9222 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9223 return SWIG_Py_Void();
9224 }
9225
9226 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9227 return SWIG_Python_InitShadowInstance(args);
9228 }
9229
9230 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9231 PyObject *resultobj = 0;
9232 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9233 int arg2 = (int) 0 ;
9234 wxIconLocation *result = 0 ;
9235 bool temp1 = false ;
9236 int val2 ;
9237 int ecode2 = 0 ;
9238 PyObject * obj0 = 0 ;
9239 PyObject * obj1 = 0 ;
9240 char * kwnames[] = {
9241 (char *) "filename",(char *) "num", NULL
9242 };
9243
9244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9245 if (obj0) {
9246 {
9247 arg1 = wxString_in_helper(obj0);
9248 if (arg1 == NULL) SWIG_fail;
9249 temp1 = true;
9250 }
9251 }
9252 if (obj1) {
9253 ecode2 = SWIG_AsVal_int(obj1, &val2);
9254 if (!SWIG_IsOK(ecode2)) {
9255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9256 }
9257 arg2 = static_cast< int >(val2);
9258 }
9259 {
9260 PyThreadState* __tstate = wxPyBeginAllowThreads();
9261 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9262 wxPyEndAllowThreads(__tstate);
9263 if (PyErr_Occurred()) SWIG_fail;
9264 }
9265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9266 {
9267 if (temp1)
9268 delete arg1;
9269 }
9270 return resultobj;
9271 fail:
9272 {
9273 if (temp1)
9274 delete arg1;
9275 }
9276 return NULL;
9277 }
9278
9279
9280 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9281 PyObject *resultobj = 0;
9282 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9283 void *argp1 = 0 ;
9284 int res1 = 0 ;
9285 PyObject *swig_obj[1] ;
9286
9287 if (!args) SWIG_fail;
9288 swig_obj[0] = args;
9289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9290 if (!SWIG_IsOK(res1)) {
9291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9292 }
9293 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9294 {
9295 PyThreadState* __tstate = wxPyBeginAllowThreads();
9296 delete arg1;
9297
9298 wxPyEndAllowThreads(__tstate);
9299 if (PyErr_Occurred()) SWIG_fail;
9300 }
9301 resultobj = SWIG_Py_Void();
9302 return resultobj;
9303 fail:
9304 return NULL;
9305 }
9306
9307
9308 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9309 PyObject *resultobj = 0;
9310 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9311 bool result;
9312 void *argp1 = 0 ;
9313 int res1 = 0 ;
9314 PyObject *swig_obj[1] ;
9315
9316 if (!args) SWIG_fail;
9317 swig_obj[0] = args;
9318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9319 if (!SWIG_IsOK(res1)) {
9320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9321 }
9322 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9323 {
9324 PyThreadState* __tstate = wxPyBeginAllowThreads();
9325 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9326 wxPyEndAllowThreads(__tstate);
9327 if (PyErr_Occurred()) SWIG_fail;
9328 }
9329 {
9330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9331 }
9332 return resultobj;
9333 fail:
9334 return NULL;
9335 }
9336
9337
9338 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9339 PyObject *resultobj = 0;
9340 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9341 wxString *arg2 = 0 ;
9342 void *argp1 = 0 ;
9343 int res1 = 0 ;
9344 bool temp2 = false ;
9345 PyObject * obj0 = 0 ;
9346 PyObject * obj1 = 0 ;
9347 char * kwnames[] = {
9348 (char *) "self",(char *) "filename", NULL
9349 };
9350
9351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9353 if (!SWIG_IsOK(res1)) {
9354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9355 }
9356 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9357 {
9358 arg2 = wxString_in_helper(obj1);
9359 if (arg2 == NULL) SWIG_fail;
9360 temp2 = true;
9361 }
9362 {
9363 PyThreadState* __tstate = wxPyBeginAllowThreads();
9364 (arg1)->SetFileName((wxString const &)*arg2);
9365 wxPyEndAllowThreads(__tstate);
9366 if (PyErr_Occurred()) SWIG_fail;
9367 }
9368 resultobj = SWIG_Py_Void();
9369 {
9370 if (temp2)
9371 delete arg2;
9372 }
9373 return resultobj;
9374 fail:
9375 {
9376 if (temp2)
9377 delete arg2;
9378 }
9379 return NULL;
9380 }
9381
9382
9383 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9384 PyObject *resultobj = 0;
9385 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9386 wxString *result = 0 ;
9387 void *argp1 = 0 ;
9388 int res1 = 0 ;
9389 PyObject *swig_obj[1] ;
9390
9391 if (!args) SWIG_fail;
9392 swig_obj[0] = args;
9393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9394 if (!SWIG_IsOK(res1)) {
9395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9396 }
9397 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9398 {
9399 PyThreadState* __tstate = wxPyBeginAllowThreads();
9400 {
9401 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9402 result = (wxString *) &_result_ref;
9403 }
9404 wxPyEndAllowThreads(__tstate);
9405 if (PyErr_Occurred()) SWIG_fail;
9406 }
9407 {
9408 #if wxUSE_UNICODE
9409 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9410 #else
9411 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9412 #endif
9413 }
9414 return resultobj;
9415 fail:
9416 return NULL;
9417 }
9418
9419
9420 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9421 PyObject *resultobj = 0;
9422 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9423 int arg2 ;
9424 void *argp1 = 0 ;
9425 int res1 = 0 ;
9426 int val2 ;
9427 int ecode2 = 0 ;
9428 PyObject * obj0 = 0 ;
9429 PyObject * obj1 = 0 ;
9430 char * kwnames[] = {
9431 (char *) "self",(char *) "num", NULL
9432 };
9433
9434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9436 if (!SWIG_IsOK(res1)) {
9437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9438 }
9439 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9440 ecode2 = SWIG_AsVal_int(obj1, &val2);
9441 if (!SWIG_IsOK(ecode2)) {
9442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9443 }
9444 arg2 = static_cast< int >(val2);
9445 {
9446 PyThreadState* __tstate = wxPyBeginAllowThreads();
9447 wxIconLocation_SetIndex(arg1,arg2);
9448 wxPyEndAllowThreads(__tstate);
9449 if (PyErr_Occurred()) SWIG_fail;
9450 }
9451 resultobj = SWIG_Py_Void();
9452 return resultobj;
9453 fail:
9454 return NULL;
9455 }
9456
9457
9458 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9459 PyObject *resultobj = 0;
9460 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9461 int result;
9462 void *argp1 = 0 ;
9463 int res1 = 0 ;
9464 PyObject *swig_obj[1] ;
9465
9466 if (!args) SWIG_fail;
9467 swig_obj[0] = args;
9468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9469 if (!SWIG_IsOK(res1)) {
9470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9471 }
9472 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9473 {
9474 PyThreadState* __tstate = wxPyBeginAllowThreads();
9475 result = (int)wxIconLocation_GetIndex(arg1);
9476 wxPyEndAllowThreads(__tstate);
9477 if (PyErr_Occurred()) SWIG_fail;
9478 }
9479 resultobj = SWIG_From_int(static_cast< int >(result));
9480 return resultobj;
9481 fail:
9482 return NULL;
9483 }
9484
9485
9486 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9487 PyObject *obj;
9488 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9489 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9490 return SWIG_Py_Void();
9491 }
9492
9493 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9494 return SWIG_Python_InitShadowInstance(args);
9495 }
9496
9497 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9498 PyObject *resultobj = 0;
9499 wxIconBundle *result = 0 ;
9500
9501 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9502 {
9503 PyThreadState* __tstate = wxPyBeginAllowThreads();
9504 result = (wxIconBundle *)new wxIconBundle();
9505 wxPyEndAllowThreads(__tstate);
9506 if (PyErr_Occurred()) SWIG_fail;
9507 }
9508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9509 return resultobj;
9510 fail:
9511 return NULL;
9512 }
9513
9514
9515 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9516 PyObject *resultobj = 0;
9517 wxString *arg1 = 0 ;
9518 long arg2 ;
9519 wxIconBundle *result = 0 ;
9520 bool temp1 = false ;
9521 long val2 ;
9522 int ecode2 = 0 ;
9523 PyObject * obj0 = 0 ;
9524 PyObject * obj1 = 0 ;
9525 char * kwnames[] = {
9526 (char *) "file",(char *) "type", NULL
9527 };
9528
9529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9530 {
9531 arg1 = wxString_in_helper(obj0);
9532 if (arg1 == NULL) SWIG_fail;
9533 temp1 = true;
9534 }
9535 ecode2 = SWIG_AsVal_long(obj1, &val2);
9536 if (!SWIG_IsOK(ecode2)) {
9537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9538 }
9539 arg2 = static_cast< long >(val2);
9540 {
9541 PyThreadState* __tstate = wxPyBeginAllowThreads();
9542 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9543 wxPyEndAllowThreads(__tstate);
9544 if (PyErr_Occurred()) SWIG_fail;
9545 }
9546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9547 {
9548 if (temp1)
9549 delete arg1;
9550 }
9551 return resultobj;
9552 fail:
9553 {
9554 if (temp1)
9555 delete arg1;
9556 }
9557 return NULL;
9558 }
9559
9560
9561 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9562 PyObject *resultobj = 0;
9563 wxIcon *arg1 = 0 ;
9564 wxIconBundle *result = 0 ;
9565 void *argp1 = 0 ;
9566 int res1 = 0 ;
9567 PyObject * obj0 = 0 ;
9568 char * kwnames[] = {
9569 (char *) "icon", NULL
9570 };
9571
9572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9573 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9574 if (!SWIG_IsOK(res1)) {
9575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9576 }
9577 if (!argp1) {
9578 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9579 }
9580 arg1 = reinterpret_cast< wxIcon * >(argp1);
9581 {
9582 PyThreadState* __tstate = wxPyBeginAllowThreads();
9583 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9584 wxPyEndAllowThreads(__tstate);
9585 if (PyErr_Occurred()) SWIG_fail;
9586 }
9587 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9588 return resultobj;
9589 fail:
9590 return NULL;
9591 }
9592
9593
9594 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9595 PyObject *resultobj = 0;
9596 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9597 void *argp1 = 0 ;
9598 int res1 = 0 ;
9599 PyObject *swig_obj[1] ;
9600
9601 if (!args) SWIG_fail;
9602 swig_obj[0] = args;
9603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9604 if (!SWIG_IsOK(res1)) {
9605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9606 }
9607 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9608 {
9609 PyThreadState* __tstate = wxPyBeginAllowThreads();
9610 delete arg1;
9611
9612 wxPyEndAllowThreads(__tstate);
9613 if (PyErr_Occurred()) SWIG_fail;
9614 }
9615 resultobj = SWIG_Py_Void();
9616 return resultobj;
9617 fail:
9618 return NULL;
9619 }
9620
9621
9622 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9623 PyObject *resultobj = 0;
9624 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9625 wxIcon *arg2 = 0 ;
9626 void *argp1 = 0 ;
9627 int res1 = 0 ;
9628 void *argp2 = 0 ;
9629 int res2 = 0 ;
9630 PyObject * obj0 = 0 ;
9631 PyObject * obj1 = 0 ;
9632 char * kwnames[] = {
9633 (char *) "self",(char *) "icon", NULL
9634 };
9635
9636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9638 if (!SWIG_IsOK(res1)) {
9639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9640 }
9641 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9642 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9643 if (!SWIG_IsOK(res2)) {
9644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9645 }
9646 if (!argp2) {
9647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9648 }
9649 arg2 = reinterpret_cast< wxIcon * >(argp2);
9650 {
9651 PyThreadState* __tstate = wxPyBeginAllowThreads();
9652 (arg1)->AddIcon((wxIcon const &)*arg2);
9653 wxPyEndAllowThreads(__tstate);
9654 if (PyErr_Occurred()) SWIG_fail;
9655 }
9656 resultobj = SWIG_Py_Void();
9657 return resultobj;
9658 fail:
9659 return NULL;
9660 }
9661
9662
9663 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9664 PyObject *resultobj = 0;
9665 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9666 wxString *arg2 = 0 ;
9667 long arg3 ;
9668 void *argp1 = 0 ;
9669 int res1 = 0 ;
9670 bool temp2 = false ;
9671 long val3 ;
9672 int ecode3 = 0 ;
9673 PyObject * obj0 = 0 ;
9674 PyObject * obj1 = 0 ;
9675 PyObject * obj2 = 0 ;
9676 char * kwnames[] = {
9677 (char *) "self",(char *) "file",(char *) "type", NULL
9678 };
9679
9680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9682 if (!SWIG_IsOK(res1)) {
9683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9684 }
9685 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9686 {
9687 arg2 = wxString_in_helper(obj1);
9688 if (arg2 == NULL) SWIG_fail;
9689 temp2 = true;
9690 }
9691 ecode3 = SWIG_AsVal_long(obj2, &val3);
9692 if (!SWIG_IsOK(ecode3)) {
9693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9694 }
9695 arg3 = static_cast< long >(val3);
9696 {
9697 PyThreadState* __tstate = wxPyBeginAllowThreads();
9698 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9699 wxPyEndAllowThreads(__tstate);
9700 if (PyErr_Occurred()) SWIG_fail;
9701 }
9702 resultobj = SWIG_Py_Void();
9703 {
9704 if (temp2)
9705 delete arg2;
9706 }
9707 return resultobj;
9708 fail:
9709 {
9710 if (temp2)
9711 delete arg2;
9712 }
9713 return NULL;
9714 }
9715
9716
9717 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9718 PyObject *resultobj = 0;
9719 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9720 wxSize *arg2 = 0 ;
9721 wxIcon *result = 0 ;
9722 void *argp1 = 0 ;
9723 int res1 = 0 ;
9724 wxSize temp2 ;
9725 PyObject * obj0 = 0 ;
9726 PyObject * obj1 = 0 ;
9727 char * kwnames[] = {
9728 (char *) "self",(char *) "size", NULL
9729 };
9730
9731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9733 if (!SWIG_IsOK(res1)) {
9734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9735 }
9736 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9737 {
9738 arg2 = &temp2;
9739 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9740 }
9741 {
9742 PyThreadState* __tstate = wxPyBeginAllowThreads();
9743 {
9744 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9745 result = (wxIcon *) &_result_ref;
9746 }
9747 wxPyEndAllowThreads(__tstate);
9748 if (PyErr_Occurred()) SWIG_fail;
9749 }
9750 {
9751 wxIcon* resultptr = new wxIcon(*result);
9752 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9753 }
9754 return resultobj;
9755 fail:
9756 return NULL;
9757 }
9758
9759
9760 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9761 PyObject *obj;
9762 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9763 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9764 return SWIG_Py_Void();
9765 }
9766
9767 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9768 return SWIG_Python_InitShadowInstance(args);
9769 }
9770
9771 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9772 PyObject *resultobj = 0;
9773 wxString *arg1 = 0 ;
9774 long arg2 ;
9775 int arg3 = (int) 0 ;
9776 int arg4 = (int) 0 ;
9777 wxCursor *result = 0 ;
9778 bool temp1 = false ;
9779 long val2 ;
9780 int ecode2 = 0 ;
9781 int val3 ;
9782 int ecode3 = 0 ;
9783 int val4 ;
9784 int ecode4 = 0 ;
9785 PyObject * obj0 = 0 ;
9786 PyObject * obj1 = 0 ;
9787 PyObject * obj2 = 0 ;
9788 PyObject * obj3 = 0 ;
9789 char * kwnames[] = {
9790 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9791 };
9792
9793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9794 {
9795 arg1 = wxString_in_helper(obj0);
9796 if (arg1 == NULL) SWIG_fail;
9797 temp1 = true;
9798 }
9799 ecode2 = SWIG_AsVal_long(obj1, &val2);
9800 if (!SWIG_IsOK(ecode2)) {
9801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9802 }
9803 arg2 = static_cast< long >(val2);
9804 if (obj2) {
9805 ecode3 = SWIG_AsVal_int(obj2, &val3);
9806 if (!SWIG_IsOK(ecode3)) {
9807 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9808 }
9809 arg3 = static_cast< int >(val3);
9810 }
9811 if (obj3) {
9812 ecode4 = SWIG_AsVal_int(obj3, &val4);
9813 if (!SWIG_IsOK(ecode4)) {
9814 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9815 }
9816 arg4 = static_cast< int >(val4);
9817 }
9818 {
9819 if (!wxPyCheckForApp()) SWIG_fail;
9820 PyThreadState* __tstate = wxPyBeginAllowThreads();
9821 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9822 wxPyEndAllowThreads(__tstate);
9823 if (PyErr_Occurred()) SWIG_fail;
9824 }
9825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9826 {
9827 if (temp1)
9828 delete arg1;
9829 }
9830 return resultobj;
9831 fail:
9832 {
9833 if (temp1)
9834 delete arg1;
9835 }
9836 return NULL;
9837 }
9838
9839
9840 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9841 PyObject *resultobj = 0;
9842 wxCursor *arg1 = (wxCursor *) 0 ;
9843 void *argp1 = 0 ;
9844 int res1 = 0 ;
9845 PyObject *swig_obj[1] ;
9846
9847 if (!args) SWIG_fail;
9848 swig_obj[0] = args;
9849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9850 if (!SWIG_IsOK(res1)) {
9851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9852 }
9853 arg1 = reinterpret_cast< wxCursor * >(argp1);
9854 {
9855 PyThreadState* __tstate = wxPyBeginAllowThreads();
9856 delete arg1;
9857
9858 wxPyEndAllowThreads(__tstate);
9859 if (PyErr_Occurred()) SWIG_fail;
9860 }
9861 resultobj = SWIG_Py_Void();
9862 return resultobj;
9863 fail:
9864 return NULL;
9865 }
9866
9867
9868 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9869 PyObject *resultobj = 0;
9870 int arg1 ;
9871 wxCursor *result = 0 ;
9872 int val1 ;
9873 int ecode1 = 0 ;
9874 PyObject * obj0 = 0 ;
9875 char * kwnames[] = {
9876 (char *) "id", NULL
9877 };
9878
9879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9880 ecode1 = SWIG_AsVal_int(obj0, &val1);
9881 if (!SWIG_IsOK(ecode1)) {
9882 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9883 }
9884 arg1 = static_cast< int >(val1);
9885 {
9886 if (!wxPyCheckForApp()) SWIG_fail;
9887 PyThreadState* __tstate = wxPyBeginAllowThreads();
9888 result = (wxCursor *)new wxCursor(arg1);
9889 wxPyEndAllowThreads(__tstate);
9890 if (PyErr_Occurred()) SWIG_fail;
9891 }
9892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9893 return resultobj;
9894 fail:
9895 return NULL;
9896 }
9897
9898
9899 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9900 PyObject *resultobj = 0;
9901 wxImage *arg1 = 0 ;
9902 wxCursor *result = 0 ;
9903 void *argp1 = 0 ;
9904 int res1 = 0 ;
9905 PyObject * obj0 = 0 ;
9906 char * kwnames[] = {
9907 (char *) "image", NULL
9908 };
9909
9910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9911 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9912 if (!SWIG_IsOK(res1)) {
9913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9914 }
9915 if (!argp1) {
9916 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9917 }
9918 arg1 = reinterpret_cast< wxImage * >(argp1);
9919 {
9920 if (!wxPyCheckForApp()) SWIG_fail;
9921 PyThreadState* __tstate = wxPyBeginAllowThreads();
9922 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9923 wxPyEndAllowThreads(__tstate);
9924 if (PyErr_Occurred()) SWIG_fail;
9925 }
9926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9927 return resultobj;
9928 fail:
9929 return NULL;
9930 }
9931
9932
9933 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9934 PyObject *resultobj = 0;
9935 wxCursor *arg1 = (wxCursor *) 0 ;
9936 bool result;
9937 void *argp1 = 0 ;
9938 int res1 = 0 ;
9939 PyObject *swig_obj[1] ;
9940
9941 if (!args) SWIG_fail;
9942 swig_obj[0] = args;
9943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9944 if (!SWIG_IsOK(res1)) {
9945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
9946 }
9947 arg1 = reinterpret_cast< wxCursor * >(argp1);
9948 {
9949 PyThreadState* __tstate = wxPyBeginAllowThreads();
9950 result = (bool)(arg1)->IsOk();
9951 wxPyEndAllowThreads(__tstate);
9952 if (PyErr_Occurred()) SWIG_fail;
9953 }
9954 {
9955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9956 }
9957 return resultobj;
9958 fail:
9959 return NULL;
9960 }
9961
9962
9963 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9964 PyObject *obj;
9965 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9966 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9967 return SWIG_Py_Void();
9968 }
9969
9970 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9971 return SWIG_Python_InitShadowInstance(args);
9972 }
9973
9974 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9975 PyObject *resultobj = 0;
9976 int arg1 = (int) 0 ;
9977 int arg2 = (int) 0 ;
9978 int arg3 = (int) 0 ;
9979 int arg4 = (int) 0 ;
9980 wxRegion *result = 0 ;
9981 int val1 ;
9982 int ecode1 = 0 ;
9983 int val2 ;
9984 int ecode2 = 0 ;
9985 int val3 ;
9986 int ecode3 = 0 ;
9987 int val4 ;
9988 int ecode4 = 0 ;
9989 PyObject * obj0 = 0 ;
9990 PyObject * obj1 = 0 ;
9991 PyObject * obj2 = 0 ;
9992 PyObject * obj3 = 0 ;
9993 char * kwnames[] = {
9994 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9995 };
9996
9997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9998 if (obj0) {
9999 ecode1 = SWIG_AsVal_int(obj0, &val1);
10000 if (!SWIG_IsOK(ecode1)) {
10001 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10002 }
10003 arg1 = static_cast< int >(val1);
10004 }
10005 if (obj1) {
10006 ecode2 = SWIG_AsVal_int(obj1, &val2);
10007 if (!SWIG_IsOK(ecode2)) {
10008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10009 }
10010 arg2 = static_cast< int >(val2);
10011 }
10012 if (obj2) {
10013 ecode3 = SWIG_AsVal_int(obj2, &val3);
10014 if (!SWIG_IsOK(ecode3)) {
10015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10016 }
10017 arg3 = static_cast< int >(val3);
10018 }
10019 if (obj3) {
10020 ecode4 = SWIG_AsVal_int(obj3, &val4);
10021 if (!SWIG_IsOK(ecode4)) {
10022 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10023 }
10024 arg4 = static_cast< int >(val4);
10025 }
10026 {
10027 if (!wxPyCheckForApp()) SWIG_fail;
10028 PyThreadState* __tstate = wxPyBeginAllowThreads();
10029 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10030 wxPyEndAllowThreads(__tstate);
10031 if (PyErr_Occurred()) SWIG_fail;
10032 }
10033 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10034 return resultobj;
10035 fail:
10036 return NULL;
10037 }
10038
10039
10040 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10041 PyObject *resultobj = 0;
10042 wxBitmap *arg1 = 0 ;
10043 wxRegion *result = 0 ;
10044 void *argp1 = 0 ;
10045 int res1 = 0 ;
10046 PyObject * obj0 = 0 ;
10047 char * kwnames[] = {
10048 (char *) "bmp", NULL
10049 };
10050
10051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10052 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10053 if (!SWIG_IsOK(res1)) {
10054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10055 }
10056 if (!argp1) {
10057 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10058 }
10059 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10060 {
10061 if (!wxPyCheckForApp()) SWIG_fail;
10062 PyThreadState* __tstate = wxPyBeginAllowThreads();
10063 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10064 wxPyEndAllowThreads(__tstate);
10065 if (PyErr_Occurred()) SWIG_fail;
10066 }
10067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10068 return resultobj;
10069 fail:
10070 return NULL;
10071 }
10072
10073
10074 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10075 PyObject *resultobj = 0;
10076 wxBitmap *arg1 = 0 ;
10077 wxColour *arg2 = 0 ;
10078 int arg3 = (int) 0 ;
10079 wxRegion *result = 0 ;
10080 void *argp1 = 0 ;
10081 int res1 = 0 ;
10082 wxColour temp2 ;
10083 int val3 ;
10084 int ecode3 = 0 ;
10085 PyObject * obj0 = 0 ;
10086 PyObject * obj1 = 0 ;
10087 PyObject * obj2 = 0 ;
10088 char * kwnames[] = {
10089 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10090 };
10091
10092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10093 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10094 if (!SWIG_IsOK(res1)) {
10095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10096 }
10097 if (!argp1) {
10098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10099 }
10100 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10101 {
10102 arg2 = &temp2;
10103 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10104 }
10105 if (obj2) {
10106 ecode3 = SWIG_AsVal_int(obj2, &val3);
10107 if (!SWIG_IsOK(ecode3)) {
10108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10109 }
10110 arg3 = static_cast< int >(val3);
10111 }
10112 {
10113 if (!wxPyCheckForApp()) SWIG_fail;
10114 PyThreadState* __tstate = wxPyBeginAllowThreads();
10115 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10116 wxPyEndAllowThreads(__tstate);
10117 if (PyErr_Occurred()) SWIG_fail;
10118 }
10119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10120 return resultobj;
10121 fail:
10122 return NULL;
10123 }
10124
10125
10126 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10127 PyObject *resultobj = 0;
10128 int arg1 ;
10129 wxPoint *arg2 = (wxPoint *) 0 ;
10130 int arg3 = (int) wxWINDING_RULE ;
10131 wxRegion *result = 0 ;
10132 int val3 ;
10133 int ecode3 = 0 ;
10134 PyObject * obj0 = 0 ;
10135 PyObject * obj1 = 0 ;
10136 char * kwnames[] = {
10137 (char *) "points",(char *) "fillStyle", NULL
10138 };
10139
10140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10141 {
10142 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10143 if (arg2 == NULL) SWIG_fail;
10144 }
10145 if (obj1) {
10146 ecode3 = SWIG_AsVal_int(obj1, &val3);
10147 if (!SWIG_IsOK(ecode3)) {
10148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10149 }
10150 arg3 = static_cast< int >(val3);
10151 }
10152 {
10153 if (!wxPyCheckForApp()) SWIG_fail;
10154 PyThreadState* __tstate = wxPyBeginAllowThreads();
10155 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10156 wxPyEndAllowThreads(__tstate);
10157 if (PyErr_Occurred()) SWIG_fail;
10158 }
10159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10160 {
10161 if (arg2) delete [] arg2;
10162 }
10163 return resultobj;
10164 fail:
10165 {
10166 if (arg2) delete [] arg2;
10167 }
10168 return NULL;
10169 }
10170
10171
10172 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10173 PyObject *resultobj = 0;
10174 wxRegion *arg1 = (wxRegion *) 0 ;
10175 void *argp1 = 0 ;
10176 int res1 = 0 ;
10177 PyObject *swig_obj[1] ;
10178
10179 if (!args) SWIG_fail;
10180 swig_obj[0] = args;
10181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10182 if (!SWIG_IsOK(res1)) {
10183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10184 }
10185 arg1 = reinterpret_cast< wxRegion * >(argp1);
10186 {
10187 PyThreadState* __tstate = wxPyBeginAllowThreads();
10188 delete arg1;
10189
10190 wxPyEndAllowThreads(__tstate);
10191 if (PyErr_Occurred()) SWIG_fail;
10192 }
10193 resultobj = SWIG_Py_Void();
10194 return resultobj;
10195 fail:
10196 return NULL;
10197 }
10198
10199
10200 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10201 PyObject *resultobj = 0;
10202 wxRegion *arg1 = (wxRegion *) 0 ;
10203 void *argp1 = 0 ;
10204 int res1 = 0 ;
10205 PyObject *swig_obj[1] ;
10206
10207 if (!args) SWIG_fail;
10208 swig_obj[0] = args;
10209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10210 if (!SWIG_IsOK(res1)) {
10211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10212 }
10213 arg1 = reinterpret_cast< wxRegion * >(argp1);
10214 {
10215 PyThreadState* __tstate = wxPyBeginAllowThreads();
10216 (arg1)->Clear();
10217 wxPyEndAllowThreads(__tstate);
10218 if (PyErr_Occurred()) SWIG_fail;
10219 }
10220 resultobj = SWIG_Py_Void();
10221 return resultobj;
10222 fail:
10223 return NULL;
10224 }
10225
10226
10227 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10228 PyObject *resultobj = 0;
10229 wxRegion *arg1 = (wxRegion *) 0 ;
10230 int arg2 ;
10231 int arg3 ;
10232 bool result;
10233 void *argp1 = 0 ;
10234 int res1 = 0 ;
10235 int val2 ;
10236 int ecode2 = 0 ;
10237 int val3 ;
10238 int ecode3 = 0 ;
10239 PyObject * obj0 = 0 ;
10240 PyObject * obj1 = 0 ;
10241 PyObject * obj2 = 0 ;
10242 char * kwnames[] = {
10243 (char *) "self",(char *) "x",(char *) "y", NULL
10244 };
10245
10246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10248 if (!SWIG_IsOK(res1)) {
10249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10250 }
10251 arg1 = reinterpret_cast< wxRegion * >(argp1);
10252 ecode2 = SWIG_AsVal_int(obj1, &val2);
10253 if (!SWIG_IsOK(ecode2)) {
10254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10255 }
10256 arg2 = static_cast< int >(val2);
10257 ecode3 = SWIG_AsVal_int(obj2, &val3);
10258 if (!SWIG_IsOK(ecode3)) {
10259 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10260 }
10261 arg3 = static_cast< int >(val3);
10262 {
10263 PyThreadState* __tstate = wxPyBeginAllowThreads();
10264 result = (bool)(arg1)->Offset(arg2,arg3);
10265 wxPyEndAllowThreads(__tstate);
10266 if (PyErr_Occurred()) SWIG_fail;
10267 }
10268 {
10269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10270 }
10271 return resultobj;
10272 fail:
10273 return NULL;
10274 }
10275
10276
10277 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10278 PyObject *resultobj = 0;
10279 wxRegion *arg1 = (wxRegion *) 0 ;
10280 int arg2 ;
10281 int arg3 ;
10282 wxRegionContain result;
10283 void *argp1 = 0 ;
10284 int res1 = 0 ;
10285 int val2 ;
10286 int ecode2 = 0 ;
10287 int val3 ;
10288 int ecode3 = 0 ;
10289 PyObject * obj0 = 0 ;
10290 PyObject * obj1 = 0 ;
10291 PyObject * obj2 = 0 ;
10292 char * kwnames[] = {
10293 (char *) "self",(char *) "x",(char *) "y", NULL
10294 };
10295
10296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10298 if (!SWIG_IsOK(res1)) {
10299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10300 }
10301 arg1 = reinterpret_cast< wxRegion * >(argp1);
10302 ecode2 = SWIG_AsVal_int(obj1, &val2);
10303 if (!SWIG_IsOK(ecode2)) {
10304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10305 }
10306 arg2 = static_cast< int >(val2);
10307 ecode3 = SWIG_AsVal_int(obj2, &val3);
10308 if (!SWIG_IsOK(ecode3)) {
10309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10310 }
10311 arg3 = static_cast< int >(val3);
10312 {
10313 PyThreadState* __tstate = wxPyBeginAllowThreads();
10314 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10315 wxPyEndAllowThreads(__tstate);
10316 if (PyErr_Occurred()) SWIG_fail;
10317 }
10318 resultobj = SWIG_From_int(static_cast< int >(result));
10319 return resultobj;
10320 fail:
10321 return NULL;
10322 }
10323
10324
10325 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10326 PyObject *resultobj = 0;
10327 wxRegion *arg1 = (wxRegion *) 0 ;
10328 wxPoint *arg2 = 0 ;
10329 wxRegionContain result;
10330 void *argp1 = 0 ;
10331 int res1 = 0 ;
10332 wxPoint temp2 ;
10333 PyObject * obj0 = 0 ;
10334 PyObject * obj1 = 0 ;
10335 char * kwnames[] = {
10336 (char *) "self",(char *) "pt", NULL
10337 };
10338
10339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10341 if (!SWIG_IsOK(res1)) {
10342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10343 }
10344 arg1 = reinterpret_cast< wxRegion * >(argp1);
10345 {
10346 arg2 = &temp2;
10347 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10348 }
10349 {
10350 PyThreadState* __tstate = wxPyBeginAllowThreads();
10351 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10352 wxPyEndAllowThreads(__tstate);
10353 if (PyErr_Occurred()) SWIG_fail;
10354 }
10355 resultobj = SWIG_From_int(static_cast< int >(result));
10356 return resultobj;
10357 fail:
10358 return NULL;
10359 }
10360
10361
10362 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10363 PyObject *resultobj = 0;
10364 wxRegion *arg1 = (wxRegion *) 0 ;
10365 wxRect *arg2 = 0 ;
10366 wxRegionContain result;
10367 void *argp1 = 0 ;
10368 int res1 = 0 ;
10369 wxRect temp2 ;
10370 PyObject * obj0 = 0 ;
10371 PyObject * obj1 = 0 ;
10372 char * kwnames[] = {
10373 (char *) "self",(char *) "rect", NULL
10374 };
10375
10376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10378 if (!SWIG_IsOK(res1)) {
10379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10380 }
10381 arg1 = reinterpret_cast< wxRegion * >(argp1);
10382 {
10383 arg2 = &temp2;
10384 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10385 }
10386 {
10387 PyThreadState* __tstate = wxPyBeginAllowThreads();
10388 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10389 wxPyEndAllowThreads(__tstate);
10390 if (PyErr_Occurred()) SWIG_fail;
10391 }
10392 resultobj = SWIG_From_int(static_cast< int >(result));
10393 return resultobj;
10394 fail:
10395 return NULL;
10396 }
10397
10398
10399 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10400 PyObject *resultobj = 0;
10401 wxRegion *arg1 = (wxRegion *) 0 ;
10402 int arg2 ;
10403 int arg3 ;
10404 int arg4 ;
10405 int arg5 ;
10406 wxRegionContain result;
10407 void *argp1 = 0 ;
10408 int res1 = 0 ;
10409 int val2 ;
10410 int ecode2 = 0 ;
10411 int val3 ;
10412 int ecode3 = 0 ;
10413 int val4 ;
10414 int ecode4 = 0 ;
10415 int val5 ;
10416 int ecode5 = 0 ;
10417 PyObject * obj0 = 0 ;
10418 PyObject * obj1 = 0 ;
10419 PyObject * obj2 = 0 ;
10420 PyObject * obj3 = 0 ;
10421 PyObject * obj4 = 0 ;
10422 char * kwnames[] = {
10423 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10424 };
10425
10426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10428 if (!SWIG_IsOK(res1)) {
10429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10430 }
10431 arg1 = reinterpret_cast< wxRegion * >(argp1);
10432 ecode2 = SWIG_AsVal_int(obj1, &val2);
10433 if (!SWIG_IsOK(ecode2)) {
10434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10435 }
10436 arg2 = static_cast< int >(val2);
10437 ecode3 = SWIG_AsVal_int(obj2, &val3);
10438 if (!SWIG_IsOK(ecode3)) {
10439 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10440 }
10441 arg3 = static_cast< int >(val3);
10442 ecode4 = SWIG_AsVal_int(obj3, &val4);
10443 if (!SWIG_IsOK(ecode4)) {
10444 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10445 }
10446 arg4 = static_cast< int >(val4);
10447 ecode5 = SWIG_AsVal_int(obj4, &val5);
10448 if (!SWIG_IsOK(ecode5)) {
10449 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10450 }
10451 arg5 = static_cast< int >(val5);
10452 {
10453 PyThreadState* __tstate = wxPyBeginAllowThreads();
10454 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10455 wxPyEndAllowThreads(__tstate);
10456 if (PyErr_Occurred()) SWIG_fail;
10457 }
10458 resultobj = SWIG_From_int(static_cast< int >(result));
10459 return resultobj;
10460 fail:
10461 return NULL;
10462 }
10463
10464
10465 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10466 PyObject *resultobj = 0;
10467 wxRegion *arg1 = (wxRegion *) 0 ;
10468 wxRect result;
10469 void *argp1 = 0 ;
10470 int res1 = 0 ;
10471 PyObject *swig_obj[1] ;
10472
10473 if (!args) SWIG_fail;
10474 swig_obj[0] = args;
10475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10476 if (!SWIG_IsOK(res1)) {
10477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10478 }
10479 arg1 = reinterpret_cast< wxRegion * >(argp1);
10480 {
10481 PyThreadState* __tstate = wxPyBeginAllowThreads();
10482 result = (arg1)->GetBox();
10483 wxPyEndAllowThreads(__tstate);
10484 if (PyErr_Occurred()) SWIG_fail;
10485 }
10486 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10487 return resultobj;
10488 fail:
10489 return NULL;
10490 }
10491
10492
10493 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10494 PyObject *resultobj = 0;
10495 wxRegion *arg1 = (wxRegion *) 0 ;
10496 int arg2 ;
10497 int arg3 ;
10498 int arg4 ;
10499 int arg5 ;
10500 bool result;
10501 void *argp1 = 0 ;
10502 int res1 = 0 ;
10503 int val2 ;
10504 int ecode2 = 0 ;
10505 int val3 ;
10506 int ecode3 = 0 ;
10507 int val4 ;
10508 int ecode4 = 0 ;
10509 int val5 ;
10510 int ecode5 = 0 ;
10511 PyObject * obj0 = 0 ;
10512 PyObject * obj1 = 0 ;
10513 PyObject * obj2 = 0 ;
10514 PyObject * obj3 = 0 ;
10515 PyObject * obj4 = 0 ;
10516 char * kwnames[] = {
10517 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10518 };
10519
10520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10522 if (!SWIG_IsOK(res1)) {
10523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10524 }
10525 arg1 = reinterpret_cast< wxRegion * >(argp1);
10526 ecode2 = SWIG_AsVal_int(obj1, &val2);
10527 if (!SWIG_IsOK(ecode2)) {
10528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10529 }
10530 arg2 = static_cast< int >(val2);
10531 ecode3 = SWIG_AsVal_int(obj2, &val3);
10532 if (!SWIG_IsOK(ecode3)) {
10533 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10534 }
10535 arg3 = static_cast< int >(val3);
10536 ecode4 = SWIG_AsVal_int(obj3, &val4);
10537 if (!SWIG_IsOK(ecode4)) {
10538 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10539 }
10540 arg4 = static_cast< int >(val4);
10541 ecode5 = SWIG_AsVal_int(obj4, &val5);
10542 if (!SWIG_IsOK(ecode5)) {
10543 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10544 }
10545 arg5 = static_cast< int >(val5);
10546 {
10547 PyThreadState* __tstate = wxPyBeginAllowThreads();
10548 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10549 wxPyEndAllowThreads(__tstate);
10550 if (PyErr_Occurred()) SWIG_fail;
10551 }
10552 {
10553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10554 }
10555 return resultobj;
10556 fail:
10557 return NULL;
10558 }
10559
10560
10561 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10562 PyObject *resultobj = 0;
10563 wxRegion *arg1 = (wxRegion *) 0 ;
10564 wxRect *arg2 = 0 ;
10565 bool result;
10566 void *argp1 = 0 ;
10567 int res1 = 0 ;
10568 wxRect temp2 ;
10569 PyObject * obj0 = 0 ;
10570 PyObject * obj1 = 0 ;
10571 char * kwnames[] = {
10572 (char *) "self",(char *) "rect", NULL
10573 };
10574
10575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10577 if (!SWIG_IsOK(res1)) {
10578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10579 }
10580 arg1 = reinterpret_cast< wxRegion * >(argp1);
10581 {
10582 arg2 = &temp2;
10583 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10584 }
10585 {
10586 PyThreadState* __tstate = wxPyBeginAllowThreads();
10587 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10588 wxPyEndAllowThreads(__tstate);
10589 if (PyErr_Occurred()) SWIG_fail;
10590 }
10591 {
10592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10593 }
10594 return resultobj;
10595 fail:
10596 return NULL;
10597 }
10598
10599
10600 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10601 PyObject *resultobj = 0;
10602 wxRegion *arg1 = (wxRegion *) 0 ;
10603 wxRegion *arg2 = 0 ;
10604 bool result;
10605 void *argp1 = 0 ;
10606 int res1 = 0 ;
10607 void *argp2 = 0 ;
10608 int res2 = 0 ;
10609 PyObject * obj0 = 0 ;
10610 PyObject * obj1 = 0 ;
10611 char * kwnames[] = {
10612 (char *) "self",(char *) "region", NULL
10613 };
10614
10615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10617 if (!SWIG_IsOK(res1)) {
10618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10619 }
10620 arg1 = reinterpret_cast< wxRegion * >(argp1);
10621 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10622 if (!SWIG_IsOK(res2)) {
10623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10624 }
10625 if (!argp2) {
10626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10627 }
10628 arg2 = reinterpret_cast< wxRegion * >(argp2);
10629 {
10630 PyThreadState* __tstate = wxPyBeginAllowThreads();
10631 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10632 wxPyEndAllowThreads(__tstate);
10633 if (PyErr_Occurred()) SWIG_fail;
10634 }
10635 {
10636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10637 }
10638 return resultobj;
10639 fail:
10640 return NULL;
10641 }
10642
10643
10644 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10645 PyObject *resultobj = 0;
10646 wxRegion *arg1 = (wxRegion *) 0 ;
10647 bool result;
10648 void *argp1 = 0 ;
10649 int res1 = 0 ;
10650 PyObject *swig_obj[1] ;
10651
10652 if (!args) SWIG_fail;
10653 swig_obj[0] = args;
10654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10655 if (!SWIG_IsOK(res1)) {
10656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10657 }
10658 arg1 = reinterpret_cast< wxRegion * >(argp1);
10659 {
10660 PyThreadState* __tstate = wxPyBeginAllowThreads();
10661 result = (bool)(arg1)->IsEmpty();
10662 wxPyEndAllowThreads(__tstate);
10663 if (PyErr_Occurred()) SWIG_fail;
10664 }
10665 {
10666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10667 }
10668 return resultobj;
10669 fail:
10670 return NULL;
10671 }
10672
10673
10674 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10675 PyObject *resultobj = 0;
10676 wxRegion *arg1 = (wxRegion *) 0 ;
10677 wxRegion *arg2 = 0 ;
10678 bool result;
10679 void *argp1 = 0 ;
10680 int res1 = 0 ;
10681 void *argp2 = 0 ;
10682 int res2 = 0 ;
10683 PyObject * obj0 = 0 ;
10684 PyObject * obj1 = 0 ;
10685 char * kwnames[] = {
10686 (char *) "self",(char *) "region", NULL
10687 };
10688
10689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10691 if (!SWIG_IsOK(res1)) {
10692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10693 }
10694 arg1 = reinterpret_cast< wxRegion * >(argp1);
10695 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10696 if (!SWIG_IsOK(res2)) {
10697 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10698 }
10699 if (!argp2) {
10700 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10701 }
10702 arg2 = reinterpret_cast< wxRegion * >(argp2);
10703 {
10704 PyThreadState* __tstate = wxPyBeginAllowThreads();
10705 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
10706 wxPyEndAllowThreads(__tstate);
10707 if (PyErr_Occurred()) SWIG_fail;
10708 }
10709 {
10710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10711 }
10712 return resultobj;
10713 fail:
10714 return NULL;
10715 }
10716
10717
10718 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10719 PyObject *resultobj = 0;
10720 wxRegion *arg1 = (wxRegion *) 0 ;
10721 int arg2 ;
10722 int arg3 ;
10723 int arg4 ;
10724 int arg5 ;
10725 bool result;
10726 void *argp1 = 0 ;
10727 int res1 = 0 ;
10728 int val2 ;
10729 int ecode2 = 0 ;
10730 int val3 ;
10731 int ecode3 = 0 ;
10732 int val4 ;
10733 int ecode4 = 0 ;
10734 int val5 ;
10735 int ecode5 = 0 ;
10736 PyObject * obj0 = 0 ;
10737 PyObject * obj1 = 0 ;
10738 PyObject * obj2 = 0 ;
10739 PyObject * obj3 = 0 ;
10740 PyObject * obj4 = 0 ;
10741 char * kwnames[] = {
10742 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10743 };
10744
10745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10747 if (!SWIG_IsOK(res1)) {
10748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10749 }
10750 arg1 = reinterpret_cast< wxRegion * >(argp1);
10751 ecode2 = SWIG_AsVal_int(obj1, &val2);
10752 if (!SWIG_IsOK(ecode2)) {
10753 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10754 }
10755 arg2 = static_cast< int >(val2);
10756 ecode3 = SWIG_AsVal_int(obj2, &val3);
10757 if (!SWIG_IsOK(ecode3)) {
10758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10759 }
10760 arg3 = static_cast< int >(val3);
10761 ecode4 = SWIG_AsVal_int(obj3, &val4);
10762 if (!SWIG_IsOK(ecode4)) {
10763 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10764 }
10765 arg4 = static_cast< int >(val4);
10766 ecode5 = SWIG_AsVal_int(obj4, &val5);
10767 if (!SWIG_IsOK(ecode5)) {
10768 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10769 }
10770 arg5 = static_cast< int >(val5);
10771 {
10772 PyThreadState* __tstate = wxPyBeginAllowThreads();
10773 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10774 wxPyEndAllowThreads(__tstate);
10775 if (PyErr_Occurred()) SWIG_fail;
10776 }
10777 {
10778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10779 }
10780 return resultobj;
10781 fail:
10782 return NULL;
10783 }
10784
10785
10786 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10787 PyObject *resultobj = 0;
10788 wxRegion *arg1 = (wxRegion *) 0 ;
10789 wxRect *arg2 = 0 ;
10790 bool result;
10791 void *argp1 = 0 ;
10792 int res1 = 0 ;
10793 wxRect temp2 ;
10794 PyObject * obj0 = 0 ;
10795 PyObject * obj1 = 0 ;
10796 char * kwnames[] = {
10797 (char *) "self",(char *) "rect", NULL
10798 };
10799
10800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10802 if (!SWIG_IsOK(res1)) {
10803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10804 }
10805 arg1 = reinterpret_cast< wxRegion * >(argp1);
10806 {
10807 arg2 = &temp2;
10808 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10809 }
10810 {
10811 PyThreadState* __tstate = wxPyBeginAllowThreads();
10812 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10813 wxPyEndAllowThreads(__tstate);
10814 if (PyErr_Occurred()) SWIG_fail;
10815 }
10816 {
10817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10818 }
10819 return resultobj;
10820 fail:
10821 return NULL;
10822 }
10823
10824
10825 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10826 PyObject *resultobj = 0;
10827 wxRegion *arg1 = (wxRegion *) 0 ;
10828 wxRegion *arg2 = 0 ;
10829 bool result;
10830 void *argp1 = 0 ;
10831 int res1 = 0 ;
10832 void *argp2 = 0 ;
10833 int res2 = 0 ;
10834 PyObject * obj0 = 0 ;
10835 PyObject * obj1 = 0 ;
10836 char * kwnames[] = {
10837 (char *) "self",(char *) "region", NULL
10838 };
10839
10840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10842 if (!SWIG_IsOK(res1)) {
10843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10844 }
10845 arg1 = reinterpret_cast< wxRegion * >(argp1);
10846 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10847 if (!SWIG_IsOK(res2)) {
10848 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10849 }
10850 if (!argp2) {
10851 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10852 }
10853 arg2 = reinterpret_cast< wxRegion * >(argp2);
10854 {
10855 PyThreadState* __tstate = wxPyBeginAllowThreads();
10856 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10857 wxPyEndAllowThreads(__tstate);
10858 if (PyErr_Occurred()) SWIG_fail;
10859 }
10860 {
10861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10862 }
10863 return resultobj;
10864 fail:
10865 return NULL;
10866 }
10867
10868
10869 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10870 PyObject *resultobj = 0;
10871 wxRegion *arg1 = (wxRegion *) 0 ;
10872 int arg2 ;
10873 int arg3 ;
10874 int arg4 ;
10875 int arg5 ;
10876 bool result;
10877 void *argp1 = 0 ;
10878 int res1 = 0 ;
10879 int val2 ;
10880 int ecode2 = 0 ;
10881 int val3 ;
10882 int ecode3 = 0 ;
10883 int val4 ;
10884 int ecode4 = 0 ;
10885 int val5 ;
10886 int ecode5 = 0 ;
10887 PyObject * obj0 = 0 ;
10888 PyObject * obj1 = 0 ;
10889 PyObject * obj2 = 0 ;
10890 PyObject * obj3 = 0 ;
10891 PyObject * obj4 = 0 ;
10892 char * kwnames[] = {
10893 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10894 };
10895
10896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10898 if (!SWIG_IsOK(res1)) {
10899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10900 }
10901 arg1 = reinterpret_cast< wxRegion * >(argp1);
10902 ecode2 = SWIG_AsVal_int(obj1, &val2);
10903 if (!SWIG_IsOK(ecode2)) {
10904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10905 }
10906 arg2 = static_cast< int >(val2);
10907 ecode3 = SWIG_AsVal_int(obj2, &val3);
10908 if (!SWIG_IsOK(ecode3)) {
10909 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10910 }
10911 arg3 = static_cast< int >(val3);
10912 ecode4 = SWIG_AsVal_int(obj3, &val4);
10913 if (!SWIG_IsOK(ecode4)) {
10914 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10915 }
10916 arg4 = static_cast< int >(val4);
10917 ecode5 = SWIG_AsVal_int(obj4, &val5);
10918 if (!SWIG_IsOK(ecode5)) {
10919 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10920 }
10921 arg5 = static_cast< int >(val5);
10922 {
10923 PyThreadState* __tstate = wxPyBeginAllowThreads();
10924 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10925 wxPyEndAllowThreads(__tstate);
10926 if (PyErr_Occurred()) SWIG_fail;
10927 }
10928 {
10929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10930 }
10931 return resultobj;
10932 fail:
10933 return NULL;
10934 }
10935
10936
10937 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10938 PyObject *resultobj = 0;
10939 wxRegion *arg1 = (wxRegion *) 0 ;
10940 wxRect *arg2 = 0 ;
10941 bool result;
10942 void *argp1 = 0 ;
10943 int res1 = 0 ;
10944 wxRect temp2 ;
10945 PyObject * obj0 = 0 ;
10946 PyObject * obj1 = 0 ;
10947 char * kwnames[] = {
10948 (char *) "self",(char *) "rect", NULL
10949 };
10950
10951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10953 if (!SWIG_IsOK(res1)) {
10954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10955 }
10956 arg1 = reinterpret_cast< wxRegion * >(argp1);
10957 {
10958 arg2 = &temp2;
10959 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10960 }
10961 {
10962 PyThreadState* __tstate = wxPyBeginAllowThreads();
10963 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10964 wxPyEndAllowThreads(__tstate);
10965 if (PyErr_Occurred()) SWIG_fail;
10966 }
10967 {
10968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10969 }
10970 return resultobj;
10971 fail:
10972 return NULL;
10973 }
10974
10975
10976 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10977 PyObject *resultobj = 0;
10978 wxRegion *arg1 = (wxRegion *) 0 ;
10979 wxRegion *arg2 = 0 ;
10980 bool result;
10981 void *argp1 = 0 ;
10982 int res1 = 0 ;
10983 void *argp2 = 0 ;
10984 int res2 = 0 ;
10985 PyObject * obj0 = 0 ;
10986 PyObject * obj1 = 0 ;
10987 char * kwnames[] = {
10988 (char *) "self",(char *) "region", NULL
10989 };
10990
10991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10993 if (!SWIG_IsOK(res1)) {
10994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10995 }
10996 arg1 = reinterpret_cast< wxRegion * >(argp1);
10997 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10998 if (!SWIG_IsOK(res2)) {
10999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11000 }
11001 if (!argp2) {
11002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11003 }
11004 arg2 = reinterpret_cast< wxRegion * >(argp2);
11005 {
11006 PyThreadState* __tstate = wxPyBeginAllowThreads();
11007 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11008 wxPyEndAllowThreads(__tstate);
11009 if (PyErr_Occurred()) SWIG_fail;
11010 }
11011 {
11012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11013 }
11014 return resultobj;
11015 fail:
11016 return NULL;
11017 }
11018
11019
11020 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11021 PyObject *resultobj = 0;
11022 wxRegion *arg1 = (wxRegion *) 0 ;
11023 int arg2 ;
11024 int arg3 ;
11025 int arg4 ;
11026 int arg5 ;
11027 bool result;
11028 void *argp1 = 0 ;
11029 int res1 = 0 ;
11030 int val2 ;
11031 int ecode2 = 0 ;
11032 int val3 ;
11033 int ecode3 = 0 ;
11034 int val4 ;
11035 int ecode4 = 0 ;
11036 int val5 ;
11037 int ecode5 = 0 ;
11038 PyObject * obj0 = 0 ;
11039 PyObject * obj1 = 0 ;
11040 PyObject * obj2 = 0 ;
11041 PyObject * obj3 = 0 ;
11042 PyObject * obj4 = 0 ;
11043 char * kwnames[] = {
11044 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11045 };
11046
11047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11049 if (!SWIG_IsOK(res1)) {
11050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11051 }
11052 arg1 = reinterpret_cast< wxRegion * >(argp1);
11053 ecode2 = SWIG_AsVal_int(obj1, &val2);
11054 if (!SWIG_IsOK(ecode2)) {
11055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11056 }
11057 arg2 = static_cast< int >(val2);
11058 ecode3 = SWIG_AsVal_int(obj2, &val3);
11059 if (!SWIG_IsOK(ecode3)) {
11060 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11061 }
11062 arg3 = static_cast< int >(val3);
11063 ecode4 = SWIG_AsVal_int(obj3, &val4);
11064 if (!SWIG_IsOK(ecode4)) {
11065 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11066 }
11067 arg4 = static_cast< int >(val4);
11068 ecode5 = SWIG_AsVal_int(obj4, &val5);
11069 if (!SWIG_IsOK(ecode5)) {
11070 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11071 }
11072 arg5 = static_cast< int >(val5);
11073 {
11074 PyThreadState* __tstate = wxPyBeginAllowThreads();
11075 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11076 wxPyEndAllowThreads(__tstate);
11077 if (PyErr_Occurred()) SWIG_fail;
11078 }
11079 {
11080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11081 }
11082 return resultobj;
11083 fail:
11084 return NULL;
11085 }
11086
11087
11088 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11089 PyObject *resultobj = 0;
11090 wxRegion *arg1 = (wxRegion *) 0 ;
11091 wxRect *arg2 = 0 ;
11092 bool result;
11093 void *argp1 = 0 ;
11094 int res1 = 0 ;
11095 wxRect temp2 ;
11096 PyObject * obj0 = 0 ;
11097 PyObject * obj1 = 0 ;
11098 char * kwnames[] = {
11099 (char *) "self",(char *) "rect", NULL
11100 };
11101
11102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11104 if (!SWIG_IsOK(res1)) {
11105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11106 }
11107 arg1 = reinterpret_cast< wxRegion * >(argp1);
11108 {
11109 arg2 = &temp2;
11110 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11111 }
11112 {
11113 PyThreadState* __tstate = wxPyBeginAllowThreads();
11114 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11115 wxPyEndAllowThreads(__tstate);
11116 if (PyErr_Occurred()) SWIG_fail;
11117 }
11118 {
11119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11120 }
11121 return resultobj;
11122 fail:
11123 return NULL;
11124 }
11125
11126
11127 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11128 PyObject *resultobj = 0;
11129 wxRegion *arg1 = (wxRegion *) 0 ;
11130 wxRegion *arg2 = 0 ;
11131 bool result;
11132 void *argp1 = 0 ;
11133 int res1 = 0 ;
11134 void *argp2 = 0 ;
11135 int res2 = 0 ;
11136 PyObject * obj0 = 0 ;
11137 PyObject * obj1 = 0 ;
11138 char * kwnames[] = {
11139 (char *) "self",(char *) "region", NULL
11140 };
11141
11142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11144 if (!SWIG_IsOK(res1)) {
11145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11146 }
11147 arg1 = reinterpret_cast< wxRegion * >(argp1);
11148 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11149 if (!SWIG_IsOK(res2)) {
11150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11151 }
11152 if (!argp2) {
11153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11154 }
11155 arg2 = reinterpret_cast< wxRegion * >(argp2);
11156 {
11157 PyThreadState* __tstate = wxPyBeginAllowThreads();
11158 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11159 wxPyEndAllowThreads(__tstate);
11160 if (PyErr_Occurred()) SWIG_fail;
11161 }
11162 {
11163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11164 }
11165 return resultobj;
11166 fail:
11167 return NULL;
11168 }
11169
11170
11171 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11172 PyObject *resultobj = 0;
11173 wxRegion *arg1 = (wxRegion *) 0 ;
11174 SwigValueWrapper<wxBitmap > result;
11175 void *argp1 = 0 ;
11176 int res1 = 0 ;
11177 PyObject *swig_obj[1] ;
11178
11179 if (!args) SWIG_fail;
11180 swig_obj[0] = args;
11181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11182 if (!SWIG_IsOK(res1)) {
11183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11184 }
11185 arg1 = reinterpret_cast< wxRegion * >(argp1);
11186 {
11187 PyThreadState* __tstate = wxPyBeginAllowThreads();
11188 result = (arg1)->ConvertToBitmap();
11189 wxPyEndAllowThreads(__tstate);
11190 if (PyErr_Occurred()) SWIG_fail;
11191 }
11192 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11193 return resultobj;
11194 fail:
11195 return NULL;
11196 }
11197
11198
11199 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11200 PyObject *resultobj = 0;
11201 wxRegion *arg1 = (wxRegion *) 0 ;
11202 wxBitmap *arg2 = 0 ;
11203 bool result;
11204 void *argp1 = 0 ;
11205 int res1 = 0 ;
11206 void *argp2 = 0 ;
11207 int res2 = 0 ;
11208 PyObject * obj0 = 0 ;
11209 PyObject * obj1 = 0 ;
11210 char * kwnames[] = {
11211 (char *) "self",(char *) "bmp", NULL
11212 };
11213
11214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11216 if (!SWIG_IsOK(res1)) {
11217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11218 }
11219 arg1 = reinterpret_cast< wxRegion * >(argp1);
11220 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11221 if (!SWIG_IsOK(res2)) {
11222 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11223 }
11224 if (!argp2) {
11225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11226 }
11227 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11228 {
11229 PyThreadState* __tstate = wxPyBeginAllowThreads();
11230 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11231 wxPyEndAllowThreads(__tstate);
11232 if (PyErr_Occurred()) SWIG_fail;
11233 }
11234 {
11235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11236 }
11237 return resultobj;
11238 fail:
11239 return NULL;
11240 }
11241
11242
11243 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11244 PyObject *resultobj = 0;
11245 wxRegion *arg1 = (wxRegion *) 0 ;
11246 wxBitmap *arg2 = 0 ;
11247 wxColour *arg3 = 0 ;
11248 int arg4 = (int) 0 ;
11249 bool result;
11250 void *argp1 = 0 ;
11251 int res1 = 0 ;
11252 void *argp2 = 0 ;
11253 int res2 = 0 ;
11254 wxColour temp3 ;
11255 int val4 ;
11256 int ecode4 = 0 ;
11257 PyObject * obj0 = 0 ;
11258 PyObject * obj1 = 0 ;
11259 PyObject * obj2 = 0 ;
11260 PyObject * obj3 = 0 ;
11261 char * kwnames[] = {
11262 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11263 };
11264
11265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11267 if (!SWIG_IsOK(res1)) {
11268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11269 }
11270 arg1 = reinterpret_cast< wxRegion * >(argp1);
11271 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11272 if (!SWIG_IsOK(res2)) {
11273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11274 }
11275 if (!argp2) {
11276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11277 }
11278 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11279 {
11280 arg3 = &temp3;
11281 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11282 }
11283 if (obj3) {
11284 ecode4 = SWIG_AsVal_int(obj3, &val4);
11285 if (!SWIG_IsOK(ecode4)) {
11286 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11287 }
11288 arg4 = static_cast< int >(val4);
11289 }
11290 {
11291 PyThreadState* __tstate = wxPyBeginAllowThreads();
11292 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11293 wxPyEndAllowThreads(__tstate);
11294 if (PyErr_Occurred()) SWIG_fail;
11295 }
11296 {
11297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11298 }
11299 return resultobj;
11300 fail:
11301 return NULL;
11302 }
11303
11304
11305 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11306 PyObject *obj;
11307 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11308 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11309 return SWIG_Py_Void();
11310 }
11311
11312 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11313 return SWIG_Python_InitShadowInstance(args);
11314 }
11315
11316 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11317 PyObject *resultobj = 0;
11318 wxRegion *arg1 = 0 ;
11319 wxRegionIterator *result = 0 ;
11320 void *argp1 = 0 ;
11321 int res1 = 0 ;
11322 PyObject * obj0 = 0 ;
11323 char * kwnames[] = {
11324 (char *) "region", NULL
11325 };
11326
11327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11328 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11329 if (!SWIG_IsOK(res1)) {
11330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11331 }
11332 if (!argp1) {
11333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11334 }
11335 arg1 = reinterpret_cast< wxRegion * >(argp1);
11336 {
11337 if (!wxPyCheckForApp()) SWIG_fail;
11338 PyThreadState* __tstate = wxPyBeginAllowThreads();
11339 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11340 wxPyEndAllowThreads(__tstate);
11341 if (PyErr_Occurred()) SWIG_fail;
11342 }
11343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11344 return resultobj;
11345 fail:
11346 return NULL;
11347 }
11348
11349
11350 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11351 PyObject *resultobj = 0;
11352 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11353 void *argp1 = 0 ;
11354 int res1 = 0 ;
11355 PyObject *swig_obj[1] ;
11356
11357 if (!args) SWIG_fail;
11358 swig_obj[0] = args;
11359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11360 if (!SWIG_IsOK(res1)) {
11361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11362 }
11363 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11364 {
11365 PyThreadState* __tstate = wxPyBeginAllowThreads();
11366 delete arg1;
11367
11368 wxPyEndAllowThreads(__tstate);
11369 if (PyErr_Occurred()) SWIG_fail;
11370 }
11371 resultobj = SWIG_Py_Void();
11372 return resultobj;
11373 fail:
11374 return NULL;
11375 }
11376
11377
11378 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11379 PyObject *resultobj = 0;
11380 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11381 int result;
11382 void *argp1 = 0 ;
11383 int res1 = 0 ;
11384 PyObject *swig_obj[1] ;
11385
11386 if (!args) SWIG_fail;
11387 swig_obj[0] = args;
11388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11389 if (!SWIG_IsOK(res1)) {
11390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11391 }
11392 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11393 {
11394 PyThreadState* __tstate = wxPyBeginAllowThreads();
11395 result = (int)(arg1)->GetX();
11396 wxPyEndAllowThreads(__tstate);
11397 if (PyErr_Occurred()) SWIG_fail;
11398 }
11399 resultobj = SWIG_From_int(static_cast< int >(result));
11400 return resultobj;
11401 fail:
11402 return NULL;
11403 }
11404
11405
11406 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11407 PyObject *resultobj = 0;
11408 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11409 int result;
11410 void *argp1 = 0 ;
11411 int res1 = 0 ;
11412 PyObject *swig_obj[1] ;
11413
11414 if (!args) SWIG_fail;
11415 swig_obj[0] = args;
11416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11417 if (!SWIG_IsOK(res1)) {
11418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11419 }
11420 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11421 {
11422 PyThreadState* __tstate = wxPyBeginAllowThreads();
11423 result = (int)(arg1)->GetY();
11424 wxPyEndAllowThreads(__tstate);
11425 if (PyErr_Occurred()) SWIG_fail;
11426 }
11427 resultobj = SWIG_From_int(static_cast< int >(result));
11428 return resultobj;
11429 fail:
11430 return NULL;
11431 }
11432
11433
11434 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11435 PyObject *resultobj = 0;
11436 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11437 int result;
11438 void *argp1 = 0 ;
11439 int res1 = 0 ;
11440 PyObject *swig_obj[1] ;
11441
11442 if (!args) SWIG_fail;
11443 swig_obj[0] = args;
11444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11445 if (!SWIG_IsOK(res1)) {
11446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11447 }
11448 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11449 {
11450 PyThreadState* __tstate = wxPyBeginAllowThreads();
11451 result = (int)(arg1)->GetW();
11452 wxPyEndAllowThreads(__tstate);
11453 if (PyErr_Occurred()) SWIG_fail;
11454 }
11455 resultobj = SWIG_From_int(static_cast< int >(result));
11456 return resultobj;
11457 fail:
11458 return NULL;
11459 }
11460
11461
11462 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11463 PyObject *resultobj = 0;
11464 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11465 int result;
11466 void *argp1 = 0 ;
11467 int res1 = 0 ;
11468 PyObject *swig_obj[1] ;
11469
11470 if (!args) SWIG_fail;
11471 swig_obj[0] = args;
11472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11473 if (!SWIG_IsOK(res1)) {
11474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11475 }
11476 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11477 {
11478 PyThreadState* __tstate = wxPyBeginAllowThreads();
11479 result = (int)(arg1)->GetWidth();
11480 wxPyEndAllowThreads(__tstate);
11481 if (PyErr_Occurred()) SWIG_fail;
11482 }
11483 resultobj = SWIG_From_int(static_cast< int >(result));
11484 return resultobj;
11485 fail:
11486 return NULL;
11487 }
11488
11489
11490 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11491 PyObject *resultobj = 0;
11492 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11493 int result;
11494 void *argp1 = 0 ;
11495 int res1 = 0 ;
11496 PyObject *swig_obj[1] ;
11497
11498 if (!args) SWIG_fail;
11499 swig_obj[0] = args;
11500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11501 if (!SWIG_IsOK(res1)) {
11502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11503 }
11504 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11505 {
11506 PyThreadState* __tstate = wxPyBeginAllowThreads();
11507 result = (int)(arg1)->GetH();
11508 wxPyEndAllowThreads(__tstate);
11509 if (PyErr_Occurred()) SWIG_fail;
11510 }
11511 resultobj = SWIG_From_int(static_cast< int >(result));
11512 return resultobj;
11513 fail:
11514 return NULL;
11515 }
11516
11517
11518 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11519 PyObject *resultobj = 0;
11520 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11521 int result;
11522 void *argp1 = 0 ;
11523 int res1 = 0 ;
11524 PyObject *swig_obj[1] ;
11525
11526 if (!args) SWIG_fail;
11527 swig_obj[0] = args;
11528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11529 if (!SWIG_IsOK(res1)) {
11530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11531 }
11532 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11533 {
11534 PyThreadState* __tstate = wxPyBeginAllowThreads();
11535 result = (int)(arg1)->GetHeight();
11536 wxPyEndAllowThreads(__tstate);
11537 if (PyErr_Occurred()) SWIG_fail;
11538 }
11539 resultobj = SWIG_From_int(static_cast< int >(result));
11540 return resultobj;
11541 fail:
11542 return NULL;
11543 }
11544
11545
11546 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11547 PyObject *resultobj = 0;
11548 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11549 wxRect result;
11550 void *argp1 = 0 ;
11551 int res1 = 0 ;
11552 PyObject *swig_obj[1] ;
11553
11554 if (!args) SWIG_fail;
11555 swig_obj[0] = args;
11556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11557 if (!SWIG_IsOK(res1)) {
11558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11559 }
11560 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11561 {
11562 PyThreadState* __tstate = wxPyBeginAllowThreads();
11563 result = (arg1)->GetRect();
11564 wxPyEndAllowThreads(__tstate);
11565 if (PyErr_Occurred()) SWIG_fail;
11566 }
11567 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11568 return resultobj;
11569 fail:
11570 return NULL;
11571 }
11572
11573
11574 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11575 PyObject *resultobj = 0;
11576 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11577 bool result;
11578 void *argp1 = 0 ;
11579 int res1 = 0 ;
11580 PyObject *swig_obj[1] ;
11581
11582 if (!args) SWIG_fail;
11583 swig_obj[0] = args;
11584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11585 if (!SWIG_IsOK(res1)) {
11586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11587 }
11588 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11589 {
11590 PyThreadState* __tstate = wxPyBeginAllowThreads();
11591 result = (bool)(arg1)->HaveRects();
11592 wxPyEndAllowThreads(__tstate);
11593 if (PyErr_Occurred()) SWIG_fail;
11594 }
11595 {
11596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11597 }
11598 return resultobj;
11599 fail:
11600 return NULL;
11601 }
11602
11603
11604 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11605 PyObject *resultobj = 0;
11606 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11607 void *argp1 = 0 ;
11608 int res1 = 0 ;
11609 PyObject *swig_obj[1] ;
11610
11611 if (!args) SWIG_fail;
11612 swig_obj[0] = args;
11613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11614 if (!SWIG_IsOK(res1)) {
11615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11616 }
11617 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11618 {
11619 PyThreadState* __tstate = wxPyBeginAllowThreads();
11620 (arg1)->Reset();
11621 wxPyEndAllowThreads(__tstate);
11622 if (PyErr_Occurred()) SWIG_fail;
11623 }
11624 resultobj = SWIG_Py_Void();
11625 return resultobj;
11626 fail:
11627 return NULL;
11628 }
11629
11630
11631 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11632 PyObject *resultobj = 0;
11633 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
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_wxRegionIterator, 0 | 0 );
11641 if (!SWIG_IsOK(res1)) {
11642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11643 }
11644 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11645 {
11646 PyThreadState* __tstate = wxPyBeginAllowThreads();
11647 wxRegionIterator_Next(arg1);
11648 wxPyEndAllowThreads(__tstate);
11649 if (PyErr_Occurred()) SWIG_fail;
11650 }
11651 resultobj = SWIG_Py_Void();
11652 return resultobj;
11653 fail:
11654 return NULL;
11655 }
11656
11657
11658 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11659 PyObject *resultobj = 0;
11660 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11661 bool 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_wxRegionIterator, 0 | 0 );
11669 if (!SWIG_IsOK(res1)) {
11670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11671 }
11672 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11673 {
11674 PyThreadState* __tstate = wxPyBeginAllowThreads();
11675 result = (bool)wxRegionIterator___nonzero__(arg1);
11676 wxPyEndAllowThreads(__tstate);
11677 if (PyErr_Occurred()) SWIG_fail;
11678 }
11679 {
11680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11681 }
11682 return resultobj;
11683 fail:
11684 return NULL;
11685 }
11686
11687
11688 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11689 PyObject *obj;
11690 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11691 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11692 return SWIG_Py_Void();
11693 }
11694
11695 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11696 return SWIG_Python_InitShadowInstance(args);
11697 }
11698
11699 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11700 PyObject *resultobj = 0;
11701 wxNativeFontInfo *result = 0 ;
11702
11703 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11704 {
11705 PyThreadState* __tstate = wxPyBeginAllowThreads();
11706 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11707 wxPyEndAllowThreads(__tstate);
11708 if (PyErr_Occurred()) SWIG_fail;
11709 }
11710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11711 return resultobj;
11712 fail:
11713 return NULL;
11714 }
11715
11716
11717 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11718 PyObject *resultobj = 0;
11719 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
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, SWIG_POINTER_DISOWN | 0 );
11727 if (!SWIG_IsOK(res1)) {
11728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11729 }
11730 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11731 {
11732 PyThreadState* __tstate = wxPyBeginAllowThreads();
11733 delete arg1;
11734
11735 wxPyEndAllowThreads(__tstate);
11736 if (PyErr_Occurred()) SWIG_fail;
11737 }
11738 resultobj = SWIG_Py_Void();
11739 return resultobj;
11740 fail:
11741 return NULL;
11742 }
11743
11744
11745 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11746 PyObject *resultobj = 0;
11747 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11748 void *argp1 = 0 ;
11749 int res1 = 0 ;
11750 PyObject *swig_obj[1] ;
11751
11752 if (!args) SWIG_fail;
11753 swig_obj[0] = args;
11754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11755 if (!SWIG_IsOK(res1)) {
11756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11757 }
11758 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11759 {
11760 PyThreadState* __tstate = wxPyBeginAllowThreads();
11761 (arg1)->Init();
11762 wxPyEndAllowThreads(__tstate);
11763 if (PyErr_Occurred()) SWIG_fail;
11764 }
11765 resultobj = SWIG_Py_Void();
11766 return resultobj;
11767 fail:
11768 return NULL;
11769 }
11770
11771
11772 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11773 PyObject *resultobj = 0;
11774 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11775 wxFont *arg2 = 0 ;
11776 void *argp1 = 0 ;
11777 int res1 = 0 ;
11778 void *argp2 = 0 ;
11779 int res2 = 0 ;
11780 PyObject * obj0 = 0 ;
11781 PyObject * obj1 = 0 ;
11782 char * kwnames[] = {
11783 (char *) "self",(char *) "font", NULL
11784 };
11785
11786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11788 if (!SWIG_IsOK(res1)) {
11789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11790 }
11791 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11792 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11793 if (!SWIG_IsOK(res2)) {
11794 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11795 }
11796 if (!argp2) {
11797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11798 }
11799 arg2 = reinterpret_cast< wxFont * >(argp2);
11800 {
11801 PyThreadState* __tstate = wxPyBeginAllowThreads();
11802 (arg1)->InitFromFont((wxFont const &)*arg2);
11803 wxPyEndAllowThreads(__tstate);
11804 if (PyErr_Occurred()) SWIG_fail;
11805 }
11806 resultobj = SWIG_Py_Void();
11807 return resultobj;
11808 fail:
11809 return NULL;
11810 }
11811
11812
11813 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11814 PyObject *resultobj = 0;
11815 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11816 int result;
11817 void *argp1 = 0 ;
11818 int res1 = 0 ;
11819 PyObject *swig_obj[1] ;
11820
11821 if (!args) SWIG_fail;
11822 swig_obj[0] = args;
11823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11824 if (!SWIG_IsOK(res1)) {
11825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11826 }
11827 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11828 {
11829 PyThreadState* __tstate = wxPyBeginAllowThreads();
11830 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11831 wxPyEndAllowThreads(__tstate);
11832 if (PyErr_Occurred()) SWIG_fail;
11833 }
11834 resultobj = SWIG_From_int(static_cast< int >(result));
11835 return resultobj;
11836 fail:
11837 return NULL;
11838 }
11839
11840
11841 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11842 PyObject *resultobj = 0;
11843 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11844 wxFontStyle result;
11845 void *argp1 = 0 ;
11846 int res1 = 0 ;
11847 PyObject *swig_obj[1] ;
11848
11849 if (!args) SWIG_fail;
11850 swig_obj[0] = args;
11851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11852 if (!SWIG_IsOK(res1)) {
11853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11854 }
11855 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11856 {
11857 PyThreadState* __tstate = wxPyBeginAllowThreads();
11858 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11859 wxPyEndAllowThreads(__tstate);
11860 if (PyErr_Occurred()) SWIG_fail;
11861 }
11862 resultobj = SWIG_From_int(static_cast< int >(result));
11863 return resultobj;
11864 fail:
11865 return NULL;
11866 }
11867
11868
11869 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11870 PyObject *resultobj = 0;
11871 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11872 wxFontWeight result;
11873 void *argp1 = 0 ;
11874 int res1 = 0 ;
11875 PyObject *swig_obj[1] ;
11876
11877 if (!args) SWIG_fail;
11878 swig_obj[0] = args;
11879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11880 if (!SWIG_IsOK(res1)) {
11881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11882 }
11883 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11884 {
11885 PyThreadState* __tstate = wxPyBeginAllowThreads();
11886 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11887 wxPyEndAllowThreads(__tstate);
11888 if (PyErr_Occurred()) SWIG_fail;
11889 }
11890 resultobj = SWIG_From_int(static_cast< int >(result));
11891 return resultobj;
11892 fail:
11893 return NULL;
11894 }
11895
11896
11897 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11898 PyObject *resultobj = 0;
11899 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11900 bool result;
11901 void *argp1 = 0 ;
11902 int res1 = 0 ;
11903 PyObject *swig_obj[1] ;
11904
11905 if (!args) SWIG_fail;
11906 swig_obj[0] = args;
11907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11908 if (!SWIG_IsOK(res1)) {
11909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11910 }
11911 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11912 {
11913 PyThreadState* __tstate = wxPyBeginAllowThreads();
11914 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11915 wxPyEndAllowThreads(__tstate);
11916 if (PyErr_Occurred()) SWIG_fail;
11917 }
11918 {
11919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11920 }
11921 return resultobj;
11922 fail:
11923 return NULL;
11924 }
11925
11926
11927 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11928 PyObject *resultobj = 0;
11929 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11930 wxString result;
11931 void *argp1 = 0 ;
11932 int res1 = 0 ;
11933 PyObject *swig_obj[1] ;
11934
11935 if (!args) SWIG_fail;
11936 swig_obj[0] = args;
11937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11938 if (!SWIG_IsOK(res1)) {
11939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11940 }
11941 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11942 {
11943 PyThreadState* __tstate = wxPyBeginAllowThreads();
11944 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11945 wxPyEndAllowThreads(__tstate);
11946 if (PyErr_Occurred()) SWIG_fail;
11947 }
11948 {
11949 #if wxUSE_UNICODE
11950 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11951 #else
11952 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11953 #endif
11954 }
11955 return resultobj;
11956 fail:
11957 return NULL;
11958 }
11959
11960
11961 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11962 PyObject *resultobj = 0;
11963 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11964 wxFontFamily result;
11965 void *argp1 = 0 ;
11966 int res1 = 0 ;
11967 PyObject *swig_obj[1] ;
11968
11969 if (!args) SWIG_fail;
11970 swig_obj[0] = args;
11971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11972 if (!SWIG_IsOK(res1)) {
11973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11974 }
11975 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11976 {
11977 PyThreadState* __tstate = wxPyBeginAllowThreads();
11978 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11979 wxPyEndAllowThreads(__tstate);
11980 if (PyErr_Occurred()) SWIG_fail;
11981 }
11982 resultobj = SWIG_From_int(static_cast< int >(result));
11983 return resultobj;
11984 fail:
11985 return NULL;
11986 }
11987
11988
11989 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11990 PyObject *resultobj = 0;
11991 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11992 wxFontEncoding result;
11993 void *argp1 = 0 ;
11994 int res1 = 0 ;
11995 PyObject *swig_obj[1] ;
11996
11997 if (!args) SWIG_fail;
11998 swig_obj[0] = args;
11999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12000 if (!SWIG_IsOK(res1)) {
12001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12002 }
12003 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12004 {
12005 PyThreadState* __tstate = wxPyBeginAllowThreads();
12006 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12007 wxPyEndAllowThreads(__tstate);
12008 if (PyErr_Occurred()) SWIG_fail;
12009 }
12010 resultobj = SWIG_From_int(static_cast< int >(result));
12011 return resultobj;
12012 fail:
12013 return NULL;
12014 }
12015
12016
12017 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12018 PyObject *resultobj = 0;
12019 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12020 int arg2 ;
12021 void *argp1 = 0 ;
12022 int res1 = 0 ;
12023 int val2 ;
12024 int ecode2 = 0 ;
12025 PyObject * obj0 = 0 ;
12026 PyObject * obj1 = 0 ;
12027 char * kwnames[] = {
12028 (char *) "self",(char *) "pointsize", NULL
12029 };
12030
12031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12033 if (!SWIG_IsOK(res1)) {
12034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12035 }
12036 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12037 ecode2 = SWIG_AsVal_int(obj1, &val2);
12038 if (!SWIG_IsOK(ecode2)) {
12039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12040 }
12041 arg2 = static_cast< int >(val2);
12042 {
12043 PyThreadState* __tstate = wxPyBeginAllowThreads();
12044 (arg1)->SetPointSize(arg2);
12045 wxPyEndAllowThreads(__tstate);
12046 if (PyErr_Occurred()) SWIG_fail;
12047 }
12048 resultobj = SWIG_Py_Void();
12049 return resultobj;
12050 fail:
12051 return NULL;
12052 }
12053
12054
12055 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12056 PyObject *resultobj = 0;
12057 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12058 wxFontStyle arg2 ;
12059 void *argp1 = 0 ;
12060 int res1 = 0 ;
12061 int val2 ;
12062 int ecode2 = 0 ;
12063 PyObject * obj0 = 0 ;
12064 PyObject * obj1 = 0 ;
12065 char * kwnames[] = {
12066 (char *) "self",(char *) "style", NULL
12067 };
12068
12069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12071 if (!SWIG_IsOK(res1)) {
12072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12073 }
12074 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12075 ecode2 = SWIG_AsVal_int(obj1, &val2);
12076 if (!SWIG_IsOK(ecode2)) {
12077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12078 }
12079 arg2 = static_cast< wxFontStyle >(val2);
12080 {
12081 PyThreadState* __tstate = wxPyBeginAllowThreads();
12082 (arg1)->SetStyle(arg2);
12083 wxPyEndAllowThreads(__tstate);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 }
12086 resultobj = SWIG_Py_Void();
12087 return resultobj;
12088 fail:
12089 return NULL;
12090 }
12091
12092
12093 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12094 PyObject *resultobj = 0;
12095 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12096 wxFontWeight arg2 ;
12097 void *argp1 = 0 ;
12098 int res1 = 0 ;
12099 int val2 ;
12100 int ecode2 = 0 ;
12101 PyObject * obj0 = 0 ;
12102 PyObject * obj1 = 0 ;
12103 char * kwnames[] = {
12104 (char *) "self",(char *) "weight", NULL
12105 };
12106
12107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12109 if (!SWIG_IsOK(res1)) {
12110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12111 }
12112 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12113 ecode2 = SWIG_AsVal_int(obj1, &val2);
12114 if (!SWIG_IsOK(ecode2)) {
12115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12116 }
12117 arg2 = static_cast< wxFontWeight >(val2);
12118 {
12119 PyThreadState* __tstate = wxPyBeginAllowThreads();
12120 (arg1)->SetWeight(arg2);
12121 wxPyEndAllowThreads(__tstate);
12122 if (PyErr_Occurred()) SWIG_fail;
12123 }
12124 resultobj = SWIG_Py_Void();
12125 return resultobj;
12126 fail:
12127 return NULL;
12128 }
12129
12130
12131 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12132 PyObject *resultobj = 0;
12133 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12134 bool arg2 ;
12135 void *argp1 = 0 ;
12136 int res1 = 0 ;
12137 bool val2 ;
12138 int ecode2 = 0 ;
12139 PyObject * obj0 = 0 ;
12140 PyObject * obj1 = 0 ;
12141 char * kwnames[] = {
12142 (char *) "self",(char *) "underlined", NULL
12143 };
12144
12145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12147 if (!SWIG_IsOK(res1)) {
12148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12149 }
12150 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12151 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12152 if (!SWIG_IsOK(ecode2)) {
12153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12154 }
12155 arg2 = static_cast< bool >(val2);
12156 {
12157 PyThreadState* __tstate = wxPyBeginAllowThreads();
12158 (arg1)->SetUnderlined(arg2);
12159 wxPyEndAllowThreads(__tstate);
12160 if (PyErr_Occurred()) SWIG_fail;
12161 }
12162 resultobj = SWIG_Py_Void();
12163 return resultobj;
12164 fail:
12165 return NULL;
12166 }
12167
12168
12169 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12170 PyObject *resultobj = 0;
12171 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12172 wxString arg2 ;
12173 bool result;
12174 void *argp1 = 0 ;
12175 int res1 = 0 ;
12176 PyObject * obj0 = 0 ;
12177 PyObject * obj1 = 0 ;
12178 char * kwnames[] = {
12179 (char *) "self",(char *) "facename", NULL
12180 };
12181
12182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12184 if (!SWIG_IsOK(res1)) {
12185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12186 }
12187 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12188 {
12189 wxString* sptr = wxString_in_helper(obj1);
12190 if (sptr == NULL) SWIG_fail;
12191 arg2 = *sptr;
12192 delete sptr;
12193 }
12194 {
12195 PyThreadState* __tstate = wxPyBeginAllowThreads();
12196 result = (bool)(arg1)->SetFaceName(arg2);
12197 wxPyEndAllowThreads(__tstate);
12198 if (PyErr_Occurred()) SWIG_fail;
12199 }
12200 {
12201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12202 }
12203 return resultobj;
12204 fail:
12205 return NULL;
12206 }
12207
12208
12209 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12210 PyObject *resultobj = 0;
12211 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12212 wxFontFamily arg2 ;
12213 void *argp1 = 0 ;
12214 int res1 = 0 ;
12215 int val2 ;
12216 int ecode2 = 0 ;
12217 PyObject * obj0 = 0 ;
12218 PyObject * obj1 = 0 ;
12219 char * kwnames[] = {
12220 (char *) "self",(char *) "family", NULL
12221 };
12222
12223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12225 if (!SWIG_IsOK(res1)) {
12226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12227 }
12228 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12229 ecode2 = SWIG_AsVal_int(obj1, &val2);
12230 if (!SWIG_IsOK(ecode2)) {
12231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12232 }
12233 arg2 = static_cast< wxFontFamily >(val2);
12234 {
12235 PyThreadState* __tstate = wxPyBeginAllowThreads();
12236 (arg1)->SetFamily(arg2);
12237 wxPyEndAllowThreads(__tstate);
12238 if (PyErr_Occurred()) SWIG_fail;
12239 }
12240 resultobj = SWIG_Py_Void();
12241 return resultobj;
12242 fail:
12243 return NULL;
12244 }
12245
12246
12247 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12248 PyObject *resultobj = 0;
12249 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12250 wxFontEncoding arg2 ;
12251 void *argp1 = 0 ;
12252 int res1 = 0 ;
12253 int val2 ;
12254 int ecode2 = 0 ;
12255 PyObject * obj0 = 0 ;
12256 PyObject * obj1 = 0 ;
12257 char * kwnames[] = {
12258 (char *) "self",(char *) "encoding", NULL
12259 };
12260
12261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12263 if (!SWIG_IsOK(res1)) {
12264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12265 }
12266 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12267 ecode2 = SWIG_AsVal_int(obj1, &val2);
12268 if (!SWIG_IsOK(ecode2)) {
12269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12270 }
12271 arg2 = static_cast< wxFontEncoding >(val2);
12272 {
12273 PyThreadState* __tstate = wxPyBeginAllowThreads();
12274 (arg1)->SetEncoding(arg2);
12275 wxPyEndAllowThreads(__tstate);
12276 if (PyErr_Occurred()) SWIG_fail;
12277 }
12278 resultobj = SWIG_Py_Void();
12279 return resultobj;
12280 fail:
12281 return NULL;
12282 }
12283
12284
12285 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12286 PyObject *resultobj = 0;
12287 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12288 wxString *arg2 = 0 ;
12289 bool result;
12290 void *argp1 = 0 ;
12291 int res1 = 0 ;
12292 bool temp2 = false ;
12293 PyObject * obj0 = 0 ;
12294 PyObject * obj1 = 0 ;
12295 char * kwnames[] = {
12296 (char *) "self",(char *) "s", NULL
12297 };
12298
12299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12301 if (!SWIG_IsOK(res1)) {
12302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12303 }
12304 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12305 {
12306 arg2 = wxString_in_helper(obj1);
12307 if (arg2 == NULL) SWIG_fail;
12308 temp2 = true;
12309 }
12310 {
12311 PyThreadState* __tstate = wxPyBeginAllowThreads();
12312 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12313 wxPyEndAllowThreads(__tstate);
12314 if (PyErr_Occurred()) SWIG_fail;
12315 }
12316 {
12317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12318 }
12319 {
12320 if (temp2)
12321 delete arg2;
12322 }
12323 return resultobj;
12324 fail:
12325 {
12326 if (temp2)
12327 delete arg2;
12328 }
12329 return NULL;
12330 }
12331
12332
12333 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12334 PyObject *resultobj = 0;
12335 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12336 wxString result;
12337 void *argp1 = 0 ;
12338 int res1 = 0 ;
12339 PyObject *swig_obj[1] ;
12340
12341 if (!args) SWIG_fail;
12342 swig_obj[0] = args;
12343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12344 if (!SWIG_IsOK(res1)) {
12345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12346 }
12347 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12348 {
12349 PyThreadState* __tstate = wxPyBeginAllowThreads();
12350 result = ((wxNativeFontInfo const *)arg1)->ToString();
12351 wxPyEndAllowThreads(__tstate);
12352 if (PyErr_Occurred()) SWIG_fail;
12353 }
12354 {
12355 #if wxUSE_UNICODE
12356 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12357 #else
12358 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12359 #endif
12360 }
12361 return resultobj;
12362 fail:
12363 return NULL;
12364 }
12365
12366
12367 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12368 PyObject *resultobj = 0;
12369 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12370 wxString result;
12371 void *argp1 = 0 ;
12372 int res1 = 0 ;
12373 PyObject *swig_obj[1] ;
12374
12375 if (!args) SWIG_fail;
12376 swig_obj[0] = args;
12377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12378 if (!SWIG_IsOK(res1)) {
12379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12380 }
12381 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12382 {
12383 PyThreadState* __tstate = wxPyBeginAllowThreads();
12384 result = wxNativeFontInfo___str__(arg1);
12385 wxPyEndAllowThreads(__tstate);
12386 if (PyErr_Occurred()) SWIG_fail;
12387 }
12388 {
12389 #if wxUSE_UNICODE
12390 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12391 #else
12392 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12393 #endif
12394 }
12395 return resultobj;
12396 fail:
12397 return NULL;
12398 }
12399
12400
12401 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12402 PyObject *resultobj = 0;
12403 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12404 wxString *arg2 = 0 ;
12405 bool result;
12406 void *argp1 = 0 ;
12407 int res1 = 0 ;
12408 bool temp2 = false ;
12409 PyObject * obj0 = 0 ;
12410 PyObject * obj1 = 0 ;
12411 char * kwnames[] = {
12412 (char *) "self",(char *) "s", NULL
12413 };
12414
12415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12417 if (!SWIG_IsOK(res1)) {
12418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12419 }
12420 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12421 {
12422 arg2 = wxString_in_helper(obj1);
12423 if (arg2 == NULL) SWIG_fail;
12424 temp2 = true;
12425 }
12426 {
12427 PyThreadState* __tstate = wxPyBeginAllowThreads();
12428 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12429 wxPyEndAllowThreads(__tstate);
12430 if (PyErr_Occurred()) SWIG_fail;
12431 }
12432 {
12433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12434 }
12435 {
12436 if (temp2)
12437 delete arg2;
12438 }
12439 return resultobj;
12440 fail:
12441 {
12442 if (temp2)
12443 delete arg2;
12444 }
12445 return NULL;
12446 }
12447
12448
12449 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12450 PyObject *resultobj = 0;
12451 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12452 wxString result;
12453 void *argp1 = 0 ;
12454 int res1 = 0 ;
12455 PyObject *swig_obj[1] ;
12456
12457 if (!args) SWIG_fail;
12458 swig_obj[0] = args;
12459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12460 if (!SWIG_IsOK(res1)) {
12461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12462 }
12463 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12464 {
12465 PyThreadState* __tstate = wxPyBeginAllowThreads();
12466 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12467 wxPyEndAllowThreads(__tstate);
12468 if (PyErr_Occurred()) SWIG_fail;
12469 }
12470 {
12471 #if wxUSE_UNICODE
12472 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12473 #else
12474 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12475 #endif
12476 }
12477 return resultobj;
12478 fail:
12479 return NULL;
12480 }
12481
12482
12483 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12484 PyObject *obj;
12485 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12486 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12487 return SWIG_Py_Void();
12488 }
12489
12490 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12491 return SWIG_Python_InitShadowInstance(args);
12492 }
12493
12494 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12495 PyObject *resultobj = 0;
12496 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12497 wxString *arg2 = (wxString *) 0 ;
12498 void *argp1 = 0 ;
12499 int res1 = 0 ;
12500 bool temp2 = false ;
12501 PyObject *swig_obj[2] ;
12502
12503 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12505 if (!SWIG_IsOK(res1)) {
12506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12507 }
12508 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12509 {
12510 arg2 = wxString_in_helper(swig_obj[1]);
12511 if (arg2 == NULL) SWIG_fail;
12512 temp2 = true;
12513 }
12514 if (arg1) (arg1)->facename = *arg2;
12515
12516 resultobj = SWIG_Py_Void();
12517 {
12518 if (temp2)
12519 delete arg2;
12520 }
12521 return resultobj;
12522 fail:
12523 {
12524 if (temp2)
12525 delete arg2;
12526 }
12527 return NULL;
12528 }
12529
12530
12531 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12532 PyObject *resultobj = 0;
12533 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12534 wxString *result = 0 ;
12535 void *argp1 = 0 ;
12536 int res1 = 0 ;
12537 PyObject *swig_obj[1] ;
12538
12539 if (!args) SWIG_fail;
12540 swig_obj[0] = args;
12541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12542 if (!SWIG_IsOK(res1)) {
12543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12544 }
12545 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12546 result = (wxString *)& ((arg1)->facename);
12547 {
12548 #if wxUSE_UNICODE
12549 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12550 #else
12551 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12552 #endif
12553 }
12554 return resultobj;
12555 fail:
12556 return NULL;
12557 }
12558
12559
12560 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12561 PyObject *resultobj = 0;
12562 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12563 wxFontEncoding arg2 ;
12564 void *argp1 = 0 ;
12565 int res1 = 0 ;
12566 int val2 ;
12567 int ecode2 = 0 ;
12568 PyObject *swig_obj[2] ;
12569
12570 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12572 if (!SWIG_IsOK(res1)) {
12573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12574 }
12575 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12576 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12577 if (!SWIG_IsOK(ecode2)) {
12578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12579 }
12580 arg2 = static_cast< wxFontEncoding >(val2);
12581 if (arg1) (arg1)->encoding = arg2;
12582
12583 resultobj = SWIG_Py_Void();
12584 return resultobj;
12585 fail:
12586 return NULL;
12587 }
12588
12589
12590 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12591 PyObject *resultobj = 0;
12592 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12593 wxFontEncoding result;
12594 void *argp1 = 0 ;
12595 int res1 = 0 ;
12596 PyObject *swig_obj[1] ;
12597
12598 if (!args) SWIG_fail;
12599 swig_obj[0] = args;
12600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12601 if (!SWIG_IsOK(res1)) {
12602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12603 }
12604 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12605 result = (wxFontEncoding) ((arg1)->encoding);
12606 resultobj = SWIG_From_int(static_cast< int >(result));
12607 return resultobj;
12608 fail:
12609 return NULL;
12610 }
12611
12612
12613 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12614 PyObject *resultobj = 0;
12615 wxNativeEncodingInfo *result = 0 ;
12616
12617 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12618 {
12619 PyThreadState* __tstate = wxPyBeginAllowThreads();
12620 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12621 wxPyEndAllowThreads(__tstate);
12622 if (PyErr_Occurred()) SWIG_fail;
12623 }
12624 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12625 return resultobj;
12626 fail:
12627 return NULL;
12628 }
12629
12630
12631 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12632 PyObject *resultobj = 0;
12633 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12634 void *argp1 = 0 ;
12635 int res1 = 0 ;
12636 PyObject *swig_obj[1] ;
12637
12638 if (!args) SWIG_fail;
12639 swig_obj[0] = args;
12640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12641 if (!SWIG_IsOK(res1)) {
12642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12643 }
12644 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12645 {
12646 PyThreadState* __tstate = wxPyBeginAllowThreads();
12647 delete arg1;
12648
12649 wxPyEndAllowThreads(__tstate);
12650 if (PyErr_Occurred()) SWIG_fail;
12651 }
12652 resultobj = SWIG_Py_Void();
12653 return resultobj;
12654 fail:
12655 return NULL;
12656 }
12657
12658
12659 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12660 PyObject *resultobj = 0;
12661 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12662 wxString *arg2 = 0 ;
12663 bool result;
12664 void *argp1 = 0 ;
12665 int res1 = 0 ;
12666 bool temp2 = false ;
12667 PyObject * obj0 = 0 ;
12668 PyObject * obj1 = 0 ;
12669 char * kwnames[] = {
12670 (char *) "self",(char *) "s", NULL
12671 };
12672
12673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12675 if (!SWIG_IsOK(res1)) {
12676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12677 }
12678 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12679 {
12680 arg2 = wxString_in_helper(obj1);
12681 if (arg2 == NULL) SWIG_fail;
12682 temp2 = true;
12683 }
12684 {
12685 PyThreadState* __tstate = wxPyBeginAllowThreads();
12686 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12687 wxPyEndAllowThreads(__tstate);
12688 if (PyErr_Occurred()) SWIG_fail;
12689 }
12690 {
12691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12692 }
12693 {
12694 if (temp2)
12695 delete arg2;
12696 }
12697 return resultobj;
12698 fail:
12699 {
12700 if (temp2)
12701 delete arg2;
12702 }
12703 return NULL;
12704 }
12705
12706
12707 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12708 PyObject *resultobj = 0;
12709 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12710 wxString result;
12711 void *argp1 = 0 ;
12712 int res1 = 0 ;
12713 PyObject *swig_obj[1] ;
12714
12715 if (!args) SWIG_fail;
12716 swig_obj[0] = args;
12717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12718 if (!SWIG_IsOK(res1)) {
12719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12720 }
12721 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12722 {
12723 PyThreadState* __tstate = wxPyBeginAllowThreads();
12724 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12725 wxPyEndAllowThreads(__tstate);
12726 if (PyErr_Occurred()) SWIG_fail;
12727 }
12728 {
12729 #if wxUSE_UNICODE
12730 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12731 #else
12732 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12733 #endif
12734 }
12735 return resultobj;
12736 fail:
12737 return NULL;
12738 }
12739
12740
12741 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12742 PyObject *obj;
12743 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12744 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12745 return SWIG_Py_Void();
12746 }
12747
12748 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12749 return SWIG_Python_InitShadowInstance(args);
12750 }
12751
12752 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12753 PyObject *resultobj = 0;
12754 wxFontEncoding arg1 ;
12755 wxNativeEncodingInfo *result = 0 ;
12756 int val1 ;
12757 int ecode1 = 0 ;
12758 PyObject * obj0 = 0 ;
12759 char * kwnames[] = {
12760 (char *) "encoding", NULL
12761 };
12762
12763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12764 ecode1 = SWIG_AsVal_int(obj0, &val1);
12765 if (!SWIG_IsOK(ecode1)) {
12766 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12767 }
12768 arg1 = static_cast< wxFontEncoding >(val1);
12769 {
12770 PyThreadState* __tstate = wxPyBeginAllowThreads();
12771 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12772 wxPyEndAllowThreads(__tstate);
12773 if (PyErr_Occurred()) SWIG_fail;
12774 }
12775 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12776 return resultobj;
12777 fail:
12778 return NULL;
12779 }
12780
12781
12782 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12783 PyObject *resultobj = 0;
12784 wxNativeEncodingInfo *arg1 = 0 ;
12785 bool result;
12786 void *argp1 = 0 ;
12787 int res1 = 0 ;
12788 PyObject * obj0 = 0 ;
12789 char * kwnames[] = {
12790 (char *) "info", NULL
12791 };
12792
12793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12794 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12795 if (!SWIG_IsOK(res1)) {
12796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12797 }
12798 if (!argp1) {
12799 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12800 }
12801 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12802 {
12803 PyThreadState* __tstate = wxPyBeginAllowThreads();
12804 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12805 wxPyEndAllowThreads(__tstate);
12806 if (PyErr_Occurred()) SWIG_fail;
12807 }
12808 {
12809 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12810 }
12811 return resultobj;
12812 fail:
12813 return NULL;
12814 }
12815
12816
12817 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12818 PyObject *resultobj = 0;
12819 wxFontMapper *result = 0 ;
12820
12821 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12822 {
12823 PyThreadState* __tstate = wxPyBeginAllowThreads();
12824 result = (wxFontMapper *)new wxFontMapper();
12825 wxPyEndAllowThreads(__tstate);
12826 if (PyErr_Occurred()) SWIG_fail;
12827 }
12828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12829 return resultobj;
12830 fail:
12831 return NULL;
12832 }
12833
12834
12835 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12836 PyObject *resultobj = 0;
12837 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12838 void *argp1 = 0 ;
12839 int res1 = 0 ;
12840 PyObject *swig_obj[1] ;
12841
12842 if (!args) SWIG_fail;
12843 swig_obj[0] = args;
12844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12845 if (!SWIG_IsOK(res1)) {
12846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12847 }
12848 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12849 {
12850 PyThreadState* __tstate = wxPyBeginAllowThreads();
12851 delete arg1;
12852
12853 wxPyEndAllowThreads(__tstate);
12854 if (PyErr_Occurred()) SWIG_fail;
12855 }
12856 resultobj = SWIG_Py_Void();
12857 return resultobj;
12858 fail:
12859 return NULL;
12860 }
12861
12862
12863 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12864 PyObject *resultobj = 0;
12865 wxFontMapper *result = 0 ;
12866
12867 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12868 {
12869 PyThreadState* __tstate = wxPyBeginAllowThreads();
12870 result = (wxFontMapper *)wxFontMapper::Get();
12871 wxPyEndAllowThreads(__tstate);
12872 if (PyErr_Occurred()) SWIG_fail;
12873 }
12874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12875 return resultobj;
12876 fail:
12877 return NULL;
12878 }
12879
12880
12881 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12882 PyObject *resultobj = 0;
12883 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12884 wxFontMapper *result = 0 ;
12885 void *argp1 = 0 ;
12886 int res1 = 0 ;
12887 PyObject * obj0 = 0 ;
12888 char * kwnames[] = {
12889 (char *) "mapper", NULL
12890 };
12891
12892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12894 if (!SWIG_IsOK(res1)) {
12895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12896 }
12897 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12898 {
12899 PyThreadState* __tstate = wxPyBeginAllowThreads();
12900 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12901 wxPyEndAllowThreads(__tstate);
12902 if (PyErr_Occurred()) SWIG_fail;
12903 }
12904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12905 return resultobj;
12906 fail:
12907 return NULL;
12908 }
12909
12910
12911 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12912 PyObject *resultobj = 0;
12913 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12914 wxString *arg2 = 0 ;
12915 bool arg3 = (bool) true ;
12916 wxFontEncoding result;
12917 void *argp1 = 0 ;
12918 int res1 = 0 ;
12919 bool temp2 = false ;
12920 bool val3 ;
12921 int ecode3 = 0 ;
12922 PyObject * obj0 = 0 ;
12923 PyObject * obj1 = 0 ;
12924 PyObject * obj2 = 0 ;
12925 char * kwnames[] = {
12926 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12927 };
12928
12929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12931 if (!SWIG_IsOK(res1)) {
12932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12933 }
12934 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12935 {
12936 arg2 = wxString_in_helper(obj1);
12937 if (arg2 == NULL) SWIG_fail;
12938 temp2 = true;
12939 }
12940 if (obj2) {
12941 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12942 if (!SWIG_IsOK(ecode3)) {
12943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12944 }
12945 arg3 = static_cast< bool >(val3);
12946 }
12947 {
12948 PyThreadState* __tstate = wxPyBeginAllowThreads();
12949 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12950 wxPyEndAllowThreads(__tstate);
12951 if (PyErr_Occurred()) SWIG_fail;
12952 }
12953 resultobj = SWIG_From_int(static_cast< int >(result));
12954 {
12955 if (temp2)
12956 delete arg2;
12957 }
12958 return resultobj;
12959 fail:
12960 {
12961 if (temp2)
12962 delete arg2;
12963 }
12964 return NULL;
12965 }
12966
12967
12968 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12969 PyObject *resultobj = 0;
12970 size_t result;
12971
12972 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12973 {
12974 PyThreadState* __tstate = wxPyBeginAllowThreads();
12975 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12976 wxPyEndAllowThreads(__tstate);
12977 if (PyErr_Occurred()) SWIG_fail;
12978 }
12979 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12980 return resultobj;
12981 fail:
12982 return NULL;
12983 }
12984
12985
12986 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12987 PyObject *resultobj = 0;
12988 size_t arg1 ;
12989 wxFontEncoding result;
12990 size_t val1 ;
12991 int ecode1 = 0 ;
12992 PyObject * obj0 = 0 ;
12993 char * kwnames[] = {
12994 (char *) "n", NULL
12995 };
12996
12997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
12998 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
12999 if (!SWIG_IsOK(ecode1)) {
13000 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13001 }
13002 arg1 = static_cast< size_t >(val1);
13003 {
13004 PyThreadState* __tstate = wxPyBeginAllowThreads();
13005 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13006 wxPyEndAllowThreads(__tstate);
13007 if (PyErr_Occurred()) SWIG_fail;
13008 }
13009 resultobj = SWIG_From_int(static_cast< int >(result));
13010 return resultobj;
13011 fail:
13012 return NULL;
13013 }
13014
13015
13016 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13017 PyObject *resultobj = 0;
13018 wxFontEncoding arg1 ;
13019 wxString result;
13020 int val1 ;
13021 int ecode1 = 0 ;
13022 PyObject * obj0 = 0 ;
13023 char * kwnames[] = {
13024 (char *) "encoding", NULL
13025 };
13026
13027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13028 ecode1 = SWIG_AsVal_int(obj0, &val1);
13029 if (!SWIG_IsOK(ecode1)) {
13030 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13031 }
13032 arg1 = static_cast< wxFontEncoding >(val1);
13033 {
13034 PyThreadState* __tstate = wxPyBeginAllowThreads();
13035 result = wxFontMapper::GetEncodingName(arg1);
13036 wxPyEndAllowThreads(__tstate);
13037 if (PyErr_Occurred()) SWIG_fail;
13038 }
13039 {
13040 #if wxUSE_UNICODE
13041 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13042 #else
13043 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13044 #endif
13045 }
13046 return resultobj;
13047 fail:
13048 return NULL;
13049 }
13050
13051
13052 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13053 PyObject *resultobj = 0;
13054 wxFontEncoding arg1 ;
13055 wxString result;
13056 int val1 ;
13057 int ecode1 = 0 ;
13058 PyObject * obj0 = 0 ;
13059 char * kwnames[] = {
13060 (char *) "encoding", NULL
13061 };
13062
13063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13064 ecode1 = SWIG_AsVal_int(obj0, &val1);
13065 if (!SWIG_IsOK(ecode1)) {
13066 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13067 }
13068 arg1 = static_cast< wxFontEncoding >(val1);
13069 {
13070 PyThreadState* __tstate = wxPyBeginAllowThreads();
13071 result = wxFontMapper::GetEncodingDescription(arg1);
13072 wxPyEndAllowThreads(__tstate);
13073 if (PyErr_Occurred()) SWIG_fail;
13074 }
13075 {
13076 #if wxUSE_UNICODE
13077 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13078 #else
13079 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13080 #endif
13081 }
13082 return resultobj;
13083 fail:
13084 return NULL;
13085 }
13086
13087
13088 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13089 PyObject *resultobj = 0;
13090 wxString *arg1 = 0 ;
13091 wxFontEncoding result;
13092 bool temp1 = false ;
13093 PyObject * obj0 = 0 ;
13094 char * kwnames[] = {
13095 (char *) "name", NULL
13096 };
13097
13098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13099 {
13100 arg1 = wxString_in_helper(obj0);
13101 if (arg1 == NULL) SWIG_fail;
13102 temp1 = true;
13103 }
13104 {
13105 PyThreadState* __tstate = wxPyBeginAllowThreads();
13106 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13107 wxPyEndAllowThreads(__tstate);
13108 if (PyErr_Occurred()) SWIG_fail;
13109 }
13110 resultobj = SWIG_From_int(static_cast< int >(result));
13111 {
13112 if (temp1)
13113 delete arg1;
13114 }
13115 return resultobj;
13116 fail:
13117 {
13118 if (temp1)
13119 delete arg1;
13120 }
13121 return NULL;
13122 }
13123
13124
13125 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13126 PyObject *resultobj = 0;
13127 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13128 wxString *arg2 = 0 ;
13129 void *argp1 = 0 ;
13130 int res1 = 0 ;
13131 bool temp2 = false ;
13132 PyObject * obj0 = 0 ;
13133 PyObject * obj1 = 0 ;
13134 char * kwnames[] = {
13135 (char *) "self",(char *) "prefix", NULL
13136 };
13137
13138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13140 if (!SWIG_IsOK(res1)) {
13141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13142 }
13143 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13144 {
13145 arg2 = wxString_in_helper(obj1);
13146 if (arg2 == NULL) SWIG_fail;
13147 temp2 = true;
13148 }
13149 {
13150 PyThreadState* __tstate = wxPyBeginAllowThreads();
13151 (arg1)->SetConfigPath((wxString const &)*arg2);
13152 wxPyEndAllowThreads(__tstate);
13153 if (PyErr_Occurred()) SWIG_fail;
13154 }
13155 resultobj = SWIG_Py_Void();
13156 {
13157 if (temp2)
13158 delete arg2;
13159 }
13160 return resultobj;
13161 fail:
13162 {
13163 if (temp2)
13164 delete arg2;
13165 }
13166 return NULL;
13167 }
13168
13169
13170 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13171 PyObject *resultobj = 0;
13172 wxString result;
13173
13174 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13175 {
13176 PyThreadState* __tstate = wxPyBeginAllowThreads();
13177 result = wxFontMapper::GetDefaultConfigPath();
13178 wxPyEndAllowThreads(__tstate);
13179 if (PyErr_Occurred()) SWIG_fail;
13180 }
13181 {
13182 #if wxUSE_UNICODE
13183 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13184 #else
13185 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13186 #endif
13187 }
13188 return resultobj;
13189 fail:
13190 return NULL;
13191 }
13192
13193
13194 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13195 PyObject *resultobj = 0;
13196 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13197 wxFontEncoding arg2 ;
13198 wxString const &arg3_defvalue = wxPyEmptyString ;
13199 wxString *arg3 = (wxString *) &arg3_defvalue ;
13200 bool arg4 = (bool) true ;
13201 PyObject *result = 0 ;
13202 void *argp1 = 0 ;
13203 int res1 = 0 ;
13204 int val2 ;
13205 int ecode2 = 0 ;
13206 bool temp3 = false ;
13207 bool val4 ;
13208 int ecode4 = 0 ;
13209 PyObject * obj0 = 0 ;
13210 PyObject * obj1 = 0 ;
13211 PyObject * obj2 = 0 ;
13212 PyObject * obj3 = 0 ;
13213 char * kwnames[] = {
13214 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13215 };
13216
13217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13219 if (!SWIG_IsOK(res1)) {
13220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13221 }
13222 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13223 ecode2 = SWIG_AsVal_int(obj1, &val2);
13224 if (!SWIG_IsOK(ecode2)) {
13225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13226 }
13227 arg2 = static_cast< wxFontEncoding >(val2);
13228 if (obj2) {
13229 {
13230 arg3 = wxString_in_helper(obj2);
13231 if (arg3 == NULL) SWIG_fail;
13232 temp3 = true;
13233 }
13234 }
13235 if (obj3) {
13236 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13237 if (!SWIG_IsOK(ecode4)) {
13238 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13239 }
13240 arg4 = static_cast< bool >(val4);
13241 }
13242 {
13243 PyThreadState* __tstate = wxPyBeginAllowThreads();
13244 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13245 wxPyEndAllowThreads(__tstate);
13246 if (PyErr_Occurred()) SWIG_fail;
13247 }
13248 resultobj = result;
13249 {
13250 if (temp3)
13251 delete arg3;
13252 }
13253 return resultobj;
13254 fail:
13255 {
13256 if (temp3)
13257 delete arg3;
13258 }
13259 return NULL;
13260 }
13261
13262
13263 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13264 PyObject *resultobj = 0;
13265 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13266 wxFontEncoding arg2 ;
13267 wxString const &arg3_defvalue = wxPyEmptyString ;
13268 wxString *arg3 = (wxString *) &arg3_defvalue ;
13269 bool result;
13270 void *argp1 = 0 ;
13271 int res1 = 0 ;
13272 int val2 ;
13273 int ecode2 = 0 ;
13274 bool temp3 = false ;
13275 PyObject * obj0 = 0 ;
13276 PyObject * obj1 = 0 ;
13277 PyObject * obj2 = 0 ;
13278 char * kwnames[] = {
13279 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13280 };
13281
13282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13284 if (!SWIG_IsOK(res1)) {
13285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13286 }
13287 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13288 ecode2 = SWIG_AsVal_int(obj1, &val2);
13289 if (!SWIG_IsOK(ecode2)) {
13290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13291 }
13292 arg2 = static_cast< wxFontEncoding >(val2);
13293 if (obj2) {
13294 {
13295 arg3 = wxString_in_helper(obj2);
13296 if (arg3 == NULL) SWIG_fail;
13297 temp3 = true;
13298 }
13299 }
13300 {
13301 PyThreadState* __tstate = wxPyBeginAllowThreads();
13302 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13303 wxPyEndAllowThreads(__tstate);
13304 if (PyErr_Occurred()) SWIG_fail;
13305 }
13306 {
13307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13308 }
13309 {
13310 if (temp3)
13311 delete arg3;
13312 }
13313 return resultobj;
13314 fail:
13315 {
13316 if (temp3)
13317 delete arg3;
13318 }
13319 return NULL;
13320 }
13321
13322
13323 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13324 PyObject *resultobj = 0;
13325 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13326 wxWindow *arg2 = (wxWindow *) 0 ;
13327 void *argp1 = 0 ;
13328 int res1 = 0 ;
13329 void *argp2 = 0 ;
13330 int res2 = 0 ;
13331 PyObject * obj0 = 0 ;
13332 PyObject * obj1 = 0 ;
13333 char * kwnames[] = {
13334 (char *) "self",(char *) "parent", NULL
13335 };
13336
13337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13339 if (!SWIG_IsOK(res1)) {
13340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13341 }
13342 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13343 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13344 if (!SWIG_IsOK(res2)) {
13345 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13346 }
13347 arg2 = reinterpret_cast< wxWindow * >(argp2);
13348 {
13349 PyThreadState* __tstate = wxPyBeginAllowThreads();
13350 (arg1)->SetDialogParent(arg2);
13351 wxPyEndAllowThreads(__tstate);
13352 if (PyErr_Occurred()) SWIG_fail;
13353 }
13354 resultobj = SWIG_Py_Void();
13355 return resultobj;
13356 fail:
13357 return NULL;
13358 }
13359
13360
13361 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13362 PyObject *resultobj = 0;
13363 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13364 wxString *arg2 = 0 ;
13365 void *argp1 = 0 ;
13366 int res1 = 0 ;
13367 bool temp2 = false ;
13368 PyObject * obj0 = 0 ;
13369 PyObject * obj1 = 0 ;
13370 char * kwnames[] = {
13371 (char *) "self",(char *) "title", NULL
13372 };
13373
13374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13376 if (!SWIG_IsOK(res1)) {
13377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13378 }
13379 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13380 {
13381 arg2 = wxString_in_helper(obj1);
13382 if (arg2 == NULL) SWIG_fail;
13383 temp2 = true;
13384 }
13385 {
13386 PyThreadState* __tstate = wxPyBeginAllowThreads();
13387 (arg1)->SetDialogTitle((wxString const &)*arg2);
13388 wxPyEndAllowThreads(__tstate);
13389 if (PyErr_Occurred()) SWIG_fail;
13390 }
13391 resultobj = SWIG_Py_Void();
13392 {
13393 if (temp2)
13394 delete arg2;
13395 }
13396 return resultobj;
13397 fail:
13398 {
13399 if (temp2)
13400 delete arg2;
13401 }
13402 return NULL;
13403 }
13404
13405
13406 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13407 PyObject *obj;
13408 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13409 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13410 return SWIG_Py_Void();
13411 }
13412
13413 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13414 return SWIG_Python_InitShadowInstance(args);
13415 }
13416
13417 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13418 PyObject *resultobj = 0;
13419 int arg1 ;
13420 int arg2 ;
13421 int arg3 ;
13422 int arg4 ;
13423 bool arg5 = (bool) false ;
13424 wxString const &arg6_defvalue = wxPyEmptyString ;
13425 wxString *arg6 = (wxString *) &arg6_defvalue ;
13426 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13427 wxFont *result = 0 ;
13428 int val1 ;
13429 int ecode1 = 0 ;
13430 int val2 ;
13431 int ecode2 = 0 ;
13432 int val3 ;
13433 int ecode3 = 0 ;
13434 int val4 ;
13435 int ecode4 = 0 ;
13436 bool val5 ;
13437 int ecode5 = 0 ;
13438 bool temp6 = false ;
13439 int val7 ;
13440 int ecode7 = 0 ;
13441 PyObject * obj0 = 0 ;
13442 PyObject * obj1 = 0 ;
13443 PyObject * obj2 = 0 ;
13444 PyObject * obj3 = 0 ;
13445 PyObject * obj4 = 0 ;
13446 PyObject * obj5 = 0 ;
13447 PyObject * obj6 = 0 ;
13448 char * kwnames[] = {
13449 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13450 };
13451
13452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13453 ecode1 = SWIG_AsVal_int(obj0, &val1);
13454 if (!SWIG_IsOK(ecode1)) {
13455 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13456 }
13457 arg1 = static_cast< int >(val1);
13458 ecode2 = SWIG_AsVal_int(obj1, &val2);
13459 if (!SWIG_IsOK(ecode2)) {
13460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13461 }
13462 arg2 = static_cast< int >(val2);
13463 ecode3 = SWIG_AsVal_int(obj2, &val3);
13464 if (!SWIG_IsOK(ecode3)) {
13465 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13466 }
13467 arg3 = static_cast< int >(val3);
13468 ecode4 = SWIG_AsVal_int(obj3, &val4);
13469 if (!SWIG_IsOK(ecode4)) {
13470 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13471 }
13472 arg4 = static_cast< int >(val4);
13473 if (obj4) {
13474 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13475 if (!SWIG_IsOK(ecode5)) {
13476 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13477 }
13478 arg5 = static_cast< bool >(val5);
13479 }
13480 if (obj5) {
13481 {
13482 arg6 = wxString_in_helper(obj5);
13483 if (arg6 == NULL) SWIG_fail;
13484 temp6 = true;
13485 }
13486 }
13487 if (obj6) {
13488 ecode7 = SWIG_AsVal_int(obj6, &val7);
13489 if (!SWIG_IsOK(ecode7)) {
13490 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13491 }
13492 arg7 = static_cast< wxFontEncoding >(val7);
13493 }
13494 {
13495 if (!wxPyCheckForApp()) SWIG_fail;
13496 PyThreadState* __tstate = wxPyBeginAllowThreads();
13497 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13498 wxPyEndAllowThreads(__tstate);
13499 if (PyErr_Occurred()) SWIG_fail;
13500 }
13501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13502 {
13503 if (temp6)
13504 delete arg6;
13505 }
13506 return resultobj;
13507 fail:
13508 {
13509 if (temp6)
13510 delete arg6;
13511 }
13512 return NULL;
13513 }
13514
13515
13516 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13517 PyObject *resultobj = 0;
13518 wxFont *arg1 = (wxFont *) 0 ;
13519 void *argp1 = 0 ;
13520 int res1 = 0 ;
13521 PyObject *swig_obj[1] ;
13522
13523 if (!args) SWIG_fail;
13524 swig_obj[0] = args;
13525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13526 if (!SWIG_IsOK(res1)) {
13527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13528 }
13529 arg1 = reinterpret_cast< wxFont * >(argp1);
13530 {
13531 PyThreadState* __tstate = wxPyBeginAllowThreads();
13532 delete arg1;
13533
13534 wxPyEndAllowThreads(__tstate);
13535 if (PyErr_Occurred()) SWIG_fail;
13536 }
13537 resultobj = SWIG_Py_Void();
13538 return resultobj;
13539 fail:
13540 return NULL;
13541 }
13542
13543
13544 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13545 PyObject *resultobj = 0;
13546 wxNativeFontInfo *arg1 = 0 ;
13547 wxFont *result = 0 ;
13548 void *argp1 = 0 ;
13549 int res1 = 0 ;
13550 PyObject * obj0 = 0 ;
13551 char * kwnames[] = {
13552 (char *) "info", NULL
13553 };
13554
13555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13556 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13557 if (!SWIG_IsOK(res1)) {
13558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13559 }
13560 if (!argp1) {
13561 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13562 }
13563 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13564 {
13565 if (!wxPyCheckForApp()) SWIG_fail;
13566 PyThreadState* __tstate = wxPyBeginAllowThreads();
13567 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13568 wxPyEndAllowThreads(__tstate);
13569 if (PyErr_Occurred()) SWIG_fail;
13570 }
13571 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13572 return resultobj;
13573 fail:
13574 return NULL;
13575 }
13576
13577
13578 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13579 PyObject *resultobj = 0;
13580 wxString *arg1 = 0 ;
13581 wxFont *result = 0 ;
13582 bool temp1 = false ;
13583 PyObject * obj0 = 0 ;
13584 char * kwnames[] = {
13585 (char *) "info", NULL
13586 };
13587
13588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13589 {
13590 arg1 = wxString_in_helper(obj0);
13591 if (arg1 == NULL) SWIG_fail;
13592 temp1 = true;
13593 }
13594 {
13595 if (!wxPyCheckForApp()) SWIG_fail;
13596 PyThreadState* __tstate = wxPyBeginAllowThreads();
13597 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13598 wxPyEndAllowThreads(__tstate);
13599 if (PyErr_Occurred()) SWIG_fail;
13600 }
13601 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13602 {
13603 if (temp1)
13604 delete arg1;
13605 }
13606 return resultobj;
13607 fail:
13608 {
13609 if (temp1)
13610 delete arg1;
13611 }
13612 return NULL;
13613 }
13614
13615
13616 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13617 PyObject *resultobj = 0;
13618 int arg1 ;
13619 wxFontFamily arg2 ;
13620 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13621 wxString const &arg4_defvalue = wxPyEmptyString ;
13622 wxString *arg4 = (wxString *) &arg4_defvalue ;
13623 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13624 wxFont *result = 0 ;
13625 int val1 ;
13626 int ecode1 = 0 ;
13627 int val2 ;
13628 int ecode2 = 0 ;
13629 int val3 ;
13630 int ecode3 = 0 ;
13631 bool temp4 = false ;
13632 int val5 ;
13633 int ecode5 = 0 ;
13634 PyObject * obj0 = 0 ;
13635 PyObject * obj1 = 0 ;
13636 PyObject * obj2 = 0 ;
13637 PyObject * obj3 = 0 ;
13638 PyObject * obj4 = 0 ;
13639 char * kwnames[] = {
13640 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13641 };
13642
13643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13644 ecode1 = SWIG_AsVal_int(obj0, &val1);
13645 if (!SWIG_IsOK(ecode1)) {
13646 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13647 }
13648 arg1 = static_cast< int >(val1);
13649 ecode2 = SWIG_AsVal_int(obj1, &val2);
13650 if (!SWIG_IsOK(ecode2)) {
13651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13652 }
13653 arg2 = static_cast< wxFontFamily >(val2);
13654 if (obj2) {
13655 ecode3 = SWIG_AsVal_int(obj2, &val3);
13656 if (!SWIG_IsOK(ecode3)) {
13657 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13658 }
13659 arg3 = static_cast< int >(val3);
13660 }
13661 if (obj3) {
13662 {
13663 arg4 = wxString_in_helper(obj3);
13664 if (arg4 == NULL) SWIG_fail;
13665 temp4 = true;
13666 }
13667 }
13668 if (obj4) {
13669 ecode5 = SWIG_AsVal_int(obj4, &val5);
13670 if (!SWIG_IsOK(ecode5)) {
13671 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13672 }
13673 arg5 = static_cast< wxFontEncoding >(val5);
13674 }
13675 {
13676 if (!wxPyCheckForApp()) SWIG_fail;
13677 PyThreadState* __tstate = wxPyBeginAllowThreads();
13678 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13679 wxPyEndAllowThreads(__tstate);
13680 if (PyErr_Occurred()) SWIG_fail;
13681 }
13682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13683 {
13684 if (temp4)
13685 delete arg4;
13686 }
13687 return resultobj;
13688 fail:
13689 {
13690 if (temp4)
13691 delete arg4;
13692 }
13693 return NULL;
13694 }
13695
13696
13697 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13698 PyObject *resultobj = 0;
13699 wxSize *arg1 = 0 ;
13700 int arg2 ;
13701 int arg3 ;
13702 int arg4 ;
13703 bool arg5 = (bool) false ;
13704 wxString const &arg6_defvalue = wxEmptyString ;
13705 wxString *arg6 = (wxString *) &arg6_defvalue ;
13706 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13707 wxFont *result = 0 ;
13708 wxSize temp1 ;
13709 int val2 ;
13710 int ecode2 = 0 ;
13711 int val3 ;
13712 int ecode3 = 0 ;
13713 int val4 ;
13714 int ecode4 = 0 ;
13715 bool val5 ;
13716 int ecode5 = 0 ;
13717 bool temp6 = false ;
13718 int val7 ;
13719 int ecode7 = 0 ;
13720 PyObject * obj0 = 0 ;
13721 PyObject * obj1 = 0 ;
13722 PyObject * obj2 = 0 ;
13723 PyObject * obj3 = 0 ;
13724 PyObject * obj4 = 0 ;
13725 PyObject * obj5 = 0 ;
13726 PyObject * obj6 = 0 ;
13727 char * kwnames[] = {
13728 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13729 };
13730
13731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13732 {
13733 arg1 = &temp1;
13734 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13735 }
13736 ecode2 = SWIG_AsVal_int(obj1, &val2);
13737 if (!SWIG_IsOK(ecode2)) {
13738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13739 }
13740 arg2 = static_cast< int >(val2);
13741 ecode3 = SWIG_AsVal_int(obj2, &val3);
13742 if (!SWIG_IsOK(ecode3)) {
13743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13744 }
13745 arg3 = static_cast< int >(val3);
13746 ecode4 = SWIG_AsVal_int(obj3, &val4);
13747 if (!SWIG_IsOK(ecode4)) {
13748 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13749 }
13750 arg4 = static_cast< int >(val4);
13751 if (obj4) {
13752 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13753 if (!SWIG_IsOK(ecode5)) {
13754 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13755 }
13756 arg5 = static_cast< bool >(val5);
13757 }
13758 if (obj5) {
13759 {
13760 arg6 = wxString_in_helper(obj5);
13761 if (arg6 == NULL) SWIG_fail;
13762 temp6 = true;
13763 }
13764 }
13765 if (obj6) {
13766 ecode7 = SWIG_AsVal_int(obj6, &val7);
13767 if (!SWIG_IsOK(ecode7)) {
13768 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13769 }
13770 arg7 = static_cast< wxFontEncoding >(val7);
13771 }
13772 {
13773 if (!wxPyCheckForApp()) SWIG_fail;
13774 PyThreadState* __tstate = wxPyBeginAllowThreads();
13775 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13776 wxPyEndAllowThreads(__tstate);
13777 if (PyErr_Occurred()) SWIG_fail;
13778 }
13779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13780 {
13781 if (temp6)
13782 delete arg6;
13783 }
13784 return resultobj;
13785 fail:
13786 {
13787 if (temp6)
13788 delete arg6;
13789 }
13790 return NULL;
13791 }
13792
13793
13794 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13795 PyObject *resultobj = 0;
13796 wxSize *arg1 = 0 ;
13797 wxFontFamily arg2 ;
13798 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13799 wxString const &arg4_defvalue = wxEmptyString ;
13800 wxString *arg4 = (wxString *) &arg4_defvalue ;
13801 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13802 wxFont *result = 0 ;
13803 wxSize temp1 ;
13804 int val2 ;
13805 int ecode2 = 0 ;
13806 int val3 ;
13807 int ecode3 = 0 ;
13808 bool temp4 = false ;
13809 int val5 ;
13810 int ecode5 = 0 ;
13811 PyObject * obj0 = 0 ;
13812 PyObject * obj1 = 0 ;
13813 PyObject * obj2 = 0 ;
13814 PyObject * obj3 = 0 ;
13815 PyObject * obj4 = 0 ;
13816 char * kwnames[] = {
13817 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13818 };
13819
13820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13821 {
13822 arg1 = &temp1;
13823 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13824 }
13825 ecode2 = SWIG_AsVal_int(obj1, &val2);
13826 if (!SWIG_IsOK(ecode2)) {
13827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13828 }
13829 arg2 = static_cast< wxFontFamily >(val2);
13830 if (obj2) {
13831 ecode3 = SWIG_AsVal_int(obj2, &val3);
13832 if (!SWIG_IsOK(ecode3)) {
13833 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13834 }
13835 arg3 = static_cast< int >(val3);
13836 }
13837 if (obj3) {
13838 {
13839 arg4 = wxString_in_helper(obj3);
13840 if (arg4 == NULL) SWIG_fail;
13841 temp4 = true;
13842 }
13843 }
13844 if (obj4) {
13845 ecode5 = SWIG_AsVal_int(obj4, &val5);
13846 if (!SWIG_IsOK(ecode5)) {
13847 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13848 }
13849 arg5 = static_cast< wxFontEncoding >(val5);
13850 }
13851 {
13852 if (!wxPyCheckForApp()) SWIG_fail;
13853 PyThreadState* __tstate = wxPyBeginAllowThreads();
13854 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13855 wxPyEndAllowThreads(__tstate);
13856 if (PyErr_Occurred()) SWIG_fail;
13857 }
13858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13859 {
13860 if (temp4)
13861 delete arg4;
13862 }
13863 return resultobj;
13864 fail:
13865 {
13866 if (temp4)
13867 delete arg4;
13868 }
13869 return NULL;
13870 }
13871
13872
13873 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13874 PyObject *resultobj = 0;
13875 wxFont *arg1 = (wxFont *) 0 ;
13876 bool result;
13877 void *argp1 = 0 ;
13878 int res1 = 0 ;
13879 PyObject *swig_obj[1] ;
13880
13881 if (!args) SWIG_fail;
13882 swig_obj[0] = args;
13883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13884 if (!SWIG_IsOK(res1)) {
13885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
13886 }
13887 arg1 = reinterpret_cast< wxFont * >(argp1);
13888 {
13889 PyThreadState* __tstate = wxPyBeginAllowThreads();
13890 result = (bool)((wxFont const *)arg1)->IsOk();
13891 wxPyEndAllowThreads(__tstate);
13892 if (PyErr_Occurred()) SWIG_fail;
13893 }
13894 {
13895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13896 }
13897 return resultobj;
13898 fail:
13899 return NULL;
13900 }
13901
13902
13903 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13904 PyObject *resultobj = 0;
13905 wxFont *arg1 = (wxFont *) 0 ;
13906 wxFont *arg2 = (wxFont *) 0 ;
13907 bool result;
13908 void *argp1 = 0 ;
13909 int res1 = 0 ;
13910 void *argp2 = 0 ;
13911 int res2 = 0 ;
13912 PyObject * obj0 = 0 ;
13913 PyObject * obj1 = 0 ;
13914 char * kwnames[] = {
13915 (char *) "self",(char *) "other", NULL
13916 };
13917
13918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13920 if (!SWIG_IsOK(res1)) {
13921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13922 }
13923 arg1 = reinterpret_cast< wxFont * >(argp1);
13924 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13925 if (!SWIG_IsOK(res2)) {
13926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13927 }
13928 arg2 = reinterpret_cast< wxFont * >(argp2);
13929 {
13930 PyThreadState* __tstate = wxPyBeginAllowThreads();
13931 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13932 wxPyEndAllowThreads(__tstate);
13933 if (PyErr_Occurred()) SWIG_fail;
13934 }
13935 {
13936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13937 }
13938 return resultobj;
13939 fail:
13940 return NULL;
13941 }
13942
13943
13944 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13945 PyObject *resultobj = 0;
13946 wxFont *arg1 = (wxFont *) 0 ;
13947 wxFont *arg2 = (wxFont *) 0 ;
13948 bool result;
13949 void *argp1 = 0 ;
13950 int res1 = 0 ;
13951 void *argp2 = 0 ;
13952 int res2 = 0 ;
13953 PyObject * obj0 = 0 ;
13954 PyObject * obj1 = 0 ;
13955 char * kwnames[] = {
13956 (char *) "self",(char *) "other", NULL
13957 };
13958
13959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13961 if (!SWIG_IsOK(res1)) {
13962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13963 }
13964 arg1 = reinterpret_cast< wxFont * >(argp1);
13965 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13966 if (!SWIG_IsOK(res2)) {
13967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13968 }
13969 arg2 = reinterpret_cast< wxFont * >(argp2);
13970 {
13971 PyThreadState* __tstate = wxPyBeginAllowThreads();
13972 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13973 wxPyEndAllowThreads(__tstate);
13974 if (PyErr_Occurred()) SWIG_fail;
13975 }
13976 {
13977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13978 }
13979 return resultobj;
13980 fail:
13981 return NULL;
13982 }
13983
13984
13985 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13986 PyObject *resultobj = 0;
13987 wxFont *arg1 = (wxFont *) 0 ;
13988 int result;
13989 void *argp1 = 0 ;
13990 int res1 = 0 ;
13991 PyObject *swig_obj[1] ;
13992
13993 if (!args) SWIG_fail;
13994 swig_obj[0] = args;
13995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13996 if (!SWIG_IsOK(res1)) {
13997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13998 }
13999 arg1 = reinterpret_cast< wxFont * >(argp1);
14000 {
14001 PyThreadState* __tstate = wxPyBeginAllowThreads();
14002 result = (int)((wxFont const *)arg1)->GetPointSize();
14003 wxPyEndAllowThreads(__tstate);
14004 if (PyErr_Occurred()) SWIG_fail;
14005 }
14006 resultobj = SWIG_From_int(static_cast< int >(result));
14007 return resultobj;
14008 fail:
14009 return NULL;
14010 }
14011
14012
14013 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14014 PyObject *resultobj = 0;
14015 wxFont *arg1 = (wxFont *) 0 ;
14016 wxSize result;
14017 void *argp1 = 0 ;
14018 int res1 = 0 ;
14019 PyObject *swig_obj[1] ;
14020
14021 if (!args) SWIG_fail;
14022 swig_obj[0] = args;
14023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14024 if (!SWIG_IsOK(res1)) {
14025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14026 }
14027 arg1 = reinterpret_cast< wxFont * >(argp1);
14028 {
14029 PyThreadState* __tstate = wxPyBeginAllowThreads();
14030 result = ((wxFont const *)arg1)->GetPixelSize();
14031 wxPyEndAllowThreads(__tstate);
14032 if (PyErr_Occurred()) SWIG_fail;
14033 }
14034 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14035 return resultobj;
14036 fail:
14037 return NULL;
14038 }
14039
14040
14041 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14042 PyObject *resultobj = 0;
14043 wxFont *arg1 = (wxFont *) 0 ;
14044 bool result;
14045 void *argp1 = 0 ;
14046 int res1 = 0 ;
14047 PyObject *swig_obj[1] ;
14048
14049 if (!args) SWIG_fail;
14050 swig_obj[0] = args;
14051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14052 if (!SWIG_IsOK(res1)) {
14053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14054 }
14055 arg1 = reinterpret_cast< wxFont * >(argp1);
14056 {
14057 PyThreadState* __tstate = wxPyBeginAllowThreads();
14058 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14059 wxPyEndAllowThreads(__tstate);
14060 if (PyErr_Occurred()) SWIG_fail;
14061 }
14062 {
14063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14064 }
14065 return resultobj;
14066 fail:
14067 return NULL;
14068 }
14069
14070
14071 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14072 PyObject *resultobj = 0;
14073 wxFont *arg1 = (wxFont *) 0 ;
14074 int result;
14075 void *argp1 = 0 ;
14076 int res1 = 0 ;
14077 PyObject *swig_obj[1] ;
14078
14079 if (!args) SWIG_fail;
14080 swig_obj[0] = args;
14081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14082 if (!SWIG_IsOK(res1)) {
14083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14084 }
14085 arg1 = reinterpret_cast< wxFont * >(argp1);
14086 {
14087 PyThreadState* __tstate = wxPyBeginAllowThreads();
14088 result = (int)((wxFont const *)arg1)->GetFamily();
14089 wxPyEndAllowThreads(__tstate);
14090 if (PyErr_Occurred()) SWIG_fail;
14091 }
14092 resultobj = SWIG_From_int(static_cast< int >(result));
14093 return resultobj;
14094 fail:
14095 return NULL;
14096 }
14097
14098
14099 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14100 PyObject *resultobj = 0;
14101 wxFont *arg1 = (wxFont *) 0 ;
14102 int result;
14103 void *argp1 = 0 ;
14104 int res1 = 0 ;
14105 PyObject *swig_obj[1] ;
14106
14107 if (!args) SWIG_fail;
14108 swig_obj[0] = args;
14109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14110 if (!SWIG_IsOK(res1)) {
14111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14112 }
14113 arg1 = reinterpret_cast< wxFont * >(argp1);
14114 {
14115 PyThreadState* __tstate = wxPyBeginAllowThreads();
14116 result = (int)((wxFont const *)arg1)->GetStyle();
14117 wxPyEndAllowThreads(__tstate);
14118 if (PyErr_Occurred()) SWIG_fail;
14119 }
14120 resultobj = SWIG_From_int(static_cast< int >(result));
14121 return resultobj;
14122 fail:
14123 return NULL;
14124 }
14125
14126
14127 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14128 PyObject *resultobj = 0;
14129 wxFont *arg1 = (wxFont *) 0 ;
14130 int result;
14131 void *argp1 = 0 ;
14132 int res1 = 0 ;
14133 PyObject *swig_obj[1] ;
14134
14135 if (!args) SWIG_fail;
14136 swig_obj[0] = args;
14137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14138 if (!SWIG_IsOK(res1)) {
14139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14140 }
14141 arg1 = reinterpret_cast< wxFont * >(argp1);
14142 {
14143 PyThreadState* __tstate = wxPyBeginAllowThreads();
14144 result = (int)((wxFont const *)arg1)->GetWeight();
14145 wxPyEndAllowThreads(__tstate);
14146 if (PyErr_Occurred()) SWIG_fail;
14147 }
14148 resultobj = SWIG_From_int(static_cast< int >(result));
14149 return resultobj;
14150 fail:
14151 return NULL;
14152 }
14153
14154
14155 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14156 PyObject *resultobj = 0;
14157 wxFont *arg1 = (wxFont *) 0 ;
14158 bool result;
14159 void *argp1 = 0 ;
14160 int res1 = 0 ;
14161 PyObject *swig_obj[1] ;
14162
14163 if (!args) SWIG_fail;
14164 swig_obj[0] = args;
14165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14166 if (!SWIG_IsOK(res1)) {
14167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14168 }
14169 arg1 = reinterpret_cast< wxFont * >(argp1);
14170 {
14171 PyThreadState* __tstate = wxPyBeginAllowThreads();
14172 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14173 wxPyEndAllowThreads(__tstate);
14174 if (PyErr_Occurred()) SWIG_fail;
14175 }
14176 {
14177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14178 }
14179 return resultobj;
14180 fail:
14181 return NULL;
14182 }
14183
14184
14185 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14186 PyObject *resultobj = 0;
14187 wxFont *arg1 = (wxFont *) 0 ;
14188 wxString result;
14189 void *argp1 = 0 ;
14190 int res1 = 0 ;
14191 PyObject *swig_obj[1] ;
14192
14193 if (!args) SWIG_fail;
14194 swig_obj[0] = args;
14195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14196 if (!SWIG_IsOK(res1)) {
14197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14198 }
14199 arg1 = reinterpret_cast< wxFont * >(argp1);
14200 {
14201 PyThreadState* __tstate = wxPyBeginAllowThreads();
14202 result = ((wxFont const *)arg1)->GetFaceName();
14203 wxPyEndAllowThreads(__tstate);
14204 if (PyErr_Occurred()) SWIG_fail;
14205 }
14206 {
14207 #if wxUSE_UNICODE
14208 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14209 #else
14210 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14211 #endif
14212 }
14213 return resultobj;
14214 fail:
14215 return NULL;
14216 }
14217
14218
14219 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14220 PyObject *resultobj = 0;
14221 wxFont *arg1 = (wxFont *) 0 ;
14222 wxFontEncoding result;
14223 void *argp1 = 0 ;
14224 int res1 = 0 ;
14225 PyObject *swig_obj[1] ;
14226
14227 if (!args) SWIG_fail;
14228 swig_obj[0] = args;
14229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14230 if (!SWIG_IsOK(res1)) {
14231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14232 }
14233 arg1 = reinterpret_cast< wxFont * >(argp1);
14234 {
14235 PyThreadState* __tstate = wxPyBeginAllowThreads();
14236 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14237 wxPyEndAllowThreads(__tstate);
14238 if (PyErr_Occurred()) SWIG_fail;
14239 }
14240 resultobj = SWIG_From_int(static_cast< int >(result));
14241 return resultobj;
14242 fail:
14243 return NULL;
14244 }
14245
14246
14247 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14248 PyObject *resultobj = 0;
14249 wxFont *arg1 = (wxFont *) 0 ;
14250 wxNativeFontInfo *result = 0 ;
14251 void *argp1 = 0 ;
14252 int res1 = 0 ;
14253 PyObject *swig_obj[1] ;
14254
14255 if (!args) SWIG_fail;
14256 swig_obj[0] = args;
14257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14258 if (!SWIG_IsOK(res1)) {
14259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14260 }
14261 arg1 = reinterpret_cast< wxFont * >(argp1);
14262 {
14263 PyThreadState* __tstate = wxPyBeginAllowThreads();
14264 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14265 wxPyEndAllowThreads(__tstate);
14266 if (PyErr_Occurred()) SWIG_fail;
14267 }
14268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14269 return resultobj;
14270 fail:
14271 return NULL;
14272 }
14273
14274
14275 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14276 PyObject *resultobj = 0;
14277 wxFont *arg1 = (wxFont *) 0 ;
14278 bool result;
14279 void *argp1 = 0 ;
14280 int res1 = 0 ;
14281 PyObject *swig_obj[1] ;
14282
14283 if (!args) SWIG_fail;
14284 swig_obj[0] = args;
14285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14286 if (!SWIG_IsOK(res1)) {
14287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14288 }
14289 arg1 = reinterpret_cast< wxFont * >(argp1);
14290 {
14291 PyThreadState* __tstate = wxPyBeginAllowThreads();
14292 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14293 wxPyEndAllowThreads(__tstate);
14294 if (PyErr_Occurred()) SWIG_fail;
14295 }
14296 {
14297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14298 }
14299 return resultobj;
14300 fail:
14301 return NULL;
14302 }
14303
14304
14305 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14306 PyObject *resultobj = 0;
14307 wxFont *arg1 = (wxFont *) 0 ;
14308 wxString result;
14309 void *argp1 = 0 ;
14310 int res1 = 0 ;
14311 PyObject *swig_obj[1] ;
14312
14313 if (!args) SWIG_fail;
14314 swig_obj[0] = args;
14315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14316 if (!SWIG_IsOK(res1)) {
14317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14318 }
14319 arg1 = reinterpret_cast< wxFont * >(argp1);
14320 {
14321 PyThreadState* __tstate = wxPyBeginAllowThreads();
14322 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14323 wxPyEndAllowThreads(__tstate);
14324 if (PyErr_Occurred()) SWIG_fail;
14325 }
14326 {
14327 #if wxUSE_UNICODE
14328 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14329 #else
14330 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14331 #endif
14332 }
14333 return resultobj;
14334 fail:
14335 return NULL;
14336 }
14337
14338
14339 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14340 PyObject *resultobj = 0;
14341 wxFont *arg1 = (wxFont *) 0 ;
14342 wxString result;
14343 void *argp1 = 0 ;
14344 int res1 = 0 ;
14345 PyObject *swig_obj[1] ;
14346
14347 if (!args) SWIG_fail;
14348 swig_obj[0] = args;
14349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14350 if (!SWIG_IsOK(res1)) {
14351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14352 }
14353 arg1 = reinterpret_cast< wxFont * >(argp1);
14354 {
14355 PyThreadState* __tstate = wxPyBeginAllowThreads();
14356 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14357 wxPyEndAllowThreads(__tstate);
14358 if (PyErr_Occurred()) SWIG_fail;
14359 }
14360 {
14361 #if wxUSE_UNICODE
14362 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14363 #else
14364 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14365 #endif
14366 }
14367 return resultobj;
14368 fail:
14369 return NULL;
14370 }
14371
14372
14373 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14374 PyObject *resultobj = 0;
14375 wxFont *arg1 = (wxFont *) 0 ;
14376 int arg2 ;
14377 void *argp1 = 0 ;
14378 int res1 = 0 ;
14379 int val2 ;
14380 int ecode2 = 0 ;
14381 PyObject * obj0 = 0 ;
14382 PyObject * obj1 = 0 ;
14383 char * kwnames[] = {
14384 (char *) "self",(char *) "pointSize", NULL
14385 };
14386
14387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14389 if (!SWIG_IsOK(res1)) {
14390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14391 }
14392 arg1 = reinterpret_cast< wxFont * >(argp1);
14393 ecode2 = SWIG_AsVal_int(obj1, &val2);
14394 if (!SWIG_IsOK(ecode2)) {
14395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14396 }
14397 arg2 = static_cast< int >(val2);
14398 {
14399 PyThreadState* __tstate = wxPyBeginAllowThreads();
14400 (arg1)->SetPointSize(arg2);
14401 wxPyEndAllowThreads(__tstate);
14402 if (PyErr_Occurred()) SWIG_fail;
14403 }
14404 resultobj = SWIG_Py_Void();
14405 return resultobj;
14406 fail:
14407 return NULL;
14408 }
14409
14410
14411 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14412 PyObject *resultobj = 0;
14413 wxFont *arg1 = (wxFont *) 0 ;
14414 wxSize *arg2 = 0 ;
14415 void *argp1 = 0 ;
14416 int res1 = 0 ;
14417 wxSize temp2 ;
14418 PyObject * obj0 = 0 ;
14419 PyObject * obj1 = 0 ;
14420 char * kwnames[] = {
14421 (char *) "self",(char *) "pixelSize", NULL
14422 };
14423
14424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14426 if (!SWIG_IsOK(res1)) {
14427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14428 }
14429 arg1 = reinterpret_cast< wxFont * >(argp1);
14430 {
14431 arg2 = &temp2;
14432 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14433 }
14434 {
14435 PyThreadState* __tstate = wxPyBeginAllowThreads();
14436 (arg1)->SetPixelSize((wxSize const &)*arg2);
14437 wxPyEndAllowThreads(__tstate);
14438 if (PyErr_Occurred()) SWIG_fail;
14439 }
14440 resultobj = SWIG_Py_Void();
14441 return resultobj;
14442 fail:
14443 return NULL;
14444 }
14445
14446
14447 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14448 PyObject *resultobj = 0;
14449 wxFont *arg1 = (wxFont *) 0 ;
14450 int arg2 ;
14451 void *argp1 = 0 ;
14452 int res1 = 0 ;
14453 int val2 ;
14454 int ecode2 = 0 ;
14455 PyObject * obj0 = 0 ;
14456 PyObject * obj1 = 0 ;
14457 char * kwnames[] = {
14458 (char *) "self",(char *) "family", NULL
14459 };
14460
14461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14463 if (!SWIG_IsOK(res1)) {
14464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14465 }
14466 arg1 = reinterpret_cast< wxFont * >(argp1);
14467 ecode2 = SWIG_AsVal_int(obj1, &val2);
14468 if (!SWIG_IsOK(ecode2)) {
14469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14470 }
14471 arg2 = static_cast< int >(val2);
14472 {
14473 PyThreadState* __tstate = wxPyBeginAllowThreads();
14474 (arg1)->SetFamily(arg2);
14475 wxPyEndAllowThreads(__tstate);
14476 if (PyErr_Occurred()) SWIG_fail;
14477 }
14478 resultobj = SWIG_Py_Void();
14479 return resultobj;
14480 fail:
14481 return NULL;
14482 }
14483
14484
14485 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14486 PyObject *resultobj = 0;
14487 wxFont *arg1 = (wxFont *) 0 ;
14488 int arg2 ;
14489 void *argp1 = 0 ;
14490 int res1 = 0 ;
14491 int val2 ;
14492 int ecode2 = 0 ;
14493 PyObject * obj0 = 0 ;
14494 PyObject * obj1 = 0 ;
14495 char * kwnames[] = {
14496 (char *) "self",(char *) "style", NULL
14497 };
14498
14499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14501 if (!SWIG_IsOK(res1)) {
14502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14503 }
14504 arg1 = reinterpret_cast< wxFont * >(argp1);
14505 ecode2 = SWIG_AsVal_int(obj1, &val2);
14506 if (!SWIG_IsOK(ecode2)) {
14507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14508 }
14509 arg2 = static_cast< int >(val2);
14510 {
14511 PyThreadState* __tstate = wxPyBeginAllowThreads();
14512 (arg1)->SetStyle(arg2);
14513 wxPyEndAllowThreads(__tstate);
14514 if (PyErr_Occurred()) SWIG_fail;
14515 }
14516 resultobj = SWIG_Py_Void();
14517 return resultobj;
14518 fail:
14519 return NULL;
14520 }
14521
14522
14523 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14524 PyObject *resultobj = 0;
14525 wxFont *arg1 = (wxFont *) 0 ;
14526 int arg2 ;
14527 void *argp1 = 0 ;
14528 int res1 = 0 ;
14529 int val2 ;
14530 int ecode2 = 0 ;
14531 PyObject * obj0 = 0 ;
14532 PyObject * obj1 = 0 ;
14533 char * kwnames[] = {
14534 (char *) "self",(char *) "weight", NULL
14535 };
14536
14537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14539 if (!SWIG_IsOK(res1)) {
14540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14541 }
14542 arg1 = reinterpret_cast< wxFont * >(argp1);
14543 ecode2 = SWIG_AsVal_int(obj1, &val2);
14544 if (!SWIG_IsOK(ecode2)) {
14545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14546 }
14547 arg2 = static_cast< int >(val2);
14548 {
14549 PyThreadState* __tstate = wxPyBeginAllowThreads();
14550 (arg1)->SetWeight(arg2);
14551 wxPyEndAllowThreads(__tstate);
14552 if (PyErr_Occurred()) SWIG_fail;
14553 }
14554 resultobj = SWIG_Py_Void();
14555 return resultobj;
14556 fail:
14557 return NULL;
14558 }
14559
14560
14561 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14562 PyObject *resultobj = 0;
14563 wxFont *arg1 = (wxFont *) 0 ;
14564 wxString *arg2 = 0 ;
14565 bool result;
14566 void *argp1 = 0 ;
14567 int res1 = 0 ;
14568 bool temp2 = false ;
14569 PyObject * obj0 = 0 ;
14570 PyObject * obj1 = 0 ;
14571 char * kwnames[] = {
14572 (char *) "self",(char *) "faceName", NULL
14573 };
14574
14575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14577 if (!SWIG_IsOK(res1)) {
14578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14579 }
14580 arg1 = reinterpret_cast< wxFont * >(argp1);
14581 {
14582 arg2 = wxString_in_helper(obj1);
14583 if (arg2 == NULL) SWIG_fail;
14584 temp2 = true;
14585 }
14586 {
14587 PyThreadState* __tstate = wxPyBeginAllowThreads();
14588 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14589 wxPyEndAllowThreads(__tstate);
14590 if (PyErr_Occurred()) SWIG_fail;
14591 }
14592 {
14593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14594 }
14595 {
14596 if (temp2)
14597 delete arg2;
14598 }
14599 return resultobj;
14600 fail:
14601 {
14602 if (temp2)
14603 delete arg2;
14604 }
14605 return NULL;
14606 }
14607
14608
14609 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14610 PyObject *resultobj = 0;
14611 wxFont *arg1 = (wxFont *) 0 ;
14612 bool arg2 ;
14613 void *argp1 = 0 ;
14614 int res1 = 0 ;
14615 bool val2 ;
14616 int ecode2 = 0 ;
14617 PyObject * obj0 = 0 ;
14618 PyObject * obj1 = 0 ;
14619 char * kwnames[] = {
14620 (char *) "self",(char *) "underlined", NULL
14621 };
14622
14623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14625 if (!SWIG_IsOK(res1)) {
14626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14627 }
14628 arg1 = reinterpret_cast< wxFont * >(argp1);
14629 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14630 if (!SWIG_IsOK(ecode2)) {
14631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14632 }
14633 arg2 = static_cast< bool >(val2);
14634 {
14635 PyThreadState* __tstate = wxPyBeginAllowThreads();
14636 (arg1)->SetUnderlined(arg2);
14637 wxPyEndAllowThreads(__tstate);
14638 if (PyErr_Occurred()) SWIG_fail;
14639 }
14640 resultobj = SWIG_Py_Void();
14641 return resultobj;
14642 fail:
14643 return NULL;
14644 }
14645
14646
14647 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14648 PyObject *resultobj = 0;
14649 wxFont *arg1 = (wxFont *) 0 ;
14650 wxFontEncoding arg2 ;
14651 void *argp1 = 0 ;
14652 int res1 = 0 ;
14653 int val2 ;
14654 int ecode2 = 0 ;
14655 PyObject * obj0 = 0 ;
14656 PyObject * obj1 = 0 ;
14657 char * kwnames[] = {
14658 (char *) "self",(char *) "encoding", NULL
14659 };
14660
14661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14663 if (!SWIG_IsOK(res1)) {
14664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14665 }
14666 arg1 = reinterpret_cast< wxFont * >(argp1);
14667 ecode2 = SWIG_AsVal_int(obj1, &val2);
14668 if (!SWIG_IsOK(ecode2)) {
14669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14670 }
14671 arg2 = static_cast< wxFontEncoding >(val2);
14672 {
14673 PyThreadState* __tstate = wxPyBeginAllowThreads();
14674 (arg1)->SetEncoding(arg2);
14675 wxPyEndAllowThreads(__tstate);
14676 if (PyErr_Occurred()) SWIG_fail;
14677 }
14678 resultobj = SWIG_Py_Void();
14679 return resultobj;
14680 fail:
14681 return NULL;
14682 }
14683
14684
14685 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14686 PyObject *resultobj = 0;
14687 wxFont *arg1 = (wxFont *) 0 ;
14688 wxNativeFontInfo *arg2 = 0 ;
14689 void *argp1 = 0 ;
14690 int res1 = 0 ;
14691 void *argp2 = 0 ;
14692 int res2 = 0 ;
14693 PyObject * obj0 = 0 ;
14694 PyObject * obj1 = 0 ;
14695 char * kwnames[] = {
14696 (char *) "self",(char *) "info", NULL
14697 };
14698
14699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14701 if (!SWIG_IsOK(res1)) {
14702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14703 }
14704 arg1 = reinterpret_cast< wxFont * >(argp1);
14705 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14706 if (!SWIG_IsOK(res2)) {
14707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14708 }
14709 if (!argp2) {
14710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14711 }
14712 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14713 {
14714 PyThreadState* __tstate = wxPyBeginAllowThreads();
14715 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14716 wxPyEndAllowThreads(__tstate);
14717 if (PyErr_Occurred()) SWIG_fail;
14718 }
14719 resultobj = SWIG_Py_Void();
14720 return resultobj;
14721 fail:
14722 return NULL;
14723 }
14724
14725
14726 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14727 PyObject *resultobj = 0;
14728 wxFont *arg1 = (wxFont *) 0 ;
14729 wxString *arg2 = 0 ;
14730 bool result;
14731 void *argp1 = 0 ;
14732 int res1 = 0 ;
14733 bool temp2 = false ;
14734 PyObject * obj0 = 0 ;
14735 PyObject * obj1 = 0 ;
14736 char * kwnames[] = {
14737 (char *) "self",(char *) "info", NULL
14738 };
14739
14740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14742 if (!SWIG_IsOK(res1)) {
14743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14744 }
14745 arg1 = reinterpret_cast< wxFont * >(argp1);
14746 {
14747 arg2 = wxString_in_helper(obj1);
14748 if (arg2 == NULL) SWIG_fail;
14749 temp2 = true;
14750 }
14751 {
14752 PyThreadState* __tstate = wxPyBeginAllowThreads();
14753 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
14754 wxPyEndAllowThreads(__tstate);
14755 if (PyErr_Occurred()) SWIG_fail;
14756 }
14757 {
14758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14759 }
14760 {
14761 if (temp2)
14762 delete arg2;
14763 }
14764 return resultobj;
14765 fail:
14766 {
14767 if (temp2)
14768 delete arg2;
14769 }
14770 return NULL;
14771 }
14772
14773
14774 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14775 PyObject *resultobj = 0;
14776 wxFont *arg1 = (wxFont *) 0 ;
14777 wxString *arg2 = 0 ;
14778 bool result;
14779 void *argp1 = 0 ;
14780 int res1 = 0 ;
14781 bool temp2 = false ;
14782 PyObject * obj0 = 0 ;
14783 PyObject * obj1 = 0 ;
14784 char * kwnames[] = {
14785 (char *) "self",(char *) "info", NULL
14786 };
14787
14788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14790 if (!SWIG_IsOK(res1)) {
14791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14792 }
14793 arg1 = reinterpret_cast< wxFont * >(argp1);
14794 {
14795 arg2 = wxString_in_helper(obj1);
14796 if (arg2 == NULL) SWIG_fail;
14797 temp2 = true;
14798 }
14799 {
14800 PyThreadState* __tstate = wxPyBeginAllowThreads();
14801 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
14802 wxPyEndAllowThreads(__tstate);
14803 if (PyErr_Occurred()) SWIG_fail;
14804 }
14805 {
14806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14807 }
14808 {
14809 if (temp2)
14810 delete arg2;
14811 }
14812 return resultobj;
14813 fail:
14814 {
14815 if (temp2)
14816 delete arg2;
14817 }
14818 return NULL;
14819 }
14820
14821
14822 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14823 PyObject *resultobj = 0;
14824 wxFont *arg1 = (wxFont *) 0 ;
14825 wxString result;
14826 void *argp1 = 0 ;
14827 int res1 = 0 ;
14828 PyObject *swig_obj[1] ;
14829
14830 if (!args) SWIG_fail;
14831 swig_obj[0] = args;
14832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14833 if (!SWIG_IsOK(res1)) {
14834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14835 }
14836 arg1 = reinterpret_cast< wxFont * >(argp1);
14837 {
14838 PyThreadState* __tstate = wxPyBeginAllowThreads();
14839 result = ((wxFont const *)arg1)->GetFamilyString();
14840 wxPyEndAllowThreads(__tstate);
14841 if (PyErr_Occurred()) SWIG_fail;
14842 }
14843 {
14844 #if wxUSE_UNICODE
14845 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14846 #else
14847 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14848 #endif
14849 }
14850 return resultobj;
14851 fail:
14852 return NULL;
14853 }
14854
14855
14856 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14857 PyObject *resultobj = 0;
14858 wxFont *arg1 = (wxFont *) 0 ;
14859 wxString result;
14860 void *argp1 = 0 ;
14861 int res1 = 0 ;
14862 PyObject *swig_obj[1] ;
14863
14864 if (!args) SWIG_fail;
14865 swig_obj[0] = args;
14866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14867 if (!SWIG_IsOK(res1)) {
14868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14869 }
14870 arg1 = reinterpret_cast< wxFont * >(argp1);
14871 {
14872 PyThreadState* __tstate = wxPyBeginAllowThreads();
14873 result = ((wxFont const *)arg1)->GetStyleString();
14874 wxPyEndAllowThreads(__tstate);
14875 if (PyErr_Occurred()) SWIG_fail;
14876 }
14877 {
14878 #if wxUSE_UNICODE
14879 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14880 #else
14881 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14882 #endif
14883 }
14884 return resultobj;
14885 fail:
14886 return NULL;
14887 }
14888
14889
14890 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14891 PyObject *resultobj = 0;
14892 wxFont *arg1 = (wxFont *) 0 ;
14893 wxString result;
14894 void *argp1 = 0 ;
14895 int res1 = 0 ;
14896 PyObject *swig_obj[1] ;
14897
14898 if (!args) SWIG_fail;
14899 swig_obj[0] = args;
14900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14901 if (!SWIG_IsOK(res1)) {
14902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14903 }
14904 arg1 = reinterpret_cast< wxFont * >(argp1);
14905 {
14906 PyThreadState* __tstate = wxPyBeginAllowThreads();
14907 result = ((wxFont const *)arg1)->GetWeightString();
14908 wxPyEndAllowThreads(__tstate);
14909 if (PyErr_Occurred()) SWIG_fail;
14910 }
14911 {
14912 #if wxUSE_UNICODE
14913 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14914 #else
14915 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14916 #endif
14917 }
14918 return resultobj;
14919 fail:
14920 return NULL;
14921 }
14922
14923
14924 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14925 PyObject *resultobj = 0;
14926 wxFont *arg1 = (wxFont *) 0 ;
14927 bool arg2 = (bool) true ;
14928 void *argp1 = 0 ;
14929 int res1 = 0 ;
14930 bool val2 ;
14931 int ecode2 = 0 ;
14932 PyObject * obj0 = 0 ;
14933 PyObject * obj1 = 0 ;
14934 char * kwnames[] = {
14935 (char *) "self",(char *) "no", NULL
14936 };
14937
14938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14940 if (!SWIG_IsOK(res1)) {
14941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14942 }
14943 arg1 = reinterpret_cast< wxFont * >(argp1);
14944 if (obj1) {
14945 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14946 if (!SWIG_IsOK(ecode2)) {
14947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14948 }
14949 arg2 = static_cast< bool >(val2);
14950 }
14951 {
14952 PyThreadState* __tstate = wxPyBeginAllowThreads();
14953 (arg1)->SetNoAntiAliasing(arg2);
14954 wxPyEndAllowThreads(__tstate);
14955 if (PyErr_Occurred()) SWIG_fail;
14956 }
14957 resultobj = SWIG_Py_Void();
14958 return resultobj;
14959 fail:
14960 return NULL;
14961 }
14962
14963
14964 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14965 PyObject *resultobj = 0;
14966 wxFont *arg1 = (wxFont *) 0 ;
14967 bool result;
14968 void *argp1 = 0 ;
14969 int res1 = 0 ;
14970 PyObject *swig_obj[1] ;
14971
14972 if (!args) SWIG_fail;
14973 swig_obj[0] = args;
14974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14975 if (!SWIG_IsOK(res1)) {
14976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14977 }
14978 arg1 = reinterpret_cast< wxFont * >(argp1);
14979 {
14980 PyThreadState* __tstate = wxPyBeginAllowThreads();
14981 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14982 wxPyEndAllowThreads(__tstate);
14983 if (PyErr_Occurred()) SWIG_fail;
14984 }
14985 {
14986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14987 }
14988 return resultobj;
14989 fail:
14990 return NULL;
14991 }
14992
14993
14994 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14995 PyObject *resultobj = 0;
14996 wxFontEncoding result;
14997
14998 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
14999 {
15000 if (!wxPyCheckForApp()) SWIG_fail;
15001 PyThreadState* __tstate = wxPyBeginAllowThreads();
15002 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15003 wxPyEndAllowThreads(__tstate);
15004 if (PyErr_Occurred()) SWIG_fail;
15005 }
15006 resultobj = SWIG_From_int(static_cast< int >(result));
15007 return resultobj;
15008 fail:
15009 return NULL;
15010 }
15011
15012
15013 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15014 PyObject *resultobj = 0;
15015 wxFontEncoding arg1 ;
15016 int val1 ;
15017 int ecode1 = 0 ;
15018 PyObject * obj0 = 0 ;
15019 char * kwnames[] = {
15020 (char *) "encoding", NULL
15021 };
15022
15023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15024 ecode1 = SWIG_AsVal_int(obj0, &val1);
15025 if (!SWIG_IsOK(ecode1)) {
15026 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15027 }
15028 arg1 = static_cast< wxFontEncoding >(val1);
15029 {
15030 if (!wxPyCheckForApp()) SWIG_fail;
15031 PyThreadState* __tstate = wxPyBeginAllowThreads();
15032 wxFont::SetDefaultEncoding(arg1);
15033 wxPyEndAllowThreads(__tstate);
15034 if (PyErr_Occurred()) SWIG_fail;
15035 }
15036 resultobj = SWIG_Py_Void();
15037 return resultobj;
15038 fail:
15039 return NULL;
15040 }
15041
15042
15043 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15044 PyObject *obj;
15045 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15046 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15047 return SWIG_Py_Void();
15048 }
15049
15050 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15051 return SWIG_Python_InitShadowInstance(args);
15052 }
15053
15054 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15055 PyObject *resultobj = 0;
15056 wxPyFontEnumerator *result = 0 ;
15057
15058 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15059 {
15060 if (!wxPyCheckForApp()) SWIG_fail;
15061 PyThreadState* __tstate = wxPyBeginAllowThreads();
15062 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15063 wxPyEndAllowThreads(__tstate);
15064 if (PyErr_Occurred()) SWIG_fail;
15065 }
15066 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15067 return resultobj;
15068 fail:
15069 return NULL;
15070 }
15071
15072
15073 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15074 PyObject *resultobj = 0;
15075 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15076 void *argp1 = 0 ;
15077 int res1 = 0 ;
15078 PyObject *swig_obj[1] ;
15079
15080 if (!args) SWIG_fail;
15081 swig_obj[0] = args;
15082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15083 if (!SWIG_IsOK(res1)) {
15084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15085 }
15086 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15087 {
15088 PyThreadState* __tstate = wxPyBeginAllowThreads();
15089 delete arg1;
15090
15091 wxPyEndAllowThreads(__tstate);
15092 if (PyErr_Occurred()) SWIG_fail;
15093 }
15094 resultobj = SWIG_Py_Void();
15095 return resultobj;
15096 fail:
15097 return NULL;
15098 }
15099
15100
15101 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15102 PyObject *resultobj = 0;
15103 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15104 PyObject *arg2 = (PyObject *) 0 ;
15105 PyObject *arg3 = (PyObject *) 0 ;
15106 bool arg4 ;
15107 void *argp1 = 0 ;
15108 int res1 = 0 ;
15109 bool val4 ;
15110 int ecode4 = 0 ;
15111 PyObject * obj0 = 0 ;
15112 PyObject * obj1 = 0 ;
15113 PyObject * obj2 = 0 ;
15114 PyObject * obj3 = 0 ;
15115 char * kwnames[] = {
15116 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15117 };
15118
15119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15121 if (!SWIG_IsOK(res1)) {
15122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15123 }
15124 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15125 arg2 = obj1;
15126 arg3 = obj2;
15127 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15128 if (!SWIG_IsOK(ecode4)) {
15129 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15130 }
15131 arg4 = static_cast< bool >(val4);
15132 {
15133 PyThreadState* __tstate = wxPyBeginAllowThreads();
15134 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15135 wxPyEndAllowThreads(__tstate);
15136 if (PyErr_Occurred()) SWIG_fail;
15137 }
15138 resultobj = SWIG_Py_Void();
15139 return resultobj;
15140 fail:
15141 return NULL;
15142 }
15143
15144
15145 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15146 PyObject *resultobj = 0;
15147 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15148 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15149 bool arg3 = (bool) false ;
15150 bool result;
15151 void *argp1 = 0 ;
15152 int res1 = 0 ;
15153 int val2 ;
15154 int ecode2 = 0 ;
15155 bool val3 ;
15156 int ecode3 = 0 ;
15157 PyObject * obj0 = 0 ;
15158 PyObject * obj1 = 0 ;
15159 PyObject * obj2 = 0 ;
15160 char * kwnames[] = {
15161 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15162 };
15163
15164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15166 if (!SWIG_IsOK(res1)) {
15167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15168 }
15169 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15170 if (obj1) {
15171 ecode2 = SWIG_AsVal_int(obj1, &val2);
15172 if (!SWIG_IsOK(ecode2)) {
15173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15174 }
15175 arg2 = static_cast< wxFontEncoding >(val2);
15176 }
15177 if (obj2) {
15178 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15179 if (!SWIG_IsOK(ecode3)) {
15180 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15181 }
15182 arg3 = static_cast< bool >(val3);
15183 }
15184 {
15185 PyThreadState* __tstate = wxPyBeginAllowThreads();
15186 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15187 wxPyEndAllowThreads(__tstate);
15188 if (PyErr_Occurred()) SWIG_fail;
15189 }
15190 {
15191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15192 }
15193 return resultobj;
15194 fail:
15195 return NULL;
15196 }
15197
15198
15199 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15200 PyObject *resultobj = 0;
15201 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15202 wxString const &arg2_defvalue = wxPyEmptyString ;
15203 wxString *arg2 = (wxString *) &arg2_defvalue ;
15204 bool result;
15205 void *argp1 = 0 ;
15206 int res1 = 0 ;
15207 bool temp2 = false ;
15208 PyObject * obj0 = 0 ;
15209 PyObject * obj1 = 0 ;
15210 char * kwnames[] = {
15211 (char *) "self",(char *) "facename", NULL
15212 };
15213
15214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15216 if (!SWIG_IsOK(res1)) {
15217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15218 }
15219 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15220 if (obj1) {
15221 {
15222 arg2 = wxString_in_helper(obj1);
15223 if (arg2 == NULL) SWIG_fail;
15224 temp2 = true;
15225 }
15226 }
15227 {
15228 PyThreadState* __tstate = wxPyBeginAllowThreads();
15229 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15230 wxPyEndAllowThreads(__tstate);
15231 if (PyErr_Occurred()) SWIG_fail;
15232 }
15233 {
15234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15235 }
15236 {
15237 if (temp2)
15238 delete arg2;
15239 }
15240 return resultobj;
15241 fail:
15242 {
15243 if (temp2)
15244 delete arg2;
15245 }
15246 return NULL;
15247 }
15248
15249
15250 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15251 PyObject *resultobj = 0;
15252 PyObject *result = 0 ;
15253
15254 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15255 {
15256 PyThreadState* __tstate = wxPyBeginAllowThreads();
15257 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15258 wxPyEndAllowThreads(__tstate);
15259 if (PyErr_Occurred()) SWIG_fail;
15260 }
15261 resultobj = result;
15262 return resultobj;
15263 fail:
15264 return NULL;
15265 }
15266
15267
15268 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15269 PyObject *resultobj = 0;
15270 PyObject *result = 0 ;
15271
15272 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15273 {
15274 PyThreadState* __tstate = wxPyBeginAllowThreads();
15275 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15276 wxPyEndAllowThreads(__tstate);
15277 if (PyErr_Occurred()) SWIG_fail;
15278 }
15279 resultobj = result;
15280 return resultobj;
15281 fail:
15282 return NULL;
15283 }
15284
15285
15286 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15287 PyObject *resultobj = 0;
15288 wxString *arg1 = 0 ;
15289 bool result;
15290 bool temp1 = false ;
15291 PyObject * obj0 = 0 ;
15292 char * kwnames[] = {
15293 (char *) "str", NULL
15294 };
15295
15296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15297 {
15298 arg1 = wxString_in_helper(obj0);
15299 if (arg1 == NULL) SWIG_fail;
15300 temp1 = true;
15301 }
15302 {
15303 PyThreadState* __tstate = wxPyBeginAllowThreads();
15304 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15305 wxPyEndAllowThreads(__tstate);
15306 if (PyErr_Occurred()) SWIG_fail;
15307 }
15308 {
15309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15310 }
15311 {
15312 if (temp1)
15313 delete arg1;
15314 }
15315 return resultobj;
15316 fail:
15317 {
15318 if (temp1)
15319 delete arg1;
15320 }
15321 return NULL;
15322 }
15323
15324
15325 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15326 PyObject *obj;
15327 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15328 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15329 return SWIG_Py_Void();
15330 }
15331
15332 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15333 return SWIG_Python_InitShadowInstance(args);
15334 }
15335
15336 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15337 PyObject *resultobj = 0;
15338 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15339 int arg2 ;
15340 void *argp1 = 0 ;
15341 int res1 = 0 ;
15342 int val2 ;
15343 int ecode2 = 0 ;
15344 PyObject *swig_obj[2] ;
15345
15346 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15348 if (!SWIG_IsOK(res1)) {
15349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15350 }
15351 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15352 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15353 if (!SWIG_IsOK(ecode2)) {
15354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15355 }
15356 arg2 = static_cast< int >(val2);
15357 if (arg1) (arg1)->Language = arg2;
15358
15359 resultobj = SWIG_Py_Void();
15360 return resultobj;
15361 fail:
15362 return NULL;
15363 }
15364
15365
15366 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15367 PyObject *resultobj = 0;
15368 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15369 int result;
15370 void *argp1 = 0 ;
15371 int res1 = 0 ;
15372 PyObject *swig_obj[1] ;
15373
15374 if (!args) SWIG_fail;
15375 swig_obj[0] = args;
15376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15377 if (!SWIG_IsOK(res1)) {
15378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15379 }
15380 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15381 result = (int) ((arg1)->Language);
15382 resultobj = SWIG_From_int(static_cast< int >(result));
15383 return resultobj;
15384 fail:
15385 return NULL;
15386 }
15387
15388
15389 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15390 PyObject *resultobj = 0;
15391 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15392 wxString *arg2 = (wxString *) 0 ;
15393 void *argp1 = 0 ;
15394 int res1 = 0 ;
15395 bool temp2 = false ;
15396 PyObject *swig_obj[2] ;
15397
15398 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15400 if (!SWIG_IsOK(res1)) {
15401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15402 }
15403 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15404 {
15405 arg2 = wxString_in_helper(swig_obj[1]);
15406 if (arg2 == NULL) SWIG_fail;
15407 temp2 = true;
15408 }
15409 if (arg1) (arg1)->CanonicalName = *arg2;
15410
15411 resultobj = SWIG_Py_Void();
15412 {
15413 if (temp2)
15414 delete arg2;
15415 }
15416 return resultobj;
15417 fail:
15418 {
15419 if (temp2)
15420 delete arg2;
15421 }
15422 return NULL;
15423 }
15424
15425
15426 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15427 PyObject *resultobj = 0;
15428 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15429 wxString *result = 0 ;
15430 void *argp1 = 0 ;
15431 int res1 = 0 ;
15432 PyObject *swig_obj[1] ;
15433
15434 if (!args) SWIG_fail;
15435 swig_obj[0] = args;
15436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15437 if (!SWIG_IsOK(res1)) {
15438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15439 }
15440 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15441 result = (wxString *)& ((arg1)->CanonicalName);
15442 {
15443 #if wxUSE_UNICODE
15444 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15445 #else
15446 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15447 #endif
15448 }
15449 return resultobj;
15450 fail:
15451 return NULL;
15452 }
15453
15454
15455 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15456 PyObject *resultobj = 0;
15457 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15458 wxString *arg2 = (wxString *) 0 ;
15459 void *argp1 = 0 ;
15460 int res1 = 0 ;
15461 bool temp2 = false ;
15462 PyObject *swig_obj[2] ;
15463
15464 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15466 if (!SWIG_IsOK(res1)) {
15467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15468 }
15469 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15470 {
15471 arg2 = wxString_in_helper(swig_obj[1]);
15472 if (arg2 == NULL) SWIG_fail;
15473 temp2 = true;
15474 }
15475 if (arg1) (arg1)->Description = *arg2;
15476
15477 resultobj = SWIG_Py_Void();
15478 {
15479 if (temp2)
15480 delete arg2;
15481 }
15482 return resultobj;
15483 fail:
15484 {
15485 if (temp2)
15486 delete arg2;
15487 }
15488 return NULL;
15489 }
15490
15491
15492 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15493 PyObject *resultobj = 0;
15494 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15495 wxString *result = 0 ;
15496 void *argp1 = 0 ;
15497 int res1 = 0 ;
15498 PyObject *swig_obj[1] ;
15499
15500 if (!args) SWIG_fail;
15501 swig_obj[0] = args;
15502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15503 if (!SWIG_IsOK(res1)) {
15504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15505 }
15506 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15507 result = (wxString *)& ((arg1)->Description);
15508 {
15509 #if wxUSE_UNICODE
15510 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15511 #else
15512 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15513 #endif
15514 }
15515 return resultobj;
15516 fail:
15517 return NULL;
15518 }
15519
15520
15521 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15522 PyObject *obj;
15523 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15524 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15525 return SWIG_Py_Void();
15526 }
15527
15528 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15529 PyObject *resultobj = 0;
15530 int arg1 = (int) -1 ;
15531 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15532 wxLocale *result = 0 ;
15533 int val1 ;
15534 int ecode1 = 0 ;
15535 int val2 ;
15536 int ecode2 = 0 ;
15537 PyObject * obj0 = 0 ;
15538 PyObject * obj1 = 0 ;
15539 char * kwnames[] = {
15540 (char *) "language",(char *) "flags", NULL
15541 };
15542
15543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15544 if (obj0) {
15545 ecode1 = SWIG_AsVal_int(obj0, &val1);
15546 if (!SWIG_IsOK(ecode1)) {
15547 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15548 }
15549 arg1 = static_cast< int >(val1);
15550 }
15551 if (obj1) {
15552 ecode2 = SWIG_AsVal_int(obj1, &val2);
15553 if (!SWIG_IsOK(ecode2)) {
15554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15555 }
15556 arg2 = static_cast< int >(val2);
15557 }
15558 {
15559 PyThreadState* __tstate = wxPyBeginAllowThreads();
15560 result = (wxLocale *)new_wxLocale(arg1,arg2);
15561 wxPyEndAllowThreads(__tstate);
15562 if (PyErr_Occurred()) SWIG_fail;
15563 }
15564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15565 return resultobj;
15566 fail:
15567 return NULL;
15568 }
15569
15570
15571 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15572 PyObject *resultobj = 0;
15573 wxLocale *arg1 = (wxLocale *) 0 ;
15574 void *argp1 = 0 ;
15575 int res1 = 0 ;
15576 PyObject *swig_obj[1] ;
15577
15578 if (!args) SWIG_fail;
15579 swig_obj[0] = args;
15580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15581 if (!SWIG_IsOK(res1)) {
15582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15583 }
15584 arg1 = reinterpret_cast< wxLocale * >(argp1);
15585 {
15586 PyThreadState* __tstate = wxPyBeginAllowThreads();
15587 delete arg1;
15588
15589 wxPyEndAllowThreads(__tstate);
15590 if (PyErr_Occurred()) SWIG_fail;
15591 }
15592 resultobj = SWIG_Py_Void();
15593 return resultobj;
15594 fail:
15595 return NULL;
15596 }
15597
15598
15599 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15600 PyObject *resultobj = 0;
15601 wxLocale *arg1 = (wxLocale *) 0 ;
15602 wxString *arg2 = 0 ;
15603 wxString const &arg3_defvalue = wxPyEmptyString ;
15604 wxString *arg3 = (wxString *) &arg3_defvalue ;
15605 wxString const &arg4_defvalue = wxPyEmptyString ;
15606 wxString *arg4 = (wxString *) &arg4_defvalue ;
15607 bool arg5 = (bool) true ;
15608 bool arg6 = (bool) false ;
15609 bool result;
15610 void *argp1 = 0 ;
15611 int res1 = 0 ;
15612 bool temp2 = false ;
15613 bool temp3 = false ;
15614 bool temp4 = false ;
15615 bool val5 ;
15616 int ecode5 = 0 ;
15617 bool val6 ;
15618 int ecode6 = 0 ;
15619 PyObject * obj0 = 0 ;
15620 PyObject * obj1 = 0 ;
15621 PyObject * obj2 = 0 ;
15622 PyObject * obj3 = 0 ;
15623 PyObject * obj4 = 0 ;
15624 PyObject * obj5 = 0 ;
15625 char * kwnames[] = {
15626 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15627 };
15628
15629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15631 if (!SWIG_IsOK(res1)) {
15632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15633 }
15634 arg1 = reinterpret_cast< wxLocale * >(argp1);
15635 {
15636 arg2 = wxString_in_helper(obj1);
15637 if (arg2 == NULL) SWIG_fail;
15638 temp2 = true;
15639 }
15640 if (obj2) {
15641 {
15642 arg3 = wxString_in_helper(obj2);
15643 if (arg3 == NULL) SWIG_fail;
15644 temp3 = true;
15645 }
15646 }
15647 if (obj3) {
15648 {
15649 arg4 = wxString_in_helper(obj3);
15650 if (arg4 == NULL) SWIG_fail;
15651 temp4 = true;
15652 }
15653 }
15654 if (obj4) {
15655 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15656 if (!SWIG_IsOK(ecode5)) {
15657 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15658 }
15659 arg5 = static_cast< bool >(val5);
15660 }
15661 if (obj5) {
15662 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15663 if (!SWIG_IsOK(ecode6)) {
15664 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15665 }
15666 arg6 = static_cast< bool >(val6);
15667 }
15668 {
15669 PyThreadState* __tstate = wxPyBeginAllowThreads();
15670 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15671 wxPyEndAllowThreads(__tstate);
15672 if (PyErr_Occurred()) SWIG_fail;
15673 }
15674 {
15675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15676 }
15677 {
15678 if (temp2)
15679 delete arg2;
15680 }
15681 {
15682 if (temp3)
15683 delete arg3;
15684 }
15685 {
15686 if (temp4)
15687 delete arg4;
15688 }
15689 return resultobj;
15690 fail:
15691 {
15692 if (temp2)
15693 delete arg2;
15694 }
15695 {
15696 if (temp3)
15697 delete arg3;
15698 }
15699 {
15700 if (temp4)
15701 delete arg4;
15702 }
15703 return NULL;
15704 }
15705
15706
15707 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15708 PyObject *resultobj = 0;
15709 wxLocale *arg1 = (wxLocale *) 0 ;
15710 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15711 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15712 bool result;
15713 void *argp1 = 0 ;
15714 int res1 = 0 ;
15715 int val2 ;
15716 int ecode2 = 0 ;
15717 int val3 ;
15718 int ecode3 = 0 ;
15719 PyObject * obj0 = 0 ;
15720 PyObject * obj1 = 0 ;
15721 PyObject * obj2 = 0 ;
15722 char * kwnames[] = {
15723 (char *) "self",(char *) "language",(char *) "flags", NULL
15724 };
15725
15726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15728 if (!SWIG_IsOK(res1)) {
15729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15730 }
15731 arg1 = reinterpret_cast< wxLocale * >(argp1);
15732 if (obj1) {
15733 ecode2 = SWIG_AsVal_int(obj1, &val2);
15734 if (!SWIG_IsOK(ecode2)) {
15735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15736 }
15737 arg2 = static_cast< int >(val2);
15738 }
15739 if (obj2) {
15740 ecode3 = SWIG_AsVal_int(obj2, &val3);
15741 if (!SWIG_IsOK(ecode3)) {
15742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15743 }
15744 arg3 = static_cast< int >(val3);
15745 }
15746 {
15747 PyThreadState* __tstate = wxPyBeginAllowThreads();
15748 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15749 wxPyEndAllowThreads(__tstate);
15750 if (PyErr_Occurred()) SWIG_fail;
15751 }
15752 {
15753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15754 }
15755 return resultobj;
15756 fail:
15757 return NULL;
15758 }
15759
15760
15761 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15762 PyObject *resultobj = 0;
15763 int result;
15764
15765 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15766 {
15767 PyThreadState* __tstate = wxPyBeginAllowThreads();
15768 result = (int)wxLocale::GetSystemLanguage();
15769 wxPyEndAllowThreads(__tstate);
15770 if (PyErr_Occurred()) SWIG_fail;
15771 }
15772 resultobj = SWIG_From_int(static_cast< int >(result));
15773 return resultobj;
15774 fail:
15775 return NULL;
15776 }
15777
15778
15779 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15780 PyObject *resultobj = 0;
15781 wxFontEncoding result;
15782
15783 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15784 {
15785 PyThreadState* __tstate = wxPyBeginAllowThreads();
15786 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15787 wxPyEndAllowThreads(__tstate);
15788 if (PyErr_Occurred()) SWIG_fail;
15789 }
15790 resultobj = SWIG_From_int(static_cast< int >(result));
15791 return resultobj;
15792 fail:
15793 return NULL;
15794 }
15795
15796
15797 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15798 PyObject *resultobj = 0;
15799 wxString result;
15800
15801 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15802 {
15803 PyThreadState* __tstate = wxPyBeginAllowThreads();
15804 result = wxLocale::GetSystemEncodingName();
15805 wxPyEndAllowThreads(__tstate);
15806 if (PyErr_Occurred()) SWIG_fail;
15807 }
15808 {
15809 #if wxUSE_UNICODE
15810 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15811 #else
15812 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15813 #endif
15814 }
15815 return resultobj;
15816 fail:
15817 return NULL;
15818 }
15819
15820
15821 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15822 PyObject *resultobj = 0;
15823 wxLocale *arg1 = (wxLocale *) 0 ;
15824 bool result;
15825 void *argp1 = 0 ;
15826 int res1 = 0 ;
15827 PyObject *swig_obj[1] ;
15828
15829 if (!args) SWIG_fail;
15830 swig_obj[0] = args;
15831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15832 if (!SWIG_IsOK(res1)) {
15833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15834 }
15835 arg1 = reinterpret_cast< wxLocale * >(argp1);
15836 {
15837 PyThreadState* __tstate = wxPyBeginAllowThreads();
15838 result = (bool)((wxLocale const *)arg1)->IsOk();
15839 wxPyEndAllowThreads(__tstate);
15840 if (PyErr_Occurred()) SWIG_fail;
15841 }
15842 {
15843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15844 }
15845 return resultobj;
15846 fail:
15847 return NULL;
15848 }
15849
15850
15851 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15852 PyObject *resultobj = 0;
15853 wxLocale *arg1 = (wxLocale *) 0 ;
15854 wxString result;
15855 void *argp1 = 0 ;
15856 int res1 = 0 ;
15857 PyObject *swig_obj[1] ;
15858
15859 if (!args) SWIG_fail;
15860 swig_obj[0] = args;
15861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15862 if (!SWIG_IsOK(res1)) {
15863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15864 }
15865 arg1 = reinterpret_cast< wxLocale * >(argp1);
15866 {
15867 PyThreadState* __tstate = wxPyBeginAllowThreads();
15868 result = ((wxLocale const *)arg1)->GetLocale();
15869 wxPyEndAllowThreads(__tstate);
15870 if (PyErr_Occurred()) SWIG_fail;
15871 }
15872 {
15873 #if wxUSE_UNICODE
15874 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15875 #else
15876 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15877 #endif
15878 }
15879 return resultobj;
15880 fail:
15881 return NULL;
15882 }
15883
15884
15885 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15886 PyObject *resultobj = 0;
15887 wxLocale *arg1 = (wxLocale *) 0 ;
15888 int result;
15889 void *argp1 = 0 ;
15890 int res1 = 0 ;
15891 PyObject *swig_obj[1] ;
15892
15893 if (!args) SWIG_fail;
15894 swig_obj[0] = args;
15895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15896 if (!SWIG_IsOK(res1)) {
15897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15898 }
15899 arg1 = reinterpret_cast< wxLocale * >(argp1);
15900 {
15901 PyThreadState* __tstate = wxPyBeginAllowThreads();
15902 result = (int)((wxLocale const *)arg1)->GetLanguage();
15903 wxPyEndAllowThreads(__tstate);
15904 if (PyErr_Occurred()) SWIG_fail;
15905 }
15906 resultobj = SWIG_From_int(static_cast< int >(result));
15907 return resultobj;
15908 fail:
15909 return NULL;
15910 }
15911
15912
15913 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15914 PyObject *resultobj = 0;
15915 wxLocale *arg1 = (wxLocale *) 0 ;
15916 wxString result;
15917 void *argp1 = 0 ;
15918 int res1 = 0 ;
15919 PyObject *swig_obj[1] ;
15920
15921 if (!args) SWIG_fail;
15922 swig_obj[0] = args;
15923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15924 if (!SWIG_IsOK(res1)) {
15925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15926 }
15927 arg1 = reinterpret_cast< wxLocale * >(argp1);
15928 {
15929 PyThreadState* __tstate = wxPyBeginAllowThreads();
15930 result = ((wxLocale const *)arg1)->GetSysName();
15931 wxPyEndAllowThreads(__tstate);
15932 if (PyErr_Occurred()) SWIG_fail;
15933 }
15934 {
15935 #if wxUSE_UNICODE
15936 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15937 #else
15938 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15939 #endif
15940 }
15941 return resultobj;
15942 fail:
15943 return NULL;
15944 }
15945
15946
15947 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15948 PyObject *resultobj = 0;
15949 wxLocale *arg1 = (wxLocale *) 0 ;
15950 wxString result;
15951 void *argp1 = 0 ;
15952 int res1 = 0 ;
15953 PyObject *swig_obj[1] ;
15954
15955 if (!args) SWIG_fail;
15956 swig_obj[0] = args;
15957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15958 if (!SWIG_IsOK(res1)) {
15959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15960 }
15961 arg1 = reinterpret_cast< wxLocale * >(argp1);
15962 {
15963 PyThreadState* __tstate = wxPyBeginAllowThreads();
15964 result = ((wxLocale const *)arg1)->GetCanonicalName();
15965 wxPyEndAllowThreads(__tstate);
15966 if (PyErr_Occurred()) SWIG_fail;
15967 }
15968 {
15969 #if wxUSE_UNICODE
15970 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15971 #else
15972 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15973 #endif
15974 }
15975 return resultobj;
15976 fail:
15977 return NULL;
15978 }
15979
15980
15981 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15982 PyObject *resultobj = 0;
15983 wxString *arg1 = 0 ;
15984 bool temp1 = false ;
15985 PyObject * obj0 = 0 ;
15986 char * kwnames[] = {
15987 (char *) "prefix", NULL
15988 };
15989
15990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
15991 {
15992 arg1 = wxString_in_helper(obj0);
15993 if (arg1 == NULL) SWIG_fail;
15994 temp1 = true;
15995 }
15996 {
15997 PyThreadState* __tstate = wxPyBeginAllowThreads();
15998 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
15999 wxPyEndAllowThreads(__tstate);
16000 if (PyErr_Occurred()) SWIG_fail;
16001 }
16002 resultobj = SWIG_Py_Void();
16003 {
16004 if (temp1)
16005 delete arg1;
16006 }
16007 return resultobj;
16008 fail:
16009 {
16010 if (temp1)
16011 delete arg1;
16012 }
16013 return NULL;
16014 }
16015
16016
16017 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16018 PyObject *resultobj = 0;
16019 wxLocale *arg1 = (wxLocale *) 0 ;
16020 wxString *arg2 = 0 ;
16021 bool result;
16022 void *argp1 = 0 ;
16023 int res1 = 0 ;
16024 bool temp2 = false ;
16025 PyObject * obj0 = 0 ;
16026 PyObject * obj1 = 0 ;
16027 char * kwnames[] = {
16028 (char *) "self",(char *) "szDomain", NULL
16029 };
16030
16031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16033 if (!SWIG_IsOK(res1)) {
16034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16035 }
16036 arg1 = reinterpret_cast< wxLocale * >(argp1);
16037 {
16038 arg2 = wxString_in_helper(obj1);
16039 if (arg2 == NULL) SWIG_fail;
16040 temp2 = true;
16041 }
16042 {
16043 PyThreadState* __tstate = wxPyBeginAllowThreads();
16044 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16045 wxPyEndAllowThreads(__tstate);
16046 if (PyErr_Occurred()) SWIG_fail;
16047 }
16048 {
16049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16050 }
16051 {
16052 if (temp2)
16053 delete arg2;
16054 }
16055 return resultobj;
16056 fail:
16057 {
16058 if (temp2)
16059 delete arg2;
16060 }
16061 return NULL;
16062 }
16063
16064
16065 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16066 PyObject *resultobj = 0;
16067 int arg1 ;
16068 bool result;
16069 int val1 ;
16070 int ecode1 = 0 ;
16071 PyObject * obj0 = 0 ;
16072 char * kwnames[] = {
16073 (char *) "lang", NULL
16074 };
16075
16076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16077 ecode1 = SWIG_AsVal_int(obj0, &val1);
16078 if (!SWIG_IsOK(ecode1)) {
16079 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16080 }
16081 arg1 = static_cast< int >(val1);
16082 {
16083 PyThreadState* __tstate = wxPyBeginAllowThreads();
16084 result = (bool)wxLocale::IsAvailable(arg1);
16085 wxPyEndAllowThreads(__tstate);
16086 if (PyErr_Occurred()) SWIG_fail;
16087 }
16088 {
16089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16090 }
16091 return resultobj;
16092 fail:
16093 return NULL;
16094 }
16095
16096
16097 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16098 PyObject *resultobj = 0;
16099 wxLocale *arg1 = (wxLocale *) 0 ;
16100 wxString *arg2 = 0 ;
16101 bool result;
16102 void *argp1 = 0 ;
16103 int res1 = 0 ;
16104 bool temp2 = false ;
16105 PyObject * obj0 = 0 ;
16106 PyObject * obj1 = 0 ;
16107 char * kwnames[] = {
16108 (char *) "self",(char *) "szDomain", NULL
16109 };
16110
16111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16113 if (!SWIG_IsOK(res1)) {
16114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16115 }
16116 arg1 = reinterpret_cast< wxLocale * >(argp1);
16117 {
16118 arg2 = wxString_in_helper(obj1);
16119 if (arg2 == NULL) SWIG_fail;
16120 temp2 = true;
16121 }
16122 {
16123 PyThreadState* __tstate = wxPyBeginAllowThreads();
16124 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16125 wxPyEndAllowThreads(__tstate);
16126 if (PyErr_Occurred()) SWIG_fail;
16127 }
16128 {
16129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16130 }
16131 {
16132 if (temp2)
16133 delete arg2;
16134 }
16135 return resultobj;
16136 fail:
16137 {
16138 if (temp2)
16139 delete arg2;
16140 }
16141 return NULL;
16142 }
16143
16144
16145 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16146 PyObject *resultobj = 0;
16147 int arg1 ;
16148 wxLanguageInfo *result = 0 ;
16149 int val1 ;
16150 int ecode1 = 0 ;
16151 PyObject * obj0 = 0 ;
16152 char * kwnames[] = {
16153 (char *) "lang", NULL
16154 };
16155
16156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16157 ecode1 = SWIG_AsVal_int(obj0, &val1);
16158 if (!SWIG_IsOK(ecode1)) {
16159 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16160 }
16161 arg1 = static_cast< int >(val1);
16162 {
16163 PyThreadState* __tstate = wxPyBeginAllowThreads();
16164 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16165 wxPyEndAllowThreads(__tstate);
16166 if (PyErr_Occurred()) SWIG_fail;
16167 }
16168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16169 return resultobj;
16170 fail:
16171 return NULL;
16172 }
16173
16174
16175 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16176 PyObject *resultobj = 0;
16177 int arg1 ;
16178 wxString result;
16179 int val1 ;
16180 int ecode1 = 0 ;
16181 PyObject * obj0 = 0 ;
16182 char * kwnames[] = {
16183 (char *) "lang", NULL
16184 };
16185
16186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16187 ecode1 = SWIG_AsVal_int(obj0, &val1);
16188 if (!SWIG_IsOK(ecode1)) {
16189 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16190 }
16191 arg1 = static_cast< int >(val1);
16192 {
16193 PyThreadState* __tstate = wxPyBeginAllowThreads();
16194 result = wxLocale::GetLanguageName(arg1);
16195 wxPyEndAllowThreads(__tstate);
16196 if (PyErr_Occurred()) SWIG_fail;
16197 }
16198 {
16199 #if wxUSE_UNICODE
16200 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16201 #else
16202 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16203 #endif
16204 }
16205 return resultobj;
16206 fail:
16207 return NULL;
16208 }
16209
16210
16211 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16212 PyObject *resultobj = 0;
16213 wxString *arg1 = 0 ;
16214 wxLanguageInfo *result = 0 ;
16215 bool temp1 = false ;
16216 PyObject * obj0 = 0 ;
16217 char * kwnames[] = {
16218 (char *) "locale", NULL
16219 };
16220
16221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16222 {
16223 arg1 = wxString_in_helper(obj0);
16224 if (arg1 == NULL) SWIG_fail;
16225 temp1 = true;
16226 }
16227 {
16228 PyThreadState* __tstate = wxPyBeginAllowThreads();
16229 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16230 wxPyEndAllowThreads(__tstate);
16231 if (PyErr_Occurred()) SWIG_fail;
16232 }
16233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16234 {
16235 if (temp1)
16236 delete arg1;
16237 }
16238 return resultobj;
16239 fail:
16240 {
16241 if (temp1)
16242 delete arg1;
16243 }
16244 return NULL;
16245 }
16246
16247
16248 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16249 PyObject *resultobj = 0;
16250 wxLanguageInfo *arg1 = 0 ;
16251 void *argp1 = 0 ;
16252 int res1 = 0 ;
16253 PyObject * obj0 = 0 ;
16254 char * kwnames[] = {
16255 (char *) "info", NULL
16256 };
16257
16258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16259 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16260 if (!SWIG_IsOK(res1)) {
16261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16262 }
16263 if (!argp1) {
16264 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16265 }
16266 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16267 {
16268 PyThreadState* __tstate = wxPyBeginAllowThreads();
16269 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16270 wxPyEndAllowThreads(__tstate);
16271 if (PyErr_Occurred()) SWIG_fail;
16272 }
16273 resultobj = SWIG_Py_Void();
16274 return resultobj;
16275 fail:
16276 return NULL;
16277 }
16278
16279
16280 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16281 PyObject *resultobj = 0;
16282 wxLocale *arg1 = (wxLocale *) 0 ;
16283 wxString *arg2 = 0 ;
16284 wxString const &arg3_defvalue = wxPyEmptyString ;
16285 wxString *arg3 = (wxString *) &arg3_defvalue ;
16286 wxString result;
16287 void *argp1 = 0 ;
16288 int res1 = 0 ;
16289 bool temp2 = false ;
16290 bool temp3 = false ;
16291 PyObject * obj0 = 0 ;
16292 PyObject * obj1 = 0 ;
16293 PyObject * obj2 = 0 ;
16294 char * kwnames[] = {
16295 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16296 };
16297
16298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16300 if (!SWIG_IsOK(res1)) {
16301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16302 }
16303 arg1 = reinterpret_cast< wxLocale * >(argp1);
16304 {
16305 arg2 = wxString_in_helper(obj1);
16306 if (arg2 == NULL) SWIG_fail;
16307 temp2 = true;
16308 }
16309 if (obj2) {
16310 {
16311 arg3 = wxString_in_helper(obj2);
16312 if (arg3 == NULL) SWIG_fail;
16313 temp3 = true;
16314 }
16315 }
16316 {
16317 PyThreadState* __tstate = wxPyBeginAllowThreads();
16318 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16319 wxPyEndAllowThreads(__tstate);
16320 if (PyErr_Occurred()) SWIG_fail;
16321 }
16322 {
16323 #if wxUSE_UNICODE
16324 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16325 #else
16326 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16327 #endif
16328 }
16329 {
16330 if (temp2)
16331 delete arg2;
16332 }
16333 {
16334 if (temp3)
16335 delete arg3;
16336 }
16337 return resultobj;
16338 fail:
16339 {
16340 if (temp2)
16341 delete arg2;
16342 }
16343 {
16344 if (temp3)
16345 delete arg3;
16346 }
16347 return NULL;
16348 }
16349
16350
16351 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16352 PyObject *resultobj = 0;
16353 wxLocale *arg1 = (wxLocale *) 0 ;
16354 wxString *result = 0 ;
16355 void *argp1 = 0 ;
16356 int res1 = 0 ;
16357 PyObject *swig_obj[1] ;
16358
16359 if (!args) SWIG_fail;
16360 swig_obj[0] = args;
16361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16362 if (!SWIG_IsOK(res1)) {
16363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16364 }
16365 arg1 = reinterpret_cast< wxLocale * >(argp1);
16366 {
16367 PyThreadState* __tstate = wxPyBeginAllowThreads();
16368 {
16369 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16370 result = (wxString *) &_result_ref;
16371 }
16372 wxPyEndAllowThreads(__tstate);
16373 if (PyErr_Occurred()) SWIG_fail;
16374 }
16375 {
16376 #if wxUSE_UNICODE
16377 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16378 #else
16379 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16380 #endif
16381 }
16382 return resultobj;
16383 fail:
16384 return NULL;
16385 }
16386
16387
16388 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16389 PyObject *obj;
16390 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16391 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16392 return SWIG_Py_Void();
16393 }
16394
16395 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16396 return SWIG_Python_InitShadowInstance(args);
16397 }
16398
16399 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16400 PyObject *resultobj = 0;
16401 int arg1 = (int) -1 ;
16402 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16403 wxPyLocale *result = 0 ;
16404 int val1 ;
16405 int ecode1 = 0 ;
16406 int val2 ;
16407 int ecode2 = 0 ;
16408 PyObject * obj0 = 0 ;
16409 PyObject * obj1 = 0 ;
16410 char * kwnames[] = {
16411 (char *) "language",(char *) "flags", NULL
16412 };
16413
16414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16415 if (obj0) {
16416 ecode1 = SWIG_AsVal_int(obj0, &val1);
16417 if (!SWIG_IsOK(ecode1)) {
16418 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16419 }
16420 arg1 = static_cast< int >(val1);
16421 }
16422 if (obj1) {
16423 ecode2 = SWIG_AsVal_int(obj1, &val2);
16424 if (!SWIG_IsOK(ecode2)) {
16425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16426 }
16427 arg2 = static_cast< int >(val2);
16428 }
16429 {
16430 PyThreadState* __tstate = wxPyBeginAllowThreads();
16431 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16432 wxPyEndAllowThreads(__tstate);
16433 if (PyErr_Occurred()) SWIG_fail;
16434 }
16435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16436 return resultobj;
16437 fail:
16438 return NULL;
16439 }
16440
16441
16442 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16443 PyObject *resultobj = 0;
16444 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16445 void *argp1 = 0 ;
16446 int res1 = 0 ;
16447 PyObject *swig_obj[1] ;
16448
16449 if (!args) SWIG_fail;
16450 swig_obj[0] = args;
16451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16452 if (!SWIG_IsOK(res1)) {
16453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16454 }
16455 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16456 {
16457 PyThreadState* __tstate = wxPyBeginAllowThreads();
16458 delete arg1;
16459
16460 wxPyEndAllowThreads(__tstate);
16461 if (PyErr_Occurred()) SWIG_fail;
16462 }
16463 resultobj = SWIG_Py_Void();
16464 return resultobj;
16465 fail:
16466 return NULL;
16467 }
16468
16469
16470 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16471 PyObject *resultobj = 0;
16472 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16473 PyObject *arg2 = (PyObject *) 0 ;
16474 PyObject *arg3 = (PyObject *) 0 ;
16475 void *argp1 = 0 ;
16476 int res1 = 0 ;
16477 PyObject * obj0 = 0 ;
16478 PyObject * obj1 = 0 ;
16479 PyObject * obj2 = 0 ;
16480 char * kwnames[] = {
16481 (char *) "self",(char *) "self",(char *) "_class", NULL
16482 };
16483
16484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16486 if (!SWIG_IsOK(res1)) {
16487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16488 }
16489 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16490 arg2 = obj1;
16491 arg3 = obj2;
16492 {
16493 PyThreadState* __tstate = wxPyBeginAllowThreads();
16494 (arg1)->_setCallbackInfo(arg2,arg3);
16495 wxPyEndAllowThreads(__tstate);
16496 if (PyErr_Occurred()) SWIG_fail;
16497 }
16498 resultobj = SWIG_Py_Void();
16499 return resultobj;
16500 fail:
16501 return NULL;
16502 }
16503
16504
16505 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16506 PyObject *resultobj = 0;
16507 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16508 wxChar *arg2 = (wxChar *) 0 ;
16509 wxChar *arg3 = (wxChar *) NULL ;
16510 wxChar *result = 0 ;
16511 void *argp1 = 0 ;
16512 int res1 = 0 ;
16513 void *argp2 = 0 ;
16514 int res2 = 0 ;
16515 void *argp3 = 0 ;
16516 int res3 = 0 ;
16517 PyObject * obj0 = 0 ;
16518 PyObject * obj1 = 0 ;
16519 PyObject * obj2 = 0 ;
16520 char * kwnames[] = {
16521 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16522 };
16523
16524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16526 if (!SWIG_IsOK(res1)) {
16527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16528 }
16529 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16530 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16531 if (!SWIG_IsOK(res2)) {
16532 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16533 }
16534 arg2 = reinterpret_cast< wxChar * >(argp2);
16535 if (obj2) {
16536 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16537 if (!SWIG_IsOK(res3)) {
16538 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16539 }
16540 arg3 = reinterpret_cast< wxChar * >(argp3);
16541 }
16542 {
16543 PyThreadState* __tstate = wxPyBeginAllowThreads();
16544 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16545 wxPyEndAllowThreads(__tstate);
16546 if (PyErr_Occurred()) SWIG_fail;
16547 }
16548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16549 return resultobj;
16550 fail:
16551 return NULL;
16552 }
16553
16554
16555 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16556 PyObject *resultobj = 0;
16557 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16558 wxChar *arg2 = (wxChar *) 0 ;
16559 wxChar *arg3 = (wxChar *) 0 ;
16560 size_t arg4 ;
16561 wxChar *arg5 = (wxChar *) NULL ;
16562 wxChar *result = 0 ;
16563 void *argp1 = 0 ;
16564 int res1 = 0 ;
16565 void *argp2 = 0 ;
16566 int res2 = 0 ;
16567 void *argp3 = 0 ;
16568 int res3 = 0 ;
16569 size_t val4 ;
16570 int ecode4 = 0 ;
16571 void *argp5 = 0 ;
16572 int res5 = 0 ;
16573 PyObject * obj0 = 0 ;
16574 PyObject * obj1 = 0 ;
16575 PyObject * obj2 = 0 ;
16576 PyObject * obj3 = 0 ;
16577 PyObject * obj4 = 0 ;
16578 char * kwnames[] = {
16579 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16580 };
16581
16582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16584 if (!SWIG_IsOK(res1)) {
16585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16586 }
16587 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16588 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16589 if (!SWIG_IsOK(res2)) {
16590 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16591 }
16592 arg2 = reinterpret_cast< wxChar * >(argp2);
16593 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16594 if (!SWIG_IsOK(res3)) {
16595 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16596 }
16597 arg3 = reinterpret_cast< wxChar * >(argp3);
16598 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16599 if (!SWIG_IsOK(ecode4)) {
16600 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16601 }
16602 arg4 = static_cast< size_t >(val4);
16603 if (obj4) {
16604 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16605 if (!SWIG_IsOK(res5)) {
16606 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16607 }
16608 arg5 = reinterpret_cast< wxChar * >(argp5);
16609 }
16610 {
16611 PyThreadState* __tstate = wxPyBeginAllowThreads();
16612 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16613 wxPyEndAllowThreads(__tstate);
16614 if (PyErr_Occurred()) SWIG_fail;
16615 }
16616 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16617 return resultobj;
16618 fail:
16619 return NULL;
16620 }
16621
16622
16623 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16624 PyObject *obj;
16625 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16626 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16627 return SWIG_Py_Void();
16628 }
16629
16630 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16631 return SWIG_Python_InitShadowInstance(args);
16632 }
16633
16634 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16635 PyObject *resultobj = 0;
16636 wxLocale *result = 0 ;
16637
16638 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16639 {
16640 PyThreadState* __tstate = wxPyBeginAllowThreads();
16641 result = (wxLocale *)wxGetLocale();
16642 wxPyEndAllowThreads(__tstate);
16643 if (PyErr_Occurred()) SWIG_fail;
16644 }
16645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16646 return resultobj;
16647 fail:
16648 return NULL;
16649 }
16650
16651
16652 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16653 PyObject *resultobj = 0;
16654 wxString *arg1 = 0 ;
16655 wxString result;
16656 bool temp1 = false ;
16657
16658 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16659 {
16660 arg1 = wxString_in_helper(swig_obj[0]);
16661 if (arg1 == NULL) SWIG_fail;
16662 temp1 = true;
16663 }
16664 {
16665 PyThreadState* __tstate = wxPyBeginAllowThreads();
16666 result = wxGetTranslation((wxString const &)*arg1);
16667 wxPyEndAllowThreads(__tstate);
16668 if (PyErr_Occurred()) SWIG_fail;
16669 }
16670 {
16671 #if wxUSE_UNICODE
16672 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16673 #else
16674 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16675 #endif
16676 }
16677 {
16678 if (temp1)
16679 delete arg1;
16680 }
16681 return resultobj;
16682 fail:
16683 {
16684 if (temp1)
16685 delete arg1;
16686 }
16687 return NULL;
16688 }
16689
16690
16691 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16692 PyObject *resultobj = 0;
16693 wxString *arg1 = 0 ;
16694 wxString *arg2 = 0 ;
16695 wxString result;
16696 bool temp1 = false ;
16697 bool temp2 = false ;
16698
16699 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16700 {
16701 arg1 = wxString_in_helper(swig_obj[0]);
16702 if (arg1 == NULL) SWIG_fail;
16703 temp1 = true;
16704 }
16705 {
16706 arg2 = wxString_in_helper(swig_obj[1]);
16707 if (arg2 == NULL) SWIG_fail;
16708 temp2 = true;
16709 }
16710 {
16711 PyThreadState* __tstate = wxPyBeginAllowThreads();
16712 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16713 wxPyEndAllowThreads(__tstate);
16714 if (PyErr_Occurred()) SWIG_fail;
16715 }
16716 {
16717 #if wxUSE_UNICODE
16718 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16719 #else
16720 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16721 #endif
16722 }
16723 {
16724 if (temp1)
16725 delete arg1;
16726 }
16727 {
16728 if (temp2)
16729 delete arg2;
16730 }
16731 return resultobj;
16732 fail:
16733 {
16734 if (temp1)
16735 delete arg1;
16736 }
16737 {
16738 if (temp2)
16739 delete arg2;
16740 }
16741 return NULL;
16742 }
16743
16744
16745 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16746 PyObject *resultobj = 0;
16747 wxString *arg1 = 0 ;
16748 wxString *arg2 = 0 ;
16749 size_t arg3 ;
16750 wxString result;
16751 bool temp1 = false ;
16752 bool temp2 = false ;
16753 size_t val3 ;
16754 int ecode3 = 0 ;
16755
16756 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16757 {
16758 arg1 = wxString_in_helper(swig_obj[0]);
16759 if (arg1 == NULL) SWIG_fail;
16760 temp1 = true;
16761 }
16762 {
16763 arg2 = wxString_in_helper(swig_obj[1]);
16764 if (arg2 == NULL) SWIG_fail;
16765 temp2 = true;
16766 }
16767 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16768 if (!SWIG_IsOK(ecode3)) {
16769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16770 }
16771 arg3 = static_cast< size_t >(val3);
16772 {
16773 PyThreadState* __tstate = wxPyBeginAllowThreads();
16774 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16775 wxPyEndAllowThreads(__tstate);
16776 if (PyErr_Occurred()) SWIG_fail;
16777 }
16778 {
16779 #if wxUSE_UNICODE
16780 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16781 #else
16782 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16783 #endif
16784 }
16785 {
16786 if (temp1)
16787 delete arg1;
16788 }
16789 {
16790 if (temp2)
16791 delete arg2;
16792 }
16793 return resultobj;
16794 fail:
16795 {
16796 if (temp1)
16797 delete arg1;
16798 }
16799 {
16800 if (temp2)
16801 delete arg2;
16802 }
16803 return NULL;
16804 }
16805
16806
16807 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16808 PyObject *resultobj = 0;
16809 wxString *arg1 = 0 ;
16810 wxString *arg2 = 0 ;
16811 size_t arg3 ;
16812 wxString *arg4 = 0 ;
16813 wxString result;
16814 bool temp1 = false ;
16815 bool temp2 = false ;
16816 size_t val3 ;
16817 int ecode3 = 0 ;
16818 bool temp4 = false ;
16819
16820 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16821 {
16822 arg1 = wxString_in_helper(swig_obj[0]);
16823 if (arg1 == NULL) SWIG_fail;
16824 temp1 = true;
16825 }
16826 {
16827 arg2 = wxString_in_helper(swig_obj[1]);
16828 if (arg2 == NULL) SWIG_fail;
16829 temp2 = true;
16830 }
16831 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16832 if (!SWIG_IsOK(ecode3)) {
16833 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16834 }
16835 arg3 = static_cast< size_t >(val3);
16836 {
16837 arg4 = wxString_in_helper(swig_obj[3]);
16838 if (arg4 == NULL) SWIG_fail;
16839 temp4 = true;
16840 }
16841 {
16842 PyThreadState* __tstate = wxPyBeginAllowThreads();
16843 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16844 wxPyEndAllowThreads(__tstate);
16845 if (PyErr_Occurred()) SWIG_fail;
16846 }
16847 {
16848 #if wxUSE_UNICODE
16849 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16850 #else
16851 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16852 #endif
16853 }
16854 {
16855 if (temp1)
16856 delete arg1;
16857 }
16858 {
16859 if (temp2)
16860 delete arg2;
16861 }
16862 {
16863 if (temp4)
16864 delete arg4;
16865 }
16866 return resultobj;
16867 fail:
16868 {
16869 if (temp1)
16870 delete arg1;
16871 }
16872 {
16873 if (temp2)
16874 delete arg2;
16875 }
16876 {
16877 if (temp4)
16878 delete arg4;
16879 }
16880 return NULL;
16881 }
16882
16883
16884 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16885 int argc;
16886 PyObject *argv[5];
16887
16888 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
16889 --argc;
16890 if (argc == 1) {
16891 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16892 }
16893 if (argc == 2) {
16894 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16895 }
16896 if (argc == 3) {
16897 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16898 }
16899 if (argc == 4) {
16900 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16901 }
16902
16903 fail:
16904 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16905 return NULL;
16906 }
16907
16908
16909 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16910 PyObject *resultobj = 0;
16911 wxEncodingConverter *result = 0 ;
16912
16913 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16914 {
16915 PyThreadState* __tstate = wxPyBeginAllowThreads();
16916 result = (wxEncodingConverter *)new wxEncodingConverter();
16917 wxPyEndAllowThreads(__tstate);
16918 if (PyErr_Occurred()) SWIG_fail;
16919 }
16920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16921 return resultobj;
16922 fail:
16923 return NULL;
16924 }
16925
16926
16927 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16928 PyObject *resultobj = 0;
16929 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16930 void *argp1 = 0 ;
16931 int res1 = 0 ;
16932 PyObject *swig_obj[1] ;
16933
16934 if (!args) SWIG_fail;
16935 swig_obj[0] = args;
16936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16937 if (!SWIG_IsOK(res1)) {
16938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16939 }
16940 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16941 {
16942 PyThreadState* __tstate = wxPyBeginAllowThreads();
16943 delete arg1;
16944
16945 wxPyEndAllowThreads(__tstate);
16946 if (PyErr_Occurred()) SWIG_fail;
16947 }
16948 resultobj = SWIG_Py_Void();
16949 return resultobj;
16950 fail:
16951 return NULL;
16952 }
16953
16954
16955 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16956 PyObject *resultobj = 0;
16957 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16958 wxFontEncoding arg2 ;
16959 wxFontEncoding arg3 ;
16960 int arg4 = (int) wxCONVERT_STRICT ;
16961 bool result;
16962 void *argp1 = 0 ;
16963 int res1 = 0 ;
16964 int val2 ;
16965 int ecode2 = 0 ;
16966 int val3 ;
16967 int ecode3 = 0 ;
16968 int val4 ;
16969 int ecode4 = 0 ;
16970 PyObject * obj0 = 0 ;
16971 PyObject * obj1 = 0 ;
16972 PyObject * obj2 = 0 ;
16973 PyObject * obj3 = 0 ;
16974 char * kwnames[] = {
16975 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16976 };
16977
16978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16980 if (!SWIG_IsOK(res1)) {
16981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16982 }
16983 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16984 ecode2 = SWIG_AsVal_int(obj1, &val2);
16985 if (!SWIG_IsOK(ecode2)) {
16986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16987 }
16988 arg2 = static_cast< wxFontEncoding >(val2);
16989 ecode3 = SWIG_AsVal_int(obj2, &val3);
16990 if (!SWIG_IsOK(ecode3)) {
16991 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
16992 }
16993 arg3 = static_cast< wxFontEncoding >(val3);
16994 if (obj3) {
16995 ecode4 = SWIG_AsVal_int(obj3, &val4);
16996 if (!SWIG_IsOK(ecode4)) {
16997 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
16998 }
16999 arg4 = static_cast< int >(val4);
17000 }
17001 {
17002 PyThreadState* __tstate = wxPyBeginAllowThreads();
17003 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17004 wxPyEndAllowThreads(__tstate);
17005 if (PyErr_Occurred()) SWIG_fail;
17006 }
17007 {
17008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17009 }
17010 return resultobj;
17011 fail:
17012 return NULL;
17013 }
17014
17015
17016 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17017 PyObject *resultobj = 0;
17018 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17019 wxString *arg2 = 0 ;
17020 wxString result;
17021 void *argp1 = 0 ;
17022 int res1 = 0 ;
17023 bool temp2 = false ;
17024 PyObject * obj0 = 0 ;
17025 PyObject * obj1 = 0 ;
17026 char * kwnames[] = {
17027 (char *) "self",(char *) "input", NULL
17028 };
17029
17030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17032 if (!SWIG_IsOK(res1)) {
17033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17034 }
17035 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17036 {
17037 arg2 = wxString_in_helper(obj1);
17038 if (arg2 == NULL) SWIG_fail;
17039 temp2 = true;
17040 }
17041 {
17042 PyThreadState* __tstate = wxPyBeginAllowThreads();
17043 result = (arg1)->Convert((wxString const &)*arg2);
17044 wxPyEndAllowThreads(__tstate);
17045 if (PyErr_Occurred()) SWIG_fail;
17046 }
17047 {
17048 #if wxUSE_UNICODE
17049 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17050 #else
17051 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17052 #endif
17053 }
17054 {
17055 if (temp2)
17056 delete arg2;
17057 }
17058 return resultobj;
17059 fail:
17060 {
17061 if (temp2)
17062 delete arg2;
17063 }
17064 return NULL;
17065 }
17066
17067
17068 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17069 PyObject *resultobj = 0;
17070 wxFontEncoding arg1 ;
17071 int arg2 = (int) wxPLATFORM_CURRENT ;
17072 wxFontEncodingArray result;
17073 int val1 ;
17074 int ecode1 = 0 ;
17075 int val2 ;
17076 int ecode2 = 0 ;
17077 PyObject * obj0 = 0 ;
17078 PyObject * obj1 = 0 ;
17079 char * kwnames[] = {
17080 (char *) "enc",(char *) "platform", NULL
17081 };
17082
17083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17084 ecode1 = SWIG_AsVal_int(obj0, &val1);
17085 if (!SWIG_IsOK(ecode1)) {
17086 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17087 }
17088 arg1 = static_cast< wxFontEncoding >(val1);
17089 if (obj1) {
17090 ecode2 = SWIG_AsVal_int(obj1, &val2);
17091 if (!SWIG_IsOK(ecode2)) {
17092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17093 }
17094 arg2 = static_cast< int >(val2);
17095 }
17096 {
17097 PyThreadState* __tstate = wxPyBeginAllowThreads();
17098 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17099 wxPyEndAllowThreads(__tstate);
17100 if (PyErr_Occurred()) SWIG_fail;
17101 }
17102 {
17103 resultobj = PyList_New(0);
17104 for (size_t i=0; i < (&result)->GetCount(); i++) {
17105 PyObject* number = PyInt_FromLong((&result)->Item(i));
17106 PyList_Append(resultobj, number);
17107 Py_DECREF(number);
17108 }
17109 }
17110 return resultobj;
17111 fail:
17112 return NULL;
17113 }
17114
17115
17116 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17117 PyObject *resultobj = 0;
17118 wxFontEncoding arg1 ;
17119 wxFontEncodingArray result;
17120 int val1 ;
17121 int ecode1 = 0 ;
17122 PyObject * obj0 = 0 ;
17123 char * kwnames[] = {
17124 (char *) "enc", NULL
17125 };
17126
17127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17128 ecode1 = SWIG_AsVal_int(obj0, &val1);
17129 if (!SWIG_IsOK(ecode1)) {
17130 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17131 }
17132 arg1 = static_cast< wxFontEncoding >(val1);
17133 {
17134 PyThreadState* __tstate = wxPyBeginAllowThreads();
17135 result = wxEncodingConverter::GetAllEquivalents(arg1);
17136 wxPyEndAllowThreads(__tstate);
17137 if (PyErr_Occurred()) SWIG_fail;
17138 }
17139 {
17140 resultobj = PyList_New(0);
17141 for (size_t i=0; i < (&result)->GetCount(); i++) {
17142 PyObject* number = PyInt_FromLong((&result)->Item(i));
17143 PyList_Append(resultobj, number);
17144 Py_DECREF(number);
17145 }
17146 }
17147 return resultobj;
17148 fail:
17149 return NULL;
17150 }
17151
17152
17153 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17154 PyObject *resultobj = 0;
17155 wxFontEncoding arg1 ;
17156 wxFontEncoding arg2 ;
17157 bool result;
17158 int val1 ;
17159 int ecode1 = 0 ;
17160 int val2 ;
17161 int ecode2 = 0 ;
17162 PyObject * obj0 = 0 ;
17163 PyObject * obj1 = 0 ;
17164 char * kwnames[] = {
17165 (char *) "encIn",(char *) "encOut", NULL
17166 };
17167
17168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17169 ecode1 = SWIG_AsVal_int(obj0, &val1);
17170 if (!SWIG_IsOK(ecode1)) {
17171 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17172 }
17173 arg1 = static_cast< wxFontEncoding >(val1);
17174 ecode2 = SWIG_AsVal_int(obj1, &val2);
17175 if (!SWIG_IsOK(ecode2)) {
17176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17177 }
17178 arg2 = static_cast< wxFontEncoding >(val2);
17179 {
17180 PyThreadState* __tstate = wxPyBeginAllowThreads();
17181 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17182 wxPyEndAllowThreads(__tstate);
17183 if (PyErr_Occurred()) SWIG_fail;
17184 }
17185 {
17186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17187 }
17188 return resultobj;
17189 fail:
17190 return NULL;
17191 }
17192
17193
17194 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17195 PyObject *obj;
17196 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17197 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17198 return SWIG_Py_Void();
17199 }
17200
17201 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17202 return SWIG_Python_InitShadowInstance(args);
17203 }
17204
17205 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17206 PyObject *resultobj = 0;
17207 wxDC *arg1 = (wxDC *) 0 ;
17208 void *argp1 = 0 ;
17209 int res1 = 0 ;
17210 PyObject *swig_obj[1] ;
17211
17212 if (!args) SWIG_fail;
17213 swig_obj[0] = args;
17214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17215 if (!SWIG_IsOK(res1)) {
17216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17217 }
17218 arg1 = reinterpret_cast< wxDC * >(argp1);
17219 {
17220 PyThreadState* __tstate = wxPyBeginAllowThreads();
17221 delete arg1;
17222
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_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17234 PyObject *resultobj = 0;
17235 wxDC *arg1 = (wxDC *) 0 ;
17236 int arg2 ;
17237 int arg3 ;
17238 wxColour *arg4 = 0 ;
17239 int arg5 = (int) wxFLOOD_SURFACE ;
17240 bool result;
17241 void *argp1 = 0 ;
17242 int res1 = 0 ;
17243 int val2 ;
17244 int ecode2 = 0 ;
17245 int val3 ;
17246 int ecode3 = 0 ;
17247 wxColour temp4 ;
17248 int val5 ;
17249 int ecode5 = 0 ;
17250 PyObject * obj0 = 0 ;
17251 PyObject * obj1 = 0 ;
17252 PyObject * obj2 = 0 ;
17253 PyObject * obj3 = 0 ;
17254 PyObject * obj4 = 0 ;
17255 char * kwnames[] = {
17256 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17257 };
17258
17259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17261 if (!SWIG_IsOK(res1)) {
17262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17263 }
17264 arg1 = reinterpret_cast< wxDC * >(argp1);
17265 ecode2 = SWIG_AsVal_int(obj1, &val2);
17266 if (!SWIG_IsOK(ecode2)) {
17267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17268 }
17269 arg2 = static_cast< int >(val2);
17270 ecode3 = SWIG_AsVal_int(obj2, &val3);
17271 if (!SWIG_IsOK(ecode3)) {
17272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17273 }
17274 arg3 = static_cast< int >(val3);
17275 {
17276 arg4 = &temp4;
17277 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17278 }
17279 if (obj4) {
17280 ecode5 = SWIG_AsVal_int(obj4, &val5);
17281 if (!SWIG_IsOK(ecode5)) {
17282 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17283 }
17284 arg5 = static_cast< int >(val5);
17285 }
17286 {
17287 PyThreadState* __tstate = wxPyBeginAllowThreads();
17288 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17289 wxPyEndAllowThreads(__tstate);
17290 if (PyErr_Occurred()) SWIG_fail;
17291 }
17292 {
17293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17294 }
17295 return resultobj;
17296 fail:
17297 return NULL;
17298 }
17299
17300
17301 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17302 PyObject *resultobj = 0;
17303 wxDC *arg1 = (wxDC *) 0 ;
17304 wxPoint *arg2 = 0 ;
17305 wxColour *arg3 = 0 ;
17306 int arg4 = (int) wxFLOOD_SURFACE ;
17307 bool result;
17308 void *argp1 = 0 ;
17309 int res1 = 0 ;
17310 wxPoint temp2 ;
17311 wxColour temp3 ;
17312 int val4 ;
17313 int ecode4 = 0 ;
17314 PyObject * obj0 = 0 ;
17315 PyObject * obj1 = 0 ;
17316 PyObject * obj2 = 0 ;
17317 PyObject * obj3 = 0 ;
17318 char * kwnames[] = {
17319 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17320 };
17321
17322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17324 if (!SWIG_IsOK(res1)) {
17325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17326 }
17327 arg1 = reinterpret_cast< wxDC * >(argp1);
17328 {
17329 arg2 = &temp2;
17330 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17331 }
17332 {
17333 arg3 = &temp3;
17334 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17335 }
17336 if (obj3) {
17337 ecode4 = SWIG_AsVal_int(obj3, &val4);
17338 if (!SWIG_IsOK(ecode4)) {
17339 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17340 }
17341 arg4 = static_cast< int >(val4);
17342 }
17343 {
17344 PyThreadState* __tstate = wxPyBeginAllowThreads();
17345 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17346 wxPyEndAllowThreads(__tstate);
17347 if (PyErr_Occurred()) SWIG_fail;
17348 }
17349 {
17350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17351 }
17352 return resultobj;
17353 fail:
17354 return NULL;
17355 }
17356
17357
17358 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17359 PyObject *resultobj = 0;
17360 wxDC *arg1 = (wxDC *) 0 ;
17361 wxRect *arg2 = 0 ;
17362 wxColour *arg3 = 0 ;
17363 wxColour *arg4 = 0 ;
17364 wxPoint *arg5 = 0 ;
17365 void *argp1 = 0 ;
17366 int res1 = 0 ;
17367 wxRect temp2 ;
17368 wxColour temp3 ;
17369 wxColour temp4 ;
17370 wxPoint temp5 ;
17371 PyObject * obj0 = 0 ;
17372 PyObject * obj1 = 0 ;
17373 PyObject * obj2 = 0 ;
17374 PyObject * obj3 = 0 ;
17375 PyObject * obj4 = 0 ;
17376 char * kwnames[] = {
17377 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17378 };
17379
17380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17382 if (!SWIG_IsOK(res1)) {
17383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17384 }
17385 arg1 = reinterpret_cast< wxDC * >(argp1);
17386 {
17387 arg2 = &temp2;
17388 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17389 }
17390 {
17391 arg3 = &temp3;
17392 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17393 }
17394 {
17395 arg4 = &temp4;
17396 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17397 }
17398 {
17399 arg5 = &temp5;
17400 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17401 }
17402 {
17403 PyThreadState* __tstate = wxPyBeginAllowThreads();
17404 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17405 wxPyEndAllowThreads(__tstate);
17406 if (PyErr_Occurred()) SWIG_fail;
17407 }
17408 resultobj = SWIG_Py_Void();
17409 return resultobj;
17410 fail:
17411 return NULL;
17412 }
17413
17414
17415 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17416 PyObject *resultobj = 0;
17417 wxDC *arg1 = (wxDC *) 0 ;
17418 wxRect *arg2 = 0 ;
17419 wxColour *arg3 = 0 ;
17420 wxColour *arg4 = 0 ;
17421 wxDirection arg5 = (wxDirection) wxEAST ;
17422 void *argp1 = 0 ;
17423 int res1 = 0 ;
17424 wxRect temp2 ;
17425 wxColour temp3 ;
17426 wxColour temp4 ;
17427 int val5 ;
17428 int ecode5 = 0 ;
17429 PyObject * obj0 = 0 ;
17430 PyObject * obj1 = 0 ;
17431 PyObject * obj2 = 0 ;
17432 PyObject * obj3 = 0 ;
17433 PyObject * obj4 = 0 ;
17434 char * kwnames[] = {
17435 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17436 };
17437
17438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17440 if (!SWIG_IsOK(res1)) {
17441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17442 }
17443 arg1 = reinterpret_cast< wxDC * >(argp1);
17444 {
17445 arg2 = &temp2;
17446 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17447 }
17448 {
17449 arg3 = &temp3;
17450 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17451 }
17452 {
17453 arg4 = &temp4;
17454 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17455 }
17456 if (obj4) {
17457 ecode5 = SWIG_AsVal_int(obj4, &val5);
17458 if (!SWIG_IsOK(ecode5)) {
17459 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17460 }
17461 arg5 = static_cast< wxDirection >(val5);
17462 }
17463 {
17464 PyThreadState* __tstate = wxPyBeginAllowThreads();
17465 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17466 wxPyEndAllowThreads(__tstate);
17467 if (PyErr_Occurred()) SWIG_fail;
17468 }
17469 resultobj = SWIG_Py_Void();
17470 return resultobj;
17471 fail:
17472 return NULL;
17473 }
17474
17475
17476 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17477 PyObject *resultobj = 0;
17478 wxDC *arg1 = (wxDC *) 0 ;
17479 int arg2 ;
17480 int arg3 ;
17481 wxColour result;
17482 void *argp1 = 0 ;
17483 int res1 = 0 ;
17484 int val2 ;
17485 int ecode2 = 0 ;
17486 int val3 ;
17487 int ecode3 = 0 ;
17488 PyObject * obj0 = 0 ;
17489 PyObject * obj1 = 0 ;
17490 PyObject * obj2 = 0 ;
17491 char * kwnames[] = {
17492 (char *) "self",(char *) "x",(char *) "y", NULL
17493 };
17494
17495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17497 if (!SWIG_IsOK(res1)) {
17498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17499 }
17500 arg1 = reinterpret_cast< wxDC * >(argp1);
17501 ecode2 = SWIG_AsVal_int(obj1, &val2);
17502 if (!SWIG_IsOK(ecode2)) {
17503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17504 }
17505 arg2 = static_cast< int >(val2);
17506 ecode3 = SWIG_AsVal_int(obj2, &val3);
17507 if (!SWIG_IsOK(ecode3)) {
17508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17509 }
17510 arg3 = static_cast< int >(val3);
17511 {
17512 PyThreadState* __tstate = wxPyBeginAllowThreads();
17513 result = wxDC_GetPixel(arg1,arg2,arg3);
17514 wxPyEndAllowThreads(__tstate);
17515 if (PyErr_Occurred()) SWIG_fail;
17516 }
17517 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17518 return resultobj;
17519 fail:
17520 return NULL;
17521 }
17522
17523
17524 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17525 PyObject *resultobj = 0;
17526 wxDC *arg1 = (wxDC *) 0 ;
17527 wxPoint *arg2 = 0 ;
17528 wxColour result;
17529 void *argp1 = 0 ;
17530 int res1 = 0 ;
17531 wxPoint temp2 ;
17532 PyObject * obj0 = 0 ;
17533 PyObject * obj1 = 0 ;
17534 char * kwnames[] = {
17535 (char *) "self",(char *) "pt", NULL
17536 };
17537
17538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17540 if (!SWIG_IsOK(res1)) {
17541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17542 }
17543 arg1 = reinterpret_cast< wxDC * >(argp1);
17544 {
17545 arg2 = &temp2;
17546 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17547 }
17548 {
17549 PyThreadState* __tstate = wxPyBeginAllowThreads();
17550 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17551 wxPyEndAllowThreads(__tstate);
17552 if (PyErr_Occurred()) SWIG_fail;
17553 }
17554 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17555 return resultobj;
17556 fail:
17557 return NULL;
17558 }
17559
17560
17561 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17562 PyObject *resultobj = 0;
17563 wxDC *arg1 = (wxDC *) 0 ;
17564 int arg2 ;
17565 int arg3 ;
17566 int arg4 ;
17567 int arg5 ;
17568 void *argp1 = 0 ;
17569 int res1 = 0 ;
17570 int val2 ;
17571 int ecode2 = 0 ;
17572 int val3 ;
17573 int ecode3 = 0 ;
17574 int val4 ;
17575 int ecode4 = 0 ;
17576 int val5 ;
17577 int ecode5 = 0 ;
17578 PyObject * obj0 = 0 ;
17579 PyObject * obj1 = 0 ;
17580 PyObject * obj2 = 0 ;
17581 PyObject * obj3 = 0 ;
17582 PyObject * obj4 = 0 ;
17583 char * kwnames[] = {
17584 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17585 };
17586
17587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17589 if (!SWIG_IsOK(res1)) {
17590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17591 }
17592 arg1 = reinterpret_cast< wxDC * >(argp1);
17593 ecode2 = SWIG_AsVal_int(obj1, &val2);
17594 if (!SWIG_IsOK(ecode2)) {
17595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17596 }
17597 arg2 = static_cast< int >(val2);
17598 ecode3 = SWIG_AsVal_int(obj2, &val3);
17599 if (!SWIG_IsOK(ecode3)) {
17600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17601 }
17602 arg3 = static_cast< int >(val3);
17603 ecode4 = SWIG_AsVal_int(obj3, &val4);
17604 if (!SWIG_IsOK(ecode4)) {
17605 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17606 }
17607 arg4 = static_cast< int >(val4);
17608 ecode5 = SWIG_AsVal_int(obj4, &val5);
17609 if (!SWIG_IsOK(ecode5)) {
17610 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17611 }
17612 arg5 = static_cast< int >(val5);
17613 {
17614 PyThreadState* __tstate = wxPyBeginAllowThreads();
17615 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17616 wxPyEndAllowThreads(__tstate);
17617 if (PyErr_Occurred()) SWIG_fail;
17618 }
17619 resultobj = SWIG_Py_Void();
17620 return resultobj;
17621 fail:
17622 return NULL;
17623 }
17624
17625
17626 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17627 PyObject *resultobj = 0;
17628 wxDC *arg1 = (wxDC *) 0 ;
17629 wxPoint *arg2 = 0 ;
17630 wxPoint *arg3 = 0 ;
17631 void *argp1 = 0 ;
17632 int res1 = 0 ;
17633 wxPoint temp2 ;
17634 wxPoint temp3 ;
17635 PyObject * obj0 = 0 ;
17636 PyObject * obj1 = 0 ;
17637 PyObject * obj2 = 0 ;
17638 char * kwnames[] = {
17639 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17640 };
17641
17642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17644 if (!SWIG_IsOK(res1)) {
17645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17646 }
17647 arg1 = reinterpret_cast< wxDC * >(argp1);
17648 {
17649 arg2 = &temp2;
17650 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17651 }
17652 {
17653 arg3 = &temp3;
17654 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17655 }
17656 {
17657 PyThreadState* __tstate = wxPyBeginAllowThreads();
17658 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17659 wxPyEndAllowThreads(__tstate);
17660 if (PyErr_Occurred()) SWIG_fail;
17661 }
17662 resultobj = SWIG_Py_Void();
17663 return resultobj;
17664 fail:
17665 return NULL;
17666 }
17667
17668
17669 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17670 PyObject *resultobj = 0;
17671 wxDC *arg1 = (wxDC *) 0 ;
17672 int arg2 ;
17673 int arg3 ;
17674 void *argp1 = 0 ;
17675 int res1 = 0 ;
17676 int val2 ;
17677 int ecode2 = 0 ;
17678 int val3 ;
17679 int ecode3 = 0 ;
17680 PyObject * obj0 = 0 ;
17681 PyObject * obj1 = 0 ;
17682 PyObject * obj2 = 0 ;
17683 char * kwnames[] = {
17684 (char *) "self",(char *) "x",(char *) "y", NULL
17685 };
17686
17687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17689 if (!SWIG_IsOK(res1)) {
17690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17691 }
17692 arg1 = reinterpret_cast< wxDC * >(argp1);
17693 ecode2 = SWIG_AsVal_int(obj1, &val2);
17694 if (!SWIG_IsOK(ecode2)) {
17695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17696 }
17697 arg2 = static_cast< int >(val2);
17698 ecode3 = SWIG_AsVal_int(obj2, &val3);
17699 if (!SWIG_IsOK(ecode3)) {
17700 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17701 }
17702 arg3 = static_cast< int >(val3);
17703 {
17704 PyThreadState* __tstate = wxPyBeginAllowThreads();
17705 (arg1)->CrossHair(arg2,arg3);
17706 wxPyEndAllowThreads(__tstate);
17707 if (PyErr_Occurred()) SWIG_fail;
17708 }
17709 resultobj = SWIG_Py_Void();
17710 return resultobj;
17711 fail:
17712 return NULL;
17713 }
17714
17715
17716 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17717 PyObject *resultobj = 0;
17718 wxDC *arg1 = (wxDC *) 0 ;
17719 wxPoint *arg2 = 0 ;
17720 void *argp1 = 0 ;
17721 int res1 = 0 ;
17722 wxPoint temp2 ;
17723 PyObject * obj0 = 0 ;
17724 PyObject * obj1 = 0 ;
17725 char * kwnames[] = {
17726 (char *) "self",(char *) "pt", NULL
17727 };
17728
17729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17731 if (!SWIG_IsOK(res1)) {
17732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17733 }
17734 arg1 = reinterpret_cast< wxDC * >(argp1);
17735 {
17736 arg2 = &temp2;
17737 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17738 }
17739 {
17740 PyThreadState* __tstate = wxPyBeginAllowThreads();
17741 (arg1)->CrossHair((wxPoint const &)*arg2);
17742 wxPyEndAllowThreads(__tstate);
17743 if (PyErr_Occurred()) SWIG_fail;
17744 }
17745 resultobj = SWIG_Py_Void();
17746 return resultobj;
17747 fail:
17748 return NULL;
17749 }
17750
17751
17752 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17753 PyObject *resultobj = 0;
17754 wxDC *arg1 = (wxDC *) 0 ;
17755 int arg2 ;
17756 int arg3 ;
17757 int arg4 ;
17758 int arg5 ;
17759 int arg6 ;
17760 int arg7 ;
17761 void *argp1 = 0 ;
17762 int res1 = 0 ;
17763 int val2 ;
17764 int ecode2 = 0 ;
17765 int val3 ;
17766 int ecode3 = 0 ;
17767 int val4 ;
17768 int ecode4 = 0 ;
17769 int val5 ;
17770 int ecode5 = 0 ;
17771 int val6 ;
17772 int ecode6 = 0 ;
17773 int val7 ;
17774 int ecode7 = 0 ;
17775 PyObject * obj0 = 0 ;
17776 PyObject * obj1 = 0 ;
17777 PyObject * obj2 = 0 ;
17778 PyObject * obj3 = 0 ;
17779 PyObject * obj4 = 0 ;
17780 PyObject * obj5 = 0 ;
17781 PyObject * obj6 = 0 ;
17782 char * kwnames[] = {
17783 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17784 };
17785
17786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17788 if (!SWIG_IsOK(res1)) {
17789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17790 }
17791 arg1 = reinterpret_cast< wxDC * >(argp1);
17792 ecode2 = SWIG_AsVal_int(obj1, &val2);
17793 if (!SWIG_IsOK(ecode2)) {
17794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17795 }
17796 arg2 = static_cast< int >(val2);
17797 ecode3 = SWIG_AsVal_int(obj2, &val3);
17798 if (!SWIG_IsOK(ecode3)) {
17799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17800 }
17801 arg3 = static_cast< int >(val3);
17802 ecode4 = SWIG_AsVal_int(obj3, &val4);
17803 if (!SWIG_IsOK(ecode4)) {
17804 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17805 }
17806 arg4 = static_cast< int >(val4);
17807 ecode5 = SWIG_AsVal_int(obj4, &val5);
17808 if (!SWIG_IsOK(ecode5)) {
17809 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17810 }
17811 arg5 = static_cast< int >(val5);
17812 ecode6 = SWIG_AsVal_int(obj5, &val6);
17813 if (!SWIG_IsOK(ecode6)) {
17814 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17815 }
17816 arg6 = static_cast< int >(val6);
17817 ecode7 = SWIG_AsVal_int(obj6, &val7);
17818 if (!SWIG_IsOK(ecode7)) {
17819 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17820 }
17821 arg7 = static_cast< int >(val7);
17822 {
17823 PyThreadState* __tstate = wxPyBeginAllowThreads();
17824 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17825 wxPyEndAllowThreads(__tstate);
17826 if (PyErr_Occurred()) SWIG_fail;
17827 }
17828 resultobj = SWIG_Py_Void();
17829 return resultobj;
17830 fail:
17831 return NULL;
17832 }
17833
17834
17835 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17836 PyObject *resultobj = 0;
17837 wxDC *arg1 = (wxDC *) 0 ;
17838 wxPoint *arg2 = 0 ;
17839 wxPoint *arg3 = 0 ;
17840 wxPoint *arg4 = 0 ;
17841 void *argp1 = 0 ;
17842 int res1 = 0 ;
17843 wxPoint temp2 ;
17844 wxPoint temp3 ;
17845 wxPoint temp4 ;
17846 PyObject * obj0 = 0 ;
17847 PyObject * obj1 = 0 ;
17848 PyObject * obj2 = 0 ;
17849 PyObject * obj3 = 0 ;
17850 char * kwnames[] = {
17851 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17852 };
17853
17854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17856 if (!SWIG_IsOK(res1)) {
17857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17858 }
17859 arg1 = reinterpret_cast< wxDC * >(argp1);
17860 {
17861 arg2 = &temp2;
17862 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17863 }
17864 {
17865 arg3 = &temp3;
17866 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17867 }
17868 {
17869 arg4 = &temp4;
17870 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17871 }
17872 {
17873 PyThreadState* __tstate = wxPyBeginAllowThreads();
17874 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17875 wxPyEndAllowThreads(__tstate);
17876 if (PyErr_Occurred()) SWIG_fail;
17877 }
17878 resultobj = SWIG_Py_Void();
17879 return resultobj;
17880 fail:
17881 return NULL;
17882 }
17883
17884
17885 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17886 PyObject *resultobj = 0;
17887 wxDC *arg1 = (wxDC *) 0 ;
17888 int arg2 ;
17889 int arg3 ;
17890 int arg4 ;
17891 int arg5 ;
17892 void *argp1 = 0 ;
17893 int res1 = 0 ;
17894 int val2 ;
17895 int ecode2 = 0 ;
17896 int val3 ;
17897 int ecode3 = 0 ;
17898 int val4 ;
17899 int ecode4 = 0 ;
17900 int val5 ;
17901 int ecode5 = 0 ;
17902 PyObject * obj0 = 0 ;
17903 PyObject * obj1 = 0 ;
17904 PyObject * obj2 = 0 ;
17905 PyObject * obj3 = 0 ;
17906 PyObject * obj4 = 0 ;
17907 char * kwnames[] = {
17908 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17909 };
17910
17911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17913 if (!SWIG_IsOK(res1)) {
17914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17915 }
17916 arg1 = reinterpret_cast< wxDC * >(argp1);
17917 ecode2 = SWIG_AsVal_int(obj1, &val2);
17918 if (!SWIG_IsOK(ecode2)) {
17919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17920 }
17921 arg2 = static_cast< int >(val2);
17922 ecode3 = SWIG_AsVal_int(obj2, &val3);
17923 if (!SWIG_IsOK(ecode3)) {
17924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17925 }
17926 arg3 = static_cast< int >(val3);
17927 ecode4 = SWIG_AsVal_int(obj3, &val4);
17928 if (!SWIG_IsOK(ecode4)) {
17929 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17930 }
17931 arg4 = static_cast< int >(val4);
17932 ecode5 = SWIG_AsVal_int(obj4, &val5);
17933 if (!SWIG_IsOK(ecode5)) {
17934 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17935 }
17936 arg5 = static_cast< int >(val5);
17937 {
17938 PyThreadState* __tstate = wxPyBeginAllowThreads();
17939 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17940 wxPyEndAllowThreads(__tstate);
17941 if (PyErr_Occurred()) SWIG_fail;
17942 }
17943 resultobj = SWIG_Py_Void();
17944 return resultobj;
17945 fail:
17946 return NULL;
17947 }
17948
17949
17950 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17951 PyObject *resultobj = 0;
17952 wxDC *arg1 = (wxDC *) 0 ;
17953 wxRect *arg2 = 0 ;
17954 void *argp1 = 0 ;
17955 int res1 = 0 ;
17956 wxRect temp2 ;
17957 PyObject * obj0 = 0 ;
17958 PyObject * obj1 = 0 ;
17959 char * kwnames[] = {
17960 (char *) "self",(char *) "rect", NULL
17961 };
17962
17963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17965 if (!SWIG_IsOK(res1)) {
17966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17967 }
17968 arg1 = reinterpret_cast< wxDC * >(argp1);
17969 {
17970 arg2 = &temp2;
17971 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17972 }
17973 {
17974 PyThreadState* __tstate = wxPyBeginAllowThreads();
17975 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17976 wxPyEndAllowThreads(__tstate);
17977 if (PyErr_Occurred()) SWIG_fail;
17978 }
17979 resultobj = SWIG_Py_Void();
17980 return resultobj;
17981 fail:
17982 return NULL;
17983 }
17984
17985
17986 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17987 PyObject *resultobj = 0;
17988 wxDC *arg1 = (wxDC *) 0 ;
17989 int arg2 ;
17990 int arg3 ;
17991 int arg4 ;
17992 int arg5 ;
17993 double arg6 ;
17994 double arg7 ;
17995 void *argp1 = 0 ;
17996 int res1 = 0 ;
17997 int val2 ;
17998 int ecode2 = 0 ;
17999 int val3 ;
18000 int ecode3 = 0 ;
18001 int val4 ;
18002 int ecode4 = 0 ;
18003 int val5 ;
18004 int ecode5 = 0 ;
18005 double val6 ;
18006 int ecode6 = 0 ;
18007 double val7 ;
18008 int ecode7 = 0 ;
18009 PyObject * obj0 = 0 ;
18010 PyObject * obj1 = 0 ;
18011 PyObject * obj2 = 0 ;
18012 PyObject * obj3 = 0 ;
18013 PyObject * obj4 = 0 ;
18014 PyObject * obj5 = 0 ;
18015 PyObject * obj6 = 0 ;
18016 char * kwnames[] = {
18017 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18018 };
18019
18020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18022 if (!SWIG_IsOK(res1)) {
18023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18024 }
18025 arg1 = reinterpret_cast< wxDC * >(argp1);
18026 ecode2 = SWIG_AsVal_int(obj1, &val2);
18027 if (!SWIG_IsOK(ecode2)) {
18028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18029 }
18030 arg2 = static_cast< int >(val2);
18031 ecode3 = SWIG_AsVal_int(obj2, &val3);
18032 if (!SWIG_IsOK(ecode3)) {
18033 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18034 }
18035 arg3 = static_cast< int >(val3);
18036 ecode4 = SWIG_AsVal_int(obj3, &val4);
18037 if (!SWIG_IsOK(ecode4)) {
18038 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18039 }
18040 arg4 = static_cast< int >(val4);
18041 ecode5 = SWIG_AsVal_int(obj4, &val5);
18042 if (!SWIG_IsOK(ecode5)) {
18043 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18044 }
18045 arg5 = static_cast< int >(val5);
18046 ecode6 = SWIG_AsVal_double(obj5, &val6);
18047 if (!SWIG_IsOK(ecode6)) {
18048 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18049 }
18050 arg6 = static_cast< double >(val6);
18051 ecode7 = SWIG_AsVal_double(obj6, &val7);
18052 if (!SWIG_IsOK(ecode7)) {
18053 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18054 }
18055 arg7 = static_cast< double >(val7);
18056 {
18057 PyThreadState* __tstate = wxPyBeginAllowThreads();
18058 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18059 wxPyEndAllowThreads(__tstate);
18060 if (PyErr_Occurred()) SWIG_fail;
18061 }
18062 resultobj = SWIG_Py_Void();
18063 return resultobj;
18064 fail:
18065 return NULL;
18066 }
18067
18068
18069 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18070 PyObject *resultobj = 0;
18071 wxDC *arg1 = (wxDC *) 0 ;
18072 wxPoint *arg2 = 0 ;
18073 wxSize *arg3 = 0 ;
18074 double arg4 ;
18075 double arg5 ;
18076 void *argp1 = 0 ;
18077 int res1 = 0 ;
18078 wxPoint temp2 ;
18079 wxSize temp3 ;
18080 double val4 ;
18081 int ecode4 = 0 ;
18082 double val5 ;
18083 int ecode5 = 0 ;
18084 PyObject * obj0 = 0 ;
18085 PyObject * obj1 = 0 ;
18086 PyObject * obj2 = 0 ;
18087 PyObject * obj3 = 0 ;
18088 PyObject * obj4 = 0 ;
18089 char * kwnames[] = {
18090 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18091 };
18092
18093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18095 if (!SWIG_IsOK(res1)) {
18096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18097 }
18098 arg1 = reinterpret_cast< wxDC * >(argp1);
18099 {
18100 arg2 = &temp2;
18101 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18102 }
18103 {
18104 arg3 = &temp3;
18105 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18106 }
18107 ecode4 = SWIG_AsVal_double(obj3, &val4);
18108 if (!SWIG_IsOK(ecode4)) {
18109 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18110 }
18111 arg4 = static_cast< double >(val4);
18112 ecode5 = SWIG_AsVal_double(obj4, &val5);
18113 if (!SWIG_IsOK(ecode5)) {
18114 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18115 }
18116 arg5 = static_cast< double >(val5);
18117 {
18118 PyThreadState* __tstate = wxPyBeginAllowThreads();
18119 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18120 wxPyEndAllowThreads(__tstate);
18121 if (PyErr_Occurred()) SWIG_fail;
18122 }
18123 resultobj = SWIG_Py_Void();
18124 return resultobj;
18125 fail:
18126 return NULL;
18127 }
18128
18129
18130 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18131 PyObject *resultobj = 0;
18132 wxDC *arg1 = (wxDC *) 0 ;
18133 int arg2 ;
18134 int arg3 ;
18135 void *argp1 = 0 ;
18136 int res1 = 0 ;
18137 int val2 ;
18138 int ecode2 = 0 ;
18139 int val3 ;
18140 int ecode3 = 0 ;
18141 PyObject * obj0 = 0 ;
18142 PyObject * obj1 = 0 ;
18143 PyObject * obj2 = 0 ;
18144 char * kwnames[] = {
18145 (char *) "self",(char *) "x",(char *) "y", NULL
18146 };
18147
18148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18150 if (!SWIG_IsOK(res1)) {
18151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18152 }
18153 arg1 = reinterpret_cast< wxDC * >(argp1);
18154 ecode2 = SWIG_AsVal_int(obj1, &val2);
18155 if (!SWIG_IsOK(ecode2)) {
18156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18157 }
18158 arg2 = static_cast< int >(val2);
18159 ecode3 = SWIG_AsVal_int(obj2, &val3);
18160 if (!SWIG_IsOK(ecode3)) {
18161 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18162 }
18163 arg3 = static_cast< int >(val3);
18164 {
18165 PyThreadState* __tstate = wxPyBeginAllowThreads();
18166 (arg1)->DrawPoint(arg2,arg3);
18167 wxPyEndAllowThreads(__tstate);
18168 if (PyErr_Occurred()) SWIG_fail;
18169 }
18170 resultobj = SWIG_Py_Void();
18171 return resultobj;
18172 fail:
18173 return NULL;
18174 }
18175
18176
18177 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18178 PyObject *resultobj = 0;
18179 wxDC *arg1 = (wxDC *) 0 ;
18180 wxPoint *arg2 = 0 ;
18181 void *argp1 = 0 ;
18182 int res1 = 0 ;
18183 wxPoint temp2 ;
18184 PyObject * obj0 = 0 ;
18185 PyObject * obj1 = 0 ;
18186 char * kwnames[] = {
18187 (char *) "self",(char *) "pt", NULL
18188 };
18189
18190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18192 if (!SWIG_IsOK(res1)) {
18193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18194 }
18195 arg1 = reinterpret_cast< wxDC * >(argp1);
18196 {
18197 arg2 = &temp2;
18198 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18199 }
18200 {
18201 PyThreadState* __tstate = wxPyBeginAllowThreads();
18202 (arg1)->DrawPoint((wxPoint const &)*arg2);
18203 wxPyEndAllowThreads(__tstate);
18204 if (PyErr_Occurred()) SWIG_fail;
18205 }
18206 resultobj = SWIG_Py_Void();
18207 return resultobj;
18208 fail:
18209 return NULL;
18210 }
18211
18212
18213 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18214 PyObject *resultobj = 0;
18215 wxDC *arg1 = (wxDC *) 0 ;
18216 int arg2 ;
18217 int arg3 ;
18218 int arg4 ;
18219 int arg5 ;
18220 void *argp1 = 0 ;
18221 int res1 = 0 ;
18222 int val2 ;
18223 int ecode2 = 0 ;
18224 int val3 ;
18225 int ecode3 = 0 ;
18226 int val4 ;
18227 int ecode4 = 0 ;
18228 int val5 ;
18229 int ecode5 = 0 ;
18230 PyObject * obj0 = 0 ;
18231 PyObject * obj1 = 0 ;
18232 PyObject * obj2 = 0 ;
18233 PyObject * obj3 = 0 ;
18234 PyObject * obj4 = 0 ;
18235 char * kwnames[] = {
18236 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18237 };
18238
18239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18241 if (!SWIG_IsOK(res1)) {
18242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18243 }
18244 arg1 = reinterpret_cast< wxDC * >(argp1);
18245 ecode2 = SWIG_AsVal_int(obj1, &val2);
18246 if (!SWIG_IsOK(ecode2)) {
18247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18248 }
18249 arg2 = static_cast< int >(val2);
18250 ecode3 = SWIG_AsVal_int(obj2, &val3);
18251 if (!SWIG_IsOK(ecode3)) {
18252 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18253 }
18254 arg3 = static_cast< int >(val3);
18255 ecode4 = SWIG_AsVal_int(obj3, &val4);
18256 if (!SWIG_IsOK(ecode4)) {
18257 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18258 }
18259 arg4 = static_cast< int >(val4);
18260 ecode5 = SWIG_AsVal_int(obj4, &val5);
18261 if (!SWIG_IsOK(ecode5)) {
18262 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18263 }
18264 arg5 = static_cast< int >(val5);
18265 {
18266 PyThreadState* __tstate = wxPyBeginAllowThreads();
18267 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18268 wxPyEndAllowThreads(__tstate);
18269 if (PyErr_Occurred()) SWIG_fail;
18270 }
18271 resultobj = SWIG_Py_Void();
18272 return resultobj;
18273 fail:
18274 return NULL;
18275 }
18276
18277
18278 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18279 PyObject *resultobj = 0;
18280 wxDC *arg1 = (wxDC *) 0 ;
18281 wxRect *arg2 = 0 ;
18282 void *argp1 = 0 ;
18283 int res1 = 0 ;
18284 wxRect temp2 ;
18285 PyObject * obj0 = 0 ;
18286 PyObject * obj1 = 0 ;
18287 char * kwnames[] = {
18288 (char *) "self",(char *) "rect", NULL
18289 };
18290
18291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18293 if (!SWIG_IsOK(res1)) {
18294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18295 }
18296 arg1 = reinterpret_cast< wxDC * >(argp1);
18297 {
18298 arg2 = &temp2;
18299 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18300 }
18301 {
18302 PyThreadState* __tstate = wxPyBeginAllowThreads();
18303 (arg1)->DrawRectangle((wxRect const &)*arg2);
18304 wxPyEndAllowThreads(__tstate);
18305 if (PyErr_Occurred()) SWIG_fail;
18306 }
18307 resultobj = SWIG_Py_Void();
18308 return resultobj;
18309 fail:
18310 return NULL;
18311 }
18312
18313
18314 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18315 PyObject *resultobj = 0;
18316 wxDC *arg1 = (wxDC *) 0 ;
18317 wxPoint *arg2 = 0 ;
18318 wxSize *arg3 = 0 ;
18319 void *argp1 = 0 ;
18320 int res1 = 0 ;
18321 wxPoint temp2 ;
18322 wxSize temp3 ;
18323 PyObject * obj0 = 0 ;
18324 PyObject * obj1 = 0 ;
18325 PyObject * obj2 = 0 ;
18326 char * kwnames[] = {
18327 (char *) "self",(char *) "pt",(char *) "sz", NULL
18328 };
18329
18330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18332 if (!SWIG_IsOK(res1)) {
18333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18334 }
18335 arg1 = reinterpret_cast< wxDC * >(argp1);
18336 {
18337 arg2 = &temp2;
18338 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18339 }
18340 {
18341 arg3 = &temp3;
18342 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18343 }
18344 {
18345 PyThreadState* __tstate = wxPyBeginAllowThreads();
18346 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18347 wxPyEndAllowThreads(__tstate);
18348 if (PyErr_Occurred()) SWIG_fail;
18349 }
18350 resultobj = SWIG_Py_Void();
18351 return resultobj;
18352 fail:
18353 return NULL;
18354 }
18355
18356
18357 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18358 PyObject *resultobj = 0;
18359 wxDC *arg1 = (wxDC *) 0 ;
18360 int arg2 ;
18361 int arg3 ;
18362 int arg4 ;
18363 int arg5 ;
18364 double arg6 ;
18365 void *argp1 = 0 ;
18366 int res1 = 0 ;
18367 int val2 ;
18368 int ecode2 = 0 ;
18369 int val3 ;
18370 int ecode3 = 0 ;
18371 int val4 ;
18372 int ecode4 = 0 ;
18373 int val5 ;
18374 int ecode5 = 0 ;
18375 double val6 ;
18376 int ecode6 = 0 ;
18377 PyObject * obj0 = 0 ;
18378 PyObject * obj1 = 0 ;
18379 PyObject * obj2 = 0 ;
18380 PyObject * obj3 = 0 ;
18381 PyObject * obj4 = 0 ;
18382 PyObject * obj5 = 0 ;
18383 char * kwnames[] = {
18384 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18385 };
18386
18387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18389 if (!SWIG_IsOK(res1)) {
18390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18391 }
18392 arg1 = reinterpret_cast< wxDC * >(argp1);
18393 ecode2 = SWIG_AsVal_int(obj1, &val2);
18394 if (!SWIG_IsOK(ecode2)) {
18395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18396 }
18397 arg2 = static_cast< int >(val2);
18398 ecode3 = SWIG_AsVal_int(obj2, &val3);
18399 if (!SWIG_IsOK(ecode3)) {
18400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18401 }
18402 arg3 = static_cast< int >(val3);
18403 ecode4 = SWIG_AsVal_int(obj3, &val4);
18404 if (!SWIG_IsOK(ecode4)) {
18405 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18406 }
18407 arg4 = static_cast< int >(val4);
18408 ecode5 = SWIG_AsVal_int(obj4, &val5);
18409 if (!SWIG_IsOK(ecode5)) {
18410 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18411 }
18412 arg5 = static_cast< int >(val5);
18413 ecode6 = SWIG_AsVal_double(obj5, &val6);
18414 if (!SWIG_IsOK(ecode6)) {
18415 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18416 }
18417 arg6 = static_cast< double >(val6);
18418 {
18419 PyThreadState* __tstate = wxPyBeginAllowThreads();
18420 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18421 wxPyEndAllowThreads(__tstate);
18422 if (PyErr_Occurred()) SWIG_fail;
18423 }
18424 resultobj = SWIG_Py_Void();
18425 return resultobj;
18426 fail:
18427 return NULL;
18428 }
18429
18430
18431 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18432 PyObject *resultobj = 0;
18433 wxDC *arg1 = (wxDC *) 0 ;
18434 wxRect *arg2 = 0 ;
18435 double arg3 ;
18436 void *argp1 = 0 ;
18437 int res1 = 0 ;
18438 wxRect temp2 ;
18439 double val3 ;
18440 int ecode3 = 0 ;
18441 PyObject * obj0 = 0 ;
18442 PyObject * obj1 = 0 ;
18443 PyObject * obj2 = 0 ;
18444 char * kwnames[] = {
18445 (char *) "self",(char *) "r",(char *) "radius", NULL
18446 };
18447
18448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18450 if (!SWIG_IsOK(res1)) {
18451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18452 }
18453 arg1 = reinterpret_cast< wxDC * >(argp1);
18454 {
18455 arg2 = &temp2;
18456 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18457 }
18458 ecode3 = SWIG_AsVal_double(obj2, &val3);
18459 if (!SWIG_IsOK(ecode3)) {
18460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18461 }
18462 arg3 = static_cast< double >(val3);
18463 {
18464 PyThreadState* __tstate = wxPyBeginAllowThreads();
18465 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18466 wxPyEndAllowThreads(__tstate);
18467 if (PyErr_Occurred()) SWIG_fail;
18468 }
18469 resultobj = SWIG_Py_Void();
18470 return resultobj;
18471 fail:
18472 return NULL;
18473 }
18474
18475
18476 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18477 PyObject *resultobj = 0;
18478 wxDC *arg1 = (wxDC *) 0 ;
18479 wxPoint *arg2 = 0 ;
18480 wxSize *arg3 = 0 ;
18481 double arg4 ;
18482 void *argp1 = 0 ;
18483 int res1 = 0 ;
18484 wxPoint temp2 ;
18485 wxSize temp3 ;
18486 double val4 ;
18487 int ecode4 = 0 ;
18488 PyObject * obj0 = 0 ;
18489 PyObject * obj1 = 0 ;
18490 PyObject * obj2 = 0 ;
18491 PyObject * obj3 = 0 ;
18492 char * kwnames[] = {
18493 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18494 };
18495
18496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18498 if (!SWIG_IsOK(res1)) {
18499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18500 }
18501 arg1 = reinterpret_cast< wxDC * >(argp1);
18502 {
18503 arg2 = &temp2;
18504 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18505 }
18506 {
18507 arg3 = &temp3;
18508 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18509 }
18510 ecode4 = SWIG_AsVal_double(obj3, &val4);
18511 if (!SWIG_IsOK(ecode4)) {
18512 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18513 }
18514 arg4 = static_cast< double >(val4);
18515 {
18516 PyThreadState* __tstate = wxPyBeginAllowThreads();
18517 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18518 wxPyEndAllowThreads(__tstate);
18519 if (PyErr_Occurred()) SWIG_fail;
18520 }
18521 resultobj = SWIG_Py_Void();
18522 return resultobj;
18523 fail:
18524 return NULL;
18525 }
18526
18527
18528 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18529 PyObject *resultobj = 0;
18530 wxDC *arg1 = (wxDC *) 0 ;
18531 int arg2 ;
18532 int arg3 ;
18533 int arg4 ;
18534 void *argp1 = 0 ;
18535 int res1 = 0 ;
18536 int val2 ;
18537 int ecode2 = 0 ;
18538 int val3 ;
18539 int ecode3 = 0 ;
18540 int val4 ;
18541 int ecode4 = 0 ;
18542 PyObject * obj0 = 0 ;
18543 PyObject * obj1 = 0 ;
18544 PyObject * obj2 = 0 ;
18545 PyObject * obj3 = 0 ;
18546 char * kwnames[] = {
18547 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18548 };
18549
18550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18552 if (!SWIG_IsOK(res1)) {
18553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18554 }
18555 arg1 = reinterpret_cast< wxDC * >(argp1);
18556 ecode2 = SWIG_AsVal_int(obj1, &val2);
18557 if (!SWIG_IsOK(ecode2)) {
18558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18559 }
18560 arg2 = static_cast< int >(val2);
18561 ecode3 = SWIG_AsVal_int(obj2, &val3);
18562 if (!SWIG_IsOK(ecode3)) {
18563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18564 }
18565 arg3 = static_cast< int >(val3);
18566 ecode4 = SWIG_AsVal_int(obj3, &val4);
18567 if (!SWIG_IsOK(ecode4)) {
18568 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18569 }
18570 arg4 = static_cast< int >(val4);
18571 {
18572 PyThreadState* __tstate = wxPyBeginAllowThreads();
18573 (arg1)->DrawCircle(arg2,arg3,arg4);
18574 wxPyEndAllowThreads(__tstate);
18575 if (PyErr_Occurred()) SWIG_fail;
18576 }
18577 resultobj = SWIG_Py_Void();
18578 return resultobj;
18579 fail:
18580 return NULL;
18581 }
18582
18583
18584 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18585 PyObject *resultobj = 0;
18586 wxDC *arg1 = (wxDC *) 0 ;
18587 wxPoint *arg2 = 0 ;
18588 int arg3 ;
18589 void *argp1 = 0 ;
18590 int res1 = 0 ;
18591 wxPoint temp2 ;
18592 int val3 ;
18593 int ecode3 = 0 ;
18594 PyObject * obj0 = 0 ;
18595 PyObject * obj1 = 0 ;
18596 PyObject * obj2 = 0 ;
18597 char * kwnames[] = {
18598 (char *) "self",(char *) "pt",(char *) "radius", NULL
18599 };
18600
18601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18603 if (!SWIG_IsOK(res1)) {
18604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18605 }
18606 arg1 = reinterpret_cast< wxDC * >(argp1);
18607 {
18608 arg2 = &temp2;
18609 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18610 }
18611 ecode3 = SWIG_AsVal_int(obj2, &val3);
18612 if (!SWIG_IsOK(ecode3)) {
18613 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18614 }
18615 arg3 = static_cast< int >(val3);
18616 {
18617 PyThreadState* __tstate = wxPyBeginAllowThreads();
18618 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18619 wxPyEndAllowThreads(__tstate);
18620 if (PyErr_Occurred()) SWIG_fail;
18621 }
18622 resultobj = SWIG_Py_Void();
18623 return resultobj;
18624 fail:
18625 return NULL;
18626 }
18627
18628
18629 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18630 PyObject *resultobj = 0;
18631 wxDC *arg1 = (wxDC *) 0 ;
18632 int arg2 ;
18633 int arg3 ;
18634 int arg4 ;
18635 int arg5 ;
18636 void *argp1 = 0 ;
18637 int res1 = 0 ;
18638 int val2 ;
18639 int ecode2 = 0 ;
18640 int val3 ;
18641 int ecode3 = 0 ;
18642 int val4 ;
18643 int ecode4 = 0 ;
18644 int val5 ;
18645 int ecode5 = 0 ;
18646 PyObject * obj0 = 0 ;
18647 PyObject * obj1 = 0 ;
18648 PyObject * obj2 = 0 ;
18649 PyObject * obj3 = 0 ;
18650 PyObject * obj4 = 0 ;
18651 char * kwnames[] = {
18652 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18653 };
18654
18655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18657 if (!SWIG_IsOK(res1)) {
18658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18659 }
18660 arg1 = reinterpret_cast< wxDC * >(argp1);
18661 ecode2 = SWIG_AsVal_int(obj1, &val2);
18662 if (!SWIG_IsOK(ecode2)) {
18663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18664 }
18665 arg2 = static_cast< int >(val2);
18666 ecode3 = SWIG_AsVal_int(obj2, &val3);
18667 if (!SWIG_IsOK(ecode3)) {
18668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18669 }
18670 arg3 = static_cast< int >(val3);
18671 ecode4 = SWIG_AsVal_int(obj3, &val4);
18672 if (!SWIG_IsOK(ecode4)) {
18673 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18674 }
18675 arg4 = static_cast< int >(val4);
18676 ecode5 = SWIG_AsVal_int(obj4, &val5);
18677 if (!SWIG_IsOK(ecode5)) {
18678 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18679 }
18680 arg5 = static_cast< int >(val5);
18681 {
18682 PyThreadState* __tstate = wxPyBeginAllowThreads();
18683 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18684 wxPyEndAllowThreads(__tstate);
18685 if (PyErr_Occurred()) SWIG_fail;
18686 }
18687 resultobj = SWIG_Py_Void();
18688 return resultobj;
18689 fail:
18690 return NULL;
18691 }
18692
18693
18694 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18695 PyObject *resultobj = 0;
18696 wxDC *arg1 = (wxDC *) 0 ;
18697 wxRect *arg2 = 0 ;
18698 void *argp1 = 0 ;
18699 int res1 = 0 ;
18700 wxRect temp2 ;
18701 PyObject * obj0 = 0 ;
18702 PyObject * obj1 = 0 ;
18703 char * kwnames[] = {
18704 (char *) "self",(char *) "rect", NULL
18705 };
18706
18707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18709 if (!SWIG_IsOK(res1)) {
18710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18711 }
18712 arg1 = reinterpret_cast< wxDC * >(argp1);
18713 {
18714 arg2 = &temp2;
18715 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18716 }
18717 {
18718 PyThreadState* __tstate = wxPyBeginAllowThreads();
18719 (arg1)->DrawEllipse((wxRect const &)*arg2);
18720 wxPyEndAllowThreads(__tstate);
18721 if (PyErr_Occurred()) SWIG_fail;
18722 }
18723 resultobj = SWIG_Py_Void();
18724 return resultobj;
18725 fail:
18726 return NULL;
18727 }
18728
18729
18730 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18731 PyObject *resultobj = 0;
18732 wxDC *arg1 = (wxDC *) 0 ;
18733 wxPoint *arg2 = 0 ;
18734 wxSize *arg3 = 0 ;
18735 void *argp1 = 0 ;
18736 int res1 = 0 ;
18737 wxPoint temp2 ;
18738 wxSize temp3 ;
18739 PyObject * obj0 = 0 ;
18740 PyObject * obj1 = 0 ;
18741 PyObject * obj2 = 0 ;
18742 char * kwnames[] = {
18743 (char *) "self",(char *) "pt",(char *) "sz", NULL
18744 };
18745
18746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18748 if (!SWIG_IsOK(res1)) {
18749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18750 }
18751 arg1 = reinterpret_cast< wxDC * >(argp1);
18752 {
18753 arg2 = &temp2;
18754 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18755 }
18756 {
18757 arg3 = &temp3;
18758 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18759 }
18760 {
18761 PyThreadState* __tstate = wxPyBeginAllowThreads();
18762 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18763 wxPyEndAllowThreads(__tstate);
18764 if (PyErr_Occurred()) SWIG_fail;
18765 }
18766 resultobj = SWIG_Py_Void();
18767 return resultobj;
18768 fail:
18769 return NULL;
18770 }
18771
18772
18773 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18774 PyObject *resultobj = 0;
18775 wxDC *arg1 = (wxDC *) 0 ;
18776 wxIcon *arg2 = 0 ;
18777 int arg3 ;
18778 int arg4 ;
18779 void *argp1 = 0 ;
18780 int res1 = 0 ;
18781 void *argp2 = 0 ;
18782 int res2 = 0 ;
18783 int val3 ;
18784 int ecode3 = 0 ;
18785 int val4 ;
18786 int ecode4 = 0 ;
18787 PyObject * obj0 = 0 ;
18788 PyObject * obj1 = 0 ;
18789 PyObject * obj2 = 0 ;
18790 PyObject * obj3 = 0 ;
18791 char * kwnames[] = {
18792 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18793 };
18794
18795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18797 if (!SWIG_IsOK(res1)) {
18798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18799 }
18800 arg1 = reinterpret_cast< wxDC * >(argp1);
18801 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18802 if (!SWIG_IsOK(res2)) {
18803 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18804 }
18805 if (!argp2) {
18806 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18807 }
18808 arg2 = reinterpret_cast< wxIcon * >(argp2);
18809 ecode3 = SWIG_AsVal_int(obj2, &val3);
18810 if (!SWIG_IsOK(ecode3)) {
18811 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18812 }
18813 arg3 = static_cast< int >(val3);
18814 ecode4 = SWIG_AsVal_int(obj3, &val4);
18815 if (!SWIG_IsOK(ecode4)) {
18816 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18817 }
18818 arg4 = static_cast< int >(val4);
18819 {
18820 PyThreadState* __tstate = wxPyBeginAllowThreads();
18821 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18822 wxPyEndAllowThreads(__tstate);
18823 if (PyErr_Occurred()) SWIG_fail;
18824 }
18825 resultobj = SWIG_Py_Void();
18826 return resultobj;
18827 fail:
18828 return NULL;
18829 }
18830
18831
18832 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18833 PyObject *resultobj = 0;
18834 wxDC *arg1 = (wxDC *) 0 ;
18835 wxIcon *arg2 = 0 ;
18836 wxPoint *arg3 = 0 ;
18837 void *argp1 = 0 ;
18838 int res1 = 0 ;
18839 void *argp2 = 0 ;
18840 int res2 = 0 ;
18841 wxPoint temp3 ;
18842 PyObject * obj0 = 0 ;
18843 PyObject * obj1 = 0 ;
18844 PyObject * obj2 = 0 ;
18845 char * kwnames[] = {
18846 (char *) "self",(char *) "icon",(char *) "pt", NULL
18847 };
18848
18849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18851 if (!SWIG_IsOK(res1)) {
18852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18853 }
18854 arg1 = reinterpret_cast< wxDC * >(argp1);
18855 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18856 if (!SWIG_IsOK(res2)) {
18857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18858 }
18859 if (!argp2) {
18860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18861 }
18862 arg2 = reinterpret_cast< wxIcon * >(argp2);
18863 {
18864 arg3 = &temp3;
18865 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18866 }
18867 {
18868 PyThreadState* __tstate = wxPyBeginAllowThreads();
18869 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18870 wxPyEndAllowThreads(__tstate);
18871 if (PyErr_Occurred()) SWIG_fail;
18872 }
18873 resultobj = SWIG_Py_Void();
18874 return resultobj;
18875 fail:
18876 return NULL;
18877 }
18878
18879
18880 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18881 PyObject *resultobj = 0;
18882 wxDC *arg1 = (wxDC *) 0 ;
18883 wxBitmap *arg2 = 0 ;
18884 int arg3 ;
18885 int arg4 ;
18886 bool arg5 = (bool) false ;
18887 void *argp1 = 0 ;
18888 int res1 = 0 ;
18889 void *argp2 = 0 ;
18890 int res2 = 0 ;
18891 int val3 ;
18892 int ecode3 = 0 ;
18893 int val4 ;
18894 int ecode4 = 0 ;
18895 bool 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 *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18904 };
18905
18906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",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_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18910 }
18911 arg1 = reinterpret_cast< wxDC * >(argp1);
18912 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18913 if (!SWIG_IsOK(res2)) {
18914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18915 }
18916 if (!argp2) {
18917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18918 }
18919 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18920 ecode3 = SWIG_AsVal_int(obj2, &val3);
18921 if (!SWIG_IsOK(ecode3)) {
18922 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18923 }
18924 arg3 = static_cast< int >(val3);
18925 ecode4 = SWIG_AsVal_int(obj3, &val4);
18926 if (!SWIG_IsOK(ecode4)) {
18927 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18928 }
18929 arg4 = static_cast< int >(val4);
18930 if (obj4) {
18931 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18932 if (!SWIG_IsOK(ecode5)) {
18933 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18934 }
18935 arg5 = static_cast< bool >(val5);
18936 }
18937 {
18938 PyThreadState* __tstate = wxPyBeginAllowThreads();
18939 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18940 wxPyEndAllowThreads(__tstate);
18941 if (PyErr_Occurred()) SWIG_fail;
18942 }
18943 resultobj = SWIG_Py_Void();
18944 return resultobj;
18945 fail:
18946 return NULL;
18947 }
18948
18949
18950 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18951 PyObject *resultobj = 0;
18952 wxDC *arg1 = (wxDC *) 0 ;
18953 wxBitmap *arg2 = 0 ;
18954 wxPoint *arg3 = 0 ;
18955 bool arg4 = (bool) false ;
18956 void *argp1 = 0 ;
18957 int res1 = 0 ;
18958 void *argp2 = 0 ;
18959 int res2 = 0 ;
18960 wxPoint temp3 ;
18961 bool val4 ;
18962 int ecode4 = 0 ;
18963 PyObject * obj0 = 0 ;
18964 PyObject * obj1 = 0 ;
18965 PyObject * obj2 = 0 ;
18966 PyObject * obj3 = 0 ;
18967 char * kwnames[] = {
18968 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18969 };
18970
18971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18973 if (!SWIG_IsOK(res1)) {
18974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18975 }
18976 arg1 = reinterpret_cast< wxDC * >(argp1);
18977 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18978 if (!SWIG_IsOK(res2)) {
18979 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18980 }
18981 if (!argp2) {
18982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18983 }
18984 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18985 {
18986 arg3 = &temp3;
18987 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18988 }
18989 if (obj3) {
18990 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18991 if (!SWIG_IsOK(ecode4)) {
18992 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
18993 }
18994 arg4 = static_cast< bool >(val4);
18995 }
18996 {
18997 PyThreadState* __tstate = wxPyBeginAllowThreads();
18998 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
18999 wxPyEndAllowThreads(__tstate);
19000 if (PyErr_Occurred()) SWIG_fail;
19001 }
19002 resultobj = SWIG_Py_Void();
19003 return resultobj;
19004 fail:
19005 return NULL;
19006 }
19007
19008
19009 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19010 PyObject *resultobj = 0;
19011 wxDC *arg1 = (wxDC *) 0 ;
19012 wxString *arg2 = 0 ;
19013 int arg3 ;
19014 int arg4 ;
19015 void *argp1 = 0 ;
19016 int res1 = 0 ;
19017 bool temp2 = false ;
19018 int val3 ;
19019 int ecode3 = 0 ;
19020 int val4 ;
19021 int ecode4 = 0 ;
19022 PyObject * obj0 = 0 ;
19023 PyObject * obj1 = 0 ;
19024 PyObject * obj2 = 0 ;
19025 PyObject * obj3 = 0 ;
19026 char * kwnames[] = {
19027 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19028 };
19029
19030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19032 if (!SWIG_IsOK(res1)) {
19033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19034 }
19035 arg1 = reinterpret_cast< wxDC * >(argp1);
19036 {
19037 arg2 = wxString_in_helper(obj1);
19038 if (arg2 == NULL) SWIG_fail;
19039 temp2 = true;
19040 }
19041 ecode3 = SWIG_AsVal_int(obj2, &val3);
19042 if (!SWIG_IsOK(ecode3)) {
19043 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19044 }
19045 arg3 = static_cast< int >(val3);
19046 ecode4 = SWIG_AsVal_int(obj3, &val4);
19047 if (!SWIG_IsOK(ecode4)) {
19048 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19049 }
19050 arg4 = static_cast< int >(val4);
19051 {
19052 PyThreadState* __tstate = wxPyBeginAllowThreads();
19053 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19054 wxPyEndAllowThreads(__tstate);
19055 if (PyErr_Occurred()) SWIG_fail;
19056 }
19057 resultobj = SWIG_Py_Void();
19058 {
19059 if (temp2)
19060 delete arg2;
19061 }
19062 return resultobj;
19063 fail:
19064 {
19065 if (temp2)
19066 delete arg2;
19067 }
19068 return NULL;
19069 }
19070
19071
19072 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19073 PyObject *resultobj = 0;
19074 wxDC *arg1 = (wxDC *) 0 ;
19075 wxString *arg2 = 0 ;
19076 wxPoint *arg3 = 0 ;
19077 void *argp1 = 0 ;
19078 int res1 = 0 ;
19079 bool temp2 = false ;
19080 wxPoint temp3 ;
19081 PyObject * obj0 = 0 ;
19082 PyObject * obj1 = 0 ;
19083 PyObject * obj2 = 0 ;
19084 char * kwnames[] = {
19085 (char *) "self",(char *) "text",(char *) "pt", NULL
19086 };
19087
19088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19090 if (!SWIG_IsOK(res1)) {
19091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19092 }
19093 arg1 = reinterpret_cast< wxDC * >(argp1);
19094 {
19095 arg2 = wxString_in_helper(obj1);
19096 if (arg2 == NULL) SWIG_fail;
19097 temp2 = true;
19098 }
19099 {
19100 arg3 = &temp3;
19101 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19102 }
19103 {
19104 PyThreadState* __tstate = wxPyBeginAllowThreads();
19105 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19106 wxPyEndAllowThreads(__tstate);
19107 if (PyErr_Occurred()) SWIG_fail;
19108 }
19109 resultobj = SWIG_Py_Void();
19110 {
19111 if (temp2)
19112 delete arg2;
19113 }
19114 return resultobj;
19115 fail:
19116 {
19117 if (temp2)
19118 delete arg2;
19119 }
19120 return NULL;
19121 }
19122
19123
19124 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19125 PyObject *resultobj = 0;
19126 wxDC *arg1 = (wxDC *) 0 ;
19127 wxString *arg2 = 0 ;
19128 int arg3 ;
19129 int arg4 ;
19130 double arg5 ;
19131 void *argp1 = 0 ;
19132 int res1 = 0 ;
19133 bool temp2 = false ;
19134 int val3 ;
19135 int ecode3 = 0 ;
19136 int val4 ;
19137 int ecode4 = 0 ;
19138 double val5 ;
19139 int ecode5 = 0 ;
19140 PyObject * obj0 = 0 ;
19141 PyObject * obj1 = 0 ;
19142 PyObject * obj2 = 0 ;
19143 PyObject * obj3 = 0 ;
19144 PyObject * obj4 = 0 ;
19145 char * kwnames[] = {
19146 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19147 };
19148
19149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19151 if (!SWIG_IsOK(res1)) {
19152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19153 }
19154 arg1 = reinterpret_cast< wxDC * >(argp1);
19155 {
19156 arg2 = wxString_in_helper(obj1);
19157 if (arg2 == NULL) SWIG_fail;
19158 temp2 = true;
19159 }
19160 ecode3 = SWIG_AsVal_int(obj2, &val3);
19161 if (!SWIG_IsOK(ecode3)) {
19162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19163 }
19164 arg3 = static_cast< int >(val3);
19165 ecode4 = SWIG_AsVal_int(obj3, &val4);
19166 if (!SWIG_IsOK(ecode4)) {
19167 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19168 }
19169 arg4 = static_cast< int >(val4);
19170 ecode5 = SWIG_AsVal_double(obj4, &val5);
19171 if (!SWIG_IsOK(ecode5)) {
19172 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19173 }
19174 arg5 = static_cast< double >(val5);
19175 {
19176 PyThreadState* __tstate = wxPyBeginAllowThreads();
19177 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19178 wxPyEndAllowThreads(__tstate);
19179 if (PyErr_Occurred()) SWIG_fail;
19180 }
19181 resultobj = SWIG_Py_Void();
19182 {
19183 if (temp2)
19184 delete arg2;
19185 }
19186 return resultobj;
19187 fail:
19188 {
19189 if (temp2)
19190 delete arg2;
19191 }
19192 return NULL;
19193 }
19194
19195
19196 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19197 PyObject *resultobj = 0;
19198 wxDC *arg1 = (wxDC *) 0 ;
19199 wxString *arg2 = 0 ;
19200 wxPoint *arg3 = 0 ;
19201 double arg4 ;
19202 void *argp1 = 0 ;
19203 int res1 = 0 ;
19204 bool temp2 = false ;
19205 wxPoint temp3 ;
19206 double val4 ;
19207 int ecode4 = 0 ;
19208 PyObject * obj0 = 0 ;
19209 PyObject * obj1 = 0 ;
19210 PyObject * obj2 = 0 ;
19211 PyObject * obj3 = 0 ;
19212 char * kwnames[] = {
19213 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19214 };
19215
19216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19218 if (!SWIG_IsOK(res1)) {
19219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19220 }
19221 arg1 = reinterpret_cast< wxDC * >(argp1);
19222 {
19223 arg2 = wxString_in_helper(obj1);
19224 if (arg2 == NULL) SWIG_fail;
19225 temp2 = true;
19226 }
19227 {
19228 arg3 = &temp3;
19229 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19230 }
19231 ecode4 = SWIG_AsVal_double(obj3, &val4);
19232 if (!SWIG_IsOK(ecode4)) {
19233 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19234 }
19235 arg4 = static_cast< double >(val4);
19236 {
19237 PyThreadState* __tstate = wxPyBeginAllowThreads();
19238 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19239 wxPyEndAllowThreads(__tstate);
19240 if (PyErr_Occurred()) SWIG_fail;
19241 }
19242 resultobj = SWIG_Py_Void();
19243 {
19244 if (temp2)
19245 delete arg2;
19246 }
19247 return resultobj;
19248 fail:
19249 {
19250 if (temp2)
19251 delete arg2;
19252 }
19253 return NULL;
19254 }
19255
19256
19257 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19258 PyObject *resultobj = 0;
19259 wxDC *arg1 = (wxDC *) 0 ;
19260 int arg2 ;
19261 int arg3 ;
19262 int arg4 ;
19263 int arg5 ;
19264 wxDC *arg6 = (wxDC *) 0 ;
19265 int arg7 ;
19266 int arg8 ;
19267 int arg9 = (int) wxCOPY ;
19268 bool arg10 = (bool) false ;
19269 int arg11 = (int) -1 ;
19270 int arg12 = (int) -1 ;
19271 bool result;
19272 void *argp1 = 0 ;
19273 int res1 = 0 ;
19274 int val2 ;
19275 int ecode2 = 0 ;
19276 int val3 ;
19277 int ecode3 = 0 ;
19278 int val4 ;
19279 int ecode4 = 0 ;
19280 int val5 ;
19281 int ecode5 = 0 ;
19282 void *argp6 = 0 ;
19283 int res6 = 0 ;
19284 int val7 ;
19285 int ecode7 = 0 ;
19286 int val8 ;
19287 int ecode8 = 0 ;
19288 int val9 ;
19289 int ecode9 = 0 ;
19290 bool val10 ;
19291 int ecode10 = 0 ;
19292 int val11 ;
19293 int ecode11 = 0 ;
19294 int val12 ;
19295 int ecode12 = 0 ;
19296 PyObject * obj0 = 0 ;
19297 PyObject * obj1 = 0 ;
19298 PyObject * obj2 = 0 ;
19299 PyObject * obj3 = 0 ;
19300 PyObject * obj4 = 0 ;
19301 PyObject * obj5 = 0 ;
19302 PyObject * obj6 = 0 ;
19303 PyObject * obj7 = 0 ;
19304 PyObject * obj8 = 0 ;
19305 PyObject * obj9 = 0 ;
19306 PyObject * obj10 = 0 ;
19307 PyObject * obj11 = 0 ;
19308 char * kwnames[] = {
19309 (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
19310 };
19311
19312 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;
19313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19314 if (!SWIG_IsOK(res1)) {
19315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19316 }
19317 arg1 = reinterpret_cast< wxDC * >(argp1);
19318 ecode2 = SWIG_AsVal_int(obj1, &val2);
19319 if (!SWIG_IsOK(ecode2)) {
19320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19321 }
19322 arg2 = static_cast< int >(val2);
19323 ecode3 = SWIG_AsVal_int(obj2, &val3);
19324 if (!SWIG_IsOK(ecode3)) {
19325 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19326 }
19327 arg3 = static_cast< int >(val3);
19328 ecode4 = SWIG_AsVal_int(obj3, &val4);
19329 if (!SWIG_IsOK(ecode4)) {
19330 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19331 }
19332 arg4 = static_cast< int >(val4);
19333 ecode5 = SWIG_AsVal_int(obj4, &val5);
19334 if (!SWIG_IsOK(ecode5)) {
19335 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19336 }
19337 arg5 = static_cast< int >(val5);
19338 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19339 if (!SWIG_IsOK(res6)) {
19340 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19341 }
19342 arg6 = reinterpret_cast< wxDC * >(argp6);
19343 ecode7 = SWIG_AsVal_int(obj6, &val7);
19344 if (!SWIG_IsOK(ecode7)) {
19345 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19346 }
19347 arg7 = static_cast< int >(val7);
19348 ecode8 = SWIG_AsVal_int(obj7, &val8);
19349 if (!SWIG_IsOK(ecode8)) {
19350 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19351 }
19352 arg8 = static_cast< int >(val8);
19353 if (obj8) {
19354 ecode9 = SWIG_AsVal_int(obj8, &val9);
19355 if (!SWIG_IsOK(ecode9)) {
19356 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19357 }
19358 arg9 = static_cast< int >(val9);
19359 }
19360 if (obj9) {
19361 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19362 if (!SWIG_IsOK(ecode10)) {
19363 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19364 }
19365 arg10 = static_cast< bool >(val10);
19366 }
19367 if (obj10) {
19368 ecode11 = SWIG_AsVal_int(obj10, &val11);
19369 if (!SWIG_IsOK(ecode11)) {
19370 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19371 }
19372 arg11 = static_cast< int >(val11);
19373 }
19374 if (obj11) {
19375 ecode12 = SWIG_AsVal_int(obj11, &val12);
19376 if (!SWIG_IsOK(ecode12)) {
19377 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19378 }
19379 arg12 = static_cast< int >(val12);
19380 }
19381 {
19382 PyThreadState* __tstate = wxPyBeginAllowThreads();
19383 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19384 wxPyEndAllowThreads(__tstate);
19385 if (PyErr_Occurred()) SWIG_fail;
19386 }
19387 {
19388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19389 }
19390 return resultobj;
19391 fail:
19392 return NULL;
19393 }
19394
19395
19396 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19397 PyObject *resultobj = 0;
19398 wxDC *arg1 = (wxDC *) 0 ;
19399 wxPoint *arg2 = 0 ;
19400 wxSize *arg3 = 0 ;
19401 wxDC *arg4 = (wxDC *) 0 ;
19402 wxPoint *arg5 = 0 ;
19403 int arg6 = (int) wxCOPY ;
19404 bool arg7 = (bool) false ;
19405 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19406 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19407 bool result;
19408 void *argp1 = 0 ;
19409 int res1 = 0 ;
19410 wxPoint temp2 ;
19411 wxSize temp3 ;
19412 void *argp4 = 0 ;
19413 int res4 = 0 ;
19414 wxPoint temp5 ;
19415 int val6 ;
19416 int ecode6 = 0 ;
19417 bool val7 ;
19418 int ecode7 = 0 ;
19419 wxPoint temp8 ;
19420 PyObject * obj0 = 0 ;
19421 PyObject * obj1 = 0 ;
19422 PyObject * obj2 = 0 ;
19423 PyObject * obj3 = 0 ;
19424 PyObject * obj4 = 0 ;
19425 PyObject * obj5 = 0 ;
19426 PyObject * obj6 = 0 ;
19427 PyObject * obj7 = 0 ;
19428 char * kwnames[] = {
19429 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19430 };
19431
19432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19434 if (!SWIG_IsOK(res1)) {
19435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19436 }
19437 arg1 = reinterpret_cast< wxDC * >(argp1);
19438 {
19439 arg2 = &temp2;
19440 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19441 }
19442 {
19443 arg3 = &temp3;
19444 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19445 }
19446 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19447 if (!SWIG_IsOK(res4)) {
19448 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19449 }
19450 arg4 = reinterpret_cast< wxDC * >(argp4);
19451 {
19452 arg5 = &temp5;
19453 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19454 }
19455 if (obj5) {
19456 ecode6 = SWIG_AsVal_int(obj5, &val6);
19457 if (!SWIG_IsOK(ecode6)) {
19458 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19459 }
19460 arg6 = static_cast< int >(val6);
19461 }
19462 if (obj6) {
19463 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19464 if (!SWIG_IsOK(ecode7)) {
19465 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19466 }
19467 arg7 = static_cast< bool >(val7);
19468 }
19469 if (obj7) {
19470 {
19471 arg8 = &temp8;
19472 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19473 }
19474 }
19475 {
19476 PyThreadState* __tstate = wxPyBeginAllowThreads();
19477 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19478 wxPyEndAllowThreads(__tstate);
19479 if (PyErr_Occurred()) SWIG_fail;
19480 }
19481 {
19482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19483 }
19484 return resultobj;
19485 fail:
19486 return NULL;
19487 }
19488
19489
19490 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19491 PyObject *resultobj = 0;
19492 wxDC *arg1 = (wxDC *) 0 ;
19493 int arg2 ;
19494 int arg3 ;
19495 int arg4 ;
19496 int arg5 ;
19497 void *argp1 = 0 ;
19498 int res1 = 0 ;
19499 int val2 ;
19500 int ecode2 = 0 ;
19501 int val3 ;
19502 int ecode3 = 0 ;
19503 int val4 ;
19504 int ecode4 = 0 ;
19505 int val5 ;
19506 int ecode5 = 0 ;
19507 PyObject * obj0 = 0 ;
19508 PyObject * obj1 = 0 ;
19509 PyObject * obj2 = 0 ;
19510 PyObject * obj3 = 0 ;
19511 PyObject * obj4 = 0 ;
19512 char * kwnames[] = {
19513 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19514 };
19515
19516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19518 if (!SWIG_IsOK(res1)) {
19519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19520 }
19521 arg1 = reinterpret_cast< wxDC * >(argp1);
19522 ecode2 = SWIG_AsVal_int(obj1, &val2);
19523 if (!SWIG_IsOK(ecode2)) {
19524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19525 }
19526 arg2 = static_cast< int >(val2);
19527 ecode3 = SWIG_AsVal_int(obj2, &val3);
19528 if (!SWIG_IsOK(ecode3)) {
19529 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19530 }
19531 arg3 = static_cast< int >(val3);
19532 ecode4 = SWIG_AsVal_int(obj3, &val4);
19533 if (!SWIG_IsOK(ecode4)) {
19534 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19535 }
19536 arg4 = static_cast< int >(val4);
19537 ecode5 = SWIG_AsVal_int(obj4, &val5);
19538 if (!SWIG_IsOK(ecode5)) {
19539 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19540 }
19541 arg5 = static_cast< int >(val5);
19542 {
19543 PyThreadState* __tstate = wxPyBeginAllowThreads();
19544 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19545 wxPyEndAllowThreads(__tstate);
19546 if (PyErr_Occurred()) SWIG_fail;
19547 }
19548 resultobj = SWIG_Py_Void();
19549 return resultobj;
19550 fail:
19551 return NULL;
19552 }
19553
19554
19555 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19556 PyObject *resultobj = 0;
19557 wxDC *arg1 = (wxDC *) 0 ;
19558 wxPoint *arg2 = 0 ;
19559 wxSize *arg3 = 0 ;
19560 void *argp1 = 0 ;
19561 int res1 = 0 ;
19562 wxPoint temp2 ;
19563 wxSize temp3 ;
19564 PyObject * obj0 = 0 ;
19565 PyObject * obj1 = 0 ;
19566 PyObject * obj2 = 0 ;
19567 char * kwnames[] = {
19568 (char *) "self",(char *) "pt",(char *) "sz", NULL
19569 };
19570
19571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19573 if (!SWIG_IsOK(res1)) {
19574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19575 }
19576 arg1 = reinterpret_cast< wxDC * >(argp1);
19577 {
19578 arg2 = &temp2;
19579 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19580 }
19581 {
19582 arg3 = &temp3;
19583 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19584 }
19585 {
19586 PyThreadState* __tstate = wxPyBeginAllowThreads();
19587 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19588 wxPyEndAllowThreads(__tstate);
19589 if (PyErr_Occurred()) SWIG_fail;
19590 }
19591 resultobj = SWIG_Py_Void();
19592 return resultobj;
19593 fail:
19594 return NULL;
19595 }
19596
19597
19598 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19599 PyObject *resultobj = 0;
19600 wxDC *arg1 = (wxDC *) 0 ;
19601 wxRegion *arg2 = 0 ;
19602 void *argp1 = 0 ;
19603 int res1 = 0 ;
19604 void *argp2 = 0 ;
19605 int res2 = 0 ;
19606 PyObject * obj0 = 0 ;
19607 PyObject * obj1 = 0 ;
19608 char * kwnames[] = {
19609 (char *) "self",(char *) "region", NULL
19610 };
19611
19612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19614 if (!SWIG_IsOK(res1)) {
19615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19616 }
19617 arg1 = reinterpret_cast< wxDC * >(argp1);
19618 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19619 if (!SWIG_IsOK(res2)) {
19620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19621 }
19622 if (!argp2) {
19623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19624 }
19625 arg2 = reinterpret_cast< wxRegion * >(argp2);
19626 {
19627 PyThreadState* __tstate = wxPyBeginAllowThreads();
19628 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19629 wxPyEndAllowThreads(__tstate);
19630 if (PyErr_Occurred()) SWIG_fail;
19631 }
19632 resultobj = SWIG_Py_Void();
19633 return resultobj;
19634 fail:
19635 return NULL;
19636 }
19637
19638
19639 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19640 PyObject *resultobj = 0;
19641 wxDC *arg1 = (wxDC *) 0 ;
19642 wxRect *arg2 = 0 ;
19643 void *argp1 = 0 ;
19644 int res1 = 0 ;
19645 wxRect temp2 ;
19646 PyObject * obj0 = 0 ;
19647 PyObject * obj1 = 0 ;
19648 char * kwnames[] = {
19649 (char *) "self",(char *) "rect", NULL
19650 };
19651
19652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19654 if (!SWIG_IsOK(res1)) {
19655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19656 }
19657 arg1 = reinterpret_cast< wxDC * >(argp1);
19658 {
19659 arg2 = &temp2;
19660 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19661 }
19662 {
19663 PyThreadState* __tstate = wxPyBeginAllowThreads();
19664 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19665 wxPyEndAllowThreads(__tstate);
19666 if (PyErr_Occurred()) SWIG_fail;
19667 }
19668 resultobj = SWIG_Py_Void();
19669 return resultobj;
19670 fail:
19671 return NULL;
19672 }
19673
19674
19675 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19676 PyObject *resultobj = 0;
19677 wxDC *arg1 = (wxDC *) 0 ;
19678 int arg2 ;
19679 wxPoint *arg3 = (wxPoint *) 0 ;
19680 int arg4 = (int) 0 ;
19681 int arg5 = (int) 0 ;
19682 void *argp1 = 0 ;
19683 int res1 = 0 ;
19684 int val4 ;
19685 int ecode4 = 0 ;
19686 int val5 ;
19687 int ecode5 = 0 ;
19688 PyObject * obj0 = 0 ;
19689 PyObject * obj1 = 0 ;
19690 PyObject * obj2 = 0 ;
19691 PyObject * obj3 = 0 ;
19692 char * kwnames[] = {
19693 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19694 };
19695
19696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19698 if (!SWIG_IsOK(res1)) {
19699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19700 }
19701 arg1 = reinterpret_cast< wxDC * >(argp1);
19702 {
19703 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19704 if (arg3 == NULL) SWIG_fail;
19705 }
19706 if (obj2) {
19707 ecode4 = SWIG_AsVal_int(obj2, &val4);
19708 if (!SWIG_IsOK(ecode4)) {
19709 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19710 }
19711 arg4 = static_cast< int >(val4);
19712 }
19713 if (obj3) {
19714 ecode5 = SWIG_AsVal_int(obj3, &val5);
19715 if (!SWIG_IsOK(ecode5)) {
19716 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19717 }
19718 arg5 = static_cast< int >(val5);
19719 }
19720 {
19721 PyThreadState* __tstate = wxPyBeginAllowThreads();
19722 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19723 wxPyEndAllowThreads(__tstate);
19724 if (PyErr_Occurred()) SWIG_fail;
19725 }
19726 resultobj = SWIG_Py_Void();
19727 {
19728 if (arg3) delete [] arg3;
19729 }
19730 return resultobj;
19731 fail:
19732 {
19733 if (arg3) delete [] arg3;
19734 }
19735 return NULL;
19736 }
19737
19738
19739 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19740 PyObject *resultobj = 0;
19741 wxDC *arg1 = (wxDC *) 0 ;
19742 int arg2 ;
19743 wxPoint *arg3 = (wxPoint *) 0 ;
19744 int arg4 = (int) 0 ;
19745 int arg5 = (int) 0 ;
19746 int arg6 = (int) wxODDEVEN_RULE ;
19747 void *argp1 = 0 ;
19748 int res1 = 0 ;
19749 int val4 ;
19750 int ecode4 = 0 ;
19751 int val5 ;
19752 int ecode5 = 0 ;
19753 int val6 ;
19754 int ecode6 = 0 ;
19755 PyObject * obj0 = 0 ;
19756 PyObject * obj1 = 0 ;
19757 PyObject * obj2 = 0 ;
19758 PyObject * obj3 = 0 ;
19759 PyObject * obj4 = 0 ;
19760 char * kwnames[] = {
19761 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19762 };
19763
19764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19766 if (!SWIG_IsOK(res1)) {
19767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19768 }
19769 arg1 = reinterpret_cast< wxDC * >(argp1);
19770 {
19771 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19772 if (arg3 == NULL) SWIG_fail;
19773 }
19774 if (obj2) {
19775 ecode4 = SWIG_AsVal_int(obj2, &val4);
19776 if (!SWIG_IsOK(ecode4)) {
19777 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19778 }
19779 arg4 = static_cast< int >(val4);
19780 }
19781 if (obj3) {
19782 ecode5 = SWIG_AsVal_int(obj3, &val5);
19783 if (!SWIG_IsOK(ecode5)) {
19784 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19785 }
19786 arg5 = static_cast< int >(val5);
19787 }
19788 if (obj4) {
19789 ecode6 = SWIG_AsVal_int(obj4, &val6);
19790 if (!SWIG_IsOK(ecode6)) {
19791 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19792 }
19793 arg6 = static_cast< int >(val6);
19794 }
19795 {
19796 PyThreadState* __tstate = wxPyBeginAllowThreads();
19797 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19798 wxPyEndAllowThreads(__tstate);
19799 if (PyErr_Occurred()) SWIG_fail;
19800 }
19801 resultobj = SWIG_Py_Void();
19802 {
19803 if (arg3) delete [] arg3;
19804 }
19805 return resultobj;
19806 fail:
19807 {
19808 if (arg3) delete [] arg3;
19809 }
19810 return NULL;
19811 }
19812
19813
19814 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19815 PyObject *resultobj = 0;
19816 wxDC *arg1 = (wxDC *) 0 ;
19817 wxString *arg2 = 0 ;
19818 wxRect *arg3 = 0 ;
19819 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19820 int arg5 = (int) -1 ;
19821 void *argp1 = 0 ;
19822 int res1 = 0 ;
19823 bool temp2 = false ;
19824 wxRect temp3 ;
19825 int val4 ;
19826 int ecode4 = 0 ;
19827 int val5 ;
19828 int ecode5 = 0 ;
19829 PyObject * obj0 = 0 ;
19830 PyObject * obj1 = 0 ;
19831 PyObject * obj2 = 0 ;
19832 PyObject * obj3 = 0 ;
19833 PyObject * obj4 = 0 ;
19834 char * kwnames[] = {
19835 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19836 };
19837
19838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19840 if (!SWIG_IsOK(res1)) {
19841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19842 }
19843 arg1 = reinterpret_cast< wxDC * >(argp1);
19844 {
19845 arg2 = wxString_in_helper(obj1);
19846 if (arg2 == NULL) SWIG_fail;
19847 temp2 = true;
19848 }
19849 {
19850 arg3 = &temp3;
19851 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19852 }
19853 if (obj3) {
19854 ecode4 = SWIG_AsVal_int(obj3, &val4);
19855 if (!SWIG_IsOK(ecode4)) {
19856 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19857 }
19858 arg4 = static_cast< int >(val4);
19859 }
19860 if (obj4) {
19861 ecode5 = SWIG_AsVal_int(obj4, &val5);
19862 if (!SWIG_IsOK(ecode5)) {
19863 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19864 }
19865 arg5 = static_cast< int >(val5);
19866 }
19867 {
19868 PyThreadState* __tstate = wxPyBeginAllowThreads();
19869 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19870 wxPyEndAllowThreads(__tstate);
19871 if (PyErr_Occurred()) SWIG_fail;
19872 }
19873 resultobj = SWIG_Py_Void();
19874 {
19875 if (temp2)
19876 delete arg2;
19877 }
19878 return resultobj;
19879 fail:
19880 {
19881 if (temp2)
19882 delete arg2;
19883 }
19884 return NULL;
19885 }
19886
19887
19888 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19889 PyObject *resultobj = 0;
19890 wxDC *arg1 = (wxDC *) 0 ;
19891 wxString *arg2 = 0 ;
19892 wxBitmap *arg3 = 0 ;
19893 wxRect *arg4 = 0 ;
19894 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19895 int arg6 = (int) -1 ;
19896 wxRect result;
19897 void *argp1 = 0 ;
19898 int res1 = 0 ;
19899 bool temp2 = false ;
19900 void *argp3 = 0 ;
19901 int res3 = 0 ;
19902 wxRect temp4 ;
19903 int val5 ;
19904 int ecode5 = 0 ;
19905 int val6 ;
19906 int ecode6 = 0 ;
19907 PyObject * obj0 = 0 ;
19908 PyObject * obj1 = 0 ;
19909 PyObject * obj2 = 0 ;
19910 PyObject * obj3 = 0 ;
19911 PyObject * obj4 = 0 ;
19912 PyObject * obj5 = 0 ;
19913 char * kwnames[] = {
19914 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19915 };
19916
19917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19919 if (!SWIG_IsOK(res1)) {
19920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19921 }
19922 arg1 = reinterpret_cast< wxDC * >(argp1);
19923 {
19924 arg2 = wxString_in_helper(obj1);
19925 if (arg2 == NULL) SWIG_fail;
19926 temp2 = true;
19927 }
19928 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19929 if (!SWIG_IsOK(res3)) {
19930 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19931 }
19932 if (!argp3) {
19933 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19934 }
19935 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19936 {
19937 arg4 = &temp4;
19938 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19939 }
19940 if (obj4) {
19941 ecode5 = SWIG_AsVal_int(obj4, &val5);
19942 if (!SWIG_IsOK(ecode5)) {
19943 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19944 }
19945 arg5 = static_cast< int >(val5);
19946 }
19947 if (obj5) {
19948 ecode6 = SWIG_AsVal_int(obj5, &val6);
19949 if (!SWIG_IsOK(ecode6)) {
19950 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19951 }
19952 arg6 = static_cast< int >(val6);
19953 }
19954 {
19955 PyThreadState* __tstate = wxPyBeginAllowThreads();
19956 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19957 wxPyEndAllowThreads(__tstate);
19958 if (PyErr_Occurred()) SWIG_fail;
19959 }
19960 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19961 {
19962 if (temp2)
19963 delete arg2;
19964 }
19965 return resultobj;
19966 fail:
19967 {
19968 if (temp2)
19969 delete arg2;
19970 }
19971 return NULL;
19972 }
19973
19974
19975 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19976 PyObject *resultobj = 0;
19977 wxDC *arg1 = (wxDC *) 0 ;
19978 int arg2 ;
19979 wxPoint *arg3 = (wxPoint *) 0 ;
19980 void *argp1 = 0 ;
19981 int res1 = 0 ;
19982 PyObject * obj0 = 0 ;
19983 PyObject * obj1 = 0 ;
19984 char * kwnames[] = {
19985 (char *) "self",(char *) "points", NULL
19986 };
19987
19988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
19989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19990 if (!SWIG_IsOK(res1)) {
19991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
19992 }
19993 arg1 = reinterpret_cast< wxDC * >(argp1);
19994 {
19995 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19996 if (arg3 == NULL) SWIG_fail;
19997 }
19998 {
19999 PyThreadState* __tstate = wxPyBeginAllowThreads();
20000 (arg1)->DrawSpline(arg2,arg3);
20001 wxPyEndAllowThreads(__tstate);
20002 if (PyErr_Occurred()) SWIG_fail;
20003 }
20004 resultobj = SWIG_Py_Void();
20005 {
20006 if (arg3) delete [] arg3;
20007 }
20008 return resultobj;
20009 fail:
20010 {
20011 if (arg3) delete [] arg3;
20012 }
20013 return NULL;
20014 }
20015
20016
20017 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20018 PyObject *resultobj = 0;
20019 wxDC *arg1 = (wxDC *) 0 ;
20020 void *argp1 = 0 ;
20021 int res1 = 0 ;
20022 PyObject *swig_obj[1] ;
20023
20024 if (!args) SWIG_fail;
20025 swig_obj[0] = args;
20026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20027 if (!SWIG_IsOK(res1)) {
20028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20029 }
20030 arg1 = reinterpret_cast< wxDC * >(argp1);
20031 {
20032 PyThreadState* __tstate = wxPyBeginAllowThreads();
20033 (arg1)->Clear();
20034 wxPyEndAllowThreads(__tstate);
20035 if (PyErr_Occurred()) SWIG_fail;
20036 }
20037 resultobj = SWIG_Py_Void();
20038 return resultobj;
20039 fail:
20040 return NULL;
20041 }
20042
20043
20044 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20045 PyObject *resultobj = 0;
20046 wxDC *arg1 = (wxDC *) 0 ;
20047 wxString *arg2 = 0 ;
20048 bool result;
20049 void *argp1 = 0 ;
20050 int res1 = 0 ;
20051 bool temp2 = false ;
20052 PyObject * obj0 = 0 ;
20053 PyObject * obj1 = 0 ;
20054 char * kwnames[] = {
20055 (char *) "self",(char *) "message", NULL
20056 };
20057
20058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20060 if (!SWIG_IsOK(res1)) {
20061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20062 }
20063 arg1 = reinterpret_cast< wxDC * >(argp1);
20064 {
20065 arg2 = wxString_in_helper(obj1);
20066 if (arg2 == NULL) SWIG_fail;
20067 temp2 = true;
20068 }
20069 {
20070 PyThreadState* __tstate = wxPyBeginAllowThreads();
20071 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20072 wxPyEndAllowThreads(__tstate);
20073 if (PyErr_Occurred()) SWIG_fail;
20074 }
20075 {
20076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20077 }
20078 {
20079 if (temp2)
20080 delete arg2;
20081 }
20082 return resultobj;
20083 fail:
20084 {
20085 if (temp2)
20086 delete arg2;
20087 }
20088 return NULL;
20089 }
20090
20091
20092 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20093 PyObject *resultobj = 0;
20094 wxDC *arg1 = (wxDC *) 0 ;
20095 void *argp1 = 0 ;
20096 int res1 = 0 ;
20097 PyObject *swig_obj[1] ;
20098
20099 if (!args) SWIG_fail;
20100 swig_obj[0] = args;
20101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20102 if (!SWIG_IsOK(res1)) {
20103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20104 }
20105 arg1 = reinterpret_cast< wxDC * >(argp1);
20106 {
20107 PyThreadState* __tstate = wxPyBeginAllowThreads();
20108 (arg1)->EndDoc();
20109 wxPyEndAllowThreads(__tstate);
20110 if (PyErr_Occurred()) SWIG_fail;
20111 }
20112 resultobj = SWIG_Py_Void();
20113 return resultobj;
20114 fail:
20115 return NULL;
20116 }
20117
20118
20119 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20120 PyObject *resultobj = 0;
20121 wxDC *arg1 = (wxDC *) 0 ;
20122 void *argp1 = 0 ;
20123 int res1 = 0 ;
20124 PyObject *swig_obj[1] ;
20125
20126 if (!args) SWIG_fail;
20127 swig_obj[0] = args;
20128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20129 if (!SWIG_IsOK(res1)) {
20130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20131 }
20132 arg1 = reinterpret_cast< wxDC * >(argp1);
20133 {
20134 PyThreadState* __tstate = wxPyBeginAllowThreads();
20135 (arg1)->StartPage();
20136 wxPyEndAllowThreads(__tstate);
20137 if (PyErr_Occurred()) SWIG_fail;
20138 }
20139 resultobj = SWIG_Py_Void();
20140 return resultobj;
20141 fail:
20142 return NULL;
20143 }
20144
20145
20146 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20147 PyObject *resultobj = 0;
20148 wxDC *arg1 = (wxDC *) 0 ;
20149 void *argp1 = 0 ;
20150 int res1 = 0 ;
20151 PyObject *swig_obj[1] ;
20152
20153 if (!args) SWIG_fail;
20154 swig_obj[0] = args;
20155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20156 if (!SWIG_IsOK(res1)) {
20157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20158 }
20159 arg1 = reinterpret_cast< wxDC * >(argp1);
20160 {
20161 PyThreadState* __tstate = wxPyBeginAllowThreads();
20162 (arg1)->EndPage();
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_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20174 PyObject *resultobj = 0;
20175 wxDC *arg1 = (wxDC *) 0 ;
20176 wxFont *arg2 = 0 ;
20177 void *argp1 = 0 ;
20178 int res1 = 0 ;
20179 void *argp2 = 0 ;
20180 int res2 = 0 ;
20181 PyObject * obj0 = 0 ;
20182 PyObject * obj1 = 0 ;
20183 char * kwnames[] = {
20184 (char *) "self",(char *) "font", NULL
20185 };
20186
20187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20189 if (!SWIG_IsOK(res1)) {
20190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20191 }
20192 arg1 = reinterpret_cast< wxDC * >(argp1);
20193 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20194 if (!SWIG_IsOK(res2)) {
20195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20196 }
20197 if (!argp2) {
20198 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20199 }
20200 arg2 = reinterpret_cast< wxFont * >(argp2);
20201 {
20202 PyThreadState* __tstate = wxPyBeginAllowThreads();
20203 (arg1)->SetFont((wxFont const &)*arg2);
20204 wxPyEndAllowThreads(__tstate);
20205 if (PyErr_Occurred()) SWIG_fail;
20206 }
20207 resultobj = SWIG_Py_Void();
20208 return resultobj;
20209 fail:
20210 return NULL;
20211 }
20212
20213
20214 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20215 PyObject *resultobj = 0;
20216 wxDC *arg1 = (wxDC *) 0 ;
20217 wxPen *arg2 = 0 ;
20218 void *argp1 = 0 ;
20219 int res1 = 0 ;
20220 void *argp2 = 0 ;
20221 int res2 = 0 ;
20222 PyObject * obj0 = 0 ;
20223 PyObject * obj1 = 0 ;
20224 char * kwnames[] = {
20225 (char *) "self",(char *) "pen", NULL
20226 };
20227
20228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20230 if (!SWIG_IsOK(res1)) {
20231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20232 }
20233 arg1 = reinterpret_cast< wxDC * >(argp1);
20234 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20235 if (!SWIG_IsOK(res2)) {
20236 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20237 }
20238 if (!argp2) {
20239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20240 }
20241 arg2 = reinterpret_cast< wxPen * >(argp2);
20242 {
20243 PyThreadState* __tstate = wxPyBeginAllowThreads();
20244 (arg1)->SetPen((wxPen const &)*arg2);
20245 wxPyEndAllowThreads(__tstate);
20246 if (PyErr_Occurred()) SWIG_fail;
20247 }
20248 resultobj = SWIG_Py_Void();
20249 return resultobj;
20250 fail:
20251 return NULL;
20252 }
20253
20254
20255 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20256 PyObject *resultobj = 0;
20257 wxDC *arg1 = (wxDC *) 0 ;
20258 wxBrush *arg2 = 0 ;
20259 void *argp1 = 0 ;
20260 int res1 = 0 ;
20261 void *argp2 = 0 ;
20262 int res2 = 0 ;
20263 PyObject * obj0 = 0 ;
20264 PyObject * obj1 = 0 ;
20265 char * kwnames[] = {
20266 (char *) "self",(char *) "brush", NULL
20267 };
20268
20269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20271 if (!SWIG_IsOK(res1)) {
20272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20273 }
20274 arg1 = reinterpret_cast< wxDC * >(argp1);
20275 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20276 if (!SWIG_IsOK(res2)) {
20277 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20278 }
20279 if (!argp2) {
20280 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20281 }
20282 arg2 = reinterpret_cast< wxBrush * >(argp2);
20283 {
20284 PyThreadState* __tstate = wxPyBeginAllowThreads();
20285 (arg1)->SetBrush((wxBrush const &)*arg2);
20286 wxPyEndAllowThreads(__tstate);
20287 if (PyErr_Occurred()) SWIG_fail;
20288 }
20289 resultobj = SWIG_Py_Void();
20290 return resultobj;
20291 fail:
20292 return NULL;
20293 }
20294
20295
20296 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20297 PyObject *resultobj = 0;
20298 wxDC *arg1 = (wxDC *) 0 ;
20299 wxBrush *arg2 = 0 ;
20300 void *argp1 = 0 ;
20301 int res1 = 0 ;
20302 void *argp2 = 0 ;
20303 int res2 = 0 ;
20304 PyObject * obj0 = 0 ;
20305 PyObject * obj1 = 0 ;
20306 char * kwnames[] = {
20307 (char *) "self",(char *) "brush", NULL
20308 };
20309
20310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20312 if (!SWIG_IsOK(res1)) {
20313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20314 }
20315 arg1 = reinterpret_cast< wxDC * >(argp1);
20316 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20317 if (!SWIG_IsOK(res2)) {
20318 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20319 }
20320 if (!argp2) {
20321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20322 }
20323 arg2 = reinterpret_cast< wxBrush * >(argp2);
20324 {
20325 PyThreadState* __tstate = wxPyBeginAllowThreads();
20326 (arg1)->SetBackground((wxBrush const &)*arg2);
20327 wxPyEndAllowThreads(__tstate);
20328 if (PyErr_Occurred()) SWIG_fail;
20329 }
20330 resultobj = SWIG_Py_Void();
20331 return resultobj;
20332 fail:
20333 return NULL;
20334 }
20335
20336
20337 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20338 PyObject *resultobj = 0;
20339 wxDC *arg1 = (wxDC *) 0 ;
20340 int arg2 ;
20341 void *argp1 = 0 ;
20342 int res1 = 0 ;
20343 int val2 ;
20344 int ecode2 = 0 ;
20345 PyObject * obj0 = 0 ;
20346 PyObject * obj1 = 0 ;
20347 char * kwnames[] = {
20348 (char *) "self",(char *) "mode", NULL
20349 };
20350
20351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20353 if (!SWIG_IsOK(res1)) {
20354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20355 }
20356 arg1 = reinterpret_cast< wxDC * >(argp1);
20357 ecode2 = SWIG_AsVal_int(obj1, &val2);
20358 if (!SWIG_IsOK(ecode2)) {
20359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20360 }
20361 arg2 = static_cast< int >(val2);
20362 {
20363 PyThreadState* __tstate = wxPyBeginAllowThreads();
20364 (arg1)->SetBackgroundMode(arg2);
20365 wxPyEndAllowThreads(__tstate);
20366 if (PyErr_Occurred()) SWIG_fail;
20367 }
20368 resultobj = SWIG_Py_Void();
20369 return resultobj;
20370 fail:
20371 return NULL;
20372 }
20373
20374
20375 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20376 PyObject *resultobj = 0;
20377 wxDC *arg1 = (wxDC *) 0 ;
20378 wxPalette *arg2 = 0 ;
20379 void *argp1 = 0 ;
20380 int res1 = 0 ;
20381 void *argp2 = 0 ;
20382 int res2 = 0 ;
20383 PyObject * obj0 = 0 ;
20384 PyObject * obj1 = 0 ;
20385 char * kwnames[] = {
20386 (char *) "self",(char *) "palette", NULL
20387 };
20388
20389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20391 if (!SWIG_IsOK(res1)) {
20392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20393 }
20394 arg1 = reinterpret_cast< wxDC * >(argp1);
20395 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20396 if (!SWIG_IsOK(res2)) {
20397 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20398 }
20399 if (!argp2) {
20400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20401 }
20402 arg2 = reinterpret_cast< wxPalette * >(argp2);
20403 {
20404 PyThreadState* __tstate = wxPyBeginAllowThreads();
20405 (arg1)->SetPalette((wxPalette const &)*arg2);
20406 wxPyEndAllowThreads(__tstate);
20407 if (PyErr_Occurred()) SWIG_fail;
20408 }
20409 resultobj = SWIG_Py_Void();
20410 return resultobj;
20411 fail:
20412 return NULL;
20413 }
20414
20415
20416 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20417 PyObject *resultobj = 0;
20418 wxDC *arg1 = (wxDC *) 0 ;
20419 void *argp1 = 0 ;
20420 int res1 = 0 ;
20421 PyObject *swig_obj[1] ;
20422
20423 if (!args) SWIG_fail;
20424 swig_obj[0] = args;
20425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20426 if (!SWIG_IsOK(res1)) {
20427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20428 }
20429 arg1 = reinterpret_cast< wxDC * >(argp1);
20430 {
20431 PyThreadState* __tstate = wxPyBeginAllowThreads();
20432 (arg1)->DestroyClippingRegion();
20433 wxPyEndAllowThreads(__tstate);
20434 if (PyErr_Occurred()) SWIG_fail;
20435 }
20436 resultobj = SWIG_Py_Void();
20437 return resultobj;
20438 fail:
20439 return NULL;
20440 }
20441
20442
20443 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20444 PyObject *resultobj = 0;
20445 wxDC *arg1 = (wxDC *) 0 ;
20446 int *arg2 = (int *) 0 ;
20447 int *arg3 = (int *) 0 ;
20448 int *arg4 = (int *) 0 ;
20449 int *arg5 = (int *) 0 ;
20450 void *argp1 = 0 ;
20451 int res1 = 0 ;
20452 int temp2 ;
20453 int res2 = SWIG_TMPOBJ ;
20454 int temp3 ;
20455 int res3 = SWIG_TMPOBJ ;
20456 int temp4 ;
20457 int res4 = SWIG_TMPOBJ ;
20458 int temp5 ;
20459 int res5 = SWIG_TMPOBJ ;
20460 PyObject *swig_obj[1] ;
20461
20462 arg2 = &temp2;
20463 arg3 = &temp3;
20464 arg4 = &temp4;
20465 arg5 = &temp5;
20466 if (!args) SWIG_fail;
20467 swig_obj[0] = args;
20468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20469 if (!SWIG_IsOK(res1)) {
20470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20471 }
20472 arg1 = reinterpret_cast< wxDC * >(argp1);
20473 {
20474 PyThreadState* __tstate = wxPyBeginAllowThreads();
20475 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20476 wxPyEndAllowThreads(__tstate);
20477 if (PyErr_Occurred()) SWIG_fail;
20478 }
20479 resultobj = SWIG_Py_Void();
20480 if (SWIG_IsTmpObj(res2)) {
20481 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20482 } else {
20483 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20484 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20485 }
20486 if (SWIG_IsTmpObj(res3)) {
20487 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20488 } else {
20489 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20490 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20491 }
20492 if (SWIG_IsTmpObj(res4)) {
20493 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20494 } else {
20495 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20496 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20497 }
20498 if (SWIG_IsTmpObj(res5)) {
20499 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20500 } else {
20501 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20502 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20503 }
20504 return resultobj;
20505 fail:
20506 return NULL;
20507 }
20508
20509
20510 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20511 PyObject *resultobj = 0;
20512 wxDC *arg1 = (wxDC *) 0 ;
20513 wxRect result;
20514 void *argp1 = 0 ;
20515 int res1 = 0 ;
20516 PyObject *swig_obj[1] ;
20517
20518 if (!args) SWIG_fail;
20519 swig_obj[0] = args;
20520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20521 if (!SWIG_IsOK(res1)) {
20522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20523 }
20524 arg1 = reinterpret_cast< wxDC * >(argp1);
20525 {
20526 PyThreadState* __tstate = wxPyBeginAllowThreads();
20527 result = wxDC_GetClippingRect(arg1);
20528 wxPyEndAllowThreads(__tstate);
20529 if (PyErr_Occurred()) SWIG_fail;
20530 }
20531 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20532 return resultobj;
20533 fail:
20534 return NULL;
20535 }
20536
20537
20538 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20539 PyObject *resultobj = 0;
20540 wxDC *arg1 = (wxDC *) 0 ;
20541 int result;
20542 void *argp1 = 0 ;
20543 int res1 = 0 ;
20544 PyObject *swig_obj[1] ;
20545
20546 if (!args) SWIG_fail;
20547 swig_obj[0] = args;
20548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20549 if (!SWIG_IsOK(res1)) {
20550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20551 }
20552 arg1 = reinterpret_cast< wxDC * >(argp1);
20553 {
20554 PyThreadState* __tstate = wxPyBeginAllowThreads();
20555 result = (int)((wxDC const *)arg1)->GetCharHeight();
20556 wxPyEndAllowThreads(__tstate);
20557 if (PyErr_Occurred()) SWIG_fail;
20558 }
20559 resultobj = SWIG_From_int(static_cast< int >(result));
20560 return resultobj;
20561 fail:
20562 return NULL;
20563 }
20564
20565
20566 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20567 PyObject *resultobj = 0;
20568 wxDC *arg1 = (wxDC *) 0 ;
20569 int result;
20570 void *argp1 = 0 ;
20571 int res1 = 0 ;
20572 PyObject *swig_obj[1] ;
20573
20574 if (!args) SWIG_fail;
20575 swig_obj[0] = args;
20576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20577 if (!SWIG_IsOK(res1)) {
20578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20579 }
20580 arg1 = reinterpret_cast< wxDC * >(argp1);
20581 {
20582 PyThreadState* __tstate = wxPyBeginAllowThreads();
20583 result = (int)((wxDC const *)arg1)->GetCharWidth();
20584 wxPyEndAllowThreads(__tstate);
20585 if (PyErr_Occurred()) SWIG_fail;
20586 }
20587 resultobj = SWIG_From_int(static_cast< int >(result));
20588 return resultobj;
20589 fail:
20590 return NULL;
20591 }
20592
20593
20594 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20595 PyObject *resultobj = 0;
20596 wxDC *arg1 = (wxDC *) 0 ;
20597 wxString *arg2 = 0 ;
20598 int *arg3 = (int *) 0 ;
20599 int *arg4 = (int *) 0 ;
20600 void *argp1 = 0 ;
20601 int res1 = 0 ;
20602 bool temp2 = false ;
20603 int temp3 ;
20604 int res3 = SWIG_TMPOBJ ;
20605 int temp4 ;
20606 int res4 = SWIG_TMPOBJ ;
20607 PyObject * obj0 = 0 ;
20608 PyObject * obj1 = 0 ;
20609 char * kwnames[] = {
20610 (char *) "self",(char *) "string", NULL
20611 };
20612
20613 arg3 = &temp3;
20614 arg4 = &temp4;
20615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20617 if (!SWIG_IsOK(res1)) {
20618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20619 }
20620 arg1 = reinterpret_cast< wxDC * >(argp1);
20621 {
20622 arg2 = wxString_in_helper(obj1);
20623 if (arg2 == NULL) SWIG_fail;
20624 temp2 = true;
20625 }
20626 {
20627 PyThreadState* __tstate = wxPyBeginAllowThreads();
20628 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20629 wxPyEndAllowThreads(__tstate);
20630 if (PyErr_Occurred()) SWIG_fail;
20631 }
20632 resultobj = SWIG_Py_Void();
20633 if (SWIG_IsTmpObj(res3)) {
20634 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20635 } else {
20636 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20637 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20638 }
20639 if (SWIG_IsTmpObj(res4)) {
20640 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20641 } else {
20642 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20643 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20644 }
20645 {
20646 if (temp2)
20647 delete arg2;
20648 }
20649 return resultobj;
20650 fail:
20651 {
20652 if (temp2)
20653 delete arg2;
20654 }
20655 return NULL;
20656 }
20657
20658
20659 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20660 PyObject *resultobj = 0;
20661 wxDC *arg1 = (wxDC *) 0 ;
20662 wxString *arg2 = 0 ;
20663 int *arg3 = (int *) 0 ;
20664 int *arg4 = (int *) 0 ;
20665 int *arg5 = (int *) 0 ;
20666 int *arg6 = (int *) 0 ;
20667 wxFont *arg7 = (wxFont *) NULL ;
20668 void *argp1 = 0 ;
20669 int res1 = 0 ;
20670 bool temp2 = false ;
20671 int temp3 ;
20672 int res3 = SWIG_TMPOBJ ;
20673 int temp4 ;
20674 int res4 = SWIG_TMPOBJ ;
20675 int temp5 ;
20676 int res5 = SWIG_TMPOBJ ;
20677 int temp6 ;
20678 int res6 = SWIG_TMPOBJ ;
20679 void *argp7 = 0 ;
20680 int res7 = 0 ;
20681 PyObject * obj0 = 0 ;
20682 PyObject * obj1 = 0 ;
20683 PyObject * obj2 = 0 ;
20684 char * kwnames[] = {
20685 (char *) "self",(char *) "string",(char *) "font", NULL
20686 };
20687
20688 arg3 = &temp3;
20689 arg4 = &temp4;
20690 arg5 = &temp5;
20691 arg6 = &temp6;
20692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20694 if (!SWIG_IsOK(res1)) {
20695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20696 }
20697 arg1 = reinterpret_cast< wxDC * >(argp1);
20698 {
20699 arg2 = wxString_in_helper(obj1);
20700 if (arg2 == NULL) SWIG_fail;
20701 temp2 = true;
20702 }
20703 if (obj2) {
20704 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20705 if (!SWIG_IsOK(res7)) {
20706 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
20707 }
20708 arg7 = reinterpret_cast< wxFont * >(argp7);
20709 }
20710 {
20711 PyThreadState* __tstate = wxPyBeginAllowThreads();
20712 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20713 wxPyEndAllowThreads(__tstate);
20714 if (PyErr_Occurred()) SWIG_fail;
20715 }
20716 resultobj = SWIG_Py_Void();
20717 if (SWIG_IsTmpObj(res3)) {
20718 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20719 } else {
20720 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20721 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20722 }
20723 if (SWIG_IsTmpObj(res4)) {
20724 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20725 } else {
20726 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20727 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20728 }
20729 if (SWIG_IsTmpObj(res5)) {
20730 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20731 } else {
20732 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20733 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20734 }
20735 if (SWIG_IsTmpObj(res6)) {
20736 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20737 } else {
20738 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20739 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20740 }
20741 {
20742 if (temp2)
20743 delete arg2;
20744 }
20745 return resultobj;
20746 fail:
20747 {
20748 if (temp2)
20749 delete arg2;
20750 }
20751 return NULL;
20752 }
20753
20754
20755 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20756 PyObject *resultobj = 0;
20757 wxDC *arg1 = (wxDC *) 0 ;
20758 wxString *arg2 = 0 ;
20759 int *arg3 = (int *) 0 ;
20760 int *arg4 = (int *) 0 ;
20761 int *arg5 = (int *) 0 ;
20762 wxFont *arg6 = (wxFont *) NULL ;
20763 void *argp1 = 0 ;
20764 int res1 = 0 ;
20765 bool temp2 = false ;
20766 int temp3 ;
20767 int res3 = SWIG_TMPOBJ ;
20768 int temp4 ;
20769 int res4 = SWIG_TMPOBJ ;
20770 int temp5 ;
20771 int res5 = SWIG_TMPOBJ ;
20772 void *argp6 = 0 ;
20773 int res6 = 0 ;
20774 PyObject * obj0 = 0 ;
20775 PyObject * obj1 = 0 ;
20776 PyObject * obj2 = 0 ;
20777 char * kwnames[] = {
20778 (char *) "self",(char *) "text",(char *) "font", NULL
20779 };
20780
20781 arg3 = &temp3;
20782 arg4 = &temp4;
20783 arg5 = &temp5;
20784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20786 if (!SWIG_IsOK(res1)) {
20787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20788 }
20789 arg1 = reinterpret_cast< wxDC * >(argp1);
20790 {
20791 arg2 = wxString_in_helper(obj1);
20792 if (arg2 == NULL) SWIG_fail;
20793 temp2 = true;
20794 }
20795 if (obj2) {
20796 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20797 if (!SWIG_IsOK(res6)) {
20798 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
20799 }
20800 arg6 = reinterpret_cast< wxFont * >(argp6);
20801 }
20802 {
20803 PyThreadState* __tstate = wxPyBeginAllowThreads();
20804 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20805 wxPyEndAllowThreads(__tstate);
20806 if (PyErr_Occurred()) SWIG_fail;
20807 }
20808 resultobj = SWIG_Py_Void();
20809 if (SWIG_IsTmpObj(res3)) {
20810 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20811 } else {
20812 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20813 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20814 }
20815 if (SWIG_IsTmpObj(res4)) {
20816 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20817 } else {
20818 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20819 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20820 }
20821 if (SWIG_IsTmpObj(res5)) {
20822 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20823 } else {
20824 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20825 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20826 }
20827 {
20828 if (temp2)
20829 delete arg2;
20830 }
20831 return resultobj;
20832 fail:
20833 {
20834 if (temp2)
20835 delete arg2;
20836 }
20837 return NULL;
20838 }
20839
20840
20841 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20842 PyObject *resultobj = 0;
20843 wxDC *arg1 = (wxDC *) 0 ;
20844 wxString *arg2 = 0 ;
20845 wxArrayInt result;
20846 void *argp1 = 0 ;
20847 int res1 = 0 ;
20848 bool temp2 = false ;
20849 PyObject * obj0 = 0 ;
20850 PyObject * obj1 = 0 ;
20851 char * kwnames[] = {
20852 (char *) "self",(char *) "text", NULL
20853 };
20854
20855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20857 if (!SWIG_IsOK(res1)) {
20858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20859 }
20860 arg1 = reinterpret_cast< wxDC * >(argp1);
20861 {
20862 arg2 = wxString_in_helper(obj1);
20863 if (arg2 == NULL) SWIG_fail;
20864 temp2 = true;
20865 }
20866 {
20867 PyThreadState* __tstate = wxPyBeginAllowThreads();
20868 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20869 wxPyEndAllowThreads(__tstate);
20870 if (PyErr_Occurred()) SWIG_fail;
20871 }
20872 {
20873 resultobj = wxArrayInt2PyList_helper(result);
20874 }
20875 {
20876 if (temp2)
20877 delete arg2;
20878 }
20879 return resultobj;
20880 fail:
20881 {
20882 if (temp2)
20883 delete arg2;
20884 }
20885 return NULL;
20886 }
20887
20888
20889 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20890 PyObject *resultobj = 0;
20891 wxDC *arg1 = (wxDC *) 0 ;
20892 wxSize result;
20893 void *argp1 = 0 ;
20894 int res1 = 0 ;
20895 PyObject *swig_obj[1] ;
20896
20897 if (!args) SWIG_fail;
20898 swig_obj[0] = args;
20899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20900 if (!SWIG_IsOK(res1)) {
20901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20902 }
20903 arg1 = reinterpret_cast< wxDC * >(argp1);
20904 {
20905 PyThreadState* __tstate = wxPyBeginAllowThreads();
20906 result = (arg1)->GetSize();
20907 wxPyEndAllowThreads(__tstate);
20908 if (PyErr_Occurred()) SWIG_fail;
20909 }
20910 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20911 return resultobj;
20912 fail:
20913 return NULL;
20914 }
20915
20916
20917 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20918 PyObject *resultobj = 0;
20919 wxDC *arg1 = (wxDC *) 0 ;
20920 int *arg2 = (int *) 0 ;
20921 int *arg3 = (int *) 0 ;
20922 void *argp1 = 0 ;
20923 int res1 = 0 ;
20924 int temp2 ;
20925 int res2 = SWIG_TMPOBJ ;
20926 int temp3 ;
20927 int res3 = SWIG_TMPOBJ ;
20928 PyObject *swig_obj[1] ;
20929
20930 arg2 = &temp2;
20931 arg3 = &temp3;
20932 if (!args) SWIG_fail;
20933 swig_obj[0] = args;
20934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20935 if (!SWIG_IsOK(res1)) {
20936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20937 }
20938 arg1 = reinterpret_cast< wxDC * >(argp1);
20939 {
20940 PyThreadState* __tstate = wxPyBeginAllowThreads();
20941 (arg1)->GetSize(arg2,arg3);
20942 wxPyEndAllowThreads(__tstate);
20943 if (PyErr_Occurred()) SWIG_fail;
20944 }
20945 resultobj = SWIG_Py_Void();
20946 if (SWIG_IsTmpObj(res2)) {
20947 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20948 } else {
20949 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20950 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20951 }
20952 if (SWIG_IsTmpObj(res3)) {
20953 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20954 } else {
20955 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20956 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20957 }
20958 return resultobj;
20959 fail:
20960 return NULL;
20961 }
20962
20963
20964 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20965 PyObject *resultobj = 0;
20966 wxDC *arg1 = (wxDC *) 0 ;
20967 wxSize result;
20968 void *argp1 = 0 ;
20969 int res1 = 0 ;
20970 PyObject *swig_obj[1] ;
20971
20972 if (!args) SWIG_fail;
20973 swig_obj[0] = args;
20974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20975 if (!SWIG_IsOK(res1)) {
20976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20977 }
20978 arg1 = reinterpret_cast< wxDC * >(argp1);
20979 {
20980 PyThreadState* __tstate = wxPyBeginAllowThreads();
20981 result = ((wxDC const *)arg1)->GetSizeMM();
20982 wxPyEndAllowThreads(__tstate);
20983 if (PyErr_Occurred()) SWIG_fail;
20984 }
20985 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20986 return resultobj;
20987 fail:
20988 return NULL;
20989 }
20990
20991
20992 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20993 PyObject *resultobj = 0;
20994 wxDC *arg1 = (wxDC *) 0 ;
20995 int *arg2 = (int *) 0 ;
20996 int *arg3 = (int *) 0 ;
20997 void *argp1 = 0 ;
20998 int res1 = 0 ;
20999 int temp2 ;
21000 int res2 = SWIG_TMPOBJ ;
21001 int temp3 ;
21002 int res3 = SWIG_TMPOBJ ;
21003 PyObject *swig_obj[1] ;
21004
21005 arg2 = &temp2;
21006 arg3 = &temp3;
21007 if (!args) SWIG_fail;
21008 swig_obj[0] = args;
21009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21010 if (!SWIG_IsOK(res1)) {
21011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21012 }
21013 arg1 = reinterpret_cast< wxDC * >(argp1);
21014 {
21015 PyThreadState* __tstate = wxPyBeginAllowThreads();
21016 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21017 wxPyEndAllowThreads(__tstate);
21018 if (PyErr_Occurred()) SWIG_fail;
21019 }
21020 resultobj = SWIG_Py_Void();
21021 if (SWIG_IsTmpObj(res2)) {
21022 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21023 } else {
21024 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21025 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21026 }
21027 if (SWIG_IsTmpObj(res3)) {
21028 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21029 } else {
21030 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21031 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21032 }
21033 return resultobj;
21034 fail:
21035 return NULL;
21036 }
21037
21038
21039 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21040 PyObject *resultobj = 0;
21041 wxDC *arg1 = (wxDC *) 0 ;
21042 int arg2 ;
21043 int result;
21044 void *argp1 = 0 ;
21045 int res1 = 0 ;
21046 int val2 ;
21047 int ecode2 = 0 ;
21048 PyObject * obj0 = 0 ;
21049 PyObject * obj1 = 0 ;
21050 char * kwnames[] = {
21051 (char *) "self",(char *) "x", NULL
21052 };
21053
21054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21056 if (!SWIG_IsOK(res1)) {
21057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21058 }
21059 arg1 = reinterpret_cast< wxDC * >(argp1);
21060 ecode2 = SWIG_AsVal_int(obj1, &val2);
21061 if (!SWIG_IsOK(ecode2)) {
21062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21063 }
21064 arg2 = static_cast< int >(val2);
21065 {
21066 PyThreadState* __tstate = wxPyBeginAllowThreads();
21067 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21068 wxPyEndAllowThreads(__tstate);
21069 if (PyErr_Occurred()) SWIG_fail;
21070 }
21071 resultobj = SWIG_From_int(static_cast< int >(result));
21072 return resultobj;
21073 fail:
21074 return NULL;
21075 }
21076
21077
21078 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21079 PyObject *resultobj = 0;
21080 wxDC *arg1 = (wxDC *) 0 ;
21081 int arg2 ;
21082 int result;
21083 void *argp1 = 0 ;
21084 int res1 = 0 ;
21085 int val2 ;
21086 int ecode2 = 0 ;
21087 PyObject * obj0 = 0 ;
21088 PyObject * obj1 = 0 ;
21089 char * kwnames[] = {
21090 (char *) "self",(char *) "y", NULL
21091 };
21092
21093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21095 if (!SWIG_IsOK(res1)) {
21096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21097 }
21098 arg1 = reinterpret_cast< wxDC * >(argp1);
21099 ecode2 = SWIG_AsVal_int(obj1, &val2);
21100 if (!SWIG_IsOK(ecode2)) {
21101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21102 }
21103 arg2 = static_cast< int >(val2);
21104 {
21105 PyThreadState* __tstate = wxPyBeginAllowThreads();
21106 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21107 wxPyEndAllowThreads(__tstate);
21108 if (PyErr_Occurred()) SWIG_fail;
21109 }
21110 resultobj = SWIG_From_int(static_cast< int >(result));
21111 return resultobj;
21112 fail:
21113 return NULL;
21114 }
21115
21116
21117 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21118 PyObject *resultobj = 0;
21119 wxDC *arg1 = (wxDC *) 0 ;
21120 int arg2 ;
21121 int result;
21122 void *argp1 = 0 ;
21123 int res1 = 0 ;
21124 int val2 ;
21125 int ecode2 = 0 ;
21126 PyObject * obj0 = 0 ;
21127 PyObject * obj1 = 0 ;
21128 char * kwnames[] = {
21129 (char *) "self",(char *) "x", NULL
21130 };
21131
21132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21134 if (!SWIG_IsOK(res1)) {
21135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21136 }
21137 arg1 = reinterpret_cast< wxDC * >(argp1);
21138 ecode2 = SWIG_AsVal_int(obj1, &val2);
21139 if (!SWIG_IsOK(ecode2)) {
21140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21141 }
21142 arg2 = static_cast< int >(val2);
21143 {
21144 PyThreadState* __tstate = wxPyBeginAllowThreads();
21145 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21146 wxPyEndAllowThreads(__tstate);
21147 if (PyErr_Occurred()) SWIG_fail;
21148 }
21149 resultobj = SWIG_From_int(static_cast< int >(result));
21150 return resultobj;
21151 fail:
21152 return NULL;
21153 }
21154
21155
21156 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21157 PyObject *resultobj = 0;
21158 wxDC *arg1 = (wxDC *) 0 ;
21159 int arg2 ;
21160 int result;
21161 void *argp1 = 0 ;
21162 int res1 = 0 ;
21163 int val2 ;
21164 int ecode2 = 0 ;
21165 PyObject * obj0 = 0 ;
21166 PyObject * obj1 = 0 ;
21167 char * kwnames[] = {
21168 (char *) "self",(char *) "y", NULL
21169 };
21170
21171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21173 if (!SWIG_IsOK(res1)) {
21174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21175 }
21176 arg1 = reinterpret_cast< wxDC * >(argp1);
21177 ecode2 = SWIG_AsVal_int(obj1, &val2);
21178 if (!SWIG_IsOK(ecode2)) {
21179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21180 }
21181 arg2 = static_cast< int >(val2);
21182 {
21183 PyThreadState* __tstate = wxPyBeginAllowThreads();
21184 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21185 wxPyEndAllowThreads(__tstate);
21186 if (PyErr_Occurred()) SWIG_fail;
21187 }
21188 resultobj = SWIG_From_int(static_cast< int >(result));
21189 return resultobj;
21190 fail:
21191 return NULL;
21192 }
21193
21194
21195 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21196 PyObject *resultobj = 0;
21197 wxDC *arg1 = (wxDC *) 0 ;
21198 int arg2 ;
21199 int result;
21200 void *argp1 = 0 ;
21201 int res1 = 0 ;
21202 int val2 ;
21203 int ecode2 = 0 ;
21204 PyObject * obj0 = 0 ;
21205 PyObject * obj1 = 0 ;
21206 char * kwnames[] = {
21207 (char *) "self",(char *) "x", NULL
21208 };
21209
21210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21212 if (!SWIG_IsOK(res1)) {
21213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21214 }
21215 arg1 = reinterpret_cast< wxDC * >(argp1);
21216 ecode2 = SWIG_AsVal_int(obj1, &val2);
21217 if (!SWIG_IsOK(ecode2)) {
21218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21219 }
21220 arg2 = static_cast< int >(val2);
21221 {
21222 PyThreadState* __tstate = wxPyBeginAllowThreads();
21223 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21224 wxPyEndAllowThreads(__tstate);
21225 if (PyErr_Occurred()) SWIG_fail;
21226 }
21227 resultobj = SWIG_From_int(static_cast< int >(result));
21228 return resultobj;
21229 fail:
21230 return NULL;
21231 }
21232
21233
21234 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21235 PyObject *resultobj = 0;
21236 wxDC *arg1 = (wxDC *) 0 ;
21237 int arg2 ;
21238 int result;
21239 void *argp1 = 0 ;
21240 int res1 = 0 ;
21241 int val2 ;
21242 int ecode2 = 0 ;
21243 PyObject * obj0 = 0 ;
21244 PyObject * obj1 = 0 ;
21245 char * kwnames[] = {
21246 (char *) "self",(char *) "y", NULL
21247 };
21248
21249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21251 if (!SWIG_IsOK(res1)) {
21252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21253 }
21254 arg1 = reinterpret_cast< wxDC * >(argp1);
21255 ecode2 = SWIG_AsVal_int(obj1, &val2);
21256 if (!SWIG_IsOK(ecode2)) {
21257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21258 }
21259 arg2 = static_cast< int >(val2);
21260 {
21261 PyThreadState* __tstate = wxPyBeginAllowThreads();
21262 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21263 wxPyEndAllowThreads(__tstate);
21264 if (PyErr_Occurred()) SWIG_fail;
21265 }
21266 resultobj = SWIG_From_int(static_cast< int >(result));
21267 return resultobj;
21268 fail:
21269 return NULL;
21270 }
21271
21272
21273 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21274 PyObject *resultobj = 0;
21275 wxDC *arg1 = (wxDC *) 0 ;
21276 int arg2 ;
21277 int result;
21278 void *argp1 = 0 ;
21279 int res1 = 0 ;
21280 int val2 ;
21281 int ecode2 = 0 ;
21282 PyObject * obj0 = 0 ;
21283 PyObject * obj1 = 0 ;
21284 char * kwnames[] = {
21285 (char *) "self",(char *) "x", NULL
21286 };
21287
21288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21290 if (!SWIG_IsOK(res1)) {
21291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21292 }
21293 arg1 = reinterpret_cast< wxDC * >(argp1);
21294 ecode2 = SWIG_AsVal_int(obj1, &val2);
21295 if (!SWIG_IsOK(ecode2)) {
21296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21297 }
21298 arg2 = static_cast< int >(val2);
21299 {
21300 PyThreadState* __tstate = wxPyBeginAllowThreads();
21301 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21302 wxPyEndAllowThreads(__tstate);
21303 if (PyErr_Occurred()) SWIG_fail;
21304 }
21305 resultobj = SWIG_From_int(static_cast< int >(result));
21306 return resultobj;
21307 fail:
21308 return NULL;
21309 }
21310
21311
21312 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21313 PyObject *resultobj = 0;
21314 wxDC *arg1 = (wxDC *) 0 ;
21315 int arg2 ;
21316 int result;
21317 void *argp1 = 0 ;
21318 int res1 = 0 ;
21319 int val2 ;
21320 int ecode2 = 0 ;
21321 PyObject * obj0 = 0 ;
21322 PyObject * obj1 = 0 ;
21323 char * kwnames[] = {
21324 (char *) "self",(char *) "y", NULL
21325 };
21326
21327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21329 if (!SWIG_IsOK(res1)) {
21330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21331 }
21332 arg1 = reinterpret_cast< wxDC * >(argp1);
21333 ecode2 = SWIG_AsVal_int(obj1, &val2);
21334 if (!SWIG_IsOK(ecode2)) {
21335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21336 }
21337 arg2 = static_cast< int >(val2);
21338 {
21339 PyThreadState* __tstate = wxPyBeginAllowThreads();
21340 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21341 wxPyEndAllowThreads(__tstate);
21342 if (PyErr_Occurred()) SWIG_fail;
21343 }
21344 resultobj = SWIG_From_int(static_cast< int >(result));
21345 return resultobj;
21346 fail:
21347 return NULL;
21348 }
21349
21350
21351 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21352 PyObject *resultobj = 0;
21353 wxDC *arg1 = (wxDC *) 0 ;
21354 bool result;
21355 void *argp1 = 0 ;
21356 int res1 = 0 ;
21357 PyObject *swig_obj[1] ;
21358
21359 if (!args) SWIG_fail;
21360 swig_obj[0] = args;
21361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21362 if (!SWIG_IsOK(res1)) {
21363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21364 }
21365 arg1 = reinterpret_cast< wxDC * >(argp1);
21366 {
21367 PyThreadState* __tstate = wxPyBeginAllowThreads();
21368 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21369 wxPyEndAllowThreads(__tstate);
21370 if (PyErr_Occurred()) SWIG_fail;
21371 }
21372 {
21373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21374 }
21375 return resultobj;
21376 fail:
21377 return NULL;
21378 }
21379
21380
21381 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21382 PyObject *resultobj = 0;
21383 wxDC *arg1 = (wxDC *) 0 ;
21384 bool result;
21385 void *argp1 = 0 ;
21386 int res1 = 0 ;
21387 PyObject *swig_obj[1] ;
21388
21389 if (!args) SWIG_fail;
21390 swig_obj[0] = args;
21391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21392 if (!SWIG_IsOK(res1)) {
21393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21394 }
21395 arg1 = reinterpret_cast< wxDC * >(argp1);
21396 {
21397 PyThreadState* __tstate = wxPyBeginAllowThreads();
21398 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21399 wxPyEndAllowThreads(__tstate);
21400 if (PyErr_Occurred()) SWIG_fail;
21401 }
21402 {
21403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21404 }
21405 return resultobj;
21406 fail:
21407 return NULL;
21408 }
21409
21410
21411 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21412 PyObject *resultobj = 0;
21413 wxDC *arg1 = (wxDC *) 0 ;
21414 int result;
21415 void *argp1 = 0 ;
21416 int res1 = 0 ;
21417 PyObject *swig_obj[1] ;
21418
21419 if (!args) SWIG_fail;
21420 swig_obj[0] = args;
21421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21422 if (!SWIG_IsOK(res1)) {
21423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21424 }
21425 arg1 = reinterpret_cast< wxDC * >(argp1);
21426 {
21427 PyThreadState* __tstate = wxPyBeginAllowThreads();
21428 result = (int)((wxDC const *)arg1)->GetDepth();
21429 wxPyEndAllowThreads(__tstate);
21430 if (PyErr_Occurred()) SWIG_fail;
21431 }
21432 resultobj = SWIG_From_int(static_cast< int >(result));
21433 return resultobj;
21434 fail:
21435 return NULL;
21436 }
21437
21438
21439 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21440 PyObject *resultobj = 0;
21441 wxDC *arg1 = (wxDC *) 0 ;
21442 wxSize result;
21443 void *argp1 = 0 ;
21444 int res1 = 0 ;
21445 PyObject *swig_obj[1] ;
21446
21447 if (!args) SWIG_fail;
21448 swig_obj[0] = args;
21449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21450 if (!SWIG_IsOK(res1)) {
21451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21452 }
21453 arg1 = reinterpret_cast< wxDC * >(argp1);
21454 {
21455 PyThreadState* __tstate = wxPyBeginAllowThreads();
21456 result = ((wxDC const *)arg1)->GetPPI();
21457 wxPyEndAllowThreads(__tstate);
21458 if (PyErr_Occurred()) SWIG_fail;
21459 }
21460 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21461 return resultobj;
21462 fail:
21463 return NULL;
21464 }
21465
21466
21467 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21468 PyObject *resultobj = 0;
21469 wxDC *arg1 = (wxDC *) 0 ;
21470 bool result;
21471 void *argp1 = 0 ;
21472 int res1 = 0 ;
21473 PyObject *swig_obj[1] ;
21474
21475 if (!args) SWIG_fail;
21476 swig_obj[0] = args;
21477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21478 if (!SWIG_IsOK(res1)) {
21479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
21480 }
21481 arg1 = reinterpret_cast< wxDC * >(argp1);
21482 {
21483 PyThreadState* __tstate = wxPyBeginAllowThreads();
21484 result = (bool)((wxDC const *)arg1)->IsOk();
21485 wxPyEndAllowThreads(__tstate);
21486 if (PyErr_Occurred()) SWIG_fail;
21487 }
21488 {
21489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21490 }
21491 return resultobj;
21492 fail:
21493 return NULL;
21494 }
21495
21496
21497 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21498 PyObject *resultobj = 0;
21499 wxDC *arg1 = (wxDC *) 0 ;
21500 int result;
21501 void *argp1 = 0 ;
21502 int res1 = 0 ;
21503 PyObject *swig_obj[1] ;
21504
21505 if (!args) SWIG_fail;
21506 swig_obj[0] = args;
21507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21508 if (!SWIG_IsOK(res1)) {
21509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21510 }
21511 arg1 = reinterpret_cast< wxDC * >(argp1);
21512 {
21513 PyThreadState* __tstate = wxPyBeginAllowThreads();
21514 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21515 wxPyEndAllowThreads(__tstate);
21516 if (PyErr_Occurred()) SWIG_fail;
21517 }
21518 resultobj = SWIG_From_int(static_cast< int >(result));
21519 return resultobj;
21520 fail:
21521 return NULL;
21522 }
21523
21524
21525 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21526 PyObject *resultobj = 0;
21527 wxDC *arg1 = (wxDC *) 0 ;
21528 wxBrush *result = 0 ;
21529 void *argp1 = 0 ;
21530 int res1 = 0 ;
21531 PyObject *swig_obj[1] ;
21532
21533 if (!args) SWIG_fail;
21534 swig_obj[0] = args;
21535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21536 if (!SWIG_IsOK(res1)) {
21537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21538 }
21539 arg1 = reinterpret_cast< wxDC * >(argp1);
21540 {
21541 PyThreadState* __tstate = wxPyBeginAllowThreads();
21542 {
21543 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21544 result = (wxBrush *) &_result_ref;
21545 }
21546 wxPyEndAllowThreads(__tstate);
21547 if (PyErr_Occurred()) SWIG_fail;
21548 }
21549 {
21550 wxBrush* resultptr = new wxBrush(*result);
21551 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21552 }
21553 return resultobj;
21554 fail:
21555 return NULL;
21556 }
21557
21558
21559 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21560 PyObject *resultobj = 0;
21561 wxDC *arg1 = (wxDC *) 0 ;
21562 wxBrush *result = 0 ;
21563 void *argp1 = 0 ;
21564 int res1 = 0 ;
21565 PyObject *swig_obj[1] ;
21566
21567 if (!args) SWIG_fail;
21568 swig_obj[0] = args;
21569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21570 if (!SWIG_IsOK(res1)) {
21571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21572 }
21573 arg1 = reinterpret_cast< wxDC * >(argp1);
21574 {
21575 PyThreadState* __tstate = wxPyBeginAllowThreads();
21576 {
21577 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21578 result = (wxBrush *) &_result_ref;
21579 }
21580 wxPyEndAllowThreads(__tstate);
21581 if (PyErr_Occurred()) SWIG_fail;
21582 }
21583 {
21584 wxBrush* resultptr = new wxBrush(*result);
21585 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21586 }
21587 return resultobj;
21588 fail:
21589 return NULL;
21590 }
21591
21592
21593 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21594 PyObject *resultobj = 0;
21595 wxDC *arg1 = (wxDC *) 0 ;
21596 wxFont *result = 0 ;
21597 void *argp1 = 0 ;
21598 int res1 = 0 ;
21599 PyObject *swig_obj[1] ;
21600
21601 if (!args) SWIG_fail;
21602 swig_obj[0] = args;
21603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21604 if (!SWIG_IsOK(res1)) {
21605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21606 }
21607 arg1 = reinterpret_cast< wxDC * >(argp1);
21608 {
21609 PyThreadState* __tstate = wxPyBeginAllowThreads();
21610 {
21611 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21612 result = (wxFont *) &_result_ref;
21613 }
21614 wxPyEndAllowThreads(__tstate);
21615 if (PyErr_Occurred()) SWIG_fail;
21616 }
21617 {
21618 wxFont* resultptr = new wxFont(*result);
21619 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21620 }
21621 return resultobj;
21622 fail:
21623 return NULL;
21624 }
21625
21626
21627 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21628 PyObject *resultobj = 0;
21629 wxDC *arg1 = (wxDC *) 0 ;
21630 wxPen *result = 0 ;
21631 void *argp1 = 0 ;
21632 int res1 = 0 ;
21633 PyObject *swig_obj[1] ;
21634
21635 if (!args) SWIG_fail;
21636 swig_obj[0] = args;
21637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21638 if (!SWIG_IsOK(res1)) {
21639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21640 }
21641 arg1 = reinterpret_cast< wxDC * >(argp1);
21642 {
21643 PyThreadState* __tstate = wxPyBeginAllowThreads();
21644 {
21645 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21646 result = (wxPen *) &_result_ref;
21647 }
21648 wxPyEndAllowThreads(__tstate);
21649 if (PyErr_Occurred()) SWIG_fail;
21650 }
21651 {
21652 wxPen* resultptr = new wxPen(*result);
21653 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21654 }
21655 return resultobj;
21656 fail:
21657 return NULL;
21658 }
21659
21660
21661 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21662 PyObject *resultobj = 0;
21663 wxDC *arg1 = (wxDC *) 0 ;
21664 wxColour *result = 0 ;
21665 void *argp1 = 0 ;
21666 int res1 = 0 ;
21667 PyObject *swig_obj[1] ;
21668
21669 if (!args) SWIG_fail;
21670 swig_obj[0] = args;
21671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21672 if (!SWIG_IsOK(res1)) {
21673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21674 }
21675 arg1 = reinterpret_cast< wxDC * >(argp1);
21676 {
21677 PyThreadState* __tstate = wxPyBeginAllowThreads();
21678 {
21679 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21680 result = (wxColour *) &_result_ref;
21681 }
21682 wxPyEndAllowThreads(__tstate);
21683 if (PyErr_Occurred()) SWIG_fail;
21684 }
21685 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21686 return resultobj;
21687 fail:
21688 return NULL;
21689 }
21690
21691
21692 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21693 PyObject *resultobj = 0;
21694 wxDC *arg1 = (wxDC *) 0 ;
21695 wxColour *result = 0 ;
21696 void *argp1 = 0 ;
21697 int res1 = 0 ;
21698 PyObject *swig_obj[1] ;
21699
21700 if (!args) SWIG_fail;
21701 swig_obj[0] = args;
21702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21703 if (!SWIG_IsOK(res1)) {
21704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21705 }
21706 arg1 = reinterpret_cast< wxDC * >(argp1);
21707 {
21708 PyThreadState* __tstate = wxPyBeginAllowThreads();
21709 {
21710 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21711 result = (wxColour *) &_result_ref;
21712 }
21713 wxPyEndAllowThreads(__tstate);
21714 if (PyErr_Occurred()) SWIG_fail;
21715 }
21716 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21717 return resultobj;
21718 fail:
21719 return NULL;
21720 }
21721
21722
21723 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21724 PyObject *resultobj = 0;
21725 wxDC *arg1 = (wxDC *) 0 ;
21726 wxColour *arg2 = 0 ;
21727 void *argp1 = 0 ;
21728 int res1 = 0 ;
21729 wxColour temp2 ;
21730 PyObject * obj0 = 0 ;
21731 PyObject * obj1 = 0 ;
21732 char * kwnames[] = {
21733 (char *) "self",(char *) "colour", NULL
21734 };
21735
21736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21738 if (!SWIG_IsOK(res1)) {
21739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21740 }
21741 arg1 = reinterpret_cast< wxDC * >(argp1);
21742 {
21743 arg2 = &temp2;
21744 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21745 }
21746 {
21747 PyThreadState* __tstate = wxPyBeginAllowThreads();
21748 (arg1)->SetTextForeground((wxColour const &)*arg2);
21749 wxPyEndAllowThreads(__tstate);
21750 if (PyErr_Occurred()) SWIG_fail;
21751 }
21752 resultobj = SWIG_Py_Void();
21753 return resultobj;
21754 fail:
21755 return NULL;
21756 }
21757
21758
21759 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21760 PyObject *resultobj = 0;
21761 wxDC *arg1 = (wxDC *) 0 ;
21762 wxColour *arg2 = 0 ;
21763 void *argp1 = 0 ;
21764 int res1 = 0 ;
21765 wxColour temp2 ;
21766 PyObject * obj0 = 0 ;
21767 PyObject * obj1 = 0 ;
21768 char * kwnames[] = {
21769 (char *) "self",(char *) "colour", NULL
21770 };
21771
21772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21774 if (!SWIG_IsOK(res1)) {
21775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21776 }
21777 arg1 = reinterpret_cast< wxDC * >(argp1);
21778 {
21779 arg2 = &temp2;
21780 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21781 }
21782 {
21783 PyThreadState* __tstate = wxPyBeginAllowThreads();
21784 (arg1)->SetTextBackground((wxColour const &)*arg2);
21785 wxPyEndAllowThreads(__tstate);
21786 if (PyErr_Occurred()) SWIG_fail;
21787 }
21788 resultobj = SWIG_Py_Void();
21789 return resultobj;
21790 fail:
21791 return NULL;
21792 }
21793
21794
21795 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21796 PyObject *resultobj = 0;
21797 wxDC *arg1 = (wxDC *) 0 ;
21798 int result;
21799 void *argp1 = 0 ;
21800 int res1 = 0 ;
21801 PyObject *swig_obj[1] ;
21802
21803 if (!args) SWIG_fail;
21804 swig_obj[0] = args;
21805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21806 if (!SWIG_IsOK(res1)) {
21807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21808 }
21809 arg1 = reinterpret_cast< wxDC * >(argp1);
21810 {
21811 PyThreadState* __tstate = wxPyBeginAllowThreads();
21812 result = (int)((wxDC const *)arg1)->GetMapMode();
21813 wxPyEndAllowThreads(__tstate);
21814 if (PyErr_Occurred()) SWIG_fail;
21815 }
21816 resultobj = SWIG_From_int(static_cast< int >(result));
21817 return resultobj;
21818 fail:
21819 return NULL;
21820 }
21821
21822
21823 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21824 PyObject *resultobj = 0;
21825 wxDC *arg1 = (wxDC *) 0 ;
21826 int arg2 ;
21827 void *argp1 = 0 ;
21828 int res1 = 0 ;
21829 int val2 ;
21830 int ecode2 = 0 ;
21831 PyObject * obj0 = 0 ;
21832 PyObject * obj1 = 0 ;
21833 char * kwnames[] = {
21834 (char *) "self",(char *) "mode", NULL
21835 };
21836
21837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21839 if (!SWIG_IsOK(res1)) {
21840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21841 }
21842 arg1 = reinterpret_cast< wxDC * >(argp1);
21843 ecode2 = SWIG_AsVal_int(obj1, &val2);
21844 if (!SWIG_IsOK(ecode2)) {
21845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21846 }
21847 arg2 = static_cast< int >(val2);
21848 {
21849 PyThreadState* __tstate = wxPyBeginAllowThreads();
21850 (arg1)->SetMapMode(arg2);
21851 wxPyEndAllowThreads(__tstate);
21852 if (PyErr_Occurred()) SWIG_fail;
21853 }
21854 resultobj = SWIG_Py_Void();
21855 return resultobj;
21856 fail:
21857 return NULL;
21858 }
21859
21860
21861 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21862 PyObject *resultobj = 0;
21863 wxDC *arg1 = (wxDC *) 0 ;
21864 double *arg2 = (double *) 0 ;
21865 double *arg3 = (double *) 0 ;
21866 void *argp1 = 0 ;
21867 int res1 = 0 ;
21868 double temp2 ;
21869 int res2 = SWIG_TMPOBJ ;
21870 double temp3 ;
21871 int res3 = SWIG_TMPOBJ ;
21872 PyObject *swig_obj[1] ;
21873
21874 arg2 = &temp2;
21875 arg3 = &temp3;
21876 if (!args) SWIG_fail;
21877 swig_obj[0] = args;
21878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21879 if (!SWIG_IsOK(res1)) {
21880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21881 }
21882 arg1 = reinterpret_cast< wxDC * >(argp1);
21883 {
21884 PyThreadState* __tstate = wxPyBeginAllowThreads();
21885 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21886 wxPyEndAllowThreads(__tstate);
21887 if (PyErr_Occurred()) SWIG_fail;
21888 }
21889 resultobj = SWIG_Py_Void();
21890 if (SWIG_IsTmpObj(res2)) {
21891 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21892 } else {
21893 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21894 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21895 }
21896 if (SWIG_IsTmpObj(res3)) {
21897 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21898 } else {
21899 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21900 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21901 }
21902 return resultobj;
21903 fail:
21904 return NULL;
21905 }
21906
21907
21908 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21909 PyObject *resultobj = 0;
21910 wxDC *arg1 = (wxDC *) 0 ;
21911 double arg2 ;
21912 double arg3 ;
21913 void *argp1 = 0 ;
21914 int res1 = 0 ;
21915 double val2 ;
21916 int ecode2 = 0 ;
21917 double val3 ;
21918 int ecode3 = 0 ;
21919 PyObject * obj0 = 0 ;
21920 PyObject * obj1 = 0 ;
21921 PyObject * obj2 = 0 ;
21922 char * kwnames[] = {
21923 (char *) "self",(char *) "x",(char *) "y", NULL
21924 };
21925
21926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21928 if (!SWIG_IsOK(res1)) {
21929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21930 }
21931 arg1 = reinterpret_cast< wxDC * >(argp1);
21932 ecode2 = SWIG_AsVal_double(obj1, &val2);
21933 if (!SWIG_IsOK(ecode2)) {
21934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21935 }
21936 arg2 = static_cast< double >(val2);
21937 ecode3 = SWIG_AsVal_double(obj2, &val3);
21938 if (!SWIG_IsOK(ecode3)) {
21939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21940 }
21941 arg3 = static_cast< double >(val3);
21942 {
21943 PyThreadState* __tstate = wxPyBeginAllowThreads();
21944 (arg1)->SetUserScale(arg2,arg3);
21945 wxPyEndAllowThreads(__tstate);
21946 if (PyErr_Occurred()) SWIG_fail;
21947 }
21948 resultobj = SWIG_Py_Void();
21949 return resultobj;
21950 fail:
21951 return NULL;
21952 }
21953
21954
21955 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21956 PyObject *resultobj = 0;
21957 wxDC *arg1 = (wxDC *) 0 ;
21958 double *arg2 = (double *) 0 ;
21959 double *arg3 = (double *) 0 ;
21960 void *argp1 = 0 ;
21961 int res1 = 0 ;
21962 double temp2 ;
21963 int res2 = SWIG_TMPOBJ ;
21964 double temp3 ;
21965 int res3 = SWIG_TMPOBJ ;
21966 PyObject *swig_obj[1] ;
21967
21968 arg2 = &temp2;
21969 arg3 = &temp3;
21970 if (!args) SWIG_fail;
21971 swig_obj[0] = args;
21972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21973 if (!SWIG_IsOK(res1)) {
21974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21975 }
21976 arg1 = reinterpret_cast< wxDC * >(argp1);
21977 {
21978 PyThreadState* __tstate = wxPyBeginAllowThreads();
21979 (arg1)->GetLogicalScale(arg2,arg3);
21980 wxPyEndAllowThreads(__tstate);
21981 if (PyErr_Occurred()) SWIG_fail;
21982 }
21983 resultobj = SWIG_Py_Void();
21984 if (SWIG_IsTmpObj(res2)) {
21985 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21986 } else {
21987 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21988 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21989 }
21990 if (SWIG_IsTmpObj(res3)) {
21991 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21992 } else {
21993 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21994 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21995 }
21996 return resultobj;
21997 fail:
21998 return NULL;
21999 }
22000
22001
22002 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22003 PyObject *resultobj = 0;
22004 wxDC *arg1 = (wxDC *) 0 ;
22005 double arg2 ;
22006 double arg3 ;
22007 void *argp1 = 0 ;
22008 int res1 = 0 ;
22009 double val2 ;
22010 int ecode2 = 0 ;
22011 double val3 ;
22012 int ecode3 = 0 ;
22013 PyObject * obj0 = 0 ;
22014 PyObject * obj1 = 0 ;
22015 PyObject * obj2 = 0 ;
22016 char * kwnames[] = {
22017 (char *) "self",(char *) "x",(char *) "y", NULL
22018 };
22019
22020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22022 if (!SWIG_IsOK(res1)) {
22023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22024 }
22025 arg1 = reinterpret_cast< wxDC * >(argp1);
22026 ecode2 = SWIG_AsVal_double(obj1, &val2);
22027 if (!SWIG_IsOK(ecode2)) {
22028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22029 }
22030 arg2 = static_cast< double >(val2);
22031 ecode3 = SWIG_AsVal_double(obj2, &val3);
22032 if (!SWIG_IsOK(ecode3)) {
22033 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22034 }
22035 arg3 = static_cast< double >(val3);
22036 {
22037 PyThreadState* __tstate = wxPyBeginAllowThreads();
22038 (arg1)->SetLogicalScale(arg2,arg3);
22039 wxPyEndAllowThreads(__tstate);
22040 if (PyErr_Occurred()) SWIG_fail;
22041 }
22042 resultobj = SWIG_Py_Void();
22043 return resultobj;
22044 fail:
22045 return NULL;
22046 }
22047
22048
22049 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22050 PyObject *resultobj = 0;
22051 wxDC *arg1 = (wxDC *) 0 ;
22052 wxPoint result;
22053 void *argp1 = 0 ;
22054 int res1 = 0 ;
22055 PyObject *swig_obj[1] ;
22056
22057 if (!args) SWIG_fail;
22058 swig_obj[0] = args;
22059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22060 if (!SWIG_IsOK(res1)) {
22061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22062 }
22063 arg1 = reinterpret_cast< wxDC * >(argp1);
22064 {
22065 PyThreadState* __tstate = wxPyBeginAllowThreads();
22066 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22067 wxPyEndAllowThreads(__tstate);
22068 if (PyErr_Occurred()) SWIG_fail;
22069 }
22070 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22071 return resultobj;
22072 fail:
22073 return NULL;
22074 }
22075
22076
22077 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22078 PyObject *resultobj = 0;
22079 wxDC *arg1 = (wxDC *) 0 ;
22080 int *arg2 = (int *) 0 ;
22081 int *arg3 = (int *) 0 ;
22082 void *argp1 = 0 ;
22083 int res1 = 0 ;
22084 int temp2 ;
22085 int res2 = SWIG_TMPOBJ ;
22086 int temp3 ;
22087 int res3 = SWIG_TMPOBJ ;
22088 PyObject *swig_obj[1] ;
22089
22090 arg2 = &temp2;
22091 arg3 = &temp3;
22092 if (!args) SWIG_fail;
22093 swig_obj[0] = args;
22094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22095 if (!SWIG_IsOK(res1)) {
22096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22097 }
22098 arg1 = reinterpret_cast< wxDC * >(argp1);
22099 {
22100 PyThreadState* __tstate = wxPyBeginAllowThreads();
22101 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22102 wxPyEndAllowThreads(__tstate);
22103 if (PyErr_Occurred()) SWIG_fail;
22104 }
22105 resultobj = SWIG_Py_Void();
22106 if (SWIG_IsTmpObj(res2)) {
22107 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22108 } else {
22109 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22110 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22111 }
22112 if (SWIG_IsTmpObj(res3)) {
22113 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22114 } else {
22115 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22117 }
22118 return resultobj;
22119 fail:
22120 return NULL;
22121 }
22122
22123
22124 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22125 PyObject *resultobj = 0;
22126 wxDC *arg1 = (wxDC *) 0 ;
22127 int arg2 ;
22128 int arg3 ;
22129 void *argp1 = 0 ;
22130 int res1 = 0 ;
22131 int val2 ;
22132 int ecode2 = 0 ;
22133 int val3 ;
22134 int ecode3 = 0 ;
22135 PyObject * obj0 = 0 ;
22136 PyObject * obj1 = 0 ;
22137 PyObject * obj2 = 0 ;
22138 char * kwnames[] = {
22139 (char *) "self",(char *) "x",(char *) "y", NULL
22140 };
22141
22142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22144 if (!SWIG_IsOK(res1)) {
22145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22146 }
22147 arg1 = reinterpret_cast< wxDC * >(argp1);
22148 ecode2 = SWIG_AsVal_int(obj1, &val2);
22149 if (!SWIG_IsOK(ecode2)) {
22150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22151 }
22152 arg2 = static_cast< int >(val2);
22153 ecode3 = SWIG_AsVal_int(obj2, &val3);
22154 if (!SWIG_IsOK(ecode3)) {
22155 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22156 }
22157 arg3 = static_cast< int >(val3);
22158 {
22159 PyThreadState* __tstate = wxPyBeginAllowThreads();
22160 (arg1)->SetLogicalOrigin(arg2,arg3);
22161 wxPyEndAllowThreads(__tstate);
22162 if (PyErr_Occurred()) SWIG_fail;
22163 }
22164 resultobj = SWIG_Py_Void();
22165 return resultobj;
22166 fail:
22167 return NULL;
22168 }
22169
22170
22171 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22172 PyObject *resultobj = 0;
22173 wxDC *arg1 = (wxDC *) 0 ;
22174 wxPoint *arg2 = 0 ;
22175 void *argp1 = 0 ;
22176 int res1 = 0 ;
22177 wxPoint temp2 ;
22178 PyObject * obj0 = 0 ;
22179 PyObject * obj1 = 0 ;
22180 char * kwnames[] = {
22181 (char *) "self",(char *) "point", NULL
22182 };
22183
22184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22186 if (!SWIG_IsOK(res1)) {
22187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22188 }
22189 arg1 = reinterpret_cast< wxDC * >(argp1);
22190 {
22191 arg2 = &temp2;
22192 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22193 }
22194 {
22195 PyThreadState* __tstate = wxPyBeginAllowThreads();
22196 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22197 wxPyEndAllowThreads(__tstate);
22198 if (PyErr_Occurred()) SWIG_fail;
22199 }
22200 resultobj = SWIG_Py_Void();
22201 return resultobj;
22202 fail:
22203 return NULL;
22204 }
22205
22206
22207 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22208 PyObject *resultobj = 0;
22209 wxDC *arg1 = (wxDC *) 0 ;
22210 wxPoint result;
22211 void *argp1 = 0 ;
22212 int res1 = 0 ;
22213 PyObject *swig_obj[1] ;
22214
22215 if (!args) SWIG_fail;
22216 swig_obj[0] = args;
22217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22218 if (!SWIG_IsOK(res1)) {
22219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22220 }
22221 arg1 = reinterpret_cast< wxDC * >(argp1);
22222 {
22223 PyThreadState* __tstate = wxPyBeginAllowThreads();
22224 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22225 wxPyEndAllowThreads(__tstate);
22226 if (PyErr_Occurred()) SWIG_fail;
22227 }
22228 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22229 return resultobj;
22230 fail:
22231 return NULL;
22232 }
22233
22234
22235 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22236 PyObject *resultobj = 0;
22237 wxDC *arg1 = (wxDC *) 0 ;
22238 int *arg2 = (int *) 0 ;
22239 int *arg3 = (int *) 0 ;
22240 void *argp1 = 0 ;
22241 int res1 = 0 ;
22242 int temp2 ;
22243 int res2 = SWIG_TMPOBJ ;
22244 int temp3 ;
22245 int res3 = SWIG_TMPOBJ ;
22246 PyObject *swig_obj[1] ;
22247
22248 arg2 = &temp2;
22249 arg3 = &temp3;
22250 if (!args) SWIG_fail;
22251 swig_obj[0] = args;
22252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22253 if (!SWIG_IsOK(res1)) {
22254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22255 }
22256 arg1 = reinterpret_cast< wxDC * >(argp1);
22257 {
22258 PyThreadState* __tstate = wxPyBeginAllowThreads();
22259 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22260 wxPyEndAllowThreads(__tstate);
22261 if (PyErr_Occurred()) SWIG_fail;
22262 }
22263 resultobj = SWIG_Py_Void();
22264 if (SWIG_IsTmpObj(res2)) {
22265 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22266 } else {
22267 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22268 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22269 }
22270 if (SWIG_IsTmpObj(res3)) {
22271 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22272 } else {
22273 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22274 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22275 }
22276 return resultobj;
22277 fail:
22278 return NULL;
22279 }
22280
22281
22282 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22283 PyObject *resultobj = 0;
22284 wxDC *arg1 = (wxDC *) 0 ;
22285 int arg2 ;
22286 int arg3 ;
22287 void *argp1 = 0 ;
22288 int res1 = 0 ;
22289 int val2 ;
22290 int ecode2 = 0 ;
22291 int val3 ;
22292 int ecode3 = 0 ;
22293 PyObject * obj0 = 0 ;
22294 PyObject * obj1 = 0 ;
22295 PyObject * obj2 = 0 ;
22296 char * kwnames[] = {
22297 (char *) "self",(char *) "x",(char *) "y", NULL
22298 };
22299
22300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22302 if (!SWIG_IsOK(res1)) {
22303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22304 }
22305 arg1 = reinterpret_cast< wxDC * >(argp1);
22306 ecode2 = SWIG_AsVal_int(obj1, &val2);
22307 if (!SWIG_IsOK(ecode2)) {
22308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22309 }
22310 arg2 = static_cast< int >(val2);
22311 ecode3 = SWIG_AsVal_int(obj2, &val3);
22312 if (!SWIG_IsOK(ecode3)) {
22313 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22314 }
22315 arg3 = static_cast< int >(val3);
22316 {
22317 PyThreadState* __tstate = wxPyBeginAllowThreads();
22318 (arg1)->SetDeviceOrigin(arg2,arg3);
22319 wxPyEndAllowThreads(__tstate);
22320 if (PyErr_Occurred()) SWIG_fail;
22321 }
22322 resultobj = SWIG_Py_Void();
22323 return resultobj;
22324 fail:
22325 return NULL;
22326 }
22327
22328
22329 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22330 PyObject *resultobj = 0;
22331 wxDC *arg1 = (wxDC *) 0 ;
22332 wxPoint *arg2 = 0 ;
22333 void *argp1 = 0 ;
22334 int res1 = 0 ;
22335 wxPoint temp2 ;
22336 PyObject * obj0 = 0 ;
22337 PyObject * obj1 = 0 ;
22338 char * kwnames[] = {
22339 (char *) "self",(char *) "point", NULL
22340 };
22341
22342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22344 if (!SWIG_IsOK(res1)) {
22345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22346 }
22347 arg1 = reinterpret_cast< wxDC * >(argp1);
22348 {
22349 arg2 = &temp2;
22350 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22351 }
22352 {
22353 PyThreadState* __tstate = wxPyBeginAllowThreads();
22354 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22355 wxPyEndAllowThreads(__tstate);
22356 if (PyErr_Occurred()) SWIG_fail;
22357 }
22358 resultobj = SWIG_Py_Void();
22359 return resultobj;
22360 fail:
22361 return NULL;
22362 }
22363
22364
22365 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22366 PyObject *resultobj = 0;
22367 wxDC *arg1 = (wxDC *) 0 ;
22368 bool arg2 ;
22369 bool arg3 ;
22370 void *argp1 = 0 ;
22371 int res1 = 0 ;
22372 bool val2 ;
22373 int ecode2 = 0 ;
22374 bool val3 ;
22375 int ecode3 = 0 ;
22376 PyObject * obj0 = 0 ;
22377 PyObject * obj1 = 0 ;
22378 PyObject * obj2 = 0 ;
22379 char * kwnames[] = {
22380 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22381 };
22382
22383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22385 if (!SWIG_IsOK(res1)) {
22386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22387 }
22388 arg1 = reinterpret_cast< wxDC * >(argp1);
22389 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22390 if (!SWIG_IsOK(ecode2)) {
22391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22392 }
22393 arg2 = static_cast< bool >(val2);
22394 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22395 if (!SWIG_IsOK(ecode3)) {
22396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22397 }
22398 arg3 = static_cast< bool >(val3);
22399 {
22400 PyThreadState* __tstate = wxPyBeginAllowThreads();
22401 (arg1)->SetAxisOrientation(arg2,arg3);
22402 wxPyEndAllowThreads(__tstate);
22403 if (PyErr_Occurred()) SWIG_fail;
22404 }
22405 resultobj = SWIG_Py_Void();
22406 return resultobj;
22407 fail:
22408 return NULL;
22409 }
22410
22411
22412 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22413 PyObject *resultobj = 0;
22414 wxDC *arg1 = (wxDC *) 0 ;
22415 int result;
22416 void *argp1 = 0 ;
22417 int res1 = 0 ;
22418 PyObject *swig_obj[1] ;
22419
22420 if (!args) SWIG_fail;
22421 swig_obj[0] = args;
22422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22423 if (!SWIG_IsOK(res1)) {
22424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22425 }
22426 arg1 = reinterpret_cast< wxDC * >(argp1);
22427 {
22428 PyThreadState* __tstate = wxPyBeginAllowThreads();
22429 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22430 wxPyEndAllowThreads(__tstate);
22431 if (PyErr_Occurred()) SWIG_fail;
22432 }
22433 resultobj = SWIG_From_int(static_cast< int >(result));
22434 return resultobj;
22435 fail:
22436 return NULL;
22437 }
22438
22439
22440 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22441 PyObject *resultobj = 0;
22442 wxDC *arg1 = (wxDC *) 0 ;
22443 int arg2 ;
22444 void *argp1 = 0 ;
22445 int res1 = 0 ;
22446 int val2 ;
22447 int ecode2 = 0 ;
22448 PyObject * obj0 = 0 ;
22449 PyObject * obj1 = 0 ;
22450 char * kwnames[] = {
22451 (char *) "self",(char *) "function", NULL
22452 };
22453
22454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22456 if (!SWIG_IsOK(res1)) {
22457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22458 }
22459 arg1 = reinterpret_cast< wxDC * >(argp1);
22460 ecode2 = SWIG_AsVal_int(obj1, &val2);
22461 if (!SWIG_IsOK(ecode2)) {
22462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22463 }
22464 arg2 = static_cast< int >(val2);
22465 {
22466 PyThreadState* __tstate = wxPyBeginAllowThreads();
22467 (arg1)->SetLogicalFunction(arg2);
22468 wxPyEndAllowThreads(__tstate);
22469 if (PyErr_Occurred()) SWIG_fail;
22470 }
22471 resultobj = SWIG_Py_Void();
22472 return resultobj;
22473 fail:
22474 return NULL;
22475 }
22476
22477
22478 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22479 PyObject *resultobj = 0;
22480 wxDC *arg1 = (wxDC *) 0 ;
22481 void *argp1 = 0 ;
22482 int res1 = 0 ;
22483 PyObject *swig_obj[1] ;
22484
22485 if (!args) SWIG_fail;
22486 swig_obj[0] = args;
22487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22488 if (!SWIG_IsOK(res1)) {
22489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22490 }
22491 arg1 = reinterpret_cast< wxDC * >(argp1);
22492 {
22493 PyThreadState* __tstate = wxPyBeginAllowThreads();
22494 (arg1)->ComputeScaleAndOrigin();
22495 wxPyEndAllowThreads(__tstate);
22496 if (PyErr_Occurred()) SWIG_fail;
22497 }
22498 resultobj = SWIG_Py_Void();
22499 return resultobj;
22500 fail:
22501 return NULL;
22502 }
22503
22504
22505 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22506 PyObject *resultobj = 0;
22507 wxDC *arg1 = (wxDC *) 0 ;
22508 int arg2 ;
22509 int arg3 ;
22510 void *argp1 = 0 ;
22511 int res1 = 0 ;
22512 int val2 ;
22513 int ecode2 = 0 ;
22514 int val3 ;
22515 int ecode3 = 0 ;
22516 PyObject * obj0 = 0 ;
22517 PyObject * obj1 = 0 ;
22518 PyObject * obj2 = 0 ;
22519 char * kwnames[] = {
22520 (char *) "self",(char *) "x",(char *) "y", NULL
22521 };
22522
22523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22525 if (!SWIG_IsOK(res1)) {
22526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22527 }
22528 arg1 = reinterpret_cast< wxDC * >(argp1);
22529 ecode2 = SWIG_AsVal_int(obj1, &val2);
22530 if (!SWIG_IsOK(ecode2)) {
22531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22532 }
22533 arg2 = static_cast< int >(val2);
22534 ecode3 = SWIG_AsVal_int(obj2, &val3);
22535 if (!SWIG_IsOK(ecode3)) {
22536 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22537 }
22538 arg3 = static_cast< int >(val3);
22539 {
22540 PyThreadState* __tstate = wxPyBeginAllowThreads();
22541 (arg1)->CalcBoundingBox(arg2,arg3);
22542 wxPyEndAllowThreads(__tstate);
22543 if (PyErr_Occurred()) SWIG_fail;
22544 }
22545 resultobj = SWIG_Py_Void();
22546 return resultobj;
22547 fail:
22548 return NULL;
22549 }
22550
22551
22552 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22553 PyObject *resultobj = 0;
22554 wxDC *arg1 = (wxDC *) 0 ;
22555 wxPoint *arg2 = 0 ;
22556 void *argp1 = 0 ;
22557 int res1 = 0 ;
22558 wxPoint temp2 ;
22559 PyObject * obj0 = 0 ;
22560 PyObject * obj1 = 0 ;
22561 char * kwnames[] = {
22562 (char *) "self",(char *) "point", NULL
22563 };
22564
22565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22567 if (!SWIG_IsOK(res1)) {
22568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22569 }
22570 arg1 = reinterpret_cast< wxDC * >(argp1);
22571 {
22572 arg2 = &temp2;
22573 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22574 }
22575 {
22576 PyThreadState* __tstate = wxPyBeginAllowThreads();
22577 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22578 wxPyEndAllowThreads(__tstate);
22579 if (PyErr_Occurred()) SWIG_fail;
22580 }
22581 resultobj = SWIG_Py_Void();
22582 return resultobj;
22583 fail:
22584 return NULL;
22585 }
22586
22587
22588 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22589 PyObject *resultobj = 0;
22590 wxDC *arg1 = (wxDC *) 0 ;
22591 void *argp1 = 0 ;
22592 int res1 = 0 ;
22593 PyObject *swig_obj[1] ;
22594
22595 if (!args) SWIG_fail;
22596 swig_obj[0] = args;
22597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22598 if (!SWIG_IsOK(res1)) {
22599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22600 }
22601 arg1 = reinterpret_cast< wxDC * >(argp1);
22602 {
22603 PyThreadState* __tstate = wxPyBeginAllowThreads();
22604 (arg1)->ResetBoundingBox();
22605 wxPyEndAllowThreads(__tstate);
22606 if (PyErr_Occurred()) SWIG_fail;
22607 }
22608 resultobj = SWIG_Py_Void();
22609 return resultobj;
22610 fail:
22611 return NULL;
22612 }
22613
22614
22615 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22616 PyObject *resultobj = 0;
22617 wxDC *arg1 = (wxDC *) 0 ;
22618 int result;
22619 void *argp1 = 0 ;
22620 int res1 = 0 ;
22621 PyObject *swig_obj[1] ;
22622
22623 if (!args) SWIG_fail;
22624 swig_obj[0] = args;
22625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22626 if (!SWIG_IsOK(res1)) {
22627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22628 }
22629 arg1 = reinterpret_cast< wxDC * >(argp1);
22630 {
22631 PyThreadState* __tstate = wxPyBeginAllowThreads();
22632 result = (int)((wxDC const *)arg1)->MinX();
22633 wxPyEndAllowThreads(__tstate);
22634 if (PyErr_Occurred()) SWIG_fail;
22635 }
22636 resultobj = SWIG_From_int(static_cast< int >(result));
22637 return resultobj;
22638 fail:
22639 return NULL;
22640 }
22641
22642
22643 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22644 PyObject *resultobj = 0;
22645 wxDC *arg1 = (wxDC *) 0 ;
22646 int result;
22647 void *argp1 = 0 ;
22648 int res1 = 0 ;
22649 PyObject *swig_obj[1] ;
22650
22651 if (!args) SWIG_fail;
22652 swig_obj[0] = args;
22653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22654 if (!SWIG_IsOK(res1)) {
22655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22656 }
22657 arg1 = reinterpret_cast< wxDC * >(argp1);
22658 {
22659 PyThreadState* __tstate = wxPyBeginAllowThreads();
22660 result = (int)((wxDC const *)arg1)->MaxX();
22661 wxPyEndAllowThreads(__tstate);
22662 if (PyErr_Occurred()) SWIG_fail;
22663 }
22664 resultobj = SWIG_From_int(static_cast< int >(result));
22665 return resultobj;
22666 fail:
22667 return NULL;
22668 }
22669
22670
22671 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22672 PyObject *resultobj = 0;
22673 wxDC *arg1 = (wxDC *) 0 ;
22674 int result;
22675 void *argp1 = 0 ;
22676 int res1 = 0 ;
22677 PyObject *swig_obj[1] ;
22678
22679 if (!args) SWIG_fail;
22680 swig_obj[0] = args;
22681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22682 if (!SWIG_IsOK(res1)) {
22683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22684 }
22685 arg1 = reinterpret_cast< wxDC * >(argp1);
22686 {
22687 PyThreadState* __tstate = wxPyBeginAllowThreads();
22688 result = (int)((wxDC const *)arg1)->MinY();
22689 wxPyEndAllowThreads(__tstate);
22690 if (PyErr_Occurred()) SWIG_fail;
22691 }
22692 resultobj = SWIG_From_int(static_cast< int >(result));
22693 return resultobj;
22694 fail:
22695 return NULL;
22696 }
22697
22698
22699 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22700 PyObject *resultobj = 0;
22701 wxDC *arg1 = (wxDC *) 0 ;
22702 int result;
22703 void *argp1 = 0 ;
22704 int res1 = 0 ;
22705 PyObject *swig_obj[1] ;
22706
22707 if (!args) SWIG_fail;
22708 swig_obj[0] = args;
22709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22710 if (!SWIG_IsOK(res1)) {
22711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22712 }
22713 arg1 = reinterpret_cast< wxDC * >(argp1);
22714 {
22715 PyThreadState* __tstate = wxPyBeginAllowThreads();
22716 result = (int)((wxDC const *)arg1)->MaxY();
22717 wxPyEndAllowThreads(__tstate);
22718 if (PyErr_Occurred()) SWIG_fail;
22719 }
22720 resultobj = SWIG_From_int(static_cast< int >(result));
22721 return resultobj;
22722 fail:
22723 return NULL;
22724 }
22725
22726
22727 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22728 PyObject *resultobj = 0;
22729 wxDC *arg1 = (wxDC *) 0 ;
22730 int *arg2 = (int *) 0 ;
22731 int *arg3 = (int *) 0 ;
22732 int *arg4 = (int *) 0 ;
22733 int *arg5 = (int *) 0 ;
22734 void *argp1 = 0 ;
22735 int res1 = 0 ;
22736 int temp2 ;
22737 int res2 = SWIG_TMPOBJ ;
22738 int temp3 ;
22739 int res3 = SWIG_TMPOBJ ;
22740 int temp4 ;
22741 int res4 = SWIG_TMPOBJ ;
22742 int temp5 ;
22743 int res5 = SWIG_TMPOBJ ;
22744 PyObject *swig_obj[1] ;
22745
22746 arg2 = &temp2;
22747 arg3 = &temp3;
22748 arg4 = &temp4;
22749 arg5 = &temp5;
22750 if (!args) SWIG_fail;
22751 swig_obj[0] = args;
22752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22753 if (!SWIG_IsOK(res1)) {
22754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22755 }
22756 arg1 = reinterpret_cast< wxDC * >(argp1);
22757 {
22758 PyThreadState* __tstate = wxPyBeginAllowThreads();
22759 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22760 wxPyEndAllowThreads(__tstate);
22761 if (PyErr_Occurred()) SWIG_fail;
22762 }
22763 resultobj = SWIG_Py_Void();
22764 if (SWIG_IsTmpObj(res2)) {
22765 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22766 } else {
22767 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22768 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22769 }
22770 if (SWIG_IsTmpObj(res3)) {
22771 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22772 } else {
22773 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22774 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22775 }
22776 if (SWIG_IsTmpObj(res4)) {
22777 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22778 } else {
22779 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22780 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22781 }
22782 if (SWIG_IsTmpObj(res5)) {
22783 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22784 } else {
22785 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22786 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22787 }
22788 return resultobj;
22789 fail:
22790 return NULL;
22791 }
22792
22793
22794 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22795 PyObject *resultobj = 0;
22796 wxDC *arg1 = (wxDC *) 0 ;
22797 wxLayoutDirection result;
22798 void *argp1 = 0 ;
22799 int res1 = 0 ;
22800 PyObject *swig_obj[1] ;
22801
22802 if (!args) SWIG_fail;
22803 swig_obj[0] = args;
22804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22805 if (!SWIG_IsOK(res1)) {
22806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
22807 }
22808 arg1 = reinterpret_cast< wxDC * >(argp1);
22809 {
22810 PyThreadState* __tstate = wxPyBeginAllowThreads();
22811 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
22812 wxPyEndAllowThreads(__tstate);
22813 if (PyErr_Occurred()) SWIG_fail;
22814 }
22815 resultobj = SWIG_From_int(static_cast< int >(result));
22816 return resultobj;
22817 fail:
22818 return NULL;
22819 }
22820
22821
22822 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22823 PyObject *resultobj = 0;
22824 wxDC *arg1 = (wxDC *) 0 ;
22825 wxLayoutDirection arg2 ;
22826 void *argp1 = 0 ;
22827 int res1 = 0 ;
22828 int val2 ;
22829 int ecode2 = 0 ;
22830 PyObject * obj0 = 0 ;
22831 PyObject * obj1 = 0 ;
22832 char * kwnames[] = {
22833 (char *) "self",(char *) "dir", NULL
22834 };
22835
22836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
22837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22838 if (!SWIG_IsOK(res1)) {
22839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
22840 }
22841 arg1 = reinterpret_cast< wxDC * >(argp1);
22842 ecode2 = SWIG_AsVal_int(obj1, &val2);
22843 if (!SWIG_IsOK(ecode2)) {
22844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
22845 }
22846 arg2 = static_cast< wxLayoutDirection >(val2);
22847 {
22848 PyThreadState* __tstate = wxPyBeginAllowThreads();
22849 (arg1)->SetLayoutDirection(arg2);
22850 wxPyEndAllowThreads(__tstate);
22851 if (PyErr_Occurred()) SWIG_fail;
22852 }
22853 resultobj = SWIG_Py_Void();
22854 return resultobj;
22855 fail:
22856 return NULL;
22857 }
22858
22859
22860 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22861 PyObject *resultobj = 0;
22862 wxDC *arg1 = (wxDC *) 0 ;
22863 PyObject *arg2 = (PyObject *) 0 ;
22864 PyObject *arg3 = (PyObject *) 0 ;
22865 PyObject *arg4 = (PyObject *) 0 ;
22866 PyObject *result = 0 ;
22867 void *argp1 = 0 ;
22868 int res1 = 0 ;
22869 PyObject * obj0 = 0 ;
22870 PyObject * obj1 = 0 ;
22871 PyObject * obj2 = 0 ;
22872 PyObject * obj3 = 0 ;
22873 char * kwnames[] = {
22874 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22875 };
22876
22877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22879 if (!SWIG_IsOK(res1)) {
22880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22881 }
22882 arg1 = reinterpret_cast< wxDC * >(argp1);
22883 arg2 = obj1;
22884 arg3 = obj2;
22885 arg4 = obj3;
22886 {
22887 PyThreadState* __tstate = wxPyBeginAllowThreads();
22888 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22889 wxPyEndAllowThreads(__tstate);
22890 if (PyErr_Occurred()) SWIG_fail;
22891 }
22892 resultobj = result;
22893 return resultobj;
22894 fail:
22895 return NULL;
22896 }
22897
22898
22899 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22900 PyObject *resultobj = 0;
22901 wxDC *arg1 = (wxDC *) 0 ;
22902 PyObject *arg2 = (PyObject *) 0 ;
22903 PyObject *arg3 = (PyObject *) 0 ;
22904 PyObject *arg4 = (PyObject *) 0 ;
22905 PyObject *result = 0 ;
22906 void *argp1 = 0 ;
22907 int res1 = 0 ;
22908 PyObject * obj0 = 0 ;
22909 PyObject * obj1 = 0 ;
22910 PyObject * obj2 = 0 ;
22911 PyObject * obj3 = 0 ;
22912 char * kwnames[] = {
22913 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22914 };
22915
22916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22918 if (!SWIG_IsOK(res1)) {
22919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22920 }
22921 arg1 = reinterpret_cast< wxDC * >(argp1);
22922 arg2 = obj1;
22923 arg3 = obj2;
22924 arg4 = obj3;
22925 {
22926 PyThreadState* __tstate = wxPyBeginAllowThreads();
22927 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22928 wxPyEndAllowThreads(__tstate);
22929 if (PyErr_Occurred()) SWIG_fail;
22930 }
22931 resultobj = result;
22932 return resultobj;
22933 fail:
22934 return NULL;
22935 }
22936
22937
22938 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22939 PyObject *resultobj = 0;
22940 wxDC *arg1 = (wxDC *) 0 ;
22941 PyObject *arg2 = (PyObject *) 0 ;
22942 PyObject *arg3 = (PyObject *) 0 ;
22943 PyObject *arg4 = (PyObject *) 0 ;
22944 PyObject *result = 0 ;
22945 void *argp1 = 0 ;
22946 int res1 = 0 ;
22947 PyObject * obj0 = 0 ;
22948 PyObject * obj1 = 0 ;
22949 PyObject * obj2 = 0 ;
22950 PyObject * obj3 = 0 ;
22951 char * kwnames[] = {
22952 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22953 };
22954
22955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22957 if (!SWIG_IsOK(res1)) {
22958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22959 }
22960 arg1 = reinterpret_cast< wxDC * >(argp1);
22961 arg2 = obj1;
22962 arg3 = obj2;
22963 arg4 = obj3;
22964 {
22965 PyThreadState* __tstate = wxPyBeginAllowThreads();
22966 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22967 wxPyEndAllowThreads(__tstate);
22968 if (PyErr_Occurred()) SWIG_fail;
22969 }
22970 resultobj = result;
22971 return resultobj;
22972 fail:
22973 return NULL;
22974 }
22975
22976
22977 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22978 PyObject *resultobj = 0;
22979 wxDC *arg1 = (wxDC *) 0 ;
22980 PyObject *arg2 = (PyObject *) 0 ;
22981 PyObject *arg3 = (PyObject *) 0 ;
22982 PyObject *arg4 = (PyObject *) 0 ;
22983 PyObject *result = 0 ;
22984 void *argp1 = 0 ;
22985 int res1 = 0 ;
22986 PyObject * obj0 = 0 ;
22987 PyObject * obj1 = 0 ;
22988 PyObject * obj2 = 0 ;
22989 PyObject * obj3 = 0 ;
22990 char * kwnames[] = {
22991 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22992 };
22993
22994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22996 if (!SWIG_IsOK(res1)) {
22997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
22998 }
22999 arg1 = reinterpret_cast< wxDC * >(argp1);
23000 arg2 = obj1;
23001 arg3 = obj2;
23002 arg4 = obj3;
23003 {
23004 PyThreadState* __tstate = wxPyBeginAllowThreads();
23005 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23006 wxPyEndAllowThreads(__tstate);
23007 if (PyErr_Occurred()) SWIG_fail;
23008 }
23009 resultobj = result;
23010 return resultobj;
23011 fail:
23012 return NULL;
23013 }
23014
23015
23016 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23017 PyObject *resultobj = 0;
23018 wxDC *arg1 = (wxDC *) 0 ;
23019 PyObject *arg2 = (PyObject *) 0 ;
23020 PyObject *arg3 = (PyObject *) 0 ;
23021 PyObject *arg4 = (PyObject *) 0 ;
23022 PyObject *result = 0 ;
23023 void *argp1 = 0 ;
23024 int res1 = 0 ;
23025 PyObject * obj0 = 0 ;
23026 PyObject * obj1 = 0 ;
23027 PyObject * obj2 = 0 ;
23028 PyObject * obj3 = 0 ;
23029 char * kwnames[] = {
23030 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23031 };
23032
23033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23035 if (!SWIG_IsOK(res1)) {
23036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23037 }
23038 arg1 = reinterpret_cast< wxDC * >(argp1);
23039 arg2 = obj1;
23040 arg3 = obj2;
23041 arg4 = obj3;
23042 {
23043 PyThreadState* __tstate = wxPyBeginAllowThreads();
23044 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23045 wxPyEndAllowThreads(__tstate);
23046 if (PyErr_Occurred()) SWIG_fail;
23047 }
23048 resultobj = result;
23049 return resultobj;
23050 fail:
23051 return NULL;
23052 }
23053
23054
23055 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23056 PyObject *resultobj = 0;
23057 wxDC *arg1 = (wxDC *) 0 ;
23058 PyObject *arg2 = (PyObject *) 0 ;
23059 PyObject *arg3 = (PyObject *) 0 ;
23060 PyObject *arg4 = (PyObject *) 0 ;
23061 PyObject *arg5 = (PyObject *) 0 ;
23062 PyObject *result = 0 ;
23063 void *argp1 = 0 ;
23064 int res1 = 0 ;
23065 PyObject * obj0 = 0 ;
23066 PyObject * obj1 = 0 ;
23067 PyObject * obj2 = 0 ;
23068 PyObject * obj3 = 0 ;
23069 PyObject * obj4 = 0 ;
23070 char * kwnames[] = {
23071 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23072 };
23073
23074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23076 if (!SWIG_IsOK(res1)) {
23077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23078 }
23079 arg1 = reinterpret_cast< wxDC * >(argp1);
23080 arg2 = obj1;
23081 arg3 = obj2;
23082 arg4 = obj3;
23083 arg5 = obj4;
23084 {
23085 PyThreadState* __tstate = wxPyBeginAllowThreads();
23086 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23087 wxPyEndAllowThreads(__tstate);
23088 if (PyErr_Occurred()) SWIG_fail;
23089 }
23090 resultobj = result;
23091 return resultobj;
23092 fail:
23093 return NULL;
23094 }
23095
23096
23097 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23098 PyObject *obj;
23099 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23100 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23101 return SWIG_Py_Void();
23102 }
23103
23104 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23105 PyObject *resultobj = 0;
23106 wxBitmap const &arg1_defvalue = wxNullBitmap ;
23107 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
23108 wxMemoryDC *result = 0 ;
23109 void *argp1 = 0 ;
23110 int res1 = 0 ;
23111 PyObject * obj0 = 0 ;
23112 char * kwnames[] = {
23113 (char *) "bitmap", NULL
23114 };
23115
23116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23117 if (obj0) {
23118 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
23119 if (!SWIG_IsOK(res1)) {
23120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23121 }
23122 if (!argp1) {
23123 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23124 }
23125 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23126 }
23127 {
23128 if (!wxPyCheckForApp()) SWIG_fail;
23129 PyThreadState* __tstate = wxPyBeginAllowThreads();
23130 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
23131 wxPyEndAllowThreads(__tstate);
23132 if (PyErr_Occurred()) SWIG_fail;
23133 }
23134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23135 return resultobj;
23136 fail:
23137 return NULL;
23138 }
23139
23140
23141 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23142 PyObject *resultobj = 0;
23143 wxDC *arg1 = (wxDC *) 0 ;
23144 wxMemoryDC *result = 0 ;
23145 void *argp1 = 0 ;
23146 int res1 = 0 ;
23147 PyObject * obj0 = 0 ;
23148 char * kwnames[] = {
23149 (char *) "oldDC", NULL
23150 };
23151
23152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23154 if (!SWIG_IsOK(res1)) {
23155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23156 }
23157 arg1 = reinterpret_cast< wxDC * >(argp1);
23158 {
23159 if (!wxPyCheckForApp()) SWIG_fail;
23160 PyThreadState* __tstate = wxPyBeginAllowThreads();
23161 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23162 wxPyEndAllowThreads(__tstate);
23163 if (PyErr_Occurred()) SWIG_fail;
23164 }
23165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23166 return resultobj;
23167 fail:
23168 return NULL;
23169 }
23170
23171
23172 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23173 PyObject *resultobj = 0;
23174 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23175 wxBitmap *arg2 = 0 ;
23176 void *argp1 = 0 ;
23177 int res1 = 0 ;
23178 void *argp2 = 0 ;
23179 int res2 = 0 ;
23180 PyObject * obj0 = 0 ;
23181 PyObject * obj1 = 0 ;
23182 char * kwnames[] = {
23183 (char *) "self",(char *) "bitmap", NULL
23184 };
23185
23186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23188 if (!SWIG_IsOK(res1)) {
23189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23190 }
23191 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23192 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23193 if (!SWIG_IsOK(res2)) {
23194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23195 }
23196 if (!argp2) {
23197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23198 }
23199 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23200 {
23201 PyThreadState* __tstate = wxPyBeginAllowThreads();
23202 (arg1)->SelectObject((wxBitmap const &)*arg2);
23203 wxPyEndAllowThreads(__tstate);
23204 if (PyErr_Occurred()) SWIG_fail;
23205 }
23206 resultobj = SWIG_Py_Void();
23207 return resultobj;
23208 fail:
23209 return NULL;
23210 }
23211
23212
23213 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23214 PyObject *obj;
23215 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23216 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23217 return SWIG_Py_Void();
23218 }
23219
23220 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23221 return SWIG_Python_InitShadowInstance(args);
23222 }
23223
23224 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23225 PyObject *resultobj = 0;
23226 wxScreenDC *result = 0 ;
23227
23228 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23229 {
23230 if (!wxPyCheckForApp()) SWIG_fail;
23231 PyThreadState* __tstate = wxPyBeginAllowThreads();
23232 result = (wxScreenDC *)new wxScreenDC();
23233 wxPyEndAllowThreads(__tstate);
23234 if (PyErr_Occurred()) SWIG_fail;
23235 }
23236 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23237 return resultobj;
23238 fail:
23239 return NULL;
23240 }
23241
23242
23243 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23244 PyObject *resultobj = 0;
23245 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23246 wxWindow *arg2 = (wxWindow *) 0 ;
23247 bool result;
23248 void *argp1 = 0 ;
23249 int res1 = 0 ;
23250 void *argp2 = 0 ;
23251 int res2 = 0 ;
23252 PyObject * obj0 = 0 ;
23253 PyObject * obj1 = 0 ;
23254 char * kwnames[] = {
23255 (char *) "self",(char *) "window", NULL
23256 };
23257
23258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23260 if (!SWIG_IsOK(res1)) {
23261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23262 }
23263 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23264 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23265 if (!SWIG_IsOK(res2)) {
23266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23267 }
23268 arg2 = reinterpret_cast< wxWindow * >(argp2);
23269 {
23270 PyThreadState* __tstate = wxPyBeginAllowThreads();
23271 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23272 wxPyEndAllowThreads(__tstate);
23273 if (PyErr_Occurred()) SWIG_fail;
23274 }
23275 {
23276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23277 }
23278 return resultobj;
23279 fail:
23280 return NULL;
23281 }
23282
23283
23284 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23285 PyObject *resultobj = 0;
23286 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23287 wxRect *arg2 = (wxRect *) NULL ;
23288 bool result;
23289 void *argp1 = 0 ;
23290 int res1 = 0 ;
23291 void *argp2 = 0 ;
23292 int res2 = 0 ;
23293 PyObject * obj0 = 0 ;
23294 PyObject * obj1 = 0 ;
23295 char * kwnames[] = {
23296 (char *) "self",(char *) "rect", NULL
23297 };
23298
23299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23301 if (!SWIG_IsOK(res1)) {
23302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23303 }
23304 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23305 if (obj1) {
23306 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23307 if (!SWIG_IsOK(res2)) {
23308 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23309 }
23310 arg2 = reinterpret_cast< wxRect * >(argp2);
23311 }
23312 {
23313 PyThreadState* __tstate = wxPyBeginAllowThreads();
23314 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23315 wxPyEndAllowThreads(__tstate);
23316 if (PyErr_Occurred()) SWIG_fail;
23317 }
23318 {
23319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23320 }
23321 return resultobj;
23322 fail:
23323 return NULL;
23324 }
23325
23326
23327 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23328 PyObject *resultobj = 0;
23329 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23330 bool result;
23331 void *argp1 = 0 ;
23332 int res1 = 0 ;
23333 PyObject *swig_obj[1] ;
23334
23335 if (!args) SWIG_fail;
23336 swig_obj[0] = args;
23337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23338 if (!SWIG_IsOK(res1)) {
23339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23340 }
23341 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23342 {
23343 PyThreadState* __tstate = wxPyBeginAllowThreads();
23344 result = (bool)(arg1)->EndDrawingOnTop();
23345 wxPyEndAllowThreads(__tstate);
23346 if (PyErr_Occurred()) SWIG_fail;
23347 }
23348 {
23349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23350 }
23351 return resultobj;
23352 fail:
23353 return NULL;
23354 }
23355
23356
23357 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23358 PyObject *obj;
23359 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23360 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23361 return SWIG_Py_Void();
23362 }
23363
23364 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23365 return SWIG_Python_InitShadowInstance(args);
23366 }
23367
23368 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23369 PyObject *resultobj = 0;
23370 wxWindow *arg1 = (wxWindow *) 0 ;
23371 wxWindowDC *result = 0 ;
23372 void *argp1 = 0 ;
23373 int res1 = 0 ;
23374 PyObject * obj0 = 0 ;
23375 char * kwnames[] = {
23376 (char *) "win", NULL
23377 };
23378
23379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
23380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23381 if (!SWIG_IsOK(res1)) {
23382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23383 }
23384 arg1 = reinterpret_cast< wxWindow * >(argp1);
23385 {
23386 if (!wxPyCheckForApp()) SWIG_fail;
23387 PyThreadState* __tstate = wxPyBeginAllowThreads();
23388 result = (wxWindowDC *)new wxWindowDC(arg1);
23389 wxPyEndAllowThreads(__tstate);
23390 if (PyErr_Occurred()) SWIG_fail;
23391 }
23392 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
23393 return resultobj;
23394 fail:
23395 return NULL;
23396 }
23397
23398
23399 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23400 PyObject *obj;
23401 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23402 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
23403 return SWIG_Py_Void();
23404 }
23405
23406 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23407 return SWIG_Python_InitShadowInstance(args);
23408 }
23409
23410 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23411 PyObject *resultobj = 0;
23412 wxWindow *arg1 = (wxWindow *) 0 ;
23413 wxClientDC *result = 0 ;
23414 void *argp1 = 0 ;
23415 int res1 = 0 ;
23416 PyObject * obj0 = 0 ;
23417 char * kwnames[] = {
23418 (char *) "win", NULL
23419 };
23420
23421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
23422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23423 if (!SWIG_IsOK(res1)) {
23424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23425 }
23426 arg1 = reinterpret_cast< wxWindow * >(argp1);
23427 {
23428 if (!wxPyCheckForApp()) SWIG_fail;
23429 PyThreadState* __tstate = wxPyBeginAllowThreads();
23430 result = (wxClientDC *)new wxClientDC(arg1);
23431 wxPyEndAllowThreads(__tstate);
23432 if (PyErr_Occurred()) SWIG_fail;
23433 }
23434 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
23435 return resultobj;
23436 fail:
23437 return NULL;
23438 }
23439
23440
23441 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23442 PyObject *obj;
23443 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23444 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
23445 return SWIG_Py_Void();
23446 }
23447
23448 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23449 return SWIG_Python_InitShadowInstance(args);
23450 }
23451
23452 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23453 PyObject *resultobj = 0;
23454 wxWindow *arg1 = (wxWindow *) 0 ;
23455 wxPaintDC *result = 0 ;
23456 void *argp1 = 0 ;
23457 int res1 = 0 ;
23458 PyObject * obj0 = 0 ;
23459 char * kwnames[] = {
23460 (char *) "win", NULL
23461 };
23462
23463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
23464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23465 if (!SWIG_IsOK(res1)) {
23466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23467 }
23468 arg1 = reinterpret_cast< wxWindow * >(argp1);
23469 {
23470 if (!wxPyCheckForApp()) SWIG_fail;
23471 PyThreadState* __tstate = wxPyBeginAllowThreads();
23472 result = (wxPaintDC *)new wxPaintDC(arg1);
23473 wxPyEndAllowThreads(__tstate);
23474 if (PyErr_Occurred()) SWIG_fail;
23475 }
23476 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
23477 return resultobj;
23478 fail:
23479 return NULL;
23480 }
23481
23482
23483 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23484 PyObject *obj;
23485 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23486 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
23487 return SWIG_Py_Void();
23488 }
23489
23490 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23491 return SWIG_Python_InitShadowInstance(args);
23492 }
23493
23494 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23495 PyObject *resultobj = 0;
23496 wxDC *arg1 = (wxDC *) 0 ;
23497 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23498 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23499 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23500 wxBufferedDC *result = 0 ;
23501 void *argp1 = 0 ;
23502 int res1 = 0 ;
23503 void *argp2 = 0 ;
23504 int res2 = 0 ;
23505 int val3 ;
23506 int ecode3 = 0 ;
23507
23508 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23510 if (!SWIG_IsOK(res1)) {
23511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23512 }
23513 arg1 = reinterpret_cast< wxDC * >(argp1);
23514 if (swig_obj[1]) {
23515 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23516 if (!SWIG_IsOK(res2)) {
23517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23518 }
23519 if (!argp2) {
23520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23521 }
23522 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23523 }
23524 if (swig_obj[2]) {
23525 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23526 if (!SWIG_IsOK(ecode3)) {
23527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23528 }
23529 arg3 = static_cast< int >(val3);
23530 }
23531 {
23532 if (!wxPyCheckForApp()) SWIG_fail;
23533 PyThreadState* __tstate = wxPyBeginAllowThreads();
23534 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23535 wxPyEndAllowThreads(__tstate);
23536 if (PyErr_Occurred()) SWIG_fail;
23537 }
23538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23539 return resultobj;
23540 fail:
23541 return NULL;
23542 }
23543
23544
23545 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23546 PyObject *resultobj = 0;
23547 wxDC *arg1 = (wxDC *) 0 ;
23548 wxSize *arg2 = 0 ;
23549 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23550 wxBufferedDC *result = 0 ;
23551 void *argp1 = 0 ;
23552 int res1 = 0 ;
23553 wxSize temp2 ;
23554 int val3 ;
23555 int ecode3 = 0 ;
23556
23557 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23559 if (!SWIG_IsOK(res1)) {
23560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23561 }
23562 arg1 = reinterpret_cast< wxDC * >(argp1);
23563 {
23564 arg2 = &temp2;
23565 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23566 }
23567 if (swig_obj[2]) {
23568 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23569 if (!SWIG_IsOK(ecode3)) {
23570 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23571 }
23572 arg3 = static_cast< int >(val3);
23573 }
23574 {
23575 if (!wxPyCheckForApp()) SWIG_fail;
23576 PyThreadState* __tstate = wxPyBeginAllowThreads();
23577 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23578 wxPyEndAllowThreads(__tstate);
23579 if (PyErr_Occurred()) SWIG_fail;
23580 }
23581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23582 return resultobj;
23583 fail:
23584 return NULL;
23585 }
23586
23587
23588 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23589 int argc;
23590 PyObject *argv[4];
23591
23592 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23593 --argc;
23594 if ((argc >= 1) && (argc <= 3)) {
23595 int _v = 0;
23596 if (argc > 1) {
23597 {
23598 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23599 _v = SWIG_CheckState(res);
23600 }
23601 if (!_v) goto check_1;
23602 }
23603 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23604 }
23605 check_1:
23606
23607 if ((argc >= 2) && (argc <= 3)) {
23608 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23609 }
23610
23611 fail:
23612 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23613 return NULL;
23614 }
23615
23616
23617 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23618 PyObject *resultobj = 0;
23619 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23620 void *argp1 = 0 ;
23621 int res1 = 0 ;
23622 PyObject *swig_obj[1] ;
23623
23624 if (!args) SWIG_fail;
23625 swig_obj[0] = args;
23626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23627 if (!SWIG_IsOK(res1)) {
23628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23629 }
23630 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23631 {
23632 PyThreadState* __tstate = wxPyBeginAllowThreads();
23633 delete arg1;
23634
23635 wxPyEndAllowThreads(__tstate);
23636 if (PyErr_Occurred()) SWIG_fail;
23637 }
23638 resultobj = SWIG_Py_Void();
23639 return resultobj;
23640 fail:
23641 return NULL;
23642 }
23643
23644
23645 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23646 PyObject *resultobj = 0;
23647 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23648 void *argp1 = 0 ;
23649 int res1 = 0 ;
23650 PyObject *swig_obj[1] ;
23651
23652 if (!args) SWIG_fail;
23653 swig_obj[0] = args;
23654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23655 if (!SWIG_IsOK(res1)) {
23656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23657 }
23658 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23659 {
23660 PyThreadState* __tstate = wxPyBeginAllowThreads();
23661 (arg1)->UnMask();
23662 wxPyEndAllowThreads(__tstate);
23663 if (PyErr_Occurred()) SWIG_fail;
23664 }
23665 resultobj = SWIG_Py_Void();
23666 return resultobj;
23667 fail:
23668 return NULL;
23669 }
23670
23671
23672 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23673 PyObject *obj;
23674 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23675 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23676 return SWIG_Py_Void();
23677 }
23678
23679 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23680 return SWIG_Python_InitShadowInstance(args);
23681 }
23682
23683 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23684 PyObject *resultobj = 0;
23685 wxWindow *arg1 = (wxWindow *) 0 ;
23686 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23687 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23688 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23689 wxBufferedPaintDC *result = 0 ;
23690 void *argp1 = 0 ;
23691 int res1 = 0 ;
23692 void *argp2 = 0 ;
23693 int res2 = 0 ;
23694 int val3 ;
23695 int ecode3 = 0 ;
23696 PyObject * obj0 = 0 ;
23697 PyObject * obj1 = 0 ;
23698 PyObject * obj2 = 0 ;
23699 char * kwnames[] = {
23700 (char *) "window",(char *) "buffer",(char *) "style", NULL
23701 };
23702
23703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23705 if (!SWIG_IsOK(res1)) {
23706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23707 }
23708 arg1 = reinterpret_cast< wxWindow * >(argp1);
23709 if (obj1) {
23710 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23711 if (!SWIG_IsOK(res2)) {
23712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23713 }
23714 if (!argp2) {
23715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23716 }
23717 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23718 }
23719 if (obj2) {
23720 ecode3 = SWIG_AsVal_int(obj2, &val3);
23721 if (!SWIG_IsOK(ecode3)) {
23722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23723 }
23724 arg3 = static_cast< int >(val3);
23725 }
23726 {
23727 if (!wxPyCheckForApp()) SWIG_fail;
23728 PyThreadState* __tstate = wxPyBeginAllowThreads();
23729 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23730 wxPyEndAllowThreads(__tstate);
23731 if (PyErr_Occurred()) SWIG_fail;
23732 }
23733 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23734 return resultobj;
23735 fail:
23736 return NULL;
23737 }
23738
23739
23740 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23741 PyObject *obj;
23742 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23743 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23744 return SWIG_Py_Void();
23745 }
23746
23747 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23748 return SWIG_Python_InitShadowInstance(args);
23749 }
23750
23751 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23752 PyObject *resultobj = 0;
23753 wxWindow *arg1 = (wxWindow *) 0 ;
23754 wxAutoBufferedPaintDC *result = 0 ;
23755 void *argp1 = 0 ;
23756 int res1 = 0 ;
23757 PyObject * obj0 = 0 ;
23758 char * kwnames[] = {
23759 (char *) "win", NULL
23760 };
23761
23762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
23763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23764 if (!SWIG_IsOK(res1)) {
23765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23766 }
23767 arg1 = reinterpret_cast< wxWindow * >(argp1);
23768 {
23769 PyThreadState* __tstate = wxPyBeginAllowThreads();
23770 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
23771 wxPyEndAllowThreads(__tstate);
23772 if (PyErr_Occurred()) SWIG_fail;
23773 }
23774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23775 return resultobj;
23776 fail:
23777 return NULL;
23778 }
23779
23780
23781 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23782 PyObject *obj;
23783 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23784 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
23785 return SWIG_Py_Void();
23786 }
23787
23788 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23789 return SWIG_Python_InitShadowInstance(args);
23790 }
23791
23792 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23793 PyObject *resultobj = 0;
23794 wxWindow *arg1 = (wxWindow *) 0 ;
23795 wxDC *result = 0 ;
23796 void *argp1 = 0 ;
23797 int res1 = 0 ;
23798 PyObject * obj0 = 0 ;
23799 char * kwnames[] = {
23800 (char *) "window", NULL
23801 };
23802
23803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
23804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23805 if (!SWIG_IsOK(res1)) {
23806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
23807 }
23808 arg1 = reinterpret_cast< wxWindow * >(argp1);
23809 {
23810 PyThreadState* __tstate = wxPyBeginAllowThreads();
23811 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
23812 wxPyEndAllowThreads(__tstate);
23813 if (PyErr_Occurred()) SWIG_fail;
23814 }
23815 {
23816 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
23817 }
23818 return resultobj;
23819 fail:
23820 return NULL;
23821 }
23822
23823
23824 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23825 PyObject *resultobj = 0;
23826 wxDC *arg1 = 0 ;
23827 bool arg2 ;
23828 wxMirrorDC *result = 0 ;
23829 void *argp1 = 0 ;
23830 int res1 = 0 ;
23831 bool val2 ;
23832 int ecode2 = 0 ;
23833 PyObject * obj0 = 0 ;
23834 PyObject * obj1 = 0 ;
23835 char * kwnames[] = {
23836 (char *) "dc",(char *) "mirror", NULL
23837 };
23838
23839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23840 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23841 if (!SWIG_IsOK(res1)) {
23842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23843 }
23844 if (!argp1) {
23845 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23846 }
23847 arg1 = reinterpret_cast< wxDC * >(argp1);
23848 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23849 if (!SWIG_IsOK(ecode2)) {
23850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23851 }
23852 arg2 = static_cast< bool >(val2);
23853 {
23854 if (!wxPyCheckForApp()) SWIG_fail;
23855 PyThreadState* __tstate = wxPyBeginAllowThreads();
23856 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23857 wxPyEndAllowThreads(__tstate);
23858 if (PyErr_Occurred()) SWIG_fail;
23859 }
23860 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23861 return resultobj;
23862 fail:
23863 return NULL;
23864 }
23865
23866
23867 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23868 PyObject *obj;
23869 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23870 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23871 return SWIG_Py_Void();
23872 }
23873
23874 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23875 return SWIG_Python_InitShadowInstance(args);
23876 }
23877
23878 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23879 PyObject *resultobj = 0;
23880 wxPrintData *arg1 = 0 ;
23881 wxPostScriptDC *result = 0 ;
23882 void *argp1 = 0 ;
23883 int res1 = 0 ;
23884 PyObject * obj0 = 0 ;
23885 char * kwnames[] = {
23886 (char *) "printData", NULL
23887 };
23888
23889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23890 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23891 if (!SWIG_IsOK(res1)) {
23892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23893 }
23894 if (!argp1) {
23895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23896 }
23897 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23898 {
23899 if (!wxPyCheckForApp()) SWIG_fail;
23900 PyThreadState* __tstate = wxPyBeginAllowThreads();
23901 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23902 wxPyEndAllowThreads(__tstate);
23903 if (PyErr_Occurred()) SWIG_fail;
23904 }
23905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23906 return resultobj;
23907 fail:
23908 return NULL;
23909 }
23910
23911
23912 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23913 PyObject *resultobj = 0;
23914 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23915 wxPrintData *result = 0 ;
23916 void *argp1 = 0 ;
23917 int res1 = 0 ;
23918 PyObject *swig_obj[1] ;
23919
23920 if (!args) SWIG_fail;
23921 swig_obj[0] = args;
23922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23923 if (!SWIG_IsOK(res1)) {
23924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23925 }
23926 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23927 {
23928 PyThreadState* __tstate = wxPyBeginAllowThreads();
23929 {
23930 wxPrintData &_result_ref = (arg1)->GetPrintData();
23931 result = (wxPrintData *) &_result_ref;
23932 }
23933 wxPyEndAllowThreads(__tstate);
23934 if (PyErr_Occurred()) SWIG_fail;
23935 }
23936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23937 return resultobj;
23938 fail:
23939 return NULL;
23940 }
23941
23942
23943 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23944 PyObject *resultobj = 0;
23945 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23946 wxPrintData *arg2 = 0 ;
23947 void *argp1 = 0 ;
23948 int res1 = 0 ;
23949 void *argp2 = 0 ;
23950 int res2 = 0 ;
23951 PyObject * obj0 = 0 ;
23952 PyObject * obj1 = 0 ;
23953 char * kwnames[] = {
23954 (char *) "self",(char *) "data", NULL
23955 };
23956
23957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23959 if (!SWIG_IsOK(res1)) {
23960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23961 }
23962 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23963 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23964 if (!SWIG_IsOK(res2)) {
23965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23966 }
23967 if (!argp2) {
23968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23969 }
23970 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23971 {
23972 PyThreadState* __tstate = wxPyBeginAllowThreads();
23973 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23974 wxPyEndAllowThreads(__tstate);
23975 if (PyErr_Occurred()) SWIG_fail;
23976 }
23977 resultobj = SWIG_Py_Void();
23978 return resultobj;
23979 fail:
23980 return NULL;
23981 }
23982
23983
23984 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23985 PyObject *resultobj = 0;
23986 int arg1 ;
23987 int val1 ;
23988 int ecode1 = 0 ;
23989 PyObject * obj0 = 0 ;
23990 char * kwnames[] = {
23991 (char *) "ppi", NULL
23992 };
23993
23994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
23995 ecode1 = SWIG_AsVal_int(obj0, &val1);
23996 if (!SWIG_IsOK(ecode1)) {
23997 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
23998 }
23999 arg1 = static_cast< int >(val1);
24000 {
24001 PyThreadState* __tstate = wxPyBeginAllowThreads();
24002 wxPostScriptDC::SetResolution(arg1);
24003 wxPyEndAllowThreads(__tstate);
24004 if (PyErr_Occurred()) SWIG_fail;
24005 }
24006 resultobj = SWIG_Py_Void();
24007 return resultobj;
24008 fail:
24009 return NULL;
24010 }
24011
24012
24013 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24014 PyObject *resultobj = 0;
24015 int result;
24016
24017 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24018 {
24019 PyThreadState* __tstate = wxPyBeginAllowThreads();
24020 result = (int)wxPostScriptDC::GetResolution();
24021 wxPyEndAllowThreads(__tstate);
24022 if (PyErr_Occurred()) SWIG_fail;
24023 }
24024 resultobj = SWIG_From_int(static_cast< int >(result));
24025 return resultobj;
24026 fail:
24027 return NULL;
24028 }
24029
24030
24031 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24032 PyObject *obj;
24033 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24034 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24035 return SWIG_Py_Void();
24036 }
24037
24038 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24039 return SWIG_Python_InitShadowInstance(args);
24040 }
24041
24042 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24043 PyObject *resultobj = 0;
24044 wxString const &arg1_defvalue = wxPyEmptyString ;
24045 wxString *arg1 = (wxString *) &arg1_defvalue ;
24046 wxMetaFile *result = 0 ;
24047 bool temp1 = false ;
24048 PyObject * obj0 = 0 ;
24049 char * kwnames[] = {
24050 (char *) "filename", NULL
24051 };
24052
24053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24054 if (obj0) {
24055 {
24056 arg1 = wxString_in_helper(obj0);
24057 if (arg1 == NULL) SWIG_fail;
24058 temp1 = true;
24059 }
24060 }
24061 {
24062 if (!wxPyCheckForApp()) SWIG_fail;
24063 PyThreadState* __tstate = wxPyBeginAllowThreads();
24064 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24065 wxPyEndAllowThreads(__tstate);
24066 if (PyErr_Occurred()) SWIG_fail;
24067 }
24068 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24069 {
24070 if (temp1)
24071 delete arg1;
24072 }
24073 return resultobj;
24074 fail:
24075 {
24076 if (temp1)
24077 delete arg1;
24078 }
24079 return NULL;
24080 }
24081
24082
24083 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24084 PyObject *resultobj = 0;
24085 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24086 void *argp1 = 0 ;
24087 int res1 = 0 ;
24088 PyObject *swig_obj[1] ;
24089
24090 if (!args) SWIG_fail;
24091 swig_obj[0] = args;
24092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24093 if (!SWIG_IsOK(res1)) {
24094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24095 }
24096 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24097 {
24098 PyThreadState* __tstate = wxPyBeginAllowThreads();
24099 delete arg1;
24100
24101 wxPyEndAllowThreads(__tstate);
24102 if (PyErr_Occurred()) SWIG_fail;
24103 }
24104 resultobj = SWIG_Py_Void();
24105 return resultobj;
24106 fail:
24107 return NULL;
24108 }
24109
24110
24111 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24112 PyObject *resultobj = 0;
24113 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24114 bool result;
24115 void *argp1 = 0 ;
24116 int res1 = 0 ;
24117 PyObject *swig_obj[1] ;
24118
24119 if (!args) SWIG_fail;
24120 swig_obj[0] = args;
24121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24122 if (!SWIG_IsOK(res1)) {
24123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24124 }
24125 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24126 {
24127 PyThreadState* __tstate = wxPyBeginAllowThreads();
24128 result = (bool)(arg1)->IsOk();
24129 wxPyEndAllowThreads(__tstate);
24130 if (PyErr_Occurred()) SWIG_fail;
24131 }
24132 {
24133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24134 }
24135 return resultobj;
24136 fail:
24137 return NULL;
24138 }
24139
24140
24141 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24142 PyObject *resultobj = 0;
24143 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24144 int arg2 = (int) 0 ;
24145 int arg3 = (int) 0 ;
24146 bool result;
24147 void *argp1 = 0 ;
24148 int res1 = 0 ;
24149 int val2 ;
24150 int ecode2 = 0 ;
24151 int val3 ;
24152 int ecode3 = 0 ;
24153 PyObject * obj0 = 0 ;
24154 PyObject * obj1 = 0 ;
24155 PyObject * obj2 = 0 ;
24156 char * kwnames[] = {
24157 (char *) "self",(char *) "width",(char *) "height", NULL
24158 };
24159
24160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24162 if (!SWIG_IsOK(res1)) {
24163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24164 }
24165 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24166 if (obj1) {
24167 ecode2 = SWIG_AsVal_int(obj1, &val2);
24168 if (!SWIG_IsOK(ecode2)) {
24169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24170 }
24171 arg2 = static_cast< int >(val2);
24172 }
24173 if (obj2) {
24174 ecode3 = SWIG_AsVal_int(obj2, &val3);
24175 if (!SWIG_IsOK(ecode3)) {
24176 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24177 }
24178 arg3 = static_cast< int >(val3);
24179 }
24180 {
24181 PyThreadState* __tstate = wxPyBeginAllowThreads();
24182 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24183 wxPyEndAllowThreads(__tstate);
24184 if (PyErr_Occurred()) SWIG_fail;
24185 }
24186 {
24187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24188 }
24189 return resultobj;
24190 fail:
24191 return NULL;
24192 }
24193
24194
24195 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24196 PyObject *resultobj = 0;
24197 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24198 wxSize result;
24199 void *argp1 = 0 ;
24200 int res1 = 0 ;
24201 PyObject *swig_obj[1] ;
24202
24203 if (!args) SWIG_fail;
24204 swig_obj[0] = args;
24205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24206 if (!SWIG_IsOK(res1)) {
24207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24208 }
24209 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24210 {
24211 PyThreadState* __tstate = wxPyBeginAllowThreads();
24212 result = (arg1)->GetSize();
24213 wxPyEndAllowThreads(__tstate);
24214 if (PyErr_Occurred()) SWIG_fail;
24215 }
24216 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24217 return resultobj;
24218 fail:
24219 return NULL;
24220 }
24221
24222
24223 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24224 PyObject *resultobj = 0;
24225 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24226 int result;
24227 void *argp1 = 0 ;
24228 int res1 = 0 ;
24229 PyObject *swig_obj[1] ;
24230
24231 if (!args) SWIG_fail;
24232 swig_obj[0] = args;
24233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24234 if (!SWIG_IsOK(res1)) {
24235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24236 }
24237 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24238 {
24239 PyThreadState* __tstate = wxPyBeginAllowThreads();
24240 result = (int)(arg1)->GetWidth();
24241 wxPyEndAllowThreads(__tstate);
24242 if (PyErr_Occurred()) SWIG_fail;
24243 }
24244 resultobj = SWIG_From_int(static_cast< int >(result));
24245 return resultobj;
24246 fail:
24247 return NULL;
24248 }
24249
24250
24251 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24252 PyObject *resultobj = 0;
24253 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24254 int result;
24255 void *argp1 = 0 ;
24256 int res1 = 0 ;
24257 PyObject *swig_obj[1] ;
24258
24259 if (!args) SWIG_fail;
24260 swig_obj[0] = args;
24261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24262 if (!SWIG_IsOK(res1)) {
24263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24264 }
24265 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24266 {
24267 PyThreadState* __tstate = wxPyBeginAllowThreads();
24268 result = (int)(arg1)->GetHeight();
24269 wxPyEndAllowThreads(__tstate);
24270 if (PyErr_Occurred()) SWIG_fail;
24271 }
24272 resultobj = SWIG_From_int(static_cast< int >(result));
24273 return resultobj;
24274 fail:
24275 return NULL;
24276 }
24277
24278
24279 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24280 PyObject *obj;
24281 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24282 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24283 return SWIG_Py_Void();
24284 }
24285
24286 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24287 return SWIG_Python_InitShadowInstance(args);
24288 }
24289
24290 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24291 PyObject *resultobj = 0;
24292 wxString const &arg1_defvalue = wxPyEmptyString ;
24293 wxString *arg1 = (wxString *) &arg1_defvalue ;
24294 int arg2 = (int) 0 ;
24295 int arg3 = (int) 0 ;
24296 wxString const &arg4_defvalue = wxPyEmptyString ;
24297 wxString *arg4 = (wxString *) &arg4_defvalue ;
24298 wxMetaFileDC *result = 0 ;
24299 bool temp1 = false ;
24300 int val2 ;
24301 int ecode2 = 0 ;
24302 int val3 ;
24303 int ecode3 = 0 ;
24304 bool temp4 = false ;
24305 PyObject * obj0 = 0 ;
24306 PyObject * obj1 = 0 ;
24307 PyObject * obj2 = 0 ;
24308 PyObject * obj3 = 0 ;
24309 char * kwnames[] = {
24310 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24311 };
24312
24313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24314 if (obj0) {
24315 {
24316 arg1 = wxString_in_helper(obj0);
24317 if (arg1 == NULL) SWIG_fail;
24318 temp1 = true;
24319 }
24320 }
24321 if (obj1) {
24322 ecode2 = SWIG_AsVal_int(obj1, &val2);
24323 if (!SWIG_IsOK(ecode2)) {
24324 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24325 }
24326 arg2 = static_cast< int >(val2);
24327 }
24328 if (obj2) {
24329 ecode3 = SWIG_AsVal_int(obj2, &val3);
24330 if (!SWIG_IsOK(ecode3)) {
24331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24332 }
24333 arg3 = static_cast< int >(val3);
24334 }
24335 if (obj3) {
24336 {
24337 arg4 = wxString_in_helper(obj3);
24338 if (arg4 == NULL) SWIG_fail;
24339 temp4 = true;
24340 }
24341 }
24342 {
24343 if (!wxPyCheckForApp()) SWIG_fail;
24344 PyThreadState* __tstate = wxPyBeginAllowThreads();
24345 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24346 wxPyEndAllowThreads(__tstate);
24347 if (PyErr_Occurred()) SWIG_fail;
24348 }
24349 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24350 {
24351 if (temp1)
24352 delete arg1;
24353 }
24354 {
24355 if (temp4)
24356 delete arg4;
24357 }
24358 return resultobj;
24359 fail:
24360 {
24361 if (temp1)
24362 delete arg1;
24363 }
24364 {
24365 if (temp4)
24366 delete arg4;
24367 }
24368 return NULL;
24369 }
24370
24371
24372 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24373 PyObject *resultobj = 0;
24374 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
24375 wxMetaFile *result = 0 ;
24376 void *argp1 = 0 ;
24377 int res1 = 0 ;
24378 PyObject *swig_obj[1] ;
24379
24380 if (!args) SWIG_fail;
24381 swig_obj[0] = args;
24382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
24383 if (!SWIG_IsOK(res1)) {
24384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
24385 }
24386 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
24387 {
24388 PyThreadState* __tstate = wxPyBeginAllowThreads();
24389 result = (wxMetaFile *)(arg1)->Close();
24390 wxPyEndAllowThreads(__tstate);
24391 if (PyErr_Occurred()) SWIG_fail;
24392 }
24393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
24394 return resultobj;
24395 fail:
24396 return NULL;
24397 }
24398
24399
24400 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24401 PyObject *obj;
24402 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24403 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24404 return SWIG_Py_Void();
24405 }
24406
24407 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24408 return SWIG_Python_InitShadowInstance(args);
24409 }
24410
24411 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24412 PyObject *resultobj = 0;
24413 wxPrintData *arg1 = 0 ;
24414 wxPrinterDC *result = 0 ;
24415 void *argp1 = 0 ;
24416 int res1 = 0 ;
24417 PyObject * obj0 = 0 ;
24418 char * kwnames[] = {
24419 (char *) "printData", NULL
24420 };
24421
24422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24423 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24424 if (!SWIG_IsOK(res1)) {
24425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24426 }
24427 if (!argp1) {
24428 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24429 }
24430 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24431 {
24432 if (!wxPyCheckForApp()) SWIG_fail;
24433 PyThreadState* __tstate = wxPyBeginAllowThreads();
24434 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24435 wxPyEndAllowThreads(__tstate);
24436 if (PyErr_Occurred()) SWIG_fail;
24437 }
24438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24439 return resultobj;
24440 fail:
24441 return NULL;
24442 }
24443
24444
24445 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24446 PyObject *obj;
24447 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24448 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24449 return SWIG_Py_Void();
24450 }
24451
24452 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24453 return SWIG_Python_InitShadowInstance(args);
24454 }
24455
24456 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24457 PyObject *resultobj = 0;
24458 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24459 void *argp1 = 0 ;
24460 int res1 = 0 ;
24461 PyObject *swig_obj[1] ;
24462
24463 if (!args) SWIG_fail;
24464 swig_obj[0] = args;
24465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
24466 if (!SWIG_IsOK(res1)) {
24467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24468 }
24469 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24470 {
24471 delete arg1;
24472
24473 if (PyErr_Occurred()) SWIG_fail;
24474 }
24475 resultobj = SWIG_Py_Void();
24476 return resultobj;
24477 fail:
24478 return NULL;
24479 }
24480
24481
24482 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24483 PyObject *resultobj = 0;
24484 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24485 wxDouble arg2 ;
24486 wxDouble arg3 ;
24487 void *argp1 = 0 ;
24488 int res1 = 0 ;
24489 double val2 ;
24490 int ecode2 = 0 ;
24491 double val3 ;
24492 int ecode3 = 0 ;
24493 PyObject * obj0 = 0 ;
24494 PyObject * obj1 = 0 ;
24495 PyObject * obj2 = 0 ;
24496 char * kwnames[] = {
24497 (char *) "self",(char *) "x",(char *) "y", NULL
24498 };
24499
24500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24502 if (!SWIG_IsOK(res1)) {
24503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24504 }
24505 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24506 ecode2 = SWIG_AsVal_double(obj1, &val2);
24507 if (!SWIG_IsOK(ecode2)) {
24508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24509 }
24510 arg2 = static_cast< wxDouble >(val2);
24511 ecode3 = SWIG_AsVal_double(obj2, &val3);
24512 if (!SWIG_IsOK(ecode3)) {
24513 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24514 }
24515 arg3 = static_cast< wxDouble >(val3);
24516 {
24517 (arg1)->MoveToPoint(arg2,arg3);
24518 if (PyErr_Occurred()) SWIG_fail;
24519 }
24520 resultobj = SWIG_Py_Void();
24521 return resultobj;
24522 fail:
24523 return NULL;
24524 }
24525
24526
24527 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24528 PyObject *resultobj = 0;
24529 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24530 wxDouble arg2 ;
24531 wxDouble arg3 ;
24532 void *argp1 = 0 ;
24533 int res1 = 0 ;
24534 double val2 ;
24535 int ecode2 = 0 ;
24536 double val3 ;
24537 int ecode3 = 0 ;
24538 PyObject * obj0 = 0 ;
24539 PyObject * obj1 = 0 ;
24540 PyObject * obj2 = 0 ;
24541 char * kwnames[] = {
24542 (char *) "self",(char *) "x",(char *) "y", NULL
24543 };
24544
24545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24547 if (!SWIG_IsOK(res1)) {
24548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24549 }
24550 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24551 ecode2 = SWIG_AsVal_double(obj1, &val2);
24552 if (!SWIG_IsOK(ecode2)) {
24553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24554 }
24555 arg2 = static_cast< wxDouble >(val2);
24556 ecode3 = SWIG_AsVal_double(obj2, &val3);
24557 if (!SWIG_IsOK(ecode3)) {
24558 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24559 }
24560 arg3 = static_cast< wxDouble >(val3);
24561 {
24562 (arg1)->AddLineToPoint(arg2,arg3);
24563 if (PyErr_Occurred()) SWIG_fail;
24564 }
24565 resultobj = SWIG_Py_Void();
24566 return resultobj;
24567 fail:
24568 return NULL;
24569 }
24570
24571
24572 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24573 PyObject *resultobj = 0;
24574 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24575 wxDouble arg2 ;
24576 wxDouble arg3 ;
24577 wxDouble arg4 ;
24578 wxDouble arg5 ;
24579 wxDouble arg6 ;
24580 wxDouble arg7 ;
24581 void *argp1 = 0 ;
24582 int res1 = 0 ;
24583 double val2 ;
24584 int ecode2 = 0 ;
24585 double val3 ;
24586 int ecode3 = 0 ;
24587 double val4 ;
24588 int ecode4 = 0 ;
24589 double val5 ;
24590 int ecode5 = 0 ;
24591 double val6 ;
24592 int ecode6 = 0 ;
24593 double val7 ;
24594 int ecode7 = 0 ;
24595 PyObject * obj0 = 0 ;
24596 PyObject * obj1 = 0 ;
24597 PyObject * obj2 = 0 ;
24598 PyObject * obj3 = 0 ;
24599 PyObject * obj4 = 0 ;
24600 PyObject * obj5 = 0 ;
24601 PyObject * obj6 = 0 ;
24602 char * kwnames[] = {
24603 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
24604 };
24605
24606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24608 if (!SWIG_IsOK(res1)) {
24609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24610 }
24611 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24612 ecode2 = SWIG_AsVal_double(obj1, &val2);
24613 if (!SWIG_IsOK(ecode2)) {
24614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24615 }
24616 arg2 = static_cast< wxDouble >(val2);
24617 ecode3 = SWIG_AsVal_double(obj2, &val3);
24618 if (!SWIG_IsOK(ecode3)) {
24619 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24620 }
24621 arg3 = static_cast< wxDouble >(val3);
24622 ecode4 = SWIG_AsVal_double(obj3, &val4);
24623 if (!SWIG_IsOK(ecode4)) {
24624 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24625 }
24626 arg4 = static_cast< wxDouble >(val4);
24627 ecode5 = SWIG_AsVal_double(obj4, &val5);
24628 if (!SWIG_IsOK(ecode5)) {
24629 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24630 }
24631 arg5 = static_cast< wxDouble >(val5);
24632 ecode6 = SWIG_AsVal_double(obj5, &val6);
24633 if (!SWIG_IsOK(ecode6)) {
24634 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24635 }
24636 arg6 = static_cast< wxDouble >(val6);
24637 ecode7 = SWIG_AsVal_double(obj6, &val7);
24638 if (!SWIG_IsOK(ecode7)) {
24639 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
24640 }
24641 arg7 = static_cast< wxDouble >(val7);
24642 {
24643 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
24644 if (PyErr_Occurred()) SWIG_fail;
24645 }
24646 resultobj = SWIG_Py_Void();
24647 return resultobj;
24648 fail:
24649 return NULL;
24650 }
24651
24652
24653 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24654 PyObject *resultobj = 0;
24655 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24656 void *argp1 = 0 ;
24657 int res1 = 0 ;
24658 PyObject *swig_obj[1] ;
24659
24660 if (!args) SWIG_fail;
24661 swig_obj[0] = args;
24662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24663 if (!SWIG_IsOK(res1)) {
24664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24665 }
24666 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24667 {
24668 (arg1)->CloseSubpath();
24669 if (PyErr_Occurred()) SWIG_fail;
24670 }
24671 resultobj = SWIG_Py_Void();
24672 return resultobj;
24673 fail:
24674 return NULL;
24675 }
24676
24677
24678 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24679 PyObject *resultobj = 0;
24680 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24681 wxPoint2D result;
24682 void *argp1 = 0 ;
24683 int res1 = 0 ;
24684 PyObject *swig_obj[1] ;
24685
24686 if (!args) SWIG_fail;
24687 swig_obj[0] = args;
24688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24689 if (!SWIG_IsOK(res1)) {
24690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24691 }
24692 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24693 {
24694 result = (arg1)->GetCurrentPoint();
24695 if (PyErr_Occurred()) SWIG_fail;
24696 }
24697 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
24698 return resultobj;
24699 fail:
24700 return NULL;
24701 }
24702
24703
24704 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24705 PyObject *resultobj = 0;
24706 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24707 wxDouble arg2 ;
24708 wxDouble arg3 ;
24709 wxDouble arg4 ;
24710 wxDouble arg5 ;
24711 wxDouble arg6 ;
24712 bool arg7 ;
24713 void *argp1 = 0 ;
24714 int res1 = 0 ;
24715 double val2 ;
24716 int ecode2 = 0 ;
24717 double val3 ;
24718 int ecode3 = 0 ;
24719 double val4 ;
24720 int ecode4 = 0 ;
24721 double val5 ;
24722 int ecode5 = 0 ;
24723 double val6 ;
24724 int ecode6 = 0 ;
24725 bool val7 ;
24726 int ecode7 = 0 ;
24727 PyObject * obj0 = 0 ;
24728 PyObject * obj1 = 0 ;
24729 PyObject * obj2 = 0 ;
24730 PyObject * obj3 = 0 ;
24731 PyObject * obj4 = 0 ;
24732 PyObject * obj5 = 0 ;
24733 PyObject * obj6 = 0 ;
24734 char * kwnames[] = {
24735 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
24736 };
24737
24738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24740 if (!SWIG_IsOK(res1)) {
24741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24742 }
24743 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24744 ecode2 = SWIG_AsVal_double(obj1, &val2);
24745 if (!SWIG_IsOK(ecode2)) {
24746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
24747 }
24748 arg2 = static_cast< wxDouble >(val2);
24749 ecode3 = SWIG_AsVal_double(obj2, &val3);
24750 if (!SWIG_IsOK(ecode3)) {
24751 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
24752 }
24753 arg3 = static_cast< wxDouble >(val3);
24754 ecode4 = SWIG_AsVal_double(obj3, &val4);
24755 if (!SWIG_IsOK(ecode4)) {
24756 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
24757 }
24758 arg4 = static_cast< wxDouble >(val4);
24759 ecode5 = SWIG_AsVal_double(obj4, &val5);
24760 if (!SWIG_IsOK(ecode5)) {
24761 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
24762 }
24763 arg5 = static_cast< wxDouble >(val5);
24764 ecode6 = SWIG_AsVal_double(obj5, &val6);
24765 if (!SWIG_IsOK(ecode6)) {
24766 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
24767 }
24768 arg6 = static_cast< wxDouble >(val6);
24769 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24770 if (!SWIG_IsOK(ecode7)) {
24771 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
24772 }
24773 arg7 = static_cast< bool >(val7);
24774 {
24775 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
24776 if (PyErr_Occurred()) SWIG_fail;
24777 }
24778 resultobj = SWIG_Py_Void();
24779 return resultobj;
24780 fail:
24781 return NULL;
24782 }
24783
24784
24785 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24786 PyObject *resultobj = 0;
24787 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24788 wxDouble arg2 ;
24789 wxDouble arg3 ;
24790 wxDouble arg4 ;
24791 wxDouble arg5 ;
24792 void *argp1 = 0 ;
24793 int res1 = 0 ;
24794 double val2 ;
24795 int ecode2 = 0 ;
24796 double val3 ;
24797 int ecode3 = 0 ;
24798 double val4 ;
24799 int ecode4 = 0 ;
24800 double val5 ;
24801 int ecode5 = 0 ;
24802 PyObject * obj0 = 0 ;
24803 PyObject * obj1 = 0 ;
24804 PyObject * obj2 = 0 ;
24805 PyObject * obj3 = 0 ;
24806 PyObject * obj4 = 0 ;
24807 char * kwnames[] = {
24808 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
24809 };
24810
24811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24813 if (!SWIG_IsOK(res1)) {
24814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24815 }
24816 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24817 ecode2 = SWIG_AsVal_double(obj1, &val2);
24818 if (!SWIG_IsOK(ecode2)) {
24819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24820 }
24821 arg2 = static_cast< wxDouble >(val2);
24822 ecode3 = SWIG_AsVal_double(obj2, &val3);
24823 if (!SWIG_IsOK(ecode3)) {
24824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24825 }
24826 arg3 = static_cast< wxDouble >(val3);
24827 ecode4 = SWIG_AsVal_double(obj3, &val4);
24828 if (!SWIG_IsOK(ecode4)) {
24829 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24830 }
24831 arg4 = static_cast< wxDouble >(val4);
24832 ecode5 = SWIG_AsVal_double(obj4, &val5);
24833 if (!SWIG_IsOK(ecode5)) {
24834 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24835 }
24836 arg5 = static_cast< wxDouble >(val5);
24837 {
24838 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
24839 if (PyErr_Occurred()) SWIG_fail;
24840 }
24841 resultobj = SWIG_Py_Void();
24842 return resultobj;
24843 fail:
24844 return NULL;
24845 }
24846
24847
24848 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24849 PyObject *resultobj = 0;
24850 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24851 wxDouble arg2 ;
24852 wxDouble arg3 ;
24853 wxDouble arg4 ;
24854 wxDouble arg5 ;
24855 void *argp1 = 0 ;
24856 int res1 = 0 ;
24857 double val2 ;
24858 int ecode2 = 0 ;
24859 double val3 ;
24860 int ecode3 = 0 ;
24861 double val4 ;
24862 int ecode4 = 0 ;
24863 double val5 ;
24864 int ecode5 = 0 ;
24865 PyObject * obj0 = 0 ;
24866 PyObject * obj1 = 0 ;
24867 PyObject * obj2 = 0 ;
24868 PyObject * obj3 = 0 ;
24869 PyObject * obj4 = 0 ;
24870 char * kwnames[] = {
24871 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
24872 };
24873
24874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24876 if (!SWIG_IsOK(res1)) {
24877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24878 }
24879 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24880 ecode2 = SWIG_AsVal_double(obj1, &val2);
24881 if (!SWIG_IsOK(ecode2)) {
24882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
24883 }
24884 arg2 = static_cast< wxDouble >(val2);
24885 ecode3 = SWIG_AsVal_double(obj2, &val3);
24886 if (!SWIG_IsOK(ecode3)) {
24887 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
24888 }
24889 arg3 = static_cast< wxDouble >(val3);
24890 ecode4 = SWIG_AsVal_double(obj3, &val4);
24891 if (!SWIG_IsOK(ecode4)) {
24892 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
24893 }
24894 arg4 = static_cast< wxDouble >(val4);
24895 ecode5 = SWIG_AsVal_double(obj4, &val5);
24896 if (!SWIG_IsOK(ecode5)) {
24897 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
24898 }
24899 arg5 = static_cast< wxDouble >(val5);
24900 {
24901 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
24902 if (PyErr_Occurred()) SWIG_fail;
24903 }
24904 resultobj = SWIG_Py_Void();
24905 return resultobj;
24906 fail:
24907 return NULL;
24908 }
24909
24910
24911 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24912 PyObject *resultobj = 0;
24913 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24914 wxDouble arg2 ;
24915 wxDouble arg3 ;
24916 wxDouble arg4 ;
24917 void *argp1 = 0 ;
24918 int res1 = 0 ;
24919 double val2 ;
24920 int ecode2 = 0 ;
24921 double val3 ;
24922 int ecode3 = 0 ;
24923 double val4 ;
24924 int ecode4 = 0 ;
24925 PyObject * obj0 = 0 ;
24926 PyObject * obj1 = 0 ;
24927 PyObject * obj2 = 0 ;
24928 PyObject * obj3 = 0 ;
24929 char * kwnames[] = {
24930 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
24931 };
24932
24933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24935 if (!SWIG_IsOK(res1)) {
24936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24937 }
24938 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24939 ecode2 = SWIG_AsVal_double(obj1, &val2);
24940 if (!SWIG_IsOK(ecode2)) {
24941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
24942 }
24943 arg2 = static_cast< wxDouble >(val2);
24944 ecode3 = SWIG_AsVal_double(obj2, &val3);
24945 if (!SWIG_IsOK(ecode3)) {
24946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
24947 }
24948 arg3 = static_cast< wxDouble >(val3);
24949 ecode4 = SWIG_AsVal_double(obj3, &val4);
24950 if (!SWIG_IsOK(ecode4)) {
24951 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
24952 }
24953 arg4 = static_cast< wxDouble >(val4);
24954 {
24955 (arg1)->AddCircle(arg2,arg3,arg4);
24956 if (PyErr_Occurred()) SWIG_fail;
24957 }
24958 resultobj = SWIG_Py_Void();
24959 return resultobj;
24960 fail:
24961 return NULL;
24962 }
24963
24964
24965 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24966 PyObject *resultobj = 0;
24967 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24968 wxDouble arg2 ;
24969 wxDouble arg3 ;
24970 wxDouble arg4 ;
24971 wxDouble arg5 ;
24972 wxDouble arg6 ;
24973 void *argp1 = 0 ;
24974 int res1 = 0 ;
24975 double val2 ;
24976 int ecode2 = 0 ;
24977 double val3 ;
24978 int ecode3 = 0 ;
24979 double val4 ;
24980 int ecode4 = 0 ;
24981 double val5 ;
24982 int ecode5 = 0 ;
24983 double val6 ;
24984 int ecode6 = 0 ;
24985 PyObject * obj0 = 0 ;
24986 PyObject * obj1 = 0 ;
24987 PyObject * obj2 = 0 ;
24988 PyObject * obj3 = 0 ;
24989 PyObject * obj4 = 0 ;
24990 PyObject * obj5 = 0 ;
24991 char * kwnames[] = {
24992 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
24993 };
24994
24995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
24996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24997 if (!SWIG_IsOK(res1)) {
24998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24999 }
25000 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25001 ecode2 = SWIG_AsVal_double(obj1, &val2);
25002 if (!SWIG_IsOK(ecode2)) {
25003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25004 }
25005 arg2 = static_cast< wxDouble >(val2);
25006 ecode3 = SWIG_AsVal_double(obj2, &val3);
25007 if (!SWIG_IsOK(ecode3)) {
25008 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25009 }
25010 arg3 = static_cast< wxDouble >(val3);
25011 ecode4 = SWIG_AsVal_double(obj3, &val4);
25012 if (!SWIG_IsOK(ecode4)) {
25013 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25014 }
25015 arg4 = static_cast< wxDouble >(val4);
25016 ecode5 = SWIG_AsVal_double(obj4, &val5);
25017 if (!SWIG_IsOK(ecode5)) {
25018 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25019 }
25020 arg5 = static_cast< wxDouble >(val5);
25021 ecode6 = SWIG_AsVal_double(obj5, &val6);
25022 if (!SWIG_IsOK(ecode6)) {
25023 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25024 }
25025 arg6 = static_cast< wxDouble >(val6);
25026 {
25027 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
25028 if (PyErr_Occurred()) SWIG_fail;
25029 }
25030 resultobj = SWIG_Py_Void();
25031 return resultobj;
25032 fail:
25033 return NULL;
25034 }
25035
25036
25037 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25038 PyObject *obj;
25039 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25040 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
25041 return SWIG_Py_Void();
25042 }
25043
25044 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25045 PyObject *resultobj = 0;
25046 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25047 void *argp1 = 0 ;
25048 int res1 = 0 ;
25049 PyObject *swig_obj[1] ;
25050
25051 if (!args) SWIG_fail;
25052 swig_obj[0] = args;
25053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
25054 if (!SWIG_IsOK(res1)) {
25055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25056 }
25057 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25058 {
25059 delete arg1;
25060
25061 if (PyErr_Occurred()) SWIG_fail;
25062 }
25063 resultobj = SWIG_Py_Void();
25064 return resultobj;
25065 fail:
25066 return NULL;
25067 }
25068
25069
25070 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25071 PyObject *resultobj = 0;
25072 wxWindowDC *arg1 = 0 ;
25073 wxGraphicsContext *result = 0 ;
25074 void *argp1 = 0 ;
25075 int res1 = 0 ;
25076
25077 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
25078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
25079 if (!SWIG_IsOK(res1)) {
25080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25081 }
25082 if (!argp1) {
25083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25084 }
25085 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
25086 {
25087 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
25088 if (PyErr_Occurred()) SWIG_fail;
25089 }
25090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25091 return resultobj;
25092 fail:
25093 return NULL;
25094 }
25095
25096
25097 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25098 PyObject *resultobj = 0;
25099 wxWindow *arg1 = (wxWindow *) 0 ;
25100 wxGraphicsContext *result = 0 ;
25101 void *argp1 = 0 ;
25102 int res1 = 0 ;
25103
25104 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
25105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25106 if (!SWIG_IsOK(res1)) {
25107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
25108 }
25109 arg1 = reinterpret_cast< wxWindow * >(argp1);
25110 {
25111 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
25112 if (PyErr_Occurred()) SWIG_fail;
25113 }
25114 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25115 return resultobj;
25116 fail:
25117 return NULL;
25118 }
25119
25120
25121 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
25122 int argc;
25123 PyObject *argv[2];
25124
25125 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
25126 --argc;
25127 if (argc == 1) {
25128 int _v = 0;
25129 {
25130 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
25131 _v = SWIG_CheckState(res);
25132 }
25133 if (!_v) goto check_1;
25134 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
25135 }
25136 check_1:
25137
25138 if (argc == 1) {
25139 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
25140 }
25141
25142 fail:
25143 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
25144 return NULL;
25145 }
25146
25147
25148 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25149 PyObject *resultobj = 0;
25150 void *arg1 = (void *) 0 ;
25151 wxGraphicsContext *result = 0 ;
25152 int res1 ;
25153 PyObject * obj0 = 0 ;
25154 char * kwnames[] = {
25155 (char *) "context", NULL
25156 };
25157
25158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
25159 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
25160 if (!SWIG_IsOK(res1)) {
25161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
25162 }
25163 {
25164 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
25165 if (PyErr_Occurred()) SWIG_fail;
25166 }
25167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25168 return resultobj;
25169 fail:
25170 return NULL;
25171 }
25172
25173
25174 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25175 PyObject *resultobj = 0;
25176 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25177 wxGraphicsPath *result = 0 ;
25178 void *argp1 = 0 ;
25179 int res1 = 0 ;
25180 PyObject *swig_obj[1] ;
25181
25182 if (!args) SWIG_fail;
25183 swig_obj[0] = args;
25184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25185 if (!SWIG_IsOK(res1)) {
25186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25187 }
25188 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25189 {
25190 result = (wxGraphicsPath *)(arg1)->CreatePath();
25191 if (PyErr_Occurred()) SWIG_fail;
25192 }
25193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25194 return resultobj;
25195 fail:
25196 return NULL;
25197 }
25198
25199
25200 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25201 PyObject *resultobj = 0;
25202 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25203 void *argp1 = 0 ;
25204 int res1 = 0 ;
25205 PyObject *swig_obj[1] ;
25206
25207 if (!args) SWIG_fail;
25208 swig_obj[0] = args;
25209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25210 if (!SWIG_IsOK(res1)) {
25211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25212 }
25213 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25214 {
25215 (arg1)->PushState();
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_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25226 PyObject *resultobj = 0;
25227 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25228 void *argp1 = 0 ;
25229 int res1 = 0 ;
25230 PyObject *swig_obj[1] ;
25231
25232 if (!args) SWIG_fail;
25233 swig_obj[0] = args;
25234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25235 if (!SWIG_IsOK(res1)) {
25236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25237 }
25238 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25239 {
25240 (arg1)->PopState();
25241 if (PyErr_Occurred()) SWIG_fail;
25242 }
25243 resultobj = SWIG_Py_Void();
25244 return resultobj;
25245 fail:
25246 return NULL;
25247 }
25248
25249
25250 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25251 PyObject *resultobj = 0;
25252 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25253 wxRegion *arg2 = 0 ;
25254 void *argp1 = 0 ;
25255 int res1 = 0 ;
25256 void *argp2 = 0 ;
25257 int res2 = 0 ;
25258 PyObject * obj0 = 0 ;
25259 PyObject * obj1 = 0 ;
25260 char * kwnames[] = {
25261 (char *) "self",(char *) "region", NULL
25262 };
25263
25264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
25265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25266 if (!SWIG_IsOK(res1)) {
25267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25268 }
25269 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25270 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
25271 if (!SWIG_IsOK(res2)) {
25272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
25273 }
25274 if (!argp2) {
25275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
25276 }
25277 arg2 = reinterpret_cast< wxRegion * >(argp2);
25278 {
25279 (arg1)->Clip((wxRegion const &)*arg2);
25280 if (PyErr_Occurred()) SWIG_fail;
25281 }
25282 resultobj = SWIG_Py_Void();
25283 return resultobj;
25284 fail:
25285 return NULL;
25286 }
25287
25288
25289 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25290 PyObject *resultobj = 0;
25291 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25292 wxDouble arg2 ;
25293 wxDouble arg3 ;
25294 wxDouble arg4 ;
25295 wxDouble arg5 ;
25296 void *argp1 = 0 ;
25297 int res1 = 0 ;
25298 double val2 ;
25299 int ecode2 = 0 ;
25300 double val3 ;
25301 int ecode3 = 0 ;
25302 double val4 ;
25303 int ecode4 = 0 ;
25304 double val5 ;
25305 int ecode5 = 0 ;
25306 PyObject * obj0 = 0 ;
25307 PyObject * obj1 = 0 ;
25308 PyObject * obj2 = 0 ;
25309 PyObject * obj3 = 0 ;
25310 PyObject * obj4 = 0 ;
25311 char * kwnames[] = {
25312 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25313 };
25314
25315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25317 if (!SWIG_IsOK(res1)) {
25318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25319 }
25320 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25321 ecode2 = SWIG_AsVal_double(obj1, &val2);
25322 if (!SWIG_IsOK(ecode2)) {
25323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
25324 }
25325 arg2 = static_cast< wxDouble >(val2);
25326 ecode3 = SWIG_AsVal_double(obj2, &val3);
25327 if (!SWIG_IsOK(ecode3)) {
25328 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
25329 }
25330 arg3 = static_cast< wxDouble >(val3);
25331 ecode4 = SWIG_AsVal_double(obj3, &val4);
25332 if (!SWIG_IsOK(ecode4)) {
25333 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
25334 }
25335 arg4 = static_cast< wxDouble >(val4);
25336 ecode5 = SWIG_AsVal_double(obj4, &val5);
25337 if (!SWIG_IsOK(ecode5)) {
25338 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
25339 }
25340 arg5 = static_cast< wxDouble >(val5);
25341 {
25342 (arg1)->Clip(arg2,arg3,arg4,arg5);
25343 if (PyErr_Occurred()) SWIG_fail;
25344 }
25345 resultobj = SWIG_Py_Void();
25346 return resultobj;
25347 fail:
25348 return NULL;
25349 }
25350
25351
25352 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25353 PyObject *resultobj = 0;
25354 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25355 void *argp1 = 0 ;
25356 int res1 = 0 ;
25357 PyObject *swig_obj[1] ;
25358
25359 if (!args) SWIG_fail;
25360 swig_obj[0] = args;
25361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25362 if (!SWIG_IsOK(res1)) {
25363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25364 }
25365 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25366 {
25367 (arg1)->ResetClip();
25368 if (PyErr_Occurred()) SWIG_fail;
25369 }
25370 resultobj = SWIG_Py_Void();
25371 return resultobj;
25372 fail:
25373 return NULL;
25374 }
25375
25376
25377 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25378 PyObject *resultobj = 0;
25379 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25380 void *result = 0 ;
25381 void *argp1 = 0 ;
25382 int res1 = 0 ;
25383 PyObject *swig_obj[1] ;
25384
25385 if (!args) SWIG_fail;
25386 swig_obj[0] = args;
25387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25388 if (!SWIG_IsOK(res1)) {
25389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25390 }
25391 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25392 {
25393 result = (void *)(arg1)->GetNativeContext();
25394 if (PyErr_Occurred()) SWIG_fail;
25395 }
25396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
25397 return resultobj;
25398 fail:
25399 return NULL;
25400 }
25401
25402
25403 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25404 PyObject *resultobj = 0;
25405 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25406 wxDouble arg2 ;
25407 wxDouble arg3 ;
25408 void *argp1 = 0 ;
25409 int res1 = 0 ;
25410 double val2 ;
25411 int ecode2 = 0 ;
25412 double val3 ;
25413 int ecode3 = 0 ;
25414 PyObject * obj0 = 0 ;
25415 PyObject * obj1 = 0 ;
25416 PyObject * obj2 = 0 ;
25417 char * kwnames[] = {
25418 (char *) "self",(char *) "dx",(char *) "dy", NULL
25419 };
25420
25421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25423 if (!SWIG_IsOK(res1)) {
25424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25425 }
25426 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25427 ecode2 = SWIG_AsVal_double(obj1, &val2);
25428 if (!SWIG_IsOK(ecode2)) {
25429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25430 }
25431 arg2 = static_cast< wxDouble >(val2);
25432 ecode3 = SWIG_AsVal_double(obj2, &val3);
25433 if (!SWIG_IsOK(ecode3)) {
25434 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25435 }
25436 arg3 = static_cast< wxDouble >(val3);
25437 {
25438 (arg1)->Translate(arg2,arg3);
25439 if (PyErr_Occurred()) SWIG_fail;
25440 }
25441 resultobj = SWIG_Py_Void();
25442 return resultobj;
25443 fail:
25444 return NULL;
25445 }
25446
25447
25448 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25449 PyObject *resultobj = 0;
25450 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25451 wxDouble arg2 ;
25452 wxDouble arg3 ;
25453 void *argp1 = 0 ;
25454 int res1 = 0 ;
25455 double val2 ;
25456 int ecode2 = 0 ;
25457 double val3 ;
25458 int ecode3 = 0 ;
25459 PyObject * obj0 = 0 ;
25460 PyObject * obj1 = 0 ;
25461 PyObject * obj2 = 0 ;
25462 char * kwnames[] = {
25463 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25464 };
25465
25466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25468 if (!SWIG_IsOK(res1)) {
25469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25470 }
25471 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25472 ecode2 = SWIG_AsVal_double(obj1, &val2);
25473 if (!SWIG_IsOK(ecode2)) {
25474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25475 }
25476 arg2 = static_cast< wxDouble >(val2);
25477 ecode3 = SWIG_AsVal_double(obj2, &val3);
25478 if (!SWIG_IsOK(ecode3)) {
25479 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25480 }
25481 arg3 = static_cast< wxDouble >(val3);
25482 {
25483 (arg1)->Scale(arg2,arg3);
25484 if (PyErr_Occurred()) SWIG_fail;
25485 }
25486 resultobj = SWIG_Py_Void();
25487 return resultobj;
25488 fail:
25489 return NULL;
25490 }
25491
25492
25493 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25494 PyObject *resultobj = 0;
25495 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25496 wxDouble arg2 ;
25497 void *argp1 = 0 ;
25498 int res1 = 0 ;
25499 double val2 ;
25500 int ecode2 = 0 ;
25501 PyObject * obj0 = 0 ;
25502 PyObject * obj1 = 0 ;
25503 char * kwnames[] = {
25504 (char *) "self",(char *) "angle", NULL
25505 };
25506
25507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25509 if (!SWIG_IsOK(res1)) {
25510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25511 }
25512 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25513 ecode2 = SWIG_AsVal_double(obj1, &val2);
25514 if (!SWIG_IsOK(ecode2)) {
25515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25516 }
25517 arg2 = static_cast< wxDouble >(val2);
25518 {
25519 (arg1)->Rotate(arg2);
25520 if (PyErr_Occurred()) SWIG_fail;
25521 }
25522 resultobj = SWIG_Py_Void();
25523 return resultobj;
25524 fail:
25525 return NULL;
25526 }
25527
25528
25529 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25530 PyObject *resultobj = 0;
25531 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25532 wxPen *arg2 = 0 ;
25533 void *argp1 = 0 ;
25534 int res1 = 0 ;
25535 void *argp2 = 0 ;
25536 int res2 = 0 ;
25537 PyObject * obj0 = 0 ;
25538 PyObject * obj1 = 0 ;
25539 char * kwnames[] = {
25540 (char *) "self",(char *) "pen", NULL
25541 };
25542
25543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
25544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25545 if (!SWIG_IsOK(res1)) {
25546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25547 }
25548 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25549 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
25550 if (!SWIG_IsOK(res2)) {
25551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25552 }
25553 if (!argp2) {
25554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25555 }
25556 arg2 = reinterpret_cast< wxPen * >(argp2);
25557 {
25558 (arg1)->SetPen((wxPen const &)*arg2);
25559 if (PyErr_Occurred()) SWIG_fail;
25560 }
25561 resultobj = SWIG_Py_Void();
25562 return resultobj;
25563 fail:
25564 return NULL;
25565 }
25566
25567
25568 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25569 PyObject *resultobj = 0;
25570 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25571 wxBrush *arg2 = 0 ;
25572 void *argp1 = 0 ;
25573 int res1 = 0 ;
25574 void *argp2 = 0 ;
25575 int res2 = 0 ;
25576 PyObject * obj0 = 0 ;
25577 PyObject * obj1 = 0 ;
25578 char * kwnames[] = {
25579 (char *) "self",(char *) "brush", NULL
25580 };
25581
25582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25584 if (!SWIG_IsOK(res1)) {
25585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25586 }
25587 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25588 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
25589 if (!SWIG_IsOK(res2)) {
25590 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25591 }
25592 if (!argp2) {
25593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25594 }
25595 arg2 = reinterpret_cast< wxBrush * >(argp2);
25596 {
25597 (arg1)->SetBrush((wxBrush const &)*arg2);
25598 if (PyErr_Occurred()) SWIG_fail;
25599 }
25600 resultobj = SWIG_Py_Void();
25601 return resultobj;
25602 fail:
25603 return NULL;
25604 }
25605
25606
25607 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25608 PyObject *resultobj = 0;
25609 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25610 wxDouble arg2 ;
25611 wxDouble arg3 ;
25612 wxDouble arg4 ;
25613 wxDouble arg5 ;
25614 wxColour *arg6 = 0 ;
25615 wxColour *arg7 = 0 ;
25616 void *argp1 = 0 ;
25617 int res1 = 0 ;
25618 double val2 ;
25619 int ecode2 = 0 ;
25620 double val3 ;
25621 int ecode3 = 0 ;
25622 double val4 ;
25623 int ecode4 = 0 ;
25624 double val5 ;
25625 int ecode5 = 0 ;
25626 wxColour temp6 ;
25627 wxColour temp7 ;
25628 PyObject * obj0 = 0 ;
25629 PyObject * obj1 = 0 ;
25630 PyObject * obj2 = 0 ;
25631 PyObject * obj3 = 0 ;
25632 PyObject * obj4 = 0 ;
25633 PyObject * obj5 = 0 ;
25634 PyObject * obj6 = 0 ;
25635 char * kwnames[] = {
25636 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
25637 };
25638
25639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25641 if (!SWIG_IsOK(res1)) {
25642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25643 }
25644 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25645 ecode2 = SWIG_AsVal_double(obj1, &val2);
25646 if (!SWIG_IsOK(ecode2)) {
25647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25648 }
25649 arg2 = static_cast< wxDouble >(val2);
25650 ecode3 = SWIG_AsVal_double(obj2, &val3);
25651 if (!SWIG_IsOK(ecode3)) {
25652 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25653 }
25654 arg3 = static_cast< wxDouble >(val3);
25655 ecode4 = SWIG_AsVal_double(obj3, &val4);
25656 if (!SWIG_IsOK(ecode4)) {
25657 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25658 }
25659 arg4 = static_cast< wxDouble >(val4);
25660 ecode5 = SWIG_AsVal_double(obj4, &val5);
25661 if (!SWIG_IsOK(ecode5)) {
25662 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25663 }
25664 arg5 = static_cast< wxDouble >(val5);
25665 {
25666 arg6 = &temp6;
25667 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
25668 }
25669 {
25670 arg7 = &temp7;
25671 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25672 }
25673 {
25674 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
25675 if (PyErr_Occurred()) SWIG_fail;
25676 }
25677 resultobj = SWIG_Py_Void();
25678 return resultobj;
25679 fail:
25680 return NULL;
25681 }
25682
25683
25684 SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25685 PyObject *resultobj = 0;
25686 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25687 wxDouble arg2 ;
25688 wxDouble arg3 ;
25689 wxDouble arg4 ;
25690 wxDouble arg5 ;
25691 wxDouble arg6 ;
25692 wxColour *arg7 = 0 ;
25693 wxColour *arg8 = 0 ;
25694 void *argp1 = 0 ;
25695 int res1 = 0 ;
25696 double val2 ;
25697 int ecode2 = 0 ;
25698 double val3 ;
25699 int ecode3 = 0 ;
25700 double val4 ;
25701 int ecode4 = 0 ;
25702 double val5 ;
25703 int ecode5 = 0 ;
25704 double val6 ;
25705 int ecode6 = 0 ;
25706 wxColour temp7 ;
25707 wxColour temp8 ;
25708 PyObject * obj0 = 0 ;
25709 PyObject * obj1 = 0 ;
25710 PyObject * obj2 = 0 ;
25711 PyObject * obj3 = 0 ;
25712 PyObject * obj4 = 0 ;
25713 PyObject * obj5 = 0 ;
25714 PyObject * obj6 = 0 ;
25715 PyObject * obj7 = 0 ;
25716 char * kwnames[] = {
25717 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
25718 };
25719
25720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25722 if (!SWIG_IsOK(res1)) {
25723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25724 }
25725 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25726 ecode2 = SWIG_AsVal_double(obj1, &val2);
25727 if (!SWIG_IsOK(ecode2)) {
25728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25729 }
25730 arg2 = static_cast< wxDouble >(val2);
25731 ecode3 = SWIG_AsVal_double(obj2, &val3);
25732 if (!SWIG_IsOK(ecode3)) {
25733 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25734 }
25735 arg3 = static_cast< wxDouble >(val3);
25736 ecode4 = SWIG_AsVal_double(obj3, &val4);
25737 if (!SWIG_IsOK(ecode4)) {
25738 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25739 }
25740 arg4 = static_cast< wxDouble >(val4);
25741 ecode5 = SWIG_AsVal_double(obj4, &val5);
25742 if (!SWIG_IsOK(ecode5)) {
25743 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25744 }
25745 arg5 = static_cast< wxDouble >(val5);
25746 ecode6 = SWIG_AsVal_double(obj5, &val6);
25747 if (!SWIG_IsOK(ecode6)) {
25748 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
25749 }
25750 arg6 = static_cast< wxDouble >(val6);
25751 {
25752 arg7 = &temp7;
25753 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25754 }
25755 {
25756 arg8 = &temp8;
25757 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
25758 }
25759 {
25760 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
25761 if (PyErr_Occurred()) SWIG_fail;
25762 }
25763 resultobj = SWIG_Py_Void();
25764 return resultobj;
25765 fail:
25766 return NULL;
25767 }
25768
25769
25770 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25771 PyObject *resultobj = 0;
25772 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25773 wxFont *arg2 = 0 ;
25774 void *argp1 = 0 ;
25775 int res1 = 0 ;
25776 void *argp2 = 0 ;
25777 int res2 = 0 ;
25778 PyObject * obj0 = 0 ;
25779 PyObject * obj1 = 0 ;
25780 char * kwnames[] = {
25781 (char *) "self",(char *) "font", NULL
25782 };
25783
25784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25786 if (!SWIG_IsOK(res1)) {
25787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25788 }
25789 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25790 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25791 if (!SWIG_IsOK(res2)) {
25792 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25793 }
25794 if (!argp2) {
25795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25796 }
25797 arg2 = reinterpret_cast< wxFont * >(argp2);
25798 {
25799 (arg1)->SetFont((wxFont const &)*arg2);
25800 if (PyErr_Occurred()) SWIG_fail;
25801 }
25802 resultobj = SWIG_Py_Void();
25803 return resultobj;
25804 fail:
25805 return NULL;
25806 }
25807
25808
25809 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25810 PyObject *resultobj = 0;
25811 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25812 wxColour *arg2 = 0 ;
25813 void *argp1 = 0 ;
25814 int res1 = 0 ;
25815 wxColour temp2 ;
25816 PyObject * obj0 = 0 ;
25817 PyObject * obj1 = 0 ;
25818 char * kwnames[] = {
25819 (char *) "self",(char *) "col", NULL
25820 };
25821
25822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
25823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25824 if (!SWIG_IsOK(res1)) {
25825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25826 }
25827 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25828 {
25829 arg2 = &temp2;
25830 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25831 }
25832 {
25833 (arg1)->SetTextColor((wxColour const &)*arg2);
25834 if (PyErr_Occurred()) SWIG_fail;
25835 }
25836 resultobj = SWIG_Py_Void();
25837 return resultobj;
25838 fail:
25839 return NULL;
25840 }
25841
25842
25843 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25844 PyObject *resultobj = 0;
25845 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25846 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25847 void *argp1 = 0 ;
25848 int res1 = 0 ;
25849 void *argp2 = 0 ;
25850 int res2 = 0 ;
25851 PyObject * obj0 = 0 ;
25852 PyObject * obj1 = 0 ;
25853 char * kwnames[] = {
25854 (char *) "self",(char *) "path", NULL
25855 };
25856
25857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
25858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25859 if (!SWIG_IsOK(res1)) {
25860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25861 }
25862 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25863 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25864 if (!SWIG_IsOK(res2)) {
25865 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25866 }
25867 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25868 {
25869 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
25870 if (PyErr_Occurred()) SWIG_fail;
25871 }
25872 resultobj = SWIG_Py_Void();
25873 return resultobj;
25874 fail:
25875 return NULL;
25876 }
25877
25878
25879 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25880 PyObject *resultobj = 0;
25881 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25882 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25883 int arg3 = (int) wxWINDING_RULE ;
25884 void *argp1 = 0 ;
25885 int res1 = 0 ;
25886 void *argp2 = 0 ;
25887 int res2 = 0 ;
25888 int val3 ;
25889 int ecode3 = 0 ;
25890 PyObject * obj0 = 0 ;
25891 PyObject * obj1 = 0 ;
25892 PyObject * obj2 = 0 ;
25893 char * kwnames[] = {
25894 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25895 };
25896
25897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25899 if (!SWIG_IsOK(res1)) {
25900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25901 }
25902 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25903 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25904 if (!SWIG_IsOK(res2)) {
25905 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25906 }
25907 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25908 if (obj2) {
25909 ecode3 = SWIG_AsVal_int(obj2, &val3);
25910 if (!SWIG_IsOK(ecode3)) {
25911 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
25912 }
25913 arg3 = static_cast< int >(val3);
25914 }
25915 {
25916 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
25917 if (PyErr_Occurred()) SWIG_fail;
25918 }
25919 resultobj = SWIG_Py_Void();
25920 return resultobj;
25921 fail:
25922 return NULL;
25923 }
25924
25925
25926 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25927 PyObject *resultobj = 0;
25928 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25929 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25930 int arg3 = (int) wxWINDING_RULE ;
25931 void *argp1 = 0 ;
25932 int res1 = 0 ;
25933 void *argp2 = 0 ;
25934 int res2 = 0 ;
25935 int val3 ;
25936 int ecode3 = 0 ;
25937 PyObject * obj0 = 0 ;
25938 PyObject * obj1 = 0 ;
25939 PyObject * obj2 = 0 ;
25940 char * kwnames[] = {
25941 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25942 };
25943
25944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25946 if (!SWIG_IsOK(res1)) {
25947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25948 }
25949 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25950 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25951 if (!SWIG_IsOK(res2)) {
25952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25953 }
25954 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25955 if (obj2) {
25956 ecode3 = SWIG_AsVal_int(obj2, &val3);
25957 if (!SWIG_IsOK(ecode3)) {
25958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
25959 }
25960 arg3 = static_cast< int >(val3);
25961 }
25962 {
25963 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
25964 if (PyErr_Occurred()) SWIG_fail;
25965 }
25966 resultobj = SWIG_Py_Void();
25967 return resultobj;
25968 fail:
25969 return NULL;
25970 }
25971
25972
25973 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25974 PyObject *resultobj = 0;
25975 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25976 wxString *arg2 = 0 ;
25977 wxDouble arg3 ;
25978 wxDouble arg4 ;
25979 void *argp1 = 0 ;
25980 int res1 = 0 ;
25981 bool temp2 = false ;
25982 double val3 ;
25983 int ecode3 = 0 ;
25984 double val4 ;
25985 int ecode4 = 0 ;
25986 PyObject * obj0 = 0 ;
25987 PyObject * obj1 = 0 ;
25988 PyObject * obj2 = 0 ;
25989 PyObject * obj3 = 0 ;
25990 char * kwnames[] = {
25991 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
25992 };
25993
25994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25996 if (!SWIG_IsOK(res1)) {
25997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25998 }
25999 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26000 {
26001 arg2 = wxString_in_helper(obj1);
26002 if (arg2 == NULL) SWIG_fail;
26003 temp2 = true;
26004 }
26005 ecode3 = SWIG_AsVal_double(obj2, &val3);
26006 if (!SWIG_IsOK(ecode3)) {
26007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
26008 }
26009 arg3 = static_cast< wxDouble >(val3);
26010 ecode4 = SWIG_AsVal_double(obj3, &val4);
26011 if (!SWIG_IsOK(ecode4)) {
26012 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
26013 }
26014 arg4 = static_cast< wxDouble >(val4);
26015 {
26016 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
26017 if (PyErr_Occurred()) SWIG_fail;
26018 }
26019 resultobj = SWIG_Py_Void();
26020 {
26021 if (temp2)
26022 delete arg2;
26023 }
26024 return resultobj;
26025 fail:
26026 {
26027 if (temp2)
26028 delete arg2;
26029 }
26030 return NULL;
26031 }
26032
26033
26034 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26035 PyObject *resultobj = 0;
26036 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26037 wxString *arg2 = 0 ;
26038 wxDouble arg3 ;
26039 wxDouble arg4 ;
26040 wxDouble arg5 ;
26041 void *argp1 = 0 ;
26042 int res1 = 0 ;
26043 bool temp2 = false ;
26044 double val3 ;
26045 int ecode3 = 0 ;
26046 double val4 ;
26047 int ecode4 = 0 ;
26048 double val5 ;
26049 int ecode5 = 0 ;
26050 PyObject * obj0 = 0 ;
26051 PyObject * obj1 = 0 ;
26052 PyObject * obj2 = 0 ;
26053 PyObject * obj3 = 0 ;
26054 PyObject * obj4 = 0 ;
26055 char * kwnames[] = {
26056 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
26057 };
26058
26059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26061 if (!SWIG_IsOK(res1)) {
26062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26063 }
26064 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26065 {
26066 arg2 = wxString_in_helper(obj1);
26067 if (arg2 == NULL) SWIG_fail;
26068 temp2 = true;
26069 }
26070 ecode3 = SWIG_AsVal_double(obj2, &val3);
26071 if (!SWIG_IsOK(ecode3)) {
26072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
26073 }
26074 arg3 = static_cast< wxDouble >(val3);
26075 ecode4 = SWIG_AsVal_double(obj3, &val4);
26076 if (!SWIG_IsOK(ecode4)) {
26077 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
26078 }
26079 arg4 = static_cast< wxDouble >(val4);
26080 ecode5 = SWIG_AsVal_double(obj4, &val5);
26081 if (!SWIG_IsOK(ecode5)) {
26082 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
26083 }
26084 arg5 = static_cast< wxDouble >(val5);
26085 {
26086 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
26087 if (PyErr_Occurred()) SWIG_fail;
26088 }
26089 resultobj = SWIG_Py_Void();
26090 {
26091 if (temp2)
26092 delete arg2;
26093 }
26094 return resultobj;
26095 fail:
26096 {
26097 if (temp2)
26098 delete arg2;
26099 }
26100 return NULL;
26101 }
26102
26103
26104 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26105 PyObject *resultobj = 0;
26106 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26107 wxString *arg2 = 0 ;
26108 wxDouble *arg3 = (wxDouble *) 0 ;
26109 wxDouble *arg4 = (wxDouble *) 0 ;
26110 wxDouble *arg5 = (wxDouble *) 0 ;
26111 wxDouble *arg6 = (wxDouble *) 0 ;
26112 void *argp1 = 0 ;
26113 int res1 = 0 ;
26114 bool temp2 = false ;
26115 wxDouble temp3 ;
26116 int res3 = SWIG_TMPOBJ ;
26117 wxDouble temp4 ;
26118 int res4 = SWIG_TMPOBJ ;
26119 wxDouble temp5 ;
26120 int res5 = SWIG_TMPOBJ ;
26121 wxDouble temp6 ;
26122 int res6 = SWIG_TMPOBJ ;
26123 PyObject * obj0 = 0 ;
26124 PyObject * obj1 = 0 ;
26125 char * kwnames[] = {
26126 (char *) "self",(char *) "text", NULL
26127 };
26128
26129 arg3 = &temp3;
26130 arg4 = &temp4;
26131 arg5 = &temp5;
26132 arg6 = &temp6;
26133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
26134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26135 if (!SWIG_IsOK(res1)) {
26136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
26137 }
26138 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26139 {
26140 arg2 = wxString_in_helper(obj1);
26141 if (arg2 == NULL) SWIG_fail;
26142 temp2 = true;
26143 }
26144 {
26145 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
26146 if (PyErr_Occurred()) SWIG_fail;
26147 }
26148 resultobj = SWIG_Py_Void();
26149 if (SWIG_IsTmpObj(res3)) {
26150 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26151 } else {
26152 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26153 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26154 }
26155 if (SWIG_IsTmpObj(res4)) {
26156 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26157 } else {
26158 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26160 }
26161 if (SWIG_IsTmpObj(res5)) {
26162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26163 } else {
26164 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26166 }
26167 if (SWIG_IsTmpObj(res6)) {
26168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26169 } else {
26170 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26172 }
26173 {
26174 if (temp2)
26175 delete arg2;
26176 }
26177 return resultobj;
26178 fail:
26179 {
26180 if (temp2)
26181 delete arg2;
26182 }
26183 return NULL;
26184 }
26185
26186
26187 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26188 PyObject *resultobj = 0;
26189 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26190 wxString *arg2 = 0 ;
26191 wxArrayDouble result;
26192 void *argp1 = 0 ;
26193 int res1 = 0 ;
26194 bool temp2 = false ;
26195 PyObject * obj0 = 0 ;
26196 PyObject * obj1 = 0 ;
26197 char * kwnames[] = {
26198 (char *) "self",(char *) "text", NULL
26199 };
26200
26201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
26202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26203 if (!SWIG_IsOK(res1)) {
26204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26205 }
26206 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26207 {
26208 arg2 = wxString_in_helper(obj1);
26209 if (arg2 == NULL) SWIG_fail;
26210 temp2 = true;
26211 }
26212 {
26213 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
26214 if (PyErr_Occurred()) SWIG_fail;
26215 }
26216 {
26217 resultobj = wxArrayDouble2PyList_helper(result);
26218 }
26219 {
26220 if (temp2)
26221 delete arg2;
26222 }
26223 return resultobj;
26224 fail:
26225 {
26226 if (temp2)
26227 delete arg2;
26228 }
26229 return NULL;
26230 }
26231
26232
26233 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26234 PyObject *resultobj = 0;
26235 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26236 wxBitmap *arg2 = 0 ;
26237 wxDouble arg3 ;
26238 wxDouble arg4 ;
26239 wxDouble arg5 ;
26240 wxDouble arg6 ;
26241 void *argp1 = 0 ;
26242 int res1 = 0 ;
26243 void *argp2 = 0 ;
26244 int res2 = 0 ;
26245 double val3 ;
26246 int ecode3 = 0 ;
26247 double val4 ;
26248 int ecode4 = 0 ;
26249 double val5 ;
26250 int ecode5 = 0 ;
26251 double val6 ;
26252 int ecode6 = 0 ;
26253 PyObject * obj0 = 0 ;
26254 PyObject * obj1 = 0 ;
26255 PyObject * obj2 = 0 ;
26256 PyObject * obj3 = 0 ;
26257 PyObject * obj4 = 0 ;
26258 PyObject * obj5 = 0 ;
26259 char * kwnames[] = {
26260 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26261 };
26262
26263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26265 if (!SWIG_IsOK(res1)) {
26266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26267 }
26268 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26269 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26270 if (!SWIG_IsOK(res2)) {
26271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26272 }
26273 if (!argp2) {
26274 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26275 }
26276 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26277 ecode3 = SWIG_AsVal_double(obj2, &val3);
26278 if (!SWIG_IsOK(ecode3)) {
26279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
26280 }
26281 arg3 = static_cast< wxDouble >(val3);
26282 ecode4 = SWIG_AsVal_double(obj3, &val4);
26283 if (!SWIG_IsOK(ecode4)) {
26284 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
26285 }
26286 arg4 = static_cast< wxDouble >(val4);
26287 ecode5 = SWIG_AsVal_double(obj4, &val5);
26288 if (!SWIG_IsOK(ecode5)) {
26289 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
26290 }
26291 arg5 = static_cast< wxDouble >(val5);
26292 ecode6 = SWIG_AsVal_double(obj5, &val6);
26293 if (!SWIG_IsOK(ecode6)) {
26294 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
26295 }
26296 arg6 = static_cast< wxDouble >(val6);
26297 {
26298 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
26299 if (PyErr_Occurred()) SWIG_fail;
26300 }
26301 resultobj = SWIG_Py_Void();
26302 return resultobj;
26303 fail:
26304 return NULL;
26305 }
26306
26307
26308 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26309 PyObject *resultobj = 0;
26310 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26311 wxIcon *arg2 = 0 ;
26312 wxDouble arg3 ;
26313 wxDouble arg4 ;
26314 wxDouble arg5 ;
26315 wxDouble arg6 ;
26316 void *argp1 = 0 ;
26317 int res1 = 0 ;
26318 void *argp2 = 0 ;
26319 int res2 = 0 ;
26320 double val3 ;
26321 int ecode3 = 0 ;
26322 double val4 ;
26323 int ecode4 = 0 ;
26324 double val5 ;
26325 int ecode5 = 0 ;
26326 double val6 ;
26327 int ecode6 = 0 ;
26328 PyObject * obj0 = 0 ;
26329 PyObject * obj1 = 0 ;
26330 PyObject * obj2 = 0 ;
26331 PyObject * obj3 = 0 ;
26332 PyObject * obj4 = 0 ;
26333 PyObject * obj5 = 0 ;
26334 char * kwnames[] = {
26335 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26336 };
26337
26338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26340 if (!SWIG_IsOK(res1)) {
26341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26342 }
26343 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26344 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26345 if (!SWIG_IsOK(res2)) {
26346 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26347 }
26348 if (!argp2) {
26349 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26350 }
26351 arg2 = reinterpret_cast< wxIcon * >(argp2);
26352 ecode3 = SWIG_AsVal_double(obj2, &val3);
26353 if (!SWIG_IsOK(ecode3)) {
26354 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
26355 }
26356 arg3 = static_cast< wxDouble >(val3);
26357 ecode4 = SWIG_AsVal_double(obj3, &val4);
26358 if (!SWIG_IsOK(ecode4)) {
26359 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
26360 }
26361 arg4 = static_cast< wxDouble >(val4);
26362 ecode5 = SWIG_AsVal_double(obj4, &val5);
26363 if (!SWIG_IsOK(ecode5)) {
26364 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
26365 }
26366 arg5 = static_cast< wxDouble >(val5);
26367 ecode6 = SWIG_AsVal_double(obj5, &val6);
26368 if (!SWIG_IsOK(ecode6)) {
26369 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
26370 }
26371 arg6 = static_cast< wxDouble >(val6);
26372 {
26373 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
26374 if (PyErr_Occurred()) SWIG_fail;
26375 }
26376 resultobj = SWIG_Py_Void();
26377 return resultobj;
26378 fail:
26379 return NULL;
26380 }
26381
26382
26383 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26384 PyObject *resultobj = 0;
26385 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26386 wxDouble arg2 ;
26387 wxDouble arg3 ;
26388 wxDouble arg4 ;
26389 wxDouble arg5 ;
26390 void *argp1 = 0 ;
26391 int res1 = 0 ;
26392 double val2 ;
26393 int ecode2 = 0 ;
26394 double val3 ;
26395 int ecode3 = 0 ;
26396 double val4 ;
26397 int ecode4 = 0 ;
26398 double val5 ;
26399 int ecode5 = 0 ;
26400 PyObject * obj0 = 0 ;
26401 PyObject * obj1 = 0 ;
26402 PyObject * obj2 = 0 ;
26403 PyObject * obj3 = 0 ;
26404 PyObject * obj4 = 0 ;
26405 char * kwnames[] = {
26406 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
26407 };
26408
26409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26411 if (!SWIG_IsOK(res1)) {
26412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26413 }
26414 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26415 ecode2 = SWIG_AsVal_double(obj1, &val2);
26416 if (!SWIG_IsOK(ecode2)) {
26417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
26418 }
26419 arg2 = static_cast< wxDouble >(val2);
26420 ecode3 = SWIG_AsVal_double(obj2, &val3);
26421 if (!SWIG_IsOK(ecode3)) {
26422 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
26423 }
26424 arg3 = static_cast< wxDouble >(val3);
26425 ecode4 = SWIG_AsVal_double(obj3, &val4);
26426 if (!SWIG_IsOK(ecode4)) {
26427 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
26428 }
26429 arg4 = static_cast< wxDouble >(val4);
26430 ecode5 = SWIG_AsVal_double(obj4, &val5);
26431 if (!SWIG_IsOK(ecode5)) {
26432 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
26433 }
26434 arg5 = static_cast< wxDouble >(val5);
26435 {
26436 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
26437 if (PyErr_Occurred()) SWIG_fail;
26438 }
26439 resultobj = SWIG_Py_Void();
26440 return resultobj;
26441 fail:
26442 return NULL;
26443 }
26444
26445
26446 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26447 PyObject *resultobj = 0;
26448 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26449 size_t arg2 ;
26450 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26451 void *argp1 = 0 ;
26452 int res1 = 0 ;
26453 PyObject * obj0 = 0 ;
26454 PyObject * obj1 = 0 ;
26455 char * kwnames[] = {
26456 (char *) "self",(char *) "points", NULL
26457 };
26458
26459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
26460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26461 if (!SWIG_IsOK(res1)) {
26462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26463 }
26464 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26465 {
26466 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26467 if (arg3 == NULL) SWIG_fail;
26468 }
26469 {
26470 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
26471 if (PyErr_Occurred()) SWIG_fail;
26472 }
26473 resultobj = SWIG_Py_Void();
26474 {
26475 if (arg3) delete [] arg3;
26476 }
26477 return resultobj;
26478 fail:
26479 {
26480 if (arg3) delete [] arg3;
26481 }
26482 return NULL;
26483 }
26484
26485
26486 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26487 PyObject *resultobj = 0;
26488 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26489 PyObject *arg2 = (PyObject *) 0 ;
26490 PyObject *arg3 = (PyObject *) 0 ;
26491 void *argp1 = 0 ;
26492 int res1 = 0 ;
26493 PyObject * obj0 = 0 ;
26494 PyObject * obj1 = 0 ;
26495 PyObject * obj2 = 0 ;
26496 char * kwnames[] = {
26497 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
26498 };
26499
26500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26502 if (!SWIG_IsOK(res1)) {
26503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26504 }
26505 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26506 arg2 = obj1;
26507 arg3 = obj2;
26508 {
26509 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
26510 if (PyErr_Occurred()) SWIG_fail;
26511 }
26512 resultobj = SWIG_Py_Void();
26513 return resultobj;
26514 fail:
26515 return NULL;
26516 }
26517
26518
26519 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26520 PyObject *resultobj = 0;
26521 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26522 size_t arg2 ;
26523 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26524 int arg4 = (int) wxWINDING_RULE ;
26525 void *argp1 = 0 ;
26526 int res1 = 0 ;
26527 int val4 ;
26528 int ecode4 = 0 ;
26529 PyObject * obj0 = 0 ;
26530 PyObject * obj1 = 0 ;
26531 PyObject * obj2 = 0 ;
26532 char * kwnames[] = {
26533 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
26534 };
26535
26536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26538 if (!SWIG_IsOK(res1)) {
26539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26540 }
26541 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26542 {
26543 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26544 if (arg3 == NULL) SWIG_fail;
26545 }
26546 if (obj2) {
26547 ecode4 = SWIG_AsVal_int(obj2, &val4);
26548 if (!SWIG_IsOK(ecode4)) {
26549 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
26550 }
26551 arg4 = static_cast< int >(val4);
26552 }
26553 {
26554 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
26555 if (PyErr_Occurred()) SWIG_fail;
26556 }
26557 resultobj = SWIG_Py_Void();
26558 {
26559 if (arg3) delete [] arg3;
26560 }
26561 return resultobj;
26562 fail:
26563 {
26564 if (arg3) delete [] arg3;
26565 }
26566 return NULL;
26567 }
26568
26569
26570 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26571 PyObject *resultobj = 0;
26572 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26573 wxDouble arg2 ;
26574 wxDouble arg3 ;
26575 wxDouble arg4 ;
26576 wxDouble arg5 ;
26577 void *argp1 = 0 ;
26578 int res1 = 0 ;
26579 double val2 ;
26580 int ecode2 = 0 ;
26581 double val3 ;
26582 int ecode3 = 0 ;
26583 double val4 ;
26584 int ecode4 = 0 ;
26585 double val5 ;
26586 int ecode5 = 0 ;
26587 PyObject * obj0 = 0 ;
26588 PyObject * obj1 = 0 ;
26589 PyObject * obj2 = 0 ;
26590 PyObject * obj3 = 0 ;
26591 PyObject * obj4 = 0 ;
26592 char * kwnames[] = {
26593 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26594 };
26595
26596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26598 if (!SWIG_IsOK(res1)) {
26599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26600 }
26601 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26602 ecode2 = SWIG_AsVal_double(obj1, &val2);
26603 if (!SWIG_IsOK(ecode2)) {
26604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26605 }
26606 arg2 = static_cast< wxDouble >(val2);
26607 ecode3 = SWIG_AsVal_double(obj2, &val3);
26608 if (!SWIG_IsOK(ecode3)) {
26609 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26610 }
26611 arg3 = static_cast< wxDouble >(val3);
26612 ecode4 = SWIG_AsVal_double(obj3, &val4);
26613 if (!SWIG_IsOK(ecode4)) {
26614 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26615 }
26616 arg4 = static_cast< wxDouble >(val4);
26617 ecode5 = SWIG_AsVal_double(obj4, &val5);
26618 if (!SWIG_IsOK(ecode5)) {
26619 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26620 }
26621 arg5 = static_cast< wxDouble >(val5);
26622 {
26623 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
26624 if (PyErr_Occurred()) SWIG_fail;
26625 }
26626 resultobj = SWIG_Py_Void();
26627 return resultobj;
26628 fail:
26629 return NULL;
26630 }
26631
26632
26633 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26634 PyObject *resultobj = 0;
26635 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26636 wxDouble arg2 ;
26637 wxDouble arg3 ;
26638 wxDouble arg4 ;
26639 wxDouble arg5 ;
26640 void *argp1 = 0 ;
26641 int res1 = 0 ;
26642 double val2 ;
26643 int ecode2 = 0 ;
26644 double val3 ;
26645 int ecode3 = 0 ;
26646 double val4 ;
26647 int ecode4 = 0 ;
26648 double val5 ;
26649 int ecode5 = 0 ;
26650 PyObject * obj0 = 0 ;
26651 PyObject * obj1 = 0 ;
26652 PyObject * obj2 = 0 ;
26653 PyObject * obj3 = 0 ;
26654 PyObject * obj4 = 0 ;
26655 char * kwnames[] = {
26656 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26657 };
26658
26659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26661 if (!SWIG_IsOK(res1)) {
26662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26663 }
26664 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26665 ecode2 = SWIG_AsVal_double(obj1, &val2);
26666 if (!SWIG_IsOK(ecode2)) {
26667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26668 }
26669 arg2 = static_cast< wxDouble >(val2);
26670 ecode3 = SWIG_AsVal_double(obj2, &val3);
26671 if (!SWIG_IsOK(ecode3)) {
26672 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26673 }
26674 arg3 = static_cast< wxDouble >(val3);
26675 ecode4 = SWIG_AsVal_double(obj3, &val4);
26676 if (!SWIG_IsOK(ecode4)) {
26677 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26678 }
26679 arg4 = static_cast< wxDouble >(val4);
26680 ecode5 = SWIG_AsVal_double(obj4, &val5);
26681 if (!SWIG_IsOK(ecode5)) {
26682 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26683 }
26684 arg5 = static_cast< wxDouble >(val5);
26685 {
26686 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
26687 if (PyErr_Occurred()) SWIG_fail;
26688 }
26689 resultobj = SWIG_Py_Void();
26690 return resultobj;
26691 fail:
26692 return NULL;
26693 }
26694
26695
26696 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26697 PyObject *resultobj = 0;
26698 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26699 wxDouble arg2 ;
26700 wxDouble arg3 ;
26701 wxDouble arg4 ;
26702 wxDouble arg5 ;
26703 wxDouble arg6 ;
26704 void *argp1 = 0 ;
26705 int res1 = 0 ;
26706 double val2 ;
26707 int ecode2 = 0 ;
26708 double val3 ;
26709 int ecode3 = 0 ;
26710 double val4 ;
26711 int ecode4 = 0 ;
26712 double val5 ;
26713 int ecode5 = 0 ;
26714 double val6 ;
26715 int ecode6 = 0 ;
26716 PyObject * obj0 = 0 ;
26717 PyObject * obj1 = 0 ;
26718 PyObject * obj2 = 0 ;
26719 PyObject * obj3 = 0 ;
26720 PyObject * obj4 = 0 ;
26721 PyObject * obj5 = 0 ;
26722 char * kwnames[] = {
26723 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
26724 };
26725
26726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26728 if (!SWIG_IsOK(res1)) {
26729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26730 }
26731 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26732 ecode2 = SWIG_AsVal_double(obj1, &val2);
26733 if (!SWIG_IsOK(ecode2)) {
26734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26735 }
26736 arg2 = static_cast< wxDouble >(val2);
26737 ecode3 = SWIG_AsVal_double(obj2, &val3);
26738 if (!SWIG_IsOK(ecode3)) {
26739 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26740 }
26741 arg3 = static_cast< wxDouble >(val3);
26742 ecode4 = SWIG_AsVal_double(obj3, &val4);
26743 if (!SWIG_IsOK(ecode4)) {
26744 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26745 }
26746 arg4 = static_cast< wxDouble >(val4);
26747 ecode5 = SWIG_AsVal_double(obj4, &val5);
26748 if (!SWIG_IsOK(ecode5)) {
26749 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26750 }
26751 arg5 = static_cast< wxDouble >(val5);
26752 ecode6 = SWIG_AsVal_double(obj5, &val6);
26753 if (!SWIG_IsOK(ecode6)) {
26754 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26755 }
26756 arg6 = static_cast< wxDouble >(val6);
26757 {
26758 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
26759 if (PyErr_Occurred()) SWIG_fail;
26760 }
26761 resultobj = SWIG_Py_Void();
26762 return resultobj;
26763 fail:
26764 return NULL;
26765 }
26766
26767
26768 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26769 PyObject *obj;
26770 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26771 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
26772 return SWIG_Py_Void();
26773 }
26774
26775 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26776 PyObject *resultobj = 0;
26777 wxWindowDC *arg1 = 0 ;
26778 wxGCDC *result = 0 ;
26779 void *argp1 = 0 ;
26780 int res1 = 0 ;
26781 PyObject * obj0 = 0 ;
26782 char * kwnames[] = {
26783 (char *) "dc", NULL
26784 };
26785
26786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
26787 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
26788 if (!SWIG_IsOK(res1)) {
26789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26790 }
26791 if (!argp1) {
26792 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26793 }
26794 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
26795 {
26796 if (!wxPyCheckForApp()) SWIG_fail;
26797 PyThreadState* __tstate = wxPyBeginAllowThreads();
26798 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
26799 wxPyEndAllowThreads(__tstate);
26800 if (PyErr_Occurred()) SWIG_fail;
26801 }
26802 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
26803 return resultobj;
26804 fail:
26805 return NULL;
26806 }
26807
26808
26809 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26810 PyObject *resultobj = 0;
26811 wxGCDC *arg1 = (wxGCDC *) 0 ;
26812 void *argp1 = 0 ;
26813 int res1 = 0 ;
26814 PyObject *swig_obj[1] ;
26815
26816 if (!args) SWIG_fail;
26817 swig_obj[0] = args;
26818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
26819 if (!SWIG_IsOK(res1)) {
26820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
26821 }
26822 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26823 {
26824 delete arg1;
26825
26826 if (PyErr_Occurred()) SWIG_fail;
26827 }
26828 resultobj = SWIG_Py_Void();
26829 return resultobj;
26830 fail:
26831 return NULL;
26832 }
26833
26834
26835 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26836 PyObject *resultobj = 0;
26837 wxGCDC *arg1 = (wxGCDC *) 0 ;
26838 wxGraphicsContext *result = 0 ;
26839 void *argp1 = 0 ;
26840 int res1 = 0 ;
26841 PyObject *swig_obj[1] ;
26842
26843 if (!args) SWIG_fail;
26844 swig_obj[0] = args;
26845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26846 if (!SWIG_IsOK(res1)) {
26847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
26848 }
26849 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26850 {
26851 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
26852 if (PyErr_Occurred()) SWIG_fail;
26853 }
26854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26855 return resultobj;
26856 fail:
26857 return NULL;
26858 }
26859
26860
26861 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26862 PyObject *resultobj = 0;
26863 wxGCDC *arg1 = (wxGCDC *) 0 ;
26864 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
26865 void *argp1 = 0 ;
26866 int res1 = 0 ;
26867 void *argp2 = 0 ;
26868 int res2 = 0 ;
26869 PyObject * obj0 = 0 ;
26870 PyObject * obj1 = 0 ;
26871 char * kwnames[] = {
26872 (char *) "self",(char *) "ctx", NULL
26873 };
26874
26875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
26876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26877 if (!SWIG_IsOK(res1)) {
26878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
26879 }
26880 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26881 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26882 if (!SWIG_IsOK(res2)) {
26883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
26884 }
26885 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
26886 {
26887 (arg1)->SetGraphicsContext(arg2);
26888 if (PyErr_Occurred()) SWIG_fail;
26889 }
26890 resultobj = SWIG_Py_Void();
26891 return resultobj;
26892 fail:
26893 return NULL;
26894 }
26895
26896
26897 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26898 PyObject *obj;
26899 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26900 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
26901 return SWIG_Py_Void();
26902 }
26903
26904 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26905 return SWIG_Python_InitShadowInstance(args);
26906 }
26907
26908 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26909 PyObject *resultobj = 0;
26910 wxOverlay *result = 0 ;
26911
26912 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
26913 {
26914 PyThreadState* __tstate = wxPyBeginAllowThreads();
26915 result = (wxOverlay *)new wxOverlay();
26916 wxPyEndAllowThreads(__tstate);
26917 if (PyErr_Occurred()) SWIG_fail;
26918 }
26919 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
26920 return resultobj;
26921 fail:
26922 return NULL;
26923 }
26924
26925
26926 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26927 PyObject *resultobj = 0;
26928 wxOverlay *arg1 = (wxOverlay *) 0 ;
26929 void *argp1 = 0 ;
26930 int res1 = 0 ;
26931 PyObject *swig_obj[1] ;
26932
26933 if (!args) SWIG_fail;
26934 swig_obj[0] = args;
26935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
26936 if (!SWIG_IsOK(res1)) {
26937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
26938 }
26939 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26940 {
26941 PyThreadState* __tstate = wxPyBeginAllowThreads();
26942 delete arg1;
26943
26944 wxPyEndAllowThreads(__tstate);
26945 if (PyErr_Occurred()) SWIG_fail;
26946 }
26947 resultobj = SWIG_Py_Void();
26948 return resultobj;
26949 fail:
26950 return NULL;
26951 }
26952
26953
26954 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26955 PyObject *resultobj = 0;
26956 wxOverlay *arg1 = (wxOverlay *) 0 ;
26957 void *argp1 = 0 ;
26958 int res1 = 0 ;
26959 PyObject *swig_obj[1] ;
26960
26961 if (!args) SWIG_fail;
26962 swig_obj[0] = args;
26963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
26964 if (!SWIG_IsOK(res1)) {
26965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
26966 }
26967 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26968 {
26969 PyThreadState* __tstate = wxPyBeginAllowThreads();
26970 (arg1)->Reset();
26971 wxPyEndAllowThreads(__tstate);
26972 if (PyErr_Occurred()) SWIG_fail;
26973 }
26974 resultobj = SWIG_Py_Void();
26975 return resultobj;
26976 fail:
26977 return NULL;
26978 }
26979
26980
26981 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26982 PyObject *obj;
26983 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26984 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
26985 return SWIG_Py_Void();
26986 }
26987
26988 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26989 return SWIG_Python_InitShadowInstance(args);
26990 }
26991
26992 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26993 PyObject *resultobj = 0;
26994 wxOverlay *arg1 = 0 ;
26995 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26996 int arg3 ;
26997 int arg4 ;
26998 int arg5 ;
26999 int arg6 ;
27000 wxDCOverlay *result = 0 ;
27001 void *argp1 = 0 ;
27002 int res1 = 0 ;
27003 void *argp2 = 0 ;
27004 int res2 = 0 ;
27005 int val3 ;
27006 int ecode3 = 0 ;
27007 int val4 ;
27008 int ecode4 = 0 ;
27009 int val5 ;
27010 int ecode5 = 0 ;
27011 int val6 ;
27012 int ecode6 = 0 ;
27013
27014 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
27015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27016 if (!SWIG_IsOK(res1)) {
27017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27018 }
27019 if (!argp1) {
27020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27021 }
27022 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27023 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27024 if (!SWIG_IsOK(res2)) {
27025 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27026 }
27027 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27028 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27029 if (!SWIG_IsOK(ecode3)) {
27030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
27031 }
27032 arg3 = static_cast< int >(val3);
27033 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27034 if (!SWIG_IsOK(ecode4)) {
27035 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
27036 }
27037 arg4 = static_cast< int >(val4);
27038 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
27039 if (!SWIG_IsOK(ecode5)) {
27040 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
27041 }
27042 arg5 = static_cast< int >(val5);
27043 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
27044 if (!SWIG_IsOK(ecode6)) {
27045 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
27046 }
27047 arg6 = static_cast< int >(val6);
27048 {
27049 PyThreadState* __tstate = wxPyBeginAllowThreads();
27050 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
27051 wxPyEndAllowThreads(__tstate);
27052 if (PyErr_Occurred()) SWIG_fail;
27053 }
27054 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27055 return resultobj;
27056 fail:
27057 return NULL;
27058 }
27059
27060
27061 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27062 PyObject *resultobj = 0;
27063 wxOverlay *arg1 = 0 ;
27064 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
27065 wxDCOverlay *result = 0 ;
27066 void *argp1 = 0 ;
27067 int res1 = 0 ;
27068 void *argp2 = 0 ;
27069 int res2 = 0 ;
27070
27071 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27073 if (!SWIG_IsOK(res1)) {
27074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27075 }
27076 if (!argp1) {
27077 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27078 }
27079 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27080 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27081 if (!SWIG_IsOK(res2)) {
27082 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27083 }
27084 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27085 {
27086 PyThreadState* __tstate = wxPyBeginAllowThreads();
27087 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
27088 wxPyEndAllowThreads(__tstate);
27089 if (PyErr_Occurred()) SWIG_fail;
27090 }
27091 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27092 return resultobj;
27093 fail:
27094 return NULL;
27095 }
27096
27097
27098 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
27099 int argc;
27100 PyObject *argv[7];
27101
27102 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
27103 --argc;
27104 if (argc == 2) {
27105 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
27106 }
27107 if (argc == 6) {
27108 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
27109 }
27110
27111 fail:
27112 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
27113 return NULL;
27114 }
27115
27116
27117 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27118 PyObject *resultobj = 0;
27119 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27120 void *argp1 = 0 ;
27121 int res1 = 0 ;
27122 PyObject *swig_obj[1] ;
27123
27124 if (!args) SWIG_fail;
27125 swig_obj[0] = args;
27126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
27127 if (!SWIG_IsOK(res1)) {
27128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27129 }
27130 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27131 {
27132 PyThreadState* __tstate = wxPyBeginAllowThreads();
27133 delete arg1;
27134
27135 wxPyEndAllowThreads(__tstate);
27136 if (PyErr_Occurred()) SWIG_fail;
27137 }
27138 resultobj = SWIG_Py_Void();
27139 return resultobj;
27140 fail:
27141 return NULL;
27142 }
27143
27144
27145 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27146 PyObject *resultobj = 0;
27147 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27148 void *argp1 = 0 ;
27149 int res1 = 0 ;
27150 PyObject *swig_obj[1] ;
27151
27152 if (!args) SWIG_fail;
27153 swig_obj[0] = args;
27154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
27155 if (!SWIG_IsOK(res1)) {
27156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27157 }
27158 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27159 {
27160 PyThreadState* __tstate = wxPyBeginAllowThreads();
27161 (arg1)->Clear();
27162 wxPyEndAllowThreads(__tstate);
27163 if (PyErr_Occurred()) SWIG_fail;
27164 }
27165 resultobj = SWIG_Py_Void();
27166 return resultobj;
27167 fail:
27168 return NULL;
27169 }
27170
27171
27172 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27173 PyObject *obj;
27174 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27175 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
27176 return SWIG_Py_Void();
27177 }
27178
27179 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27180 return SWIG_Python_InitShadowInstance(args);
27181 }
27182
27183 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27184 PyObject *resultobj = 0;
27185 int arg1 ;
27186 int arg2 ;
27187 int arg3 = (int) true ;
27188 int arg4 = (int) 1 ;
27189 wxImageList *result = 0 ;
27190 int val1 ;
27191 int ecode1 = 0 ;
27192 int val2 ;
27193 int ecode2 = 0 ;
27194 int val3 ;
27195 int ecode3 = 0 ;
27196 int val4 ;
27197 int ecode4 = 0 ;
27198 PyObject * obj0 = 0 ;
27199 PyObject * obj1 = 0 ;
27200 PyObject * obj2 = 0 ;
27201 PyObject * obj3 = 0 ;
27202 char * kwnames[] = {
27203 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
27204 };
27205
27206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27207 ecode1 = SWIG_AsVal_int(obj0, &val1);
27208 if (!SWIG_IsOK(ecode1)) {
27209 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
27210 }
27211 arg1 = static_cast< int >(val1);
27212 ecode2 = SWIG_AsVal_int(obj1, &val2);
27213 if (!SWIG_IsOK(ecode2)) {
27214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
27215 }
27216 arg2 = static_cast< int >(val2);
27217 if (obj2) {
27218 ecode3 = SWIG_AsVal_int(obj2, &val3);
27219 if (!SWIG_IsOK(ecode3)) {
27220 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
27221 }
27222 arg3 = static_cast< int >(val3);
27223 }
27224 if (obj3) {
27225 ecode4 = SWIG_AsVal_int(obj3, &val4);
27226 if (!SWIG_IsOK(ecode4)) {
27227 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
27228 }
27229 arg4 = static_cast< int >(val4);
27230 }
27231 {
27232 if (!wxPyCheckForApp()) SWIG_fail;
27233 PyThreadState* __tstate = wxPyBeginAllowThreads();
27234 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
27235 wxPyEndAllowThreads(__tstate);
27236 if (PyErr_Occurred()) SWIG_fail;
27237 }
27238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
27239 return resultobj;
27240 fail:
27241 return NULL;
27242 }
27243
27244
27245 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27246 PyObject *resultobj = 0;
27247 wxImageList *arg1 = (wxImageList *) 0 ;
27248 void *argp1 = 0 ;
27249 int res1 = 0 ;
27250 PyObject *swig_obj[1] ;
27251
27252 if (!args) SWIG_fail;
27253 swig_obj[0] = args;
27254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
27255 if (!SWIG_IsOK(res1)) {
27256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
27257 }
27258 arg1 = reinterpret_cast< wxImageList * >(argp1);
27259 {
27260 PyThreadState* __tstate = wxPyBeginAllowThreads();
27261 delete arg1;
27262
27263 wxPyEndAllowThreads(__tstate);
27264 if (PyErr_Occurred()) SWIG_fail;
27265 }
27266 resultobj = SWIG_Py_Void();
27267 return resultobj;
27268 fail:
27269 return NULL;
27270 }
27271
27272
27273 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27274 PyObject *resultobj = 0;
27275 wxImageList *arg1 = (wxImageList *) 0 ;
27276 wxBitmap *arg2 = 0 ;
27277 wxBitmap const &arg3_defvalue = wxNullBitmap ;
27278 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
27279 int result;
27280 void *argp1 = 0 ;
27281 int res1 = 0 ;
27282 void *argp2 = 0 ;
27283 int res2 = 0 ;
27284 void *argp3 = 0 ;
27285 int res3 = 0 ;
27286 PyObject * obj0 = 0 ;
27287 PyObject * obj1 = 0 ;
27288 PyObject * obj2 = 0 ;
27289 char * kwnames[] = {
27290 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
27291 };
27292
27293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27295 if (!SWIG_IsOK(res1)) {
27296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
27297 }
27298 arg1 = reinterpret_cast< wxImageList * >(argp1);
27299 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27300 if (!SWIG_IsOK(res2)) {
27301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27302 }
27303 if (!argp2) {
27304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27305 }
27306 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27307 if (obj2) {
27308 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27309 if (!SWIG_IsOK(res3)) {
27310 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27311 }
27312 if (!argp3) {
27313 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27314 }
27315 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27316 }
27317 {
27318 PyThreadState* __tstate = wxPyBeginAllowThreads();
27319 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
27320 wxPyEndAllowThreads(__tstate);
27321 if (PyErr_Occurred()) SWIG_fail;
27322 }
27323 resultobj = SWIG_From_int(static_cast< int >(result));
27324 return resultobj;
27325 fail:
27326 return NULL;
27327 }
27328
27329
27330 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27331 PyObject *resultobj = 0;
27332 wxImageList *arg1 = (wxImageList *) 0 ;
27333 wxBitmap *arg2 = 0 ;
27334 wxColour *arg3 = 0 ;
27335 int result;
27336 void *argp1 = 0 ;
27337 int res1 = 0 ;
27338 void *argp2 = 0 ;
27339 int res2 = 0 ;
27340 wxColour temp3 ;
27341 PyObject * obj0 = 0 ;
27342 PyObject * obj1 = 0 ;
27343 PyObject * obj2 = 0 ;
27344 char * kwnames[] = {
27345 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
27346 };
27347
27348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27350 if (!SWIG_IsOK(res1)) {
27351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
27352 }
27353 arg1 = reinterpret_cast< wxImageList * >(argp1);
27354 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27355 if (!SWIG_IsOK(res2)) {
27356 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27357 }
27358 if (!argp2) {
27359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27360 }
27361 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27362 {
27363 arg3 = &temp3;
27364 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27365 }
27366 {
27367 PyThreadState* __tstate = wxPyBeginAllowThreads();
27368 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
27369 wxPyEndAllowThreads(__tstate);
27370 if (PyErr_Occurred()) SWIG_fail;
27371 }
27372 resultobj = SWIG_From_int(static_cast< int >(result));
27373 return resultobj;
27374 fail:
27375 return NULL;
27376 }
27377
27378
27379 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27380 PyObject *resultobj = 0;
27381 wxImageList *arg1 = (wxImageList *) 0 ;
27382 wxIcon *arg2 = 0 ;
27383 int result;
27384 void *argp1 = 0 ;
27385 int res1 = 0 ;
27386 void *argp2 = 0 ;
27387 int res2 = 0 ;
27388 PyObject * obj0 = 0 ;
27389 PyObject * obj1 = 0 ;
27390 char * kwnames[] = {
27391 (char *) "self",(char *) "icon", NULL
27392 };
27393
27394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27396 if (!SWIG_IsOK(res1)) {
27397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
27398 }
27399 arg1 = reinterpret_cast< wxImageList * >(argp1);
27400 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27401 if (!SWIG_IsOK(res2)) {
27402 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27403 }
27404 if (!argp2) {
27405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27406 }
27407 arg2 = reinterpret_cast< wxIcon * >(argp2);
27408 {
27409 PyThreadState* __tstate = wxPyBeginAllowThreads();
27410 result = (int)(arg1)->Add((wxIcon const &)*arg2);
27411 wxPyEndAllowThreads(__tstate);
27412 if (PyErr_Occurred()) SWIG_fail;
27413 }
27414 resultobj = SWIG_From_int(static_cast< int >(result));
27415 return resultobj;
27416 fail:
27417 return NULL;
27418 }
27419
27420
27421 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27422 PyObject *resultobj = 0;
27423 wxImageList *arg1 = (wxImageList *) 0 ;
27424 int arg2 ;
27425 SwigValueWrapper<wxBitmap > result;
27426 void *argp1 = 0 ;
27427 int res1 = 0 ;
27428 int val2 ;
27429 int ecode2 = 0 ;
27430 PyObject * obj0 = 0 ;
27431 PyObject * obj1 = 0 ;
27432 char * kwnames[] = {
27433 (char *) "self",(char *) "index", NULL
27434 };
27435
27436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
27437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27438 if (!SWIG_IsOK(res1)) {
27439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
27440 }
27441 arg1 = reinterpret_cast< wxImageList * >(argp1);
27442 ecode2 = SWIG_AsVal_int(obj1, &val2);
27443 if (!SWIG_IsOK(ecode2)) {
27444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
27445 }
27446 arg2 = static_cast< int >(val2);
27447 {
27448 PyThreadState* __tstate = wxPyBeginAllowThreads();
27449 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
27450 wxPyEndAllowThreads(__tstate);
27451 if (PyErr_Occurred()) SWIG_fail;
27452 }
27453 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
27454 return resultobj;
27455 fail:
27456 return NULL;
27457 }
27458
27459
27460 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27461 PyObject *resultobj = 0;
27462 wxImageList *arg1 = (wxImageList *) 0 ;
27463 int arg2 ;
27464 wxIcon result;
27465 void *argp1 = 0 ;
27466 int res1 = 0 ;
27467 int val2 ;
27468 int ecode2 = 0 ;
27469 PyObject * obj0 = 0 ;
27470 PyObject * obj1 = 0 ;
27471 char * kwnames[] = {
27472 (char *) "self",(char *) "index", NULL
27473 };
27474
27475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27477 if (!SWIG_IsOK(res1)) {
27478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
27479 }
27480 arg1 = reinterpret_cast< wxImageList * >(argp1);
27481 ecode2 = SWIG_AsVal_int(obj1, &val2);
27482 if (!SWIG_IsOK(ecode2)) {
27483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
27484 }
27485 arg2 = static_cast< int >(val2);
27486 {
27487 PyThreadState* __tstate = wxPyBeginAllowThreads();
27488 result = ((wxImageList const *)arg1)->GetIcon(arg2);
27489 wxPyEndAllowThreads(__tstate);
27490 if (PyErr_Occurred()) SWIG_fail;
27491 }
27492 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
27493 return resultobj;
27494 fail:
27495 return NULL;
27496 }
27497
27498
27499 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27500 PyObject *resultobj = 0;
27501 wxImageList *arg1 = (wxImageList *) 0 ;
27502 int arg2 ;
27503 wxBitmap *arg3 = 0 ;
27504 wxBitmap const &arg4_defvalue = wxNullBitmap ;
27505 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
27506 bool result;
27507 void *argp1 = 0 ;
27508 int res1 = 0 ;
27509 int val2 ;
27510 int ecode2 = 0 ;
27511 void *argp3 = 0 ;
27512 int res3 = 0 ;
27513 void *argp4 = 0 ;
27514 int res4 = 0 ;
27515 PyObject * obj0 = 0 ;
27516 PyObject * obj1 = 0 ;
27517 PyObject * obj2 = 0 ;
27518 PyObject * obj3 = 0 ;
27519 char * kwnames[] = {
27520 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
27521 };
27522
27523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27525 if (!SWIG_IsOK(res1)) {
27526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
27527 }
27528 arg1 = reinterpret_cast< wxImageList * >(argp1);
27529 ecode2 = SWIG_AsVal_int(obj1, &val2);
27530 if (!SWIG_IsOK(ecode2)) {
27531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
27532 }
27533 arg2 = static_cast< int >(val2);
27534 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27535 if (!SWIG_IsOK(res3)) {
27536 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27537 }
27538 if (!argp3) {
27539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27540 }
27541 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27542 if (obj3) {
27543 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
27544 if (!SWIG_IsOK(res4)) {
27545 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27546 }
27547 if (!argp4) {
27548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27549 }
27550 arg4 = reinterpret_cast< wxBitmap * >(argp4);
27551 }
27552 {
27553 PyThreadState* __tstate = wxPyBeginAllowThreads();
27554 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
27555 wxPyEndAllowThreads(__tstate);
27556 if (PyErr_Occurred()) SWIG_fail;
27557 }
27558 {
27559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27560 }
27561 return resultobj;
27562 fail:
27563 return NULL;
27564 }
27565
27566
27567 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27568 PyObject *resultobj = 0;
27569 wxImageList *arg1 = (wxImageList *) 0 ;
27570 int arg2 ;
27571 wxDC *arg3 = 0 ;
27572 int arg4 ;
27573 int arg5 ;
27574 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
27575 bool arg7 = (bool) (bool)false ;
27576 bool result;
27577 void *argp1 = 0 ;
27578 int res1 = 0 ;
27579 int val2 ;
27580 int ecode2 = 0 ;
27581 void *argp3 = 0 ;
27582 int res3 = 0 ;
27583 int val4 ;
27584 int ecode4 = 0 ;
27585 int val5 ;
27586 int ecode5 = 0 ;
27587 int val6 ;
27588 int ecode6 = 0 ;
27589 bool val7 ;
27590 int ecode7 = 0 ;
27591 PyObject * obj0 = 0 ;
27592 PyObject * obj1 = 0 ;
27593 PyObject * obj2 = 0 ;
27594 PyObject * obj3 = 0 ;
27595 PyObject * obj4 = 0 ;
27596 PyObject * obj5 = 0 ;
27597 PyObject * obj6 = 0 ;
27598 char * kwnames[] = {
27599 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
27600 };
27601
27602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27604 if (!SWIG_IsOK(res1)) {
27605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
27606 }
27607 arg1 = reinterpret_cast< wxImageList * >(argp1);
27608 ecode2 = SWIG_AsVal_int(obj1, &val2);
27609 if (!SWIG_IsOK(ecode2)) {
27610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
27611 }
27612 arg2 = static_cast< int >(val2);
27613 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27614 if (!SWIG_IsOK(res3)) {
27615 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27616 }
27617 if (!argp3) {
27618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27619 }
27620 arg3 = reinterpret_cast< wxDC * >(argp3);
27621 ecode4 = SWIG_AsVal_int(obj3, &val4);
27622 if (!SWIG_IsOK(ecode4)) {
27623 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
27624 }
27625 arg4 = static_cast< int >(val4);
27626 ecode5 = SWIG_AsVal_int(obj4, &val5);
27627 if (!SWIG_IsOK(ecode5)) {
27628 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
27629 }
27630 arg5 = static_cast< int >(val5);
27631 if (obj5) {
27632 ecode6 = SWIG_AsVal_int(obj5, &val6);
27633 if (!SWIG_IsOK(ecode6)) {
27634 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
27635 }
27636 arg6 = static_cast< int >(val6);
27637 }
27638 if (obj6) {
27639 ecode7 = SWIG_AsVal_bool(obj6, &val7);
27640 if (!SWIG_IsOK(ecode7)) {
27641 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
27642 }
27643 arg7 = static_cast< bool >(val7);
27644 }
27645 {
27646 PyThreadState* __tstate = wxPyBeginAllowThreads();
27647 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
27648 wxPyEndAllowThreads(__tstate);
27649 if (PyErr_Occurred()) SWIG_fail;
27650 }
27651 {
27652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27653 }
27654 return resultobj;
27655 fail:
27656 return NULL;
27657 }
27658
27659
27660 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27661 PyObject *resultobj = 0;
27662 wxImageList *arg1 = (wxImageList *) 0 ;
27663 int result;
27664 void *argp1 = 0 ;
27665 int res1 = 0 ;
27666 PyObject *swig_obj[1] ;
27667
27668 if (!args) SWIG_fail;
27669 swig_obj[0] = args;
27670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27671 if (!SWIG_IsOK(res1)) {
27672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
27673 }
27674 arg1 = reinterpret_cast< wxImageList * >(argp1);
27675 {
27676 PyThreadState* __tstate = wxPyBeginAllowThreads();
27677 result = (int)(arg1)->GetImageCount();
27678 wxPyEndAllowThreads(__tstate);
27679 if (PyErr_Occurred()) SWIG_fail;
27680 }
27681 resultobj = SWIG_From_int(static_cast< int >(result));
27682 return resultobj;
27683 fail:
27684 return NULL;
27685 }
27686
27687
27688 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27689 PyObject *resultobj = 0;
27690 wxImageList *arg1 = (wxImageList *) 0 ;
27691 int arg2 ;
27692 bool result;
27693 void *argp1 = 0 ;
27694 int res1 = 0 ;
27695 int val2 ;
27696 int ecode2 = 0 ;
27697 PyObject * obj0 = 0 ;
27698 PyObject * obj1 = 0 ;
27699 char * kwnames[] = {
27700 (char *) "self",(char *) "index", NULL
27701 };
27702
27703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
27704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27705 if (!SWIG_IsOK(res1)) {
27706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
27707 }
27708 arg1 = reinterpret_cast< wxImageList * >(argp1);
27709 ecode2 = SWIG_AsVal_int(obj1, &val2);
27710 if (!SWIG_IsOK(ecode2)) {
27711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
27712 }
27713 arg2 = static_cast< int >(val2);
27714 {
27715 PyThreadState* __tstate = wxPyBeginAllowThreads();
27716 result = (bool)(arg1)->Remove(arg2);
27717 wxPyEndAllowThreads(__tstate);
27718 if (PyErr_Occurred()) SWIG_fail;
27719 }
27720 {
27721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27722 }
27723 return resultobj;
27724 fail:
27725 return NULL;
27726 }
27727
27728
27729 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27730 PyObject *resultobj = 0;
27731 wxImageList *arg1 = (wxImageList *) 0 ;
27732 bool result;
27733 void *argp1 = 0 ;
27734 int res1 = 0 ;
27735 PyObject *swig_obj[1] ;
27736
27737 if (!args) SWIG_fail;
27738 swig_obj[0] = args;
27739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27740 if (!SWIG_IsOK(res1)) {
27741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
27742 }
27743 arg1 = reinterpret_cast< wxImageList * >(argp1);
27744 {
27745 PyThreadState* __tstate = wxPyBeginAllowThreads();
27746 result = (bool)(arg1)->RemoveAll();
27747 wxPyEndAllowThreads(__tstate);
27748 if (PyErr_Occurred()) SWIG_fail;
27749 }
27750 {
27751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27752 }
27753 return resultobj;
27754 fail:
27755 return NULL;
27756 }
27757
27758
27759 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27760 PyObject *resultobj = 0;
27761 wxImageList *arg1 = (wxImageList *) 0 ;
27762 int arg2 ;
27763 int *arg3 = 0 ;
27764 int *arg4 = 0 ;
27765 void *argp1 = 0 ;
27766 int res1 = 0 ;
27767 int val2 ;
27768 int ecode2 = 0 ;
27769 int temp3 ;
27770 int res3 = SWIG_TMPOBJ ;
27771 int temp4 ;
27772 int res4 = SWIG_TMPOBJ ;
27773 PyObject * obj0 = 0 ;
27774 PyObject * obj1 = 0 ;
27775 char * kwnames[] = {
27776 (char *) "self",(char *) "index", NULL
27777 };
27778
27779 arg3 = &temp3;
27780 arg4 = &temp4;
27781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
27782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27783 if (!SWIG_IsOK(res1)) {
27784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
27785 }
27786 arg1 = reinterpret_cast< wxImageList * >(argp1);
27787 ecode2 = SWIG_AsVal_int(obj1, &val2);
27788 if (!SWIG_IsOK(ecode2)) {
27789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
27790 }
27791 arg2 = static_cast< int >(val2);
27792 {
27793 PyThreadState* __tstate = wxPyBeginAllowThreads();
27794 (arg1)->GetSize(arg2,*arg3,*arg4);
27795 wxPyEndAllowThreads(__tstate);
27796 if (PyErr_Occurred()) SWIG_fail;
27797 }
27798 resultobj = SWIG_Py_Void();
27799 if (SWIG_IsTmpObj(res3)) {
27800 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
27801 } else {
27802 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27803 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
27804 }
27805 if (SWIG_IsTmpObj(res4)) {
27806 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
27807 } else {
27808 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27809 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
27810 }
27811 return resultobj;
27812 fail:
27813 return NULL;
27814 }
27815
27816
27817 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27818 PyObject *obj;
27819 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27820 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
27821 return SWIG_Py_Void();
27822 }
27823
27824 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27825 return SWIG_Python_InitShadowInstance(args);
27826 }
27827
27828 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27829 PyObject *resultobj = 0;
27830 wxStockGDI *result = 0 ;
27831
27832 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
27833 {
27834 PyThreadState* __tstate = wxPyBeginAllowThreads();
27835 result = (wxStockGDI *)new wxStockGDI();
27836 wxPyEndAllowThreads(__tstate);
27837 if (PyErr_Occurred()) SWIG_fail;
27838 }
27839 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
27840 return resultobj;
27841 fail:
27842 return NULL;
27843 }
27844
27845
27846 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27847 PyObject *resultobj = 0;
27848 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27849 void *argp1 = 0 ;
27850 int res1 = 0 ;
27851 PyObject *swig_obj[1] ;
27852
27853 if (!args) SWIG_fail;
27854 swig_obj[0] = args;
27855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
27856 if (!SWIG_IsOK(res1)) {
27857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27858 }
27859 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27860 {
27861 PyThreadState* __tstate = wxPyBeginAllowThreads();
27862 delete arg1;
27863
27864 wxPyEndAllowThreads(__tstate);
27865 if (PyErr_Occurred()) SWIG_fail;
27866 }
27867 resultobj = SWIG_Py_Void();
27868 return resultobj;
27869 fail:
27870 return NULL;
27871 }
27872
27873
27874 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27875 PyObject *resultobj = 0;
27876
27877 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
27878 {
27879 PyThreadState* __tstate = wxPyBeginAllowThreads();
27880 wxStockGDI::DeleteAll();
27881 wxPyEndAllowThreads(__tstate);
27882 if (PyErr_Occurred()) SWIG_fail;
27883 }
27884 resultobj = SWIG_Py_Void();
27885 return resultobj;
27886 fail:
27887 return NULL;
27888 }
27889
27890
27891 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27892 PyObject *resultobj = 0;
27893 wxStockGDI *result = 0 ;
27894
27895 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
27896 {
27897 PyThreadState* __tstate = wxPyBeginAllowThreads();
27898 {
27899 wxStockGDI &_result_ref = wxStockGDI::instance();
27900 result = (wxStockGDI *) &_result_ref;
27901 }
27902 wxPyEndAllowThreads(__tstate);
27903 if (PyErr_Occurred()) SWIG_fail;
27904 }
27905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
27906 return resultobj;
27907 fail:
27908 return NULL;
27909 }
27910
27911
27912 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27913 PyObject *resultobj = 0;
27914 wxStockGDI::Item arg1 ;
27915 wxBrush *result = 0 ;
27916 int val1 ;
27917 int ecode1 = 0 ;
27918 PyObject * obj0 = 0 ;
27919 char * kwnames[] = {
27920 (char *) "item", NULL
27921 };
27922
27923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
27924 ecode1 = SWIG_AsVal_int(obj0, &val1);
27925 if (!SWIG_IsOK(ecode1)) {
27926 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27927 }
27928 arg1 = static_cast< wxStockGDI::Item >(val1);
27929 {
27930 PyThreadState* __tstate = wxPyBeginAllowThreads();
27931 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
27932 wxPyEndAllowThreads(__tstate);
27933 if (PyErr_Occurred()) SWIG_fail;
27934 }
27935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
27936 return resultobj;
27937 fail:
27938 return NULL;
27939 }
27940
27941
27942 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27943 PyObject *resultobj = 0;
27944 wxStockGDI::Item arg1 ;
27945 wxColour *result = 0 ;
27946 int val1 ;
27947 int ecode1 = 0 ;
27948 PyObject * obj0 = 0 ;
27949 char * kwnames[] = {
27950 (char *) "item", NULL
27951 };
27952
27953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
27954 ecode1 = SWIG_AsVal_int(obj0, &val1);
27955 if (!SWIG_IsOK(ecode1)) {
27956 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27957 }
27958 arg1 = static_cast< wxStockGDI::Item >(val1);
27959 {
27960 PyThreadState* __tstate = wxPyBeginAllowThreads();
27961 result = (wxColour *)wxStockGDI::GetColour(arg1);
27962 wxPyEndAllowThreads(__tstate);
27963 if (PyErr_Occurred()) SWIG_fail;
27964 }
27965 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27966 return resultobj;
27967 fail:
27968 return NULL;
27969 }
27970
27971
27972 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27973 PyObject *resultobj = 0;
27974 wxStockGDI::Item arg1 ;
27975 wxCursor *result = 0 ;
27976 int val1 ;
27977 int ecode1 = 0 ;
27978 PyObject * obj0 = 0 ;
27979 char * kwnames[] = {
27980 (char *) "item", NULL
27981 };
27982
27983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
27984 ecode1 = SWIG_AsVal_int(obj0, &val1);
27985 if (!SWIG_IsOK(ecode1)) {
27986 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27987 }
27988 arg1 = static_cast< wxStockGDI::Item >(val1);
27989 {
27990 PyThreadState* __tstate = wxPyBeginAllowThreads();
27991 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
27992 wxPyEndAllowThreads(__tstate);
27993 if (PyErr_Occurred()) SWIG_fail;
27994 }
27995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
27996 return resultobj;
27997 fail:
27998 return NULL;
27999 }
28000
28001
28002 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28003 PyObject *resultobj = 0;
28004 wxStockGDI::Item arg1 ;
28005 wxPen *result = 0 ;
28006 int val1 ;
28007 int ecode1 = 0 ;
28008 PyObject * obj0 = 0 ;
28009 char * kwnames[] = {
28010 (char *) "item", NULL
28011 };
28012
28013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
28014 ecode1 = SWIG_AsVal_int(obj0, &val1);
28015 if (!SWIG_IsOK(ecode1)) {
28016 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28017 }
28018 arg1 = static_cast< wxStockGDI::Item >(val1);
28019 {
28020 PyThreadState* __tstate = wxPyBeginAllowThreads();
28021 result = (wxPen *)wxStockGDI::GetPen(arg1);
28022 wxPyEndAllowThreads(__tstate);
28023 if (PyErr_Occurred()) SWIG_fail;
28024 }
28025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28026 return resultobj;
28027 fail:
28028 return NULL;
28029 }
28030
28031
28032 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28033 PyObject *resultobj = 0;
28034 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
28035 wxStockGDI::Item arg2 ;
28036 wxFont *result = 0 ;
28037 void *argp1 = 0 ;
28038 int res1 = 0 ;
28039 int val2 ;
28040 int ecode2 = 0 ;
28041 PyObject * obj0 = 0 ;
28042 PyObject * obj1 = 0 ;
28043 char * kwnames[] = {
28044 (char *) "self",(char *) "item", NULL
28045 };
28046
28047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
28048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
28049 if (!SWIG_IsOK(res1)) {
28050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
28051 }
28052 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
28053 ecode2 = SWIG_AsVal_int(obj1, &val2);
28054 if (!SWIG_IsOK(ecode2)) {
28055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
28056 }
28057 arg2 = static_cast< wxStockGDI::Item >(val2);
28058 {
28059 PyThreadState* __tstate = wxPyBeginAllowThreads();
28060 result = (wxFont *)(arg1)->GetFont(arg2);
28061 wxPyEndAllowThreads(__tstate);
28062 if (PyErr_Occurred()) SWIG_fail;
28063 }
28064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28065 return resultobj;
28066 fail:
28067 return NULL;
28068 }
28069
28070
28071 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28072 PyObject *obj;
28073 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28074 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
28075 return SWIG_Py_Void();
28076 }
28077
28078 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28079 return SWIG_Python_InitShadowInstance(args);
28080 }
28081
28082 SWIGINTERN int NullBitmap_set(PyObject *) {
28083 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
28084 return 1;
28085 }
28086
28087
28088 SWIGINTERN PyObject *NullBitmap_get(void) {
28089 PyObject *pyobj = 0;
28090
28091 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
28092 return pyobj;
28093 }
28094
28095
28096 SWIGINTERN int NullIcon_set(PyObject *) {
28097 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
28098 return 1;
28099 }
28100
28101
28102 SWIGINTERN PyObject *NullIcon_get(void) {
28103 PyObject *pyobj = 0;
28104
28105 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
28106 return pyobj;
28107 }
28108
28109
28110 SWIGINTERN int NullCursor_set(PyObject *) {
28111 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
28112 return 1;
28113 }
28114
28115
28116 SWIGINTERN PyObject *NullCursor_get(void) {
28117 PyObject *pyobj = 0;
28118
28119 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
28120 return pyobj;
28121 }
28122
28123
28124 SWIGINTERN int NullPen_set(PyObject *) {
28125 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
28126 return 1;
28127 }
28128
28129
28130 SWIGINTERN PyObject *NullPen_get(void) {
28131 PyObject *pyobj = 0;
28132
28133 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
28134 return pyobj;
28135 }
28136
28137
28138 SWIGINTERN int NullBrush_set(PyObject *) {
28139 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
28140 return 1;
28141 }
28142
28143
28144 SWIGINTERN PyObject *NullBrush_get(void) {
28145 PyObject *pyobj = 0;
28146
28147 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
28148 return pyobj;
28149 }
28150
28151
28152 SWIGINTERN int NullPalette_set(PyObject *) {
28153 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
28154 return 1;
28155 }
28156
28157
28158 SWIGINTERN PyObject *NullPalette_get(void) {
28159 PyObject *pyobj = 0;
28160
28161 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
28162 return pyobj;
28163 }
28164
28165
28166 SWIGINTERN int NullFont_set(PyObject *) {
28167 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
28168 return 1;
28169 }
28170
28171
28172 SWIGINTERN PyObject *NullFont_get(void) {
28173 PyObject *pyobj = 0;
28174
28175 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
28176 return pyobj;
28177 }
28178
28179
28180 SWIGINTERN int NullColour_set(PyObject *) {
28181 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
28182 return 1;
28183 }
28184
28185
28186 SWIGINTERN PyObject *NullColour_get(void) {
28187 PyObject *pyobj = 0;
28188
28189 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
28190 return pyobj;
28191 }
28192
28193
28194 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28195 PyObject *resultobj = 0;
28196 wxGDIObjListBase *result = 0 ;
28197
28198 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
28199 {
28200 PyThreadState* __tstate = wxPyBeginAllowThreads();
28201 result = (wxGDIObjListBase *)new wxGDIObjListBase();
28202 wxPyEndAllowThreads(__tstate);
28203 if (PyErr_Occurred()) SWIG_fail;
28204 }
28205 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
28206 return resultobj;
28207 fail:
28208 return NULL;
28209 }
28210
28211
28212 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28213 PyObject *resultobj = 0;
28214 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
28215 void *argp1 = 0 ;
28216 int res1 = 0 ;
28217 PyObject *swig_obj[1] ;
28218
28219 if (!args) SWIG_fail;
28220 swig_obj[0] = args;
28221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
28222 if (!SWIG_IsOK(res1)) {
28223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
28224 }
28225 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
28226 {
28227 PyThreadState* __tstate = wxPyBeginAllowThreads();
28228 delete arg1;
28229
28230 wxPyEndAllowThreads(__tstate);
28231 if (PyErr_Occurred()) SWIG_fail;
28232 }
28233 resultobj = SWIG_Py_Void();
28234 return resultobj;
28235 fail:
28236 return NULL;
28237 }
28238
28239
28240 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28241 PyObject *obj;
28242 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28243 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
28244 return SWIG_Py_Void();
28245 }
28246
28247 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28248 return SWIG_Python_InitShadowInstance(args);
28249 }
28250
28251 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28252 PyObject *resultobj = 0;
28253 wxPenList *arg1 = (wxPenList *) 0 ;
28254 wxColour *arg2 = 0 ;
28255 int arg3 ;
28256 int arg4 ;
28257 wxPen *result = 0 ;
28258 void *argp1 = 0 ;
28259 int res1 = 0 ;
28260 wxColour temp2 ;
28261 int val3 ;
28262 int ecode3 = 0 ;
28263 int val4 ;
28264 int ecode4 = 0 ;
28265 PyObject * obj0 = 0 ;
28266 PyObject * obj1 = 0 ;
28267 PyObject * obj2 = 0 ;
28268 PyObject * obj3 = 0 ;
28269 char * kwnames[] = {
28270 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
28271 };
28272
28273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28275 if (!SWIG_IsOK(res1)) {
28276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28277 }
28278 arg1 = reinterpret_cast< wxPenList * >(argp1);
28279 {
28280 arg2 = &temp2;
28281 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28282 }
28283 ecode3 = SWIG_AsVal_int(obj2, &val3);
28284 if (!SWIG_IsOK(ecode3)) {
28285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
28286 }
28287 arg3 = static_cast< int >(val3);
28288 ecode4 = SWIG_AsVal_int(obj3, &val4);
28289 if (!SWIG_IsOK(ecode4)) {
28290 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
28291 }
28292 arg4 = static_cast< int >(val4);
28293 {
28294 PyThreadState* __tstate = wxPyBeginAllowThreads();
28295 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
28296 wxPyEndAllowThreads(__tstate);
28297 if (PyErr_Occurred()) SWIG_fail;
28298 }
28299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28300 return resultobj;
28301 fail:
28302 return NULL;
28303 }
28304
28305
28306 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28307 PyObject *resultobj = 0;
28308 wxPenList *arg1 = (wxPenList *) 0 ;
28309 wxPen *arg2 = (wxPen *) 0 ;
28310 void *argp1 = 0 ;
28311 int res1 = 0 ;
28312 void *argp2 = 0 ;
28313 int res2 = 0 ;
28314 PyObject * obj0 = 0 ;
28315 PyObject * obj1 = 0 ;
28316 char * kwnames[] = {
28317 (char *) "self",(char *) "pen", NULL
28318 };
28319
28320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
28321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28322 if (!SWIG_IsOK(res1)) {
28323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
28324 }
28325 arg1 = reinterpret_cast< wxPenList * >(argp1);
28326 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28327 if (!SWIG_IsOK(res2)) {
28328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
28329 }
28330 arg2 = reinterpret_cast< wxPen * >(argp2);
28331 {
28332 PyThreadState* __tstate = wxPyBeginAllowThreads();
28333 (arg1)->AddPen(arg2);
28334 wxPyEndAllowThreads(__tstate);
28335 if (PyErr_Occurred()) SWIG_fail;
28336 }
28337 resultobj = SWIG_Py_Void();
28338 return resultobj;
28339 fail:
28340 return NULL;
28341 }
28342
28343
28344 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28345 PyObject *resultobj = 0;
28346 wxPenList *arg1 = (wxPenList *) 0 ;
28347 wxPen *arg2 = (wxPen *) 0 ;
28348 void *argp1 = 0 ;
28349 int res1 = 0 ;
28350 void *argp2 = 0 ;
28351 int res2 = 0 ;
28352 PyObject * obj0 = 0 ;
28353 PyObject * obj1 = 0 ;
28354 char * kwnames[] = {
28355 (char *) "self",(char *) "pen", NULL
28356 };
28357
28358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
28359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28360 if (!SWIG_IsOK(res1)) {
28361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28362 }
28363 arg1 = reinterpret_cast< wxPenList * >(argp1);
28364 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28365 if (!SWIG_IsOK(res2)) {
28366 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
28367 }
28368 arg2 = reinterpret_cast< wxPen * >(argp2);
28369 {
28370 PyThreadState* __tstate = wxPyBeginAllowThreads();
28371 (arg1)->RemovePen(arg2);
28372 wxPyEndAllowThreads(__tstate);
28373 if (PyErr_Occurred()) SWIG_fail;
28374 }
28375 resultobj = SWIG_Py_Void();
28376 return resultobj;
28377 fail:
28378 return NULL;
28379 }
28380
28381
28382 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28383 PyObject *obj;
28384 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28385 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
28386 return SWIG_Py_Void();
28387 }
28388
28389 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28390 PyObject *resultobj = 0;
28391 wxBrushList *arg1 = (wxBrushList *) 0 ;
28392 wxColour *arg2 = 0 ;
28393 int arg3 = (int) wxSOLID ;
28394 wxBrush *result = 0 ;
28395 void *argp1 = 0 ;
28396 int res1 = 0 ;
28397 wxColour temp2 ;
28398 int val3 ;
28399 int ecode3 = 0 ;
28400 PyObject * obj0 = 0 ;
28401 PyObject * obj1 = 0 ;
28402 PyObject * obj2 = 0 ;
28403 char * kwnames[] = {
28404 (char *) "self",(char *) "colour",(char *) "style", NULL
28405 };
28406
28407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28409 if (!SWIG_IsOK(res1)) {
28410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28411 }
28412 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28413 {
28414 arg2 = &temp2;
28415 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28416 }
28417 if (obj2) {
28418 ecode3 = SWIG_AsVal_int(obj2, &val3);
28419 if (!SWIG_IsOK(ecode3)) {
28420 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
28421 }
28422 arg3 = static_cast< int >(val3);
28423 }
28424 {
28425 PyThreadState* __tstate = wxPyBeginAllowThreads();
28426 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
28427 wxPyEndAllowThreads(__tstate);
28428 if (PyErr_Occurred()) SWIG_fail;
28429 }
28430 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28431 return resultobj;
28432 fail:
28433 return NULL;
28434 }
28435
28436
28437 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28438 PyObject *resultobj = 0;
28439 wxBrushList *arg1 = (wxBrushList *) 0 ;
28440 wxBrush *arg2 = (wxBrush *) 0 ;
28441 void *argp1 = 0 ;
28442 int res1 = 0 ;
28443 void *argp2 = 0 ;
28444 int res2 = 0 ;
28445 PyObject * obj0 = 0 ;
28446 PyObject * obj1 = 0 ;
28447 char * kwnames[] = {
28448 (char *) "self",(char *) "brush", NULL
28449 };
28450
28451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28453 if (!SWIG_IsOK(res1)) {
28454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28455 }
28456 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28457 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28458 if (!SWIG_IsOK(res2)) {
28459 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28460 }
28461 arg2 = reinterpret_cast< wxBrush * >(argp2);
28462 {
28463 PyThreadState* __tstate = wxPyBeginAllowThreads();
28464 (arg1)->AddBrush(arg2);
28465 wxPyEndAllowThreads(__tstate);
28466 if (PyErr_Occurred()) SWIG_fail;
28467 }
28468 resultobj = SWIG_Py_Void();
28469 return resultobj;
28470 fail:
28471 return NULL;
28472 }
28473
28474
28475 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28476 PyObject *resultobj = 0;
28477 wxBrushList *arg1 = (wxBrushList *) 0 ;
28478 wxBrush *arg2 = (wxBrush *) 0 ;
28479 void *argp1 = 0 ;
28480 int res1 = 0 ;
28481 void *argp2 = 0 ;
28482 int res2 = 0 ;
28483 PyObject * obj0 = 0 ;
28484 PyObject * obj1 = 0 ;
28485 char * kwnames[] = {
28486 (char *) "self",(char *) "brush", NULL
28487 };
28488
28489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28491 if (!SWIG_IsOK(res1)) {
28492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28493 }
28494 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28495 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28496 if (!SWIG_IsOK(res2)) {
28497 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28498 }
28499 arg2 = reinterpret_cast< wxBrush * >(argp2);
28500 {
28501 PyThreadState* __tstate = wxPyBeginAllowThreads();
28502 (arg1)->RemoveBrush(arg2);
28503 wxPyEndAllowThreads(__tstate);
28504 if (PyErr_Occurred()) SWIG_fail;
28505 }
28506 resultobj = SWIG_Py_Void();
28507 return resultobj;
28508 fail:
28509 return NULL;
28510 }
28511
28512
28513 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28514 PyObject *obj;
28515 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28516 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
28517 return SWIG_Py_Void();
28518 }
28519
28520 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28521 PyObject *resultobj = 0;
28522 wxFontList *arg1 = (wxFontList *) 0 ;
28523 int arg2 ;
28524 int arg3 ;
28525 int arg4 ;
28526 int arg5 ;
28527 bool arg6 = (bool) false ;
28528 wxString const &arg7_defvalue = wxPyEmptyString ;
28529 wxString *arg7 = (wxString *) &arg7_defvalue ;
28530 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
28531 wxFont *result = 0 ;
28532 void *argp1 = 0 ;
28533 int res1 = 0 ;
28534 int val2 ;
28535 int ecode2 = 0 ;
28536 int val3 ;
28537 int ecode3 = 0 ;
28538 int val4 ;
28539 int ecode4 = 0 ;
28540 int val5 ;
28541 int ecode5 = 0 ;
28542 bool val6 ;
28543 int ecode6 = 0 ;
28544 bool temp7 = false ;
28545 int val8 ;
28546 int ecode8 = 0 ;
28547 PyObject * obj0 = 0 ;
28548 PyObject * obj1 = 0 ;
28549 PyObject * obj2 = 0 ;
28550 PyObject * obj3 = 0 ;
28551 PyObject * obj4 = 0 ;
28552 PyObject * obj5 = 0 ;
28553 PyObject * obj6 = 0 ;
28554 PyObject * obj7 = 0 ;
28555 char * kwnames[] = {
28556 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
28557 };
28558
28559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28561 if (!SWIG_IsOK(res1)) {
28562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28563 }
28564 arg1 = reinterpret_cast< wxFontList * >(argp1);
28565 ecode2 = SWIG_AsVal_int(obj1, &val2);
28566 if (!SWIG_IsOK(ecode2)) {
28567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
28568 }
28569 arg2 = static_cast< int >(val2);
28570 ecode3 = SWIG_AsVal_int(obj2, &val3);
28571 if (!SWIG_IsOK(ecode3)) {
28572 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
28573 }
28574 arg3 = static_cast< int >(val3);
28575 ecode4 = SWIG_AsVal_int(obj3, &val4);
28576 if (!SWIG_IsOK(ecode4)) {
28577 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
28578 }
28579 arg4 = static_cast< int >(val4);
28580 ecode5 = SWIG_AsVal_int(obj4, &val5);
28581 if (!SWIG_IsOK(ecode5)) {
28582 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
28583 }
28584 arg5 = static_cast< int >(val5);
28585 if (obj5) {
28586 ecode6 = SWIG_AsVal_bool(obj5, &val6);
28587 if (!SWIG_IsOK(ecode6)) {
28588 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
28589 }
28590 arg6 = static_cast< bool >(val6);
28591 }
28592 if (obj6) {
28593 {
28594 arg7 = wxString_in_helper(obj6);
28595 if (arg7 == NULL) SWIG_fail;
28596 temp7 = true;
28597 }
28598 }
28599 if (obj7) {
28600 ecode8 = SWIG_AsVal_int(obj7, &val8);
28601 if (!SWIG_IsOK(ecode8)) {
28602 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
28603 }
28604 arg8 = static_cast< wxFontEncoding >(val8);
28605 }
28606 {
28607 PyThreadState* __tstate = wxPyBeginAllowThreads();
28608 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
28609 wxPyEndAllowThreads(__tstate);
28610 if (PyErr_Occurred()) SWIG_fail;
28611 }
28612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28613 {
28614 if (temp7)
28615 delete arg7;
28616 }
28617 return resultobj;
28618 fail:
28619 {
28620 if (temp7)
28621 delete arg7;
28622 }
28623 return NULL;
28624 }
28625
28626
28627 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28628 PyObject *resultobj = 0;
28629 wxFontList *arg1 = (wxFontList *) 0 ;
28630 wxFont *arg2 = (wxFont *) 0 ;
28631 void *argp1 = 0 ;
28632 int res1 = 0 ;
28633 void *argp2 = 0 ;
28634 int res2 = 0 ;
28635 PyObject * obj0 = 0 ;
28636 PyObject * obj1 = 0 ;
28637 char * kwnames[] = {
28638 (char *) "self",(char *) "font", NULL
28639 };
28640
28641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
28642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28643 if (!SWIG_IsOK(res1)) {
28644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28645 }
28646 arg1 = reinterpret_cast< wxFontList * >(argp1);
28647 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28648 if (!SWIG_IsOK(res2)) {
28649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
28650 }
28651 arg2 = reinterpret_cast< wxFont * >(argp2);
28652 {
28653 PyThreadState* __tstate = wxPyBeginAllowThreads();
28654 (arg1)->AddFont(arg2);
28655 wxPyEndAllowThreads(__tstate);
28656 if (PyErr_Occurred()) SWIG_fail;
28657 }
28658 resultobj = SWIG_Py_Void();
28659 return resultobj;
28660 fail:
28661 return NULL;
28662 }
28663
28664
28665 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28666 PyObject *resultobj = 0;
28667 wxFontList *arg1 = (wxFontList *) 0 ;
28668 wxFont *arg2 = (wxFont *) 0 ;
28669 void *argp1 = 0 ;
28670 int res1 = 0 ;
28671 void *argp2 = 0 ;
28672 int res2 = 0 ;
28673 PyObject * obj0 = 0 ;
28674 PyObject * obj1 = 0 ;
28675 char * kwnames[] = {
28676 (char *) "self",(char *) "font", NULL
28677 };
28678
28679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
28680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28681 if (!SWIG_IsOK(res1)) {
28682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28683 }
28684 arg1 = reinterpret_cast< wxFontList * >(argp1);
28685 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28686 if (!SWIG_IsOK(res2)) {
28687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
28688 }
28689 arg2 = reinterpret_cast< wxFont * >(argp2);
28690 {
28691 PyThreadState* __tstate = wxPyBeginAllowThreads();
28692 (arg1)->RemoveFont(arg2);
28693 wxPyEndAllowThreads(__tstate);
28694 if (PyErr_Occurred()) SWIG_fail;
28695 }
28696 resultobj = SWIG_Py_Void();
28697 return resultobj;
28698 fail:
28699 return NULL;
28700 }
28701
28702
28703 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28704 PyObject *obj;
28705 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28706 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
28707 return SWIG_Py_Void();
28708 }
28709
28710 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28711 PyObject *resultobj = 0;
28712 wxColourDatabase *result = 0 ;
28713
28714 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
28715 {
28716 if (!wxPyCheckForApp()) SWIG_fail;
28717 PyThreadState* __tstate = wxPyBeginAllowThreads();
28718 result = (wxColourDatabase *)new wxColourDatabase();
28719 wxPyEndAllowThreads(__tstate);
28720 if (PyErr_Occurred()) SWIG_fail;
28721 }
28722 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
28723 return resultobj;
28724 fail:
28725 return NULL;
28726 }
28727
28728
28729 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28730 PyObject *resultobj = 0;
28731 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28732 void *argp1 = 0 ;
28733 int res1 = 0 ;
28734 PyObject *swig_obj[1] ;
28735
28736 if (!args) SWIG_fail;
28737 swig_obj[0] = args;
28738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
28739 if (!SWIG_IsOK(res1)) {
28740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28741 }
28742 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28743 {
28744 PyThreadState* __tstate = wxPyBeginAllowThreads();
28745 delete arg1;
28746
28747 wxPyEndAllowThreads(__tstate);
28748 if (PyErr_Occurred()) SWIG_fail;
28749 }
28750 resultobj = SWIG_Py_Void();
28751 return resultobj;
28752 fail:
28753 return NULL;
28754 }
28755
28756
28757 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28758 PyObject *resultobj = 0;
28759 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28760 wxString *arg2 = 0 ;
28761 wxColour result;
28762 void *argp1 = 0 ;
28763 int res1 = 0 ;
28764 bool temp2 = false ;
28765 PyObject * obj0 = 0 ;
28766 PyObject * obj1 = 0 ;
28767 char * kwnames[] = {
28768 (char *) "self",(char *) "name", NULL
28769 };
28770
28771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
28772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28773 if (!SWIG_IsOK(res1)) {
28774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28775 }
28776 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28777 {
28778 arg2 = wxString_in_helper(obj1);
28779 if (arg2 == NULL) SWIG_fail;
28780 temp2 = true;
28781 }
28782 {
28783 PyThreadState* __tstate = wxPyBeginAllowThreads();
28784 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
28785 wxPyEndAllowThreads(__tstate);
28786 if (PyErr_Occurred()) SWIG_fail;
28787 }
28788 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28789 {
28790 if (temp2)
28791 delete arg2;
28792 }
28793 return resultobj;
28794 fail:
28795 {
28796 if (temp2)
28797 delete arg2;
28798 }
28799 return NULL;
28800 }
28801
28802
28803 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28804 PyObject *resultobj = 0;
28805 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28806 wxColour *arg2 = 0 ;
28807 wxString result;
28808 void *argp1 = 0 ;
28809 int res1 = 0 ;
28810 wxColour temp2 ;
28811 PyObject * obj0 = 0 ;
28812 PyObject * obj1 = 0 ;
28813 char * kwnames[] = {
28814 (char *) "self",(char *) "colour", NULL
28815 };
28816
28817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
28818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28819 if (!SWIG_IsOK(res1)) {
28820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28821 }
28822 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28823 {
28824 arg2 = &temp2;
28825 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28826 }
28827 {
28828 PyThreadState* __tstate = wxPyBeginAllowThreads();
28829 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
28830 wxPyEndAllowThreads(__tstate);
28831 if (PyErr_Occurred()) SWIG_fail;
28832 }
28833 {
28834 #if wxUSE_UNICODE
28835 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28836 #else
28837 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28838 #endif
28839 }
28840 return resultobj;
28841 fail:
28842 return NULL;
28843 }
28844
28845
28846 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28847 PyObject *resultobj = 0;
28848 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28849 wxString *arg2 = 0 ;
28850 wxColour *arg3 = 0 ;
28851 void *argp1 = 0 ;
28852 int res1 = 0 ;
28853 bool temp2 = false ;
28854 wxColour temp3 ;
28855 PyObject * obj0 = 0 ;
28856 PyObject * obj1 = 0 ;
28857 PyObject * obj2 = 0 ;
28858 char * kwnames[] = {
28859 (char *) "self",(char *) "name",(char *) "colour", NULL
28860 };
28861
28862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28864 if (!SWIG_IsOK(res1)) {
28865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28866 }
28867 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28868 {
28869 arg2 = wxString_in_helper(obj1);
28870 if (arg2 == NULL) SWIG_fail;
28871 temp2 = true;
28872 }
28873 {
28874 arg3 = &temp3;
28875 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28876 }
28877 {
28878 PyThreadState* __tstate = wxPyBeginAllowThreads();
28879 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
28880 wxPyEndAllowThreads(__tstate);
28881 if (PyErr_Occurred()) SWIG_fail;
28882 }
28883 resultobj = SWIG_Py_Void();
28884 {
28885 if (temp2)
28886 delete arg2;
28887 }
28888 return resultobj;
28889 fail:
28890 {
28891 if (temp2)
28892 delete arg2;
28893 }
28894 return NULL;
28895 }
28896
28897
28898 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28899 PyObject *resultobj = 0;
28900 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28901 wxString *arg2 = 0 ;
28902 int arg3 ;
28903 int arg4 ;
28904 int arg5 ;
28905 void *argp1 = 0 ;
28906 int res1 = 0 ;
28907 bool temp2 = false ;
28908 int val3 ;
28909 int ecode3 = 0 ;
28910 int val4 ;
28911 int ecode4 = 0 ;
28912 int val5 ;
28913 int ecode5 = 0 ;
28914 PyObject * obj0 = 0 ;
28915 PyObject * obj1 = 0 ;
28916 PyObject * obj2 = 0 ;
28917 PyObject * obj3 = 0 ;
28918 PyObject * obj4 = 0 ;
28919 char * kwnames[] = {
28920 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
28921 };
28922
28923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28925 if (!SWIG_IsOK(res1)) {
28926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28927 }
28928 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28929 {
28930 arg2 = wxString_in_helper(obj1);
28931 if (arg2 == NULL) SWIG_fail;
28932 temp2 = true;
28933 }
28934 ecode3 = SWIG_AsVal_int(obj2, &val3);
28935 if (!SWIG_IsOK(ecode3)) {
28936 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
28937 }
28938 arg3 = static_cast< int >(val3);
28939 ecode4 = SWIG_AsVal_int(obj3, &val4);
28940 if (!SWIG_IsOK(ecode4)) {
28941 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
28942 }
28943 arg4 = static_cast< int >(val4);
28944 ecode5 = SWIG_AsVal_int(obj4, &val5);
28945 if (!SWIG_IsOK(ecode5)) {
28946 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
28947 }
28948 arg5 = static_cast< int >(val5);
28949 {
28950 PyThreadState* __tstate = wxPyBeginAllowThreads();
28951 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
28952 wxPyEndAllowThreads(__tstate);
28953 if (PyErr_Occurred()) SWIG_fail;
28954 }
28955 resultobj = SWIG_Py_Void();
28956 {
28957 if (temp2)
28958 delete arg2;
28959 }
28960 return resultobj;
28961 fail:
28962 {
28963 if (temp2)
28964 delete arg2;
28965 }
28966 return NULL;
28967 }
28968
28969
28970 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28971 PyObject *obj;
28972 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28973 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
28974 return SWIG_Py_Void();
28975 }
28976
28977 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28978 return SWIG_Python_InitShadowInstance(args);
28979 }
28980
28981 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28982 PyObject *resultobj = 0;
28983 wxFontList *result = 0 ;
28984
28985 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
28986 {
28987 PyThreadState* __tstate = wxPyBeginAllowThreads();
28988 result = (wxFontList *)_wxPyInitTheFontList();
28989 wxPyEndAllowThreads(__tstate);
28990 if (PyErr_Occurred()) SWIG_fail;
28991 }
28992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
28993 return resultobj;
28994 fail:
28995 return NULL;
28996 }
28997
28998
28999 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29000 PyObject *resultobj = 0;
29001 wxPenList *result = 0 ;
29002
29003 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
29004 {
29005 PyThreadState* __tstate = wxPyBeginAllowThreads();
29006 result = (wxPenList *)_wxPyInitThePenList();
29007 wxPyEndAllowThreads(__tstate);
29008 if (PyErr_Occurred()) SWIG_fail;
29009 }
29010 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
29011 return resultobj;
29012 fail:
29013 return NULL;
29014 }
29015
29016
29017 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29018 PyObject *resultobj = 0;
29019 wxBrushList *result = 0 ;
29020
29021 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
29022 {
29023 PyThreadState* __tstate = wxPyBeginAllowThreads();
29024 result = (wxBrushList *)_wxPyInitTheBrushList();
29025 wxPyEndAllowThreads(__tstate);
29026 if (PyErr_Occurred()) SWIG_fail;
29027 }
29028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
29029 return resultobj;
29030 fail:
29031 return NULL;
29032 }
29033
29034
29035 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29036 PyObject *resultobj = 0;
29037 wxColourDatabase *result = 0 ;
29038
29039 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
29040 {
29041 PyThreadState* __tstate = wxPyBeginAllowThreads();
29042 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
29043 wxPyEndAllowThreads(__tstate);
29044 if (PyErr_Occurred()) SWIG_fail;
29045 }
29046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29047 return resultobj;
29048 fail:
29049 return NULL;
29050 }
29051
29052
29053 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29054 PyObject *resultobj = 0;
29055 wxEffects *result = 0 ;
29056
29057 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
29058 {
29059 PyThreadState* __tstate = wxPyBeginAllowThreads();
29060 result = (wxEffects *)new wxEffects();
29061 wxPyEndAllowThreads(__tstate);
29062 if (PyErr_Occurred()) SWIG_fail;
29063 }
29064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
29065 return resultobj;
29066 fail:
29067 return NULL;
29068 }
29069
29070
29071 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29072 PyObject *resultobj = 0;
29073 wxEffects *arg1 = (wxEffects *) 0 ;
29074 wxColour result;
29075 void *argp1 = 0 ;
29076 int res1 = 0 ;
29077 PyObject *swig_obj[1] ;
29078
29079 if (!args) SWIG_fail;
29080 swig_obj[0] = args;
29081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29082 if (!SWIG_IsOK(res1)) {
29083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29084 }
29085 arg1 = reinterpret_cast< wxEffects * >(argp1);
29086 {
29087 PyThreadState* __tstate = wxPyBeginAllowThreads();
29088 result = ((wxEffects const *)arg1)->GetHighlightColour();
29089 wxPyEndAllowThreads(__tstate);
29090 if (PyErr_Occurred()) SWIG_fail;
29091 }
29092 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29093 return resultobj;
29094 fail:
29095 return NULL;
29096 }
29097
29098
29099 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29100 PyObject *resultobj = 0;
29101 wxEffects *arg1 = (wxEffects *) 0 ;
29102 wxColour result;
29103 void *argp1 = 0 ;
29104 int res1 = 0 ;
29105 PyObject *swig_obj[1] ;
29106
29107 if (!args) SWIG_fail;
29108 swig_obj[0] = args;
29109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29110 if (!SWIG_IsOK(res1)) {
29111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29112 }
29113 arg1 = reinterpret_cast< wxEffects * >(argp1);
29114 {
29115 PyThreadState* __tstate = wxPyBeginAllowThreads();
29116 result = ((wxEffects const *)arg1)->GetLightShadow();
29117 wxPyEndAllowThreads(__tstate);
29118 if (PyErr_Occurred()) SWIG_fail;
29119 }
29120 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29121 return resultobj;
29122 fail:
29123 return NULL;
29124 }
29125
29126
29127 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29128 PyObject *resultobj = 0;
29129 wxEffects *arg1 = (wxEffects *) 0 ;
29130 wxColour result;
29131 void *argp1 = 0 ;
29132 int res1 = 0 ;
29133 PyObject *swig_obj[1] ;
29134
29135 if (!args) SWIG_fail;
29136 swig_obj[0] = args;
29137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29138 if (!SWIG_IsOK(res1)) {
29139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29140 }
29141 arg1 = reinterpret_cast< wxEffects * >(argp1);
29142 {
29143 PyThreadState* __tstate = wxPyBeginAllowThreads();
29144 result = ((wxEffects const *)arg1)->GetFaceColour();
29145 wxPyEndAllowThreads(__tstate);
29146 if (PyErr_Occurred()) SWIG_fail;
29147 }
29148 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29149 return resultobj;
29150 fail:
29151 return NULL;
29152 }
29153
29154
29155 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29156 PyObject *resultobj = 0;
29157 wxEffects *arg1 = (wxEffects *) 0 ;
29158 wxColour result;
29159 void *argp1 = 0 ;
29160 int res1 = 0 ;
29161 PyObject *swig_obj[1] ;
29162
29163 if (!args) SWIG_fail;
29164 swig_obj[0] = args;
29165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29166 if (!SWIG_IsOK(res1)) {
29167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29168 }
29169 arg1 = reinterpret_cast< wxEffects * >(argp1);
29170 {
29171 PyThreadState* __tstate = wxPyBeginAllowThreads();
29172 result = ((wxEffects const *)arg1)->GetMediumShadow();
29173 wxPyEndAllowThreads(__tstate);
29174 if (PyErr_Occurred()) SWIG_fail;
29175 }
29176 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29177 return resultobj;
29178 fail:
29179 return NULL;
29180 }
29181
29182
29183 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29184 PyObject *resultobj = 0;
29185 wxEffects *arg1 = (wxEffects *) 0 ;
29186 wxColour result;
29187 void *argp1 = 0 ;
29188 int res1 = 0 ;
29189 PyObject *swig_obj[1] ;
29190
29191 if (!args) SWIG_fail;
29192 swig_obj[0] = args;
29193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29194 if (!SWIG_IsOK(res1)) {
29195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29196 }
29197 arg1 = reinterpret_cast< wxEffects * >(argp1);
29198 {
29199 PyThreadState* __tstate = wxPyBeginAllowThreads();
29200 result = ((wxEffects const *)arg1)->GetDarkShadow();
29201 wxPyEndAllowThreads(__tstate);
29202 if (PyErr_Occurred()) SWIG_fail;
29203 }
29204 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29205 return resultobj;
29206 fail:
29207 return NULL;
29208 }
29209
29210
29211 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29212 PyObject *resultobj = 0;
29213 wxEffects *arg1 = (wxEffects *) 0 ;
29214 wxColour *arg2 = 0 ;
29215 void *argp1 = 0 ;
29216 int res1 = 0 ;
29217 wxColour temp2 ;
29218 PyObject * obj0 = 0 ;
29219 PyObject * obj1 = 0 ;
29220 char * kwnames[] = {
29221 (char *) "self",(char *) "c", NULL
29222 };
29223
29224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
29225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29226 if (!SWIG_IsOK(res1)) {
29227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29228 }
29229 arg1 = reinterpret_cast< wxEffects * >(argp1);
29230 {
29231 arg2 = &temp2;
29232 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29233 }
29234 {
29235 PyThreadState* __tstate = wxPyBeginAllowThreads();
29236 (arg1)->SetHighlightColour((wxColour const &)*arg2);
29237 wxPyEndAllowThreads(__tstate);
29238 if (PyErr_Occurred()) SWIG_fail;
29239 }
29240 resultobj = SWIG_Py_Void();
29241 return resultobj;
29242 fail:
29243 return NULL;
29244 }
29245
29246
29247 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29248 PyObject *resultobj = 0;
29249 wxEffects *arg1 = (wxEffects *) 0 ;
29250 wxColour *arg2 = 0 ;
29251 void *argp1 = 0 ;
29252 int res1 = 0 ;
29253 wxColour temp2 ;
29254 PyObject * obj0 = 0 ;
29255 PyObject * obj1 = 0 ;
29256 char * kwnames[] = {
29257 (char *) "self",(char *) "c", NULL
29258 };
29259
29260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29262 if (!SWIG_IsOK(res1)) {
29263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29264 }
29265 arg1 = reinterpret_cast< wxEffects * >(argp1);
29266 {
29267 arg2 = &temp2;
29268 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29269 }
29270 {
29271 PyThreadState* __tstate = wxPyBeginAllowThreads();
29272 (arg1)->SetLightShadow((wxColour const &)*arg2);
29273 wxPyEndAllowThreads(__tstate);
29274 if (PyErr_Occurred()) SWIG_fail;
29275 }
29276 resultobj = SWIG_Py_Void();
29277 return resultobj;
29278 fail:
29279 return NULL;
29280 }
29281
29282
29283 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29284 PyObject *resultobj = 0;
29285 wxEffects *arg1 = (wxEffects *) 0 ;
29286 wxColour *arg2 = 0 ;
29287 void *argp1 = 0 ;
29288 int res1 = 0 ;
29289 wxColour temp2 ;
29290 PyObject * obj0 = 0 ;
29291 PyObject * obj1 = 0 ;
29292 char * kwnames[] = {
29293 (char *) "self",(char *) "c", NULL
29294 };
29295
29296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
29297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29298 if (!SWIG_IsOK(res1)) {
29299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29300 }
29301 arg1 = reinterpret_cast< wxEffects * >(argp1);
29302 {
29303 arg2 = &temp2;
29304 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29305 }
29306 {
29307 PyThreadState* __tstate = wxPyBeginAllowThreads();
29308 (arg1)->SetFaceColour((wxColour const &)*arg2);
29309 wxPyEndAllowThreads(__tstate);
29310 if (PyErr_Occurred()) SWIG_fail;
29311 }
29312 resultobj = SWIG_Py_Void();
29313 return resultobj;
29314 fail:
29315 return NULL;
29316 }
29317
29318
29319 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29320 PyObject *resultobj = 0;
29321 wxEffects *arg1 = (wxEffects *) 0 ;
29322 wxColour *arg2 = 0 ;
29323 void *argp1 = 0 ;
29324 int res1 = 0 ;
29325 wxColour temp2 ;
29326 PyObject * obj0 = 0 ;
29327 PyObject * obj1 = 0 ;
29328 char * kwnames[] = {
29329 (char *) "self",(char *) "c", NULL
29330 };
29331
29332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29334 if (!SWIG_IsOK(res1)) {
29335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29336 }
29337 arg1 = reinterpret_cast< wxEffects * >(argp1);
29338 {
29339 arg2 = &temp2;
29340 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29341 }
29342 {
29343 PyThreadState* __tstate = wxPyBeginAllowThreads();
29344 (arg1)->SetMediumShadow((wxColour const &)*arg2);
29345 wxPyEndAllowThreads(__tstate);
29346 if (PyErr_Occurred()) SWIG_fail;
29347 }
29348 resultobj = SWIG_Py_Void();
29349 return resultobj;
29350 fail:
29351 return NULL;
29352 }
29353
29354
29355 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29356 PyObject *resultobj = 0;
29357 wxEffects *arg1 = (wxEffects *) 0 ;
29358 wxColour *arg2 = 0 ;
29359 void *argp1 = 0 ;
29360 int res1 = 0 ;
29361 wxColour temp2 ;
29362 PyObject * obj0 = 0 ;
29363 PyObject * obj1 = 0 ;
29364 char * kwnames[] = {
29365 (char *) "self",(char *) "c", NULL
29366 };
29367
29368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29370 if (!SWIG_IsOK(res1)) {
29371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29372 }
29373 arg1 = reinterpret_cast< wxEffects * >(argp1);
29374 {
29375 arg2 = &temp2;
29376 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29377 }
29378 {
29379 PyThreadState* __tstate = wxPyBeginAllowThreads();
29380 (arg1)->SetDarkShadow((wxColour const &)*arg2);
29381 wxPyEndAllowThreads(__tstate);
29382 if (PyErr_Occurred()) SWIG_fail;
29383 }
29384 resultobj = SWIG_Py_Void();
29385 return resultobj;
29386 fail:
29387 return NULL;
29388 }
29389
29390
29391 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29392 PyObject *resultobj = 0;
29393 wxEffects *arg1 = (wxEffects *) 0 ;
29394 wxColour *arg2 = 0 ;
29395 wxColour *arg3 = 0 ;
29396 wxColour *arg4 = 0 ;
29397 wxColour *arg5 = 0 ;
29398 wxColour *arg6 = 0 ;
29399 void *argp1 = 0 ;
29400 int res1 = 0 ;
29401 wxColour temp2 ;
29402 wxColour temp3 ;
29403 wxColour temp4 ;
29404 wxColour temp5 ;
29405 wxColour temp6 ;
29406 PyObject * obj0 = 0 ;
29407 PyObject * obj1 = 0 ;
29408 PyObject * obj2 = 0 ;
29409 PyObject * obj3 = 0 ;
29410 PyObject * obj4 = 0 ;
29411 PyObject * obj5 = 0 ;
29412 char * kwnames[] = {
29413 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
29414 };
29415
29416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29418 if (!SWIG_IsOK(res1)) {
29419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
29420 }
29421 arg1 = reinterpret_cast< wxEffects * >(argp1);
29422 {
29423 arg2 = &temp2;
29424 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29425 }
29426 {
29427 arg3 = &temp3;
29428 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29429 }
29430 {
29431 arg4 = &temp4;
29432 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
29433 }
29434 {
29435 arg5 = &temp5;
29436 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
29437 }
29438 {
29439 arg6 = &temp6;
29440 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
29441 }
29442 {
29443 PyThreadState* __tstate = wxPyBeginAllowThreads();
29444 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
29445 wxPyEndAllowThreads(__tstate);
29446 if (PyErr_Occurred()) SWIG_fail;
29447 }
29448 resultobj = SWIG_Py_Void();
29449 return resultobj;
29450 fail:
29451 return NULL;
29452 }
29453
29454
29455 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29456 PyObject *resultobj = 0;
29457 wxEffects *arg1 = (wxEffects *) 0 ;
29458 wxDC *arg2 = 0 ;
29459 wxRect *arg3 = 0 ;
29460 int arg4 = (int) 1 ;
29461 void *argp1 = 0 ;
29462 int res1 = 0 ;
29463 void *argp2 = 0 ;
29464 int res2 = 0 ;
29465 wxRect temp3 ;
29466 int val4 ;
29467 int ecode4 = 0 ;
29468 PyObject * obj0 = 0 ;
29469 PyObject * obj1 = 0 ;
29470 PyObject * obj2 = 0 ;
29471 PyObject * obj3 = 0 ;
29472 char * kwnames[] = {
29473 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
29474 };
29475
29476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29478 if (!SWIG_IsOK(res1)) {
29479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
29480 }
29481 arg1 = reinterpret_cast< wxEffects * >(argp1);
29482 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
29483 if (!SWIG_IsOK(res2)) {
29484 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29485 }
29486 if (!argp2) {
29487 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29488 }
29489 arg2 = reinterpret_cast< wxDC * >(argp2);
29490 {
29491 arg3 = &temp3;
29492 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29493 }
29494 if (obj3) {
29495 ecode4 = SWIG_AsVal_int(obj3, &val4);
29496 if (!SWIG_IsOK(ecode4)) {
29497 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
29498 }
29499 arg4 = static_cast< int >(val4);
29500 }
29501 {
29502 PyThreadState* __tstate = wxPyBeginAllowThreads();
29503 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
29504 wxPyEndAllowThreads(__tstate);
29505 if (PyErr_Occurred()) SWIG_fail;
29506 }
29507 resultobj = SWIG_Py_Void();
29508 return resultobj;
29509 fail:
29510 return NULL;
29511 }
29512
29513
29514 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29515 PyObject *resultobj = 0;
29516 wxEffects *arg1 = (wxEffects *) 0 ;
29517 wxRect *arg2 = 0 ;
29518 wxDC *arg3 = 0 ;
29519 wxBitmap *arg4 = 0 ;
29520 bool result;
29521 void *argp1 = 0 ;
29522 int res1 = 0 ;
29523 wxRect temp2 ;
29524 void *argp3 = 0 ;
29525 int res3 = 0 ;
29526 void *argp4 = 0 ;
29527 int res4 = 0 ;
29528 PyObject * obj0 = 0 ;
29529 PyObject * obj1 = 0 ;
29530 PyObject * obj2 = 0 ;
29531 PyObject * obj3 = 0 ;
29532 char * kwnames[] = {
29533 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
29534 };
29535
29536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29538 if (!SWIG_IsOK(res1)) {
29539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
29540 }
29541 arg1 = reinterpret_cast< wxEffects * >(argp1);
29542 {
29543 arg2 = &temp2;
29544 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29545 }
29546 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29547 if (!SWIG_IsOK(res3)) {
29548 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29549 }
29550 if (!argp3) {
29551 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29552 }
29553 arg3 = reinterpret_cast< wxDC * >(argp3);
29554 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
29555 if (!SWIG_IsOK(res4)) {
29556 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29557 }
29558 if (!argp4) {
29559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29560 }
29561 arg4 = reinterpret_cast< wxBitmap * >(argp4);
29562 {
29563 PyThreadState* __tstate = wxPyBeginAllowThreads();
29564 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
29565 wxPyEndAllowThreads(__tstate);
29566 if (PyErr_Occurred()) SWIG_fail;
29567 }
29568 {
29569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29570 }
29571 return resultobj;
29572 fail:
29573 return NULL;
29574 }
29575
29576
29577 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29578 PyObject *obj;
29579 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29580 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
29581 return SWIG_Py_Void();
29582 }
29583
29584 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29585 return SWIG_Python_InitShadowInstance(args);
29586 }
29587
29588 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29589 PyObject *resultobj = 0;
29590 int arg1 ;
29591 int arg2 ;
29592 bool arg3 ;
29593 wxSplitterRenderParams *result = 0 ;
29594 int val1 ;
29595 int ecode1 = 0 ;
29596 int val2 ;
29597 int ecode2 = 0 ;
29598 bool val3 ;
29599 int ecode3 = 0 ;
29600 PyObject * obj0 = 0 ;
29601 PyObject * obj1 = 0 ;
29602 PyObject * obj2 = 0 ;
29603 char * kwnames[] = {
29604 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
29605 };
29606
29607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29608 ecode1 = SWIG_AsVal_int(obj0, &val1);
29609 if (!SWIG_IsOK(ecode1)) {
29610 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
29611 }
29612 arg1 = static_cast< int >(val1);
29613 ecode2 = SWIG_AsVal_int(obj1, &val2);
29614 if (!SWIG_IsOK(ecode2)) {
29615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
29616 }
29617 arg2 = static_cast< int >(val2);
29618 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29619 if (!SWIG_IsOK(ecode3)) {
29620 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
29621 }
29622 arg3 = static_cast< bool >(val3);
29623 {
29624 PyThreadState* __tstate = wxPyBeginAllowThreads();
29625 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
29626 wxPyEndAllowThreads(__tstate);
29627 if (PyErr_Occurred()) SWIG_fail;
29628 }
29629 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
29630 return resultobj;
29631 fail:
29632 return NULL;
29633 }
29634
29635
29636 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29637 PyObject *resultobj = 0;
29638 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29639 void *argp1 = 0 ;
29640 int res1 = 0 ;
29641 PyObject *swig_obj[1] ;
29642
29643 if (!args) SWIG_fail;
29644 swig_obj[0] = args;
29645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
29646 if (!SWIG_IsOK(res1)) {
29647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29648 }
29649 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29650 {
29651 PyThreadState* __tstate = wxPyBeginAllowThreads();
29652 delete arg1;
29653
29654 wxPyEndAllowThreads(__tstate);
29655 if (PyErr_Occurred()) SWIG_fail;
29656 }
29657 resultobj = SWIG_Py_Void();
29658 return resultobj;
29659 fail:
29660 return NULL;
29661 }
29662
29663
29664 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29665 PyObject *resultobj = 0;
29666 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29667 int result;
29668 void *argp1 = 0 ;
29669 int res1 = 0 ;
29670 PyObject *swig_obj[1] ;
29671
29672 if (!args) SWIG_fail;
29673 swig_obj[0] = args;
29674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29675 if (!SWIG_IsOK(res1)) {
29676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29677 }
29678 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29679 result = (int)(int) ((arg1)->widthSash);
29680 resultobj = SWIG_From_int(static_cast< int >(result));
29681 return resultobj;
29682 fail:
29683 return NULL;
29684 }
29685
29686
29687 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29688 PyObject *resultobj = 0;
29689 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29690 int result;
29691 void *argp1 = 0 ;
29692 int res1 = 0 ;
29693 PyObject *swig_obj[1] ;
29694
29695 if (!args) SWIG_fail;
29696 swig_obj[0] = args;
29697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29698 if (!SWIG_IsOK(res1)) {
29699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29700 }
29701 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29702 result = (int)(int) ((arg1)->border);
29703 resultobj = SWIG_From_int(static_cast< int >(result));
29704 return resultobj;
29705 fail:
29706 return NULL;
29707 }
29708
29709
29710 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29711 PyObject *resultobj = 0;
29712 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29713 bool result;
29714 void *argp1 = 0 ;
29715 int res1 = 0 ;
29716 PyObject *swig_obj[1] ;
29717
29718 if (!args) SWIG_fail;
29719 swig_obj[0] = args;
29720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29721 if (!SWIG_IsOK(res1)) {
29722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29723 }
29724 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29725 result = (bool)(bool) ((arg1)->isHotSensitive);
29726 resultobj = SWIG_From_bool(static_cast< bool >(result));
29727 return resultobj;
29728 fail:
29729 return NULL;
29730 }
29731
29732
29733 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29734 PyObject *obj;
29735 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29736 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
29737 return SWIG_Py_Void();
29738 }
29739
29740 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29741 return SWIG_Python_InitShadowInstance(args);
29742 }
29743
29744 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29745 PyObject *resultobj = 0;
29746 wxHeaderButtonParams *result = 0 ;
29747
29748 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
29749 {
29750 PyThreadState* __tstate = wxPyBeginAllowThreads();
29751 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
29752 wxPyEndAllowThreads(__tstate);
29753 if (PyErr_Occurred()) SWIG_fail;
29754 }
29755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
29756 return resultobj;
29757 fail:
29758 return NULL;
29759 }
29760
29761
29762 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29763 PyObject *resultobj = 0;
29764 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29765 void *argp1 = 0 ;
29766 int res1 = 0 ;
29767 PyObject *swig_obj[1] ;
29768
29769 if (!args) SWIG_fail;
29770 swig_obj[0] = args;
29771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
29772 if (!SWIG_IsOK(res1)) {
29773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29774 }
29775 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29776 {
29777 PyThreadState* __tstate = wxPyBeginAllowThreads();
29778 delete arg1;
29779
29780 wxPyEndAllowThreads(__tstate);
29781 if (PyErr_Occurred()) SWIG_fail;
29782 }
29783 resultobj = SWIG_Py_Void();
29784 return resultobj;
29785 fail:
29786 return NULL;
29787 }
29788
29789
29790 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29791 PyObject *resultobj = 0;
29792 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29793 wxColour *arg2 = (wxColour *) 0 ;
29794 void *argp1 = 0 ;
29795 int res1 = 0 ;
29796 wxColour temp2 ;
29797 PyObject *swig_obj[2] ;
29798
29799 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
29800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29801 if (!SWIG_IsOK(res1)) {
29802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29803 }
29804 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29805 {
29806 arg2 = &temp2;
29807 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29808 }
29809 if (arg1) (arg1)->m_arrowColour = *arg2;
29810
29811 resultobj = SWIG_Py_Void();
29812 return resultobj;
29813 fail:
29814 return NULL;
29815 }
29816
29817
29818 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29819 PyObject *resultobj = 0;
29820 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29821 wxColour *result = 0 ;
29822 void *argp1 = 0 ;
29823 int res1 = 0 ;
29824 PyObject *swig_obj[1] ;
29825
29826 if (!args) SWIG_fail;
29827 swig_obj[0] = args;
29828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29829 if (!SWIG_IsOK(res1)) {
29830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29831 }
29832 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29833 result = (wxColour *)& ((arg1)->m_arrowColour);
29834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29835 return resultobj;
29836 fail:
29837 return NULL;
29838 }
29839
29840
29841 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29842 PyObject *resultobj = 0;
29843 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29844 wxColour *arg2 = (wxColour *) 0 ;
29845 void *argp1 = 0 ;
29846 int res1 = 0 ;
29847 wxColour temp2 ;
29848 PyObject *swig_obj[2] ;
29849
29850 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
29851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29852 if (!SWIG_IsOK(res1)) {
29853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29854 }
29855 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29856 {
29857 arg2 = &temp2;
29858 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29859 }
29860 if (arg1) (arg1)->m_selectionColour = *arg2;
29861
29862 resultobj = SWIG_Py_Void();
29863 return resultobj;
29864 fail:
29865 return NULL;
29866 }
29867
29868
29869 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29870 PyObject *resultobj = 0;
29871 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29872 wxColour *result = 0 ;
29873 void *argp1 = 0 ;
29874 int res1 = 0 ;
29875 PyObject *swig_obj[1] ;
29876
29877 if (!args) SWIG_fail;
29878 swig_obj[0] = args;
29879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29880 if (!SWIG_IsOK(res1)) {
29881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29882 }
29883 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29884 result = (wxColour *)& ((arg1)->m_selectionColour);
29885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29886 return resultobj;
29887 fail:
29888 return NULL;
29889 }
29890
29891
29892 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29893 PyObject *resultobj = 0;
29894 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29895 wxString *arg2 = (wxString *) 0 ;
29896 void *argp1 = 0 ;
29897 int res1 = 0 ;
29898 bool temp2 = false ;
29899 PyObject *swig_obj[2] ;
29900
29901 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
29902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29903 if (!SWIG_IsOK(res1)) {
29904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29905 }
29906 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29907 {
29908 arg2 = wxString_in_helper(swig_obj[1]);
29909 if (arg2 == NULL) SWIG_fail;
29910 temp2 = true;
29911 }
29912 if (arg1) (arg1)->m_labelText = *arg2;
29913
29914 resultobj = SWIG_Py_Void();
29915 {
29916 if (temp2)
29917 delete arg2;
29918 }
29919 return resultobj;
29920 fail:
29921 {
29922 if (temp2)
29923 delete arg2;
29924 }
29925 return NULL;
29926 }
29927
29928
29929 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29930 PyObject *resultobj = 0;
29931 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29932 wxString *result = 0 ;
29933 void *argp1 = 0 ;
29934 int res1 = 0 ;
29935 PyObject *swig_obj[1] ;
29936
29937 if (!args) SWIG_fail;
29938 swig_obj[0] = args;
29939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29940 if (!SWIG_IsOK(res1)) {
29941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29942 }
29943 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29944 result = (wxString *)& ((arg1)->m_labelText);
29945 {
29946 #if wxUSE_UNICODE
29947 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29948 #else
29949 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29950 #endif
29951 }
29952 return resultobj;
29953 fail:
29954 return NULL;
29955 }
29956
29957
29958 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29959 PyObject *resultobj = 0;
29960 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29961 wxFont *arg2 = (wxFont *) 0 ;
29962 void *argp1 = 0 ;
29963 int res1 = 0 ;
29964 void *argp2 = 0 ;
29965 int res2 = 0 ;
29966 PyObject *swig_obj[2] ;
29967
29968 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
29969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29970 if (!SWIG_IsOK(res1)) {
29971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29972 }
29973 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29974 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29975 if (!SWIG_IsOK(res2)) {
29976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
29977 }
29978 arg2 = reinterpret_cast< wxFont * >(argp2);
29979 if (arg1) (arg1)->m_labelFont = *arg2;
29980
29981 resultobj = SWIG_Py_Void();
29982 return resultobj;
29983 fail:
29984 return NULL;
29985 }
29986
29987
29988 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29989 PyObject *resultobj = 0;
29990 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29991 wxFont *result = 0 ;
29992 void *argp1 = 0 ;
29993 int res1 = 0 ;
29994 PyObject *swig_obj[1] ;
29995
29996 if (!args) SWIG_fail;
29997 swig_obj[0] = args;
29998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29999 if (!SWIG_IsOK(res1)) {
30000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30001 }
30002 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30003 result = (wxFont *)& ((arg1)->m_labelFont);
30004 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
30005 return resultobj;
30006 fail:
30007 return NULL;
30008 }
30009
30010
30011 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30012 PyObject *resultobj = 0;
30013 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30014 wxColour *arg2 = (wxColour *) 0 ;
30015 void *argp1 = 0 ;
30016 int res1 = 0 ;
30017 wxColour temp2 ;
30018 PyObject *swig_obj[2] ;
30019
30020 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
30021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30022 if (!SWIG_IsOK(res1)) {
30023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30024 }
30025 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30026 {
30027 arg2 = &temp2;
30028 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30029 }
30030 if (arg1) (arg1)->m_labelColour = *arg2;
30031
30032 resultobj = SWIG_Py_Void();
30033 return resultobj;
30034 fail:
30035 return NULL;
30036 }
30037
30038
30039 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30040 PyObject *resultobj = 0;
30041 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30042 wxColour *result = 0 ;
30043 void *argp1 = 0 ;
30044 int res1 = 0 ;
30045 PyObject *swig_obj[1] ;
30046
30047 if (!args) SWIG_fail;
30048 swig_obj[0] = args;
30049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30050 if (!SWIG_IsOK(res1)) {
30051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30052 }
30053 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30054 result = (wxColour *)& ((arg1)->m_labelColour);
30055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30056 return resultobj;
30057 fail:
30058 return NULL;
30059 }
30060
30061
30062 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30063 PyObject *resultobj = 0;
30064 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30065 wxBitmap *arg2 = (wxBitmap *) 0 ;
30066 void *argp1 = 0 ;
30067 int res1 = 0 ;
30068 void *argp2 = 0 ;
30069 int res2 = 0 ;
30070 PyObject *swig_obj[2] ;
30071
30072 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
30073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30074 if (!SWIG_IsOK(res1)) {
30075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30076 }
30077 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30078 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
30079 if (!SWIG_IsOK(res2)) {
30080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
30081 }
30082 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30083 if (arg1) (arg1)->m_labelBitmap = *arg2;
30084
30085 resultobj = SWIG_Py_Void();
30086 return resultobj;
30087 fail:
30088 return NULL;
30089 }
30090
30091
30092 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30093 PyObject *resultobj = 0;
30094 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30095 wxBitmap *result = 0 ;
30096 void *argp1 = 0 ;
30097 int res1 = 0 ;
30098 PyObject *swig_obj[1] ;
30099
30100 if (!args) SWIG_fail;
30101 swig_obj[0] = args;
30102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30103 if (!SWIG_IsOK(res1)) {
30104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30105 }
30106 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30107 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
30108 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
30109 return resultobj;
30110 fail:
30111 return NULL;
30112 }
30113
30114
30115 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30116 PyObject *resultobj = 0;
30117 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30118 int arg2 ;
30119 void *argp1 = 0 ;
30120 int res1 = 0 ;
30121 int val2 ;
30122 int ecode2 = 0 ;
30123 PyObject *swig_obj[2] ;
30124
30125 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
30126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30127 if (!SWIG_IsOK(res1)) {
30128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30129 }
30130 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30131 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
30132 if (!SWIG_IsOK(ecode2)) {
30133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
30134 }
30135 arg2 = static_cast< int >(val2);
30136 if (arg1) (arg1)->m_labelAlignment = arg2;
30137
30138 resultobj = SWIG_Py_Void();
30139 return resultobj;
30140 fail:
30141 return NULL;
30142 }
30143
30144
30145 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30146 PyObject *resultobj = 0;
30147 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30148 int result;
30149 void *argp1 = 0 ;
30150 int res1 = 0 ;
30151 PyObject *swig_obj[1] ;
30152
30153 if (!args) SWIG_fail;
30154 swig_obj[0] = args;
30155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30156 if (!SWIG_IsOK(res1)) {
30157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30158 }
30159 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30160 result = (int) ((arg1)->m_labelAlignment);
30161 resultobj = SWIG_From_int(static_cast< int >(result));
30162 return resultobj;
30163 fail:
30164 return NULL;
30165 }
30166
30167
30168 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30169 PyObject *obj;
30170 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30171 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
30172 return SWIG_Py_Void();
30173 }
30174
30175 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30176 return SWIG_Python_InitShadowInstance(args);
30177 }
30178
30179 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30180 PyObject *resultobj = 0;
30181 int arg1 ;
30182 int arg2 ;
30183 wxRendererVersion *result = 0 ;
30184 int val1 ;
30185 int ecode1 = 0 ;
30186 int val2 ;
30187 int ecode2 = 0 ;
30188 PyObject * obj0 = 0 ;
30189 PyObject * obj1 = 0 ;
30190 char * kwnames[] = {
30191 (char *) "version_",(char *) "age_", NULL
30192 };
30193
30194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
30195 ecode1 = SWIG_AsVal_int(obj0, &val1);
30196 if (!SWIG_IsOK(ecode1)) {
30197 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
30198 }
30199 arg1 = static_cast< int >(val1);
30200 ecode2 = SWIG_AsVal_int(obj1, &val2);
30201 if (!SWIG_IsOK(ecode2)) {
30202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
30203 }
30204 arg2 = static_cast< int >(val2);
30205 {
30206 PyThreadState* __tstate = wxPyBeginAllowThreads();
30207 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
30208 wxPyEndAllowThreads(__tstate);
30209 if (PyErr_Occurred()) SWIG_fail;
30210 }
30211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
30212 return resultobj;
30213 fail:
30214 return NULL;
30215 }
30216
30217
30218 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30219 PyObject *resultobj = 0;
30220 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30221 void *argp1 = 0 ;
30222 int res1 = 0 ;
30223 PyObject *swig_obj[1] ;
30224
30225 if (!args) SWIG_fail;
30226 swig_obj[0] = args;
30227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
30228 if (!SWIG_IsOK(res1)) {
30229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30230 }
30231 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30232 {
30233 PyThreadState* __tstate = wxPyBeginAllowThreads();
30234 delete arg1;
30235
30236 wxPyEndAllowThreads(__tstate);
30237 if (PyErr_Occurred()) SWIG_fail;
30238 }
30239 resultobj = SWIG_Py_Void();
30240 return resultobj;
30241 fail:
30242 return NULL;
30243 }
30244
30245
30246 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30247 PyObject *resultobj = 0;
30248 wxRendererVersion *arg1 = 0 ;
30249 bool result;
30250 void *argp1 = 0 ;
30251 int res1 = 0 ;
30252 PyObject * obj0 = 0 ;
30253 char * kwnames[] = {
30254 (char *) "ver", NULL
30255 };
30256
30257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
30258 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
30259 if (!SWIG_IsOK(res1)) {
30260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30261 }
30262 if (!argp1) {
30263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30264 }
30265 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30266 {
30267 PyThreadState* __tstate = wxPyBeginAllowThreads();
30268 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
30269 wxPyEndAllowThreads(__tstate);
30270 if (PyErr_Occurred()) SWIG_fail;
30271 }
30272 {
30273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30274 }
30275 return resultobj;
30276 fail:
30277 return NULL;
30278 }
30279
30280
30281 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30282 PyObject *resultobj = 0;
30283 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30284 int result;
30285 void *argp1 = 0 ;
30286 int res1 = 0 ;
30287 PyObject *swig_obj[1] ;
30288
30289 if (!args) SWIG_fail;
30290 swig_obj[0] = args;
30291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30292 if (!SWIG_IsOK(res1)) {
30293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30294 }
30295 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30296 result = (int)(int) ((arg1)->version);
30297 resultobj = SWIG_From_int(static_cast< int >(result));
30298 return resultobj;
30299 fail:
30300 return NULL;
30301 }
30302
30303
30304 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30305 PyObject *resultobj = 0;
30306 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30307 int result;
30308 void *argp1 = 0 ;
30309 int res1 = 0 ;
30310 PyObject *swig_obj[1] ;
30311
30312 if (!args) SWIG_fail;
30313 swig_obj[0] = args;
30314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30315 if (!SWIG_IsOK(res1)) {
30316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30317 }
30318 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30319 result = (int)(int) ((arg1)->age);
30320 resultobj = SWIG_From_int(static_cast< int >(result));
30321 return resultobj;
30322 fail:
30323 return NULL;
30324 }
30325
30326
30327 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30328 PyObject *obj;
30329 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30330 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
30331 return SWIG_Py_Void();
30332 }
30333
30334 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30335 return SWIG_Python_InitShadowInstance(args);
30336 }
30337
30338 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30339 PyObject *resultobj = 0;
30340 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30341 wxWindow *arg2 = (wxWindow *) 0 ;
30342 wxDC *arg3 = 0 ;
30343 wxRect *arg4 = 0 ;
30344 int arg5 = (int) 0 ;
30345 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30346 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30347 void *argp1 = 0 ;
30348 int res1 = 0 ;
30349 void *argp2 = 0 ;
30350 int res2 = 0 ;
30351 void *argp3 = 0 ;
30352 int res3 = 0 ;
30353 wxRect temp4 ;
30354 int val5 ;
30355 int ecode5 = 0 ;
30356 int val6 ;
30357 int ecode6 = 0 ;
30358 void *argp7 = 0 ;
30359 int res7 = 0 ;
30360 PyObject * obj0 = 0 ;
30361 PyObject * obj1 = 0 ;
30362 PyObject * obj2 = 0 ;
30363 PyObject * obj3 = 0 ;
30364 PyObject * obj4 = 0 ;
30365 PyObject * obj5 = 0 ;
30366 PyObject * obj6 = 0 ;
30367 char * kwnames[] = {
30368 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30369 };
30370
30371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30373 if (!SWIG_IsOK(res1)) {
30374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30375 }
30376 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30377 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30378 if (!SWIG_IsOK(res2)) {
30379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30380 }
30381 arg2 = reinterpret_cast< wxWindow * >(argp2);
30382 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30383 if (!SWIG_IsOK(res3)) {
30384 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30385 }
30386 if (!argp3) {
30387 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30388 }
30389 arg3 = reinterpret_cast< wxDC * >(argp3);
30390 {
30391 arg4 = &temp4;
30392 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30393 }
30394 if (obj4) {
30395 ecode5 = SWIG_AsVal_int(obj4, &val5);
30396 if (!SWIG_IsOK(ecode5)) {
30397 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
30398 }
30399 arg5 = static_cast< int >(val5);
30400 }
30401 if (obj5) {
30402 ecode6 = SWIG_AsVal_int(obj5, &val6);
30403 if (!SWIG_IsOK(ecode6)) {
30404 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30405 }
30406 arg6 = static_cast< wxHeaderSortIconType >(val6);
30407 }
30408 if (obj6) {
30409 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30410 if (!SWIG_IsOK(res7)) {
30411 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30412 }
30413 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30414 }
30415 {
30416 PyThreadState* __tstate = wxPyBeginAllowThreads();
30417 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30418 wxPyEndAllowThreads(__tstate);
30419 if (PyErr_Occurred()) SWIG_fail;
30420 }
30421 resultobj = SWIG_Py_Void();
30422 return resultobj;
30423 fail:
30424 return NULL;
30425 }
30426
30427
30428 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30429 PyObject *resultobj = 0;
30430 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30431 wxWindow *arg2 = (wxWindow *) 0 ;
30432 wxDC *arg3 = 0 ;
30433 wxRect *arg4 = 0 ;
30434 int arg5 = (int) 0 ;
30435 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30436 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30437 void *argp1 = 0 ;
30438 int res1 = 0 ;
30439 void *argp2 = 0 ;
30440 int res2 = 0 ;
30441 void *argp3 = 0 ;
30442 int res3 = 0 ;
30443 wxRect temp4 ;
30444 int val5 ;
30445 int ecode5 = 0 ;
30446 int val6 ;
30447 int ecode6 = 0 ;
30448 void *argp7 = 0 ;
30449 int res7 = 0 ;
30450 PyObject * obj0 = 0 ;
30451 PyObject * obj1 = 0 ;
30452 PyObject * obj2 = 0 ;
30453 PyObject * obj3 = 0 ;
30454 PyObject * obj4 = 0 ;
30455 PyObject * obj5 = 0 ;
30456 PyObject * obj6 = 0 ;
30457 char * kwnames[] = {
30458 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30459 };
30460
30461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30463 if (!SWIG_IsOK(res1)) {
30464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30465 }
30466 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30467 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30468 if (!SWIG_IsOK(res2)) {
30469 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
30470 }
30471 arg2 = reinterpret_cast< wxWindow * >(argp2);
30472 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30473 if (!SWIG_IsOK(res3)) {
30474 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30475 }
30476 if (!argp3) {
30477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30478 }
30479 arg3 = reinterpret_cast< wxDC * >(argp3);
30480 {
30481 arg4 = &temp4;
30482 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30483 }
30484 if (obj4) {
30485 ecode5 = SWIG_AsVal_int(obj4, &val5);
30486 if (!SWIG_IsOK(ecode5)) {
30487 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
30488 }
30489 arg5 = static_cast< int >(val5);
30490 }
30491 if (obj5) {
30492 ecode6 = SWIG_AsVal_int(obj5, &val6);
30493 if (!SWIG_IsOK(ecode6)) {
30494 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30495 }
30496 arg6 = static_cast< wxHeaderSortIconType >(val6);
30497 }
30498 if (obj6) {
30499 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30500 if (!SWIG_IsOK(res7)) {
30501 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30502 }
30503 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30504 }
30505 {
30506 PyThreadState* __tstate = wxPyBeginAllowThreads();
30507 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30508 wxPyEndAllowThreads(__tstate);
30509 if (PyErr_Occurred()) SWIG_fail;
30510 }
30511 resultobj = SWIG_Py_Void();
30512 return resultobj;
30513 fail:
30514 return NULL;
30515 }
30516
30517
30518 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30519 PyObject *resultobj = 0;
30520 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30521 wxWindow *arg2 = (wxWindow *) 0 ;
30522 int result;
30523 void *argp1 = 0 ;
30524 int res1 = 0 ;
30525 void *argp2 = 0 ;
30526 int res2 = 0 ;
30527 PyObject * obj0 = 0 ;
30528 PyObject * obj1 = 0 ;
30529 char * kwnames[] = {
30530 (char *) "self",(char *) "win", NULL
30531 };
30532
30533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
30534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30535 if (!SWIG_IsOK(res1)) {
30536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30537 }
30538 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30539 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30540 if (!SWIG_IsOK(res2)) {
30541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
30542 }
30543 arg2 = reinterpret_cast< wxWindow * >(argp2);
30544 {
30545 PyThreadState* __tstate = wxPyBeginAllowThreads();
30546 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
30547 wxPyEndAllowThreads(__tstate);
30548 if (PyErr_Occurred()) SWIG_fail;
30549 }
30550 resultobj = SWIG_From_int(static_cast< int >(result));
30551 return resultobj;
30552 fail:
30553 return NULL;
30554 }
30555
30556
30557 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30558 PyObject *resultobj = 0;
30559 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30560 wxWindow *arg2 = (wxWindow *) 0 ;
30561 wxDC *arg3 = 0 ;
30562 wxRect *arg4 = 0 ;
30563 int arg5 = (int) 0 ;
30564 void *argp1 = 0 ;
30565 int res1 = 0 ;
30566 void *argp2 = 0 ;
30567 int res2 = 0 ;
30568 void *argp3 = 0 ;
30569 int res3 = 0 ;
30570 wxRect temp4 ;
30571 int val5 ;
30572 int ecode5 = 0 ;
30573 PyObject * obj0 = 0 ;
30574 PyObject * obj1 = 0 ;
30575 PyObject * obj2 = 0 ;
30576 PyObject * obj3 = 0 ;
30577 PyObject * obj4 = 0 ;
30578 char * kwnames[] = {
30579 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30580 };
30581
30582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30584 if (!SWIG_IsOK(res1)) {
30585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30586 }
30587 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30588 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30589 if (!SWIG_IsOK(res2)) {
30590 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30591 }
30592 arg2 = reinterpret_cast< wxWindow * >(argp2);
30593 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30594 if (!SWIG_IsOK(res3)) {
30595 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30596 }
30597 if (!argp3) {
30598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30599 }
30600 arg3 = reinterpret_cast< wxDC * >(argp3);
30601 {
30602 arg4 = &temp4;
30603 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30604 }
30605 if (obj4) {
30606 ecode5 = SWIG_AsVal_int(obj4, &val5);
30607 if (!SWIG_IsOK(ecode5)) {
30608 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
30609 }
30610 arg5 = static_cast< int >(val5);
30611 }
30612 {
30613 PyThreadState* __tstate = wxPyBeginAllowThreads();
30614 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30615 wxPyEndAllowThreads(__tstate);
30616 if (PyErr_Occurred()) SWIG_fail;
30617 }
30618 resultobj = SWIG_Py_Void();
30619 return resultobj;
30620 fail:
30621 return NULL;
30622 }
30623
30624
30625 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30626 PyObject *resultobj = 0;
30627 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30628 wxWindow *arg2 = (wxWindow *) 0 ;
30629 wxDC *arg3 = 0 ;
30630 wxRect *arg4 = 0 ;
30631 int arg5 = (int) 0 ;
30632 void *argp1 = 0 ;
30633 int res1 = 0 ;
30634 void *argp2 = 0 ;
30635 int res2 = 0 ;
30636 void *argp3 = 0 ;
30637 int res3 = 0 ;
30638 wxRect temp4 ;
30639 int val5 ;
30640 int ecode5 = 0 ;
30641 PyObject * obj0 = 0 ;
30642 PyObject * obj1 = 0 ;
30643 PyObject * obj2 = 0 ;
30644 PyObject * obj3 = 0 ;
30645 PyObject * obj4 = 0 ;
30646 char * kwnames[] = {
30647 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30648 };
30649
30650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30652 if (!SWIG_IsOK(res1)) {
30653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30654 }
30655 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30656 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30657 if (!SWIG_IsOK(res2)) {
30658 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
30659 }
30660 arg2 = reinterpret_cast< wxWindow * >(argp2);
30661 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30662 if (!SWIG_IsOK(res3)) {
30663 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30664 }
30665 if (!argp3) {
30666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30667 }
30668 arg3 = reinterpret_cast< wxDC * >(argp3);
30669 {
30670 arg4 = &temp4;
30671 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30672 }
30673 if (obj4) {
30674 ecode5 = SWIG_AsVal_int(obj4, &val5);
30675 if (!SWIG_IsOK(ecode5)) {
30676 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
30677 }
30678 arg5 = static_cast< int >(val5);
30679 }
30680 {
30681 PyThreadState* __tstate = wxPyBeginAllowThreads();
30682 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
30683 wxPyEndAllowThreads(__tstate);
30684 if (PyErr_Occurred()) SWIG_fail;
30685 }
30686 resultobj = SWIG_Py_Void();
30687 return resultobj;
30688 fail:
30689 return NULL;
30690 }
30691
30692
30693 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30694 PyObject *resultobj = 0;
30695 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30696 wxWindow *arg2 = (wxWindow *) 0 ;
30697 wxDC *arg3 = 0 ;
30698 wxSize *arg4 = 0 ;
30699 int arg5 ;
30700 wxOrientation arg6 ;
30701 int arg7 = (int) 0 ;
30702 void *argp1 = 0 ;
30703 int res1 = 0 ;
30704 void *argp2 = 0 ;
30705 int res2 = 0 ;
30706 void *argp3 = 0 ;
30707 int res3 = 0 ;
30708 wxSize temp4 ;
30709 int val5 ;
30710 int ecode5 = 0 ;
30711 int val6 ;
30712 int ecode6 = 0 ;
30713 int val7 ;
30714 int ecode7 = 0 ;
30715 PyObject * obj0 = 0 ;
30716 PyObject * obj1 = 0 ;
30717 PyObject * obj2 = 0 ;
30718 PyObject * obj3 = 0 ;
30719 PyObject * obj4 = 0 ;
30720 PyObject * obj5 = 0 ;
30721 PyObject * obj6 = 0 ;
30722 char * kwnames[] = {
30723 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
30724 };
30725
30726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30728 if (!SWIG_IsOK(res1)) {
30729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30730 }
30731 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30732 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30733 if (!SWIG_IsOK(res2)) {
30734 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
30735 }
30736 arg2 = reinterpret_cast< wxWindow * >(argp2);
30737 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30738 if (!SWIG_IsOK(res3)) {
30739 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30740 }
30741 if (!argp3) {
30742 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30743 }
30744 arg3 = reinterpret_cast< wxDC * >(argp3);
30745 {
30746 arg4 = &temp4;
30747 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30748 }
30749 ecode5 = SWIG_AsVal_int(obj4, &val5);
30750 if (!SWIG_IsOK(ecode5)) {
30751 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
30752 }
30753 arg5 = static_cast< int >(val5);
30754 ecode6 = SWIG_AsVal_int(obj5, &val6);
30755 if (!SWIG_IsOK(ecode6)) {
30756 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
30757 }
30758 arg6 = static_cast< wxOrientation >(val6);
30759 if (obj6) {
30760 ecode7 = SWIG_AsVal_int(obj6, &val7);
30761 if (!SWIG_IsOK(ecode7)) {
30762 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
30763 }
30764 arg7 = static_cast< int >(val7);
30765 }
30766 {
30767 PyThreadState* __tstate = wxPyBeginAllowThreads();
30768 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
30769 wxPyEndAllowThreads(__tstate);
30770 if (PyErr_Occurred()) SWIG_fail;
30771 }
30772 resultobj = SWIG_Py_Void();
30773 return resultobj;
30774 fail:
30775 return NULL;
30776 }
30777
30778
30779 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30780 PyObject *resultobj = 0;
30781 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30782 wxWindow *arg2 = (wxWindow *) 0 ;
30783 wxDC *arg3 = 0 ;
30784 wxRect *arg4 = 0 ;
30785 int arg5 = (int) 0 ;
30786 void *argp1 = 0 ;
30787 int res1 = 0 ;
30788 void *argp2 = 0 ;
30789 int res2 = 0 ;
30790 void *argp3 = 0 ;
30791 int res3 = 0 ;
30792 wxRect temp4 ;
30793 int val5 ;
30794 int ecode5 = 0 ;
30795 PyObject * obj0 = 0 ;
30796 PyObject * obj1 = 0 ;
30797 PyObject * obj2 = 0 ;
30798 PyObject * obj3 = 0 ;
30799 PyObject * obj4 = 0 ;
30800 char * kwnames[] = {
30801 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30802 };
30803
30804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30806 if (!SWIG_IsOK(res1)) {
30807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30808 }
30809 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30810 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30811 if (!SWIG_IsOK(res2)) {
30812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30813 }
30814 arg2 = reinterpret_cast< wxWindow * >(argp2);
30815 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30816 if (!SWIG_IsOK(res3)) {
30817 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30818 }
30819 if (!argp3) {
30820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30821 }
30822 arg3 = reinterpret_cast< wxDC * >(argp3);
30823 {
30824 arg4 = &temp4;
30825 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30826 }
30827 if (obj4) {
30828 ecode5 = SWIG_AsVal_int(obj4, &val5);
30829 if (!SWIG_IsOK(ecode5)) {
30830 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
30831 }
30832 arg5 = static_cast< int >(val5);
30833 }
30834 {
30835 PyThreadState* __tstate = wxPyBeginAllowThreads();
30836 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30837 wxPyEndAllowThreads(__tstate);
30838 if (PyErr_Occurred()) SWIG_fail;
30839 }
30840 resultobj = SWIG_Py_Void();
30841 return resultobj;
30842 fail:
30843 return NULL;
30844 }
30845
30846
30847 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30848 PyObject *resultobj = 0;
30849 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30850 wxWindow *arg2 = (wxWindow *) 0 ;
30851 wxDC *arg3 = 0 ;
30852 wxRect *arg4 = 0 ;
30853 int arg5 = (int) 0 ;
30854 void *argp1 = 0 ;
30855 int res1 = 0 ;
30856 void *argp2 = 0 ;
30857 int res2 = 0 ;
30858 void *argp3 = 0 ;
30859 int res3 = 0 ;
30860 wxRect temp4 ;
30861 int val5 ;
30862 int ecode5 = 0 ;
30863 PyObject * obj0 = 0 ;
30864 PyObject * obj1 = 0 ;
30865 PyObject * obj2 = 0 ;
30866 PyObject * obj3 = 0 ;
30867 PyObject * obj4 = 0 ;
30868 char * kwnames[] = {
30869 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30870 };
30871
30872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30874 if (!SWIG_IsOK(res1)) {
30875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30876 }
30877 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30878 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30879 if (!SWIG_IsOK(res2)) {
30880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
30881 }
30882 arg2 = reinterpret_cast< wxWindow * >(argp2);
30883 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30884 if (!SWIG_IsOK(res3)) {
30885 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30886 }
30887 if (!argp3) {
30888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30889 }
30890 arg3 = reinterpret_cast< wxDC * >(argp3);
30891 {
30892 arg4 = &temp4;
30893 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30894 }
30895 if (obj4) {
30896 ecode5 = SWIG_AsVal_int(obj4, &val5);
30897 if (!SWIG_IsOK(ecode5)) {
30898 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
30899 }
30900 arg5 = static_cast< int >(val5);
30901 }
30902 {
30903 PyThreadState* __tstate = wxPyBeginAllowThreads();
30904 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
30905 wxPyEndAllowThreads(__tstate);
30906 if (PyErr_Occurred()) SWIG_fail;
30907 }
30908 resultobj = SWIG_Py_Void();
30909 return resultobj;
30910 fail:
30911 return NULL;
30912 }
30913
30914
30915 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30916 PyObject *resultobj = 0;
30917 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30918 wxWindow *arg2 = (wxWindow *) 0 ;
30919 wxDC *arg3 = 0 ;
30920 wxRect *arg4 = 0 ;
30921 int arg5 = (int) 0 ;
30922 void *argp1 = 0 ;
30923 int res1 = 0 ;
30924 void *argp2 = 0 ;
30925 int res2 = 0 ;
30926 void *argp3 = 0 ;
30927 int res3 = 0 ;
30928 wxRect temp4 ;
30929 int val5 ;
30930 int ecode5 = 0 ;
30931 PyObject * obj0 = 0 ;
30932 PyObject * obj1 = 0 ;
30933 PyObject * obj2 = 0 ;
30934 PyObject * obj3 = 0 ;
30935 PyObject * obj4 = 0 ;
30936 char * kwnames[] = {
30937 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30938 };
30939
30940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30942 if (!SWIG_IsOK(res1)) {
30943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30944 }
30945 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30946 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30947 if (!SWIG_IsOK(res2)) {
30948 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
30949 }
30950 arg2 = reinterpret_cast< wxWindow * >(argp2);
30951 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30952 if (!SWIG_IsOK(res3)) {
30953 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30954 }
30955 if (!argp3) {
30956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30957 }
30958 arg3 = reinterpret_cast< wxDC * >(argp3);
30959 {
30960 arg4 = &temp4;
30961 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30962 }
30963 if (obj4) {
30964 ecode5 = SWIG_AsVal_int(obj4, &val5);
30965 if (!SWIG_IsOK(ecode5)) {
30966 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
30967 }
30968 arg5 = static_cast< int >(val5);
30969 }
30970 {
30971 PyThreadState* __tstate = wxPyBeginAllowThreads();
30972 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
30973 wxPyEndAllowThreads(__tstate);
30974 if (PyErr_Occurred()) SWIG_fail;
30975 }
30976 resultobj = SWIG_Py_Void();
30977 return resultobj;
30978 fail:
30979 return NULL;
30980 }
30981
30982
30983 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30984 PyObject *resultobj = 0;
30985 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30986 wxWindow *arg2 = (wxWindow *) 0 ;
30987 wxDC *arg3 = 0 ;
30988 wxRect *arg4 = 0 ;
30989 int arg5 = (int) 0 ;
30990 void *argp1 = 0 ;
30991 int res1 = 0 ;
30992 void *argp2 = 0 ;
30993 int res2 = 0 ;
30994 void *argp3 = 0 ;
30995 int res3 = 0 ;
30996 wxRect temp4 ;
30997 int val5 ;
30998 int ecode5 = 0 ;
30999 PyObject * obj0 = 0 ;
31000 PyObject * obj1 = 0 ;
31001 PyObject * obj2 = 0 ;
31002 PyObject * obj3 = 0 ;
31003 PyObject * obj4 = 0 ;
31004 char * kwnames[] = {
31005 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31006 };
31007
31008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31010 if (!SWIG_IsOK(res1)) {
31011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31012 }
31013 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31014 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31015 if (!SWIG_IsOK(res2)) {
31016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31017 }
31018 arg2 = reinterpret_cast< wxWindow * >(argp2);
31019 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31020 if (!SWIG_IsOK(res3)) {
31021 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31022 }
31023 if (!argp3) {
31024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31025 }
31026 arg3 = reinterpret_cast< wxDC * >(argp3);
31027 {
31028 arg4 = &temp4;
31029 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31030 }
31031 if (obj4) {
31032 ecode5 = SWIG_AsVal_int(obj4, &val5);
31033 if (!SWIG_IsOK(ecode5)) {
31034 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
31035 }
31036 arg5 = static_cast< int >(val5);
31037 }
31038 {
31039 PyThreadState* __tstate = wxPyBeginAllowThreads();
31040 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31041 wxPyEndAllowThreads(__tstate);
31042 if (PyErr_Occurred()) SWIG_fail;
31043 }
31044 resultobj = SWIG_Py_Void();
31045 return resultobj;
31046 fail:
31047 return NULL;
31048 }
31049
31050
31051 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31052 PyObject *resultobj = 0;
31053 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31054 wxWindow *arg2 = (wxWindow *) 0 ;
31055 wxDC *arg3 = 0 ;
31056 wxRect *arg4 = 0 ;
31057 int arg5 = (int) 0 ;
31058 void *argp1 = 0 ;
31059 int res1 = 0 ;
31060 void *argp2 = 0 ;
31061 int res2 = 0 ;
31062 void *argp3 = 0 ;
31063 int res3 = 0 ;
31064 wxRect temp4 ;
31065 int val5 ;
31066 int ecode5 = 0 ;
31067 PyObject * obj0 = 0 ;
31068 PyObject * obj1 = 0 ;
31069 PyObject * obj2 = 0 ;
31070 PyObject * obj3 = 0 ;
31071 PyObject * obj4 = 0 ;
31072 char * kwnames[] = {
31073 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31074 };
31075
31076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31078 if (!SWIG_IsOK(res1)) {
31079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31080 }
31081 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31082 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31083 if (!SWIG_IsOK(res2)) {
31084 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
31085 }
31086 arg2 = reinterpret_cast< wxWindow * >(argp2);
31087 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31088 if (!SWIG_IsOK(res3)) {
31089 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31090 }
31091 if (!argp3) {
31092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31093 }
31094 arg3 = reinterpret_cast< wxDC * >(argp3);
31095 {
31096 arg4 = &temp4;
31097 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31098 }
31099 if (obj4) {
31100 ecode5 = SWIG_AsVal_int(obj4, &val5);
31101 if (!SWIG_IsOK(ecode5)) {
31102 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
31103 }
31104 arg5 = static_cast< int >(val5);
31105 }
31106 {
31107 PyThreadState* __tstate = wxPyBeginAllowThreads();
31108 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
31109 wxPyEndAllowThreads(__tstate);
31110 if (PyErr_Occurred()) SWIG_fail;
31111 }
31112 resultobj = SWIG_Py_Void();
31113 return resultobj;
31114 fail:
31115 return NULL;
31116 }
31117
31118
31119 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31120 PyObject *resultobj = 0;
31121 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31122 wxWindow *arg2 = (wxWindow *) 0 ;
31123 SwigValueWrapper<wxSplitterRenderParams > result;
31124 void *argp1 = 0 ;
31125 int res1 = 0 ;
31126 void *argp2 = 0 ;
31127 int res2 = 0 ;
31128 PyObject * obj0 = 0 ;
31129 PyObject * obj1 = 0 ;
31130 char * kwnames[] = {
31131 (char *) "self",(char *) "win", NULL
31132 };
31133
31134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
31135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31136 if (!SWIG_IsOK(res1)) {
31137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31138 }
31139 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31140 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31141 if (!SWIG_IsOK(res2)) {
31142 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
31143 }
31144 arg2 = reinterpret_cast< wxWindow * >(argp2);
31145 {
31146 PyThreadState* __tstate = wxPyBeginAllowThreads();
31147 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
31148 wxPyEndAllowThreads(__tstate);
31149 if (PyErr_Occurred()) SWIG_fail;
31150 }
31151 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
31152 return resultobj;
31153 fail:
31154 return NULL;
31155 }
31156
31157
31158 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31159 PyObject *resultobj = 0;
31160 wxRendererNative *result = 0 ;
31161
31162 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
31163 {
31164 if (!wxPyCheckForApp()) SWIG_fail;
31165 PyThreadState* __tstate = wxPyBeginAllowThreads();
31166 {
31167 wxRendererNative &_result_ref = wxRendererNative::Get();
31168 result = (wxRendererNative *) &_result_ref;
31169 }
31170 wxPyEndAllowThreads(__tstate);
31171 if (PyErr_Occurred()) SWIG_fail;
31172 }
31173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31174 return resultobj;
31175 fail:
31176 return NULL;
31177 }
31178
31179
31180 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31181 PyObject *resultobj = 0;
31182 wxRendererNative *result = 0 ;
31183
31184 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
31185 {
31186 if (!wxPyCheckForApp()) SWIG_fail;
31187 PyThreadState* __tstate = wxPyBeginAllowThreads();
31188 {
31189 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
31190 result = (wxRendererNative *) &_result_ref;
31191 }
31192 wxPyEndAllowThreads(__tstate);
31193 if (PyErr_Occurred()) SWIG_fail;
31194 }
31195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31196 return resultobj;
31197 fail:
31198 return NULL;
31199 }
31200
31201
31202 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31203 PyObject *resultobj = 0;
31204 wxRendererNative *result = 0 ;
31205
31206 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
31207 {
31208 if (!wxPyCheckForApp()) SWIG_fail;
31209 PyThreadState* __tstate = wxPyBeginAllowThreads();
31210 {
31211 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
31212 result = (wxRendererNative *) &_result_ref;
31213 }
31214 wxPyEndAllowThreads(__tstate);
31215 if (PyErr_Occurred()) SWIG_fail;
31216 }
31217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31218 return resultobj;
31219 fail:
31220 return NULL;
31221 }
31222
31223
31224 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31225 PyObject *resultobj = 0;
31226 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31227 wxRendererNative *result = 0 ;
31228 void *argp1 = 0 ;
31229 int res1 = 0 ;
31230 PyObject * obj0 = 0 ;
31231 char * kwnames[] = {
31232 (char *) "renderer", NULL
31233 };
31234
31235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
31236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31237 if (!SWIG_IsOK(res1)) {
31238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31239 }
31240 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31241 {
31242 if (!wxPyCheckForApp()) SWIG_fail;
31243 PyThreadState* __tstate = wxPyBeginAllowThreads();
31244 result = (wxRendererNative *)wxRendererNative::Set(arg1);
31245 wxPyEndAllowThreads(__tstate);
31246 if (PyErr_Occurred()) SWIG_fail;
31247 }
31248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31249 return resultobj;
31250 fail:
31251 return NULL;
31252 }
31253
31254
31255 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31256 PyObject *resultobj = 0;
31257 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31258 SwigValueWrapper<wxRendererVersion > result;
31259 void *argp1 = 0 ;
31260 int res1 = 0 ;
31261 PyObject *swig_obj[1] ;
31262
31263 if (!args) SWIG_fail;
31264 swig_obj[0] = args;
31265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31266 if (!SWIG_IsOK(res1)) {
31267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
31268 }
31269 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31270 {
31271 PyThreadState* __tstate = wxPyBeginAllowThreads();
31272 result = ((wxRendererNative const *)arg1)->GetVersion();
31273 wxPyEndAllowThreads(__tstate);
31274 if (PyErr_Occurred()) SWIG_fail;
31275 }
31276 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
31277 return resultobj;
31278 fail:
31279 return NULL;
31280 }
31281
31282
31283 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31284 PyObject *obj;
31285 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31286 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
31287 return SWIG_Py_Void();
31288 }
31289
31290 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31291 PyObject *resultobj = 0;
31292 wxPseudoDC *result = 0 ;
31293
31294 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
31295 {
31296 PyThreadState* __tstate = wxPyBeginAllowThreads();
31297 result = (wxPseudoDC *)new wxPseudoDC();
31298 wxPyEndAllowThreads(__tstate);
31299 if (PyErr_Occurred()) SWIG_fail;
31300 }
31301 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
31302 return resultobj;
31303 fail:
31304 return NULL;
31305 }
31306
31307
31308 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31309 PyObject *resultobj = 0;
31310 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31311 void *argp1 = 0 ;
31312 int res1 = 0 ;
31313 PyObject *swig_obj[1] ;
31314
31315 if (!args) SWIG_fail;
31316 swig_obj[0] = args;
31317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31318 if (!SWIG_IsOK(res1)) {
31319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31320 }
31321 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31322 {
31323 PyThreadState* __tstate = wxPyBeginAllowThreads();
31324 (arg1)->BeginDrawing();
31325 wxPyEndAllowThreads(__tstate);
31326 if (PyErr_Occurred()) SWIG_fail;
31327 }
31328 resultobj = SWIG_Py_Void();
31329 return resultobj;
31330 fail:
31331 return NULL;
31332 }
31333
31334
31335 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31336 PyObject *resultobj = 0;
31337 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31338 void *argp1 = 0 ;
31339 int res1 = 0 ;
31340 PyObject *swig_obj[1] ;
31341
31342 if (!args) SWIG_fail;
31343 swig_obj[0] = args;
31344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31345 if (!SWIG_IsOK(res1)) {
31346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31347 }
31348 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31349 {
31350 PyThreadState* __tstate = wxPyBeginAllowThreads();
31351 (arg1)->EndDrawing();
31352 wxPyEndAllowThreads(__tstate);
31353 if (PyErr_Occurred()) SWIG_fail;
31354 }
31355 resultobj = SWIG_Py_Void();
31356 return resultobj;
31357 fail:
31358 return NULL;
31359 }
31360
31361
31362 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31363 PyObject *resultobj = 0;
31364 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31365 void *argp1 = 0 ;
31366 int res1 = 0 ;
31367 PyObject *swig_obj[1] ;
31368
31369 if (!args) SWIG_fail;
31370 swig_obj[0] = args;
31371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
31372 if (!SWIG_IsOK(res1)) {
31373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31374 }
31375 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31376 {
31377 PyThreadState* __tstate = wxPyBeginAllowThreads();
31378 delete arg1;
31379
31380 wxPyEndAllowThreads(__tstate);
31381 if (PyErr_Occurred()) SWIG_fail;
31382 }
31383 resultobj = SWIG_Py_Void();
31384 return resultobj;
31385 fail:
31386 return NULL;
31387 }
31388
31389
31390 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31391 PyObject *resultobj = 0;
31392 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31393 void *argp1 = 0 ;
31394 int res1 = 0 ;
31395 PyObject *swig_obj[1] ;
31396
31397 if (!args) SWIG_fail;
31398 swig_obj[0] = args;
31399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31400 if (!SWIG_IsOK(res1)) {
31401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31402 }
31403 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31404 {
31405 PyThreadState* __tstate = wxPyBeginAllowThreads();
31406 (arg1)->RemoveAll();
31407 wxPyEndAllowThreads(__tstate);
31408 if (PyErr_Occurred()) SWIG_fail;
31409 }
31410 resultobj = SWIG_Py_Void();
31411 return resultobj;
31412 fail:
31413 return NULL;
31414 }
31415
31416
31417 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31418 PyObject *resultobj = 0;
31419 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31420 int result;
31421 void *argp1 = 0 ;
31422 int res1 = 0 ;
31423 PyObject *swig_obj[1] ;
31424
31425 if (!args) SWIG_fail;
31426 swig_obj[0] = args;
31427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31428 if (!SWIG_IsOK(res1)) {
31429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31430 }
31431 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31432 {
31433 PyThreadState* __tstate = wxPyBeginAllowThreads();
31434 result = (int)(arg1)->GetLen();
31435 wxPyEndAllowThreads(__tstate);
31436 if (PyErr_Occurred()) SWIG_fail;
31437 }
31438 resultobj = SWIG_From_int(static_cast< int >(result));
31439 return resultobj;
31440 fail:
31441 return NULL;
31442 }
31443
31444
31445 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31446 PyObject *resultobj = 0;
31447 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31448 int arg2 ;
31449 void *argp1 = 0 ;
31450 int res1 = 0 ;
31451 int val2 ;
31452 int ecode2 = 0 ;
31453 PyObject * obj0 = 0 ;
31454 PyObject * obj1 = 0 ;
31455 char * kwnames[] = {
31456 (char *) "self",(char *) "id", NULL
31457 };
31458
31459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
31460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31461 if (!SWIG_IsOK(res1)) {
31462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31463 }
31464 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31465 ecode2 = SWIG_AsVal_int(obj1, &val2);
31466 if (!SWIG_IsOK(ecode2)) {
31467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
31468 }
31469 arg2 = static_cast< int >(val2);
31470 {
31471 PyThreadState* __tstate = wxPyBeginAllowThreads();
31472 (arg1)->SetId(arg2);
31473 wxPyEndAllowThreads(__tstate);
31474 if (PyErr_Occurred()) SWIG_fail;
31475 }
31476 resultobj = SWIG_Py_Void();
31477 return resultobj;
31478 fail:
31479 return NULL;
31480 }
31481
31482
31483 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31484 PyObject *resultobj = 0;
31485 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31486 int arg2 ;
31487 void *argp1 = 0 ;
31488 int res1 = 0 ;
31489 int val2 ;
31490 int ecode2 = 0 ;
31491 PyObject * obj0 = 0 ;
31492 PyObject * obj1 = 0 ;
31493 char * kwnames[] = {
31494 (char *) "self",(char *) "id", NULL
31495 };
31496
31497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
31498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31499 if (!SWIG_IsOK(res1)) {
31500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31501 }
31502 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31503 ecode2 = SWIG_AsVal_int(obj1, &val2);
31504 if (!SWIG_IsOK(ecode2)) {
31505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
31506 }
31507 arg2 = static_cast< int >(val2);
31508 {
31509 PyThreadState* __tstate = wxPyBeginAllowThreads();
31510 (arg1)->ClearId(arg2);
31511 wxPyEndAllowThreads(__tstate);
31512 if (PyErr_Occurred()) SWIG_fail;
31513 }
31514 resultobj = SWIG_Py_Void();
31515 return resultobj;
31516 fail:
31517 return NULL;
31518 }
31519
31520
31521 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31522 PyObject *resultobj = 0;
31523 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31524 int arg2 ;
31525 void *argp1 = 0 ;
31526 int res1 = 0 ;
31527 int val2 ;
31528 int ecode2 = 0 ;
31529 PyObject * obj0 = 0 ;
31530 PyObject * obj1 = 0 ;
31531 char * kwnames[] = {
31532 (char *) "self",(char *) "id", NULL
31533 };
31534
31535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
31536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31537 if (!SWIG_IsOK(res1)) {
31538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31539 }
31540 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31541 ecode2 = SWIG_AsVal_int(obj1, &val2);
31542 if (!SWIG_IsOK(ecode2)) {
31543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
31544 }
31545 arg2 = static_cast< int >(val2);
31546 {
31547 PyThreadState* __tstate = wxPyBeginAllowThreads();
31548 (arg1)->RemoveId(arg2);
31549 wxPyEndAllowThreads(__tstate);
31550 if (PyErr_Occurred()) SWIG_fail;
31551 }
31552 resultobj = SWIG_Py_Void();
31553 return resultobj;
31554 fail:
31555 return NULL;
31556 }
31557
31558
31559 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31560 PyObject *resultobj = 0;
31561 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31562 int arg2 ;
31563 int arg3 ;
31564 int arg4 ;
31565 void *argp1 = 0 ;
31566 int res1 = 0 ;
31567 int val2 ;
31568 int ecode2 = 0 ;
31569 int val3 ;
31570 int ecode3 = 0 ;
31571 int val4 ;
31572 int ecode4 = 0 ;
31573 PyObject * obj0 = 0 ;
31574 PyObject * obj1 = 0 ;
31575 PyObject * obj2 = 0 ;
31576 PyObject * obj3 = 0 ;
31577 char * kwnames[] = {
31578 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
31579 };
31580
31581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31583 if (!SWIG_IsOK(res1)) {
31584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31585 }
31586 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31587 ecode2 = SWIG_AsVal_int(obj1, &val2);
31588 if (!SWIG_IsOK(ecode2)) {
31589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
31590 }
31591 arg2 = static_cast< int >(val2);
31592 ecode3 = SWIG_AsVal_int(obj2, &val3);
31593 if (!SWIG_IsOK(ecode3)) {
31594 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
31595 }
31596 arg3 = static_cast< int >(val3);
31597 ecode4 = SWIG_AsVal_int(obj3, &val4);
31598 if (!SWIG_IsOK(ecode4)) {
31599 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
31600 }
31601 arg4 = static_cast< int >(val4);
31602 {
31603 PyThreadState* __tstate = wxPyBeginAllowThreads();
31604 (arg1)->TranslateId(arg2,arg3,arg4);
31605 wxPyEndAllowThreads(__tstate);
31606 if (PyErr_Occurred()) SWIG_fail;
31607 }
31608 resultobj = SWIG_Py_Void();
31609 return resultobj;
31610 fail:
31611 return NULL;
31612 }
31613
31614
31615 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31616 PyObject *resultobj = 0;
31617 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31618 int arg2 ;
31619 bool arg3 = (bool) true ;
31620 void *argp1 = 0 ;
31621 int res1 = 0 ;
31622 int val2 ;
31623 int ecode2 = 0 ;
31624 bool val3 ;
31625 int ecode3 = 0 ;
31626 PyObject * obj0 = 0 ;
31627 PyObject * obj1 = 0 ;
31628 PyObject * obj2 = 0 ;
31629 char * kwnames[] = {
31630 (char *) "self",(char *) "id",(char *) "greyout", NULL
31631 };
31632
31633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31635 if (!SWIG_IsOK(res1)) {
31636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31637 }
31638 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31639 ecode2 = SWIG_AsVal_int(obj1, &val2);
31640 if (!SWIG_IsOK(ecode2)) {
31641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31642 }
31643 arg2 = static_cast< int >(val2);
31644 if (obj2) {
31645 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31646 if (!SWIG_IsOK(ecode3)) {
31647 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
31648 }
31649 arg3 = static_cast< bool >(val3);
31650 }
31651 {
31652 PyThreadState* __tstate = wxPyBeginAllowThreads();
31653 (arg1)->SetIdGreyedOut(arg2,arg3);
31654 wxPyEndAllowThreads(__tstate);
31655 if (PyErr_Occurred()) SWIG_fail;
31656 }
31657 resultobj = SWIG_Py_Void();
31658 return resultobj;
31659 fail:
31660 return NULL;
31661 }
31662
31663
31664 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31665 PyObject *resultobj = 0;
31666 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31667 int arg2 ;
31668 bool result;
31669 void *argp1 = 0 ;
31670 int res1 = 0 ;
31671 int val2 ;
31672 int ecode2 = 0 ;
31673 PyObject * obj0 = 0 ;
31674 PyObject * obj1 = 0 ;
31675 char * kwnames[] = {
31676 (char *) "self",(char *) "id", NULL
31677 };
31678
31679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
31680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31681 if (!SWIG_IsOK(res1)) {
31682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31683 }
31684 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31685 ecode2 = SWIG_AsVal_int(obj1, &val2);
31686 if (!SWIG_IsOK(ecode2)) {
31687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31688 }
31689 arg2 = static_cast< int >(val2);
31690 {
31691 PyThreadState* __tstate = wxPyBeginAllowThreads();
31692 result = (bool)(arg1)->GetIdGreyedOut(arg2);
31693 wxPyEndAllowThreads(__tstate);
31694 if (PyErr_Occurred()) SWIG_fail;
31695 }
31696 {
31697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31698 }
31699 return resultobj;
31700 fail:
31701 return NULL;
31702 }
31703
31704
31705 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31706 PyObject *resultobj = 0;
31707 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31708 int arg2 ;
31709 int arg3 ;
31710 int arg4 = (int) 1 ;
31711 wxColor const &arg5_defvalue = *wxWHITE ;
31712 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
31713 PyObject *result = 0 ;
31714 void *argp1 = 0 ;
31715 int res1 = 0 ;
31716 int val2 ;
31717 int ecode2 = 0 ;
31718 int val3 ;
31719 int ecode3 = 0 ;
31720 int val4 ;
31721 int ecode4 = 0 ;
31722 void *argp5 = 0 ;
31723 int res5 = 0 ;
31724 PyObject * obj0 = 0 ;
31725 PyObject * obj1 = 0 ;
31726 PyObject * obj2 = 0 ;
31727 PyObject * obj3 = 0 ;
31728 PyObject * obj4 = 0 ;
31729 char * kwnames[] = {
31730 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
31731 };
31732
31733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31735 if (!SWIG_IsOK(res1)) {
31736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31737 }
31738 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31739 ecode2 = SWIG_AsVal_int(obj1, &val2);
31740 if (!SWIG_IsOK(ecode2)) {
31741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
31742 }
31743 arg2 = static_cast< int >(val2);
31744 ecode3 = SWIG_AsVal_int(obj2, &val3);
31745 if (!SWIG_IsOK(ecode3)) {
31746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
31747 }
31748 arg3 = static_cast< int >(val3);
31749 if (obj3) {
31750 ecode4 = SWIG_AsVal_int(obj3, &val4);
31751 if (!SWIG_IsOK(ecode4)) {
31752 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
31753 }
31754 arg4 = static_cast< int >(val4);
31755 }
31756 if (obj4) {
31757 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
31758 if (!SWIG_IsOK(res5)) {
31759 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31760 }
31761 if (!argp5) {
31762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31763 }
31764 arg5 = reinterpret_cast< wxColor * >(argp5);
31765 }
31766 {
31767 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
31768 if (PyErr_Occurred()) SWIG_fail;
31769 }
31770 resultobj = result;
31771 return resultobj;
31772 fail:
31773 return NULL;
31774 }
31775
31776
31777 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31778 PyObject *resultobj = 0;
31779 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31780 int arg2 ;
31781 int arg3 ;
31782 PyObject *result = 0 ;
31783 void *argp1 = 0 ;
31784 int res1 = 0 ;
31785 int val2 ;
31786 int ecode2 = 0 ;
31787 int val3 ;
31788 int ecode3 = 0 ;
31789 PyObject * obj0 = 0 ;
31790 PyObject * obj1 = 0 ;
31791 PyObject * obj2 = 0 ;
31792 char * kwnames[] = {
31793 (char *) "self",(char *) "x",(char *) "y", NULL
31794 };
31795
31796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31798 if (!SWIG_IsOK(res1)) {
31799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31800 }
31801 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31802 ecode2 = SWIG_AsVal_int(obj1, &val2);
31803 if (!SWIG_IsOK(ecode2)) {
31804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
31805 }
31806 arg2 = static_cast< int >(val2);
31807 ecode3 = SWIG_AsVal_int(obj2, &val3);
31808 if (!SWIG_IsOK(ecode3)) {
31809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
31810 }
31811 arg3 = static_cast< int >(val3);
31812 {
31813 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
31814 if (PyErr_Occurred()) SWIG_fail;
31815 }
31816 resultobj = result;
31817 return resultobj;
31818 fail:
31819 return NULL;
31820 }
31821
31822
31823 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31824 PyObject *resultobj = 0;
31825 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31826 int arg2 ;
31827 wxDC *arg3 = (wxDC *) 0 ;
31828 void *argp1 = 0 ;
31829 int res1 = 0 ;
31830 int val2 ;
31831 int ecode2 = 0 ;
31832 void *argp3 = 0 ;
31833 int res3 = 0 ;
31834 PyObject * obj0 = 0 ;
31835 PyObject * obj1 = 0 ;
31836 PyObject * obj2 = 0 ;
31837 char * kwnames[] = {
31838 (char *) "self",(char *) "id",(char *) "dc", NULL
31839 };
31840
31841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31843 if (!SWIG_IsOK(res1)) {
31844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31845 }
31846 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31847 ecode2 = SWIG_AsVal_int(obj1, &val2);
31848 if (!SWIG_IsOK(ecode2)) {
31849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
31850 }
31851 arg2 = static_cast< int >(val2);
31852 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
31853 if (!SWIG_IsOK(res3)) {
31854 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
31855 }
31856 arg3 = reinterpret_cast< wxDC * >(argp3);
31857 {
31858 PyThreadState* __tstate = wxPyBeginAllowThreads();
31859 (arg1)->DrawIdToDC(arg2,arg3);
31860 wxPyEndAllowThreads(__tstate);
31861 if (PyErr_Occurred()) SWIG_fail;
31862 }
31863 resultobj = SWIG_Py_Void();
31864 return resultobj;
31865 fail:
31866 return NULL;
31867 }
31868
31869
31870 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31871 PyObject *resultobj = 0;
31872 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31873 int arg2 ;
31874 wxRect *arg3 = 0 ;
31875 void *argp1 = 0 ;
31876 int res1 = 0 ;
31877 int val2 ;
31878 int ecode2 = 0 ;
31879 wxRect temp3 ;
31880 PyObject * obj0 = 0 ;
31881 PyObject * obj1 = 0 ;
31882 PyObject * obj2 = 0 ;
31883 char * kwnames[] = {
31884 (char *) "self",(char *) "id",(char *) "rect", NULL
31885 };
31886
31887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31889 if (!SWIG_IsOK(res1)) {
31890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31891 }
31892 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31893 ecode2 = SWIG_AsVal_int(obj1, &val2);
31894 if (!SWIG_IsOK(ecode2)) {
31895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
31896 }
31897 arg2 = static_cast< int >(val2);
31898 {
31899 arg3 = &temp3;
31900 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31901 }
31902 {
31903 PyThreadState* __tstate = wxPyBeginAllowThreads();
31904 (arg1)->SetIdBounds(arg2,*arg3);
31905 wxPyEndAllowThreads(__tstate);
31906 if (PyErr_Occurred()) SWIG_fail;
31907 }
31908 resultobj = SWIG_Py_Void();
31909 return resultobj;
31910 fail:
31911 return NULL;
31912 }
31913
31914
31915 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31916 PyObject *resultobj = 0;
31917 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31918 int arg2 ;
31919 wxRect result;
31920 void *argp1 = 0 ;
31921 int res1 = 0 ;
31922 int val2 ;
31923 int ecode2 = 0 ;
31924 PyObject * obj0 = 0 ;
31925 PyObject * obj1 = 0 ;
31926 char * kwnames[] = {
31927 (char *) "self",(char *) "id", NULL
31928 };
31929
31930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
31931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31932 if (!SWIG_IsOK(res1)) {
31933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31934 }
31935 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31936 ecode2 = SWIG_AsVal_int(obj1, &val2);
31937 if (!SWIG_IsOK(ecode2)) {
31938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
31939 }
31940 arg2 = static_cast< int >(val2);
31941 {
31942 PyThreadState* __tstate = wxPyBeginAllowThreads();
31943 result = wxPseudoDC_GetIdBounds(arg1,arg2);
31944 wxPyEndAllowThreads(__tstate);
31945 if (PyErr_Occurred()) SWIG_fail;
31946 }
31947 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
31948 return resultobj;
31949 fail:
31950 return NULL;
31951 }
31952
31953
31954 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31955 PyObject *resultobj = 0;
31956 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31957 wxDC *arg2 = (wxDC *) 0 ;
31958 wxRect *arg3 = 0 ;
31959 void *argp1 = 0 ;
31960 int res1 = 0 ;
31961 void *argp2 = 0 ;
31962 int res2 = 0 ;
31963 wxRect temp3 ;
31964 PyObject * obj0 = 0 ;
31965 PyObject * obj1 = 0 ;
31966 PyObject * obj2 = 0 ;
31967 char * kwnames[] = {
31968 (char *) "self",(char *) "dc",(char *) "rect", NULL
31969 };
31970
31971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31973 if (!SWIG_IsOK(res1)) {
31974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31975 }
31976 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31977 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31978 if (!SWIG_IsOK(res2)) {
31979 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
31980 }
31981 arg2 = reinterpret_cast< wxDC * >(argp2);
31982 {
31983 arg3 = &temp3;
31984 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31985 }
31986 {
31987 PyThreadState* __tstate = wxPyBeginAllowThreads();
31988 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
31989 wxPyEndAllowThreads(__tstate);
31990 if (PyErr_Occurred()) SWIG_fail;
31991 }
31992 resultobj = SWIG_Py_Void();
31993 return resultobj;
31994 fail:
31995 return NULL;
31996 }
31997
31998
31999 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32000 PyObject *resultobj = 0;
32001 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32002 wxDC *arg2 = (wxDC *) 0 ;
32003 wxRegion *arg3 = 0 ;
32004 void *argp1 = 0 ;
32005 int res1 = 0 ;
32006 void *argp2 = 0 ;
32007 int res2 = 0 ;
32008 void *argp3 = 0 ;
32009 int res3 = 0 ;
32010 PyObject * obj0 = 0 ;
32011 PyObject * obj1 = 0 ;
32012 PyObject * obj2 = 0 ;
32013 char * kwnames[] = {
32014 (char *) "self",(char *) "dc",(char *) "region", NULL
32015 };
32016
32017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32019 if (!SWIG_IsOK(res1)) {
32020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32021 }
32022 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32023 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32024 if (!SWIG_IsOK(res2)) {
32025 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
32026 }
32027 arg2 = reinterpret_cast< wxDC * >(argp2);
32028 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
32029 if (!SWIG_IsOK(res3)) {
32030 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32031 }
32032 if (!argp3) {
32033 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32034 }
32035 arg3 = reinterpret_cast< wxRegion * >(argp3);
32036 {
32037 PyThreadState* __tstate = wxPyBeginAllowThreads();
32038 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
32039 wxPyEndAllowThreads(__tstate);
32040 if (PyErr_Occurred()) SWIG_fail;
32041 }
32042 resultobj = SWIG_Py_Void();
32043 return resultobj;
32044 fail:
32045 return NULL;
32046 }
32047
32048
32049 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32050 PyObject *resultobj = 0;
32051 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32052 wxDC *arg2 = (wxDC *) 0 ;
32053 void *argp1 = 0 ;
32054 int res1 = 0 ;
32055 void *argp2 = 0 ;
32056 int res2 = 0 ;
32057 PyObject * obj0 = 0 ;
32058 PyObject * obj1 = 0 ;
32059 char * kwnames[] = {
32060 (char *) "self",(char *) "dc", NULL
32061 };
32062
32063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
32064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32065 if (!SWIG_IsOK(res1)) {
32066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32067 }
32068 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32069 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32070 if (!SWIG_IsOK(res2)) {
32071 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
32072 }
32073 arg2 = reinterpret_cast< wxDC * >(argp2);
32074 {
32075 PyThreadState* __tstate = wxPyBeginAllowThreads();
32076 (arg1)->DrawToDC(arg2);
32077 wxPyEndAllowThreads(__tstate);
32078 if (PyErr_Occurred()) SWIG_fail;
32079 }
32080 resultobj = SWIG_Py_Void();
32081 return resultobj;
32082 fail:
32083 return NULL;
32084 }
32085
32086
32087 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32088 PyObject *resultobj = 0;
32089 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32090 int arg2 ;
32091 int arg3 ;
32092 wxColour *arg4 = 0 ;
32093 int arg5 = (int) wxFLOOD_SURFACE ;
32094 void *argp1 = 0 ;
32095 int res1 = 0 ;
32096 int val2 ;
32097 int ecode2 = 0 ;
32098 int val3 ;
32099 int ecode3 = 0 ;
32100 wxColour temp4 ;
32101 int val5 ;
32102 int ecode5 = 0 ;
32103 PyObject * obj0 = 0 ;
32104 PyObject * obj1 = 0 ;
32105 PyObject * obj2 = 0 ;
32106 PyObject * obj3 = 0 ;
32107 PyObject * obj4 = 0 ;
32108 char * kwnames[] = {
32109 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
32110 };
32111
32112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32114 if (!SWIG_IsOK(res1)) {
32115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32116 }
32117 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32118 ecode2 = SWIG_AsVal_int(obj1, &val2);
32119 if (!SWIG_IsOK(ecode2)) {
32120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
32121 }
32122 arg2 = static_cast< int >(val2);
32123 ecode3 = SWIG_AsVal_int(obj2, &val3);
32124 if (!SWIG_IsOK(ecode3)) {
32125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
32126 }
32127 arg3 = static_cast< int >(val3);
32128 {
32129 arg4 = &temp4;
32130 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
32131 }
32132 if (obj4) {
32133 ecode5 = SWIG_AsVal_int(obj4, &val5);
32134 if (!SWIG_IsOK(ecode5)) {
32135 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
32136 }
32137 arg5 = static_cast< int >(val5);
32138 }
32139 {
32140 PyThreadState* __tstate = wxPyBeginAllowThreads();
32141 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
32142 wxPyEndAllowThreads(__tstate);
32143 if (PyErr_Occurred()) SWIG_fail;
32144 }
32145 resultobj = SWIG_Py_Void();
32146 return resultobj;
32147 fail:
32148 return NULL;
32149 }
32150
32151
32152 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32153 PyObject *resultobj = 0;
32154 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32155 wxPoint *arg2 = 0 ;
32156 wxColour *arg3 = 0 ;
32157 int arg4 = (int) wxFLOOD_SURFACE ;
32158 void *argp1 = 0 ;
32159 int res1 = 0 ;
32160 wxPoint temp2 ;
32161 wxColour temp3 ;
32162 int val4 ;
32163 int ecode4 = 0 ;
32164 PyObject * obj0 = 0 ;
32165 PyObject * obj1 = 0 ;
32166 PyObject * obj2 = 0 ;
32167 PyObject * obj3 = 0 ;
32168 char * kwnames[] = {
32169 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
32170 };
32171
32172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32174 if (!SWIG_IsOK(res1)) {
32175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32176 }
32177 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32178 {
32179 arg2 = &temp2;
32180 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32181 }
32182 {
32183 arg3 = &temp3;
32184 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32185 }
32186 if (obj3) {
32187 ecode4 = SWIG_AsVal_int(obj3, &val4);
32188 if (!SWIG_IsOK(ecode4)) {
32189 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
32190 }
32191 arg4 = static_cast< int >(val4);
32192 }
32193 {
32194 PyThreadState* __tstate = wxPyBeginAllowThreads();
32195 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
32196 wxPyEndAllowThreads(__tstate);
32197 if (PyErr_Occurred()) SWIG_fail;
32198 }
32199 resultobj = SWIG_Py_Void();
32200 return resultobj;
32201 fail:
32202 return NULL;
32203 }
32204
32205
32206 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32207 PyObject *resultobj = 0;
32208 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32209 int arg2 ;
32210 int arg3 ;
32211 int arg4 ;
32212 int arg5 ;
32213 void *argp1 = 0 ;
32214 int res1 = 0 ;
32215 int val2 ;
32216 int ecode2 = 0 ;
32217 int val3 ;
32218 int ecode3 = 0 ;
32219 int val4 ;
32220 int ecode4 = 0 ;
32221 int val5 ;
32222 int ecode5 = 0 ;
32223 PyObject * obj0 = 0 ;
32224 PyObject * obj1 = 0 ;
32225 PyObject * obj2 = 0 ;
32226 PyObject * obj3 = 0 ;
32227 PyObject * obj4 = 0 ;
32228 char * kwnames[] = {
32229 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
32230 };
32231
32232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32234 if (!SWIG_IsOK(res1)) {
32235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32236 }
32237 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32238 ecode2 = SWIG_AsVal_int(obj1, &val2);
32239 if (!SWIG_IsOK(ecode2)) {
32240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
32241 }
32242 arg2 = static_cast< int >(val2);
32243 ecode3 = SWIG_AsVal_int(obj2, &val3);
32244 if (!SWIG_IsOK(ecode3)) {
32245 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
32246 }
32247 arg3 = static_cast< int >(val3);
32248 ecode4 = SWIG_AsVal_int(obj3, &val4);
32249 if (!SWIG_IsOK(ecode4)) {
32250 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
32251 }
32252 arg4 = static_cast< int >(val4);
32253 ecode5 = SWIG_AsVal_int(obj4, &val5);
32254 if (!SWIG_IsOK(ecode5)) {
32255 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
32256 }
32257 arg5 = static_cast< int >(val5);
32258 {
32259 PyThreadState* __tstate = wxPyBeginAllowThreads();
32260 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
32261 wxPyEndAllowThreads(__tstate);
32262 if (PyErr_Occurred()) SWIG_fail;
32263 }
32264 resultobj = SWIG_Py_Void();
32265 return resultobj;
32266 fail:
32267 return NULL;
32268 }
32269
32270
32271 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32272 PyObject *resultobj = 0;
32273 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32274 wxPoint *arg2 = 0 ;
32275 wxPoint *arg3 = 0 ;
32276 void *argp1 = 0 ;
32277 int res1 = 0 ;
32278 wxPoint temp2 ;
32279 wxPoint temp3 ;
32280 PyObject * obj0 = 0 ;
32281 PyObject * obj1 = 0 ;
32282 PyObject * obj2 = 0 ;
32283 char * kwnames[] = {
32284 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
32285 };
32286
32287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32289 if (!SWIG_IsOK(res1)) {
32290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32291 }
32292 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32293 {
32294 arg2 = &temp2;
32295 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32296 }
32297 {
32298 arg3 = &temp3;
32299 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32300 }
32301 {
32302 PyThreadState* __tstate = wxPyBeginAllowThreads();
32303 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
32304 wxPyEndAllowThreads(__tstate);
32305 if (PyErr_Occurred()) SWIG_fail;
32306 }
32307 resultobj = SWIG_Py_Void();
32308 return resultobj;
32309 fail:
32310 return NULL;
32311 }
32312
32313
32314 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32315 PyObject *resultobj = 0;
32316 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32317 int arg2 ;
32318 int arg3 ;
32319 void *argp1 = 0 ;
32320 int res1 = 0 ;
32321 int val2 ;
32322 int ecode2 = 0 ;
32323 int val3 ;
32324 int ecode3 = 0 ;
32325 PyObject * obj0 = 0 ;
32326 PyObject * obj1 = 0 ;
32327 PyObject * obj2 = 0 ;
32328 char * kwnames[] = {
32329 (char *) "self",(char *) "x",(char *) "y", NULL
32330 };
32331
32332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32334 if (!SWIG_IsOK(res1)) {
32335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32336 }
32337 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32338 ecode2 = SWIG_AsVal_int(obj1, &val2);
32339 if (!SWIG_IsOK(ecode2)) {
32340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
32341 }
32342 arg2 = static_cast< int >(val2);
32343 ecode3 = SWIG_AsVal_int(obj2, &val3);
32344 if (!SWIG_IsOK(ecode3)) {
32345 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
32346 }
32347 arg3 = static_cast< int >(val3);
32348 {
32349 PyThreadState* __tstate = wxPyBeginAllowThreads();
32350 (arg1)->CrossHair(arg2,arg3);
32351 wxPyEndAllowThreads(__tstate);
32352 if (PyErr_Occurred()) SWIG_fail;
32353 }
32354 resultobj = SWIG_Py_Void();
32355 return resultobj;
32356 fail:
32357 return NULL;
32358 }
32359
32360
32361 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32362 PyObject *resultobj = 0;
32363 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32364 wxPoint *arg2 = 0 ;
32365 void *argp1 = 0 ;
32366 int res1 = 0 ;
32367 wxPoint temp2 ;
32368 PyObject * obj0 = 0 ;
32369 PyObject * obj1 = 0 ;
32370 char * kwnames[] = {
32371 (char *) "self",(char *) "pt", NULL
32372 };
32373
32374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32376 if (!SWIG_IsOK(res1)) {
32377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32378 }
32379 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32380 {
32381 arg2 = &temp2;
32382 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32383 }
32384 {
32385 PyThreadState* __tstate = wxPyBeginAllowThreads();
32386 (arg1)->CrossHair((wxPoint const &)*arg2);
32387 wxPyEndAllowThreads(__tstate);
32388 if (PyErr_Occurred()) SWIG_fail;
32389 }
32390 resultobj = SWIG_Py_Void();
32391 return resultobj;
32392 fail:
32393 return NULL;
32394 }
32395
32396
32397 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32398 PyObject *resultobj = 0;
32399 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32400 int arg2 ;
32401 int arg3 ;
32402 int arg4 ;
32403 int arg5 ;
32404 int arg6 ;
32405 int arg7 ;
32406 void *argp1 = 0 ;
32407 int res1 = 0 ;
32408 int val2 ;
32409 int ecode2 = 0 ;
32410 int val3 ;
32411 int ecode3 = 0 ;
32412 int val4 ;
32413 int ecode4 = 0 ;
32414 int val5 ;
32415 int ecode5 = 0 ;
32416 int val6 ;
32417 int ecode6 = 0 ;
32418 int val7 ;
32419 int ecode7 = 0 ;
32420 PyObject * obj0 = 0 ;
32421 PyObject * obj1 = 0 ;
32422 PyObject * obj2 = 0 ;
32423 PyObject * obj3 = 0 ;
32424 PyObject * obj4 = 0 ;
32425 PyObject * obj5 = 0 ;
32426 PyObject * obj6 = 0 ;
32427 char * kwnames[] = {
32428 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
32429 };
32430
32431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32433 if (!SWIG_IsOK(res1)) {
32434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32435 }
32436 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32437 ecode2 = SWIG_AsVal_int(obj1, &val2);
32438 if (!SWIG_IsOK(ecode2)) {
32439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
32440 }
32441 arg2 = static_cast< int >(val2);
32442 ecode3 = SWIG_AsVal_int(obj2, &val3);
32443 if (!SWIG_IsOK(ecode3)) {
32444 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
32445 }
32446 arg3 = static_cast< int >(val3);
32447 ecode4 = SWIG_AsVal_int(obj3, &val4);
32448 if (!SWIG_IsOK(ecode4)) {
32449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
32450 }
32451 arg4 = static_cast< int >(val4);
32452 ecode5 = SWIG_AsVal_int(obj4, &val5);
32453 if (!SWIG_IsOK(ecode5)) {
32454 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
32455 }
32456 arg5 = static_cast< int >(val5);
32457 ecode6 = SWIG_AsVal_int(obj5, &val6);
32458 if (!SWIG_IsOK(ecode6)) {
32459 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
32460 }
32461 arg6 = static_cast< int >(val6);
32462 ecode7 = SWIG_AsVal_int(obj6, &val7);
32463 if (!SWIG_IsOK(ecode7)) {
32464 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
32465 }
32466 arg7 = static_cast< int >(val7);
32467 {
32468 PyThreadState* __tstate = wxPyBeginAllowThreads();
32469 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
32470 wxPyEndAllowThreads(__tstate);
32471 if (PyErr_Occurred()) SWIG_fail;
32472 }
32473 resultobj = SWIG_Py_Void();
32474 return resultobj;
32475 fail:
32476 return NULL;
32477 }
32478
32479
32480 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32481 PyObject *resultobj = 0;
32482 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32483 wxPoint *arg2 = 0 ;
32484 wxPoint *arg3 = 0 ;
32485 wxPoint *arg4 = 0 ;
32486 void *argp1 = 0 ;
32487 int res1 = 0 ;
32488 wxPoint temp2 ;
32489 wxPoint temp3 ;
32490 wxPoint temp4 ;
32491 PyObject * obj0 = 0 ;
32492 PyObject * obj1 = 0 ;
32493 PyObject * obj2 = 0 ;
32494 PyObject * obj3 = 0 ;
32495 char * kwnames[] = {
32496 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
32497 };
32498
32499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32501 if (!SWIG_IsOK(res1)) {
32502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32503 }
32504 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32505 {
32506 arg2 = &temp2;
32507 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32508 }
32509 {
32510 arg3 = &temp3;
32511 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32512 }
32513 {
32514 arg4 = &temp4;
32515 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32516 }
32517 {
32518 PyThreadState* __tstate = wxPyBeginAllowThreads();
32519 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
32520 wxPyEndAllowThreads(__tstate);
32521 if (PyErr_Occurred()) SWIG_fail;
32522 }
32523 resultobj = SWIG_Py_Void();
32524 return resultobj;
32525 fail:
32526 return NULL;
32527 }
32528
32529
32530 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32531 PyObject *resultobj = 0;
32532 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32533 int arg2 ;
32534 int arg3 ;
32535 int arg4 ;
32536 int arg5 ;
32537 void *argp1 = 0 ;
32538 int res1 = 0 ;
32539 int val2 ;
32540 int ecode2 = 0 ;
32541 int val3 ;
32542 int ecode3 = 0 ;
32543 int val4 ;
32544 int ecode4 = 0 ;
32545 int val5 ;
32546 int ecode5 = 0 ;
32547 PyObject * obj0 = 0 ;
32548 PyObject * obj1 = 0 ;
32549 PyObject * obj2 = 0 ;
32550 PyObject * obj3 = 0 ;
32551 PyObject * obj4 = 0 ;
32552 char * kwnames[] = {
32553 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32554 };
32555
32556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32558 if (!SWIG_IsOK(res1)) {
32559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32560 }
32561 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32562 ecode2 = SWIG_AsVal_int(obj1, &val2);
32563 if (!SWIG_IsOK(ecode2)) {
32564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
32565 }
32566 arg2 = static_cast< int >(val2);
32567 ecode3 = SWIG_AsVal_int(obj2, &val3);
32568 if (!SWIG_IsOK(ecode3)) {
32569 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
32570 }
32571 arg3 = static_cast< int >(val3);
32572 ecode4 = SWIG_AsVal_int(obj3, &val4);
32573 if (!SWIG_IsOK(ecode4)) {
32574 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
32575 }
32576 arg4 = static_cast< int >(val4);
32577 ecode5 = SWIG_AsVal_int(obj4, &val5);
32578 if (!SWIG_IsOK(ecode5)) {
32579 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
32580 }
32581 arg5 = static_cast< int >(val5);
32582 {
32583 PyThreadState* __tstate = wxPyBeginAllowThreads();
32584 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
32585 wxPyEndAllowThreads(__tstate);
32586 if (PyErr_Occurred()) SWIG_fail;
32587 }
32588 resultobj = SWIG_Py_Void();
32589 return resultobj;
32590 fail:
32591 return NULL;
32592 }
32593
32594
32595 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32596 PyObject *resultobj = 0;
32597 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32598 wxRect *arg2 = 0 ;
32599 void *argp1 = 0 ;
32600 int res1 = 0 ;
32601 wxRect temp2 ;
32602 PyObject * obj0 = 0 ;
32603 PyObject * obj1 = 0 ;
32604 char * kwnames[] = {
32605 (char *) "self",(char *) "rect", NULL
32606 };
32607
32608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
32609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32610 if (!SWIG_IsOK(res1)) {
32611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32612 }
32613 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32614 {
32615 arg2 = &temp2;
32616 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32617 }
32618 {
32619 PyThreadState* __tstate = wxPyBeginAllowThreads();
32620 (arg1)->DrawCheckMark((wxRect const &)*arg2);
32621 wxPyEndAllowThreads(__tstate);
32622 if (PyErr_Occurred()) SWIG_fail;
32623 }
32624 resultobj = SWIG_Py_Void();
32625 return resultobj;
32626 fail:
32627 return NULL;
32628 }
32629
32630
32631 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32632 PyObject *resultobj = 0;
32633 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32634 int arg2 ;
32635 int arg3 ;
32636 int arg4 ;
32637 int arg5 ;
32638 double arg6 ;
32639 double arg7 ;
32640 void *argp1 = 0 ;
32641 int res1 = 0 ;
32642 int val2 ;
32643 int ecode2 = 0 ;
32644 int val3 ;
32645 int ecode3 = 0 ;
32646 int val4 ;
32647 int ecode4 = 0 ;
32648 int val5 ;
32649 int ecode5 = 0 ;
32650 double val6 ;
32651 int ecode6 = 0 ;
32652 double val7 ;
32653 int ecode7 = 0 ;
32654 PyObject * obj0 = 0 ;
32655 PyObject * obj1 = 0 ;
32656 PyObject * obj2 = 0 ;
32657 PyObject * obj3 = 0 ;
32658 PyObject * obj4 = 0 ;
32659 PyObject * obj5 = 0 ;
32660 PyObject * obj6 = 0 ;
32661 char * kwnames[] = {
32662 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
32663 };
32664
32665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32667 if (!SWIG_IsOK(res1)) {
32668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32669 }
32670 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32671 ecode2 = SWIG_AsVal_int(obj1, &val2);
32672 if (!SWIG_IsOK(ecode2)) {
32673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
32674 }
32675 arg2 = static_cast< int >(val2);
32676 ecode3 = SWIG_AsVal_int(obj2, &val3);
32677 if (!SWIG_IsOK(ecode3)) {
32678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
32679 }
32680 arg3 = static_cast< int >(val3);
32681 ecode4 = SWIG_AsVal_int(obj3, &val4);
32682 if (!SWIG_IsOK(ecode4)) {
32683 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
32684 }
32685 arg4 = static_cast< int >(val4);
32686 ecode5 = SWIG_AsVal_int(obj4, &val5);
32687 if (!SWIG_IsOK(ecode5)) {
32688 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
32689 }
32690 arg5 = static_cast< int >(val5);
32691 ecode6 = SWIG_AsVal_double(obj5, &val6);
32692 if (!SWIG_IsOK(ecode6)) {
32693 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
32694 }
32695 arg6 = static_cast< double >(val6);
32696 ecode7 = SWIG_AsVal_double(obj6, &val7);
32697 if (!SWIG_IsOK(ecode7)) {
32698 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
32699 }
32700 arg7 = static_cast< double >(val7);
32701 {
32702 PyThreadState* __tstate = wxPyBeginAllowThreads();
32703 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
32704 wxPyEndAllowThreads(__tstate);
32705 if (PyErr_Occurred()) SWIG_fail;
32706 }
32707 resultobj = SWIG_Py_Void();
32708 return resultobj;
32709 fail:
32710 return NULL;
32711 }
32712
32713
32714 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32715 PyObject *resultobj = 0;
32716 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32717 wxPoint *arg2 = 0 ;
32718 wxSize *arg3 = 0 ;
32719 double arg4 ;
32720 double arg5 ;
32721 void *argp1 = 0 ;
32722 int res1 = 0 ;
32723 wxPoint temp2 ;
32724 wxSize temp3 ;
32725 double val4 ;
32726 int ecode4 = 0 ;
32727 double val5 ;
32728 int ecode5 = 0 ;
32729 PyObject * obj0 = 0 ;
32730 PyObject * obj1 = 0 ;
32731 PyObject * obj2 = 0 ;
32732 PyObject * obj3 = 0 ;
32733 PyObject * obj4 = 0 ;
32734 char * kwnames[] = {
32735 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
32736 };
32737
32738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32740 if (!SWIG_IsOK(res1)) {
32741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32742 }
32743 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32744 {
32745 arg2 = &temp2;
32746 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32747 }
32748 {
32749 arg3 = &temp3;
32750 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32751 }
32752 ecode4 = SWIG_AsVal_double(obj3, &val4);
32753 if (!SWIG_IsOK(ecode4)) {
32754 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
32755 }
32756 arg4 = static_cast< double >(val4);
32757 ecode5 = SWIG_AsVal_double(obj4, &val5);
32758 if (!SWIG_IsOK(ecode5)) {
32759 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
32760 }
32761 arg5 = static_cast< double >(val5);
32762 {
32763 PyThreadState* __tstate = wxPyBeginAllowThreads();
32764 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
32765 wxPyEndAllowThreads(__tstate);
32766 if (PyErr_Occurred()) SWIG_fail;
32767 }
32768 resultobj = SWIG_Py_Void();
32769 return resultobj;
32770 fail:
32771 return NULL;
32772 }
32773
32774
32775 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32776 PyObject *resultobj = 0;
32777 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32778 int arg2 ;
32779 int arg3 ;
32780 void *argp1 = 0 ;
32781 int res1 = 0 ;
32782 int val2 ;
32783 int ecode2 = 0 ;
32784 int val3 ;
32785 int ecode3 = 0 ;
32786 PyObject * obj0 = 0 ;
32787 PyObject * obj1 = 0 ;
32788 PyObject * obj2 = 0 ;
32789 char * kwnames[] = {
32790 (char *) "self",(char *) "x",(char *) "y", NULL
32791 };
32792
32793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32795 if (!SWIG_IsOK(res1)) {
32796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32797 }
32798 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32799 ecode2 = SWIG_AsVal_int(obj1, &val2);
32800 if (!SWIG_IsOK(ecode2)) {
32801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
32802 }
32803 arg2 = static_cast< int >(val2);
32804 ecode3 = SWIG_AsVal_int(obj2, &val3);
32805 if (!SWIG_IsOK(ecode3)) {
32806 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
32807 }
32808 arg3 = static_cast< int >(val3);
32809 {
32810 PyThreadState* __tstate = wxPyBeginAllowThreads();
32811 (arg1)->DrawPoint(arg2,arg3);
32812 wxPyEndAllowThreads(__tstate);
32813 if (PyErr_Occurred()) SWIG_fail;
32814 }
32815 resultobj = SWIG_Py_Void();
32816 return resultobj;
32817 fail:
32818 return NULL;
32819 }
32820
32821
32822 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32823 PyObject *resultobj = 0;
32824 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32825 wxPoint *arg2 = 0 ;
32826 void *argp1 = 0 ;
32827 int res1 = 0 ;
32828 wxPoint temp2 ;
32829 PyObject * obj0 = 0 ;
32830 PyObject * obj1 = 0 ;
32831 char * kwnames[] = {
32832 (char *) "self",(char *) "pt", NULL
32833 };
32834
32835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32837 if (!SWIG_IsOK(res1)) {
32838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32839 }
32840 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32841 {
32842 arg2 = &temp2;
32843 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32844 }
32845 {
32846 PyThreadState* __tstate = wxPyBeginAllowThreads();
32847 (arg1)->DrawPoint((wxPoint const &)*arg2);
32848 wxPyEndAllowThreads(__tstate);
32849 if (PyErr_Occurred()) SWIG_fail;
32850 }
32851 resultobj = SWIG_Py_Void();
32852 return resultobj;
32853 fail:
32854 return NULL;
32855 }
32856
32857
32858 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32859 PyObject *resultobj = 0;
32860 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32861 int arg2 ;
32862 int arg3 ;
32863 int arg4 ;
32864 int arg5 ;
32865 void *argp1 = 0 ;
32866 int res1 = 0 ;
32867 int val2 ;
32868 int ecode2 = 0 ;
32869 int val3 ;
32870 int ecode3 = 0 ;
32871 int val4 ;
32872 int ecode4 = 0 ;
32873 int val5 ;
32874 int ecode5 = 0 ;
32875 PyObject * obj0 = 0 ;
32876 PyObject * obj1 = 0 ;
32877 PyObject * obj2 = 0 ;
32878 PyObject * obj3 = 0 ;
32879 PyObject * obj4 = 0 ;
32880 char * kwnames[] = {
32881 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32882 };
32883
32884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32886 if (!SWIG_IsOK(res1)) {
32887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32888 }
32889 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32890 ecode2 = SWIG_AsVal_int(obj1, &val2);
32891 if (!SWIG_IsOK(ecode2)) {
32892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
32893 }
32894 arg2 = static_cast< int >(val2);
32895 ecode3 = SWIG_AsVal_int(obj2, &val3);
32896 if (!SWIG_IsOK(ecode3)) {
32897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
32898 }
32899 arg3 = static_cast< int >(val3);
32900 ecode4 = SWIG_AsVal_int(obj3, &val4);
32901 if (!SWIG_IsOK(ecode4)) {
32902 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
32903 }
32904 arg4 = static_cast< int >(val4);
32905 ecode5 = SWIG_AsVal_int(obj4, &val5);
32906 if (!SWIG_IsOK(ecode5)) {
32907 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
32908 }
32909 arg5 = static_cast< int >(val5);
32910 {
32911 PyThreadState* __tstate = wxPyBeginAllowThreads();
32912 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
32913 wxPyEndAllowThreads(__tstate);
32914 if (PyErr_Occurred()) SWIG_fail;
32915 }
32916 resultobj = SWIG_Py_Void();
32917 return resultobj;
32918 fail:
32919 return NULL;
32920 }
32921
32922
32923 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32924 PyObject *resultobj = 0;
32925 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32926 wxRect *arg2 = 0 ;
32927 void *argp1 = 0 ;
32928 int res1 = 0 ;
32929 wxRect temp2 ;
32930 PyObject * obj0 = 0 ;
32931 PyObject * obj1 = 0 ;
32932 char * kwnames[] = {
32933 (char *) "self",(char *) "rect", NULL
32934 };
32935
32936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
32937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32938 if (!SWIG_IsOK(res1)) {
32939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32940 }
32941 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32942 {
32943 arg2 = &temp2;
32944 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32945 }
32946 {
32947 PyThreadState* __tstate = wxPyBeginAllowThreads();
32948 (arg1)->DrawRectangle((wxRect const &)*arg2);
32949 wxPyEndAllowThreads(__tstate);
32950 if (PyErr_Occurred()) SWIG_fail;
32951 }
32952 resultobj = SWIG_Py_Void();
32953 return resultobj;
32954 fail:
32955 return NULL;
32956 }
32957
32958
32959 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32960 PyObject *resultobj = 0;
32961 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32962 wxPoint *arg2 = 0 ;
32963 wxSize *arg3 = 0 ;
32964 void *argp1 = 0 ;
32965 int res1 = 0 ;
32966 wxPoint temp2 ;
32967 wxSize temp3 ;
32968 PyObject * obj0 = 0 ;
32969 PyObject * obj1 = 0 ;
32970 PyObject * obj2 = 0 ;
32971 char * kwnames[] = {
32972 (char *) "self",(char *) "pt",(char *) "sz", NULL
32973 };
32974
32975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32977 if (!SWIG_IsOK(res1)) {
32978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32979 }
32980 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32981 {
32982 arg2 = &temp2;
32983 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32984 }
32985 {
32986 arg3 = &temp3;
32987 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32988 }
32989 {
32990 PyThreadState* __tstate = wxPyBeginAllowThreads();
32991 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
32992 wxPyEndAllowThreads(__tstate);
32993 if (PyErr_Occurred()) SWIG_fail;
32994 }
32995 resultobj = SWIG_Py_Void();
32996 return resultobj;
32997 fail:
32998 return NULL;
32999 }
33000
33001
33002 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33003 PyObject *resultobj = 0;
33004 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33005 int arg2 ;
33006 int arg3 ;
33007 int arg4 ;
33008 int arg5 ;
33009 double arg6 ;
33010 void *argp1 = 0 ;
33011 int res1 = 0 ;
33012 int val2 ;
33013 int ecode2 = 0 ;
33014 int val3 ;
33015 int ecode3 = 0 ;
33016 int val4 ;
33017 int ecode4 = 0 ;
33018 int val5 ;
33019 int ecode5 = 0 ;
33020 double val6 ;
33021 int ecode6 = 0 ;
33022 PyObject * obj0 = 0 ;
33023 PyObject * obj1 = 0 ;
33024 PyObject * obj2 = 0 ;
33025 PyObject * obj3 = 0 ;
33026 PyObject * obj4 = 0 ;
33027 PyObject * obj5 = 0 ;
33028 char * kwnames[] = {
33029 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
33030 };
33031
33032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33034 if (!SWIG_IsOK(res1)) {
33035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33036 }
33037 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33038 ecode2 = SWIG_AsVal_int(obj1, &val2);
33039 if (!SWIG_IsOK(ecode2)) {
33040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
33041 }
33042 arg2 = static_cast< int >(val2);
33043 ecode3 = SWIG_AsVal_int(obj2, &val3);
33044 if (!SWIG_IsOK(ecode3)) {
33045 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
33046 }
33047 arg3 = static_cast< int >(val3);
33048 ecode4 = SWIG_AsVal_int(obj3, &val4);
33049 if (!SWIG_IsOK(ecode4)) {
33050 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
33051 }
33052 arg4 = static_cast< int >(val4);
33053 ecode5 = SWIG_AsVal_int(obj4, &val5);
33054 if (!SWIG_IsOK(ecode5)) {
33055 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
33056 }
33057 arg5 = static_cast< int >(val5);
33058 ecode6 = SWIG_AsVal_double(obj5, &val6);
33059 if (!SWIG_IsOK(ecode6)) {
33060 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
33061 }
33062 arg6 = static_cast< double >(val6);
33063 {
33064 PyThreadState* __tstate = wxPyBeginAllowThreads();
33065 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
33066 wxPyEndAllowThreads(__tstate);
33067 if (PyErr_Occurred()) SWIG_fail;
33068 }
33069 resultobj = SWIG_Py_Void();
33070 return resultobj;
33071 fail:
33072 return NULL;
33073 }
33074
33075
33076 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33077 PyObject *resultobj = 0;
33078 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33079 wxRect *arg2 = 0 ;
33080 double arg3 ;
33081 void *argp1 = 0 ;
33082 int res1 = 0 ;
33083 wxRect temp2 ;
33084 double val3 ;
33085 int ecode3 = 0 ;
33086 PyObject * obj0 = 0 ;
33087 PyObject * obj1 = 0 ;
33088 PyObject * obj2 = 0 ;
33089 char * kwnames[] = {
33090 (char *) "self",(char *) "r",(char *) "radius", NULL
33091 };
33092
33093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33095 if (!SWIG_IsOK(res1)) {
33096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33097 }
33098 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33099 {
33100 arg2 = &temp2;
33101 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33102 }
33103 ecode3 = SWIG_AsVal_double(obj2, &val3);
33104 if (!SWIG_IsOK(ecode3)) {
33105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
33106 }
33107 arg3 = static_cast< double >(val3);
33108 {
33109 PyThreadState* __tstate = wxPyBeginAllowThreads();
33110 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
33111 wxPyEndAllowThreads(__tstate);
33112 if (PyErr_Occurred()) SWIG_fail;
33113 }
33114 resultobj = SWIG_Py_Void();
33115 return resultobj;
33116 fail:
33117 return NULL;
33118 }
33119
33120
33121 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33122 PyObject *resultobj = 0;
33123 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33124 wxPoint *arg2 = 0 ;
33125 wxSize *arg3 = 0 ;
33126 double arg4 ;
33127 void *argp1 = 0 ;
33128 int res1 = 0 ;
33129 wxPoint temp2 ;
33130 wxSize temp3 ;
33131 double val4 ;
33132 int ecode4 = 0 ;
33133 PyObject * obj0 = 0 ;
33134 PyObject * obj1 = 0 ;
33135 PyObject * obj2 = 0 ;
33136 PyObject * obj3 = 0 ;
33137 char * kwnames[] = {
33138 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
33139 };
33140
33141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33143 if (!SWIG_IsOK(res1)) {
33144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33145 }
33146 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33147 {
33148 arg2 = &temp2;
33149 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33150 }
33151 {
33152 arg3 = &temp3;
33153 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33154 }
33155 ecode4 = SWIG_AsVal_double(obj3, &val4);
33156 if (!SWIG_IsOK(ecode4)) {
33157 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
33158 }
33159 arg4 = static_cast< double >(val4);
33160 {
33161 PyThreadState* __tstate = wxPyBeginAllowThreads();
33162 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
33163 wxPyEndAllowThreads(__tstate);
33164 if (PyErr_Occurred()) SWIG_fail;
33165 }
33166 resultobj = SWIG_Py_Void();
33167 return resultobj;
33168 fail:
33169 return NULL;
33170 }
33171
33172
33173 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33174 PyObject *resultobj = 0;
33175 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33176 int arg2 ;
33177 int arg3 ;
33178 int arg4 ;
33179 void *argp1 = 0 ;
33180 int res1 = 0 ;
33181 int val2 ;
33182 int ecode2 = 0 ;
33183 int val3 ;
33184 int ecode3 = 0 ;
33185 int val4 ;
33186 int ecode4 = 0 ;
33187 PyObject * obj0 = 0 ;
33188 PyObject * obj1 = 0 ;
33189 PyObject * obj2 = 0 ;
33190 PyObject * obj3 = 0 ;
33191 char * kwnames[] = {
33192 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
33193 };
33194
33195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33197 if (!SWIG_IsOK(res1)) {
33198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33199 }
33200 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33201 ecode2 = SWIG_AsVal_int(obj1, &val2);
33202 if (!SWIG_IsOK(ecode2)) {
33203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
33204 }
33205 arg2 = static_cast< int >(val2);
33206 ecode3 = SWIG_AsVal_int(obj2, &val3);
33207 if (!SWIG_IsOK(ecode3)) {
33208 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
33209 }
33210 arg3 = static_cast< int >(val3);
33211 ecode4 = SWIG_AsVal_int(obj3, &val4);
33212 if (!SWIG_IsOK(ecode4)) {
33213 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
33214 }
33215 arg4 = static_cast< int >(val4);
33216 {
33217 PyThreadState* __tstate = wxPyBeginAllowThreads();
33218 (arg1)->DrawCircle(arg2,arg3,arg4);
33219 wxPyEndAllowThreads(__tstate);
33220 if (PyErr_Occurred()) SWIG_fail;
33221 }
33222 resultobj = SWIG_Py_Void();
33223 return resultobj;
33224 fail:
33225 return NULL;
33226 }
33227
33228
33229 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33230 PyObject *resultobj = 0;
33231 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33232 wxPoint *arg2 = 0 ;
33233 int arg3 ;
33234 void *argp1 = 0 ;
33235 int res1 = 0 ;
33236 wxPoint temp2 ;
33237 int val3 ;
33238 int ecode3 = 0 ;
33239 PyObject * obj0 = 0 ;
33240 PyObject * obj1 = 0 ;
33241 PyObject * obj2 = 0 ;
33242 char * kwnames[] = {
33243 (char *) "self",(char *) "pt",(char *) "radius", NULL
33244 };
33245
33246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33248 if (!SWIG_IsOK(res1)) {
33249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33250 }
33251 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33252 {
33253 arg2 = &temp2;
33254 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33255 }
33256 ecode3 = SWIG_AsVal_int(obj2, &val3);
33257 if (!SWIG_IsOK(ecode3)) {
33258 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
33259 }
33260 arg3 = static_cast< int >(val3);
33261 {
33262 PyThreadState* __tstate = wxPyBeginAllowThreads();
33263 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
33264 wxPyEndAllowThreads(__tstate);
33265 if (PyErr_Occurred()) SWIG_fail;
33266 }
33267 resultobj = SWIG_Py_Void();
33268 return resultobj;
33269 fail:
33270 return NULL;
33271 }
33272
33273
33274 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33275 PyObject *resultobj = 0;
33276 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33277 int arg2 ;
33278 int arg3 ;
33279 int arg4 ;
33280 int arg5 ;
33281 void *argp1 = 0 ;
33282 int res1 = 0 ;
33283 int val2 ;
33284 int ecode2 = 0 ;
33285 int val3 ;
33286 int ecode3 = 0 ;
33287 int val4 ;
33288 int ecode4 = 0 ;
33289 int val5 ;
33290 int ecode5 = 0 ;
33291 PyObject * obj0 = 0 ;
33292 PyObject * obj1 = 0 ;
33293 PyObject * obj2 = 0 ;
33294 PyObject * obj3 = 0 ;
33295 PyObject * obj4 = 0 ;
33296 char * kwnames[] = {
33297 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33298 };
33299
33300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33302 if (!SWIG_IsOK(res1)) {
33303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33304 }
33305 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33306 ecode2 = SWIG_AsVal_int(obj1, &val2);
33307 if (!SWIG_IsOK(ecode2)) {
33308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
33309 }
33310 arg2 = static_cast< int >(val2);
33311 ecode3 = SWIG_AsVal_int(obj2, &val3);
33312 if (!SWIG_IsOK(ecode3)) {
33313 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
33314 }
33315 arg3 = static_cast< int >(val3);
33316 ecode4 = SWIG_AsVal_int(obj3, &val4);
33317 if (!SWIG_IsOK(ecode4)) {
33318 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
33319 }
33320 arg4 = static_cast< int >(val4);
33321 ecode5 = SWIG_AsVal_int(obj4, &val5);
33322 if (!SWIG_IsOK(ecode5)) {
33323 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
33324 }
33325 arg5 = static_cast< int >(val5);
33326 {
33327 PyThreadState* __tstate = wxPyBeginAllowThreads();
33328 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
33329 wxPyEndAllowThreads(__tstate);
33330 if (PyErr_Occurred()) SWIG_fail;
33331 }
33332 resultobj = SWIG_Py_Void();
33333 return resultobj;
33334 fail:
33335 return NULL;
33336 }
33337
33338
33339 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33340 PyObject *resultobj = 0;
33341 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33342 wxRect *arg2 = 0 ;
33343 void *argp1 = 0 ;
33344 int res1 = 0 ;
33345 wxRect temp2 ;
33346 PyObject * obj0 = 0 ;
33347 PyObject * obj1 = 0 ;
33348 char * kwnames[] = {
33349 (char *) "self",(char *) "rect", NULL
33350 };
33351
33352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
33353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33354 if (!SWIG_IsOK(res1)) {
33355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33356 }
33357 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33358 {
33359 arg2 = &temp2;
33360 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33361 }
33362 {
33363 PyThreadState* __tstate = wxPyBeginAllowThreads();
33364 (arg1)->DrawEllipse((wxRect const &)*arg2);
33365 wxPyEndAllowThreads(__tstate);
33366 if (PyErr_Occurred()) SWIG_fail;
33367 }
33368 resultobj = SWIG_Py_Void();
33369 return resultobj;
33370 fail:
33371 return NULL;
33372 }
33373
33374
33375 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33376 PyObject *resultobj = 0;
33377 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33378 wxPoint *arg2 = 0 ;
33379 wxSize *arg3 = 0 ;
33380 void *argp1 = 0 ;
33381 int res1 = 0 ;
33382 wxPoint temp2 ;
33383 wxSize temp3 ;
33384 PyObject * obj0 = 0 ;
33385 PyObject * obj1 = 0 ;
33386 PyObject * obj2 = 0 ;
33387 char * kwnames[] = {
33388 (char *) "self",(char *) "pt",(char *) "sz", NULL
33389 };
33390
33391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33393 if (!SWIG_IsOK(res1)) {
33394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33395 }
33396 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33397 {
33398 arg2 = &temp2;
33399 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33400 }
33401 {
33402 arg3 = &temp3;
33403 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33404 }
33405 {
33406 PyThreadState* __tstate = wxPyBeginAllowThreads();
33407 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
33408 wxPyEndAllowThreads(__tstate);
33409 if (PyErr_Occurred()) SWIG_fail;
33410 }
33411 resultobj = SWIG_Py_Void();
33412 return resultobj;
33413 fail:
33414 return NULL;
33415 }
33416
33417
33418 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33419 PyObject *resultobj = 0;
33420 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33421 wxIcon *arg2 = 0 ;
33422 int arg3 ;
33423 int arg4 ;
33424 void *argp1 = 0 ;
33425 int res1 = 0 ;
33426 void *argp2 = 0 ;
33427 int res2 = 0 ;
33428 int val3 ;
33429 int ecode3 = 0 ;
33430 int val4 ;
33431 int ecode4 = 0 ;
33432 PyObject * obj0 = 0 ;
33433 PyObject * obj1 = 0 ;
33434 PyObject * obj2 = 0 ;
33435 PyObject * obj3 = 0 ;
33436 char * kwnames[] = {
33437 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
33438 };
33439
33440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33442 if (!SWIG_IsOK(res1)) {
33443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33444 }
33445 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33446 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33447 if (!SWIG_IsOK(res2)) {
33448 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33449 }
33450 if (!argp2) {
33451 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33452 }
33453 arg2 = reinterpret_cast< wxIcon * >(argp2);
33454 ecode3 = SWIG_AsVal_int(obj2, &val3);
33455 if (!SWIG_IsOK(ecode3)) {
33456 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
33457 }
33458 arg3 = static_cast< int >(val3);
33459 ecode4 = SWIG_AsVal_int(obj3, &val4);
33460 if (!SWIG_IsOK(ecode4)) {
33461 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
33462 }
33463 arg4 = static_cast< int >(val4);
33464 {
33465 PyThreadState* __tstate = wxPyBeginAllowThreads();
33466 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
33467 wxPyEndAllowThreads(__tstate);
33468 if (PyErr_Occurred()) SWIG_fail;
33469 }
33470 resultobj = SWIG_Py_Void();
33471 return resultobj;
33472 fail:
33473 return NULL;
33474 }
33475
33476
33477 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33478 PyObject *resultobj = 0;
33479 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33480 wxIcon *arg2 = 0 ;
33481 wxPoint *arg3 = 0 ;
33482 void *argp1 = 0 ;
33483 int res1 = 0 ;
33484 void *argp2 = 0 ;
33485 int res2 = 0 ;
33486 wxPoint temp3 ;
33487 PyObject * obj0 = 0 ;
33488 PyObject * obj1 = 0 ;
33489 PyObject * obj2 = 0 ;
33490 char * kwnames[] = {
33491 (char *) "self",(char *) "icon",(char *) "pt", NULL
33492 };
33493
33494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33496 if (!SWIG_IsOK(res1)) {
33497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33498 }
33499 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33500 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33501 if (!SWIG_IsOK(res2)) {
33502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33503 }
33504 if (!argp2) {
33505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33506 }
33507 arg2 = reinterpret_cast< wxIcon * >(argp2);
33508 {
33509 arg3 = &temp3;
33510 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33511 }
33512 {
33513 PyThreadState* __tstate = wxPyBeginAllowThreads();
33514 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
33515 wxPyEndAllowThreads(__tstate);
33516 if (PyErr_Occurred()) SWIG_fail;
33517 }
33518 resultobj = SWIG_Py_Void();
33519 return resultobj;
33520 fail:
33521 return NULL;
33522 }
33523
33524
33525 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33526 PyObject *resultobj = 0;
33527 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33528 wxBitmap *arg2 = 0 ;
33529 int arg3 ;
33530 int arg4 ;
33531 bool arg5 = (bool) false ;
33532 void *argp1 = 0 ;
33533 int res1 = 0 ;
33534 void *argp2 = 0 ;
33535 int res2 = 0 ;
33536 int val3 ;
33537 int ecode3 = 0 ;
33538 int val4 ;
33539 int ecode4 = 0 ;
33540 bool val5 ;
33541 int ecode5 = 0 ;
33542 PyObject * obj0 = 0 ;
33543 PyObject * obj1 = 0 ;
33544 PyObject * obj2 = 0 ;
33545 PyObject * obj3 = 0 ;
33546 PyObject * obj4 = 0 ;
33547 char * kwnames[] = {
33548 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
33549 };
33550
33551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33553 if (!SWIG_IsOK(res1)) {
33554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33555 }
33556 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33557 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33558 if (!SWIG_IsOK(res2)) {
33559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33560 }
33561 if (!argp2) {
33562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33563 }
33564 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33565 ecode3 = SWIG_AsVal_int(obj2, &val3);
33566 if (!SWIG_IsOK(ecode3)) {
33567 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
33568 }
33569 arg3 = static_cast< int >(val3);
33570 ecode4 = SWIG_AsVal_int(obj3, &val4);
33571 if (!SWIG_IsOK(ecode4)) {
33572 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
33573 }
33574 arg4 = static_cast< int >(val4);
33575 if (obj4) {
33576 ecode5 = SWIG_AsVal_bool(obj4, &val5);
33577 if (!SWIG_IsOK(ecode5)) {
33578 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
33579 }
33580 arg5 = static_cast< bool >(val5);
33581 }
33582 {
33583 PyThreadState* __tstate = wxPyBeginAllowThreads();
33584 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
33585 wxPyEndAllowThreads(__tstate);
33586 if (PyErr_Occurred()) SWIG_fail;
33587 }
33588 resultobj = SWIG_Py_Void();
33589 return resultobj;
33590 fail:
33591 return NULL;
33592 }
33593
33594
33595 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33596 PyObject *resultobj = 0;
33597 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33598 wxBitmap *arg2 = 0 ;
33599 wxPoint *arg3 = 0 ;
33600 bool arg4 = (bool) false ;
33601 void *argp1 = 0 ;
33602 int res1 = 0 ;
33603 void *argp2 = 0 ;
33604 int res2 = 0 ;
33605 wxPoint temp3 ;
33606 bool val4 ;
33607 int ecode4 = 0 ;
33608 PyObject * obj0 = 0 ;
33609 PyObject * obj1 = 0 ;
33610 PyObject * obj2 = 0 ;
33611 PyObject * obj3 = 0 ;
33612 char * kwnames[] = {
33613 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
33614 };
33615
33616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33618 if (!SWIG_IsOK(res1)) {
33619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33620 }
33621 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33622 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33623 if (!SWIG_IsOK(res2)) {
33624 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33625 }
33626 if (!argp2) {
33627 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33628 }
33629 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33630 {
33631 arg3 = &temp3;
33632 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33633 }
33634 if (obj3) {
33635 ecode4 = SWIG_AsVal_bool(obj3, &val4);
33636 if (!SWIG_IsOK(ecode4)) {
33637 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
33638 }
33639 arg4 = static_cast< bool >(val4);
33640 }
33641 {
33642 PyThreadState* __tstate = wxPyBeginAllowThreads();
33643 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
33644 wxPyEndAllowThreads(__tstate);
33645 if (PyErr_Occurred()) SWIG_fail;
33646 }
33647 resultobj = SWIG_Py_Void();
33648 return resultobj;
33649 fail:
33650 return NULL;
33651 }
33652
33653
33654 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33655 PyObject *resultobj = 0;
33656 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33657 wxString *arg2 = 0 ;
33658 int arg3 ;
33659 int arg4 ;
33660 void *argp1 = 0 ;
33661 int res1 = 0 ;
33662 bool temp2 = false ;
33663 int val3 ;
33664 int ecode3 = 0 ;
33665 int val4 ;
33666 int ecode4 = 0 ;
33667 PyObject * obj0 = 0 ;
33668 PyObject * obj1 = 0 ;
33669 PyObject * obj2 = 0 ;
33670 PyObject * obj3 = 0 ;
33671 char * kwnames[] = {
33672 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
33673 };
33674
33675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33677 if (!SWIG_IsOK(res1)) {
33678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33679 }
33680 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33681 {
33682 arg2 = wxString_in_helper(obj1);
33683 if (arg2 == NULL) SWIG_fail;
33684 temp2 = true;
33685 }
33686 ecode3 = SWIG_AsVal_int(obj2, &val3);
33687 if (!SWIG_IsOK(ecode3)) {
33688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
33689 }
33690 arg3 = static_cast< int >(val3);
33691 ecode4 = SWIG_AsVal_int(obj3, &val4);
33692 if (!SWIG_IsOK(ecode4)) {
33693 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
33694 }
33695 arg4 = static_cast< int >(val4);
33696 {
33697 PyThreadState* __tstate = wxPyBeginAllowThreads();
33698 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
33699 wxPyEndAllowThreads(__tstate);
33700 if (PyErr_Occurred()) SWIG_fail;
33701 }
33702 resultobj = SWIG_Py_Void();
33703 {
33704 if (temp2)
33705 delete arg2;
33706 }
33707 return resultobj;
33708 fail:
33709 {
33710 if (temp2)
33711 delete arg2;
33712 }
33713 return NULL;
33714 }
33715
33716
33717 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33718 PyObject *resultobj = 0;
33719 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33720 wxString *arg2 = 0 ;
33721 wxPoint *arg3 = 0 ;
33722 void *argp1 = 0 ;
33723 int res1 = 0 ;
33724 bool temp2 = false ;
33725 wxPoint temp3 ;
33726 PyObject * obj0 = 0 ;
33727 PyObject * obj1 = 0 ;
33728 PyObject * obj2 = 0 ;
33729 char * kwnames[] = {
33730 (char *) "self",(char *) "text",(char *) "pt", NULL
33731 };
33732
33733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33735 if (!SWIG_IsOK(res1)) {
33736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33737 }
33738 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33739 {
33740 arg2 = wxString_in_helper(obj1);
33741 if (arg2 == NULL) SWIG_fail;
33742 temp2 = true;
33743 }
33744 {
33745 arg3 = &temp3;
33746 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33747 }
33748 {
33749 PyThreadState* __tstate = wxPyBeginAllowThreads();
33750 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
33751 wxPyEndAllowThreads(__tstate);
33752 if (PyErr_Occurred()) SWIG_fail;
33753 }
33754 resultobj = SWIG_Py_Void();
33755 {
33756 if (temp2)
33757 delete arg2;
33758 }
33759 return resultobj;
33760 fail:
33761 {
33762 if (temp2)
33763 delete arg2;
33764 }
33765 return NULL;
33766 }
33767
33768
33769 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33770 PyObject *resultobj = 0;
33771 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33772 wxString *arg2 = 0 ;
33773 int arg3 ;
33774 int arg4 ;
33775 double arg5 ;
33776 void *argp1 = 0 ;
33777 int res1 = 0 ;
33778 bool temp2 = false ;
33779 int val3 ;
33780 int ecode3 = 0 ;
33781 int val4 ;
33782 int ecode4 = 0 ;
33783 double val5 ;
33784 int ecode5 = 0 ;
33785 PyObject * obj0 = 0 ;
33786 PyObject * obj1 = 0 ;
33787 PyObject * obj2 = 0 ;
33788 PyObject * obj3 = 0 ;
33789 PyObject * obj4 = 0 ;
33790 char * kwnames[] = {
33791 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
33792 };
33793
33794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33796 if (!SWIG_IsOK(res1)) {
33797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33798 }
33799 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33800 {
33801 arg2 = wxString_in_helper(obj1);
33802 if (arg2 == NULL) SWIG_fail;
33803 temp2 = true;
33804 }
33805 ecode3 = SWIG_AsVal_int(obj2, &val3);
33806 if (!SWIG_IsOK(ecode3)) {
33807 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
33808 }
33809 arg3 = static_cast< int >(val3);
33810 ecode4 = SWIG_AsVal_int(obj3, &val4);
33811 if (!SWIG_IsOK(ecode4)) {
33812 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
33813 }
33814 arg4 = static_cast< int >(val4);
33815 ecode5 = SWIG_AsVal_double(obj4, &val5);
33816 if (!SWIG_IsOK(ecode5)) {
33817 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
33818 }
33819 arg5 = static_cast< double >(val5);
33820 {
33821 PyThreadState* __tstate = wxPyBeginAllowThreads();
33822 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
33823 wxPyEndAllowThreads(__tstate);
33824 if (PyErr_Occurred()) SWIG_fail;
33825 }
33826 resultobj = SWIG_Py_Void();
33827 {
33828 if (temp2)
33829 delete arg2;
33830 }
33831 return resultobj;
33832 fail:
33833 {
33834 if (temp2)
33835 delete arg2;
33836 }
33837 return NULL;
33838 }
33839
33840
33841 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33842 PyObject *resultobj = 0;
33843 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33844 wxString *arg2 = 0 ;
33845 wxPoint *arg3 = 0 ;
33846 double arg4 ;
33847 void *argp1 = 0 ;
33848 int res1 = 0 ;
33849 bool temp2 = false ;
33850 wxPoint temp3 ;
33851 double val4 ;
33852 int ecode4 = 0 ;
33853 PyObject * obj0 = 0 ;
33854 PyObject * obj1 = 0 ;
33855 PyObject * obj2 = 0 ;
33856 PyObject * obj3 = 0 ;
33857 char * kwnames[] = {
33858 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
33859 };
33860
33861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33863 if (!SWIG_IsOK(res1)) {
33864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33865 }
33866 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33867 {
33868 arg2 = wxString_in_helper(obj1);
33869 if (arg2 == NULL) SWIG_fail;
33870 temp2 = true;
33871 }
33872 {
33873 arg3 = &temp3;
33874 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33875 }
33876 ecode4 = SWIG_AsVal_double(obj3, &val4);
33877 if (!SWIG_IsOK(ecode4)) {
33878 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
33879 }
33880 arg4 = static_cast< double >(val4);
33881 {
33882 PyThreadState* __tstate = wxPyBeginAllowThreads();
33883 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
33884 wxPyEndAllowThreads(__tstate);
33885 if (PyErr_Occurred()) SWIG_fail;
33886 }
33887 resultobj = SWIG_Py_Void();
33888 {
33889 if (temp2)
33890 delete arg2;
33891 }
33892 return resultobj;
33893 fail:
33894 {
33895 if (temp2)
33896 delete arg2;
33897 }
33898 return NULL;
33899 }
33900
33901
33902 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33903 PyObject *resultobj = 0;
33904 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33905 int arg2 ;
33906 wxPoint *arg3 = (wxPoint *) 0 ;
33907 int arg4 = (int) 0 ;
33908 int arg5 = (int) 0 ;
33909 void *argp1 = 0 ;
33910 int res1 = 0 ;
33911 int val4 ;
33912 int ecode4 = 0 ;
33913 int val5 ;
33914 int ecode5 = 0 ;
33915 PyObject * obj0 = 0 ;
33916 PyObject * obj1 = 0 ;
33917 PyObject * obj2 = 0 ;
33918 PyObject * obj3 = 0 ;
33919 char * kwnames[] = {
33920 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
33921 };
33922
33923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33925 if (!SWIG_IsOK(res1)) {
33926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33927 }
33928 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33929 {
33930 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33931 if (arg3 == NULL) SWIG_fail;
33932 }
33933 if (obj2) {
33934 ecode4 = SWIG_AsVal_int(obj2, &val4);
33935 if (!SWIG_IsOK(ecode4)) {
33936 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
33937 }
33938 arg4 = static_cast< int >(val4);
33939 }
33940 if (obj3) {
33941 ecode5 = SWIG_AsVal_int(obj3, &val5);
33942 if (!SWIG_IsOK(ecode5)) {
33943 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
33944 }
33945 arg5 = static_cast< int >(val5);
33946 }
33947 {
33948 PyThreadState* __tstate = wxPyBeginAllowThreads();
33949 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
33950 wxPyEndAllowThreads(__tstate);
33951 if (PyErr_Occurred()) SWIG_fail;
33952 }
33953 resultobj = SWIG_Py_Void();
33954 {
33955 if (arg3) delete [] arg3;
33956 }
33957 return resultobj;
33958 fail:
33959 {
33960 if (arg3) delete [] arg3;
33961 }
33962 return NULL;
33963 }
33964
33965
33966 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33967 PyObject *resultobj = 0;
33968 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33969 int arg2 ;
33970 wxPoint *arg3 = (wxPoint *) 0 ;
33971 int arg4 = (int) 0 ;
33972 int arg5 = (int) 0 ;
33973 int arg6 = (int) wxODDEVEN_RULE ;
33974 void *argp1 = 0 ;
33975 int res1 = 0 ;
33976 int val4 ;
33977 int ecode4 = 0 ;
33978 int val5 ;
33979 int ecode5 = 0 ;
33980 int val6 ;
33981 int ecode6 = 0 ;
33982 PyObject * obj0 = 0 ;
33983 PyObject * obj1 = 0 ;
33984 PyObject * obj2 = 0 ;
33985 PyObject * obj3 = 0 ;
33986 PyObject * obj4 = 0 ;
33987 char * kwnames[] = {
33988 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
33989 };
33990
33991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33993 if (!SWIG_IsOK(res1)) {
33994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33995 }
33996 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33997 {
33998 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33999 if (arg3 == NULL) SWIG_fail;
34000 }
34001 if (obj2) {
34002 ecode4 = SWIG_AsVal_int(obj2, &val4);
34003 if (!SWIG_IsOK(ecode4)) {
34004 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
34005 }
34006 arg4 = static_cast< int >(val4);
34007 }
34008 if (obj3) {
34009 ecode5 = SWIG_AsVal_int(obj3, &val5);
34010 if (!SWIG_IsOK(ecode5)) {
34011 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
34012 }
34013 arg5 = static_cast< int >(val5);
34014 }
34015 if (obj4) {
34016 ecode6 = SWIG_AsVal_int(obj4, &val6);
34017 if (!SWIG_IsOK(ecode6)) {
34018 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
34019 }
34020 arg6 = static_cast< int >(val6);
34021 }
34022 {
34023 PyThreadState* __tstate = wxPyBeginAllowThreads();
34024 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
34025 wxPyEndAllowThreads(__tstate);
34026 if (PyErr_Occurred()) SWIG_fail;
34027 }
34028 resultobj = SWIG_Py_Void();
34029 {
34030 if (arg3) delete [] arg3;
34031 }
34032 return resultobj;
34033 fail:
34034 {
34035 if (arg3) delete [] arg3;
34036 }
34037 return NULL;
34038 }
34039
34040
34041 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34042 PyObject *resultobj = 0;
34043 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34044 wxString *arg2 = 0 ;
34045 wxRect *arg3 = 0 ;
34046 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34047 int arg5 = (int) -1 ;
34048 void *argp1 = 0 ;
34049 int res1 = 0 ;
34050 bool temp2 = false ;
34051 wxRect temp3 ;
34052 int val4 ;
34053 int ecode4 = 0 ;
34054 int val5 ;
34055 int ecode5 = 0 ;
34056 PyObject * obj0 = 0 ;
34057 PyObject * obj1 = 0 ;
34058 PyObject * obj2 = 0 ;
34059 PyObject * obj3 = 0 ;
34060 PyObject * obj4 = 0 ;
34061 char * kwnames[] = {
34062 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34063 };
34064
34065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34067 if (!SWIG_IsOK(res1)) {
34068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34069 }
34070 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34071 {
34072 arg2 = wxString_in_helper(obj1);
34073 if (arg2 == NULL) SWIG_fail;
34074 temp2 = true;
34075 }
34076 {
34077 arg3 = &temp3;
34078 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34079 }
34080 if (obj3) {
34081 ecode4 = SWIG_AsVal_int(obj3, &val4);
34082 if (!SWIG_IsOK(ecode4)) {
34083 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
34084 }
34085 arg4 = static_cast< int >(val4);
34086 }
34087 if (obj4) {
34088 ecode5 = SWIG_AsVal_int(obj4, &val5);
34089 if (!SWIG_IsOK(ecode5)) {
34090 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
34091 }
34092 arg5 = static_cast< int >(val5);
34093 }
34094 {
34095 PyThreadState* __tstate = wxPyBeginAllowThreads();
34096 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
34097 wxPyEndAllowThreads(__tstate);
34098 if (PyErr_Occurred()) SWIG_fail;
34099 }
34100 resultobj = SWIG_Py_Void();
34101 {
34102 if (temp2)
34103 delete arg2;
34104 }
34105 return resultobj;
34106 fail:
34107 {
34108 if (temp2)
34109 delete arg2;
34110 }
34111 return NULL;
34112 }
34113
34114
34115 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34116 PyObject *resultobj = 0;
34117 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34118 wxString *arg2 = 0 ;
34119 wxBitmap *arg3 = 0 ;
34120 wxRect *arg4 = 0 ;
34121 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34122 int arg6 = (int) -1 ;
34123 void *argp1 = 0 ;
34124 int res1 = 0 ;
34125 bool temp2 = false ;
34126 void *argp3 = 0 ;
34127 int res3 = 0 ;
34128 wxRect temp4 ;
34129 int val5 ;
34130 int ecode5 = 0 ;
34131 int val6 ;
34132 int ecode6 = 0 ;
34133 PyObject * obj0 = 0 ;
34134 PyObject * obj1 = 0 ;
34135 PyObject * obj2 = 0 ;
34136 PyObject * obj3 = 0 ;
34137 PyObject * obj4 = 0 ;
34138 PyObject * obj5 = 0 ;
34139 char * kwnames[] = {
34140 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34141 };
34142
34143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34145 if (!SWIG_IsOK(res1)) {
34146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34147 }
34148 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34149 {
34150 arg2 = wxString_in_helper(obj1);
34151 if (arg2 == NULL) SWIG_fail;
34152 temp2 = true;
34153 }
34154 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
34155 if (!SWIG_IsOK(res3)) {
34156 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34157 }
34158 if (!argp3) {
34159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34160 }
34161 arg3 = reinterpret_cast< wxBitmap * >(argp3);
34162 {
34163 arg4 = &temp4;
34164 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34165 }
34166 if (obj4) {
34167 ecode5 = SWIG_AsVal_int(obj4, &val5);
34168 if (!SWIG_IsOK(ecode5)) {
34169 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
34170 }
34171 arg5 = static_cast< int >(val5);
34172 }
34173 if (obj5) {
34174 ecode6 = SWIG_AsVal_int(obj5, &val6);
34175 if (!SWIG_IsOK(ecode6)) {
34176 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
34177 }
34178 arg6 = static_cast< int >(val6);
34179 }
34180 {
34181 PyThreadState* __tstate = wxPyBeginAllowThreads();
34182 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
34183 wxPyEndAllowThreads(__tstate);
34184 if (PyErr_Occurred()) SWIG_fail;
34185 }
34186 resultobj = SWIG_Py_Void();
34187 {
34188 if (temp2)
34189 delete arg2;
34190 }
34191 return resultobj;
34192 fail:
34193 {
34194 if (temp2)
34195 delete arg2;
34196 }
34197 return NULL;
34198 }
34199
34200
34201 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34202 PyObject *resultobj = 0;
34203 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34204 int arg2 ;
34205 wxPoint *arg3 = (wxPoint *) 0 ;
34206 void *argp1 = 0 ;
34207 int res1 = 0 ;
34208 PyObject * obj0 = 0 ;
34209 PyObject * obj1 = 0 ;
34210 char * kwnames[] = {
34211 (char *) "self",(char *) "points", NULL
34212 };
34213
34214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
34215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34216 if (!SWIG_IsOK(res1)) {
34217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34218 }
34219 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34220 {
34221 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34222 if (arg3 == NULL) SWIG_fail;
34223 }
34224 {
34225 PyThreadState* __tstate = wxPyBeginAllowThreads();
34226 (arg1)->DrawSpline(arg2,arg3);
34227 wxPyEndAllowThreads(__tstate);
34228 if (PyErr_Occurred()) SWIG_fail;
34229 }
34230 resultobj = SWIG_Py_Void();
34231 {
34232 if (arg3) delete [] arg3;
34233 }
34234 return resultobj;
34235 fail:
34236 {
34237 if (arg3) delete [] arg3;
34238 }
34239 return NULL;
34240 }
34241
34242
34243 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34244 PyObject *resultobj = 0;
34245 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34246 void *argp1 = 0 ;
34247 int res1 = 0 ;
34248 PyObject *swig_obj[1] ;
34249
34250 if (!args) SWIG_fail;
34251 swig_obj[0] = args;
34252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34253 if (!SWIG_IsOK(res1)) {
34254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34255 }
34256 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34257 {
34258 PyThreadState* __tstate = wxPyBeginAllowThreads();
34259 (arg1)->Clear();
34260 wxPyEndAllowThreads(__tstate);
34261 if (PyErr_Occurred()) SWIG_fail;
34262 }
34263 resultobj = SWIG_Py_Void();
34264 return resultobj;
34265 fail:
34266 return NULL;
34267 }
34268
34269
34270 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34271 PyObject *resultobj = 0;
34272 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34273 wxFont *arg2 = 0 ;
34274 void *argp1 = 0 ;
34275 int res1 = 0 ;
34276 void *argp2 = 0 ;
34277 int res2 = 0 ;
34278 PyObject * obj0 = 0 ;
34279 PyObject * obj1 = 0 ;
34280 char * kwnames[] = {
34281 (char *) "self",(char *) "font", NULL
34282 };
34283
34284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
34285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34286 if (!SWIG_IsOK(res1)) {
34287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34288 }
34289 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34290 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
34291 if (!SWIG_IsOK(res2)) {
34292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34293 }
34294 if (!argp2) {
34295 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34296 }
34297 arg2 = reinterpret_cast< wxFont * >(argp2);
34298 {
34299 PyThreadState* __tstate = wxPyBeginAllowThreads();
34300 (arg1)->SetFont((wxFont const &)*arg2);
34301 wxPyEndAllowThreads(__tstate);
34302 if (PyErr_Occurred()) SWIG_fail;
34303 }
34304 resultobj = SWIG_Py_Void();
34305 return resultobj;
34306 fail:
34307 return NULL;
34308 }
34309
34310
34311 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34312 PyObject *resultobj = 0;
34313 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34314 wxPen *arg2 = 0 ;
34315 void *argp1 = 0 ;
34316 int res1 = 0 ;
34317 void *argp2 = 0 ;
34318 int res2 = 0 ;
34319 PyObject * obj0 = 0 ;
34320 PyObject * obj1 = 0 ;
34321 char * kwnames[] = {
34322 (char *) "self",(char *) "pen", NULL
34323 };
34324
34325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
34326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34327 if (!SWIG_IsOK(res1)) {
34328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34329 }
34330 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34331 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
34332 if (!SWIG_IsOK(res2)) {
34333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34334 }
34335 if (!argp2) {
34336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34337 }
34338 arg2 = reinterpret_cast< wxPen * >(argp2);
34339 {
34340 PyThreadState* __tstate = wxPyBeginAllowThreads();
34341 (arg1)->SetPen((wxPen const &)*arg2);
34342 wxPyEndAllowThreads(__tstate);
34343 if (PyErr_Occurred()) SWIG_fail;
34344 }
34345 resultobj = SWIG_Py_Void();
34346 return resultobj;
34347 fail:
34348 return NULL;
34349 }
34350
34351
34352 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34353 PyObject *resultobj = 0;
34354 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34355 wxBrush *arg2 = 0 ;
34356 void *argp1 = 0 ;
34357 int res1 = 0 ;
34358 void *argp2 = 0 ;
34359 int res2 = 0 ;
34360 PyObject * obj0 = 0 ;
34361 PyObject * obj1 = 0 ;
34362 char * kwnames[] = {
34363 (char *) "self",(char *) "brush", NULL
34364 };
34365
34366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
34367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34368 if (!SWIG_IsOK(res1)) {
34369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34370 }
34371 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34372 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34373 if (!SWIG_IsOK(res2)) {
34374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34375 }
34376 if (!argp2) {
34377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34378 }
34379 arg2 = reinterpret_cast< wxBrush * >(argp2);
34380 {
34381 PyThreadState* __tstate = wxPyBeginAllowThreads();
34382 (arg1)->SetBrush((wxBrush const &)*arg2);
34383 wxPyEndAllowThreads(__tstate);
34384 if (PyErr_Occurred()) SWIG_fail;
34385 }
34386 resultobj = SWIG_Py_Void();
34387 return resultobj;
34388 fail:
34389 return NULL;
34390 }
34391
34392
34393 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34394 PyObject *resultobj = 0;
34395 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34396 wxBrush *arg2 = 0 ;
34397 void *argp1 = 0 ;
34398 int res1 = 0 ;
34399 void *argp2 = 0 ;
34400 int res2 = 0 ;
34401 PyObject * obj0 = 0 ;
34402 PyObject * obj1 = 0 ;
34403 char * kwnames[] = {
34404 (char *) "self",(char *) "brush", NULL
34405 };
34406
34407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34409 if (!SWIG_IsOK(res1)) {
34410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34411 }
34412 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34413 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34414 if (!SWIG_IsOK(res2)) {
34415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34416 }
34417 if (!argp2) {
34418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34419 }
34420 arg2 = reinterpret_cast< wxBrush * >(argp2);
34421 {
34422 PyThreadState* __tstate = wxPyBeginAllowThreads();
34423 (arg1)->SetBackground((wxBrush const &)*arg2);
34424 wxPyEndAllowThreads(__tstate);
34425 if (PyErr_Occurred()) SWIG_fail;
34426 }
34427 resultobj = SWIG_Py_Void();
34428 return resultobj;
34429 fail:
34430 return NULL;
34431 }
34432
34433
34434 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34435 PyObject *resultobj = 0;
34436 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34437 int arg2 ;
34438 void *argp1 = 0 ;
34439 int res1 = 0 ;
34440 int val2 ;
34441 int ecode2 = 0 ;
34442 PyObject * obj0 = 0 ;
34443 PyObject * obj1 = 0 ;
34444 char * kwnames[] = {
34445 (char *) "self",(char *) "mode", NULL
34446 };
34447
34448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
34449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34450 if (!SWIG_IsOK(res1)) {
34451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34452 }
34453 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34454 ecode2 = SWIG_AsVal_int(obj1, &val2);
34455 if (!SWIG_IsOK(ecode2)) {
34456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
34457 }
34458 arg2 = static_cast< int >(val2);
34459 {
34460 PyThreadState* __tstate = wxPyBeginAllowThreads();
34461 (arg1)->SetBackgroundMode(arg2);
34462 wxPyEndAllowThreads(__tstate);
34463 if (PyErr_Occurred()) SWIG_fail;
34464 }
34465 resultobj = SWIG_Py_Void();
34466 return resultobj;
34467 fail:
34468 return NULL;
34469 }
34470
34471
34472 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34473 PyObject *resultobj = 0;
34474 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34475 wxPalette *arg2 = 0 ;
34476 void *argp1 = 0 ;
34477 int res1 = 0 ;
34478 void *argp2 = 0 ;
34479 int res2 = 0 ;
34480 PyObject * obj0 = 0 ;
34481 PyObject * obj1 = 0 ;
34482 char * kwnames[] = {
34483 (char *) "self",(char *) "palette", NULL
34484 };
34485
34486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
34487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34488 if (!SWIG_IsOK(res1)) {
34489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34490 }
34491 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34492 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
34493 if (!SWIG_IsOK(res2)) {
34494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34495 }
34496 if (!argp2) {
34497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34498 }
34499 arg2 = reinterpret_cast< wxPalette * >(argp2);
34500 {
34501 PyThreadState* __tstate = wxPyBeginAllowThreads();
34502 (arg1)->SetPalette((wxPalette const &)*arg2);
34503 wxPyEndAllowThreads(__tstate);
34504 if (PyErr_Occurred()) SWIG_fail;
34505 }
34506 resultobj = SWIG_Py_Void();
34507 return resultobj;
34508 fail:
34509 return NULL;
34510 }
34511
34512
34513 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34514 PyObject *resultobj = 0;
34515 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34516 wxColour *arg2 = 0 ;
34517 void *argp1 = 0 ;
34518 int res1 = 0 ;
34519 wxColour temp2 ;
34520 PyObject * obj0 = 0 ;
34521 PyObject * obj1 = 0 ;
34522 char * kwnames[] = {
34523 (char *) "self",(char *) "colour", NULL
34524 };
34525
34526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
34527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34528 if (!SWIG_IsOK(res1)) {
34529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34530 }
34531 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34532 {
34533 arg2 = &temp2;
34534 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34535 }
34536 {
34537 PyThreadState* __tstate = wxPyBeginAllowThreads();
34538 (arg1)->SetTextForeground((wxColour const &)*arg2);
34539 wxPyEndAllowThreads(__tstate);
34540 if (PyErr_Occurred()) SWIG_fail;
34541 }
34542 resultobj = SWIG_Py_Void();
34543 return resultobj;
34544 fail:
34545 return NULL;
34546 }
34547
34548
34549 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34550 PyObject *resultobj = 0;
34551 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34552 wxColour *arg2 = 0 ;
34553 void *argp1 = 0 ;
34554 int res1 = 0 ;
34555 wxColour temp2 ;
34556 PyObject * obj0 = 0 ;
34557 PyObject * obj1 = 0 ;
34558 char * kwnames[] = {
34559 (char *) "self",(char *) "colour", NULL
34560 };
34561
34562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34564 if (!SWIG_IsOK(res1)) {
34565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34566 }
34567 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34568 {
34569 arg2 = &temp2;
34570 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34571 }
34572 {
34573 PyThreadState* __tstate = wxPyBeginAllowThreads();
34574 (arg1)->SetTextBackground((wxColour const &)*arg2);
34575 wxPyEndAllowThreads(__tstate);
34576 if (PyErr_Occurred()) SWIG_fail;
34577 }
34578 resultobj = SWIG_Py_Void();
34579 return resultobj;
34580 fail:
34581 return NULL;
34582 }
34583
34584
34585 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34586 PyObject *resultobj = 0;
34587 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34588 int arg2 ;
34589 void *argp1 = 0 ;
34590 int res1 = 0 ;
34591 int val2 ;
34592 int ecode2 = 0 ;
34593 PyObject * obj0 = 0 ;
34594 PyObject * obj1 = 0 ;
34595 char * kwnames[] = {
34596 (char *) "self",(char *) "function", NULL
34597 };
34598
34599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
34600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34601 if (!SWIG_IsOK(res1)) {
34602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34603 }
34604 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34605 ecode2 = SWIG_AsVal_int(obj1, &val2);
34606 if (!SWIG_IsOK(ecode2)) {
34607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
34608 }
34609 arg2 = static_cast< int >(val2);
34610 {
34611 PyThreadState* __tstate = wxPyBeginAllowThreads();
34612 (arg1)->SetLogicalFunction(arg2);
34613 wxPyEndAllowThreads(__tstate);
34614 if (PyErr_Occurred()) SWIG_fail;
34615 }
34616 resultobj = SWIG_Py_Void();
34617 return resultobj;
34618 fail:
34619 return NULL;
34620 }
34621
34622
34623 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34624 PyObject *obj;
34625 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34626 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
34627 return SWIG_Py_Void();
34628 }
34629
34630 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34631 return SWIG_Python_InitShadowInstance(args);
34632 }
34633
34634 static PyMethodDef SwigMethods[] = {
34635 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
34636 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
34637 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
34638 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
34639 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
34640 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
34641 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
34642 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34643 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
34644 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
34645 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
34646 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
34647 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
34648 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
34649 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34650 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34651 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34652 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
34653 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
34654 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34655 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34656 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
34657 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
34658 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
34659 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
34660 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
34661 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
34662 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34663 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34664 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
34665 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
34666 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
34667 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
34668 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
34669 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
34670 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
34671 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
34672 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
34673 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
34674 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
34675 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
34676 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
34677 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34678 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
34679 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34680 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34681 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34682 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
34683 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34684 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34685 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34686 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
34687 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
34688 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
34689 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34690 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
34691 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34692 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34693 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
34694 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
34695 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
34696 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
34697 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
34698 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
34699 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
34700 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
34701 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
34702 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
34703 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34704 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
34705 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34706 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34707 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34708 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34709 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
34710 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
34711 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
34712 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
34713 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
34714 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
34715 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
34716 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
34717 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
34718 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
34719 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34720 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
34721 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34722 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
34723 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34724 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34725 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34726 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34727 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
34728 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34729 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34730 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
34731 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
34732 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
34733 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
34734 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
34735 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
34736 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
34737 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
34738 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
34739 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
34740 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
34741 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
34742 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
34743 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
34744 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
34745 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
34746 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
34747 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
34748 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
34749 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
34750 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34751 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
34752 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
34753 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34754 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34755 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34756 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34757 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34758 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
34759 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
34760 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
34761 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
34762 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
34763 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
34764 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
34765 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
34766 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
34767 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
34768 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
34769 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
34770 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34771 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
34772 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
34773 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34774 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34775 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34776 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34777 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34778 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
34779 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
34780 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
34781 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
34782 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
34783 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
34784 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
34785 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
34786 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
34787 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
34788 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34789 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34790 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34791 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
34792 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
34793 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
34794 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
34795 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34796 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34797 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34798 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34799 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
34800 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
34801 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34802 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
34803 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
34804 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
34805 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
34806 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
34807 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
34808 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
34809 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
34810 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
34811 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34812 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34813 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
34814 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34815 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34816 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34817 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
34818 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
34819 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
34820 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
34821 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34822 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34823 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
34824 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
34825 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
34826 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
34827 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34828 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34829 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
34830 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
34831 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
34832 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34833 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
34834 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34835 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
34836 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
34837 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
34838 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
34839 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
34840 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34841 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
34842 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
34843 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
34844 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
34845 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34846 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
34847 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
34848 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34849 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
34850 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
34851 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34852 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
34853 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34854 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34855 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
34856 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
34857 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
34858 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
34859 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
34860 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
34861 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
34862 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
34863 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
34864 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
34865 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
34866 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
34867 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
34868 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
34869 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
34870 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
34871 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
34872 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
34873 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
34874 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
34875 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
34876 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
34877 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
34878 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
34879 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
34880 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
34881 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
34882 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
34883 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34884 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34885 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34886 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34887 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34888 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34889 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34890 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34891 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
34892 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
34893 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
34894 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
34895 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
34896 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
34897 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
34898 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
34899 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
34900 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
34901 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
34902 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
34903 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34904 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
34905 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
34906 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
34907 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34908 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34909 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
34910 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
34911 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
34912 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34913 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34914 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
34915 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34916 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
34917 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
34918 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34919 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
34920 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
34921 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34922 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34923 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
34924 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
34925 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
34926 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
34927 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
34928 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
34929 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34930 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
34931 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
34932 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34933 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34934 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
34935 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34936 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34937 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
34938 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
34939 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
34940 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
34941 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
34942 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
34943 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
34944 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
34945 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
34946 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
34947 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
34948 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
34949 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
34950 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34951 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34952 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34953 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34954 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34955 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34956 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34957 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34958 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34959 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
34960 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
34961 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
34962 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
34963 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
34964 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
34965 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
34966 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
34967 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34968 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
34969 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
34970 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
34971 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
34972 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34973 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
34974 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
34975 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
34976 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
34977 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
34978 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
34979 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
34980 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
34981 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
34982 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
34983 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
34984 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
34985 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
34986 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
34987 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
34988 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
34989 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
34990 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
34991 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
34992 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
34993 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
34994 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
34995 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
34996 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
34997 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
34998 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
34999 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
35000 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
35001 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
35002 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
35003 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35004 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
35005 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35006 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
35007 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
35008 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
35009 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
35010 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
35011 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
35012 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
35013 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35014 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
35015 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
35016 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
35017 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
35018 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
35019 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
35020 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
35021 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
35022 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
35023 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
35024 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35025 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35026 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
35027 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
35028 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
35029 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
35030 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35031 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35032 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
35033 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
35034 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
35035 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35036 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35037 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35038 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35039 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35040 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35041 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35042 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35043 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35044 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35045 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35046 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35047 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35048 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35049 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35050 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35051 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35052 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35053 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35054 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35055 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35056 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35057 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35058 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35059 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35060 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35061 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35062 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35063 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35064 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35065 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35066 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35067 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
35068 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35069 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35070 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35071 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35072 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
35073 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35074 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35075 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35076 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35077 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35078 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
35079 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
35080 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
35081 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
35082 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
35083 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35084 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35085 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35086 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35087 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35088 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35089 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
35090 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
35091 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
35092 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
35093 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
35094 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35095 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35096 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35097 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35098 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
35099 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
35100 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
35101 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
35102 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
35103 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
35104 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35105 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35106 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
35107 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
35108 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35109 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35110 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
35111 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
35112 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
35113 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
35114 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
35115 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
35116 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
35117 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
35118 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
35119 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
35120 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
35121 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
35122 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35123 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35124 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
35125 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
35126 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
35127 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
35128 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
35129 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
35130 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
35131 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
35132 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35133 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35134 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
35135 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
35136 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35137 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35138 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
35139 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
35140 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35141 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
35142 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
35143 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35144 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
35145 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
35146 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
35147 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
35148 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
35149 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
35150 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
35151 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
35152 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
35153 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
35154 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
35155 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
35156 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
35157 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
35158 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
35159 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
35160 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
35161 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
35162 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
35163 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
35164 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
35165 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
35166 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
35167 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
35168 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
35169 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
35170 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
35171 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
35172 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
35173 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
35174 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
35175 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
35176 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35177 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
35178 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
35179 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
35180 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
35181 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
35182 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
35183 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
35184 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35185 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
35186 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
35187 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35188 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
35189 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
35190 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
35191 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
35192 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
35193 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
35194 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
35195 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
35196 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
35197 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
35198 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
35199 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
35200 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
35201 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
35202 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
35203 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
35204 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
35205 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
35206 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
35207 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
35208 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
35209 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
35210 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
35211 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
35212 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
35213 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
35214 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
35215 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
35216 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
35217 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
35218 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35219 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35220 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35221 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
35222 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
35223 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
35224 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35225 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35226 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35227 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35228 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
35229 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
35230 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
35231 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
35232 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
35233 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
35234 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
35235 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35236 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
35237 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
35238 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
35239 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
35240 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
35241 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
35242 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35243 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35244 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35245 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35246 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35247 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
35248 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
35249 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
35250 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
35251 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35252 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35253 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35254 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35255 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35256 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35257 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
35258 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
35259 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
35260 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35261 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35262 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35263 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35264 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
35265 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
35266 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
35267 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
35268 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
35269 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
35270 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
35271 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
35272 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
35273 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
35274 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
35275 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
35276 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
35277 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
35278 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
35279 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
35280 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
35281 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
35282 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
35283 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
35284 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
35285 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35286 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35287 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35288 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
35289 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
35290 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
35291 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
35292 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
35293 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35294 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
35295 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
35296 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
35297 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
35298 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
35299 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
35300 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35301 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35302 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35303 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35304 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35305 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
35306 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
35307 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
35308 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
35309 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
35310 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
35311 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
35312 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
35313 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
35314 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
35315 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35316 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35317 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35318 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
35319 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
35320 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
35321 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
35322 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
35323 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
35324 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
35325 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
35326 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
35327 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
35328 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
35329 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
35330 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
35331 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
35332 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
35333 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
35334 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
35335 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
35336 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
35337 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
35338 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
35339 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
35340 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
35341 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
35342 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35343 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
35344 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35345 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35346 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35347 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
35348 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35349 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
35350 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
35351 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
35352 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
35353 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
35354 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
35355 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
35356 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
35357 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
35358 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
35359 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
35360 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
35361 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
35362 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
35363 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
35364 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
35365 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
35366 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
35367 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
35368 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
35369 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
35370 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
35371 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
35372 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
35373 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
35374 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
35375 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
35376 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
35377 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
35378 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
35379 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
35380 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
35381 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
35382 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
35383 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
35384 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
35385 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35386 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
35387 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
35388 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
35389 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
35390 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
35391 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
35392 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
35393 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
35394 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
35395 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
35396 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
35397 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
35398 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35399 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
35400 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
35401 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
35402 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
35403 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
35404 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
35405 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
35406 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
35407 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
35408 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
35409 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
35410 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
35411 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35412 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35413 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
35414 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
35415 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35416 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35417 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35418 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
35419 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
35420 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35421 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35422 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35423 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35424 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35425 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35426 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35427 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35428 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35429 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35430 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35431 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35432 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35433 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35434 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35435 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35436 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35437 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35438 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35439 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35440 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35441 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35442 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35443 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35444 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35445 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35446 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35447 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35448 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35449 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35450 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35451 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35452 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35453 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35454 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35455 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35456 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35457 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35458 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35459 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
35460 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35461 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35462 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35463 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35464 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35465 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35466 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35467 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35468 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35469 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
35470 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
35471 { NULL, NULL, 0, NULL }
35472 };
35473
35474
35475 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
35476
35477 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
35478 return (void *)((wxClientDC *) ((wxPaintDC *) x));
35479 }
35480 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
35481 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
35482 }
35483 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
35484 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
35485 }
35486 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
35487 return (void *)((wxWindowDC *) ((wxClientDC *) x));
35488 }
35489 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
35490 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
35491 }
35492 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
35493 return (void *)((wxLocale *) ((wxPyLocale *) x));
35494 }
35495 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
35496 return (void *)((wxGDIObject *) ((wxIcon *) x));
35497 }
35498 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
35499 return (void *)((wxGDIObject *) ((wxPalette *) x));
35500 }
35501 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
35502 return (void *)((wxGDIObject *) ((wxPen *) x));
35503 }
35504 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
35505 return (void *)((wxGDIObject *) ((wxFont *) x));
35506 }
35507 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
35508 return (void *)((wxGDIObject *) ((wxCursor *) x));
35509 }
35510 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
35511 return (void *)((wxGDIObject *) ((wxBitmap *) x));
35512 }
35513 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
35514 return (void *)((wxGDIObject *) ((wxRegion *) x));
35515 }
35516 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
35517 return (void *)((wxGDIObject *) ((wxBrush *) x));
35518 }
35519 static void *_p_wxGCDCTo_p_wxDC(void *x) {
35520 return (void *)((wxDC *) ((wxGCDC *) x));
35521 }
35522 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
35523 return (void *)((wxDC *) ((wxScreenDC *) x));
35524 }
35525 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
35526 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
35527 }
35528 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
35529 return (void *)((wxDC *) ((wxMirrorDC *) x));
35530 }
35531 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
35532 return (void *)((wxDC *) ((wxMemoryDC *) x));
35533 }
35534 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
35535 return (void *)((wxDC *) ((wxWindowDC *) x));
35536 }
35537 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
35538 return (void *)((wxDC *) ((wxMetaFileDC *) x));
35539 }
35540 static void *_p_wxClientDCTo_p_wxDC(void *x) {
35541 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
35542 }
35543 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
35544 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
35545 }
35546 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
35547 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
35548 }
35549 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
35550 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
35551 }
35552 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
35553 return (void *)((wxDC *) ((wxPostScriptDC *) x));
35554 }
35555 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
35556 return (void *)((wxDC *) ((wxPrinterDC *) x));
35557 }
35558 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
35559 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
35560 }
35561 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
35562 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
35563 }
35564 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
35565 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
35566 }
35567 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
35568 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
35569 }
35570 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
35571 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
35572 }
35573 static void *_p_wxPenTo_p_wxObject(void *x) {
35574 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
35575 }
35576 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
35577 return (void *)((wxObject *) ((wxRegionIterator *) x));
35578 }
35579 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
35580 return (void *)((wxObject *) ((wxSizerItem *) x));
35581 }
35582 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
35583 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
35584 }
35585 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
35586 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
35587 }
35588 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
35589 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
35590 }
35591 static void *_p_wxIconTo_p_wxObject(void *x) {
35592 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
35593 }
35594 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
35595 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
35596 }
35597 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
35598 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
35599 }
35600 static void *_p_wxSizerTo_p_wxObject(void *x) {
35601 return (void *)((wxObject *) ((wxSizer *) x));
35602 }
35603 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
35604 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
35605 }
35606 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
35607 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
35608 }
35609 static void *_p_wxEventTo_p_wxObject(void *x) {
35610 return (void *)((wxObject *) ((wxEvent *) x));
35611 }
35612 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
35613 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
35614 }
35615 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
35616 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
35617 }
35618 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
35619 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
35620 }
35621 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
35622 return (void *)((wxObject *) ((wxPseudoDC *) x));
35623 }
35624 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
35625 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
35626 }
35627 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
35628 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
35629 }
35630 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
35631 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
35632 }
35633 static void *_p_wxDCTo_p_wxObject(void *x) {
35634 return (void *)((wxObject *) ((wxDC *) x));
35635 }
35636 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
35637 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
35638 }
35639 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
35640 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
35641 }
35642 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
35643 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
35644 }
35645 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
35646 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
35647 }
35648 static void *_p_wxControlTo_p_wxObject(void *x) {
35649 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
35650 }
35651 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
35652 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
35653 }
35654 static void *_p_wxClientDCTo_p_wxObject(void *x) {
35655 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
35656 }
35657 static void *_p_wxFSFileTo_p_wxObject(void *x) {
35658 return (void *)((wxObject *) ((wxFSFile *) x));
35659 }
35660 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
35661 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
35662 }
35663 static void *_p_wxRegionTo_p_wxObject(void *x) {
35664 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
35665 }
35666 static void *_p_wxPySizerTo_p_wxObject(void *x) {
35667 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
35668 }
35669 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
35670 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
35671 }
35672 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
35673 return (void *)((wxObject *) ((wxGDIObject *) x));
35674 }
35675 static void *_p_wxEffectsTo_p_wxObject(void *x) {
35676 return (void *)((wxObject *) ((wxEffects *) x));
35677 }
35678 static void *_p_wxPyEventTo_p_wxObject(void *x) {
35679 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
35680 }
35681 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
35682 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
35683 }
35684 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
35685 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
35686 }
35687 static void *_p_wxShowEventTo_p_wxObject(void *x) {
35688 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
35689 }
35690 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
35691 return (void *)((wxObject *) ((wxMenuItem *) x));
35692 }
35693 static void *_p_wxDateEventTo_p_wxObject(void *x) {
35694 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
35695 }
35696 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
35697 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
35698 }
35699 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
35700 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
35701 }
35702 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
35703 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
35704 }
35705 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
35706 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
35707 }
35708 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
35709 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
35710 }
35711 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
35712 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
35713 }
35714 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
35715 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
35716 }
35717 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
35718 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
35719 }
35720 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
35721 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
35722 }
35723 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
35724 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
35725 }
35726 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
35727 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
35728 }
35729 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
35730 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
35731 }
35732 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
35733 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
35734 }
35735 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
35736 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
35737 }
35738 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
35739 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
35740 }
35741 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
35742 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
35743 }
35744 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
35745 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
35746 }
35747 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
35748 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
35749 }
35750 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
35751 return (void *)((wxObject *) ((wxImageHandler *) x));
35752 }
35753 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
35754 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
35755 }
35756 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
35757 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
35758 }
35759 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
35760 return (void *)((wxObject *) ((wxEvtHandler *) x));
35761 }
35762 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
35763 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
35764 }
35765 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
35766 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
35767 }
35768 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
35769 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
35770 }
35771 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
35772 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
35773 }
35774 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
35775 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
35776 }
35777 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
35778 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
35779 }
35780 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
35781 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
35782 }
35783 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
35784 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
35785 }
35786 static void *_p_wxImageTo_p_wxObject(void *x) {
35787 return (void *)((wxObject *) ((wxImage *) x));
35788 }
35789 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
35790 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
35791 }
35792 static void *_p_wxPaletteTo_p_wxObject(void *x) {
35793 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
35794 }
35795 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
35796 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
35797 }
35798 static void *_p_wxImageListTo_p_wxObject(void *x) {
35799 return (void *)((wxObject *) ((wxImageList *) x));
35800 }
35801 static void *_p_wxGCDCTo_p_wxObject(void *x) {
35802 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
35803 }
35804 static void *_p_wxCursorTo_p_wxObject(void *x) {
35805 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
35806 }
35807 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
35808 return (void *)((wxObject *) ((wxEncodingConverter *) x));
35809 }
35810 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
35811 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
35812 }
35813 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
35814 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
35815 }
35816 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
35817 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
35818 }
35819 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
35820 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
35821 }
35822 static void *_p_wxWindowTo_p_wxObject(void *x) {
35823 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
35824 }
35825 static void *_p_wxMenuTo_p_wxObject(void *x) {
35826 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
35827 }
35828 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
35829 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
35830 }
35831 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
35832 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
35833 }
35834 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
35835 return (void *)((wxObject *) ((wxFileSystem *) x));
35836 }
35837 static void *_p_wxBitmapTo_p_wxObject(void *x) {
35838 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
35839 }
35840 static void *_p_wxMaskTo_p_wxObject(void *x) {
35841 return (void *)((wxObject *) ((wxMask *) x));
35842 }
35843 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
35844 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
35845 }
35846 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
35847 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
35848 }
35849 static void *_p_wxPyAppTo_p_wxObject(void *x) {
35850 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
35851 }
35852 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
35853 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
35854 }
35855 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
35856 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
35857 }
35858 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
35859 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
35860 }
35861 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
35862 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
35863 }
35864 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
35865 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
35866 }
35867 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
35868 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
35869 }
35870 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
35871 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
35872 }
35873 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
35874 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
35875 }
35876 static void *_p_wxFontTo_p_wxObject(void *x) {
35877 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
35878 }
35879 static void *_p_wxBrushTo_p_wxObject(void *x) {
35880 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
35881 }
35882 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
35883 return (void *)((wxObject *) ((wxMetaFile *) x));
35884 }
35885 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
35886 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
35887 }
35888 static void *_p_wxColourTo_p_wxObject(void *x) {
35889 return (void *)((wxObject *) ((wxColour *) x));
35890 }
35891 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
35892 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
35893 }
35894 static void *_p_wxValidatorTo_p_wxObject(void *x) {
35895 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
35896 }
35897 static void *_p_wxControlTo_p_wxWindow(void *x) {
35898 return (void *)((wxWindow *) ((wxControl *) x));
35899 }
35900 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
35901 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
35902 }
35903 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
35904 return (void *)((wxWindow *) ((wxMenuBar *) x));
35905 }
35906 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
35907 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
35908 }
35909 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
35910 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
35911 }
35912 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
35913 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
35914 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
35915 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};
35916 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
35917 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
35918 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
35919 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
35920 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
35921 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
35922 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
35923 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
35924 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
35925 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
35926 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
35927 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
35928 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
35929 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
35930 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
35931 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
35932 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
35933 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
35934 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
35935 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
35936 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
35937 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
35938 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
35939 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
35940 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
35941 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
35942 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
35943 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
35944 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
35945 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
35946 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
35947 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
35948 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
35949 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
35950 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
35951 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
35952 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
35953 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
35954 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
35955 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
35956 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
35957 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
35958 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
35959 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
35960 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
35961 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
35962 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
35963 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
35964 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
35965 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
35966 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
35967 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
35968 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
35969 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
35970 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
35971 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
35972 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
35973 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
35974 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
35975 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
35976 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
35977 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
35978 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
35979 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
35980 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
35981 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
35982 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
35983 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
35984 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
35985 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
35986 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
35987 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
35988 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
35989 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
35990 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
35991 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
35992 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
35993 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
35994 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
35995 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
35996 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
35997 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
35998 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
35999 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
36000 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
36001 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
36002 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
36003 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
36004 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
36005 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
36006 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
36007 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
36008 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
36009 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
36010 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
36011 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
36012 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
36013 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
36014 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
36015 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
36016 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
36017 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
36018 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
36019 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
36020 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
36021 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
36022 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
36023 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
36024 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
36025 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
36026 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
36027 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
36028 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
36029 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
36030 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
36031 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
36032 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
36033 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
36034 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
36035 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
36036 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
36037 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
36038 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
36039 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
36040 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
36041 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
36042 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
36043 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
36044 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
36045 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
36046 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
36047 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
36048 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
36049 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
36050 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
36051 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
36052 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
36053 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
36054 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
36055 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
36056 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
36057 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
36058 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
36059 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
36060 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
36061 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
36062 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
36063 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
36064 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
36065 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
36066 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
36067 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
36068 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
36069 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
36070
36071 static swig_type_info *swig_type_initial[] = {
36072 &_swigt__p_buffer,
36073 &_swigt__p_char,
36074 &_swigt__p_double,
36075 &_swigt__p_form_ops_t,
36076 &_swigt__p_int,
36077 &_swigt__p_unsigned_char,
36078 &_swigt__p_unsigned_int,
36079 &_swigt__p_unsigned_long,
36080 &_swigt__p_void,
36081 &_swigt__p_wxANIHandler,
36082 &_swigt__p_wxAcceleratorTable,
36083 &_swigt__p_wxActivateEvent,
36084 &_swigt__p_wxAlphaPixelData,
36085 &_swigt__p_wxAlphaPixelData_Accessor,
36086 &_swigt__p_wxAutoBufferedPaintDC,
36087 &_swigt__p_wxBMPHandler,
36088 &_swigt__p_wxBitmap,
36089 &_swigt__p_wxBoxSizer,
36090 &_swigt__p_wxBrush,
36091 &_swigt__p_wxBrushList,
36092 &_swigt__p_wxBufferedDC,
36093 &_swigt__p_wxBufferedPaintDC,
36094 &_swigt__p_wxCURHandler,
36095 &_swigt__p_wxChar,
36096 &_swigt__p_wxChildFocusEvent,
36097 &_swigt__p_wxClientDC,
36098 &_swigt__p_wxClipboardTextEvent,
36099 &_swigt__p_wxCloseEvent,
36100 &_swigt__p_wxColor,
36101 &_swigt__p_wxColour,
36102 &_swigt__p_wxColourDatabase,
36103 &_swigt__p_wxCommandEvent,
36104 &_swigt__p_wxContextMenuEvent,
36105 &_swigt__p_wxControl,
36106 &_swigt__p_wxControlWithItems,
36107 &_swigt__p_wxCursor,
36108 &_swigt__p_wxDC,
36109 &_swigt__p_wxDCOverlay,
36110 &_swigt__p_wxDash,
36111 &_swigt__p_wxDateEvent,
36112 &_swigt__p_wxDisplayChangedEvent,
36113 &_swigt__p_wxDropFilesEvent,
36114 &_swigt__p_wxDuplexMode,
36115 &_swigt__p_wxEffects,
36116 &_swigt__p_wxEncodingConverter,
36117 &_swigt__p_wxEraseEvent,
36118 &_swigt__p_wxEvent,
36119 &_swigt__p_wxEvtHandler,
36120 &_swigt__p_wxFSFile,
36121 &_swigt__p_wxFileSystem,
36122 &_swigt__p_wxFlexGridSizer,
36123 &_swigt__p_wxFocusEvent,
36124 &_swigt__p_wxFont,
36125 &_swigt__p_wxFontList,
36126 &_swigt__p_wxFontMapper,
36127 &_swigt__p_wxGBSizerItem,
36128 &_swigt__p_wxGCDC,
36129 &_swigt__p_wxGDIObjListBase,
36130 &_swigt__p_wxGDIObject,
36131 &_swigt__p_wxGIFHandler,
36132 &_swigt__p_wxGraphicsContext,
36133 &_swigt__p_wxGraphicsPath,
36134 &_swigt__p_wxGridBagSizer,
36135 &_swigt__p_wxGridSizer,
36136 &_swigt__p_wxHeaderButtonParams,
36137 &_swigt__p_wxICOHandler,
36138 &_swigt__p_wxIcon,
36139 &_swigt__p_wxIconBundle,
36140 &_swigt__p_wxIconLocation,
36141 &_swigt__p_wxIconizeEvent,
36142 &_swigt__p_wxIdleEvent,
36143 &_swigt__p_wxImage,
36144 &_swigt__p_wxImageHandler,
36145 &_swigt__p_wxImageList,
36146 &_swigt__p_wxIndividualLayoutConstraint,
36147 &_swigt__p_wxInitDialogEvent,
36148 &_swigt__p_wxJPEGHandler,
36149 &_swigt__p_wxKeyEvent,
36150 &_swigt__p_wxLanguageInfo,
36151 &_swigt__p_wxLayoutConstraints,
36152 &_swigt__p_wxLocale,
36153 &_swigt__p_wxMask,
36154 &_swigt__p_wxMaximizeEvent,
36155 &_swigt__p_wxMemoryDC,
36156 &_swigt__p_wxMenu,
36157 &_swigt__p_wxMenuBar,
36158 &_swigt__p_wxMenuEvent,
36159 &_swigt__p_wxMenuItem,
36160 &_swigt__p_wxMetaFile,
36161 &_swigt__p_wxMetaFileDC,
36162 &_swigt__p_wxMirrorDC,
36163 &_swigt__p_wxMouseCaptureChangedEvent,
36164 &_swigt__p_wxMouseCaptureLostEvent,
36165 &_swigt__p_wxMouseEvent,
36166 &_swigt__p_wxMoveEvent,
36167 &_swigt__p_wxNativeEncodingInfo,
36168 &_swigt__p_wxNativeFontInfo,
36169 &_swigt__p_wxNativePixelData,
36170 &_swigt__p_wxNativePixelData_Accessor,
36171 &_swigt__p_wxNavigationKeyEvent,
36172 &_swigt__p_wxNcPaintEvent,
36173 &_swigt__p_wxNotifyEvent,
36174 &_swigt__p_wxObject,
36175 &_swigt__p_wxOverlay,
36176 &_swigt__p_wxPCXHandler,
36177 &_swigt__p_wxPNGHandler,
36178 &_swigt__p_wxPNMHandler,
36179 &_swigt__p_wxPaintDC,
36180 &_swigt__p_wxPaintEvent,
36181 &_swigt__p_wxPalette,
36182 &_swigt__p_wxPaletteChangedEvent,
36183 &_swigt__p_wxPaperSize,
36184 &_swigt__p_wxPen,
36185 &_swigt__p_wxPenList,
36186 &_swigt__p_wxPixelDataBase,
36187 &_swigt__p_wxPoint,
36188 &_swigt__p_wxPoint2D,
36189 &_swigt__p_wxPostScriptDC,
36190 &_swigt__p_wxPrintData,
36191 &_swigt__p_wxPrinterDC,
36192 &_swigt__p_wxPseudoDC,
36193 &_swigt__p_wxPyApp,
36194 &_swigt__p_wxPyCommandEvent,
36195 &_swigt__p_wxPyEvent,
36196 &_swigt__p_wxPyFontEnumerator,
36197 &_swigt__p_wxPyImageHandler,
36198 &_swigt__p_wxPyLocale,
36199 &_swigt__p_wxPySizer,
36200 &_swigt__p_wxPyValidator,
36201 &_swigt__p_wxQueryNewPaletteEvent,
36202 &_swigt__p_wxRect,
36203 &_swigt__p_wxRegion,
36204 &_swigt__p_wxRegionIterator,
36205 &_swigt__p_wxRendererNative,
36206 &_swigt__p_wxRendererVersion,
36207 &_swigt__p_wxScreenDC,
36208 &_swigt__p_wxScrollEvent,
36209 &_swigt__p_wxScrollWinEvent,
36210 &_swigt__p_wxSetCursorEvent,
36211 &_swigt__p_wxShowEvent,
36212 &_swigt__p_wxSize,
36213 &_swigt__p_wxSizeEvent,
36214 &_swigt__p_wxSizer,
36215 &_swigt__p_wxSizerItem,
36216 &_swigt__p_wxSplitterRenderParams,
36217 &_swigt__p_wxStaticBoxSizer,
36218 &_swigt__p_wxStdDialogButtonSizer,
36219 &_swigt__p_wxStockGDI,
36220 &_swigt__p_wxString,
36221 &_swigt__p_wxSysColourChangedEvent,
36222 &_swigt__p_wxTIFFHandler,
36223 &_swigt__p_wxUpdateUIEvent,
36224 &_swigt__p_wxValidator,
36225 &_swigt__p_wxWindow,
36226 &_swigt__p_wxWindowCreateEvent,
36227 &_swigt__p_wxWindowDC,
36228 &_swigt__p_wxWindowDestroyEvent,
36229 &_swigt__p_wxXPMHandler,
36230 };
36231
36232 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
36233 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
36234 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
36235 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
36236 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
36237 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
36238 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
36239 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
36240 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
36241 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
36242 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
36243 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36244 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
36245 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
36246 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
36247 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}};
36248 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36249 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
36250 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxClientDC, 0, 0},{0, 0, 0, 0}};
36251 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
36252 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
36253 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
36254 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
36255 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
36256 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
36257 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
36258 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
36259 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
36260 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
36261 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
36262 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
36263 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
36264 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
36265 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}};
36266 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}};
36267 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
36268 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
36269 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
36270 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
36271 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
36272 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
36273 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
36274 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
36275 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
36276 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}};
36277 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
36278 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}};
36279 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
36280 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
36281 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
36282 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
36283 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
36284 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
36285 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
36286 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
36287 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
36288 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
36289 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
36290 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
36291 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36292 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36293 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
36294 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
36295 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
36296 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
36297 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
36298 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36299 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36300 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
36301 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
36302 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36303 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36304 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36305 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36306 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36307 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36308 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
36309 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
36310 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
36311 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
36312 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
36313 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
36314 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
36315 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
36316 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
36317 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
36318 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
36319 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
36320 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36321 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36322 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36323 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
36324 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
36325 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
36326 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
36327 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36328 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36329 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
36330 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
36331 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
36332 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
36333 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
36334 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
36335 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
36336 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
36337 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
36338 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
36339 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
36340 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
36341 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
36342 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
36343 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
36344 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36345 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36346 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
36347 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
36348 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36349 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36350 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
36351 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
36352 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
36353 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
36354 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36355 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36356 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
36357 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36358 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36359 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
36360 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
36361 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
36362 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_wxGCDC, _p_wxGCDCTo_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_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_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_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_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_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}};
36363 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
36364 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36365 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
36366 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
36367 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
36368 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
36369 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}};
36370 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
36371 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
36372 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
36373 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
36374 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
36375 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
36376 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
36377 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
36378 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
36379 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
36380 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
36381 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
36382 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
36383 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
36384 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
36385 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
36386 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
36387 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
36388 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}};
36389 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
36390
36391 static swig_cast_info *swig_cast_initial[] = {
36392 _swigc__p_buffer,
36393 _swigc__p_char,
36394 _swigc__p_double,
36395 _swigc__p_form_ops_t,
36396 _swigc__p_int,
36397 _swigc__p_unsigned_char,
36398 _swigc__p_unsigned_int,
36399 _swigc__p_unsigned_long,
36400 _swigc__p_void,
36401 _swigc__p_wxANIHandler,
36402 _swigc__p_wxAcceleratorTable,
36403 _swigc__p_wxActivateEvent,
36404 _swigc__p_wxAlphaPixelData,
36405 _swigc__p_wxAlphaPixelData_Accessor,
36406 _swigc__p_wxAutoBufferedPaintDC,
36407 _swigc__p_wxBMPHandler,
36408 _swigc__p_wxBitmap,
36409 _swigc__p_wxBoxSizer,
36410 _swigc__p_wxBrush,
36411 _swigc__p_wxBrushList,
36412 _swigc__p_wxBufferedDC,
36413 _swigc__p_wxBufferedPaintDC,
36414 _swigc__p_wxCURHandler,
36415 _swigc__p_wxChar,
36416 _swigc__p_wxChildFocusEvent,
36417 _swigc__p_wxClientDC,
36418 _swigc__p_wxClipboardTextEvent,
36419 _swigc__p_wxCloseEvent,
36420 _swigc__p_wxColor,
36421 _swigc__p_wxColour,
36422 _swigc__p_wxColourDatabase,
36423 _swigc__p_wxCommandEvent,
36424 _swigc__p_wxContextMenuEvent,
36425 _swigc__p_wxControl,
36426 _swigc__p_wxControlWithItems,
36427 _swigc__p_wxCursor,
36428 _swigc__p_wxDC,
36429 _swigc__p_wxDCOverlay,
36430 _swigc__p_wxDash,
36431 _swigc__p_wxDateEvent,
36432 _swigc__p_wxDisplayChangedEvent,
36433 _swigc__p_wxDropFilesEvent,
36434 _swigc__p_wxDuplexMode,
36435 _swigc__p_wxEffects,
36436 _swigc__p_wxEncodingConverter,
36437 _swigc__p_wxEraseEvent,
36438 _swigc__p_wxEvent,
36439 _swigc__p_wxEvtHandler,
36440 _swigc__p_wxFSFile,
36441 _swigc__p_wxFileSystem,
36442 _swigc__p_wxFlexGridSizer,
36443 _swigc__p_wxFocusEvent,
36444 _swigc__p_wxFont,
36445 _swigc__p_wxFontList,
36446 _swigc__p_wxFontMapper,
36447 _swigc__p_wxGBSizerItem,
36448 _swigc__p_wxGCDC,
36449 _swigc__p_wxGDIObjListBase,
36450 _swigc__p_wxGDIObject,
36451 _swigc__p_wxGIFHandler,
36452 _swigc__p_wxGraphicsContext,
36453 _swigc__p_wxGraphicsPath,
36454 _swigc__p_wxGridBagSizer,
36455 _swigc__p_wxGridSizer,
36456 _swigc__p_wxHeaderButtonParams,
36457 _swigc__p_wxICOHandler,
36458 _swigc__p_wxIcon,
36459 _swigc__p_wxIconBundle,
36460 _swigc__p_wxIconLocation,
36461 _swigc__p_wxIconizeEvent,
36462 _swigc__p_wxIdleEvent,
36463 _swigc__p_wxImage,
36464 _swigc__p_wxImageHandler,
36465 _swigc__p_wxImageList,
36466 _swigc__p_wxIndividualLayoutConstraint,
36467 _swigc__p_wxInitDialogEvent,
36468 _swigc__p_wxJPEGHandler,
36469 _swigc__p_wxKeyEvent,
36470 _swigc__p_wxLanguageInfo,
36471 _swigc__p_wxLayoutConstraints,
36472 _swigc__p_wxLocale,
36473 _swigc__p_wxMask,
36474 _swigc__p_wxMaximizeEvent,
36475 _swigc__p_wxMemoryDC,
36476 _swigc__p_wxMenu,
36477 _swigc__p_wxMenuBar,
36478 _swigc__p_wxMenuEvent,
36479 _swigc__p_wxMenuItem,
36480 _swigc__p_wxMetaFile,
36481 _swigc__p_wxMetaFileDC,
36482 _swigc__p_wxMirrorDC,
36483 _swigc__p_wxMouseCaptureChangedEvent,
36484 _swigc__p_wxMouseCaptureLostEvent,
36485 _swigc__p_wxMouseEvent,
36486 _swigc__p_wxMoveEvent,
36487 _swigc__p_wxNativeEncodingInfo,
36488 _swigc__p_wxNativeFontInfo,
36489 _swigc__p_wxNativePixelData,
36490 _swigc__p_wxNativePixelData_Accessor,
36491 _swigc__p_wxNavigationKeyEvent,
36492 _swigc__p_wxNcPaintEvent,
36493 _swigc__p_wxNotifyEvent,
36494 _swigc__p_wxObject,
36495 _swigc__p_wxOverlay,
36496 _swigc__p_wxPCXHandler,
36497 _swigc__p_wxPNGHandler,
36498 _swigc__p_wxPNMHandler,
36499 _swigc__p_wxPaintDC,
36500 _swigc__p_wxPaintEvent,
36501 _swigc__p_wxPalette,
36502 _swigc__p_wxPaletteChangedEvent,
36503 _swigc__p_wxPaperSize,
36504 _swigc__p_wxPen,
36505 _swigc__p_wxPenList,
36506 _swigc__p_wxPixelDataBase,
36507 _swigc__p_wxPoint,
36508 _swigc__p_wxPoint2D,
36509 _swigc__p_wxPostScriptDC,
36510 _swigc__p_wxPrintData,
36511 _swigc__p_wxPrinterDC,
36512 _swigc__p_wxPseudoDC,
36513 _swigc__p_wxPyApp,
36514 _swigc__p_wxPyCommandEvent,
36515 _swigc__p_wxPyEvent,
36516 _swigc__p_wxPyFontEnumerator,
36517 _swigc__p_wxPyImageHandler,
36518 _swigc__p_wxPyLocale,
36519 _swigc__p_wxPySizer,
36520 _swigc__p_wxPyValidator,
36521 _swigc__p_wxQueryNewPaletteEvent,
36522 _swigc__p_wxRect,
36523 _swigc__p_wxRegion,
36524 _swigc__p_wxRegionIterator,
36525 _swigc__p_wxRendererNative,
36526 _swigc__p_wxRendererVersion,
36527 _swigc__p_wxScreenDC,
36528 _swigc__p_wxScrollEvent,
36529 _swigc__p_wxScrollWinEvent,
36530 _swigc__p_wxSetCursorEvent,
36531 _swigc__p_wxShowEvent,
36532 _swigc__p_wxSize,
36533 _swigc__p_wxSizeEvent,
36534 _swigc__p_wxSizer,
36535 _swigc__p_wxSizerItem,
36536 _swigc__p_wxSplitterRenderParams,
36537 _swigc__p_wxStaticBoxSizer,
36538 _swigc__p_wxStdDialogButtonSizer,
36539 _swigc__p_wxStockGDI,
36540 _swigc__p_wxString,
36541 _swigc__p_wxSysColourChangedEvent,
36542 _swigc__p_wxTIFFHandler,
36543 _swigc__p_wxUpdateUIEvent,
36544 _swigc__p_wxValidator,
36545 _swigc__p_wxWindow,
36546 _swigc__p_wxWindowCreateEvent,
36547 _swigc__p_wxWindowDC,
36548 _swigc__p_wxWindowDestroyEvent,
36549 _swigc__p_wxXPMHandler,
36550 };
36551
36552
36553 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
36554
36555 static swig_const_info swig_const_table[] = {
36556 {0, 0, 0, 0.0, 0, 0}};
36557
36558 #ifdef __cplusplus
36559 }
36560 #endif
36561 /* -----------------------------------------------------------------------------
36562 * Type initialization:
36563 * This problem is tough by the requirement that no dynamic
36564 * memory is used. Also, since swig_type_info structures store pointers to
36565 * swig_cast_info structures and swig_cast_info structures store pointers back
36566 * to swig_type_info structures, we need some lookup code at initialization.
36567 * The idea is that swig generates all the structures that are needed.
36568 * The runtime then collects these partially filled structures.
36569 * The SWIG_InitializeModule function takes these initial arrays out of
36570 * swig_module, and does all the lookup, filling in the swig_module.types
36571 * array with the correct data and linking the correct swig_cast_info
36572 * structures together.
36573 *
36574 * The generated swig_type_info structures are assigned staticly to an initial
36575 * array. We just loop though that array, and handle each type individually.
36576 * First we lookup if this type has been already loaded, and if so, use the
36577 * loaded structure instead of the generated one. Then we have to fill in the
36578 * cast linked list. The cast data is initially stored in something like a
36579 * two-dimensional array. Each row corresponds to a type (there are the same
36580 * number of rows as there are in the swig_type_initial array). Each entry in
36581 * a column is one of the swig_cast_info structures for that type.
36582 * The cast_initial array is actually an array of arrays, because each row has
36583 * a variable number of columns. So to actually build the cast linked list,
36584 * we find the array of casts associated with the type, and loop through it
36585 * adding the casts to the list. The one last trick we need to do is making
36586 * sure the type pointer in the swig_cast_info struct is correct.
36587 *
36588 * First off, we lookup the cast->type name to see if it is already loaded.
36589 * There are three cases to handle:
36590 * 1) If the cast->type has already been loaded AND the type we are adding
36591 * casting info to has not been loaded (it is in this module), THEN we
36592 * replace the cast->type pointer with the type pointer that has already
36593 * been loaded.
36594 * 2) If BOTH types (the one we are adding casting info to, and the
36595 * cast->type) are loaded, THEN the cast info has already been loaded by
36596 * the previous module so we just ignore it.
36597 * 3) Finally, if cast->type has not already been loaded, then we add that
36598 * swig_cast_info to the linked list (because the cast->type) pointer will
36599 * be correct.
36600 * ----------------------------------------------------------------------------- */
36601
36602 #ifdef __cplusplus
36603 extern "C" {
36604 #if 0
36605 } /* c-mode */
36606 #endif
36607 #endif
36608
36609 #if 0
36610 #define SWIGRUNTIME_DEBUG
36611 #endif
36612
36613 SWIGRUNTIME void
36614 SWIG_InitializeModule(void *clientdata) {
36615 size_t i;
36616 swig_module_info *module_head;
36617 static int init_run = 0;
36618
36619 clientdata = clientdata;
36620
36621 if (init_run) return;
36622 init_run = 1;
36623
36624 /* Initialize the swig_module */
36625 swig_module.type_initial = swig_type_initial;
36626 swig_module.cast_initial = swig_cast_initial;
36627
36628 /* Try and load any already created modules */
36629 module_head = SWIG_GetModule(clientdata);
36630 if (module_head) {
36631 swig_module.next = module_head->next;
36632 module_head->next = &swig_module;
36633 } else {
36634 /* This is the first module loaded */
36635 swig_module.next = &swig_module;
36636 SWIG_SetModule(clientdata, &swig_module);
36637 }
36638
36639 /* Now work on filling in swig_module.types */
36640 #ifdef SWIGRUNTIME_DEBUG
36641 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
36642 #endif
36643 for (i = 0; i < swig_module.size; ++i) {
36644 swig_type_info *type = 0;
36645 swig_type_info *ret;
36646 swig_cast_info *cast;
36647
36648 #ifdef SWIGRUNTIME_DEBUG
36649 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36650 #endif
36651
36652 /* if there is another module already loaded */
36653 if (swig_module.next != &swig_module) {
36654 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36655 }
36656 if (type) {
36657 /* Overwrite clientdata field */
36658 #ifdef SWIGRUNTIME_DEBUG
36659 printf("SWIG_InitializeModule: found type %s\n", type->name);
36660 #endif
36661 if (swig_module.type_initial[i]->clientdata) {
36662 type->clientdata = swig_module.type_initial[i]->clientdata;
36663 #ifdef SWIGRUNTIME_DEBUG
36664 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
36665 #endif
36666 }
36667 } else {
36668 type = swig_module.type_initial[i];
36669 }
36670
36671 /* Insert casting types */
36672 cast = swig_module.cast_initial[i];
36673 while (cast->type) {
36674 /* Don't need to add information already in the list */
36675 ret = 0;
36676 #ifdef SWIGRUNTIME_DEBUG
36677 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
36678 #endif
36679 if (swig_module.next != &swig_module) {
36680 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
36681 #ifdef SWIGRUNTIME_DEBUG
36682 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
36683 #endif
36684 }
36685 if (ret) {
36686 if (type == swig_module.type_initial[i]) {
36687 #ifdef SWIGRUNTIME_DEBUG
36688 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
36689 #endif
36690 cast->type = ret;
36691 ret = 0;
36692 } else {
36693 /* Check for casting already in the list */
36694 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
36695 #ifdef SWIGRUNTIME_DEBUG
36696 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
36697 #endif
36698 if (!ocast) ret = 0;
36699 }
36700 }
36701
36702 if (!ret) {
36703 #ifdef SWIGRUNTIME_DEBUG
36704 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
36705 #endif
36706 if (type->cast) {
36707 type->cast->prev = cast;
36708 cast->next = type->cast;
36709 }
36710 type->cast = cast;
36711 }
36712 cast++;
36713 }
36714 /* Set entry in modules->types array equal to the type */
36715 swig_module.types[i] = type;
36716 }
36717 swig_module.types[i] = 0;
36718
36719 #ifdef SWIGRUNTIME_DEBUG
36720 printf("**** SWIG_InitializeModule: Cast List ******\n");
36721 for (i = 0; i < swig_module.size; ++i) {
36722 int j = 0;
36723 swig_cast_info *cast = swig_module.cast_initial[i];
36724 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36725 while (cast->type) {
36726 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
36727 cast++;
36728 ++j;
36729 }
36730 printf("---- Total casts: %d\n",j);
36731 }
36732 printf("**** SWIG_InitializeModule: Cast List ******\n");
36733 #endif
36734 }
36735
36736 /* This function will propagate the clientdata field of type to
36737 * any new swig_type_info structures that have been added into the list
36738 * of equivalent types. It is like calling
36739 * SWIG_TypeClientData(type, clientdata) a second time.
36740 */
36741 SWIGRUNTIME void
36742 SWIG_PropagateClientData(void) {
36743 size_t i;
36744 swig_cast_info *equiv;
36745 static int init_run = 0;
36746
36747 if (init_run) return;
36748 init_run = 1;
36749
36750 for (i = 0; i < swig_module.size; i++) {
36751 if (swig_module.types[i]->clientdata) {
36752 equiv = swig_module.types[i]->cast;
36753 while (equiv) {
36754 if (!equiv->converter) {
36755 if (equiv->type && !equiv->type->clientdata)
36756 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
36757 }
36758 equiv = equiv->next;
36759 }
36760 }
36761 }
36762 }
36763
36764 #ifdef __cplusplus
36765 #if 0
36766 {
36767 /* c-mode */
36768 #endif
36769 }
36770 #endif
36771
36772
36773
36774 #ifdef __cplusplus
36775 extern "C" {
36776 #endif
36777
36778 /* Python-specific SWIG API */
36779 #define SWIG_newvarlink() SWIG_Python_newvarlink()
36780 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
36781 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
36782
36783 /* -----------------------------------------------------------------------------
36784 * global variable support code.
36785 * ----------------------------------------------------------------------------- */
36786
36787 typedef struct swig_globalvar {
36788 char *name; /* Name of global variable */
36789 PyObject *(*get_attr)(void); /* Return the current value */
36790 int (*set_attr)(PyObject *); /* Set the value */
36791 struct swig_globalvar *next;
36792 } swig_globalvar;
36793
36794 typedef struct swig_varlinkobject {
36795 PyObject_HEAD
36796 swig_globalvar *vars;
36797 } swig_varlinkobject;
36798
36799 SWIGINTERN PyObject *
36800 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
36801 return PyString_FromString("<Swig global variables>");
36802 }
36803
36804 SWIGINTERN PyObject *
36805 swig_varlink_str(swig_varlinkobject *v) {
36806 PyObject *str = PyString_FromString("(");
36807 swig_globalvar *var;
36808 for (var = v->vars; var; var=var->next) {
36809 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
36810 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
36811 }
36812 PyString_ConcatAndDel(&str,PyString_FromString(")"));
36813 return str;
36814 }
36815
36816 SWIGINTERN int
36817 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
36818 PyObject *str = swig_varlink_str(v);
36819 fprintf(fp,"Swig global variables ");
36820 fprintf(fp,"%s\n", PyString_AsString(str));
36821 Py_DECREF(str);
36822 return 0;
36823 }
36824
36825 SWIGINTERN void
36826 swig_varlink_dealloc(swig_varlinkobject *v) {
36827 swig_globalvar *var = v->vars;
36828 while (var) {
36829 swig_globalvar *n = var->next;
36830 free(var->name);
36831 free(var);
36832 var = n;
36833 }
36834 }
36835
36836 SWIGINTERN PyObject *
36837 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
36838 PyObject *res = NULL;
36839 swig_globalvar *var = v->vars;
36840 while (var) {
36841 if (strcmp(var->name,n) == 0) {
36842 res = (*var->get_attr)();
36843 break;
36844 }
36845 var = var->next;
36846 }
36847 if (res == NULL && !PyErr_Occurred()) {
36848 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36849 }
36850 return res;
36851 }
36852
36853 SWIGINTERN int
36854 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
36855 int res = 1;
36856 swig_globalvar *var = v->vars;
36857 while (var) {
36858 if (strcmp(var->name,n) == 0) {
36859 res = (*var->set_attr)(p);
36860 break;
36861 }
36862 var = var->next;
36863 }
36864 if (res == 1 && !PyErr_Occurred()) {
36865 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36866 }
36867 return res;
36868 }
36869
36870 SWIGINTERN PyTypeObject*
36871 swig_varlink_type(void) {
36872 static char varlink__doc__[] = "Swig var link object";
36873 static PyTypeObject varlink_type;
36874 static int type_init = 0;
36875 if (!type_init) {
36876 const PyTypeObject tmp
36877 = {
36878 PyObject_HEAD_INIT(NULL)
36879 0, /* Number of items in variable part (ob_size) */
36880 (char *)"swigvarlink", /* Type name (tp_name) */
36881 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
36882 0, /* Itemsize (tp_itemsize) */
36883 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
36884 (printfunc) swig_varlink_print, /* Print (tp_print) */
36885 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
36886 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
36887 0, /* tp_compare */
36888 (reprfunc) swig_varlink_repr, /* tp_repr */
36889 0, /* tp_as_number */
36890 0, /* tp_as_sequence */
36891 0, /* tp_as_mapping */
36892 0, /* tp_hash */
36893 0, /* tp_call */
36894 (reprfunc)swig_varlink_str, /* tp_str */
36895 0, /* tp_getattro */
36896 0, /* tp_setattro */
36897 0, /* tp_as_buffer */
36898 0, /* tp_flags */
36899 varlink__doc__, /* tp_doc */
36900 0, /* tp_traverse */
36901 0, /* tp_clear */
36902 0, /* tp_richcompare */
36903 0, /* tp_weaklistoffset */
36904 #if PY_VERSION_HEX >= 0x02020000
36905 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
36906 #endif
36907 #if PY_VERSION_HEX >= 0x02030000
36908 0, /* tp_del */
36909 #endif
36910 #ifdef COUNT_ALLOCS
36911 0,0,0,0 /* tp_alloc -> tp_next */
36912 #endif
36913 };
36914 varlink_type = tmp;
36915 varlink_type.ob_type = &PyType_Type;
36916 type_init = 1;
36917 }
36918 return &varlink_type;
36919 }
36920
36921 /* Create a variable linking object for use later */
36922 SWIGINTERN PyObject *
36923 SWIG_Python_newvarlink(void) {
36924 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
36925 if (result) {
36926 result->vars = 0;
36927 }
36928 return ((PyObject*) result);
36929 }
36930
36931 SWIGINTERN void
36932 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
36933 swig_varlinkobject *v = (swig_varlinkobject *) p;
36934 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
36935 if (gv) {
36936 size_t size = strlen(name)+1;
36937 gv->name = (char *)malloc(size);
36938 if (gv->name) {
36939 strncpy(gv->name,name,size);
36940 gv->get_attr = get_attr;
36941 gv->set_attr = set_attr;
36942 gv->next = v->vars;
36943 }
36944 }
36945 v->vars = gv;
36946 }
36947
36948 SWIGINTERN PyObject *
36949 SWIG_globals() {
36950 static PyObject *_SWIG_globals = 0;
36951 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
36952 return _SWIG_globals;
36953 }
36954
36955 /* -----------------------------------------------------------------------------
36956 * constants/methods manipulation
36957 * ----------------------------------------------------------------------------- */
36958
36959 /* Install Constants */
36960 SWIGINTERN void
36961 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
36962 PyObject *obj = 0;
36963 size_t i;
36964 for (i = 0; constants[i].type; ++i) {
36965 switch(constants[i].type) {
36966 case SWIG_PY_POINTER:
36967 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
36968 break;
36969 case SWIG_PY_BINARY:
36970 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
36971 break;
36972 default:
36973 obj = 0;
36974 break;
36975 }
36976 if (obj) {
36977 PyDict_SetItemString(d, constants[i].name, obj);
36978 Py_DECREF(obj);
36979 }
36980 }
36981 }
36982
36983 /* -----------------------------------------------------------------------------*/
36984 /* Fix SwigMethods to carry the callback ptrs when needed */
36985 /* -----------------------------------------------------------------------------*/
36986
36987 SWIGINTERN void
36988 SWIG_Python_FixMethods(PyMethodDef *methods,
36989 swig_const_info *const_table,
36990 swig_type_info **types,
36991 swig_type_info **types_initial) {
36992 size_t i;
36993 for (i = 0; methods[i].ml_name; ++i) {
36994 const char *c = methods[i].ml_doc;
36995 if (c && (c = strstr(c, "swig_ptr: "))) {
36996 int j;
36997 swig_const_info *ci = 0;
36998 const char *name = c + 10;
36999 for (j = 0; const_table[j].type; ++j) {
37000 if (strncmp(const_table[j].name, name,
37001 strlen(const_table[j].name)) == 0) {
37002 ci = &(const_table[j]);
37003 break;
37004 }
37005 }
37006 if (ci) {
37007 size_t shift = (ci->ptype) - types;
37008 swig_type_info *ty = types_initial[shift];
37009 size_t ldoc = (c - methods[i].ml_doc);
37010 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
37011 char *ndoc = (char*)malloc(ldoc + lptr + 10);
37012 if (ndoc) {
37013 char *buff = ndoc;
37014 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
37015 if (ptr) {
37016 strncpy(buff, methods[i].ml_doc, ldoc);
37017 buff += ldoc;
37018 strncpy(buff, "swig_ptr: ", 10);
37019 buff += 10;
37020 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
37021 methods[i].ml_doc = ndoc;
37022 }
37023 }
37024 }
37025 }
37026 }
37027 }
37028
37029 #ifdef __cplusplus
37030 }
37031 #endif
37032
37033 /* -----------------------------------------------------------------------------*
37034 * Partial Init method
37035 * -----------------------------------------------------------------------------*/
37036
37037 #ifdef __cplusplus
37038 extern "C"
37039 #endif
37040 SWIGEXPORT void SWIG_init(void) {
37041 PyObject *m, *d;
37042
37043 /* Fix SwigMethods to carry the callback ptrs when needed */
37044 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
37045
37046 m = Py_InitModule((char *) SWIG_name, SwigMethods);
37047 d = PyModule_GetDict(m);
37048
37049 SWIG_InitializeModule(0);
37050 SWIG_InstallConstants(d,swig_const_table);
37051
37052
37053 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
37054 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
37055 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
37056 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
37057 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
37058 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
37059 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
37060 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
37061 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
37062 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
37063 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
37064 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
37065 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
37066 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
37067 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
37068 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
37069 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
37070 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
37071 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
37072 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
37073 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
37074 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
37075 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
37076 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
37077 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
37078 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
37079 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
37080 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
37081 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
37082 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
37083 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
37084 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
37085 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
37086 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
37087 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
37088 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
37089 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
37090 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
37091 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
37092 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
37093 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
37094 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
37095 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
37096 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
37097 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
37098 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
37099 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
37100 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
37101 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
37102 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
37103 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
37104 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
37105 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
37106 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
37107 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
37108 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
37109 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
37110 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
37111 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
37112 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
37113 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
37114 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
37115 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
37116 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
37117 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
37118 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
37119 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
37120 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
37121 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
37122 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
37123 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
37124 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
37125 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
37126 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
37127 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
37128 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
37129 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
37130 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
37131 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
37132 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
37133 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
37134 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
37135 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
37136 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
37137 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
37138 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
37139 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
37140 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
37141 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
37142 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
37143 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
37144 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
37145 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
37146 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
37147 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
37148 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
37149 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
37150 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
37151 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
37152 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
37153 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
37154 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
37155 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
37156 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
37157 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
37158 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
37159 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
37160 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
37161 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
37162 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
37163 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
37164 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
37165 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
37166 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
37167 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
37168 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
37169 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
37170 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
37171 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
37172 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
37173 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
37174 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
37175 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
37176 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
37177 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
37178 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
37179 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
37180 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
37181 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
37182 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
37183 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
37184 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
37185
37186 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
37187
37188 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
37189 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
37190 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
37191 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
37192 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
37193 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
37194 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
37195 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
37196 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
37197 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
37198 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
37199 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
37200 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
37201 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
37202 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
37203 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
37204 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
37205 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
37206 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
37207 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
37208 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
37209 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
37210 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
37211 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
37212 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
37213 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
37214 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
37215 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
37216 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
37217 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
37218 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
37219 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
37220 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
37221 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
37222 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
37223 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
37224 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
37225 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
37226 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
37227 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
37228 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
37229 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
37230 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
37231 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
37232 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
37233 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
37234 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
37235 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
37236 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
37237 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
37238 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
37239 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
37240 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
37241 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
37242 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
37243 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
37244 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
37245 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
37246 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
37247 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
37248 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
37249 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
37250 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
37251 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
37252 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
37253 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
37254 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
37255 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
37256 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
37257 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
37258 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
37259 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
37260 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
37261 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
37262 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
37263 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
37264 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
37265 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
37266 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
37267 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
37268 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
37269 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
37270 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
37271 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
37272 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
37273 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
37274 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
37275 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
37276 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
37277 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
37278 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
37279 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
37280 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
37281 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
37282 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
37283 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
37284 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
37285 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
37286 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
37287 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
37288 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
37289 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
37290 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
37291 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
37292 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
37293 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
37294 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
37295 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
37296 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
37297 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
37298 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
37299 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
37300 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
37301 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
37302 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
37303 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
37304 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
37305 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
37306 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
37307 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
37308 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
37309 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
37310 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
37311 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
37312 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
37313 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
37314 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
37315 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
37316 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
37317 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
37318 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
37319 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
37320 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
37321 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
37322 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
37323 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
37324 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
37325 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
37326 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
37327 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
37328 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
37329 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
37330 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
37331 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
37332 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
37333 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
37334 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
37335 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
37336 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
37337 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
37338 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
37339 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
37340 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
37341 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
37342 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
37343 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
37344 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
37345 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
37346 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
37347 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
37348 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
37349 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
37350 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
37351 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
37352 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
37353 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
37354 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
37355 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
37356 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
37357 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
37358 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
37359 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
37360 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
37361 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
37362 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
37363 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
37364 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
37365 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
37366 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
37367 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
37368 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
37369 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
37370 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
37371 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
37372 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
37373 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
37374 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
37375 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
37376 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
37377 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
37378 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
37379 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
37380 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
37381 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
37382 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
37383 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
37384 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
37385 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
37386 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
37387 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
37388 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
37389 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
37390 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
37391 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
37392 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
37393 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
37394 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
37395 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
37396 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
37397 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
37398 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
37399 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
37400 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
37401 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
37402 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
37403 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
37404 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
37405 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
37406 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
37407 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
37408 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
37409 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
37410 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
37411 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
37412 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
37413 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
37414 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
37415 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
37416 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
37417 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
37418 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
37419 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
37420 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
37421 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
37422 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
37423 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
37424 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
37425 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
37426 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
37427 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
37428 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
37429 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
37430 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
37431 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
37432 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
37433 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
37434 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
37435 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
37436 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
37437 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
37438 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
37439 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
37440 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
37441 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
37442 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
37443 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
37444 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
37445 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
37446 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
37447 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
37448 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
37449 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
37450 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
37451 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
37452 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
37453 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
37454 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
37455 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
37456 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
37457 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
37458 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
37459 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
37460 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
37461 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
37462 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
37463 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
37464 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
37465 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
37466 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
37467 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
37468 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
37469 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
37470 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
37471 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
37472 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
37473 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
37474 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
37475 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
37476 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
37477 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
37478 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
37479 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
37480 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
37481 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
37482 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
37483 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
37484 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
37485 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
37486 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
37487 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
37488 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
37489 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
37490 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
37491 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
37492 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
37493 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
37494 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
37495 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
37496 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
37497 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
37498 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
37499 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
37500 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
37501 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
37502 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
37503 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
37504 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
37505 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
37506 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
37507
37508 // Work around a chicken/egg problem in drawlist.cpp
37509 wxPyDrawList_SetAPIPtr();
37510
37511 }
37512